diff --git a/server/public/10.a57878568e1af68b.js b/server/public/10.74ea0282fa13baf4.js similarity index 99% rename from server/public/10.a57878568e1af68b.js rename to server/public/10.74ea0282fa13baf4.js index 109c70612..7d5c92848 100644 --- a/server/public/10.a57878568e1af68b.js +++ b/server/public/10.74ea0282fa13baf4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[10],{1106:(P,C,n)=>{n.d(C,{L:()=>a});var t=n(6814),i=n(4190),l=n(5695),T=n(551),v=n(95),d=n(6067),s=n(8125),h=n(2962),m=n(1022),u=n(5879);let f=(()=>{class _{}return _.\u0275fac=function(c){return new(c||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[t.ez,h.vh,v.Jb,s.q6,d.X,m.H]}),_})();var O=n(7417);let a=(()=>{class _{}return _.\u0275fac=function(c){return new(c||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[t.ez,i.Bz,l.X,T.PV,O.$6,f]}),_})()},1835:(P,C,n)=>{n.d(C,{l:()=>O});var t=n(5879),i=n(6814),l=n(5695),T=n(7417),v=n(1887);const d=function(a){return{"matched-tag":a}};function s(a,_){if(1&a&&(t.TgZ(0,"span",2)(1,"nz-tag"),t._uU(2),t.qZA()()),2&a){const g=_.$implicit,c=t.oxw();t.Q6J("ngClass",t.VKq(2,d,c.matchingText&&g.toLowerCase().includes(c.matchingText))),t.xp6(2),t.Oqu(g)}}function h(a,_){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.matchedHiddenCount," of ")}}function m(a,_){if(1&a&&(t.TgZ(0,"nz-tag",5),t._uU(1," +"),t.YNc(2,h,2,1,"span",6),t._uU(3),t.qZA()),2&a){const g=t.oxw(),c=t.MAs(5);t.Q6J("nzPopoverMouseEnterDelay",0)("nzPopoverContent",c),t.xp6(2),t.Q6J("ngIf",g.matchedHiddenCount>0),t.xp6(1),t.hij("",g.hiddenCount," ")}}function u(a,_){if(1&a&&(t.TgZ(0,"div",2)(1,"nz-tag"),t._uU(2),t.qZA()()),2&a){const g=_.$implicit,c=t.oxw(2);t.Q6J("ngClass",t.VKq(2,d,c.matchingText&&g.toLowerCase().includes(c.matchingText))),t.xp6(2),t.Oqu(g)}}function f(a,_){if(1&a&&(t.TgZ(0,"div",7)(1,"cvc-tag-list",0),t.YNc(2,u,3,4,"div",1),t.qZA()()),2&a){const g=t.oxw();t.xp6(2),t.Q6J("ngForOf",g.hiddenTags)}}let O=(()=>{class a{constructor(g){this.cdr=g,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(g){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let g=this.matchingText.toLowerCase();this.hiddenTags.forEach(c=>{c.toLowerCase().includes(g)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}}return a.\u0275fac=function(g){return new(g||a)(t.Y36(t.sBO))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[t.TTD],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",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(g,c){1&g&&(t.TgZ(0,"cvc-tag-list",0),t.YNc(1,s,3,4,"span",1),t.TgZ(2,"span",2),t.YNc(3,m,4,4,"nz-tag",3),t.qZA(),t.YNc(4,f,3,1,"ng-template",null,4,t.W1O),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngForOf",c.displayedTags),t.xp6(1),t.Q6J("ngClass",t.VKq(3,d,c.matchedHiddenCount>0)),t.xp6(1),t.Q6J("ngIf",c.hiddenCount&&c.hiddenCount>0))},dependencies:[i.mk,i.sg,i.O5,l.j,T.lU,v.$],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),a})()},2966:(P,C,n)=>{n.d(C,{T:()=>d});var t=n(6814),i=n(366),l=n(5695),T=n(7417),v=n(5879);let d=(()=>{class s{}return s.\u0275fac=function(m){return new(m||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[t.ez,l.X,T.$6,i.$]}),s})()},4527:(P,C,n)=>{n.d(C,{T:()=>I});var t=n(5879),i=n(6814),l=n(5695),T=n(7417),v=n(1887),d=n(4770),s=n(9775),h=n(215),m=n(4121),u=n(9408),f=n(7938);const O=function(o){return{"matched-tag":o}},a=function(o,r){return{tagType:o,tag:r}};function _(o,r){if(1&o&&(t.TgZ(0,"div",2),t.GkF(1,6),t.qZA()),2&o){const e=r.$implicit,p=t.oxw(),x=t.MAs(7);t.Q6J("ngClass",t.VKq(3,O,p.matchingText&&e.name.toLowerCase().includes(p.matchingText))),t.xp6(1),t.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",t.WLB(5,a,p.tagType,e))}}function g(o,r){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.matchedHiddenCount," of ")}}function c(o,r){if(1&o&&(t.TgZ(0,"nz-tag",7),t._uU(1," +"),t.YNc(2,g,2,1,"span",8),t._uU(3),t.qZA()),2&o){const e=t.oxw(),p=t.MAs(5);t.Q6J("nzPopoverContent",p),t.xp6(2),t.Q6J("ngIf",e.matchedHiddenCount>0),t.xp6(1),t.hij("",e.hiddenCount," ")}}function E(o,r){if(1&o&&(t.TgZ(0,"div",2),t.ynx(1,10),t.GkF(2,6),t.BQk(),t.qZA()),2&o){const e=r.$implicit,p=t.oxw(2),x=t.MAs(7);t.Q6J("ngClass",t.VKq(4,O,p.matchingText&&e.name.toLowerCase().includes(p.matchingText))),t.xp6(1),t.Q6J("ngSwitch",p.tagType),t.xp6(1),t.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",t.WLB(6,a,p.tagType,e))}}function M(o,r){if(1&o&&(t.TgZ(0,"div",9)(1,"cvc-tag-list",0),t.YNc(2,E,3,9,"div",1),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.hiddenTags)}}function D(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-therapy-tag",12),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("therapy",e)("truncateLongName",!0)}}function y(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-disease-tag",13),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("disease",e)("truncateLongName",!0)}}function z(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-gene-tag",14),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("gene",e)("truncateLongName",!0)}}function A(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",15),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("org",e)}}function B(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-variant-tag",16),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("variant",e)}}function L(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-variant-type-tag",17),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("variantType",e)}}function U(o,r){1&o&&(t.ynx(0,10),t.YNc(1,D,2,2,"ng-container",11),t.YNc(2,y,2,2,"ng-container",11),t.YNc(3,z,2,2,"ng-container",11),t.YNc(4,A,2,1,"ng-container",11),t.YNc(5,B,2,1,"ng-container",11),t.YNc(6,L,2,1,"ng-container",11),t.BQk()),2&o&&(t.Q6J("ngSwitch",r.tagType),t.xp6(1),t.Q6J("ngSwitchCase","therapy"),t.xp6(1),t.Q6J("ngSwitchCase","disease"),t.xp6(1),t.Q6J("ngSwitchCase","gene"),t.xp6(1),t.Q6J("ngSwitchCase","organization"),t.xp6(1),t.Q6J("ngSwitchCase","variant"),t.xp6(1),t.Q6J("ngSwitchCase","variant-type"))}let I=(()=>{class o{constructor(e){this.cdr=e,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(e){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let e=this.matchingText.toLowerCase();this.hiddenTags.forEach(p=>{p.name.toLowerCase().includes(e)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-tag-overflow"]],inputs:{tags:"tags",maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[t.TTD],decls:8,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],["additionalTagPopover",""],["tagTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"gene","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"]],template:function(e,p){1&e&&(t.TgZ(0,"cvc-tag-list",0),t.YNc(1,_,2,8,"div",1),t.TgZ(2,"div",2),t.YNc(3,c,4,3,"nz-tag",3),t.qZA(),t.YNc(4,M,3,1,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,U,7,7,"ng-template",null,5,t.W1O)),2&e&&(t.xp6(1),t.Q6J("ngForOf",p.displayedTags),t.xp6(1),t.Q6J("ngClass",t.VKq(3,O,p.matchedHiddenCount>0)),t.xp6(1),t.Q6J("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[i.mk,i.sg,i.O5,i.tP,i.RF,i.n9,l.j,T.lU,v.$,d.T,s.n,h.m,m.H,u.I,f.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),o})()},7950:(P,C,n)=>{n.d(C,{x:()=>O});var t=n(6814),i=n(366),l=n(5695),T=n(7417),v=n(3396),d=n(1106),s=n(5956),h=n(7528),m=n(6061),u=n(3717),f=n(5879);let O=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=f.oAB({type:a}),a.\u0275inj=f.cJS({imports:[t.ez,l.X,T.$6,i.$,m.N,v.Q,d.L,s.U,h.Q,u.M]}),a})()},3717:(P,C,n)=>{n.d(C,{M:()=>O});var t=n(6814),i=n(4190),l=n(5695),T=n(2962),v=n(6067),d=n(8125),s=n(551),h=n(2524),m=n(5879);let u=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({imports:[t.ez,s.PV,T.vh,d.q6,h.s,v.X]}),a})();var f=n(7417);let O=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({imports:[t.ez,i.Bz,s.PV,l.X,f.$6,u]}),a})()},1233:(P,C,n)=>{n.d(C,{F:()=>i});var t=n(5879);let i=(()=>{class l{transform(v,d){return v.map(s=>s[d])}}return l.\u0275fac=function(v){return new(v||l)},l.\u0275pipe=t.Yjl({name:"pluck",type:l,pure:!0}),l})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[10],{1106:(P,C,n)=>{n.d(C,{L:()=>a});var t=n(6814),i=n(4190),l=n(5695),T=n(551),v=n(95),d=n(6067),s=n(8125),h=n(2962),m=n(4293),u=n(5879);let f=(()=>{class _{}return _.\u0275fac=function(c){return new(c||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[t.ez,h.vh,v.Jb,s.q6,d.X,m.H]}),_})();var O=n(7417);let a=(()=>{class _{}return _.\u0275fac=function(c){return new(c||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[t.ez,i.Bz,l.X,T.PV,O.$6,f]}),_})()},1835:(P,C,n)=>{n.d(C,{l:()=>O});var t=n(5879),i=n(6814),l=n(5695),T=n(7417),v=n(1887);const d=function(a){return{"matched-tag":a}};function s(a,_){if(1&a&&(t.TgZ(0,"span",2)(1,"nz-tag"),t._uU(2),t.qZA()()),2&a){const g=_.$implicit,c=t.oxw();t.Q6J("ngClass",t.VKq(2,d,c.matchingText&&g.toLowerCase().includes(c.matchingText))),t.xp6(2),t.Oqu(g)}}function h(a,_){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const g=t.oxw(2);t.xp6(1),t.hij(" ",g.matchedHiddenCount," of ")}}function m(a,_){if(1&a&&(t.TgZ(0,"nz-tag",5),t._uU(1," +"),t.YNc(2,h,2,1,"span",6),t._uU(3),t.qZA()),2&a){const g=t.oxw(),c=t.MAs(5);t.Q6J("nzPopoverMouseEnterDelay",0)("nzPopoverContent",c),t.xp6(2),t.Q6J("ngIf",g.matchedHiddenCount>0),t.xp6(1),t.hij("",g.hiddenCount," ")}}function u(a,_){if(1&a&&(t.TgZ(0,"div",2)(1,"nz-tag"),t._uU(2),t.qZA()()),2&a){const g=_.$implicit,c=t.oxw(2);t.Q6J("ngClass",t.VKq(2,d,c.matchingText&&g.toLowerCase().includes(c.matchingText))),t.xp6(2),t.Oqu(g)}}function f(a,_){if(1&a&&(t.TgZ(0,"div",7)(1,"cvc-tag-list",0),t.YNc(2,u,3,4,"div",1),t.qZA()()),2&a){const g=t.oxw();t.xp6(2),t.Q6J("ngForOf",g.hiddenTags)}}let O=(()=>{class a{constructor(g){this.cdr=g,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(g){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let g=this.matchingText.toLowerCase();this.hiddenTags.forEach(c=>{c.toLowerCase().includes(g)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}}return a.\u0275fac=function(g){return new(g||a)(t.Y36(t.sBO))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[t.TTD],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",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(g,c){1&g&&(t.TgZ(0,"cvc-tag-list",0),t.YNc(1,s,3,4,"span",1),t.TgZ(2,"span",2),t.YNc(3,m,4,4,"nz-tag",3),t.qZA(),t.YNc(4,f,3,1,"ng-template",null,4,t.W1O),t.qZA()),2&g&&(t.xp6(1),t.Q6J("ngForOf",c.displayedTags),t.xp6(1),t.Q6J("ngClass",t.VKq(3,d,c.matchedHiddenCount>0)),t.xp6(1),t.Q6J("ngIf",c.hiddenCount&&c.hiddenCount>0))},dependencies:[i.mk,i.sg,i.O5,l.j,T.lU,v.$],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),a})()},2966:(P,C,n)=>{n.d(C,{T:()=>d});var t=n(6814),i=n(366),l=n(5695),T=n(7417),v=n(5879);let d=(()=>{class s{}return s.\u0275fac=function(m){return new(m||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[t.ez,l.X,T.$6,i.$]}),s})()},4527:(P,C,n)=>{n.d(C,{T:()=>I});var t=n(5879),i=n(6814),l=n(5695),T=n(7417),v=n(1887),d=n(4770),s=n(9775),h=n(215),m=n(4121),u=n(9408),f=n(7938);const O=function(o){return{"matched-tag":o}},a=function(o,r){return{tagType:o,tag:r}};function _(o,r){if(1&o&&(t.TgZ(0,"div",2),t.GkF(1,6),t.qZA()),2&o){const e=r.$implicit,p=t.oxw(),x=t.MAs(7);t.Q6J("ngClass",t.VKq(3,O,p.matchingText&&e.name.toLowerCase().includes(p.matchingText))),t.xp6(1),t.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",t.WLB(5,a,p.tagType,e))}}function g(o,r){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.matchedHiddenCount," of ")}}function c(o,r){if(1&o&&(t.TgZ(0,"nz-tag",7),t._uU(1," +"),t.YNc(2,g,2,1,"span",8),t._uU(3),t.qZA()),2&o){const e=t.oxw(),p=t.MAs(5);t.Q6J("nzPopoverContent",p),t.xp6(2),t.Q6J("ngIf",e.matchedHiddenCount>0),t.xp6(1),t.hij("",e.hiddenCount," ")}}function E(o,r){if(1&o&&(t.TgZ(0,"div",2),t.ynx(1,10),t.GkF(2,6),t.BQk(),t.qZA()),2&o){const e=r.$implicit,p=t.oxw(2),x=t.MAs(7);t.Q6J("ngClass",t.VKq(4,O,p.matchingText&&e.name.toLowerCase().includes(p.matchingText))),t.xp6(1),t.Q6J("ngSwitch",p.tagType),t.xp6(1),t.Q6J("ngTemplateOutlet",x)("ngTemplateOutletContext",t.WLB(6,a,p.tagType,e))}}function M(o,r){if(1&o&&(t.TgZ(0,"div",9)(1,"cvc-tag-list",0),t.YNc(2,E,3,9,"div",1),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.hiddenTags)}}function D(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-therapy-tag",12),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("therapy",e)("truncateLongName",!0)}}function y(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-disease-tag",13),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("disease",e)("truncateLongName",!0)}}function z(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-gene-tag",14),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("gene",e)("truncateLongName",!0)}}function A(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",15),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("org",e)}}function B(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-variant-tag",16),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("variant",e)}}function L(o,r){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-variant-type-tag",17),t.BQk()),2&o){const e=t.oxw().tag;t.xp6(1),t.Q6J("variantType",e)}}function U(o,r){1&o&&(t.ynx(0,10),t.YNc(1,D,2,2,"ng-container",11),t.YNc(2,y,2,2,"ng-container",11),t.YNc(3,z,2,2,"ng-container",11),t.YNc(4,A,2,1,"ng-container",11),t.YNc(5,B,2,1,"ng-container",11),t.YNc(6,L,2,1,"ng-container",11),t.BQk()),2&o&&(t.Q6J("ngSwitch",r.tagType),t.xp6(1),t.Q6J("ngSwitchCase","therapy"),t.xp6(1),t.Q6J("ngSwitchCase","disease"),t.xp6(1),t.Q6J("ngSwitchCase","gene"),t.xp6(1),t.Q6J("ngSwitchCase","organization"),t.xp6(1),t.Q6J("ngSwitchCase","variant"),t.xp6(1),t.Q6J("ngSwitchCase","variant-type"))}let I=(()=>{class o{constructor(e){this.cdr=e,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(e){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let e=this.matchingText.toLowerCase();this.hiddenTags.forEach(p=>{p.name.toLowerCase().includes(e)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-tag-overflow"]],inputs:{tags:"tags",maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[t.TTD],decls:8,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],["additionalTagPopover",""],["tagTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"gene","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"]],template:function(e,p){1&e&&(t.TgZ(0,"cvc-tag-list",0),t.YNc(1,_,2,8,"div",1),t.TgZ(2,"div",2),t.YNc(3,c,4,3,"nz-tag",3),t.qZA(),t.YNc(4,M,3,1,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,U,7,7,"ng-template",null,5,t.W1O)),2&e&&(t.xp6(1),t.Q6J("ngForOf",p.displayedTags),t.xp6(1),t.Q6J("ngClass",t.VKq(3,O,p.matchedHiddenCount>0)),t.xp6(1),t.Q6J("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[i.mk,i.sg,i.O5,i.tP,i.RF,i.n9,l.j,T.lU,v.$,d.T,s.n,h.m,m.H,u.I,f.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),o})()},7950:(P,C,n)=>{n.d(C,{x:()=>O});var t=n(6814),i=n(366),l=n(5695),T=n(7417),v=n(3396),d=n(1106),s=n(5956),h=n(7528),m=n(6061),u=n(3717),f=n(5879);let O=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=f.oAB({type:a}),a.\u0275inj=f.cJS({imports:[t.ez,l.X,T.$6,i.$,m.N,v.Q,d.L,s.U,h.Q,u.M]}),a})()},3717:(P,C,n)=>{n.d(C,{M:()=>O});var t=n(6814),i=n(4190),l=n(5695),T=n(2962),v=n(6067),d=n(8125),s=n(551),h=n(2524),m=n(5879);let u=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({imports:[t.ez,s.PV,T.vh,d.q6,h.s,v.X]}),a})();var f=n(7417);let O=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({imports:[t.ez,i.Bz,s.PV,l.X,f.$6,u]}),a})()},1233:(P,C,n)=>{n.d(C,{F:()=>i});var t=n(5879);let i=(()=>{class l{transform(v,d){return v.map(s=>s[d])}}return l.\u0275fac=function(v){return new(v||l)},l.\u0275pipe=t.Yjl({name:"pluck",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/server/public/1107.97fd15b551cd9b9a.js b/server/public/1107.97fd15b551cd9b9a.js deleted file mode 100644 index d5585c4bf..000000000 --- a/server/public/1107.97fd15b551cd9b9a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1107],{4786:(sn,U,a)=>{a.d(U,{O:()=>j});var u=a(8130),i=a(2023),c=a(5879),G=a(6814),L=a(4190),$=a(5695),F=a(7417),Q=a(551),Z=a(8213),v=a(3103),I=a(2616);function y(_,z){}function b(_,z){if(1&_&&(c.ynx(0),c.TgZ(1,"a",4),c.YNc(2,y,0,0,"ng-template",5),c.qZA(),c.BQk()),2&_){const m=c.oxw(),M=c.MAs(2);c.xp6(1),c.Q6J("routerLink",m.evidence.link),c.xp6(1),c.Q6J("ngTemplateOutlet",M)}}function T(_,z){}function x(_,z){if(1&_&&c._UZ(0,"cvc-evidence-popover",9),2&_){const m=c.oxw(3);c.Q6J("evidenceId",m.evidence.id)}}function h(_,z){if(1&_&&c.YNc(0,x,1,1,"cvc-evidence-popover",8),2&_){const m=c.oxw(2);c.Q6J("ngIf",m.enablePopover)}}const n=function(_,z,m){return{rejected:_,submitted:z,accepted:m}};function J(_,z){if(1&_&&(c.TgZ(0,"nz-tag",6),c.YNc(1,T,0,0,"ng-template",5),c.qZA(),c.YNc(2,h,1,1,"ng-template",null,7,c.W1O)),2&_){const m=c.MAs(3),M=c.oxw(),Y=c.MAs(6);c.Q6J("ngClass",c.kEZ(5,n,"REJECTED"===M.evidence.status,"SUBMITTED"===M.evidence.status,"ACCEPTED"===M.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",M.enablePopover?"hover":null),c.xp6(1),c.Q6J("ngTemplateOutlet",Y)}}function f(_,z){}function nn(_,z){if(1&_&&c.YNc(0,f,0,0,"ng-template",5),2&_){c.oxw();const m=c.MAs(2);c.Q6J("ngTemplateOutlet",m)}}function en(_,z){if(1&_&&(c.TgZ(0,"cvc-icon-badges",10),c._UZ(1,"i",11),c.ALo(2,"entityColor"),c.ALo(3,"entityColor"),c.qZA(),c._uU(4)),2&_){const m=c.oxw();c.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.xp6(1),c.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?c.lcZ(2,4,"Rejected"):c.lcZ(3,6,"EvidenceItem")),c.xp6(3),c.hij(" ",m.evidence.name,"\n")}}let j=(()=>{class _ extends u.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,i.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,M){if(1&m&&(c.YNc(0,b,3,2,"ng-container",0),c.YNc(1,J,4,9,"ng-template",null,1,c.W1O),c.YNc(3,nn,1,1,"ng-template",null,2,c.W1O),c.YNc(5,en,5,8,"ng-template",null,3,c.W1O)),2&m){const Y=c.MAs(4);c.Q6J("ngIf",M.linked)("ngIfElse",Y)}},dependencies:[G.mk,G.O5,G.tP,L.rH,$.j,F.lU,Q.Ls,Z._,v.b,I.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),_})()},5959:(sn,U,a)=>{a.d(U,{u:()=>mn});var u=a(2023),i=a(5879),c=a(6814),G=a(4190),L=a(7417),$=a(5695),F=a(551),Q=a(5676),Z=a(7398),v=a(2181),I=a(313),y=a(2962),b=a(8125),T=a(4138),x=a(9408),h=a(1887),n=a(8091),J=a(2616);function f(l,d){if(1&l&&(i._UZ(0,"i",7),i.ALo(1,"entityColor"),i._uU(2)),2&l){const p=i.oxw().ngIf;i.Q6J("nzTwotoneColor",i.lcZ(1,2,"VariantGroup")),i.xp6(2),i.hij(" ",p.name," ")}}function nn(l,d){if(1&l&&i._UZ(0,"cvc-variant-tag",10),2&l){const p=d.$implicit;i.Q6J("enablePopover",!1)("variant",p.node)}}function en(l,d){if(1&l&&(i.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),i.YNc(2,nn,1,2,"cvc-variant-tag",9),i.qZA()()),2&l){const p=i.oxw().ngIf;i.xp6(2),i.Q6J("ngForOf",p.variants.edges)}}function j(l,d){if(1&l&&i._UZ(0,"cvc-source-tag",13),2&l){const p=d.$implicit;i.Q6J("enablePopover",!1)("source",p)}}function _(l,d){if(1&l&&(i.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),i.YNc(2,j,1,2,"cvc-source-tag",12),i.qZA()()),2&l){const p=i.oxw().ngIf;i.xp6(2),i.Q6J("ngForOf",p.sources)}}function z(l,d){if(1&l&&(i.ynx(0),i.TgZ(1,"nz-card",2),i.YNc(2,f,3,4,"ng-template",null,3,i.W1O),i._uU(4),i.TgZ(5,"nz-descriptions",4),i.YNc(6,en,3,1,"nz-descriptions-item",5),i.YNc(7,_,3,1,"nz-descriptions-item",6),i.qZA()(),i.BQk()),2&l){const p=d.ngIf,A=i.MAs(3);i.xp6(1),i.Q6J("nzTitle",A),i.xp6(3),i.hij(" ",p.description," "),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(1),i.Q6J("ngIf",p.variants.edges.length>0),i.xp6(1),i.Q6J("ngIf",p.sources.length>0)}}let m=(()=>{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,Z.U)(({data:p})=>p?.variantGroup),(0,v.h)(Q.ep))}}return l.\u0275fac=function(p){return new(p||l)(i.Y36(I.Zo2))},l.\u0275cmp=i.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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(p,A){1&p&&(i.TgZ(0,"div",0),i.YNc(1,z,8,5,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA()),2&p&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,A.variantGroup$)))},dependencies:[c.sg,c.O5,y.bd,b.R7,b.uj,F.Ls,T.T,x.I,h.$,n.fM,J.a],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})();var M=a(3103);function Y(l,d){}function B(l,d){if(1&l&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,Y,0,0,"ng-template",5),i.qZA(),i.BQk()),2&l){const p=i.oxw(),A=i.MAs(2);i.xp6(1),i.Q6J("routerLink",p.variantgroup.link),i.xp6(1),i.Q6J("ngTemplateOutlet",A)}}function tn(l,d){}function on(l,d){if(1&l&&i._UZ(0,"cvc-variant-group-popover",9),2&l){const p=i.oxw(3);i.Q6J("variantGroupId",p.variantgroup.id)}}function ln(l,d){if(1&l&&i.YNc(0,on,1,1,"cvc-variant-group-popover",8),2&l){const p=i.oxw(2);i.Q6J("ngIf",p.enablePopover)}}function pn(l,d){if(1&l&&(i.TgZ(0,"nz-tag",6),i.YNc(1,tn,0,0,"ng-template",5),i.qZA(),i.YNc(2,ln,1,1,"ng-template",null,7,i.W1O)),2&l){const p=i.MAs(3),A=i.oxw(),an=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",A.enablePopover?"hover":null),i.xp6(1),i.Q6J("ngTemplateOutlet",an)}}function gn(l,d){}function _n(l,d){if(1&l&&i.YNc(0,gn,0,0,"ng-template",5),2&l){i.oxw();const p=i.MAs(2);i.Q6J("ngTemplateOutlet",p)}}function un(l,d){if(1&l&&(i.TgZ(0,"cvc-icon-badges",10),i._UZ(1,"i",11),i.ALo(2,"entityColor"),i.qZA(),i._uU(3)),2&l){const p=i.oxw();i.Q6J("flagged",p.variantgroup.flagged)("entityColor",p.iconColor),i.xp6(1),i.Q6J("nzTwotoneColor",i.lcZ(2,4,"VariantGroup")),i.xp6(2),i.hij(" ",p.variantgroup.name,"\n")}}let mn=(()=>{class l{set variantgroup(p){if(!p)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=p}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,u.f)("VariantGroup")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=i.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(p,A){if(1&p&&(i.YNc(0,B,3,2,"ng-container",0),i.YNc(1,pn,4,4,"ng-template",null,1,i.W1O),i.YNc(3,_n,1,1,"ng-template",null,2,i.W1O),i.YNc(5,un,4,6,"ng-template",null,3,i.W1O)),2&p){const an=i.MAs(4);i.Q6J("ngIf",A.linked)("ngIfElse",an)}},dependencies:[c.O5,c.tP,G.rH,L.lU,$.j,F.Ls,m,M.b,J.a],encapsulation:2,changeDetection:0}),l})()},3641:(sn,U,a)=>{a.d(U,{G:()=>x});var u=a(6814),i=a(4190),c=a(7417),G=a(5695),L=a(551),$=a(366),F=a(8641),Q=a(7528),Z=a(2524),v=a(2962),I=a(8125),y=a(5879);let b=(()=>{class h{}return h.\u0275fac=function(J){return new(J||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[u.ez,v.vh,I.q6,L.PV,F.s,Q.Q,$.$,Z.s]}),h})();var T=a(3146);let x=(()=>{class h{}return h.\u0275fac=function(J){return new(J||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[u.ez,i.Bz,c.$6,G.X,L.PV,b,Z.s,T.C]}),h})()},4601:(sn,U,a)=>{a.r(U),a.d(U,{GenesDetailModule:()=>gt});var u=a(6814),i=a(9894),c=a(5725),G=a(936),L=a(7129),$=a(2419),F=a(4059),Q=a(2524),Z=a(2840),v=a(95),I=a(551),y=a(6254),b=a(2574),T=a(2392),x=a(4190),h=a(1830),n=a(5879);let J=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,h.l]}),e})();var f=a(313),nn=a(800);let en=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.geneId,entityType:f.OfU.Gene}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-comment-list",0),2&t&&n.Q6J("commentable",r.commentable)},dependencies:[nn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var j=a(8645),_=a(5619),z=a(7921),m=a(9773),M=a(4223),Y=a(951),B=a(8091),tn=a(855),on=a(1958),ln=a(5098),pn=a(327),gn=a(1801),_n=a(1520),un=a(3145),mn=a(8295),l=a(2616);const d=function(e){return["/genes",e,"revise"]};function p(e,o){if(1&e&&(n.TgZ(0,"button",14,15),n._uU(2," Revise "),n.qZA()),2&e){const t=n.MAs(1),r=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,d,r.id))("nzType",t.isActive?"primary":"default")}}function A(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,p,3,4,"button",13),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function an(e,o){if(1&e&&(n.TgZ(0,"button",17,15),n._uU(2," Flag "),n.qZA()),2&e){const t=n.MAs(1);n.Q6J("nzType",t.isActive?"primary":"default")}}function Pn(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,an,3,1,"button",16),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function Zn(e,o){if(1&e&&n._UZ(0,"cvc-entity-subscription-button",19),2&e){const t=n.oxw(2).ngrxLet,r=n.oxw(3);n.Q6J("viewer",t)("subscribableId",r.subscribable.id)}}function bn(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Zn,1,2,"cvc-entity-subscription-button",18),n.qZA()),2&e){const t=n.oxw().ngrxLet,r=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.signedIn&&r.subscribable)}}function In(e,o){1&e&&(n.TgZ(0,"nz-space",11),n.YNc(1,A,2,1,"span",12),n.YNc(2,Pn,2,1,"span",12),n.YNc(3,bn,2,1,"span",12),n.qZA())}function An(e,o){if(1&e&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,In,4,0,"nz-space",10),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",t.viewer$)}}function wn(e,o){if(1&e&&(n.TgZ(0,"nz-col",20),n._UZ(1,"cvc-contributor-avatars",21),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("subscribable",t.subscribable)}}const Jn=function(e){return{flagged:e}};function On(e,o){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"div",2),n.ALo(3,"ngrxPush"),n.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),n._UZ(6,"i",5),n.ALo(7,"entityColor"),n._uU(8),n.qZA(),n.TgZ(9,"nz-page-header-subtitle"),n._uU(10),n.qZA(),n.YNc(11,An,2,1,"nz-page-header-extra",6),n.TgZ(12,"nz-page-header-content")(13,"cvc-tab-navigation",7),n.ALo(14,"ngrxPush"),n.YNc(15,wn,2,1,"ng-template",null,8,n.W1O),n.qZA(),n.TgZ(17,"div",9),n._UZ(18,"router-outlet"),n.qZA()()()(),n.BQk()),2&e){const t=o.ngIf,r=n.oxw();n.xp6(1),n.Q6J("displayName",t.name),n.xp6(1),n.Q6J("flags",n.lcZ(3,8,r.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(14,Jn,t.flags.totalCount>0)),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(7,10,"Gene")),n.xp6(2),n.hij(" ",t.name," "),n.xp6(2),n.hij(" ",t.officialName," "),n.xp6(1),n.Q6J("ngrxLet",r.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(14,12,r.tabs$))}}let Gn=(()=>{class e{constructor(t,r,s){this.gql=t,this.viewerService=r,this.route=s,this.destroy$=new j.x,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.filterCurators=g=>"curator"==g.role,this.filterEditors=g=>"editor"==g.role||"admin"==g.role,this.tabs$=new _.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(g=>{let R=this.gql.watch({geneId:+g.geneId}).valueChanges;this.loading$=R.pipe((0,M.j)("loading"),(0,z.O)(!0)),this.gene$=R.pipe((0,M.j)("data","gene")),this.flagsTotal$=this.gene$.pipe((0,M.j)("flags","totalCount")),this.gene$.pipe((0,m.R)(this.destroy$)).subscribe({next:C=>{this.tabs$.next(this.defaultTabs.map(k=>"Revisions"===k.tabLabel?{badgeCount:C?.revisions.totalCount,...k}:"Comments"===k.tabLabel?{badgeCount:C?.comments.totalCount,badgeColor:"#cccccc",...k}:k))}}),this.subscribable={id:+g.geneId,entityType:f.o71.Gene}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(f.TNk),n.Y36(Y.a),n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["genes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(t,r){1&t&&(n.YNc(0,On,19,16,"ng-container",0),n.ALo(1,"async")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,r.gene$))},dependencies:[u.mk,u.O5,x.lC,x.rH,x.Od,B.eJ,Z.ix,tn.w,on.dQ,I.Ls,y.$O,y.u9,y.yG,y.u5,y.Jp,b.NU,b.$1,v.t3,ln.P,pn.o,gn.Y,_n.N,un.I,mn.Q,u.Ov,B.fM,l.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{flex-wrap:nowrap;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})(),Qn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,i.t]}),e})();var Sn=a(7441);let Nn=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.geneId,entityType:f.o71.Gene}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-event-feed",0),2&t&&n.Q6J("subscribable",r.subscribable)},dependencies:[Sn.o],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var S=a(2962),Vn=a(4139),En=a(183);let Un=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,S.vh,b.zf,Vn.H0,En.M]}),e})();var Ln=a(7287);let Fn=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:f.sfv.Gene,id:+this.route.snapshot.params.geneId}}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-flag-list-and-filter",0),2&t&&n.Q6J("flaggable",r.flaggable)},dependencies:[Ln.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Yn=a(6976),dn=a(5695),Dn=a(1595),$n=a(6928),jn=a(1665),Bn=a(2534);let Rn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,Yn.Ph,S.vh,b.zf,dn.X,T.ZJ,$n.Rt,Dn.N,jn.i,Bn.A]}),e})();var Wn=a(6126);let Kn=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(r=>{this.geneId=+r.geneId,this.entityType=f.oRL.Gene})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,r){1&t&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&n.Q6J("id",r.geneId)("entityType",r.entityType)},dependencies:[Wn.a],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var W=a(8125),Hn=a(3511),fn=a(366),Xn=a(6067),qn=a(8641),P=a(6223),kn=a(7528),O=a(3599),D=a(824),K=a(9691),ne=a(3717),Cn=a(2612),rn=a(2669);let ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,P.u5,Z.sL,v.Jb,S.vh,I.PV,O.U5,D.o7,K.LV,T.ZJ,Cn.Wr,rn.j,Q.s,kn.Q,fn.$,ne.M]}),e})();var H=a(9382),N=a(3740);let te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,S.vh,H.we,N.HQ,v.Jb,N.HQ,T.ZJ,W.q6]}),e})();var oe=a(2655),ae=a(8706),ie=a(8527);let re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,P.u5,Z.sL,v.Jb,S.vh,I.PV,O.U5,D.o7,K.LV,rn.j,T.ZJ,Q.s,ie.u,fn.$]}),e})(),ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,W.q6,T.ZJ,b.zf,dn.X,H.we,Hn.o,fn.$,Xn.X,qn.s,oe.x,ae.W,ee,te,re]}),e})();var X,se=a(3493),vn=a(1887),le=a(3317),pe=a(4138),xn=a(655),w=a(7398),V=a(2181),Tn=a(3620),cn=a(1791),E=a(5676),ge=a(2023),_e=a(9408);function ue(e,o){if(1&e&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij("(",t.length," displayed)")}}function me(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,ue,2,1,"span",9),n.BQk()),2&e){const t=o.ngIf,r=n.oxw(2).ngIf;n.xp6(2),n.hij("",t," Total"),n.xp6(1),n.Q6J("ngIf",t>r.length)}}function de(e,o){if(1&e&&(n.YNc(0,me,4,2,"ng-container",1),n.ALo(1,"ngrxPush")),2&e){const t=n.oxw(2);n.Q6J("ngIf",n.lcZ(1,1,t.totalVariants$))}}function fe(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"i",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return s.variantNameFilter=void 0,n.KtG(s.onModelUpdated())}),n.qZA()}}function ve(e,o){if(1&e&&n.YNc(0,fe,1,0,"i",19),2&e){const t=n.oxw(3);n.Q6J("ngIf",t.variantNameFilter)}}function he(e,o){if(1&e&&n._UZ(0,"nz-option",24),2&e){const t=o.$implicit;n.Q6J("nzLabel",t.name)("nzValue",t)}}function ze(e,o){if(1&e&&(n.TgZ(0,"div",25),n._UZ(1,"i",26),n._uU(2),n.qZA()),2&e){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("nzTwotoneColor",r.iconColor),n.xp6(1),n.hij(" ",t.nzLabel," ")}}function Ce(e,o){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-select",21),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.variantTypeFilter=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.onModelUpdated())}),n.YNc(2,he,1,2,"nz-option",22),n.qZA(),n.YNc(3,ze,3,2,"ng-template",null,23,n.W1O),n.BQk()}if(2&e){const t=o.ngIf,r=n.MAs(4),s=n.oxw(3);n.xp6(1),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",s.variantTypeFilter)("nzCustomTemplate",r),n.xp6(1),n.Q6J("ngForOf",t)}}function xe(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"form",10)(1,"nz-form-item")(2,"nz-form-label"),n._uU(3,"Name Filter"),n.qZA(),n.TgZ(4,"nz-form-control")(5,"nz-input-group",11)(6,"input",12),n.NdJ("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.variantNameFilter=s)}),n.qZA(),n.YNc(7,ve,1,1,"ng-template",null,13,n.W1O),n.qZA()()(),n.TgZ(9,"nz-form-item")(10,"nz-form-label"),n._uU(11,"Variant Type"),n.qZA(),n.TgZ(12,"nz-form-control"),n.YNc(13,Ce,5,4,"ng-container",1),n.ALo(14,"ngrxPush"),n.qZA()(),n.TgZ(15,"nz-form-item")(16,"nz-form-label"),n._uU(17," No Variant Type "),n.qZA(),n.TgZ(18,"nz-form-control")(19,"label",14),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.hasNoVariantType=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())}),n.qZA()()(),n.TgZ(20,"nz-form-item")(21,"nz-form-label"),n._uU(22,"Order By"),n.qZA(),n.TgZ(23,"nz-form-control")(24,"nz-select",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.onVariantSortOrderChanged(s))})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.sortBy=s)}),n._UZ(25,"nz-option",16)(26,"nz-option",17)(27,"nz-option",18),n.qZA()()()()}if(2&e){const t=n.MAs(8),r=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",t)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",r.variantNameFilter),n.xp6(7),n.Q6J("ngIf",n.lcZ(14,6,r.menuVariantTypes$)),n.xp6(6),n.Q6J("ngModel",r.hasNoVariantType),n.xp6(5),n.Q6J("ngModel",r.sortBy)}}function Te(e,o){if(1&e&&n._UZ(0,"cvc-variant-tag",28),2&e){const t=n.oxw().$implicit;n.Q6J("variant",t)}}function Me(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Te,1,1,"cvc-variant-tag",27),n.BQk()),2&e){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t)}}function ye(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-row",30)(1,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().ngIf,g=n.oxw(2);return n.KtG(g.fetchMore(s.endCursor))}),n._uU(2,"Load More "),n.qZA(),n.TgZ(3,"nz-select",32),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.pageSize=s)}),n._UZ(4,"nz-option",33)(5,"nz-option",34)(6,"nz-option",35),n.qZA()()}if(2&e){const t=n.oxw(3);n.xp6(3),n.Q6J("ngModel",t.pageSize),n.xp6(1),n.Q6J("nzValue",50),n.xp6(1),n.Q6J("nzValue",100),n.xp6(1),n.Q6J("nzValue",300)}}function Pe(e,o){if(1&e&&(n.ynx(0),n.YNc(1,ye,7,4,"nz-row",29),n.BQk()),2&e){const t=o.ngIf;n.xp6(1),n.Q6J("ngIf",t.hasNextPage&&t.endCursor)}}function Ze(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,de,2,3,"ng-template",null,3,n.W1O),n.YNc(4,xe,28,8,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",5)(8,"cvc-tag-list",6),n.YNc(9,Me,2,1,"ng-container",7),n.qZA()()(),n.YNc(10,Pe,2,1,"ng-container",1),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(3),s=n.MAs(5),g=n.oxw();n.xp6(1),n.Q6J("nzTitle",r)("nzExtra",s),n.xp6(8),n.Q6J("ngForOf",t),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,g.pageInfo$))}}let hn=((X=class{constructor(o,t){this.gql=o,this.variantTypeGql=t,this.sortBy=f.d4o.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new j.x,this.pageSize=50,this.iconColor=(0,ge.f)("VariantType")}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.initialQueryVars={geneId:this.geneId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,w.U)(({data:o,loading:t})=>t&&!o),(0,V.h)(E.ep),(0,z.O)(!0)),this.connection$=this.result$.pipe((0,w.U)(o=>o.data?.variants),(0,V.h)(E.ep)),this.pageInfo$=this.connection$.pipe((0,w.U)(o=>o.pageInfo),(0,V.h)(E.ep)),this.menuVariants$=this.connection$.pipe((0,w.U)(o=>o.edges.map(t=>t.node),(0,V.h)(E.ep))),this.totalVariants$=this.connection$.pipe((0,w.U)(o=>o.totalCount)),this.debouncedQuery.pipe((0,Tn.b)(500),(0,cn.t)(this)).subscribe(o=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({geneId:this.geneId}).valueChanges.pipe((0,w.U)(o=>o.data?.variantTypes.edges?.map(t=>t.node)),(0,V.h)(E.ep))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(o){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:o,direction:o==f.d4o.CoordinateEnd?f.SrV.Desc:f.SrV.Asc}})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.queryRef$.refetch({geneId:this.geneId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(o=>o.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:f.SrV.Asc}})}fetchMore(o){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:o}})}}).\u0275fac=function(o){return new(o||X)(n.Y36(f.zwS),n.Y36(f.l$X))},X.\u0275cmp=n.Xpm({type:X,selectors:[["cvc-variant-menu"]],inputs:{geneId:"geneId",geneName:"geneName"},decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nz-checkbox","","name","noVt",3,"ngModel","ngModelChange"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModel","ngModelChange"],["nzValue","NAME","nzLabel","Variant Name","selected","",2,"width","100%"],["nzValue","COORDINATE_START","nzLabel","Start Position",2,"width","100%"],["nzValue","COORDINATE_END","nzLabel","End Position",2,"width","100%"],["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"],["nzAllowClear","","nzSize","small","nzMode","multiple","nzPlaceHolder","Variant Type","name","variantTypes","nzShowSearch","",2,"min-width","115px",3,"nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["variantTypeTemplate",""],[3,"nzLabel","nzValue"],[1,"ant-select-selection-item-content"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone",3,"nzTwotoneColor"],[3,"variant",4,"ngIf"],[3,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModel","ngModelChange"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(o,t){1&o&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ze,12,6,"ng-container",1),n.ALo(3,"ngrxPush"),n.qZA()),2&o&&(n.Q6J("nzSpinning",n.lcZ(1,2,t.loading$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,4,t.menuVariants$)))},dependencies:[u.sg,u.O5,P._Y,P.Fj,P.JJ,P.JL,P.On,P.F,Z.ix,tn.w,on.dQ,v.t3,v.SK,S.bd,I.Ls,O.Lr,O.Nx,O.iK,O.Fd,D.Zp,D.gB,D.ke,K.Ip,K.Vq,T.ZU,Cn.Ie,rn.W,_e.I,vn.$,B.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),X);hn=(0,xn.gn)([(0,cn.c)()],hn);let be=(()=>{class e{constructor(){}parse(t){const r={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",pid:"http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&jpg=on&pathway_id=",wikipathways:"http://wikipathways.org/index.php/Pathway:",netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},s=t.pathway||[],g=[];let R;return Object.keys(s).forEach(function(C){Array.isArray(s[C])||(s[C]=[s[C]]),s[C].forEach(function(k,yn){R=r[C]+s[C][yn].id,null===r[C]&&(R=null),g.push({name:s[C][yn].name,link:R,src:C})})}),t.pathway=g,t.pathwayList=g.map(C=>C.name),!Array.isArray(t.alias)&&t.alias&&(t.alias=[t.alias]),!Array.isArray(t.interpro)&&t.interpro&&(t.interpro=[t.interpro]),t.interproList=t.interpro.map(C=>C.desc),t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ie=function(){return{xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}},Ae=function(){return{xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}};function we(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",6)(2,"nz-descriptions",7)(3,"nz-descriptions-item",8),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",9),n._uU(6),n.qZA()(),n.TgZ(7,"nz-descriptions",7)(8,"nz-descriptions-item",10),n._uU(9),n.qZA(),n.TgZ(10,"nz-descriptions-item",11),n._uU(11),n.qZA(),n.TgZ(12,"nz-descriptions-item",12),n._uU(13),n.qZA(),n.TgZ(14,"nz-descriptions-item",13),n._uU(15),n.qZA()(),n.TgZ(16,"nz-descriptions",14)(17,"nz-descriptions-item",15),n._uU(18),n.qZA(),n.TgZ(19,"nz-descriptions-item",16)(20,"p",17),n._uU(21),n.qZA()(),n.TgZ(22,"nz-descriptions-item",18)(23,"p",17),n._uU(24),n.qZA()()()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(2),n.Q6J("nzColumn",n.DdM(15,Ie)),n.xp6(2),n.AsE(" ",t.info.symbol," (ID: ",t.info._id,") "),n.xp6(2),n.hij(" ",t.info.uniprot["Swiss-Prot"]," "),n.xp6(1),n.Q6J("nzColumn",n.DdM(16,Ae)),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.chr," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.strand," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.start," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.end," "),n.xp6(1),n.Q6J("nzColumn",1),n.xp6(2),n.hij(" ",t.info.alias.join(", ")," "),n.xp6(2),n.Q6J("nzEllipsisRows",3),n.xp6(1),n.hij(" ",t.info.interproList.join(", ")," "),n.xp6(2),n.Q6J("nzEllipsisRows",3),n.xp6(1),n.hij(" ",t.info.pathwayList.join(", ")," ")}}function Je(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",6)(2,"p",17),n._uU(3),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(2),n.Q6J("nzEllipsisRows",12),n.xp6(1),n.hij(" ",t.info.summary," ")}}function Oe(e,o){if(1&e&&(n.TgZ(0,"tr")(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA()()),2&e){const t=o.$implicit;n.xp6(2),n.hij(" ",t.short_desc," "),n.xp6(2),n.hij(" ",t.desc," "),n.xp6(2),n.hij(" ",t.id," ")}}const Mn=function(){return{x:"100%",y:"200px"}};function Ge(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-table",19,20)(3,"thead")(4,"tr")(5,"th"),n._uU(6,"Name"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Description"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"ID"),n.qZA()()(),n.TgZ(11,"tbody"),n.YNc(12,Oe,7,3,"ng-template",21),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("nzData",t.info.interpro)("nzScroll",n.DdM(4,Mn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Qe(e,o){if(1&e&&(n.TgZ(0,"a",28),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit;n.s9C("href",null==t?null:t.link,n.LSH),n.xp6(1),n.hij(" ",t.src," ")}}function Se(e,o){if(1&e&&n._uU(0),2&e){const t=n.oxw().$implicit;n.hij(" ",t.src," ")}}function Ne(e,o){if(1&e&&(n.TgZ(0,"tr")(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td",25),n.YNc(4,Qe,2,2,"a",26),n.YNc(5,Se,1,1,"ng-template",null,27,n.W1O),n.qZA()()),2&e){const t=o.$implicit,r=n.MAs(6);n.xp6(2),n.hij(" ",t.name," "),n.xp6(2),n.Q6J("ngIf",null==t?null:t.link)("ngIfElse",r)}}function Ve(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-table",19,22)(3,"colgroup"),n._UZ(4,"col",23)(5,"col",24),n.qZA(),n.TgZ(6,"thead")(7,"tr")(8,"th"),n._uU(9,"Name"),n.qZA(),n.TgZ(10,"th",25),n._uU(11,"Source"),n.qZA()()(),n.TgZ(12,"tbody"),n.YNc(13,Ne,7,3,"ng-template",21),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("nzData",t.info.pathway)("nzScroll",n.DdM(4,Mn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ee(e,o){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",1)(2,"nz-card-tab")(3,"nz-tabset",2),n.NdJ("nzSelectChange",function(s){n.CHM(t);const g=n.oxw();return n.KtG(g.tabChange(s))}),n._UZ(4,"nz-tab",3)(5,"nz-tab",3)(6,"nz-tab",3)(7,"nz-tab",3),n.qZA()(),n.ynx(8,4),n.YNc(9,we,25,17,"ng-container",5),n.YNc(10,Je,4,2,"ng-container",5),n.YNc(11,Ge,13,5,"ng-container",5),n.YNc(12,Ve,14,5,"ng-container",5),n.BQk(),n.qZA(),n.BQk()}if(2&e){const t=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(1),n.Q6J("nzTitle","Overview"),n.xp6(1),n.Q6J("nzTitle","Summary"),n.xp6(1),n.Q6J("nzTitle","Protein Domains ("+t.info.interproList.length+")"),n.xp6(1),n.Q6J("nzTitle","Pathways ("+t.info.pathway.length+")"),n.xp6(1),n.Q6J("ngSwitch",t.tabIndex),n.xp6(1),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3)}}let Ue=(()=>{class e{constructor(t){this.infoService=t,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(JSON.parse(String(this.geneInfo))))}tabChange(t){this.tabIndex=t.index}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(be))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzAnimated","nzSelectChange"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nzSize","small",3,"nzColumn"],["nzTitle","Entrez Symbol"],["nzTitle","UniProtKB ID"],["nzTitle","Chromosome"],["nzTitle","Strand"],["nzTitle","Start"],["nzTitle","Stop"],["nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Aliases"],["nzTitle","Protein Domains"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzTitle","Pathways"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["proteinDomainsTable",""],["nz-virtual-scroll",""],["pathwaysTable",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["noPathwayLink",""],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(t,r){1&t&&n.YNc(0,Ee,13,10,"ng-container",0),2&t&&n.Q6J("ngIf",r.info)},dependencies:[u.O5,u.RF,u.n9,S.bd,S._i,H.xH,H.xw,N.N8,N.Uo,N._C,N.Om,N.p0,N.$Z,N.zu,T.ZU,W.R7,W.uj],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),e})();var q,Le=a(2606);function Fe(e,o){if(1&e&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij("(",t.length," displayed)")}}function Ye(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,Fe,2,1,"span",9),n.BQk()),2&e){const t=o.ngIf,r=n.oxw(2).ngIf;n.xp6(2),n.hij("",t," Total"),n.xp6(1),n.Q6J("ngIf",t>r.length)}}function De(e,o){if(1&e&&(n.YNc(0,Ye,4,2,"ng-container",1),n.ALo(1,"ngrxPush")),2&e){const t=n.oxw(2);n.Q6J("ngIf",n.lcZ(1,1,t.totalMolecularProfiles$))}}function $e(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"i",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return s.mpNameFilter=void 0,n.KtG(s.onModelUpdated())}),n.qZA()}}function je(e,o){if(1&e&&n.YNc(0,$e,1,0,"i",19),2&e){const t=n.oxw(3);n.Q6J("ngIf",t.mpNameFilter)}}function Be(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"form",10)(1,"nz-form-item")(2,"nz-form-label"),n._uU(3,"Filter"),n.qZA(),n.TgZ(4,"nz-form-control")(5,"nz-input-group",11)(6,"input",12),n.NdJ("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.mpNameFilter=s)}),n.qZA(),n.YNc(7,je,1,1,"ng-template",null,13,n.W1O),n.qZA()()(),n.TgZ(9,"nz-form-item")(10,"nz-form-label"),n._uU(11,"Show"),n.qZA(),n.TgZ(12,"nz-form-control")(13,"nz-select",14),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.onMolecularProfileStatusFilterChanged(s))})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.statusFilter=s)}),n._UZ(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.qZA()()()()}if(2&e){const t=n.MAs(8),r=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",t)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",r.mpNameFilter),n.xp6(7),n.Q6J("ngModel",r.statusFilter)}}function Re(e,o){if(1&e&&n._UZ(0,"cvc-molecular-profile-tag",22),2&e){const t=n.oxw().$implicit;n.Q6J("molecularProfile",t)}}function We(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Re,1,1,"cvc-molecular-profile-tag",21),n.BQk()),2&e){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t)}}function Ke(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-row",24)(1,"button",25),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().ngIf,g=n.oxw(2);return n.KtG(g.fetchMore(s.endCursor))}),n._uU(2,"Load More "),n.qZA(),n.TgZ(3,"nz-select",26),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.pageSize=s)}),n._UZ(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.qZA()()}if(2&e){const t=n.oxw(3);n.xp6(3),n.Q6J("ngModel",t.pageSize),n.xp6(1),n.Q6J("nzValue",50),n.xp6(1),n.Q6J("nzValue",100),n.xp6(1),n.Q6J("nzValue",300)}}function He(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Ke,7,4,"nz-row",23),n.BQk()),2&e){const t=o.ngIf;n.xp6(1),n.Q6J("ngIf",t.hasNextPage&&t.endCursor)}}function Xe(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,De,2,3,"ng-template",null,3,n.W1O),n.YNc(4,Be,18,4,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",5)(8,"cvc-tag-list",6),n.YNc(9,We,2,1,"ng-container",7),n.qZA()()(),n.YNc(10,He,2,1,"ng-container",1),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(3),s=n.MAs(5),g=n.oxw();n.xp6(1),n.Q6J("nzTitle",r)("nzExtra",s),n.xp6(8),n.Q6J("ngForOf",t),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,g.pageInfo$))}}let zn=((q=class{constructor(o){this.gql=o,this.statusFilter=f.MsG.All,this.debouncedQuery=new j.x,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into molecular profile menu component.");this.initialQueryVars={geneId:this.geneId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,w.U)(({data:o,loading:t})=>t&&!o),(0,V.h)(E.ep),(0,z.O)(!0)),this.connection$=this.result$.pipe((0,w.U)(o=>o.data?.molecularProfiles),(0,V.h)(E.ep)),this.pageInfo$=this.connection$.pipe((0,w.U)(o=>o.pageInfo),(0,V.h)(E.ep)),this.menuMolecularProfiles$=this.connection$.pipe((0,w.U)(o=>o.edges.map(t=>t.node),(0,V.h)(E.ep))),this.totalMolecularProfiles$=this.connection$.pipe((0,w.U)(o=>o.totalCount)),this.debouncedQuery.pipe((0,Tn.b)(500),(0,cn.t)(this)).subscribe(o=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(o){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:o})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into molecular profile menu component.");this.queryRef$.refetch({geneId:this.geneId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(o){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:o}})}}).\u0275fac=function(o){return new(o||q)(n.Y36(f.lcA))},q.\u0275cmp=n.Xpm({type:q,selectors:[["cvc-molecular-profile-menu"]],inputs:{geneId:"geneId"},decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Molecular Profile Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModel","ngModelChange"],["nzValue","WITH_ACCEPTED","nzLabel","Molecular Profiles with accepted evidence",2,"width","100%"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Molecular Profiles with accepted and/or submitted evidence","selected","",2,"width","100%"],["nzValue","WITH_SUBMITTED","nzLabel","Molecular Profiles with submitted evidence",2,"width","100%"],["nzValue","ALL","nzLabel","All Molecular Profiles",2,"width","100%"],["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,"molecularProfile",4,"ngIf"],[3,"molecularProfile"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModel","ngModelChange"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(o,t){1&o&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.YNc(2,Xe,12,6,"ng-container",1),n.ALo(3,"ngrxPush"),n.qZA()),2&o&&(n.Q6J("nzSpinning",n.lcZ(1,2,t.loading$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,4,t.menuMolecularProfiles$)))},dependencies:[u.sg,u.O5,P._Y,P.Fj,P.JJ,P.JL,P.On,P.F,Z.ix,tn.w,on.dQ,v.t3,v.SK,S.bd,I.Ls,O.Lr,O.Nx,O.iK,O.Fd,D.Zp,D.gB,D.ke,K.Ip,K.Vq,rn.W,T.ZU,Le.p,vn.$,B.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),q);function qe(e,o){if(1&e&&(n.TgZ(0,"p",23),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.Q6J("nzEllipsisRows",8),n.xp6(1),n.hij(" ",t.description," ")}}function ke(e,o){1&e&&n._UZ(0,"cvc-empty-revisable",24)}function nt(e,o){1&e&&n._UZ(0,"cvc-source-tag",26),2&e&&n.Q6J("source",o.$implicit)}function et(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,nt,1,1,"cvc-source-tag",25),n.qZA(),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",t.sources)}}function tt(e,o){1&e&&(n.TgZ(0,"span",27),n._uU(1,"None specified"),n.qZA())}function ot(e,o){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=o.$implicit;n.xp6(1),n.Oqu(t)}}function at(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",28),n.YNc(1,ot,2,1,"nz-tag",29),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.geneAliases)}}function it(e,o){1&e&&(n.TgZ(0,"span",27),n._uU(1,"None specified"),n.qZA())}zn=(0,xn.gn)([(0,cn.c)()],zn);const rt=function(){return[8,16]},ct=function(){return[8,8]};function st(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-row",1)(4,"nz-col",3)(5,"nz-descriptions",4)(6,"nz-descriptions-item",5),n.YNc(7,qe,2,2,"p",6),n.YNc(8,ke,1,0,"ng-template",null,7,n.W1O),n.qZA()()(),n.TgZ(10,"nz-col",3)(11,"nz-descriptions",8)(12,"nz-descriptions-item",9),n.YNc(13,et,3,1,"ng-container",10),n.YNc(14,tt,2,0,"ng-template",null,11,n.W1O),n.qZA(),n.YNc(16,at,2,1,"nz-descriptions-item",12),n.YNc(17,it,2,0,"ng-template",null,13,n.W1O),n.TgZ(19,"nz-descriptions-item",14)(20,"cvc-tag-list")(21,"cvc-link-tag",15),n._uU(22," DGIdb "),n.qZA(),n.TgZ(23,"cvc-link-tag",15),n._uU(24," ProteinPaint "),n.qZA()()()()()()(),n.TgZ(25,"nz-col",2),n._UZ(26,"cvc-my-gene-info",16),n.qZA(),n.TgZ(27,"nz-col",17)(28,"nz-tabset",18)(29,"nz-tab",19),n._UZ(30,"cvc-molecular-profile-menu",20),n.qZA(),n.TgZ(31,"nz-tab",21),n._UZ(32,"cvc-variant-menu",22),n.qZA()()()(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(9),s=n.MAs(15),g=n.MAs(18);n.xp6(1),n.Q6J("nzGutter",n.DdM(19,rt)),n.xp6(2),n.Q6J("nzGutter",n.DdM(20,ct)),n.xp6(2),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.description)("ngIfElse",r),n.xp6(4),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.sources.length>0)("ngIfElse",s),n.xp6(3),n.Q6J("ngIf",t.geneAliases.length>0)("ngIfElse",g),n.xp6(5),n.Q6J("href","http://dgidb.org/genes/"+t.name)("tooltip","View "+t.name+" on DGIdb"),n.xp6(2),n.Q6J("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+t.name)("tooltip","View "+t.name+" on ProteinPaint"),n.xp6(3),n.Q6J("geneInfo",t.myGeneInfoDetails),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(3),n.Q6J("geneId",t.id),n.xp6(2),n.Q6J("geneId",t.id)("geneName",t.name)}}const lt=[{path:"",component:Gn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,r,s){this.gql=t,this.viewerService=r,this.route=s,this.routeSub=this.route.params.subscribe(g=>{this.viewer$=this.viewerService.viewer$;let C=this.gql.watch({geneId:+g.geneId}).valueChanges;this.subscribableEntity={id:+g.geneId,entityType:f.o71.Gene},this.gene$=C.pipe((0,M.j)("data","gene")),this.loading$=C.pipe((0,M.j)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(f.cCu),n.Y36(Y.a),n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["noAliases",""],["nzTitle","Resources"],[3,"href","tooltip"],[3,"geneInfo"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],[3,"geneId"],["nzTitle","Variants"],[3,"geneId","geneName"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzTitle","Aliases"],[4,"ngFor","ngForOf"]],template:function(t,r){1&t&&(n.YNc(0,st,33,21,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,r.gene$))},dependencies:[u.sg,u.O5,v.t3,v.SK,W.R7,W.uj,T.ZU,dn.j,H.xH,H.xw,se.J,vn.$,le.l,pe.T,hn,Ue,zn,B.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),e})(),data:{breadcrumb:"Summary"}},{path:"comments",component:en,data:{breadcrumb:"Comments"}},{path:"revisions",component:Kn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fn,data:{breadcrumb:"Summary"}},{path:"events",component:Nn,data:{breadcrumb:"Events"}}]}];let pt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[x.Bz.forChild(lt),ce,J,Rn,Un,Qn,x.Bz]}),e})(),gt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,pt,Z.sL,I.PV,y.KJ,b.zf,T.ZJ,v.Jb,Q.s,F.c,c.m,G.Z,$.D,L.g,i.t]}),e})()}}]); \ No newline at end of file diff --git a/server/public/1107.c2541409069114d5.js b/server/public/1107.c2541409069114d5.js new file mode 100644 index 000000000..001f09ef2 --- /dev/null +++ b/server/public/1107.c2541409069114d5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1107],{4786:(sn,U,a)=>{a.d(U,{O:()=>j});var u=a(8130),i=a(2023),c=a(5879),G=a(6814),L=a(4190),$=a(5695),F=a(7417),Q=a(551),Z=a(8213),v=a(3103),I=a(2616);function y(_,z){}function b(_,z){if(1&_&&(c.ynx(0),c.TgZ(1,"a",4),c.YNc(2,y,0,0,"ng-template",5),c.qZA(),c.BQk()),2&_){const m=c.oxw(),M=c.MAs(2);c.xp6(1),c.Q6J("routerLink",m.evidence.link),c.xp6(1),c.Q6J("ngTemplateOutlet",M)}}function T(_,z){}function x(_,z){if(1&_&&c._UZ(0,"cvc-evidence-popover",9),2&_){const m=c.oxw(3);c.Q6J("evidenceId",m.evidence.id)}}function h(_,z){if(1&_&&c.YNc(0,x,1,1,"cvc-evidence-popover",8),2&_){const m=c.oxw(2);c.Q6J("ngIf",m.enablePopover)}}const n=function(_,z,m){return{rejected:_,submitted:z,accepted:m}};function J(_,z){if(1&_&&(c.TgZ(0,"nz-tag",6),c.YNc(1,T,0,0,"ng-template",5),c.qZA(),c.YNc(2,h,1,1,"ng-template",null,7,c.W1O)),2&_){const m=c.MAs(3),M=c.oxw(),Y=c.MAs(6);c.Q6J("ngClass",c.kEZ(5,n,"REJECTED"===M.evidence.status,"SUBMITTED"===M.evidence.status,"ACCEPTED"===M.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",M.enablePopover?"hover":null),c.xp6(1),c.Q6J("ngTemplateOutlet",Y)}}function f(_,z){}function nn(_,z){if(1&_&&c.YNc(0,f,0,0,"ng-template",5),2&_){c.oxw();const m=c.MAs(2);c.Q6J("ngTemplateOutlet",m)}}function en(_,z){if(1&_&&(c.TgZ(0,"cvc-icon-badges",10),c._UZ(1,"i",11),c.ALo(2,"entityColor"),c.ALo(3,"entityColor"),c.qZA(),c._uU(4)),2&_){const m=c.oxw();c.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.xp6(1),c.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?c.lcZ(2,4,"Rejected"):c.lcZ(3,6,"EvidenceItem")),c.xp6(3),c.hij(" ",m.evidence.name,"\n")}}let j=(()=>{class _ extends u.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,i.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return _.\u0275fac=function(m){return new(m||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,M){if(1&m&&(c.YNc(0,b,3,2,"ng-container",0),c.YNc(1,J,4,9,"ng-template",null,1,c.W1O),c.YNc(3,nn,1,1,"ng-template",null,2,c.W1O),c.YNc(5,en,5,8,"ng-template",null,3,c.W1O)),2&m){const Y=c.MAs(4);c.Q6J("ngIf",M.linked)("ngIfElse",Y)}},dependencies:[G.mk,G.O5,G.tP,L.rH,$.j,F.lU,Q.Ls,Z._,v.b,I.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),_})()},5959:(sn,U,a)=>{a.d(U,{u:()=>mn});var u=a(2023),i=a(5879),c=a(6814),G=a(4190),L=a(7417),$=a(5695),F=a(551),Q=a(5676),Z=a(7398),v=a(2181),I=a(313),y=a(2962),b=a(8125),T=a(4138),x=a(9408),h=a(1887),n=a(8091),J=a(2616);function f(l,d){if(1&l&&(i._UZ(0,"i",7),i.ALo(1,"entityColor"),i._uU(2)),2&l){const p=i.oxw().ngIf;i.Q6J("nzTwotoneColor",i.lcZ(1,2,"VariantGroup")),i.xp6(2),i.hij(" ",p.name," ")}}function nn(l,d){if(1&l&&i._UZ(0,"cvc-variant-tag",10),2&l){const p=d.$implicit;i.Q6J("enablePopover",!1)("variant",p.node)}}function en(l,d){if(1&l&&(i.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),i.YNc(2,nn,1,2,"cvc-variant-tag",9),i.qZA()()),2&l){const p=i.oxw().ngIf;i.xp6(2),i.Q6J("ngForOf",p.variants.edges)}}function j(l,d){if(1&l&&i._UZ(0,"cvc-source-tag",13),2&l){const p=d.$implicit;i.Q6J("enablePopover",!1)("source",p)}}function _(l,d){if(1&l&&(i.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),i.YNc(2,j,1,2,"cvc-source-tag",12),i.qZA()()),2&l){const p=i.oxw().ngIf;i.xp6(2),i.Q6J("ngForOf",p.sources)}}function z(l,d){if(1&l&&(i.ynx(0),i.TgZ(1,"nz-card",2),i.YNc(2,f,3,4,"ng-template",null,3,i.W1O),i._uU(4),i.TgZ(5,"nz-descriptions",4),i.YNc(6,en,3,1,"nz-descriptions-item",5),i.YNc(7,_,3,1,"nz-descriptions-item",6),i.qZA()(),i.BQk()),2&l){const p=d.ngIf,A=i.MAs(3);i.xp6(1),i.Q6J("nzTitle",A),i.xp6(3),i.hij(" ",p.description," "),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(1),i.Q6J("ngIf",p.variants.edges.length>0),i.xp6(1),i.Q6J("ngIf",p.sources.length>0)}}let m=(()=>{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,Z.U)(({data:p})=>p?.variantGroup),(0,v.h)(Q.ep))}}return l.\u0275fac=function(p){return new(p||l)(i.Y36(I.Zo2))},l.\u0275cmp=i.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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(p,A){1&p&&(i.TgZ(0,"div",0),i.YNc(1,z,8,5,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA()),2&p&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,A.variantGroup$)))},dependencies:[c.sg,c.O5,y.bd,b.R7,b.uj,F.Ls,T.T,x.I,h.$,n.fM,J.a],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})();var M=a(3103);function Y(l,d){}function B(l,d){if(1&l&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,Y,0,0,"ng-template",5),i.qZA(),i.BQk()),2&l){const p=i.oxw(),A=i.MAs(2);i.xp6(1),i.Q6J("routerLink",p.variantgroup.link),i.xp6(1),i.Q6J("ngTemplateOutlet",A)}}function tn(l,d){}function on(l,d){if(1&l&&i._UZ(0,"cvc-variant-group-popover",9),2&l){const p=i.oxw(3);i.Q6J("variantGroupId",p.variantgroup.id)}}function ln(l,d){if(1&l&&i.YNc(0,on,1,1,"cvc-variant-group-popover",8),2&l){const p=i.oxw(2);i.Q6J("ngIf",p.enablePopover)}}function pn(l,d){if(1&l&&(i.TgZ(0,"nz-tag",6),i.YNc(1,tn,0,0,"ng-template",5),i.qZA(),i.YNc(2,ln,1,1,"ng-template",null,7,i.W1O)),2&l){const p=i.MAs(3),A=i.oxw(),an=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",A.enablePopover?"hover":null),i.xp6(1),i.Q6J("ngTemplateOutlet",an)}}function gn(l,d){}function _n(l,d){if(1&l&&i.YNc(0,gn,0,0,"ng-template",5),2&l){i.oxw();const p=i.MAs(2);i.Q6J("ngTemplateOutlet",p)}}function un(l,d){if(1&l&&(i.TgZ(0,"cvc-icon-badges",10),i._UZ(1,"i",11),i.ALo(2,"entityColor"),i.qZA(),i._uU(3)),2&l){const p=i.oxw();i.Q6J("flagged",p.variantgroup.flagged)("entityColor",p.iconColor),i.xp6(1),i.Q6J("nzTwotoneColor",i.lcZ(2,4,"VariantGroup")),i.xp6(2),i.hij(" ",p.variantgroup.name,"\n")}}let mn=(()=>{class l{set variantgroup(p){if(!p)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=p}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,u.f)("VariantGroup")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=i.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(p,A){if(1&p&&(i.YNc(0,B,3,2,"ng-container",0),i.YNc(1,pn,4,4,"ng-template",null,1,i.W1O),i.YNc(3,_n,1,1,"ng-template",null,2,i.W1O),i.YNc(5,un,4,6,"ng-template",null,3,i.W1O)),2&p){const an=i.MAs(4);i.Q6J("ngIf",A.linked)("ngIfElse",an)}},dependencies:[c.O5,c.tP,G.rH,L.lU,$.j,F.Ls,m,M.b,J.a],encapsulation:2,changeDetection:0}),l})()},3641:(sn,U,a)=>{a.d(U,{G:()=>x});var u=a(6814),i=a(4190),c=a(7417),G=a(5695),L=a(551),$=a(366),F=a(8641),Q=a(7528),Z=a(2524),v=a(2962),I=a(8125),y=a(5879);let b=(()=>{class h{}return h.\u0275fac=function(J){return new(J||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[u.ez,v.vh,I.q6,L.PV,F.s,Q.Q,$.$,Z.s]}),h})();var T=a(3146);let x=(()=>{class h{}return h.\u0275fac=function(J){return new(J||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[u.ez,i.Bz,c.$6,G.X,L.PV,b,Z.s,T.C]}),h})()},4601:(sn,U,a)=>{a.r(U),a.d(U,{GenesDetailModule:()=>gt});var u=a(6814),i=a(9894),c=a(5725),G=a(936),L=a(7129),$=a(2419),F=a(4059),Q=a(2524),Z=a(2840),v=a(95),I=a(551),y=a(6254),b=a(2574),T=a(2392),x=a(4190),h=a(1260),n=a(5879);let J=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,h.l]}),e})();var f=a(313),nn=a(5565);let en=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.geneId,entityType:f.OfU.Gene}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-comment-list",0),2&t&&n.Q6J("commentable",r.commentable)},dependencies:[nn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var j=a(8645),_=a(5619),z=a(7921),m=a(9773),M=a(4223),Y=a(951),B=a(8091),tn=a(855),on=a(1958),ln=a(5098),pn=a(327),gn=a(1801),_n=a(1520),un=a(3145),mn=a(8295),l=a(2616);const d=function(e){return["/genes",e,"revise"]};function p(e,o){if(1&e&&(n.TgZ(0,"button",14,15),n._uU(2," Revise "),n.qZA()),2&e){const t=n.MAs(1),r=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,d,r.id))("nzType",t.isActive?"primary":"default")}}function A(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,p,3,4,"button",13),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function an(e,o){if(1&e&&(n.TgZ(0,"button",17,15),n._uU(2," Flag "),n.qZA()),2&e){const t=n.MAs(1);n.Q6J("nzType",t.isActive?"primary":"default")}}function Pn(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,an,3,1,"button",16),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function Zn(e,o){if(1&e&&n._UZ(0,"cvc-entity-subscription-button",19),2&e){const t=n.oxw(2).ngrxLet,r=n.oxw(3);n.Q6J("viewer",t)("subscribableId",r.subscribable.id)}}function bn(e,o){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Zn,1,2,"cvc-entity-subscription-button",18),n.qZA()),2&e){const t=n.oxw().ngrxLet,r=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.signedIn&&r.subscribable)}}function In(e,o){1&e&&(n.TgZ(0,"nz-space",11),n.YNc(1,A,2,1,"span",12),n.YNc(2,Pn,2,1,"span",12),n.YNc(3,bn,2,1,"span",12),n.qZA())}function An(e,o){if(1&e&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,In,4,0,"nz-space",10),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",t.viewer$)}}function wn(e,o){if(1&e&&(n.TgZ(0,"nz-col",20),n._UZ(1,"cvc-contributor-avatars",21),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("subscribable",t.subscribable)}}const Jn=function(e){return{flagged:e}};function On(e,o){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"div",2),n.ALo(3,"ngrxPush"),n.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),n._UZ(6,"i",5),n.ALo(7,"entityColor"),n._uU(8),n.qZA(),n.TgZ(9,"nz-page-header-subtitle"),n._uU(10),n.qZA(),n.YNc(11,An,2,1,"nz-page-header-extra",6),n.TgZ(12,"nz-page-header-content")(13,"cvc-tab-navigation",7),n.ALo(14,"ngrxPush"),n.YNc(15,wn,2,1,"ng-template",null,8,n.W1O),n.qZA(),n.TgZ(17,"div",9),n._UZ(18,"router-outlet"),n.qZA()()()(),n.BQk()),2&e){const t=o.ngIf,r=n.oxw();n.xp6(1),n.Q6J("displayName",t.name),n.xp6(1),n.Q6J("flags",n.lcZ(3,8,r.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(14,Jn,t.flags.totalCount>0)),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(7,10,"Gene")),n.xp6(2),n.hij(" ",t.name," "),n.xp6(2),n.hij(" ",t.officialName," "),n.xp6(1),n.Q6J("ngrxLet",r.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(14,12,r.tabs$))}}let Gn=(()=>{class e{constructor(t,r,s){this.gql=t,this.viewerService=r,this.route=s,this.destroy$=new j.x,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.filterCurators=g=>"curator"==g.role,this.filterEditors=g=>"editor"==g.role||"admin"==g.role,this.tabs$=new _.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(g=>{let R=this.gql.watch({geneId:+g.geneId}).valueChanges;this.loading$=R.pipe((0,M.j)("loading"),(0,z.O)(!0)),this.gene$=R.pipe((0,M.j)("data","gene")),this.flagsTotal$=this.gene$.pipe((0,M.j)("flags","totalCount")),this.gene$.pipe((0,m.R)(this.destroy$)).subscribe({next:C=>{this.tabs$.next(this.defaultTabs.map(k=>"Revisions"===k.tabLabel?{badgeCount:C?.revisions.totalCount,...k}:"Comments"===k.tabLabel?{badgeCount:C?.comments.totalCount,badgeColor:"#cccccc",...k}:k))}}),this.subscribable={id:+g.geneId,entityType:f.o71.Gene}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(f.TNk),n.Y36(Y.a),n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["genes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(t,r){1&t&&(n.YNc(0,On,19,16,"ng-container",0),n.ALo(1,"async")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,r.gene$))},dependencies:[u.mk,u.O5,x.lC,x.rH,x.Od,B.eJ,Z.ix,tn.w,on.dQ,I.Ls,y.$O,y.u9,y.yG,y.u5,y.Jp,b.NU,b.$1,v.t3,ln.P,pn.o,gn.Y,_n.N,un.I,mn.Q,u.Ov,B.fM,l.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{flex-wrap:nowrap;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})(),Qn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,i.t]}),e})();var Sn=a(7441);let Nn=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.geneId,entityType:f.o71.Gene}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-event-feed",0),2&t&&n.Q6J("subscribable",r.subscribable)},dependencies:[Sn.o],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var S=a(2962),Vn=a(4139),En=a(7937);let Un=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,S.vh,b.zf,Vn.H0,En.M]}),e})();var Ln=a(4385);let Fn=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:f.sfv.Gene,id:+this.route.snapshot.params.geneId}}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,r){1&t&&n._UZ(0,"cvc-flag-list-and-filter",0),2&t&&n.Q6J("flaggable",r.flaggable)},dependencies:[Ln.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Yn=a(6976),dn=a(5695),Dn=a(1595),$n=a(6928),jn=a(1665),Bn=a(2534);let Rn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,Yn.Ph,S.vh,b.zf,dn.X,T.ZJ,$n.Rt,Dn.N,jn.i,Bn.A]}),e})();var Wn=a(6126);let Kn=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(r=>{this.geneId=+r.geneId,this.entityType=f.oRL.Gene})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,r){1&t&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&n.Q6J("id",r.geneId)("entityType",r.entityType)},dependencies:[Wn.a],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var W=a(8125),Hn=a(3511),fn=a(366),Xn=a(6067),qn=a(8641),P=a(6223),kn=a(7528),O=a(3599),D=a(824),K=a(9691),ne=a(3717),Cn=a(2612),rn=a(2669);let ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,P.u5,Z.sL,v.Jb,S.vh,I.PV,O.U5,D.o7,K.LV,T.ZJ,Cn.Wr,rn.j,Q.s,kn.Q,fn.$,ne.M]}),e})();var H=a(9382),N=a(3740);let te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,S.vh,H.we,N.HQ,v.Jb,N.HQ,T.ZJ,W.q6]}),e})();var oe=a(2655),ae=a(8706),ie=a(8527);let re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,P.u5,Z.sL,v.Jb,S.vh,I.PV,O.U5,D.o7,K.LV,rn.j,T.ZJ,Q.s,ie.u,fn.$]}),e})(),ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,v.Jb,W.q6,T.ZJ,b.zf,dn.X,H.we,Hn.o,fn.$,Xn.X,qn.s,oe.x,ae.W,ee,te,re]}),e})();var X,se=a(3493),vn=a(1887),le=a(3317),pe=a(4138),xn=a(655),w=a(7398),V=a(2181),Tn=a(3620),cn=a(1791),E=a(5676),ge=a(2023),_e=a(9408);function ue(e,o){if(1&e&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij("(",t.length," displayed)")}}function me(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,ue,2,1,"span",9),n.BQk()),2&e){const t=o.ngIf,r=n.oxw(2).ngIf;n.xp6(2),n.hij("",t," Total"),n.xp6(1),n.Q6J("ngIf",t>r.length)}}function de(e,o){if(1&e&&(n.YNc(0,me,4,2,"ng-container",1),n.ALo(1,"ngrxPush")),2&e){const t=n.oxw(2);n.Q6J("ngIf",n.lcZ(1,1,t.totalVariants$))}}function fe(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"i",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return s.variantNameFilter=void 0,n.KtG(s.onModelUpdated())}),n.qZA()}}function ve(e,o){if(1&e&&n.YNc(0,fe,1,0,"i",19),2&e){const t=n.oxw(3);n.Q6J("ngIf",t.variantNameFilter)}}function he(e,o){if(1&e&&n._UZ(0,"nz-option",24),2&e){const t=o.$implicit;n.Q6J("nzLabel",t.name)("nzValue",t)}}function ze(e,o){if(1&e&&(n.TgZ(0,"div",25),n._UZ(1,"i",26),n._uU(2),n.qZA()),2&e){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("nzTwotoneColor",r.iconColor),n.xp6(1),n.hij(" ",t.nzLabel," ")}}function Ce(e,o){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-select",21),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.variantTypeFilter=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.onModelUpdated())}),n.YNc(2,he,1,2,"nz-option",22),n.qZA(),n.YNc(3,ze,3,2,"ng-template",null,23,n.W1O),n.BQk()}if(2&e){const t=o.ngIf,r=n.MAs(4),s=n.oxw(3);n.xp6(1),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",s.variantTypeFilter)("nzCustomTemplate",r),n.xp6(1),n.Q6J("ngForOf",t)}}function xe(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"form",10)(1,"nz-form-item")(2,"nz-form-label"),n._uU(3,"Name Filter"),n.qZA(),n.TgZ(4,"nz-form-control")(5,"nz-input-group",11)(6,"input",12),n.NdJ("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.variantNameFilter=s)}),n.qZA(),n.YNc(7,ve,1,1,"ng-template",null,13,n.W1O),n.qZA()()(),n.TgZ(9,"nz-form-item")(10,"nz-form-label"),n._uU(11,"Variant Type"),n.qZA(),n.TgZ(12,"nz-form-control"),n.YNc(13,Ce,5,4,"ng-container",1),n.ALo(14,"ngrxPush"),n.qZA()(),n.TgZ(15,"nz-form-item")(16,"nz-form-label"),n._uU(17," No Variant Type "),n.qZA(),n.TgZ(18,"nz-form-control")(19,"label",14),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.hasNoVariantType=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())}),n.qZA()()(),n.TgZ(20,"nz-form-item")(21,"nz-form-label"),n._uU(22,"Order By"),n.qZA(),n.TgZ(23,"nz-form-control")(24,"nz-select",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.onVariantSortOrderChanged(s))})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.sortBy=s)}),n._UZ(25,"nz-option",16)(26,"nz-option",17)(27,"nz-option",18),n.qZA()()()()}if(2&e){const t=n.MAs(8),r=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",t)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",r.variantNameFilter),n.xp6(7),n.Q6J("ngIf",n.lcZ(14,6,r.menuVariantTypes$)),n.xp6(6),n.Q6J("ngModel",r.hasNoVariantType),n.xp6(5),n.Q6J("ngModel",r.sortBy)}}function Te(e,o){if(1&e&&n._UZ(0,"cvc-variant-tag",28),2&e){const t=n.oxw().$implicit;n.Q6J("variant",t)}}function Me(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Te,1,1,"cvc-variant-tag",27),n.BQk()),2&e){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t)}}function ye(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-row",30)(1,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().ngIf,g=n.oxw(2);return n.KtG(g.fetchMore(s.endCursor))}),n._uU(2,"Load More "),n.qZA(),n.TgZ(3,"nz-select",32),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.pageSize=s)}),n._UZ(4,"nz-option",33)(5,"nz-option",34)(6,"nz-option",35),n.qZA()()}if(2&e){const t=n.oxw(3);n.xp6(3),n.Q6J("ngModel",t.pageSize),n.xp6(1),n.Q6J("nzValue",50),n.xp6(1),n.Q6J("nzValue",100),n.xp6(1),n.Q6J("nzValue",300)}}function Pe(e,o){if(1&e&&(n.ynx(0),n.YNc(1,ye,7,4,"nz-row",29),n.BQk()),2&e){const t=o.ngIf;n.xp6(1),n.Q6J("ngIf",t.hasNextPage&&t.endCursor)}}function Ze(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,de,2,3,"ng-template",null,3,n.W1O),n.YNc(4,xe,28,8,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",5)(8,"cvc-tag-list",6),n.YNc(9,Me,2,1,"ng-container",7),n.qZA()()(),n.YNc(10,Pe,2,1,"ng-container",1),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(3),s=n.MAs(5),g=n.oxw();n.xp6(1),n.Q6J("nzTitle",r)("nzExtra",s),n.xp6(8),n.Q6J("ngForOf",t),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,g.pageInfo$))}}let hn=((X=class{constructor(o,t){this.gql=o,this.variantTypeGql=t,this.sortBy=f.d4o.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new j.x,this.pageSize=50,this.iconColor=(0,ge.f)("VariantType")}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.initialQueryVars={geneId:this.geneId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,w.U)(({data:o,loading:t})=>t&&!o),(0,V.h)(E.ep),(0,z.O)(!0)),this.connection$=this.result$.pipe((0,w.U)(o=>o.data?.variants),(0,V.h)(E.ep)),this.pageInfo$=this.connection$.pipe((0,w.U)(o=>o.pageInfo),(0,V.h)(E.ep)),this.menuVariants$=this.connection$.pipe((0,w.U)(o=>o.edges.map(t=>t.node),(0,V.h)(E.ep))),this.totalVariants$=this.connection$.pipe((0,w.U)(o=>o.totalCount)),this.debouncedQuery.pipe((0,Tn.b)(500),(0,cn.t)(this)).subscribe(o=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({geneId:this.geneId}).valueChanges.pipe((0,w.U)(o=>o.data?.variantTypes.edges?.map(t=>t.node)),(0,V.h)(E.ep))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(o){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:o,direction:o==f.d4o.CoordinateEnd?f.SrV.Desc:f.SrV.Asc}})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.queryRef$.refetch({geneId:this.geneId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(o=>o.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:f.SrV.Asc}})}fetchMore(o){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:o}})}}).\u0275fac=function(o){return new(o||X)(n.Y36(f.zwS),n.Y36(f.l$X))},X.\u0275cmp=n.Xpm({type:X,selectors:[["cvc-variant-menu"]],inputs:{geneId:"geneId",geneName:"geneName"},decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nz-checkbox","","name","noVt",3,"ngModel","ngModelChange"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModel","ngModelChange"],["nzValue","NAME","nzLabel","Variant Name","selected","",2,"width","100%"],["nzValue","COORDINATE_START","nzLabel","Start Position",2,"width","100%"],["nzValue","COORDINATE_END","nzLabel","End Position",2,"width","100%"],["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"],["nzAllowClear","","nzSize","small","nzMode","multiple","nzPlaceHolder","Variant Type","name","variantTypes","nzShowSearch","",2,"min-width","115px",3,"nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["variantTypeTemplate",""],[3,"nzLabel","nzValue"],[1,"ant-select-selection-item-content"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone",3,"nzTwotoneColor"],[3,"variant",4,"ngIf"],[3,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModel","ngModelChange"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(o,t){1&o&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ze,12,6,"ng-container",1),n.ALo(3,"ngrxPush"),n.qZA()),2&o&&(n.Q6J("nzSpinning",n.lcZ(1,2,t.loading$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,4,t.menuVariants$)))},dependencies:[u.sg,u.O5,P._Y,P.Fj,P.JJ,P.JL,P.On,P.F,Z.ix,tn.w,on.dQ,v.t3,v.SK,S.bd,I.Ls,O.Lr,O.Nx,O.iK,O.Fd,D.Zp,D.gB,D.ke,K.Ip,K.Vq,T.ZU,Cn.Ie,rn.W,_e.I,vn.$,B.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),X);hn=(0,xn.gn)([(0,cn.c)()],hn);let be=(()=>{class e{constructor(){}parse(t){const r={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",pid:"http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&jpg=on&pathway_id=",wikipathways:"http://wikipathways.org/index.php/Pathway:",netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},s=t.pathway||[],g=[];let R;return Object.keys(s).forEach(function(C){Array.isArray(s[C])||(s[C]=[s[C]]),s[C].forEach(function(k,yn){R=r[C]+s[C][yn].id,null===r[C]&&(R=null),g.push({name:s[C][yn].name,link:R,src:C})})}),t.pathway=g,t.pathwayList=g.map(C=>C.name),!Array.isArray(t.alias)&&t.alias&&(t.alias=[t.alias]),!Array.isArray(t.interpro)&&t.interpro&&(t.interpro=[t.interpro]),t.interproList=t.interpro.map(C=>C.desc),t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=n.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ie=function(){return{xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}},Ae=function(){return{xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}};function we(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",6)(2,"nz-descriptions",7)(3,"nz-descriptions-item",8),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",9),n._uU(6),n.qZA()(),n.TgZ(7,"nz-descriptions",7)(8,"nz-descriptions-item",10),n._uU(9),n.qZA(),n.TgZ(10,"nz-descriptions-item",11),n._uU(11),n.qZA(),n.TgZ(12,"nz-descriptions-item",12),n._uU(13),n.qZA(),n.TgZ(14,"nz-descriptions-item",13),n._uU(15),n.qZA()(),n.TgZ(16,"nz-descriptions",14)(17,"nz-descriptions-item",15),n._uU(18),n.qZA(),n.TgZ(19,"nz-descriptions-item",16)(20,"p",17),n._uU(21),n.qZA()(),n.TgZ(22,"nz-descriptions-item",18)(23,"p",17),n._uU(24),n.qZA()()()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(2),n.Q6J("nzColumn",n.DdM(15,Ie)),n.xp6(2),n.AsE(" ",t.info.symbol," (ID: ",t.info._id,") "),n.xp6(2),n.hij(" ",t.info.uniprot["Swiss-Prot"]," "),n.xp6(1),n.Q6J("nzColumn",n.DdM(16,Ae)),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.chr," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.strand," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.start," "),n.xp6(2),n.hij(" ",t.info.genomic_pos_hg19.end," "),n.xp6(1),n.Q6J("nzColumn",1),n.xp6(2),n.hij(" ",t.info.alias.join(", ")," "),n.xp6(2),n.Q6J("nzEllipsisRows",3),n.xp6(1),n.hij(" ",t.info.interproList.join(", ")," "),n.xp6(2),n.Q6J("nzEllipsisRows",3),n.xp6(1),n.hij(" ",t.info.pathwayList.join(", ")," ")}}function Je(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",6)(2,"p",17),n._uU(3),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(2),n.Q6J("nzEllipsisRows",12),n.xp6(1),n.hij(" ",t.info.summary," ")}}function Oe(e,o){if(1&e&&(n.TgZ(0,"tr")(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA()()),2&e){const t=o.$implicit;n.xp6(2),n.hij(" ",t.short_desc," "),n.xp6(2),n.hij(" ",t.desc," "),n.xp6(2),n.hij(" ",t.id," ")}}const Mn=function(){return{x:"100%",y:"200px"}};function Ge(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-table",19,20)(3,"thead")(4,"tr")(5,"th"),n._uU(6,"Name"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Description"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"ID"),n.qZA()()(),n.TgZ(11,"tbody"),n.YNc(12,Oe,7,3,"ng-template",21),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("nzData",t.info.interpro)("nzScroll",n.DdM(4,Mn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Qe(e,o){if(1&e&&(n.TgZ(0,"a",28),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit;n.s9C("href",null==t?null:t.link,n.LSH),n.xp6(1),n.hij(" ",t.src," ")}}function Se(e,o){if(1&e&&n._uU(0),2&e){const t=n.oxw().$implicit;n.hij(" ",t.src," ")}}function Ne(e,o){if(1&e&&(n.TgZ(0,"tr")(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td",25),n.YNc(4,Qe,2,2,"a",26),n.YNc(5,Se,1,1,"ng-template",null,27,n.W1O),n.qZA()()),2&e){const t=o.$implicit,r=n.MAs(6);n.xp6(2),n.hij(" ",t.name," "),n.xp6(2),n.Q6J("ngIf",null==t?null:t.link)("ngIfElse",r)}}function Ve(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-table",19,22)(3,"colgroup"),n._UZ(4,"col",23)(5,"col",24),n.qZA(),n.TgZ(6,"thead")(7,"tr")(8,"th"),n._uU(9,"Name"),n.qZA(),n.TgZ(10,"th",25),n._uU(11,"Source"),n.qZA()()(),n.TgZ(12,"tbody"),n.YNc(13,Ne,7,3,"ng-template",21),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("nzData",t.info.pathway)("nzScroll",n.DdM(4,Mn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ee(e,o){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",1)(2,"nz-card-tab")(3,"nz-tabset",2),n.NdJ("nzSelectChange",function(s){n.CHM(t);const g=n.oxw();return n.KtG(g.tabChange(s))}),n._UZ(4,"nz-tab",3)(5,"nz-tab",3)(6,"nz-tab",3)(7,"nz-tab",3),n.qZA()(),n.ynx(8,4),n.YNc(9,we,25,17,"ng-container",5),n.YNc(10,Je,4,2,"ng-container",5),n.YNc(11,Ge,13,5,"ng-container",5),n.YNc(12,Ve,14,5,"ng-container",5),n.BQk(),n.qZA(),n.BQk()}if(2&e){const t=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(1),n.Q6J("nzTitle","Overview"),n.xp6(1),n.Q6J("nzTitle","Summary"),n.xp6(1),n.Q6J("nzTitle","Protein Domains ("+t.info.interproList.length+")"),n.xp6(1),n.Q6J("nzTitle","Pathways ("+t.info.pathway.length+")"),n.xp6(1),n.Q6J("ngSwitch",t.tabIndex),n.xp6(1),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3)}}let Ue=(()=>{class e{constructor(t){this.infoService=t,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(JSON.parse(String(this.geneInfo))))}tabChange(t){this.tabIndex=t.index}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(be))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzAnimated","nzSelectChange"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nzSize","small",3,"nzColumn"],["nzTitle","Entrez Symbol"],["nzTitle","UniProtKB ID"],["nzTitle","Chromosome"],["nzTitle","Strand"],["nzTitle","Start"],["nzTitle","Stop"],["nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Aliases"],["nzTitle","Protein Domains"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzTitle","Pathways"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["proteinDomainsTable",""],["nz-virtual-scroll",""],["pathwaysTable",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["noPathwayLink",""],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(t,r){1&t&&n.YNc(0,Ee,13,10,"ng-container",0),2&t&&n.Q6J("ngIf",r.info)},dependencies:[u.O5,u.RF,u.n9,S.bd,S._i,H.xH,H.xw,N.N8,N.Uo,N._C,N.Om,N.p0,N.$Z,N.zu,T.ZU,W.R7,W.uj],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),e})();var q,Le=a(2606);function Fe(e,o){if(1&e&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij("(",t.length," displayed)")}}function Ye(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,Fe,2,1,"span",9),n.BQk()),2&e){const t=o.ngIf,r=n.oxw(2).ngIf;n.xp6(2),n.hij("",t," Total"),n.xp6(1),n.Q6J("ngIf",t>r.length)}}function De(e,o){if(1&e&&(n.YNc(0,Ye,4,2,"ng-container",1),n.ALo(1,"ngrxPush")),2&e){const t=n.oxw(2);n.Q6J("ngIf",n.lcZ(1,1,t.totalMolecularProfiles$))}}function $e(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"i",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return s.mpNameFilter=void 0,n.KtG(s.onModelUpdated())}),n.qZA()}}function je(e,o){if(1&e&&n.YNc(0,$e,1,0,"i",19),2&e){const t=n.oxw(3);n.Q6J("ngIf",t.mpNameFilter)}}function Be(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"form",10)(1,"nz-form-item")(2,"nz-form-label"),n._uU(3,"Filter"),n.qZA(),n.TgZ(4,"nz-form-control")(5,"nz-input-group",11)(6,"input",12),n.NdJ("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onModelUpdated())})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.mpNameFilter=s)}),n.qZA(),n.YNc(7,je,1,1,"ng-template",null,13,n.W1O),n.qZA()()(),n.TgZ(9,"nz-form-item")(10,"nz-form-label"),n._uU(11,"Show"),n.qZA(),n.TgZ(12,"nz-form-control")(13,"nz-select",14),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.onMolecularProfileStatusFilterChanged(s))})("ngModelChange",function(s){n.CHM(t);const g=n.oxw(2);return n.KtG(g.statusFilter=s)}),n._UZ(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.qZA()()()()}if(2&e){const t=n.MAs(8),r=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",t)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",r.mpNameFilter),n.xp6(7),n.Q6J("ngModel",r.statusFilter)}}function Re(e,o){if(1&e&&n._UZ(0,"cvc-molecular-profile-tag",22),2&e){const t=n.oxw().$implicit;n.Q6J("molecularProfile",t)}}function We(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Re,1,1,"cvc-molecular-profile-tag",21),n.BQk()),2&e){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t)}}function Ke(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-row",24)(1,"button",25),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().ngIf,g=n.oxw(2);return n.KtG(g.fetchMore(s.endCursor))}),n._uU(2,"Load More "),n.qZA(),n.TgZ(3,"nz-select",26),n.NdJ("ngModelChange",function(s){n.CHM(t);const g=n.oxw(3);return n.KtG(g.pageSize=s)}),n._UZ(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.qZA()()}if(2&e){const t=n.oxw(3);n.xp6(3),n.Q6J("ngModel",t.pageSize),n.xp6(1),n.Q6J("nzValue",50),n.xp6(1),n.Q6J("nzValue",100),n.xp6(1),n.Q6J("nzValue",300)}}function He(e,o){if(1&e&&(n.ynx(0),n.YNc(1,Ke,7,4,"nz-row",23),n.BQk()),2&e){const t=o.ngIf;n.xp6(1),n.Q6J("ngIf",t.hasNextPage&&t.endCursor)}}function Xe(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,De,2,3,"ng-template",null,3,n.W1O),n.YNc(4,Be,18,4,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",5)(8,"cvc-tag-list",6),n.YNc(9,We,2,1,"ng-container",7),n.qZA()()(),n.YNc(10,He,2,1,"ng-container",1),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(3),s=n.MAs(5),g=n.oxw();n.xp6(1),n.Q6J("nzTitle",r)("nzExtra",s),n.xp6(8),n.Q6J("ngForOf",t),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,g.pageInfo$))}}let zn=((q=class{constructor(o){this.gql=o,this.statusFilter=f.MsG.All,this.debouncedQuery=new j.x,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into molecular profile menu component.");this.initialQueryVars={geneId:this.geneId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,w.U)(({data:o,loading:t})=>t&&!o),(0,V.h)(E.ep),(0,z.O)(!0)),this.connection$=this.result$.pipe((0,w.U)(o=>o.data?.molecularProfiles),(0,V.h)(E.ep)),this.pageInfo$=this.connection$.pipe((0,w.U)(o=>o.pageInfo),(0,V.h)(E.ep)),this.menuMolecularProfiles$=this.connection$.pipe((0,w.U)(o=>o.edges.map(t=>t.node),(0,V.h)(E.ep))),this.totalMolecularProfiles$=this.connection$.pipe((0,w.U)(o=>o.totalCount)),this.debouncedQuery.pipe((0,Tn.b)(500),(0,cn.t)(this)).subscribe(o=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(o){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:o})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into molecular profile menu component.");this.queryRef$.refetch({geneId:this.geneId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(o){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:o}})}}).\u0275fac=function(o){return new(o||q)(n.Y36(f.lcA))},q.\u0275cmp=n.Xpm({type:q,selectors:[["cvc-molecular-profile-menu"]],inputs:{geneId:"geneId"},decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Molecular Profile Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModel","ngModelChange"],["nzValue","WITH_ACCEPTED","nzLabel","Molecular Profiles with accepted evidence",2,"width","100%"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Molecular Profiles with accepted and/or submitted evidence","selected","",2,"width","100%"],["nzValue","WITH_SUBMITTED","nzLabel","Molecular Profiles with submitted evidence",2,"width","100%"],["nzValue","ALL","nzLabel","All Molecular Profiles",2,"width","100%"],["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,"molecularProfile",4,"ngIf"],[3,"molecularProfile"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModel","ngModelChange"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(o,t){1&o&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.YNc(2,Xe,12,6,"ng-container",1),n.ALo(3,"ngrxPush"),n.qZA()),2&o&&(n.Q6J("nzSpinning",n.lcZ(1,2,t.loading$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(3,4,t.menuMolecularProfiles$)))},dependencies:[u.sg,u.O5,P._Y,P.Fj,P.JJ,P.JL,P.On,P.F,Z.ix,tn.w,on.dQ,v.t3,v.SK,S.bd,I.Ls,O.Lr,O.Nx,O.iK,O.Fd,D.Zp,D.gB,D.ke,K.Ip,K.Vq,rn.W,T.ZU,Le.p,vn.$,B.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),q);function qe(e,o){if(1&e&&(n.TgZ(0,"p",23),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.Q6J("nzEllipsisRows",8),n.xp6(1),n.hij(" ",t.description," ")}}function ke(e,o){1&e&&n._UZ(0,"cvc-empty-revisable",24)}function nt(e,o){1&e&&n._UZ(0,"cvc-source-tag",26),2&e&&n.Q6J("source",o.$implicit)}function et(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,nt,1,1,"cvc-source-tag",25),n.qZA(),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",t.sources)}}function tt(e,o){1&e&&(n.TgZ(0,"span",27),n._uU(1,"None specified"),n.qZA())}function ot(e,o){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=o.$implicit;n.xp6(1),n.Oqu(t)}}function at(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",28),n.YNc(1,ot,2,1,"nz-tag",29),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.geneAliases)}}function it(e,o){1&e&&(n.TgZ(0,"span",27),n._uU(1,"None specified"),n.qZA())}zn=(0,xn.gn)([(0,cn.c)()],zn);const rt=function(){return[8,16]},ct=function(){return[8,8]};function st(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-row",1)(4,"nz-col",3)(5,"nz-descriptions",4)(6,"nz-descriptions-item",5),n.YNc(7,qe,2,2,"p",6),n.YNc(8,ke,1,0,"ng-template",null,7,n.W1O),n.qZA()()(),n.TgZ(10,"nz-col",3)(11,"nz-descriptions",8)(12,"nz-descriptions-item",9),n.YNc(13,et,3,1,"ng-container",10),n.YNc(14,tt,2,0,"ng-template",null,11,n.W1O),n.qZA(),n.YNc(16,at,2,1,"nz-descriptions-item",12),n.YNc(17,it,2,0,"ng-template",null,13,n.W1O),n.TgZ(19,"nz-descriptions-item",14)(20,"cvc-tag-list")(21,"cvc-link-tag",15),n._uU(22," DGIdb "),n.qZA(),n.TgZ(23,"cvc-link-tag",15),n._uU(24," ProteinPaint "),n.qZA()()()()()()(),n.TgZ(25,"nz-col",2),n._UZ(26,"cvc-my-gene-info",16),n.qZA(),n.TgZ(27,"nz-col",17)(28,"nz-tabset",18)(29,"nz-tab",19),n._UZ(30,"cvc-molecular-profile-menu",20),n.qZA(),n.TgZ(31,"nz-tab",21),n._UZ(32,"cvc-variant-menu",22),n.qZA()()()(),n.BQk()),2&e){const t=o.ngIf,r=n.MAs(9),s=n.MAs(15),g=n.MAs(18);n.xp6(1),n.Q6J("nzGutter",n.DdM(19,rt)),n.xp6(2),n.Q6J("nzGutter",n.DdM(20,ct)),n.xp6(2),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.description)("ngIfElse",r),n.xp6(4),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.sources.length>0)("ngIfElse",s),n.xp6(3),n.Q6J("ngIf",t.geneAliases.length>0)("ngIfElse",g),n.xp6(5),n.Q6J("href","http://dgidb.org/genes/"+t.name)("tooltip","View "+t.name+" on DGIdb"),n.xp6(2),n.Q6J("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+t.name)("tooltip","View "+t.name+" on ProteinPaint"),n.xp6(3),n.Q6J("geneInfo",t.myGeneInfoDetails),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(3),n.Q6J("geneId",t.id),n.xp6(2),n.Q6J("geneId",t.id)("geneName",t.name)}}const lt=[{path:"",component:Gn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,r,s){this.gql=t,this.viewerService=r,this.route=s,this.routeSub=this.route.params.subscribe(g=>{this.viewer$=this.viewerService.viewer$;let C=this.gql.watch({geneId:+g.geneId}).valueChanges;this.subscribableEntity={id:+g.geneId,entityType:f.o71.Gene},this.gene$=C.pipe((0,M.j)("data","gene")),this.loading$=C.pipe((0,M.j)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(f.cCu),n.Y36(Y.a),n.Y36(x.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-genes-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["noAliases",""],["nzTitle","Resources"],[3,"href","tooltip"],[3,"geneInfo"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],[3,"geneId"],["nzTitle","Variants"],[3,"geneId","geneName"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzTitle","Aliases"],[4,"ngFor","ngForOf"]],template:function(t,r){1&t&&(n.YNc(0,st,33,21,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,r.gene$))},dependencies:[u.sg,u.O5,v.t3,v.SK,W.R7,W.uj,T.ZU,dn.j,H.xH,H.xw,se.J,vn.$,le.l,pe.T,hn,Ue,zn,B.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),e})(),data:{breadcrumb:"Summary"}},{path:"comments",component:en,data:{breadcrumb:"Comments"}},{path:"revisions",component:Kn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fn,data:{breadcrumb:"Summary"}},{path:"events",component:Nn,data:{breadcrumb:"Events"}}]}];let pt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[x.Bz.forChild(lt),ce,J,Rn,Un,Qn,x.Bz]}),e})(),gt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[u.ez,pt,Z.sL,I.PV,y.KJ,b.zf,T.ZJ,v.Jb,Q.s,F.c,c.m,G.Z,$.D,L.g,i.t]}),e})()}}]); \ No newline at end of file diff --git a/server/public/1150.94bdcdeedd2f7339.js b/server/public/1150.59b98cfb7b44bc05.js similarity index 97% rename from server/public/1150.94bdcdeedd2f7339.js rename to server/public/1150.59b98cfb7b44bc05.js index cdb162359..8e7dc6d52 100644 --- a/server/public/1150.94bdcdeedd2f7339.js +++ b/server/public/1150.59b98cfb7b44bc05.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1150],{1150:(N,c,a)=>{a.r(c),a.d(c,{VariantGroupsReviseModule:()=>$});var i=a(6814),v=a(8603),m=a(2419),z=a(2524),d=a(95),u=a(551),g=a(6254),h=a(2574),y=a(2392),s=a(4190),x=a(7921),G=a(7398),l=a(4223),t=a(5879),V=a(313),M=a(951),O=a(3145),P=a(8178),C=a(2616),I=a(8091);function S(e,r){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function b(e,r){1&e&&(t.TgZ(0,"nz-row",8)(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function R(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t.ALo(6,"entityColor"),t._uU(7),t.qZA(),t.TgZ(8,"nz-page-header-content")(9,"div",5),t.YNc(10,S,2,0,"div",6),t.ALo(11,"ngrxPush"),t.YNc(12,b,3,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.BQk()),2&e){const n=r.ngIf,o=t.MAs(13),p=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"VariantGroup")),t.xp6(2),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,7,p.isSignedIn$))("ngIfElse",o)}}let Z=(()=>{class e{constructor(n,o,p){this.gql=n,this.route=o,this.viewerService=p,this.routeSub=this.route.params.subscribe(B=>{let f=this.gql.watch({variantGroupId:+B.variantGroupId}).valueChanges;this.loading$=f.pipe((0,l.j)("loading"),(0,x.O)(!0)),this.variantGroup$=f.pipe((0,l.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,G.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(V.Qtd),t.Y36(s.gz),t.Y36(M.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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){1&n&&(t.YNc(0,R,14,9,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,o.variantGroup$))},dependencies:[i.O5,s.lC,g.$O,g.u9,g.u5,u.Ls,O.I,P.u,d.t3,d.SK,i.Ov,C.a,I.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{flex-wrap:nowrap;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 T=a(4706);let w=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[i.ez,T.A]}),e})();var A=a(9439);function J(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variantgroup-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function Q(e,r){1&e&&t._uU(0,"Loading Variant Group...")}const U=[{path:"",component:Z,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(o=>{this.variantGroupId=+o.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(s.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,o){if(1&n&&(t.YNc(0,J,2,1,"ng-container",0),t.YNc(1,Q,1,0,"ng-template",null,1,t.W1O)),2&n){const p=t.MAs(2);t.Q6J("ngIf",o.variantGroupId)("ngIfElse",p)}},dependencies:[i.O5,A.L],encapsulation:2}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let Y=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.Bz.forChild(U),w,s.Bz]}),e})(),$=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[i.ez,Y,g.KJ,h.zf,u.PV,y.ZJ,h.zf,z.s,m.D,v.a,d.Jb]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1150],{1150:(N,c,a)=>{a.r(c),a.d(c,{VariantGroupsReviseModule:()=>$});var i=a(6814),v=a(8603),m=a(2419),z=a(2524),d=a(95),u=a(551),g=a(6254),h=a(2574),y=a(2392),s=a(4190),x=a(7921),G=a(7398),l=a(4223),t=a(5879),V=a(313),M=a(951),O=a(3145),P=a(8178),C=a(2616),I=a(8091);function S(e,r){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function b(e,r){1&e&&(t.TgZ(0,"nz-row",8)(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function R(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t.ALo(6,"entityColor"),t._uU(7),t.qZA(),t.TgZ(8,"nz-page-header-content")(9,"div",5),t.YNc(10,S,2,0,"div",6),t.ALo(11,"ngrxPush"),t.YNc(12,b,3,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.BQk()),2&e){const n=r.ngIf,o=t.MAs(13),p=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"VariantGroup")),t.xp6(2),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(11,7,p.isSignedIn$))("ngIfElse",o)}}let Z=(()=>{class e{constructor(n,o,p){this.gql=n,this.route=o,this.viewerService=p,this.routeSub=this.route.params.subscribe(B=>{let f=this.gql.watch({variantGroupId:+B.variantGroupId}).valueChanges;this.loading$=f.pipe((0,l.j)("loading"),(0,x.O)(!0)),this.variantGroup$=f.pipe((0,l.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,G.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(V.Qtd),t.Y36(s.gz),t.Y36(M.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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){1&n&&(t.YNc(0,R,14,9,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,o.variantGroup$))},dependencies:[i.O5,s.lC,g.$O,g.u9,g.u5,u.Ls,O.I,P.u,d.t3,d.SK,i.Ov,C.a,I.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{flex-wrap:nowrap;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 T=a(9138);let w=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[i.ez,T.A]}),e})();var A=a(2480);function J(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variantgroup-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function Q(e,r){1&e&&t._uU(0,"Loading Variant Group...")}const U=[{path:"",component:Z,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(o=>{this.variantGroupId=+o.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(s.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,o){if(1&n&&(t.YNc(0,J,2,1,"ng-container",0),t.YNc(1,Q,1,0,"ng-template",null,1,t.W1O)),2&n){const p=t.MAs(2);t.Q6J("ngIf",o.variantGroupId)("ngIfElse",p)}},dependencies:[i.O5,A.L],encapsulation:2}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let Y=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.Bz.forChild(U),w,s.Bz]}),e})(),$=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[i.ez,Y,g.KJ,h.zf,u.PV,y.ZJ,h.zf,z.s,m.D,v.a,d.Jb]}),e})()}}]); \ No newline at end of file diff --git a/server/public/2299.0988428913d7a6f6.js b/server/public/1467.840f50aff4944668.js similarity index 97% rename from server/public/2299.0988428913d7a6f6.js rename to server/public/1467.840f50aff4944668.js index 198b1c29a..8b524900c 100644 --- a/server/public/2299.0988428913d7a6f6.js +++ b/server/public/1467.840f50aff4944668.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2299],{7745:(M,h,o)=>{function g(f,v){const p=(l,i)=>{let r;for(let c of l)if(c.fieldGroup)r=p(c.fieldGroup,i);else if(c.key===i){r=c;break}return r},m=(l,i)=>{for(let r of Object.keys(i))if(i[r]instanceof Object&&!Array.isArray(i[r]))m(l,i[r]);else{const c=p(l,r);c&&(c.defaultValue=i[r])}return l};return m(f,v)}o.d(h,{Z:()=>g})},4897:(M,h,o)=>{o.r(h),o.d(h,{MolecularProfilesReviseModule:()=>F});var g=o(6814),f=o(6254),v=o(2419),p=o(551),m=o(8603),l=o(95),i=o(4190),r=o(7921),c=o(7398),d=o(4223),e=o(5879),x=o(313),z=o(951),y=o(3145),_=o(8178),b=o(8091);function O(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function C(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,O,2,0,"span",0),e.qZA()),2&t){const n=a.$implicit,s=a.last;e.xp6(1),e.hij(" ",n,""),e.xp6(1),e.Q6J("ngIf",!s)}}function I(t,a){if(1&t&&(e.TgZ(0,"nz-page-header-subtitle"),e.YNc(1,C,3,2,"span",8),e.qZA()),2&t){const n=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",n.molecularProfileAliases)}}function S(t,a){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function R(t,a){1&t&&(e.TgZ(0,"nz-row",9)(1,"div",10),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function T(t,a){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.YNc(7,I,2,1,"nz-page-header-subtitle",0),e.TgZ(8,"nz-page-header-content")(9,"div",5),e.YNc(10,S,2,0,"div",6),e.ALo(11,"ngrxPush"),e.YNc(12,R,3,0,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()),2&t){const n=a.ngIf,s=e.MAs(13),u=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(1),e.Q6J("ngIf",n.molecularProfileAliases.length>0),e.xp6(3),e.Q6J("ngIf",e.lcZ(11,5,u.isSignedIn$))("ngIfElse",s)}}let Z=(()=>{class t{constructor(n,s,u){this.gql=n,this.route=s,this.viewerService=u,this.routeSub=this.route.params.subscribe(U=>{let P=this.gql.watch({mpId:+U.molecularProfileId}).valueChanges;this.loading$=P.pipe((0,d.j)("loading"),(0,r.O)(!0)),this.molecularProfile$=P.pipe((0,d.j)("data","molecularProfile")),this.commentsTotal$=this.molecularProfile$.pipe((0,d.j)("comments","totalCount")),this.flagsTotal$=this.molecularProfile$.pipe((0,d.j)("flags","totalCount")),this.revisionsTotal$=this.molecularProfile$.pipe((0,d.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,c.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(x.AMF),e.Y36(i.gz),e.Y36(z.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-molecular-profiles-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:molecularprofile"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,s){1&n&&(e.YNc(0,T,14,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,s.molecularProfile$))},dependencies:[g.sg,g.O5,i.lC,f.$O,f.u9,f.yG,f.u5,p.Ls,y.I,_.u,l.t3,l.SK,g.Ov,b.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{flex-wrap:nowrap;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 A=o(9934);let w=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[g.ez,A.i]}),t})();var $=o(3610);function J(t,a){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-mp-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("molecularProfileId",n.molecularProfileId)}}function V(t,a){1&t&&e._uU(0,"Loading Molecular Profile...")}const j=[{path:"",component:Z,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(s=>{this.molecularProfileId=+s.molecularProfileId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(i.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-molecular-profiles-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMp",""],[3,"molecularProfileId"]],template:function(n,s){if(1&n&&(e.YNc(0,J,2,1,"ng-container",0),e.YNc(1,V,1,0,"ng-template",null,1,e.W1O)),2&n){const u=e.MAs(2);e.Q6J("ngIf",s.molecularProfileId)("ngIfElse",u)}},dependencies:[g.O5,$.R],encapsulation:2}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[i.Bz.forChild(j),w,i.Bz]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[g.ez,Y,f.KJ,p.PV,v.D,m.a,l.Jb]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1467],{7570:(M,h,o)=>{function g(f,v){const p=(l,i)=>{let r;for(let c of l)if(c.fieldGroup)r=p(c.fieldGroup,i);else if(c.key===i){r=c;break}return r},m=(l,i)=>{for(let r of Object.keys(i))if(i[r]instanceof Object&&!Array.isArray(i[r]))m(l,i[r]);else{const c=p(l,r);c&&(c.defaultValue=i[r])}return l};return m(f,v)}o.d(h,{Z:()=>g})},4897:(M,h,o)=>{o.r(h),o.d(h,{MolecularProfilesReviseModule:()=>F});var g=o(6814),f=o(6254),v=o(2419),p=o(551),m=o(8603),l=o(95),i=o(4190),r=o(7921),c=o(7398),d=o(4223),e=o(5879),x=o(313),z=o(951),y=o(3145),_=o(8178),b=o(8091);function O(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function C(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,O,2,0,"span",0),e.qZA()),2&t){const n=a.$implicit,s=a.last;e.xp6(1),e.hij(" ",n,""),e.xp6(1),e.Q6J("ngIf",!s)}}function I(t,a){if(1&t&&(e.TgZ(0,"nz-page-header-subtitle"),e.YNc(1,C,3,2,"span",8),e.qZA()),2&t){const n=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",n.molecularProfileAliases)}}function S(t,a){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function R(t,a){1&t&&(e.TgZ(0,"nz-row",9)(1,"div",10),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function T(t,a){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.YNc(7,I,2,1,"nz-page-header-subtitle",0),e.TgZ(8,"nz-page-header-content")(9,"div",5),e.YNc(10,S,2,0,"div",6),e.ALo(11,"ngrxPush"),e.YNc(12,R,3,0,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()),2&t){const n=a.ngIf,s=e.MAs(13),u=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(1),e.Q6J("ngIf",n.molecularProfileAliases.length>0),e.xp6(3),e.Q6J("ngIf",e.lcZ(11,5,u.isSignedIn$))("ngIfElse",s)}}let Z=(()=>{class t{constructor(n,s,u){this.gql=n,this.route=s,this.viewerService=u,this.routeSub=this.route.params.subscribe(U=>{let P=this.gql.watch({mpId:+U.molecularProfileId}).valueChanges;this.loading$=P.pipe((0,d.j)("loading"),(0,r.O)(!0)),this.molecularProfile$=P.pipe((0,d.j)("data","molecularProfile")),this.commentsTotal$=this.molecularProfile$.pipe((0,d.j)("comments","totalCount")),this.flagsTotal$=this.molecularProfile$.pipe((0,d.j)("flags","totalCount")),this.revisionsTotal$=this.molecularProfile$.pipe((0,d.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,c.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(x.AMF),e.Y36(i.gz),e.Y36(z.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-molecular-profiles-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:molecularprofile"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,s){1&n&&(e.YNc(0,T,14,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,s.molecularProfile$))},dependencies:[g.sg,g.O5,i.lC,f.$O,f.u9,f.yG,f.u5,p.Ls,y.I,_.u,l.t3,l.SK,g.Ov,b.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{flex-wrap:nowrap;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 A=o(6012);let w=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[g.ez,A.i]}),t})();var $=o(3821);function J(t,a){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-mp-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("molecularProfileId",n.molecularProfileId)}}function V(t,a){1&t&&e._uU(0,"Loading Molecular Profile...")}const j=[{path:"",component:Z,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(s=>{this.molecularProfileId=+s.molecularProfileId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(i.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-molecular-profiles-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMp",""],[3,"molecularProfileId"]],template:function(n,s){if(1&n&&(e.YNc(0,J,2,1,"ng-container",0),e.YNc(1,V,1,0,"ng-template",null,1,e.W1O)),2&n){const u=e.MAs(2);e.Q6J("ngIf",s.molecularProfileId)("ngIfElse",u)}},dependencies:[g.O5,$.R],encapsulation:2}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[i.Bz.forChild(j),w,i.Bz]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[g.ez,Y,f.KJ,p.PV,v.D,m.a,l.Jb]}),t})()}}]); \ No newline at end of file diff --git a/server/public/1586.3a8b6b5a72b41803.js b/server/public/1586.3a8b6b5a72b41803.js deleted file mode 100644 index 5aaaa97a8..000000000 --- a/server/public/1586.3a8b6b5a72b41803.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1586],{1586:(is,Nt,l)=>{l.r(Nt),l.d(Nt,{OrganizationsModule:()=>es});var g=l(6814),Ee=l(5895),v=l(551),t=l(5879);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,Ee.s,v.PV]}),n})();var Ut=l(2419),m=l(8645),Ft=l(2438),A=l(2181),V=l(8180),P=l(9773),Jt=l(874),Qt=l(7754),W=l(9594),$t=l(8484),L=l(6028),Le=l(4194),Yt=l(9087),Ze=l(6593),ft=l(532),O=l(2831),u=l(2495),Gt=l(4300),j=l(7394),ke=l(1687),Ne=l(927),Ht=l(5592),_t=l(3019),I=l(7398),F=l(7921),Ue=l(9397),Fe=l(4664),nt=l(9388);function vt(n,i,e){for(let o in i)if(i.hasOwnProperty(o)){const s=i[o];s?n.setProperty(o,s,e?.has(o)?"important":""):n.removeProperty(o)}return n}function J(n,i){const e=i?"":"none";vt(n.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Bt(n,i,e){vt(n.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function it(n,i){return i&&"none"!=i?n+" "+i:n}function Vt(n){const i=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*i}function zt(n,i){return n.getPropertyValue(i).split(",").map(o=>o.trim())}function Ct(n){const i=n.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function bt(n,i,e){const{top:o,bottom:s,left:r,right:a}=n;return e>=o&&e<=s&&i>=r&&i<=a}function X(n,i,e){n.top+=i,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function Wt(n,i,e,o){const{top:s,right:r,bottom:a,left:c,width:h,height:d}=n,p=h*i,f=d*i;return o>s-f&&oc-p&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Ct(e)})})}handleScroll(i){const e=(0,O.sA)(i),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const d=this.getViewportScrollPosition();r=d.top,a=d.left}else r=e.scrollTop,a=e.scrollLeft;const c=s.top-r,h=s.left-a;return this.positions.forEach((d,p)=>{d.clientRect&&e!==p&&e.contains(p)&&X(d.clientRect,c,h)}),s.top=r,s.left=a,{top:c,left:h}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Xt(n){const i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),o=n.nodeName.toLowerCase();i.removeAttribute("id");for(let s=0;sJ(o,e)))}constructor(i,e,o,s,r,a){this._config=e,this._document=o,this._ngZone=s,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new m.x,this._pointerMoveSubscription=j.w0.EMPTY,this._pointerUpSubscription=j.w0.EMPTY,this._scrollSubscription=j.w0.EMPTY,this._resizeSubscription=j.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new m.x,this.started=new m.x,this.released=new m.x,this.ended=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const h=this._getTargetHandle(c);h&&!this._disabledHandles.has(h)&&!this.disabled&&this._initializeDragSequence(h,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const h=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(h.x-this._pickupPositionOnPage.x)+Math.abs(h.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const N=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),U=this._dropContainer;if(!N)return void this._endDragSequence(c);(!U||!U.isDragging()&&!U.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const d=this._getConstrainedPointerPosition(h);if(this._hasMoved=!0,this._lastKnownPointerPosition=h,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,h);else{const p=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,f=this._activeTransform;f.x=d.x-p.x+this._passiveTransform.x,f.y=d.y-p.y+this._passiveTransform.y,this._applyRootElementTransform(f.x,f.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:c,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const h=this._getTargetHandle(c);h&&!this._disabledHandles.has(h)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new jt(o),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(o=>(0,u.fI)(o)),this._handles.forEach(o=>J(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=(0,u.fI)(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,ot),e.addEventListener("touchstart",this._pointerDown,ee),e.addEventListener("dragstart",this._nativeDragStart,ot)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?(0,u.fI)(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),J(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),J(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){K(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),Bt(o,!1,xt),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,c).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=K(e),r=!s&&0!==e.button,a=this._rootElement,c=(0,O.sA)(e),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=s?(0,Gt.yG)(e):(0,Gt.X6)(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||h||d)return;if(this._handles.length){const b=a.style;this._rootElementTapHighlight=b.webkitTapHighlightColor||"",b.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(b=>this._updateOnScroll(b)),this._boundaryElement&&(this._boundaryRect=Ct(this._boundaryElement));const p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Bt(this._rootElement,!0,xt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(i),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s,event:i}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s,event:i}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,o=i?i.template:null;let s;if(o&&i){const r=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(o,i.context);a.detectChanges(),s=ie(a,this._document),this._previewRef=a,i.matchSize?oe(s,r):s.style.transform=st(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Xt(this._rootElement),oe(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return vt(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},xt),J(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function Je(n){const i=getComputedStyle(n),e=zt(i,"transition-property"),o=e.find(c=>"transform"===c||"all"===c);if(!o)return 0;const s=e.indexOf(o),r=zt(i,"transition-duration"),a=zt(i,"transition-delay");return Vt(r[s])+Vt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{(!a||(0,O.sA)(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let o;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),o=ie(this._placeholderRef,this._document)):o=Xt(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(i,e,o){const s=e===this._rootElement?null:e,r=s?s.getBoundingClientRect():i,a=K(o)?o.targetTouches[0]:o,c=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-c.left),y:r.top-i.top+(a.pageY-r.top-c.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),o=K(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=s,c.y=r,c.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:h,height:d}=this._getPreviewRect(),p=c.top+a,f=c.bottom-(d-a);o=ne(o,c.left+r,c.right-(h-r)),s=ne(s,p,f)}return{x:o,y:s}}_updatePointerDirectionDelta(i){const{x:e,y:o}=i,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),c=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),c>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,J(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,ot),i.removeEventListener("touchstart",this._pointerDown,ee),i.removeEventListener("dragstart",this._nativeDragStart,ot)}_applyRootElementTransform(i,e){const o=st(i,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=it(o,this._initialTransform)}_applyPreviewTransform(i,e){const o=this._previewTemplate?.template?void 0:this._initialTransform,s=st(i,e);this._preview.style.transform=it(s,o)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===o.width&&0===o.height)return;const r=s.left-o.left,a=o.right-s.right,c=s.top-o.top,h=o.bottom-s.bottom;s.width>o.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,s.height>o.height?(c>0&&(e+=c),h>0&&(e-=h)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:K(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const o=(0,O.sA)(i);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&X(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,O.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const o=this._previewContainer||"global";if("parent"===o)return i;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,u.fI)(o)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function st(n,i){return`translate3d(${Math.round(n)}px, ${Math.round(i)}px, 0)`}function ne(n,i,e){return Math.max(i,Math.min(e,n))}function K(n){return"t"===n.type[0]}function ie(n,i){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const o=i.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function oe(n,i){n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.transform=st(i.left,i.top)}function q(n,i){return Math.max(0,Math.min(i,n))}class He{constructor(i,e){this._element=i,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,e,o,s){const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(i,e,o,s);if(-1===a&&r.length>0)return null;const c="horizontal"===this.orientation,h=r.findIndex(x=>x.drag===i),d=r[a],f=d.clientRect,b=h>a?1:-1,N=this._getItemOffsetPx(r[h].clientRect,f,b),U=this._getSiblingOffsetPx(h,r,b),B=r.slice();return function Ge(n,i,e){const o=q(i,n.length-1),s=q(e,n.length-1);if(o===s)return;const r=n[o],a=s{if(B[ns]===x)return;const Me=x.drag===i,kt=Me?N:U,Re=Me?i.getPlaceholderElement():x.drag.getRootElement();x.offset+=kt,c?(Re.style.transform=it(`translate3d(${Math.round(x.offset)}px, 0, 0)`,x.initialTransform),X(x.clientRect,0,kt)):(Re.style.transform=it(`translate3d(0, ${Math.round(x.offset)}px, 0)`,x.initialTransform),X(x.clientRect,kt,0))}),this._previousSwap.overlaps=bt(f,e,o),this._previousSwap.drag=d.drag,this._previousSwap.delta=c?s.x:s.y,{previousIndex:h,currentIndex:a}}enter(i,e,o,s){const r=null==s||s<0?this._getItemIndexFromPointerPosition(i,e,o):s,a=this._activeDraggables,c=a.indexOf(i),h=i.getPlaceholderElement();let d=a[r];if(d===i&&(d=a[r+1]),!d&&(null==r||-1===r||r-1&&a.splice(c,1),d&&!this._dragDropRegistry.isDragging(d)){const p=d.getRootElement();p.parentElement.insertBefore(h,p),a.splice(r,0,i)}else(0,u.fI)(this._element).appendChild(h),a.push(i);h.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const o=this._itemPositions.find(s=>s.drag===i)?.initialTransform;e.style.transform=o||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:o})=>{X(o,i,e)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:Ct(o)}}).sort((e,o)=>i?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_getItemOffsetPx(i,e,o){const s="horizontal"===this.orientation;let r=s?e.left-i.left:e.top-i.top;return-1===o&&(r+=s?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,o){const s="horizontal"===this.orientation,r=e[i].clientRect,a=e[i+-1*o];let c=r[s?"width":"height"]*o;if(a){const h=s?"left":"top",d=s?"right":"bottom";-1===o?c-=a.clientRect[h]-r[d]:c+=r[h]-a.clientRect[d]}return c}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?i>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,o,s){const r="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:h})=>c!==i&&((!s||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?s.x:s.y)!==this._previousSwap.delta)&&(r?e>=Math.floor(h.left)&&e=Math.floor(h.top)&&o!0,this.sortPredicate=()=>!0,this.beforeStarted=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.sorted=new m.x,this.receivingStarted=new m.x,this.receivingStopped=new m.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=j.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new m.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,ke.F)(0,Ne.Z).pipe((0,P.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=(0,u.fI)(i),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new jt(o),this._sortStrategy=new He(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,o,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,o,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,o,s,r,a,c,h={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:c,event:h})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===i.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=(0,u.fI)(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,o,s){if(this.sortingDisabled||!this._clientRect||!Wt(this._clientRect,.05,e,o))return;const r=this._sortStrategy.sort(i,e,o,s);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||o||Wt(a.clientRect,.05,i,e)&&([s,r]=function Ve(n,i,e,o){const s=ae(i,o),r=ce(i,e);let a=0,c=0;if(s){const h=n.scrollTop;1===s?h>0&&(a=1):n.scrollHeight-h>n.clientHeight&&(a=2)}if(r){const h=n.scrollLeft;1===r?h>0&&(c=1):n.scrollWidth-h>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,i,e),(s||r)&&(o=c))}),!s&&!r){const{width:a,height:c}=this._viewportRuler.getViewportSize(),h={width:a,height:c,top:0,right:a,bottom:c,left:0};s=ae(h,e),r=ce(h,i),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=(0,u.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=(0,u.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=(0,u.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&bt(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,o){return this._siblings.find(s=>s._canReceive(i,e,o))}_canReceive(i,e,o){if(!this._clientRect||!bt(this._clientRect,e,o)||!this.enterPredicate(i,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,u.fI)(this.element);return s===r||r.contains(s)}_startReceiving(i,e){const o=this._activeSiblings;!o.has(i)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=(0,O.kV)((0,u.fI)(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function ae(n,i){const{top:e,bottom:o,height:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}function ce(n,i){const{left:e,right:o,width:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}const rt=(0,O.i$)({passive:!1,capture:!0});let We=(()=>{class n{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new m.x,this.pointerUp=new m.x,this.scroll=new m.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,rt)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rt)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rt}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:rt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new Ht.y(s=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&s.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,_t.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(g.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const je={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let wt=(()=>{class n{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=je){return new Ye(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Be(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(g.K0),t.LFG(t.R0b),t.LFG(ft.rL),t.LFG(We))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yt=new t.OlP("CDK_DRAG_PARENT"),Tt=new t.OlP("CdkDragHandle");let le=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._stateChanges.next(this)}constructor(e,o){this.element=e,this._stateChanges=new m.x,this._disabled=!1,this._parentDrag=o}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(yt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[t._Bn([{provide:Tt,useExisting:n}])]}),n})();const he=new t.OlP("CdkDragPlaceholder"),de=new t.OlP("CdkDragPreview"),ge=new t.OlP("CDK_DRAG_CONFIG"),pe=new t.OlP("CdkDropList");let me=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._dragRef.disabled=this._disabled}constructor(e,o,s,r,a,c,h,d,p,f,b){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=h,this._changeDetectorRef=p,this._selfHandle=f,this._parentDrag=b,this._destroyed=new m.x,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new Ht.y(N=>{const U=this._dragRef.moved.pipe((0,I.U)(B=>({source:this,pointerPosition:B.pointerPosition,event:B.event,delta:B.delta,distance:B.distance}))).subscribe(N);return()=>{U.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,V.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let o=e;this.rootElementSelector&&(o=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,u.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,u.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,V.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let o=this.element.nativeElement.parentElement;for(;o;){if(o.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(s=>s.element.nativeElement===o)?._dragRef||null);break}o=o.parentElement}})}_handleEvents(e){e.started.subscribe(o=>{this.started.emit({source:this,event:o.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(o=>{this.released.emit({source:this,event:o.event})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:c,draggingDisabled:h,rootElementSelector:d,previewContainer:p}=e;this.disabled=h??!1,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),c&&(this.boundaryElement=c),d&&(this.rootElementSelector=d),p&&(this.previewContainer=p)}_setupHandlesListener(){this._handles.changes.pipe((0,F.O)(this._handles),(0,Ue.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,Fe.w)(e=>(0,_t.T)(...e.map(o=>o._stateChanges.pipe((0,F.O)(o))))),(0,P.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(pe,12),t.Y36(g.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ge,8),t.Y36(nt.Is,8),t.Y36(wt),t.Y36(t.sBO),t.Y36(Tt,10),t.Y36(yt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,de,5),t.Suo(s,he,5),t.Suo(s,Tt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t._Bn([{provide:yt,useExisting:n}]),t.TTD]}),n})(),nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[wt],imports:[ft.ZD]}),n})();var on=l(6192);const sn=["imgRef"],rn=["imagePreviewWrapper"];function an(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",10),t.NdJ("click",function(){const r=t.CHM(e).$implicit;return t.KtG(r.onClick())}),t._UZ(1,"span",11),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function cn(n,i){if(1&n&&t._UZ(0,"img",13,14),2&n){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",o.sanitizerResourceUrl(e.src),t.LSH)("srcset",e.srcset)("alt",e.alt)}}function ln(n,i){if(1&n&&(t.ynx(0),t.YNc(1,cn,2,9,"img",12),t.BQk()),2&n){const e=i.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function hn(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",15),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchLeft(s))}),t._UZ(2,"span",16),t.qZA(),t.TgZ(3,"div",17),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchRight(s))}),t._UZ(4,"span",18),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class Dt{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class gn{constructor(i,e,o){this.previewInstance=i,this.config=e,this.overlayRef=o,this.destroy$=new m.x,o.keydownEvents().pipe((0,A.h)(s=>this.config.nzKeyboard&&(s.keyCode===L.hY||s.keyCode===L.oh||s.keyCode===L.SV)&&!(0,L.Vb)(s))).subscribe(s=>{s.preventDefault(),s.keyCode===L.hY&&this.close(),s.keyCode===L.oh&&this.prev(),s.keyCode===L.SV&&this.next()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),i.containerClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.closeClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.animationStateChanged.pipe((0,A.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,V.q)(1)).subscribe(()=>{this.dispose()})}switchTo(i){this.previewInstance.switchTo(i)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function fe(n,i,e){const o=n+i,s=(i-e)/2;let r=null;return i>e?(n>0&&(r=s),n<0&&oe)&&(r=n<0?s:-s),r}const ct={x:0,y:0};let fn=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,o,s,r,a,c,h,d){this.ngZone=e,this.host=o,this.cdr=s,this.nzConfigService=r,this.config=a,this.overlayRef=c,this.destroy$=h,this.sanitizer=d,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position={...ct},this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.zoom=this.config.nzZoom??1,this.rotate=this.config.nzRotate??0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ft.R)(this.host.nativeElement,"click").pipe((0,P.R)(this.destroy$)).subscribe(e=>{e.target===e.currentTarget&&this.maskClosable&&this.containerClick.observers.length&&this.ngZone.run(()=>this.containerClick.emit())}),(0,Ft.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,P.R)(this.destroy$)).subscribe(()=>{this.isDragging=!0})})}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...ct}}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...ct})}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function mn(n){const i=n.getBoundingClientRect(),e=document.documentElement;return{left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:c}=function un(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),h=this.rotate%180!=0,p=function pn(n){let i={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(i={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(i={x:fe(n.left,n.width,n.clientWidth),y:fe(n.top,n.height,n.clientHeight)}),i}({width:h?o:e,height:h?e:o,left:s,top:r,clientWidth:a,clientHeight:c});((0,Qt.DX)(p.x)||(0,Qt.DX)(p.y))&&(this.position={...this.position,...p})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position={...ct}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt.jY),t.Y36(Dt),t.Y36(W.Iu),t.Y36(Yt.kn),t.Y36(Ze.H7))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&(t.Gf(sn,5),t.Gf(rn,7)),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first),t.iGM(s=t.CRH())&&(o.imagePreviewWrapper=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],features:[t._Bn([Yt.kn])],decls:11,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","cdkDragReleased"],["imagePreviewWrapper",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3)(4,"ul",4),t.YNc(5,an,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6,7),t.NdJ("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(8,ln,2,1,"ng-container",8),t.qZA(),t.YNc(9,hn,5,4,"ng-container",9),t.qZA()(),t._UZ(10,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(2),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},dependencies:[me,le,g.sg,g.O5,v.Ls],encapsulation:2,data:{animation:[Le.MC]},changeDetection:0}),n})(),_n=(()=>{class n{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s={...new Dt,...o??{}},r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const c=new gn(a,s,r);return a.previewRef=c,c}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:W.Iu,useValue:e},{provide:Dt,useValue:o}]}),r=new $t.C5(fn,null,s);return e.attach(r).instance}createOverlay(e){const o=this.nzConfigService.getConfigForComponent("image")||{},s=new W.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??o.nzCloseOnNavigation??!0,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||o.nzDirection||this.directionality.value});return this.overlay.create(s)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(W.aV),t.LFG(t.zs3),t.LFG(Jt.jY),t.LFG(nt.Is,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[_n],imports:[nt.vT,W.U8,$t.eL,nn,g.ez,v.PV,on.YS]}),n})();var Q=l(6254),zn=l(4059),_=l(95),w=l(2574),C=l(4190),Pt=l(6067),_e=l(2996),y=l(2962),Z=l(6976),tt=l(1106),ve=l(5572),et=l(6928),M=l(8125),lt=l(6987);let ze=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,et.Rt]}),n})();var $=l(2524),Cn=l(3043),bn=l(7525),xn=l(3396),wn=l(4605),T=l(2392),Ce=l(366),yn=l(2612),ht=l(6223),Tn=l(6061),Ot=l(7950);let be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,ht.u5,y.vh,_.Jb,w.zf,T.ZJ,_e.A2,M.q6,lt.S,yn.Wr,Ot.x,Pt.X,wn.N,xn.Q,Tn.N,bn.h,Cn.y,ze,$.s,tt.L,ve.C,Ce.$]}),n})();var xe=l(7417),dt=l(5695),k=l(2840);let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,C.Bz,Q.KJ,k.sL,_.Jb,v.PV,w.zf,vn,y.vh,_e.A2,Z.Ph,et.Rt,M.q6,lt.S,T.ZJ,xe.$6,dt.X,ve.C,tt.L,Ce.$,$.s,ze,Pt.X,zn.c,Ut.D,be]}),n})();var Dn=l(9894);let Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,Dn.t]}),n})();var On=l(1403);let In=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,On.Q]}),n})();var It=l(2669);let Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,w.zf,_.Jb,It.j,be]}),n})();var Rn=l(7856),En=l(9154),An=l(2989),Ln=l(9175),Zn=l(4742),kn=l(9312),S=l(3740);let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,v.PV,S.HQ,k.sL,y.vh,v.PV,T.ZJ,dt.X,En.y,An.T,kn.w,Ln.n,Zn.c,Rn.k,tt.L,Ot.x,$.s]}),n})();var Mt=l(9691),Un=l(9382),we=l(804),ye=l(3640),Te=l(6109);let Fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,ht.u5,ye.mS,lt.S,w.zf,et.Rt,_.Jb,y.vh,Z.Ph,Un.we,Mt.LV,T.ZJ,we.Xo,v.PV,dt.X,Te.cg,$.s,tt.L]}),n})(),Jn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,Q.KJ,v.PV,_.Jb,k.sL,w.zf,T.ZJ,$.s,Ut.D,Fn,Nn]}),n})();var Qn=l(1022),$n=l(8706);let Yn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,y.vh,M.q6,T.ZJ,v.PV,w.zf,_.Jb,lt.S,Ot.x,Qn.H,Pt.X,$.s,tt.L,$n.W]}),n})(),Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,_.Jb,w.zf,k.sL,It.j,Yn]}),n})();var Hn=l(1826);let Bn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[Hn.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var R=l(4223),E=l(5619),z=l(313),Rt=l(951),gt=l(855),Vn=l(1607),pt=l(215),Wn=l(1887);function jn(n,i){if(1&n&&t._UZ(0,"nz-avatar",2),2&n){const e=t.oxw();t.Q6J("nzSrc",e.organization.profileImagePath)("nzShape",e.shape?e.shape:"circle")("nzSize",e.size)}}function Xn(n,i){if(1&n&&t._UZ(0,"nz-avatar",3),2&n){const e=t.oxw();t.Q6J("nzShape",e.shape?e.shape:"circle")("nzText",e.organization.name)("nzSize",e.size)}}let Se=(()=>{class n{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",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,"nzShape","nzText","nzSize"]],template:function(e,o){if(1&e&&(t.YNc(0,jn,1,3,"nz-avatar",0),t.YNc(1,Xn,1,3,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.organization.profileImagePath)("ngIfElse",s)}},dependencies:[g.O5,et.Dz],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})();var Kn=l(5098),De=l(3145),Y=l(8091),Pe=l(2616);function qn(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",19),2&n){const e=t.oxw().ngIf;t.Q6J("organization",e)("size",128)}}function ti(n,i){if(1&n&&(t.TgZ(0,"div",20),t._UZ(1,"i",21),t.ALo(2,"entityColor"),t.TgZ(3,"span",22)(4,"strong"),t._uU(5),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(2,2,"Organization")),t.xp6(4),t.hij(" ",e.name,"")}}function ei(n,i){if(1&n&&(t.TgZ(0,"a",24),t._UZ(1,"span",25),t._uU(2," Visit Website "),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.url,t.LSH)}}function ni(n,i){1&n&&(t.ynx(0),t.YNc(1,ei,3,1,"a",23),t.BQk())}function ii(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.description," ")}}function oi(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2,"No description provided."),t.qZA()())}function si(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",34),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("org",e)}}function ri(n,i){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,si,2,1,"ng-container",33),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",e.subGroups)}}function ai(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2," This organization does not include any child organizations. "),t.qZA()())}function ci(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",26)(1,"nz-descriptions-item",27),t.YNc(2,ii,2,1,"ng-container",28),t.YNc(3,oi,3,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(5,"nz-descriptions-item",30),t.YNc(6,ri,2,1,"cvc-tag-list",28),t.YNc(7,ai,3,0,"ng-template",null,31,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),o=t.MAs(8),s=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(1),t.Q6J("nzTitle","About "+s.name),t.xp6(1),t.Q6J("ngIf",s.description)("ngIfElse",e),t.xp6(3),t.Q6J("nzSpan",4)("nzTitle","Child Organization"+(1!==s.subGroups.length?"s":"")),t.xp6(1),t.Q6J("ngIf",s.subGroups.length>0)("ngIfElse",o)}}function li(n,i){1&n&&(t.TgZ(0,"div",38)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function hi(n,i){if(1&n&&(t.TgZ(0,"div",35),t._uU(1," Ranked Activities "),t.TgZ(2,"span",32),t._UZ(3,"i",36),t.qZA()(),t.YNc(4,li,17,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}const di=function(){return[8,8]};function gi(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-content")(4,"nz-row",3)(5,"nz-col",4)(6,"nz-space",5),t.YNc(7,qn,1,2,"cvc-organization-avatar",6),t.YNc(8,ti,6,4,"div",7),t.YNc(9,ni,2,0,"ng-container",0),t.qZA()(),t.TgZ(10,"nz-col",8)(11,"nz-space",5),t.YNc(12,ci,9,8,"nz-descriptions",9),t.qZA()(),t.TgZ(13,"nz-col",10)(14,"nz-descriptions",11)(15,"nz-descriptions-item",12),t._UZ(16,"cvc-stats-card",13),t.qZA(),t.YNc(17,hi,6,1,"ng-template",null,14,t.W1O),t.qZA()()(),t.TgZ(19,"nz-row",15)(20,"nz-col",16),t._UZ(21,"cvc-tab-navigation",17),t.ALo(22,"ngrxPush"),t.TgZ(23,"div",18),t._UZ(24,"router-outlet"),t.qZA()()()()(),t.BQk()),2&n){const e=i.ngIf,o=t.MAs(18),s=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzGutter",t.DdM(10,di)),t.xp6(5),t.Q6J("ngIf",e.url),t.xp6(6),t.Q6J("nzTitle",o),t.xp6(1),t.Q6J("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(22,8,s.tabs$))}}let pi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.destroy$=new m.x,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new E.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organization$=a.pipe((0,R.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,P.R)(this.destroy$)).subscribe({next:c=>{this.tabs$.next(c&&c.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.WOS),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],["noDescription",""],[3,"nzSpan","nzTitle"],["noSubGroups",""],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"]],template:function(e,o){1&e&&(t.YNc(0,gi,25,11,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},dependencies:[g.sg,g.O5,C.lC,Q.$O,Q.u5,k.ix,gt.w,_.t3,_.SK,v.Ls,w.NU,w.$1,M.R7,M.uj,T.ZU,xe.lU,Vn.z,pt.m,Wn.$,Se,Kn.P,De.I,Y.fM,Pe.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{flex-wrap:nowrap;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%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),n})();var mi=l(7441);let ui=(()=>{class n{constructor(e){this.route=e,this.mode=z.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},dependencies:[mi.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var fi=l(6822);let _i=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[fi.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();function vi(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",8),2&n){const e=t.oxw();t.Q6J("organization",e.organization)("size",48)}}function zi(n,i){if(1&n&&t._UZ(0,"cvc-organization-tag",9),2&n){const e=t.oxw();t.Q6J("org",e.organization)("enablePopover",!0)}}let Ci=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],["organizationAvatar",""],["organizationTag",""],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,vi,1,2,"ng-template",null,2,t.W1O),t.YNc(4,zi,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t._uU(10),t.qZA()()()()()),2&e){const s=t.MAs(3),r=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",o.organization.name)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("nzEllipsisRows",4)("nzExpandable",!0),t.xp6(1),t.hij(" ",o.organization.description," ")}},dependencies:[y.bd,y.l7,T.ZU,M.R7,M.uj,Se,pt.m],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function bi(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-organization-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("organization",e)}}function xi(n,i){if(1&n&&(t.ynx(0),t.YNc(1,bi,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}const wi=function(){return[8,8]};let yi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.routeSub=s.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organizations$=a.pipe((0,R.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Lr0),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-row",1),t.YNc(3,xi,2,1,"ng-container",2),t.ALo(4,"ngrxPush"),t.qZA()()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,3,o.loading$)),t.xp6(2),t.Q6J("nzGutter",t.DdM(7,wi)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(4,5,o.organizations$)))},dependencies:[g.sg,g.O5,_.t3,_.SK,It.W,Ci,Y.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),n})();var G,Oe=l(655),D=l(1791);function Ti(n,i){1&n&&t.GkF(0)}function Si(n,i){1&n&&t.GkF(0)}function Di(n,i){1&n&&t.GkF(0)}function Pi(n,i){1&n&&t.GkF(0)}function Oi(n,i){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA(),t.TgZ(2,"span",14),t._UZ(3,"i",15),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," "),t.xp6(2),t.Q6J("nzTooltipTitle",e.info)}}const Ii=function(){return[0,5]};function Mi(n,i){if(1&n&&(t.TgZ(0,"nz-badge",19),t._UZ(1,"nz-avatar",20),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzCount",e.rank)("nzOffset",t.DdM(3,Ii)),t.xp6(1),t.Q6J("nzSrc",e.profileImagePath)}}function Ri(n,i){if(1&n&&(t.TgZ(0,"nz-list-item"),t.YNc(1,Mi,2,4,"ng-template",null,16,t.W1O),t.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t._UZ(5,"cvc-organization-tag",18),t.qZA()()()),2&n){const e=i.$implicit,o=t.MAs(2);t.xp6(3),t.Q6J("nzAvatar",o),t.xp6(2),t.Q6J("org",e.organization)}}function Ei(n,i){if(1&n&&t._UZ(0,"nz-list-empty",21),2&n){t.oxw();const e=t.MAs(7);t.Q6J("nzNoResult",e)}}function Ai(n,i){1&n&&t._UZ(0,"nz-empty",22)}const Li=function(n){return{"list-height-block":n}};function Zi(n,i){if(1&n&&(t.YNc(0,Oi,4,2,"ng-template",null,7,t.W1O),t.TgZ(2,"nz-list",8)(3,"div",9),t.YNc(4,Ri,6,2,"nz-list-item",10),t.qZA(),t.YNc(5,Ei,1,1,"nz-list-empty",11),t.YNc(6,Ai,1,0,"ng-template",null,12,t.W1O),t.qZA()),2&n){const e=i.$implicit,o=t.MAs(1);t.xp6(2),t.Q6J("nzHeader",o)("nzLoading",e.loading),t.xp6(1),t.Q6J("ngClass",t.VKq(5,Li,e.rows.length>0)),t.xp6(1),t.Q6J("ngForOf",e.rows),t.xp6(1),t.Q6J("ngIf",0===e.rows.length)}}function ki(n,i){1&n&&(t.TgZ(0,"span",13)(1,"strong"),t._uU(2,"Organization Curation Activity Leaderboards"),t.qZA()())}function Ni(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"Time: "),t.qZA(),t.TgZ(2,"nz-select",23),t.NdJ("ngModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.timeWindow$.next(s))}),t.ALo(3,"ngrxPush"),t._UZ(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",t.lcZ(3,2,e.timeWindow$))}}const Ui=function(){return[8,8]},mt=function(n){return{$implicit:n}};let Et=((G=class{constructor(i,e,o,s){this.commentsGQL=i,this.revisionsGQL=e,this.moderationGQL=o,this.submissionsGQL=s,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=z.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new E.X(this.initialWindow),this.timeWindow$.pipe((0,D.t)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new E.X(this.initialCommentsView),this.revisionsView$=new E.X(this.initialRevisionsView),this.moderationView$=new E.X(this.initialModerationView),this.submissionsView$=new E.X(this.initialSubmissionsView)}ngOnInit(){const i=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...o]}}),(0,D.t)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,D.t)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,D.t)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...o]}}),(0,D.t)(this)).subscribe(e=>this.submissionsView$.next(e))}}).\u0275fac=function(i){return new(i||G)(t.Y36(z.ld2),t.Y36(z.enw),t.Y36(z.tI$),t.Y36(z.Pm))},G.\u0275cmp=t.Xpm({type:G,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(i,e){if(1&i&&(t.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),t.YNc(3,Ti,1,0,"ng-container",3),t.ALo(4,"ngrxPush"),t.qZA(),t.TgZ(5,"nz-col",2),t.YNc(6,Si,1,0,"ng-container",3),t.ALo(7,"ngrxPush"),t.qZA(),t.TgZ(8,"nz-col",2),t.YNc(9,Di,1,0,"ng-container",3),t.ALo(10,"ngrxPush"),t.qZA(),t.TgZ(11,"nz-col",2),t.YNc(12,Pi,1,0,"ng-container",3),t.ALo(13,"ngrxPush"),t.qZA()()(),t.YNc(14,Zi,8,7,"ng-template",null,4,t.W1O),t.YNc(16,ki,3,0,"ng-template",null,5,t.W1O),t.YNc(18,Ni,8,4,"ng-template",null,6,t.W1O)),2&i){const o=t.MAs(15),s=t.MAs(17),r=t.MAs(19);t.Q6J("nzTitle",s)("nzExtra",r),t.xp6(1),t.Q6J("nzGutter",t.DdM(19,Ui)),t.xp6(2),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(20,mt,t.lcZ(4,11,e.commentsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(22,mt,t.lcZ(7,13,e.revisionsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(24,mt,t.lcZ(10,15,e.moderationView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(26,mt,t.lcZ(13,17,e.submissionsView$)))}},dependencies:[g.mk,g.sg,g.O5,g.tP,ht.JJ,ht.On,ye.x7,et.Dz,_.t3,_.SK,y.bd,Z.n_,Z.I2,Z.AA,Z.yi,Z.IO,Mt.Ip,Mt.Vq,T.ZU,we.p9,v.Ls,Te.SY,pt.m,Y.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0}),G);Et=(0,Oe.gn)([(0,D.c)()],Et);var H,Fi=l(4632),ut=l(5676),At=l(3997),Ji=l(812),Qi=l(836),$i=l(3620),Yi=l(2460),Gi=l(3489),Hi=l(9857),Bi=l(4997),Vi=l(6753),Wi=l(4764),ji=l(8516),Ie=l(4527),Xi=l(5573);function Ki(n,i){}function qi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,Ki,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),o=t.MAs(8),s=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",o),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function to(n,i){}const eo=function(n){return{height:n}};function no(n,i){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,to,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(6),s=t.MAs(8),r=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,eo,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function io(n,i){if(1&n&&(t._UZ(0,"tr",23),t.TgZ(1,"tr")(2,"td",19),t._UZ(3,"cvc-organization-tag",24),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",25),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",26),t._uU(13),t.ALo(14,"timeAgo"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("org",e),t.xp6(2),t.hij(" ",t.lcZ(6,6,e.memberCount)," "),t.xp6(3),t.Q6J("maxDisplayCount",1)("tags",e.subGroups),t.xp6(2),t.hij(" ",t.lcZ(11,8,e.eventCount)," "),t.xp6(3),t.hij(" ",t.lcZ(14,10,null==e.mostRecentEvent?null:e.mostRecentEvent.createdAt)," ")}}const oo=function(){return[]},so=function(){return{x:"680px",y:"800px"}};function ro(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.scrollEvent$.next(s))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.sortChange$.next(s))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Organization "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Members"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Sub Organizations"),t.qZA(),t.TgZ(14,"th",16),t._uU(15," Actions "),t.qZA(),t.TgZ(16,"th",17),t._uU(17," Last Action "),t.qZA()(),t.TgZ(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.NdJ("inputModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.orgNameInput=s)})("inputModelChange",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.filterChange$.next())}),t.qZA()(),t._UZ(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,io,15,12,"ng-template",22),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,14,e.row$)||t.DdM(22,oo))("nzLoading",!t.lcZ(3,16,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,18,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,20,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(23,so))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",e.orgNameInput)}}function ao(n,i){}function co(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ao,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function lo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function ho(n,i){if(1&n&&(t.YNc(0,co,2,1,"ng-container",27),t.YNc(1,lo,2,1,"ng-container",27),t.TgZ(2,"span",28),t._UZ(3,"cvc-table-counts",29),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function go(n,i){1&n&&(t.TgZ(0,"nz-tag",32),t._UZ(1,"i",33),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function po(n,i){if(1&n&&(t.YNc(0,go,4,0,"nz-tag",30),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",31),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let Lt=((H=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e){this.gql=i,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=z.xlL,this.noMoreRows$=new E.X(!1),this.scrollEvent$=new E.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Ji.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Qi.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","organizations"),(0,A.h)(ut.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,A.h)(ut.ep),(0,I.U)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,A.h)(ut.ep)),this.sortChange$.pipe((0,D.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,Fi._)(i)})}),this.filterChange$.pipe((0,$i.b)(500),(0,D.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(i=>"stop"!==i),(0,At.x)(),(0,D.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.h)(i=>"bottom"===i),(0,Yi.M)(this.pageInfo$),(0,I.U)(([i,e])=>e),(0,D.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,e){return e?.id}}).\u0275fac=function(i){return new(i||H)(t.Y36(z.io),t.Y36(t.sBO))},H.\u0275cmp=t.Xpm({type:H,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right"],["nzWidth","125px","nzRight","","nzAlign","right"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,e){if(1&i&&(t.YNc(0,qi,3,3,"ng-container",0),t.YNc(1,no,3,6,"ng-template",null,1,t.W1O),t.YNc(3,ro,27,24,"ng-template",null,2,t.W1O),t.YNc(5,ho,4,3,"ng-template",null,3,t.W1O),t.YNc(7,po,4,6,"ng-template",null,4,t.W1O)),2&i){const o=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",o)}},dependencies:[g.O5,g.tP,g.PC,v.Ls,S.N8,S.qD,S.Uo,S._C,S.Om,S.p0,S.$Z,S.zu,S.qn,S.UX,gt.w,y.bd,dt.j,Gi.H,Hi.B,Bi.y,Vi.D,Wi.q,ji.p,pt.m,Ie.T,g.JJ,Y.fM,Xi.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),H);function mo(n,i){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Organization Docs "),t.qZA())}Lt=(0,Oe.gn)([(0,D.c)()],Lt);const uo=function(){return[8,16]};let fo=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["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/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Organizations"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,mo,3,0,"a",8),t.qZA()()(),t.TgZ(15,"nz-row",9)(16,"nz-col",10),t._UZ(17,"cvc-organization-leaderboards"),t.qZA(),t.TgZ(18,"nz-col",11)(19,"div",12),t._UZ(20,"cvc-organizations-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,4,"Organization")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(5),t.Q6J("nzGutter",t.DdM(6,uo)),t.xp6(3),t.Q6J("nzSpan",24))},dependencies:[Q.$O,Q.u5,v.Ls,_.t3,_.SK,k.ix,gt.w,w.NU,w.$1,T.ZU,De.I,Et,Lt,Pe.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{flex-wrap:nowrap;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 Zt=l(2185),_o=l(1958),vo=l(7458),zo=l(356),Co=l(4082);function bo(n,i){if(1&n&&t._UZ(0,"cvc-user-avatar",17),2&n){const e=t.oxw();t.Q6J("user",e.user)("size",48)}}function xo(n,i){if(1&n&&t._UZ(0,"cvc-user-tag",18),2&n){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}function wo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function yo(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",19),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",e.organizations)}}function To(n,i){1&n&&(t.ynx(0),t.TgZ(1,"span",20)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function So(n,i){1&n&&(t.TgZ(0,"i",20),t._uU(1," None provided "),t.qZA())}function Do(n,i){if(1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",24),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://",e.user.url,"",t.LSH)}}function Po(n,i){1&n&&t._UZ(0,"i",25)}function Oo(n,i){if(1&n&&(t.YNc(0,Do,2,1,"a",21),t.YNc(1,Po,1,0,"ng-template",null,22,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.url)("ngIfElse",e)}}function Io(n,i){if(1&n&&(t.TgZ(0,"a",28),t._UZ(1,"i",29),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function Mo(n,i){1&n&&t._UZ(0,"i",30)}function Ro(n,i){if(1&n&&(t.YNc(0,Io,2,1,"a",26),t.YNc(1,Mo,1,0,"ng-template",null,27,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.twitterHandle)("ngIfElse",e)}}function Eo(n,i){if(1&n&&(t.TgZ(0,"a",33),t._UZ(1,"i",34),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function Ao(n,i){1&n&&t._UZ(0,"i",35)}function Lo(n,i){if(1&n&&(t.YNc(0,Eo,2,1,"a",31),t.YNc(1,Ao,1,0,"ng-template",null,32,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.facebookProfile)("ngIfElse",e)}}function Zo(n,i){if(1&n&&(t.TgZ(0,"a",38),t._UZ(1,"i",39),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function ko(n,i){1&n&&t._UZ(0,"i",40)}function No(n,i){if(1&n&&(t.YNc(0,Zo,2,1,"a",36),t.YNc(1,ko,1,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.linkedinProfile)("ngIfElse",e)}}function Uo(n,i){if(1&n&&(t.TgZ(0,"a",43),t._UZ(1,"i",44),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function Fo(n,i){1&n&&t._UZ(0,"i",45)}function Jo(n,i){if(1&n&&(t.YNc(0,Uo,2,1,"a",41),t.YNc(1,Fo,1,0,"ng-template",null,42,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.orcid)("ngIfElse",e)}}const Qo=function(n,i,e,o,s){return[n,i,e,o,s]};let $o=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case z.i44.Admin:this.icon="civic-admin";break;case z.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],["userAvatar",""],["userTag",""],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["noPersonalLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["noTwitterLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["noFacebookLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["noLinkedinLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["noOrcidLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,bo,1,2,"ng-template",null,2,t.W1O),t.YNc(4,xo,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),t._uU(9),t.ALo(10,"titlecase"),t.qZA(),t.TgZ(11,"nz-descriptions-item",7),t.YNc(12,wo,3,3,"ng-container",8),t.qZA(),t.TgZ(13,"nz-descriptions-item",9),t.YNc(14,yo,2,2,"ng-container",10),t.YNc(15,To,4,0,"ng-container",10),t.qZA(),t.YNc(16,So,2,0,"ng-template",null,11,t.W1O),t.qZA()()(),t.YNc(18,Oo,3,2,"ng-template",null,12,t.W1O),t.YNc(20,Ro,3,2,"ng-template",null,13,t.W1O),t.YNc(22,Lo,3,2,"ng-template",null,14,t.W1O),t.YNc(24,No,3,2,"ng-template",null,15,t.W1O),t.YNc(26,Jo,3,2,"ng-template",null,16,t.W1O)),2&e){const s=t.MAs(3),r=t.MAs(5),a=t.MAs(17),c=t.MAs(19),h=t.MAs(21),d=t.MAs(23),p=t.MAs(25),f=t.MAs(27);t.Q6J("nzActions",t.qbA(16,Qo,c,f,p,d,h)),t.xp6(1),t.Q6J("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(10,14,o.user.role)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",o.user.areaOfExpertise)("ngIfElse",a),t.xp6(1),t.Q6J("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",o.user.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===o.user.organizations.length)}},dependencies:[g.O5,y.bd,y.l7,M.R7,M.uj,T.ZU,v.Ls,Ie.T,vo.L,zo.I,g.rS,Co.I],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function Yo(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-user-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("user",e)}}function Go(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Yo,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function Ho(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().ngrxLet,r=t.oxw();return t.KtG(r.loadMore(s.endCursor))}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij(" Load ",e.initialPageSize," More ")}}function Bo(n,i){if(1&n&&(t.TgZ(0,"nz-col",6),t.YNc(1,Ho,2,1,"button",7),t.qZA()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e&&e.hasNextPage&&e.endCursor)}}const Vo=function(){return[8,8]};let Wo=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,Zt.j)("loading"),(0,F.O)(!0)),this.members$=a.pipe((0,Zt.j)("data","users","edges"),(0,A.h)(ut.lm),(0,I.U)(c=>c.map(h=>h.node))),this.pageInfo$=a.pipe((0,Zt.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Del),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-row",0),t.YNc(1,Go,2,1,"ng-container",1),t.ALo(2,"ngrxPush"),t.YNc(3,Bo,2,1,"nz-col",2),t.qZA()),2&e&&(t.Q6J("nzGutter",t.DdM(5,Vo)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,o.members$)),t.xp6(2),t.Q6J("ngrxLet",o.pageInfo$))},dependencies:[g.sg,g.O5,Y.eJ,_.t3,_.SK,k.ix,gt.w,_o.dQ,$o,Y.fM],encapsulation:2}),n})();var jo=l(4106);const Xo=[{path:"",component:(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[C.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:fo},{path:":organizationId",component:pi,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Wo,data:{breadcrumb:"Members"}},{path:"groups",component:yi,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:_i,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Bn,data:{breadcrumb:"Assertions"}},{path:"activity",component:ui,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[jo.O],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[C.Bz.forChild(Xo),C.Bz]}),n})();var qo=l(5843);let ts=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,qo.W]}),n})(),es=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.ez,Ko,Jn,In,Ae,Sn,Pn,Mn,Gn,ts]}),n})()}}]); \ No newline at end of file diff --git a/server/public/1703.744a45c22e9827f5.js b/server/public/1703.e5bad141d90c6890.js similarity index 94% rename from server/public/1703.744a45c22e9827f5.js rename to server/public/1703.e5bad141d90c6890.js index 70a7a9e7b..f75af5931 100644 --- a/server/public/1703.744a45c22e9827f5.js +++ b/server/public/1703.e5bad141d90c6890.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1703],{5959:(W,V,e)=>{e.d(V,{u:()=>R});var d=e(2023),n=e(5879),t=e(6814),b=e(4190),M=e(7417),y=e(5695),Z=e(551),A=e(5676),z=e(7398),P=e(2181),C=e(313),h=e(2962),T=e(8125),S=e(4138),I=e(9408),g=e(1887),x=e(8091),f=e(2616);function J(i,c){if(1&i&&(n._UZ(0,"i",7),n.ALo(1,"entityColor"),n._uU(2)),2&i){const l=n.oxw().ngIf;n.Q6J("nzTwotoneColor",n.lcZ(1,2,"VariantGroup")),n.xp6(2),n.hij(" ",l.name," ")}}function Q(i,c){if(1&i&&n._UZ(0,"cvc-variant-tag",10),2&i){const l=c.$implicit;n.Q6J("enablePopover",!1)("variant",l.node)}}function w(i,c){if(1&i&&(n.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),n.YNc(2,Q,1,2,"cvc-variant-tag",9),n.qZA()()),2&i){const l=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",l.variants.edges)}}function H(i,c){if(1&i&&n._UZ(0,"cvc-source-tag",13),2&i){const l=c.$implicit;n.Q6J("enablePopover",!1)("source",l)}}function O(i,c){if(1&i&&(n.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),n.YNc(2,H,1,2,"cvc-source-tag",12),n.qZA()()),2&i){const l=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",l.sources)}}function N(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,J,3,4,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,w,3,1,"nz-descriptions-item",5),n.YNc(7,O,3,1,"nz-descriptions-item",6),n.qZA()(),n.BQk()),2&i){const l=c.ngIf,u=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",u),n.xp6(3),n.hij(" ",l.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",l.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",l.sources.length>0)}}let L=(()=>{class i{constructor(l){this.gql=l}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,z.U)(({data:l})=>l?.variantGroup),(0,P.h)(A.ep))}}return i.\u0275fac=function(l){return new(l||i)(n.Y36(C.Zo2))},i.\u0275cmp=n.Xpm({type:i,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(l,u){1&l&&(n.TgZ(0,"div",0),n.YNc(1,N,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&l&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,u.variantGroup$)))},dependencies:[t.sg,t.O5,h.bd,T.R7,T.uj,Z.Ls,S.T,I.I,g.$,x.fM,f.a],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})();var B=e(3103);function G(i,c){}function _(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"a",4),n.YNc(2,G,0,0,"ng-template",5),n.qZA(),n.BQk()),2&i){const l=n.oxw(),u=n.MAs(2);n.xp6(1),n.Q6J("routerLink",l.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function U(i,c){}function v(i,c){if(1&i&&n._UZ(0,"cvc-variant-group-popover",9),2&i){const l=n.oxw(3);n.Q6J("variantGroupId",l.variantgroup.id)}}function F(i,c){if(1&i&&n.YNc(0,v,1,1,"cvc-variant-group-popover",8),2&i){const l=n.oxw(2);n.Q6J("ngIf",l.enablePopover)}}function Y(i,c){if(1&i&&(n.TgZ(0,"nz-tag",6),n.YNc(1,U,0,0,"ng-template",5),n.qZA(),n.YNc(2,F,1,1,"ng-template",null,7,n.W1O)),2&i){const l=n.MAs(3),u=n.oxw(),$=n.MAs(6);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",u.enablePopover?"hover":null),n.xp6(1),n.Q6J("ngTemplateOutlet",$)}}function E(i,c){}function j(i,c){if(1&i&&n.YNc(0,E,0,0,"ng-template",5),2&i){n.oxw();const l=n.MAs(2);n.Q6J("ngTemplateOutlet",l)}}function D(i,c){if(1&i&&(n.TgZ(0,"cvc-icon-badges",10),n._UZ(1,"i",11),n.ALo(2,"entityColor"),n.qZA(),n._uU(3)),2&i){const l=n.oxw();n.Q6J("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,4,"VariantGroup")),n.xp6(2),n.hij(" ",l.variantgroup.name,"\n")}}let R=(()=>{class i{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.f)("VariantGroup")}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(l,u){if(1&l&&(n.YNc(0,_,3,2,"ng-container",0),n.YNc(1,Y,4,4,"ng-template",null,1,n.W1O),n.YNc(3,j,1,1,"ng-template",null,2,n.W1O),n.YNc(5,D,4,6,"ng-template",null,3,n.W1O)),2&l){const $=n.MAs(4);n.Q6J("ngIf",u.linked)("ngIfElse",$)}},dependencies:[t.O5,t.tP,b.rH,M.lU,y.j,Z.Ls,L,B.b,f.a],encapsulation:2,changeDetection:0}),i})()},3641:(W,V,e)=>{e.d(V,{G:()=>I});var d=e(6814),n=e(4190),t=e(7417),b=e(5695),M=e(551),y=e(366),Z=e(8641),A=e(7528),z=e(2524),P=e(2962),C=e(8125),h=e(5879);let T=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[d.ez,P.vh,C.q6,M.PV,Z.s,A.Q,y.$,z.s]}),g})();var S=e(3146);let I=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[d.ez,n.Bz,t.$6,b.X,M.PV,T,z.s,S.C]}),g})()},1703:(W,V,e)=>{e.r(V),e.d(V,{VariantGroupsModule:()=>$t});var u,d=e(6814),n=e(4190),t=e(5879),b=e(951),M=e(8091),y=e(2840),Z=e(855),A=e(1958),z=e(95),P=e(6254),C=e(551),h=e(2392),T=e(2574),S=e(655),I=e(4632),g=e(313),x=e(5619),f=e(8645),J=e(5676),Q=e(3997),w=e(812),H=e(836),O=e(2181),N=e(7398),L=e(3620),B=e(2460),G=e(4223),_=e(1791),U=e(2962),v=e(3740),F=e(5695),Y=e(6109),E=e(6753),j=e(4764),D=e(8516),R=e(3489),i=e(9857),c=e(4997),l=e(5959);function $(o,r){}function k(o,r){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,$,0,0,"ng-template",6),t.qZA(),t.BQk()),2&o){t.oxw();const a=t.MAs(6),s=t.MAs(8),p=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function tt(o,r){}const nt=function(o){return{height:o}};function et(o,r){if(1&o&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,tt,0,0,"ng-template",6),t.qZA()()),2&o){const a=t.oxw(),s=t.MAs(6),p=t.MAs(8),m=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,nt,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",s)("nzExtra",p),t.xp6(1),t.Q6J("ngTemplateOutlet",m)}}function ot(o,r){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=r.$implicit,s=r.last;t.xp6(1),t.AsE(" ",a,"",s?"":", "," ")}}function at(o,r){if(1&o&&t.YNc(0,ot,2,2,"ng-container",29),2&o){const a=t.oxw().$implicit;t.Q6J("ngForOf",a.variantNames)}}function rt(o,r){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const a=r.$implicit,s=r.last;t.xp6(1),t.AsE(" ",a,"",s?"":", "," ")}}function it(o,r){if(1&o&&(t.TgZ(0,"tr",25)(1,"td",21),t._UZ(2,"cvc-variant-group-tag",26),t.qZA(),t.TgZ(3,"td",27),t.YNc(4,at,1,1,"ng-template",null,28,t.W1O),t.GkF(6,6),t.qZA(),t.TgZ(7,"td"),t.YNc(8,rt,2,2,"span",29),t.qZA(),t.TgZ(9,"td",30),t._uU(10),t.qZA(),t.TgZ(11,"td",30),t._uU(12),t.qZA()()),2&o){const a=r.$implicit,s=t.MAs(5),p=t.oxw(2);t.xp6(2),t.Q6J("variantgroup",a),t.xp6(1),t.Q6J("nzTooltipTitle",p.isScrolling?"":s),t.xp6(3),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngForOf",a.geneNames),t.xp6(2),t.hij(" ",a.variantCount," "),t.xp6(2),t.hij(" ",a.evidenceItemCount," ")}}const lt=function(){return[]},ct=function(){return{x:"680px",y:"800px"}},X=function(){return["descend","ascend",null]};function pt(o,r){if(1&o){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.scrollEvent$.next(p))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.sortChange$.next(p))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Variants"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Genes"),t.qZA(),t.TgZ(14,"th",16),t._UZ(15,"i",17),t._uU(16," Count "),t.qZA(),t.TgZ(17,"th",18),t._UZ(18,"i",19),t._uU(19," Count "),t.qZA()(),t.TgZ(20,"tr",20)(21,"th",21)(22,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.nameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(23,"th")(24,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.variantNameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(25,"th")(26,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.geneNameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t._UZ(27,"th",23)(28,"th",23),t.qZA()(),t.TgZ(29,"tbody"),t.YNc(30,it,13,6,"ng-template",24),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,22,a.row$)||t.DdM(30,lt))("nzLoading",!t.lcZ(3,24,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,26,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,28,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(31,ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.xp6(6),t.Q6J("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(32,X)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,X)),t.xp6(5),t.Q6J("inputModel",a.nameInput),t.xp6(2),t.Q6J("inputModel",a.variantNameInput),t.xp6(2),t.Q6J("inputModel",a.geneNameInput)}}function st(o,r){}function gt(o,r){if(1&o&&(t.ynx(0),t.YNc(1,st,0,0,"ng-template",6),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function ut(o,r){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function dt(o,r){if(1&o&&(t.YNc(0,gt,2,1,"ng-container",31),t.YNc(1,ut,2,1,"ng-container",31),t.TgZ(2,"span",32),t._UZ(3,"cvc-table-counts",33),t.qZA()),2&o){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function vt(o,r){1&o&&(t.TgZ(0,"nz-tag",36),t._UZ(1,"i",37),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function mt(o,r){if(1&o&&(t.YNc(0,vt,4,0,"nz-tag",34),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",35),t.ALo(3,"ngrxPush")),2&o){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let K=((u=class{set initialUserFilters(r){r&&Object.assign(this,r)}constructor(r,a){this.gql=r,this.cdr=a,this.initialPageSize=30,this.isScrolling=!1,this.sortColumns=g.FB1,this.noMoreRows$=new x.X(!1),this.scrollEvent$=new x.X("stop"),this.sortChange$=new f.x,this.filterChange$=new f.x,this.scrollIndex$=new f.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,G.j)("loading"),(0,Q.x)(),(0,w.o)(r=>!1!==r,!0)),this.moreLoading$=this.result$.pipe((0,G.j)("loading"),(0,Q.x)(),(0,H.T)(2)),this.connection$=this.result$.pipe((0,G.j)("data","browseVariantGroups"),(0,O.h)(J.ep)),this.row$=this.connection$.pipe((0,G.j)("edges"),(0,O.h)(J.ep),(0,N.U)(r=>r.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,G.j)("pageInfo"),(0,O.h)(J.ep)),this.sortChange$.pipe((0,_.t)(this)).subscribe(r=>{this.queryRef.refetch({sortBy:(0,I._)(r)})}),this.filterChange$.pipe((0,L.b)(500),(0,_.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,N.U)(r=>"stop"!==r),(0,Q.x)(),(0,_.t)(this)).subscribe(r=>{this.isScrolling=r,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,O.h)(r=>"bottom"===r),(0,B.M)(this.pageInfo$),(0,N.U)(([r,a])=>a),(0,_.t)(this)).subscribe(r=>{r.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(r,a){return a?.id}}).\u0275fac=function(r){return new(r||u)(t.Y36(g.qf4),t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-variant-groups-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","250px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px"],["nzWidth","150px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"variantgroup"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["variantNames",""],[4,"ngFor","ngForOf"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","k","","nzType","sync","nzSpin",""]],template:function(r,a){if(1&r&&(t.YNc(0,k,3,3,"ng-container",0),t.YNc(1,et,3,6,"ng-template",null,1,t.W1O),t.YNc(3,pt,31,34,"ng-template",null,2,t.W1O),t.YNc(5,dt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,mt,4,6,"ng-template",null,4,t.W1O)),2&r){const s=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",s)}},dependencies:[d.sg,d.O5,d.tP,d.PC,U.bd,C.Ls,v.N8,v.qD,v.Uo,v._C,v.Om,v.p0,v.$Z,v.zu,v.qn,v.UX,F.j,Y.SY,E.D,j.q,D.p,R.H,i.B,c.y,l.u,M.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0}),u);K=(0,S.gn)([(0,_.c)()],K);var ht=e(3145),ft=e(2616);function Ct(o,r){1&o&&(t.TgZ(0,"button",18),t._UZ(1,"i",19),t._uU(2," Submit New Variant Group "),t.qZA())}function zt(o,r){if(1&o&&(t.ynx(0),t.YNc(1,Ct,3,0,"button",17),t.BQk()),2&o){const a=r.ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function Tt(o,r){if(1&o&&t.YNc(0,zt,2,1,"ng-container",16),2&o){const a=t.oxw();t.Q6J("ngrxLet",a.viewer$)}}function xt(o,r){1&o&&(t.TgZ(0,"a",20),t._UZ(1,"i",21),t._uU(2," View Variant Group Model Docs "),t.qZA())}function Mt(o,r){1&o&&(t.TgZ(0,"a",22),t._UZ(1,"i",21),t._uU(2," View Variant Group Curation Docs "),t.qZA())}const Pt=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(a,s){1&a&&t._UZ(0,"router-outlet")},dependencies:[n.lC],encapsulation:2}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(a){this.viewerService=a,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)(t.Y36(b.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["variant-groups-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzFlex","0 1 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(a,s){if(1&a&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,Tt,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Variant Groups"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,xt,3,0,"a",10),t.YNc(17,Mt,3,0,"a",11),t.qZA()()(),t.TgZ(18,"div",12)(19,"div",13)(20,"div",14),t._UZ(21,"cvc-variant-groups-table",15),t.qZA()()()()()),2&a){const p=t.MAs(2);t.Q6J("actionsTpl",p),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"VariantGroup")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[d.O5,n.rH,M.eJ,y.ix,Z.w,A.dQ,z.t3,z.SK,P.$O,P.u5,C.Ls,h.ZU,T.NU,T.$1,K,ht.I,ft.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{flex-wrap:nowrap;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:()=>Promise.all([e.e(8592),e.e(1754)]).then(e.bind(e,1754)).then(o=>o.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(4872),e.e(5556),e.e(2602),e.e(7889),e.e(7856),e.e(1364),e.e(8245),e.e(4503),e.e(5990),e.e(10),e.e(5683),e.e(5484)]).then(e.bind(e,7093)).then(o=>o.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(1150)]).then(e.bind(e,1150)).then(o=>o.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Gt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.Bz.forChild(Pt),n.Bz]}),o})();var _t=e(6223),Vt=e(7856),yt=e(9154),Zt=e(2989),Ot=e(7528),q=e(2524),bt=e(9175),At=e(4742),St=e(9312),It=e(3641);let Jt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,_t.u5,U.vh,C.PV,C.PV,v.HQ,F.X,Y.cg,h.ZJ,bt.n,At.c,Vt.k,yt.y,q.s,Zt.T,St.w,It.G,Ot.Q]}),o})();var Qt=e(2419);let Nt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,n.Bz,y.sL,z.Jb,P.KJ,C.PV,h.ZJ,T.zf,q.s,Jt,Qt.D]}),o})(),$t=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,Gt,Nt]}),o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1703],{5959:(W,V,e)=>{e.d(V,{u:()=>R});var d=e(2023),n=e(5879),t=e(6814),b=e(4190),M=e(7417),y=e(5695),Z=e(551),A=e(5676),z=e(7398),P=e(2181),C=e(313),h=e(2962),T=e(8125),S=e(4138),I=e(9408),g=e(1887),x=e(8091),f=e(2616);function J(i,c){if(1&i&&(n._UZ(0,"i",7),n.ALo(1,"entityColor"),n._uU(2)),2&i){const l=n.oxw().ngIf;n.Q6J("nzTwotoneColor",n.lcZ(1,2,"VariantGroup")),n.xp6(2),n.hij(" ",l.name," ")}}function Q(i,c){if(1&i&&n._UZ(0,"cvc-variant-tag",10),2&i){const l=c.$implicit;n.Q6J("enablePopover",!1)("variant",l.node)}}function w(i,c){if(1&i&&(n.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),n.YNc(2,Q,1,2,"cvc-variant-tag",9),n.qZA()()),2&i){const l=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",l.variants.edges)}}function H(i,c){if(1&i&&n._UZ(0,"cvc-source-tag",13),2&i){const l=c.$implicit;n.Q6J("enablePopover",!1)("source",l)}}function O(i,c){if(1&i&&(n.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),n.YNc(2,H,1,2,"cvc-source-tag",12),n.qZA()()),2&i){const l=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",l.sources)}}function N(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,J,3,4,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,w,3,1,"nz-descriptions-item",5),n.YNc(7,O,3,1,"nz-descriptions-item",6),n.qZA()(),n.BQk()),2&i){const l=c.ngIf,u=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",u),n.xp6(3),n.hij(" ",l.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",l.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",l.sources.length>0)}}let L=(()=>{class i{constructor(l){this.gql=l}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,z.U)(({data:l})=>l?.variantGroup),(0,P.h)(A.ep))}}return i.\u0275fac=function(l){return new(l||i)(n.Y36(C.Zo2))},i.\u0275cmp=n.Xpm({type:i,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(l,u){1&l&&(n.TgZ(0,"div",0),n.YNc(1,N,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&l&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,u.variantGroup$)))},dependencies:[t.sg,t.O5,h.bd,T.R7,T.uj,Z.Ls,S.T,I.I,g.$,x.fM,f.a],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})();var B=e(3103);function G(i,c){}function _(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"a",4),n.YNc(2,G,0,0,"ng-template",5),n.qZA(),n.BQk()),2&i){const l=n.oxw(),u=n.MAs(2);n.xp6(1),n.Q6J("routerLink",l.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function U(i,c){}function v(i,c){if(1&i&&n._UZ(0,"cvc-variant-group-popover",9),2&i){const l=n.oxw(3);n.Q6J("variantGroupId",l.variantgroup.id)}}function F(i,c){if(1&i&&n.YNc(0,v,1,1,"cvc-variant-group-popover",8),2&i){const l=n.oxw(2);n.Q6J("ngIf",l.enablePopover)}}function Y(i,c){if(1&i&&(n.TgZ(0,"nz-tag",6),n.YNc(1,U,0,0,"ng-template",5),n.qZA(),n.YNc(2,F,1,1,"ng-template",null,7,n.W1O)),2&i){const l=n.MAs(3),u=n.oxw(),$=n.MAs(6);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",u.enablePopover?"hover":null),n.xp6(1),n.Q6J("ngTemplateOutlet",$)}}function E(i,c){}function j(i,c){if(1&i&&n.YNc(0,E,0,0,"ng-template",5),2&i){n.oxw();const l=n.MAs(2);n.Q6J("ngTemplateOutlet",l)}}function D(i,c){if(1&i&&(n.TgZ(0,"cvc-icon-badges",10),n._UZ(1,"i",11),n.ALo(2,"entityColor"),n.qZA(),n._uU(3)),2&i){const l=n.oxw();n.Q6J("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,4,"VariantGroup")),n.xp6(2),n.hij(" ",l.variantgroup.name,"\n")}}let R=(()=>{class i{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.f)("VariantGroup")}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(l,u){if(1&l&&(n.YNc(0,_,3,2,"ng-container",0),n.YNc(1,Y,4,4,"ng-template",null,1,n.W1O),n.YNc(3,j,1,1,"ng-template",null,2,n.W1O),n.YNc(5,D,4,6,"ng-template",null,3,n.W1O)),2&l){const $=n.MAs(4);n.Q6J("ngIf",u.linked)("ngIfElse",$)}},dependencies:[t.O5,t.tP,b.rH,M.lU,y.j,Z.Ls,L,B.b,f.a],encapsulation:2,changeDetection:0}),i})()},3641:(W,V,e)=>{e.d(V,{G:()=>I});var d=e(6814),n=e(4190),t=e(7417),b=e(5695),M=e(551),y=e(366),Z=e(8641),A=e(7528),z=e(2524),P=e(2962),C=e(8125),h=e(5879);let T=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[d.ez,P.vh,C.q6,M.PV,Z.s,A.Q,y.$,z.s]}),g})();var S=e(3146);let I=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[d.ez,n.Bz,t.$6,b.X,M.PV,T,z.s,S.C]}),g})()},1703:(W,V,e)=>{e.r(V),e.d(V,{VariantGroupsModule:()=>$t});var u,d=e(6814),n=e(4190),t=e(5879),b=e(951),M=e(8091),y=e(2840),Z=e(855),A=e(1958),z=e(95),P=e(6254),C=e(551),h=e(2392),T=e(2574),S=e(655),I=e(4632),g=e(313),x=e(5619),f=e(8645),J=e(5676),Q=e(3997),w=e(812),H=e(836),O=e(2181),N=e(7398),L=e(3620),B=e(2460),G=e(4223),_=e(1791),U=e(2962),v=e(3740),F=e(5695),Y=e(6109),E=e(6753),j=e(4764),D=e(8516),R=e(3489),i=e(9857),c=e(4997),l=e(5959);function $(o,r){}function k(o,r){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,$,0,0,"ng-template",6),t.qZA(),t.BQk()),2&o){t.oxw();const a=t.MAs(6),s=t.MAs(8),p=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function tt(o,r){}const nt=function(o){return{height:o}};function et(o,r){if(1&o&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,tt,0,0,"ng-template",6),t.qZA()()),2&o){const a=t.oxw(),s=t.MAs(6),p=t.MAs(8),m=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,nt,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",s)("nzExtra",p),t.xp6(1),t.Q6J("ngTemplateOutlet",m)}}function ot(o,r){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=r.$implicit,s=r.last;t.xp6(1),t.AsE(" ",a,"",s?"":", "," ")}}function at(o,r){if(1&o&&t.YNc(0,ot,2,2,"ng-container",29),2&o){const a=t.oxw().$implicit;t.Q6J("ngForOf",a.variantNames)}}function rt(o,r){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const a=r.$implicit,s=r.last;t.xp6(1),t.AsE(" ",a,"",s?"":", "," ")}}function it(o,r){if(1&o&&(t.TgZ(0,"tr",25)(1,"td",21),t._UZ(2,"cvc-variant-group-tag",26),t.qZA(),t.TgZ(3,"td",27),t.YNc(4,at,1,1,"ng-template",null,28,t.W1O),t.GkF(6,6),t.qZA(),t.TgZ(7,"td"),t.YNc(8,rt,2,2,"span",29),t.qZA(),t.TgZ(9,"td",30),t._uU(10),t.qZA(),t.TgZ(11,"td",30),t._uU(12),t.qZA()()),2&o){const a=r.$implicit,s=t.MAs(5),p=t.oxw(2);t.xp6(2),t.Q6J("variantgroup",a),t.xp6(1),t.Q6J("nzTooltipTitle",p.isScrolling?"":s),t.xp6(3),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngForOf",a.geneNames),t.xp6(2),t.hij(" ",a.variantCount," "),t.xp6(2),t.hij(" ",a.evidenceItemCount," ")}}const lt=function(){return[]},ct=function(){return{x:"680px",y:"800px"}},X=function(){return["descend","ascend",null]};function pt(o,r){if(1&o){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.scrollEvent$.next(p))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.sortChange$.next(p))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Variants"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Genes"),t.qZA(),t.TgZ(14,"th",16),t._UZ(15,"i",17),t._uU(16," Count "),t.qZA(),t.TgZ(17,"th",18),t._UZ(18,"i",19),t._uU(19," Count "),t.qZA()(),t.TgZ(20,"tr",20)(21,"th",21)(22,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.nameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(23,"th")(24,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.variantNameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(25,"th")(26,"cvc-clearable-input-filter",22),t.NdJ("inputModelChange",function(p){t.CHM(a);const m=t.oxw();return t.KtG(m.geneNameInput=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t._UZ(27,"th",23)(28,"th",23),t.qZA()(),t.TgZ(29,"tbody"),t.YNc(30,it,13,6,"ng-template",24),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,22,a.row$)||t.DdM(30,lt))("nzLoading",!t.lcZ(3,24,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,26,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,28,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(31,ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.xp6(6),t.Q6J("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(32,X)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,X)),t.xp6(5),t.Q6J("inputModel",a.nameInput),t.xp6(2),t.Q6J("inputModel",a.variantNameInput),t.xp6(2),t.Q6J("inputModel",a.geneNameInput)}}function st(o,r){}function gt(o,r){if(1&o&&(t.ynx(0),t.YNc(1,st,0,0,"ng-template",6),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function ut(o,r){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function dt(o,r){if(1&o&&(t.YNc(0,gt,2,1,"ng-container",31),t.YNc(1,ut,2,1,"ng-container",31),t.TgZ(2,"span",32),t._UZ(3,"cvc-table-counts",33),t.qZA()),2&o){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function vt(o,r){1&o&&(t.TgZ(0,"nz-tag",36),t._UZ(1,"i",37),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function mt(o,r){if(1&o&&(t.YNc(0,vt,4,0,"nz-tag",34),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",35),t.ALo(3,"ngrxPush")),2&o){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let K=((u=class{set initialUserFilters(r){r&&Object.assign(this,r)}constructor(r,a){this.gql=r,this.cdr=a,this.initialPageSize=30,this.isScrolling=!1,this.sortColumns=g.FB1,this.noMoreRows$=new x.X(!1),this.scrollEvent$=new x.X("stop"),this.sortChange$=new f.x,this.filterChange$=new f.x,this.scrollIndex$=new f.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,G.j)("loading"),(0,Q.x)(),(0,w.o)(r=>!1!==r,!0)),this.moreLoading$=this.result$.pipe((0,G.j)("loading"),(0,Q.x)(),(0,H.T)(2)),this.connection$=this.result$.pipe((0,G.j)("data","browseVariantGroups"),(0,O.h)(J.ep)),this.row$=this.connection$.pipe((0,G.j)("edges"),(0,O.h)(J.ep),(0,N.U)(r=>r.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,G.j)("pageInfo"),(0,O.h)(J.ep)),this.sortChange$.pipe((0,_.t)(this)).subscribe(r=>{this.queryRef.refetch({sortBy:(0,I._)(r)})}),this.filterChange$.pipe((0,L.b)(500),(0,_.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,N.U)(r=>"stop"!==r),(0,Q.x)(),(0,_.t)(this)).subscribe(r=>{this.isScrolling=r,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,O.h)(r=>"bottom"===r),(0,B.M)(this.pageInfo$),(0,N.U)(([r,a])=>a),(0,_.t)(this)).subscribe(r=>{r.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(r,a){return a?.id}}).\u0275fac=function(r){return new(r||u)(t.Y36(g.qf4),t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-variant-groups-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","250px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px"],["nzWidth","150px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"variantgroup"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["variantNames",""],[4,"ngFor","ngForOf"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","k","","nzType","sync","nzSpin",""]],template:function(r,a){if(1&r&&(t.YNc(0,k,3,3,"ng-container",0),t.YNc(1,et,3,6,"ng-template",null,1,t.W1O),t.YNc(3,pt,31,34,"ng-template",null,2,t.W1O),t.YNc(5,dt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,mt,4,6,"ng-template",null,4,t.W1O)),2&r){const s=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",s)}},dependencies:[d.sg,d.O5,d.tP,d.PC,U.bd,C.Ls,v.N8,v.qD,v.Uo,v._C,v.Om,v.p0,v.$Z,v.zu,v.qn,v.UX,F.j,Y.SY,E.D,j.q,D.p,R.H,i.B,c.y,l.u,M.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0}),u);K=(0,S.gn)([(0,_.c)()],K);var ht=e(3145),ft=e(2616);function Ct(o,r){1&o&&(t.TgZ(0,"button",18),t._UZ(1,"i",19),t._uU(2," Submit New Variant Group "),t.qZA())}function zt(o,r){if(1&o&&(t.ynx(0),t.YNc(1,Ct,3,0,"button",17),t.BQk()),2&o){const a=r.ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function Tt(o,r){if(1&o&&t.YNc(0,zt,2,1,"ng-container",16),2&o){const a=t.oxw();t.Q6J("ngrxLet",a.viewer$)}}function xt(o,r){1&o&&(t.TgZ(0,"a",20),t._UZ(1,"i",21),t._uU(2," View Variant Group Model Docs "),t.qZA())}function Mt(o,r){1&o&&(t.TgZ(0,"a",22),t._UZ(1,"i",21),t._uU(2," View Variant Group Curation Docs "),t.qZA())}const Pt=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(a,s){1&a&&t._UZ(0,"router-outlet")},dependencies:[n.lC],encapsulation:2}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(a){this.viewerService=a,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)(t.Y36(b.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["variant-groups-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzFlex","0 1 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(a,s){if(1&a&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,Tt,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Variant Groups"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,xt,3,0,"a",10),t.YNc(17,Mt,3,0,"a",11),t.qZA()()(),t.TgZ(18,"div",12)(19,"div",13)(20,"div",14),t._UZ(21,"cvc-variant-groups-table",15),t.qZA()()()()()),2&a){const p=t.MAs(2);t.Q6J("actionsTpl",p),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"VariantGroup")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[d.O5,n.rH,M.eJ,y.ix,Z.w,A.dQ,z.t3,z.SK,P.$O,P.u5,C.Ls,h.ZU,T.NU,T.$1,K,ht.I,ft.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{flex-wrap:nowrap;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:()=>Promise.all([e.e(8592),e.e(4084)]).then(e.bind(e,4084)).then(o=>o.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(4872),e.e(5556),e.e(2602),e.e(9949),e.e(7856),e.e(1364),e.e(3575),e.e(4280),e.e(4840),e.e(10),e.e(5683),e.e(5484)]).then(e.bind(e,514)).then(o=>o.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(1150)]).then(e.bind(e,1150)).then(o=>o.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Gt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.Bz.forChild(Pt),n.Bz]}),o})();var _t=e(6223),Vt=e(7856),yt=e(9154),Zt=e(2989),Ot=e(7528),q=e(2524),bt=e(9175),At=e(4742),St=e(9312),It=e(3641);let Jt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,_t.u5,U.vh,C.PV,C.PV,v.HQ,F.X,Y.cg,h.ZJ,bt.n,At.c,Vt.k,yt.y,q.s,Zt.T,St.w,It.G,Ot.Q]}),o})();var Qt=e(2419);let Nt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,n.Bz,y.sL,z.Jb,P.KJ,C.PV,h.ZJ,T.zf,q.s,Jt,Qt.D]}),o})(),$t=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.ez,Gt,Nt]}),o})()}}]); \ No newline at end of file diff --git a/server/public/1754.906379ee1f4de488.js b/server/public/1754.906379ee1f4de488.js deleted file mode 100644 index 87d1b9474..000000000 --- a/server/public/1754.906379ee1f4de488.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1754],{1754:(W,g,n)=>{n.r(g),n.d(g,{VariantGroupsAddModule:()=>D});var p=n(6814),v=n(8603),y=n(2419),V=n(2524),l=n(95),f=n(551),d=n(6254),s=n(4190),b=n(7398),t=n(5879),G=n(951),z=n(8178),S=n(3145),C=n(8091),M=n(2616);function x(e,a){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function w(e,a){1&e&&(t.TgZ(0,"nz-row",7)(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA()())}let A=(()=>{class e{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,b.U)(r=>r.signedIn))}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(G.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-add-view"]],decls:12,vars:7,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,o){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),t._UZ(3,"i",3),t.ALo(4,"entityColor"),t._uU(5," Add New Variant Group "),t.qZA(),t.TgZ(6,"nz-page-header-content")(7,"div",4),t.YNc(8,x,2,0,"div",5),t.ALo(9,"ngrxPush"),t.YNc(10,w,3,0,"ng-template",null,6,t.W1O),t.qZA()()()),2&r){const c=t.MAs(11);t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,3,"VariantGroup")),t.xp6(5),t.Q6J("ngIf",t.lcZ(9,5,o.isSignedIn$))("ngIfElse",c)}},dependencies:[p.O5,s.lC,l.t3,l.SK,f.Ls,d.$O,d.u9,d.u5,z.u,S.I,C.fM,M.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{flex-wrap:nowrap;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 h=n(3599),O=n(2840),P=n(6683),T=n(279),F=n(5106);let Z=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,s.Bz,h.U5,O.sL,P.S,T.s,F.g]}),e})(),I=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,Z]}),e})();var J=n(655),u=n(6223),U=n(2024),L=n(2784),N=n(1791);const Y=[{wrappers:["form-layout"],props:{submitLabel:"Submit Variant Group",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Submit Variant Group"},fieldGroup:[{key:"name",type:"input",props:{label:"Variant Group Name",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Variant Group.",placeholder:"Enter a Variant Group Summary",label:"Variant Group Summary",required:!0,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{required:!1}},{key:"variantIds",type:"variant-multi-select",props:{label:"Variants",required:!0,colSpan:24,requireGene:!1,showManagerBtn:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Group"}}]}]}];var i,B=n(313),Q=n(7473),j=n(5545),$=n(4634);const E=function(e){return["/variant-groups",e]};function K(e,a){if(1&e&&(t._uU(0," View your Variant Group "),t.TgZ(1,"a",4),t._uU(2,"here"),t.qZA(),t._uU(3,". You will be redirected shortly. ")),2&e){const r=t.oxw();t.xp6(1),t.Q6J("routerLink",t.VKq(1,E,r.newVariantGroupId))}}let m=((i=class{constructor(a,r,o){this.submitVariantGroupGQL=a,this.networkErrorService=r,this.cdr=o,this.form=new u.nJ({}),this.model={fields:{}},this.fields=Y,this.submitVariantGroupMutator=new U.U(r)}onSubmit(a){const r=(0,L.t3)(a);r&&(this.mutationState=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:r},void 0,o=>{this.newVariantGroupId=o.submitVariantGroup?.variantGroup.id,this.newVariantGroupUrl=`/variant-groups/${this.newVariantGroupId}`}))}}).\u0275fac=function(a){return new(a||i)(t.Y36(B.tji),t.Y36(Q.Y),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variantgroup-submit-form"]],decls:5,vars:7,consts:[["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","modelChange"],[3,"routerLink"]],template:function(a,r){if(1&a&&(t.TgZ(0,"cvc-form-submission-status-display",0),t.YNc(1,K,4,3,"ng-template",null,1,t.W1O),t.TgZ(3,"form",2),t.NdJ("ngSubmit",function(){return r.onSubmit(r.model)}),t.TgZ(4,"formly-form",3),t.NdJ("modelChange",function(c){return r.model=c}),t.qZA()()()),2&a){const o=t.MAs(2);t.Q6J("mutationState",r.mutationState)("redirectUrl",r.newVariantGroupUrl)("successMessage",o),t.xp6(3),t.Q6J("formGroup",r.form),t.xp6(1),t.Q6J("form",r.form)("fields",r.fields)("model",r.model)}},dependencies:[s.rH,h.Lr,u._Y,u.JL,u.sg,j.T7,$.F]}),i);m=(0,J.gn)([(0,N.c)()],m);const R=[{path:"",component:A,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,o){1&r&&t._UZ(0,"cvc-variantgroup-submit-form")},dependencies:[m],encapsulation:2}),e})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let X=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.Bz.forChild(R),I,s.Bz]}),e})(),D=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,X,l.Jb,f.PV,d.KJ,v.a,V.s,y.D]}),e})()}}]); \ No newline at end of file diff --git a/server/public/1863.dae13edfdb0a5b40.js b/server/public/1863.dae13edfdb0a5b40.js new file mode 100644 index 000000000..cb14b0e60 --- /dev/null +++ b/server/public/1863.dae13edfdb0a5b40.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1863],{4786:(W,k,s)=>{s.d(k,{O:()=>u});var i=s(8130),E=s(2023),r=s(5879),t=s(6814),N=s(4190),_=s(5695),S=s(7417),O=s(551),I=s(8213),x=s(3103),w=s(2616);function C(c,p){}function Z(c,p){if(1&c&&(r.ynx(0),r.TgZ(1,"a",4),r.YNc(2,C,0,0,"ng-template",5),r.qZA(),r.BQk()),2&c){const m=r.oxw(),M=r.MAs(2);r.xp6(1),r.Q6J("routerLink",m.evidence.link),r.xp6(1),r.Q6J("ngTemplateOutlet",M)}}function f(c,p){}function y(c,p){if(1&c&&r._UZ(0,"cvc-evidence-popover",9),2&c){const m=r.oxw(3);r.Q6J("evidenceId",m.evidence.id)}}function v(c,p){if(1&c&&r.YNc(0,y,1,1,"cvc-evidence-popover",8),2&c){const m=r.oxw(2);r.Q6J("ngIf",m.enablePopover)}}const A=function(c,p,m){return{rejected:c,submitted:p,accepted:m}};function P(c,p){if(1&c&&(r.TgZ(0,"nz-tag",6),r.YNc(1,f,0,0,"ng-template",5),r.qZA(),r.YNc(2,v,1,1,"ng-template",null,7,r.W1O)),2&c){const m=r.MAs(3),M=r.oxw(),B=r.MAs(6);r.Q6J("ngClass",r.kEZ(5,A,"REJECTED"===M.evidence.status,"SUBMITTED"===M.evidence.status,"ACCEPTED"===M.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",M.enablePopover?"hover":null),r.xp6(1),r.Q6J("ngTemplateOutlet",B)}}function L(c,p){}function Q(c,p){if(1&c&&r.YNc(0,L,0,0,"ng-template",5),2&c){r.oxw();const m=r.MAs(2);r.Q6J("ngTemplateOutlet",m)}}function b(c,p){if(1&c&&(r.TgZ(0,"cvc-icon-badges",10),r._UZ(1,"i",11),r.ALo(2,"entityColor"),r.ALo(3,"entityColor"),r.qZA(),r._uU(4)),2&c){const m=r.oxw();r.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),r.xp6(1),r.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?r.lcZ(2,4,"Rejected"):r.lcZ(3,6,"EvidenceItem")),r.xp6(3),r.hij(" ",m.evidence.name,"\n")}}let u=(()=>{class c extends i.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,E.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[r.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,M){if(1&m&&(r.YNc(0,Z,3,2,"ng-container",0),r.YNc(1,P,4,9,"ng-template",null,1,r.W1O),r.YNc(3,Q,1,1,"ng-template",null,2,r.W1O),r.YNc(5,b,5,8,"ng-template",null,3,r.W1O)),2&m){const B=r.MAs(4);r.Q6J("ngIf",M.linked)("ngIfElse",B)}},dependencies:[t.mk,t.O5,t.tP,N.rH,_.j,S.lU,O.Ls,I._,x.b,w.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),c})()},1218:(W,k,s)=>{s.d(k,{i:()=>w});var i=s(6814),E=s(4190),r=s(5695),t=s(7417),N=s(551),_=s(1855),S=s(2524),O=s(3640),I=s(3146),x=s(5879);let w=(()=>{class C{}return C.\u0275fac=function(f){return new(f||C)},C.\u0275mod=x.oAB({type:C}),C.\u0275inj=x.cJS({imports:[i.ez,E.Bz,O.mS,r.X,t.$6,N.PV,_.f,S.s,I.C]}),C})()},215:(W,k,s)=>{s.d(k,{m:()=>ht});var i=s(5879),E=s(6814),r=s(4190),t=s(5695),N=s(551),_=s(7417),S=s(5676),O=s(7398),I=s(2181),x=s(313),w=s(2962),C=s(95),Z=s(8125),f=s(3317),y=s(7458),v=s(8091);const A=function(h,z){return{displayName:h,profileImagePath:z}};function P(h,z){if(1&h&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&h){const g=i.oxw().ngIf;i.Q6J("user",i.WLB(2,A,g.name,g.profileImagePath)),i.xp6(2),i.Oqu(g.name)}}function L(h,z){if(1&h&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&h){const g=z.ngIf;i.xp6(1),i.Oqu(g)}}function Q(h,z){if(1&h&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&h){const g=i.oxw().ngIf;i.xp6(1),i.Q6J("href",g.url),i.xp6(1),i.hij(" ",g.name," ")}}function b(h,z){if(1&h&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,P,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),i.YNc(8,L,2,1,"span",9),i.qZA()()()(),i.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),i.YNc(11,Q,3,2,"ng-container",9),i.qZA()()(),i.BQk()),2&h){const g=z.ngIf,D=i.MAs(3);i.oxw();const J=i.MAs(4),Y=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",D),i.xp6(7),i.Q6J("ngIf",g.description)("ngIfElse",J),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",g.url)("ngIfElse",Y)}}function u(h,z){1&h&&i._uU(0," Organization has not provided a description.\n")}function c(h,z){1&h&&i._uU(0," -- ")}let p=(()=>{class h{constructor(g){this.gql=g}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,O.U)(({data:g})=>g?.organization),(0,I.h)(S.ep))}}return h.\u0275fac=function(g){return new(g||h)(i.Y36(x.X5f))},h.\u0275cmp=i.Xpm({type:h,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(g,D){1&g&&(i.TgZ(0,"div",0),i.YNc(1,b,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,u,1,0,"ng-template",null,2,i.W1O),i.YNc(5,c,1,0,"ng-template",null,3,i.W1O)),2&g&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,D.org$)))},dependencies:[E.O5,w.bd,C.t3,C.SK,Z.R7,Z.uj,f.l,y.L,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}"]}),h})();function m(h,z){}function M(h,z){if(1&h&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,m,0,0,"ng-template",5),i.qZA(),i.BQk()),2&h){const g=i.oxw(),D=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",g.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function B(h,z){}function q(h,z){if(1&h&&i._UZ(0,"cvc-organization-popover",9),2&h){const g=i.oxw(3);i.Q6J("orgId",g.org.id)}}function tt(h,z){if(1&h&&i.YNc(0,q,1,1,"cvc-organization-popover",8),2&h){const g=i.oxw(2);i.Q6J("ngIf",g.enablePopover)}}function et(h,z){if(1&h&&(i.TgZ(0,"nz-tag",6),i.YNc(1,B,0,0,"ng-template",5),i.qZA(),i.YNc(2,tt,1,1,"ng-template",null,7,i.W1O)),2&h){const g=i.MAs(3);i.oxw();const D=i.MAs(6);i.Q6J("nzPopoverContent",g),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function nt(h,z){}function ot(h,z){if(1&h&&i.YNc(0,nt,0,0,"ng-template",5),2&h){i.oxw();const g=i.MAs(2);i.Q6J("ngTemplateOutlet",g)}}function it(h,z){if(1&h&&(i._UZ(0,"i",10),i._uU(1)),2&h){const g=i.oxw();i.xp6(1),i.hij(" ",g.org.name,"\n")}}let ht=(()=>{class h{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 h.\u0275fac=function(g){return new(g||h)},h.\u0275cmp=i.Xpm({type:h,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(g,D){if(1&g&&(i.YNc(0,M,3,2,"ng-container",0),i.YNc(1,et,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ot,1,1,"ng-template",null,2,i.W1O),i.YNc(5,it,2,1,"ng-template",null,3,i.W1O)),2&g){const J=i.MAs(4);i.Q6J("ngIf",D.linked)("ngIfElse",J)}},dependencies:[E.O5,E.tP,r.rH,t.j,N.Ls,_.lU,p],styles:["[_nghost-%COMP%]{display:inline-block}"]}),h})()},1106:(W,k,s)=>{s.d(k,{L:()=>Z});var i=s(6814),E=s(4190),r=s(5695),t=s(551),N=s(95),_=s(6067),S=s(8125),O=s(2962),I=s(4293),x=s(5879);let w=(()=>{class f{}return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=x.oAB({type:f}),f.\u0275inj=x.cJS({imports:[i.ez,O.vh,N.Jb,S.q6,_.X,I.H]}),f})();var C=s(7417);let Z=(()=>{class f{}return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=x.oAB({type:f}),f.\u0275inj=x.cJS({imports:[i.ez,E.Bz,r.X,t.PV,C.$6,w]}),f})()},3641:(W,k,s)=>{s.d(k,{G:()=>y});var i=s(6814),E=s(4190),r=s(7417),t=s(5695),N=s(551),_=s(366),S=s(8641),O=s(7528),I=s(2524),x=s(2962),w=s(8125),C=s(5879);let Z=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=C.oAB({type:v}),v.\u0275inj=C.cJS({imports:[i.ez,x.vh,w.q6,N.PV,S.s,O.Q,_.$,I.s]}),v})();var f=s(3146);let y=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=C.oAB({type:v}),v.\u0275inj=C.cJS({imports:[i.ez,E.Bz,r.$6,t.X,N.PV,Z,I.s,f.C]}),v})()},5573:(W,k,s)=>{s.d(k,{x:()=>w});var i=s(5879);const r=3600,t=24*r,_=365*t,O=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),x=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let w=(()=>{class C{transform(f){let y;y="number"==typeof f?f:Date.parse(f);const v=Date.now(),A=Math.round(Math.abs(v-y)/1e3);if(A>=2592e3&&A<_){let b=new Date(y);return O.format(b)}if(A>=_){let b=new Date(y);return x.format(b)}let P,L;return A<60?(P=Math.round(A),L="second"):A1?"s":""} ago`}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=i.Yjl({name:"timeAgo",type:C,pure:!0}),C})()},91:(W,k,s)=>{s.r(k),s.d(k,{WelcomeModule:()=>ye});var i=s(4190),E=s(313),r=s(7398),t=s(5879),N=s(9862),_=s(6814),S=s(95),O=s(9388),I=s(2831),x=s(655),w=s(6028),C=s(8645),Z=s(2438),f=s(9773),y=s(874),v=s(7754),A=s(9087);const P=["slickList"],L=["slickTrack"];function Q(n,o){}const b=function(n){return{$implicit:n}};function u(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const d=t.CHM(e).index,U=t.oxw(2);return t.KtG(U.onLiClick(d))}),t.YNc(1,Q,0,0,"ng-template",10),t.qZA()}if(2&n){const e=o.index,a=t.oxw(2),l=t.MAs(8);t.ekj("slick-active",e===a.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzDotRender||l)("ngTemplateOutletContext",t.VKq(4,b,e))}}function c(n,o){if(1&n&&(t.TgZ(0,"ul",7),t.YNc(1,u,2,6,"li",8),t.qZA()),2&n){const e=t.oxw();t.ekj("slick-dots-top","top"===e.nzDotPosition)("slick-dots-bottom","bottom"===e.nzDotPosition)("slick-dots-left","left"===e.nzDotPosition)("slick-dots-right","right"===e.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",e.carouselContents)}}function p(n,o){if(1&n&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e+1)}}const m=["*"];let M=(()=>{class n{set isActive(e){this._active=e,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(e,a){this.renderer=a,this._active=!1,this.el=e.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"]}),n})();class B{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(o,e,a,l,d){this.cdr=e,this.renderer=a,this.platform=l,this.options=d,this.carouselComponent=o}withCarouselContents(o){const e=this.carouselComponent;if(this.slickListEl=e.slickListEl,this.slickTrackEl=e.slickTrackEl,this.contents=o?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const a=e.el.getBoundingClientRect();this.unitWidth=a.width,this.unitHeight=a.height}else o?.forEach((a,l)=>{0===l?this.renderer.setStyle(a.el,"width","100%"):this.renderer.setStyle(a.el,"display","none")})}dragging(o){}dispose(){}getFromToInBoundary(o,e){const a=this.maxIndex+1;return{from:(o+a)%a,to:(e+a)%a}}}class q extends B{withCarouselContents(o){super.withCarouselContents(o),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((e,a)=>{this.renderer.setStyle(e.el,"opacity",this.carouselComponent.activeIndex===a?"1":"0"),this.renderer.setStyle(e.el,"position","relative"),this.renderer.setStyle(e.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(e.el,"left",-this.unitWidth*a+"px"),this.renderer.setStyle(e.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(o,e){const{to:a}=this.getFromToInBoundary(o,e),l=new C.x;return this.contents.forEach((d,U)=>{this.renderer.setStyle(d.el,"opacity",a===U?"1":"0")}),setTimeout(()=>{l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l}dispose(){this.contents.forEach(o=>{this.renderer.setStyle(o.el,"transition",null),this.renderer.setStyle(o.el,"opacity",null),this.renderer.setStyle(o.el,"width",null),this.renderer.setStyle(o.el,"left",null)}),super.dispose()}}class tt extends B{get vertical(){return this.carouselComponent.vertical}constructor(o,e,a,l,d){super(o,e,a,l,d),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(o){super.withCarouselContents(o);const a=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, ${-a*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(${-a*this.unitWidth}px, 0, 0)`)),this.contents.forEach(l=>{this.renderer.setStyle(l.el,"position","relative"),this.renderer.setStyle(l.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(l.el,"height",`${this.unitHeight}px`)}))}switch(o,e){const{to:a}=this.getFromToInBoundary(o,e),l=new C.x;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(o,e):this.horizontalTransform(o,e),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(d=>{this.renderer.setStyle(d.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-a*this.unitHeight}px, 0)`:`translate3d(${-a*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l.asObservable()}dragging(o){if(this.isTransitioning)return;const e=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareVerticalContext(!0):0===e&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-e*this.unitHeight+o.x}px, 0)`)):(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareHorizontalContext(!0):0===e&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-e*this.unitWidth+o.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(o,e){const{from:a,to:l}=this.getFromToInBoundary(o,e);this.length>2&&e!==l?(this.prepareVerticalContext(l2&&e!==l?(this.prepareHorizontalContext(l{class n{set nzDotPosition(e){this._dotPosition=e,this.vertical="left"===e||"right"===e}get nzDotPosition(){return this._dotPosition}constructor(e,a,l,d,U,$,F,lt,ct,pt){this.nzConfigService=a,this.ngZone=l,this.renderer=d,this.cdr=U,this.platform=$,this.resizeService=F,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.nzLoop=!0,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 C.x,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=V=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-V:V)},this.pointerDown=V=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(V).subscribe(T=>{this.pointerDelta=T,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const T=this.pointerDelta?this.pointerDelta.x:0;Math.abs(T)>this.gestureRect.width/3&&(this.nzLoop||T<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(T>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=e.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,f.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,Z.R)(this.slickListEl,"keydown").pipe((0,f.R)(this.destroy$)).subscribe(e=>{const{keyCode:a}=e;a!==w.oh&&a!==w.SV||(e.preventDefault(),this.ngZone.run(()=>{a===w.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,f.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(e){const{nzEffect:a,nzDotPosition:l}=e;a&&!a.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),l&&!l.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(e){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||e>=0&&e{this.scheduleNextTransition(),this.nzAfterChange.emit(d),this.isTransiting=!1}),this.markContentActive(d),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const e=this.customStrategies?this.customStrategies.find(a=>a.name===this.nzEffect):null;this.strategy=e?new e.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new tt(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(e){this.activeIndex=e,this.carouselContents&&this.carouselContents.forEach((a,l)=>{a.isActive="rtl"===this.dir?e===this.carouselContents.length-1-l:e===l}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(y.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(I.t4),t.Y36(A.rI),t.Y36(A.Ml),t.Y36(O.Is,8),t.Y36(et,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-carousel"]],contentQueries:function(e,a,l){if(1&e&&t.Suo(l,M,4),2&e){let d;t.iGM(d=t.CRH())&&(a.carouselContents=d)}},viewQuery:function(e,a){if(1&e&&(t.Gf(P,7),t.Gf(L,7)),2&e){let l;t.iGM(l=t.CRH())&&(a.slickList=l.first),t.iGM(l=t.CRH())&&(a.slickTrack=l.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(e,a){2&e&&t.ekj("ant-carousel-vertical",a.vertical)("ant-carousel-rtl","rtl"===a.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:m,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(e,a){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("mousedown",function(d){return a.pointerDown(d)})("touchstart",function(d){return a.pointerDown(d)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA()(),t.YNc(6,c,2,9,"ul",5),t.qZA(),t.YNc(7,p,2,1,"ng-template",null,6,t.W1O)),2&e&&(t.ekj("slick-vertical","left"===a.nzDotPosition||"right"===a.nzDotPosition),t.xp6(6),t.Q6J("ngIf",a.nzDots))},dependencies:[_.sg,_.O5,_.tP],encapsulation:2,changeDetection:0}),(0,x.gn)([(0,y.oS)()],n.prototype,"nzEffect",void 0),(0,x.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzEnableSwipe",void 0),(0,x.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzDots",void 0),(0,x.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzAutoPlay",void 0),(0,x.gn)([(0,y.oS)(),(0,v.Rn)()],n.prototype,"nzAutoPlaySpeed",void 0),(0,x.gn)([(0,v.Rn)()],n.prototype,"nzTransitionSpeed",void 0),(0,x.gn)([(0,y.oS)()],n.prototype,"nzLoop",void 0),(0,x.gn)([(0,y.oS)()],n.prototype,"nzDotPosition",null),n})(),it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[O.vT,_.ez,I.ud]}),n})();var z=s(2962),g=s(2574),D=s(2392),J=s(5676),Y=s(2181),R=s(4223),H=s(6223),st=s(2996),G=s(7907),at=s(855),j=s(551),dt=s(8091),ft=s(2616);function zt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(l){t.CHM(e);const d=t.oxw();return t.KtG(d.statsType=l)}),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()()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.statsType)}}function _t(n,o){1&n&&(t._UZ(0,"i",31),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Assertion"))}function vt(n,o){1&n&&(t._UZ(0,"i",32),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"EvidenceItem"))}function Ct(n,o){1&n&&(t._UZ(0,"i",33),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Gene"))}function Tt(n,o){1&n&&(t._UZ(0,"i",34),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Variant"))}function xt(n,o){1&n&&(t._UZ(0,"i",35),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"MolecularProfile"))}function yt(n,o){1&n&&(t._UZ(0,"i",36),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Disease"))}function St(n,o){1&n&&(t._UZ(0,"i",37),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Therapy"))}function Et(n,o){1&n&&(t._UZ(0,"i",38),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Source"))}function At(n,o){1&n&&(t._UZ(0,"i",39),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Revision"))}function It(n,o){1&n&&(t._UZ(0,"i",40),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Curator"))}function wt(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",9)(2,"nz-col",10)(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,_t,2,3,"ng-template",null,13,t.W1O),t.qZA()(),t.TgZ(8,"nz-col",10)(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,vt,2,3,"ng-template",null,15,t.W1O),t.qZA()(),t.TgZ(14,"nz-col",10)(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,Ct,2,3,"ng-template",null,17,t.W1O),t.qZA()(),t.TgZ(20,"nz-col",10)(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,Tt,2,3,"ng-template",null,19,t.W1O),t.qZA()(),t.TgZ(26,"nz-col",10)(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,xt,2,3,"ng-template",null,21,t.W1O),t.qZA()()(),t.TgZ(32,"nz-row",9)(33,"nz-col",10)(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,yt,2,3,"ng-template",null,23,t.W1O),t.qZA()(),t.TgZ(39,"nz-col",10)(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,St,2,3,"ng-template",null,25,t.W1O),t.qZA()(),t.TgZ(45,"nz-col",10)(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,Et,2,3,"ng-template",null,27,t.W1O),t.qZA()(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,At,2,3,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10)(57,"a",29),t._UZ(58,"nz-statistic",12),t.ALo(59,"number"),t.YNc(60,It,2,3,"ng-template",null,30,t.W1O),t.qZA()()(),t.BQk()),2&n){const e=o.ngIf,a=t.MAs(7),l=t.MAs(13),d=t.MAs(19),U=t.MAs(25),$=t.MAs(31),F=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),V=t.MAs(61),T=t.oxw();t.xp6(4),t.Q6J("nzTitle",T.label()+" Assertions")("nzValue",t.lcZ(5,30,e.assertions[T.statsType]))("nzPrefix",a),t.xp6(6),t.Q6J("nzTitle",T.label()+" Evidence")("nzValue",t.lcZ(11,32,e.evidenceItems[T.statsType]))("nzPrefix",l),t.xp6(6),t.Q6J("nzTitle",T.label()+" Genes")("nzValue",t.lcZ(17,34,e.genes[T.statsType]))("nzPrefix",d),t.xp6(6),t.Q6J("nzTitle",T.label()+" Variants")("nzValue",t.lcZ(23,36,e.variants[T.statsType]))("nzPrefix",U),t.xp6(6),t.Q6J("nzTitle",T.label()+" Molecular Profiles")("nzValue",t.lcZ(29,38,e.molecularProfiles[T.statsType]))("nzPrefix",$),t.xp6(7),t.Q6J("nzTitle",T.label()+" Diseases")("nzValue",t.lcZ(36,40,e.diseases[T.statsType]))("nzPrefix",F),t.xp6(6),t.Q6J("nzTitle",T.label()+" Therapies")("nzValue",t.lcZ(42,42,e.therapies[T.statsType]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",T.label()+" Sources")("nzValue",t.lcZ(48,44,e.sources[T.statsType]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",T.label()+" Revisions")("nzValue",t.lcZ(53,46,e.revisions[T.statsType]))("nzPrefix",pt),t.xp6(6),t.Q6J("nzTitle",T.label()+" Contributors")("nzValue",t.lcZ(59,48,e.users[T.statsType]))("nzPrefix",V)}}function Pt(n,o){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",10),t._UZ(2,"nz-statistic",41),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",41),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",41),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",41),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",41),t.qZA()(),t.TgZ(11,"nz-row",9)(12,"nz-col",10),t._UZ(13,"nz-statistic",41),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",41),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",41),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",41),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzTitle",e.label()+" Assertions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Evidence")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Genes")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Variants")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Molecular Profiles")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",e.label()+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Therapies")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Sources")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Contributors")("nzValue","--")}}let kt=(()=>{class n{constructor(e){this.statsGql=e,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,R.j)("loading"),(0,Y.h)(J.ep)),this.stats$=this.response$.pipe((0,R.j)("data","timepointStats"),(0,Y.h)(J.ep))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(E.UWf))},n.\u0275cmp=t.Xpm({type:n,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","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/molecular-profiles"],["mpIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/therapies"],["therapyIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["routerLink","/users"],["userIcon",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(e,a){if(1&e&&(t.TgZ(0,"nz-card",0),t.YNc(1,zt,9,1,"ng-template",null,1,t.W1O),t.YNc(3,wt,62,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,Pt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&e){const l=t.MAs(2),d=t.MAs(6);t.Q6J("nzExtra",l),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,a.stats$))("ngIfElse",d)}},dependencies:[_.O5,H.JJ,H.On,i.rH,st.my,S.t3,S.SK,z.bd,G.Of,G.Bq,G.Dg,at.w,j.Ls,_.JJ,dt.fM,ft.a],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),n})();var Ot=s(553),K=s(2840),Mt=s(1958),X=s(804),Nt=s(7169);function Zt(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&n){const e=t.oxw().ngIf,a=t.oxw(3);t.xp6(1),t.Q6J("events",e)("tagDisplay",a.tagDisplay)}}function Dt(n,o){1&n&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2," See Full Activity Feed "),t.qZA(),t.BQk())}function Lt(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",8),t.YNc(3,Zt,2,2,"ng-container",0),t.YNc(4,Dt,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&n){const e=o.ngIf,a=t.oxw(3),l=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.length)("ngIfElse",l),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,a.pageInfo$))}}function bt(n,o){if(1&n&&(t.TgZ(0,"nz-card",6),t.YNc(1,Lt,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,e.events$))}}function Ut(n,o){1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,bt,3,4,"nz-card",5),t.qZA()()(),t.BQk()),2&n&&(t.xp6(1),t.Q6J("nzGutter",16))}function Jt(n,o){1&n&&t._UZ(0,"nz-empty",11)}let Qt=(()=>{class n{constructor(e){this.gql=e,this.pageSize=15,this.mode=E.wJ2.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=Ot.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,R.j)("data"),(0,Y.h)(J.ep),(0,r.U)(({events:e})=>e.pageInfo)),this.events$=this.results$.pipe((0,R.j)("data"),(0,Y.h)(J.ep),(0,r.U)(({events:e})=>e.edges.map(a=>a.node))),this.unfilteredCount$=this.results$.pipe((0,R.j)("data"),(0,Y.h)(J.ep),(0,r.U)(({events:e})=>e.unfilteredCount))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(E.BTF))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,a){if(1&e&&(t.YNc(0,Ut,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,Jt,1,0,"ng-template",null,1,t.W1O)),2&e){const l=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,a.unfilteredCount$))("ngIfElse",l)}},dependencies:[_.O5,i.rH,K.ix,at.w,Mt.dQ,z.bd,S.t3,S.SK,g.NU,g.$1,X.p9,Nt.r,dt.fM],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}"]}),n})();var gt=s(6987),mt=s(6192);function Bt(n,o){1&n&&t.GkF(0)}function Wt(n,o){1&n&&t.GkF(0)}function Yt(n,o){1&n&&t.GkF(0)}function $t(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw().$implicit;t.hij(" ",e.title," ")}}function Ft(n,o){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function Vt(n,o){if(1&n&&t._UZ(0,"div",14),2&n){const e=t.oxw(2).$implicit;t.Jzz("background-image: url('",e.imageUrl,"')")}}function Rt(n,o){if(1&n&&t.YNc(0,Vt,1,3,"div",13),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.imageUrl)}}function Ht(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.text," ")}}function Gt(n,o){if(1&n&&(t._UZ(0,"span",16),t.ALo(1,"nzSanitizer")),2&n){const e=t.oxw(2).$implicit;t.Q6J("innerHtml",t.xi3(1,1,e.htmlText,"html"),t.oJD)}}function jt(n,o){if(1&n&&(t.YNc(0,Ht,2,1,"ng-container",0),t.YNc(1,Gt,2,4,"ng-template",null,15,t.W1O)),2&n){const e=t.MAs(2),a=t.oxw().$implicit;t.Q6J("ngIf",a.text)("ngIfElse",e)}}function Kt(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-divider"),t.TgZ(2,"a",18),t._UZ(3,"i",19),t._uU(4),t.qZA(),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("href",e.link.url,t.LSH),t.xp6(2),t.hij(" ",e.link.label?e.link.label:"More Information"," ")}}function Xt(n,o){if(1&n&&t.YNc(0,Kt,5,2,"ng-container",17),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.link&&e.link.url)}}function qt(n,o){if(1&n&&(t.TgZ(0,"nz-col",4)(1,"nz-card",5),t.YNc(2,Bt,1,0,"ng-container",6),t.YNc(3,Wt,1,0,"ng-container",6),t.YNc(4,Yt,1,0,"ng-container",6),t.qZA(),t.YNc(5,$t,1,1,"ng-template",null,7,t.W1O),t.YNc(7,Ft,3,3,"ng-template",null,8,t.W1O),t.YNc(9,Rt,1,1,"ng-template",null,9,t.W1O),t.YNc(11,jt,3,2,"ng-template",null,10,t.W1O),t.YNc(13,Xt,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&n){const e=t.MAs(6),a=t.MAs(8),l=t.MAs(10),d=t.MAs(12),U=t.MAs(14);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",a),t.xp6(1),t.Q6J("ngTemplateOutlet",l),t.xp6(1),t.Q6J("ngTemplateOutlet",d),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}const te=function(){return[8,16]};function ee(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.YNc(2,qt,15,5,"nz-col",3),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(2,te)),t.xp6(1),t.Q6J("ngForOf",e.cvcNewsItems)}}function ne(n,o){1&n&&t._UZ(0,"nz-empty")}let oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["newsEmpty",""],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],["htmlText",""],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,a){if(1&e&&(t.YNc(0,ee,3,3,"ng-container",0),t.YNc(1,ne,1,0,"ng-template",null,1,t.W1O)),2&e){const l=t.MAs(2);t.Q6J("ngIf",a.cvcNewsItems)("ngIfElse",l)}},dependencies:[_.sg,_.O5,_.tP,K.ix,at.w,S.t3,S.SK,z.bd,D.ZU,X.p9,gt.g,j.Ls,_.uU,mt.Pr],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]}),n})();function ie(n,o){1&n&&(t.TgZ(0,"nz-carousel",6)(1,"div",7)(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.TgZ(6,"div",7)(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer. "),t.qZA()(),t.TgZ(11,"div",7)(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.TgZ(18,"div",7)(19,"h1")(20,"a",8),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA()()()())}function se(n,o){1&n&&(t.TgZ(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.YNc(3,ie,24,0,"nz-carousel",5),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("nzSpan",24))}function ae(n,o){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4),t._UZ(2,"cvc-site-stats-card"),t.qZA()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function re(n,o){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t._UZ(3,"cvc-news-item-list",11),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-card",12),t._UZ(6,"cvc-homepage-event-feed",13),t.qZA()()()),2&n){const e=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("cvcNewsItems",e.newsItems),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("pageSize",23)}}function le(n,o){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(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 therapies, 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()()()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function ce(n,o){if(1&n&&(t.TgZ(0,"nz-row",16)(1,"div",17),t._uU(2),t.ALo(3,"date"),t.TgZ(4,"a",18),t._uU(5,"Release Notes"),t.qZA(),t._uU(6," \u2022 "),t.TgZ(7,"a",19),t._uU(8,"History"),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(2),t.AsE(" CIViC ",e.name," (",t.lcZ(3,3,e.published_at),") \u2022 "),t.xp6(2),t.Q6J("href",e.html_url,t.LSH)}}function pe(n,o){1&n&&(t.ynx(0),t.YNc(1,ce,9,5,"nz-row",15),t.BQk())}const he=[{path:"",component:(()=>{class n{constructor(e){this.http=e,this.feedMode=E.wJ2.Unscoped,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,r.U)(e=>e[0]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.eN))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-welcome"]],decls:7,vars:3,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[4,"ngIf"],[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%"],[3,"cvcNewsItems"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"height","100%"],[3,"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"],["nzAlign","middle","nzJustify","center",4,"nzSpaceItem"],["nzAlign","middle","nzJustify","center"],["id","release-info","nz-typography",""],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(e,a){1&e&&(t.TgZ(0,"nz-space",0),t.YNc(1,se,4,1,"nz-row",1),t.YNc(2,ae,3,2,"nz-row",2),t.YNc(3,re,7,5,"nz-row",2),t.YNc(4,le,10,2,"nz-row",2),t.YNc(5,pe,2,0,"ng-container",3),t.ALo(6,"async"),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngIf",t.lcZ(6,1,a.release$)))},dependencies:[_.O5,S.t3,S.SK,ot,M,z.bd,g.NU,g.$1,D.ZU,kt,Qt,oe,_.Ov,_.uU],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%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]}),n})()}];let de=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[i.Bz.forChild(he),i.Bz]}),n})();var ge=s(6976),ut=s(279),me=s(4139),rt=s(2524);let ue=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[_.ez,H.u5,i.Bz,st.A2,S.Jb,z.vh,G.aF,K.sL,me.H0,D.ZJ,j.PV,ut.s,rt.s]}),n})();var fe=s(3599),ze=s(6494),_e=s(9691),ve=s(4416),Ce=s(1595),Te=s(6928);let xe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[_.ez,H.u5,i.Bz,K.sL,z.vh,j.PV,fe.U5,_e.LV,ze.m,S.Jb,g.zf,X.Xo,Te.Rt,ve.m,rt.s,Ce.N,rt.s]}),n})(),ye=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[_.ez,H.u5,K.sL,S.Jb,it,z.vh,ge.Ph,G.aF,g.zf,st.A2,D.ZJ,X.Xo,mt.YS,gt.S,j.PV,de,ue,xe,ut.s]}),n})()},4139:(W,k,s)=>{s.d(k,{H0:()=>b});var i=s(5879),E=s(6814),r=s(9388);let b=(()=>{class u{}return u.\u0275fac=function(p){return new(p||u)},u.\u0275mod=i.oAB({type:u}),u.\u0275inj=i.cJS({imports:[r.vT,E.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/1914.81eee4a5b946f717.js b/server/public/1914.81eee4a5b946f717.js deleted file mode 100644 index 9c90678ca..000000000 --- a/server/public/1914.81eee4a5b946f717.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1914],{4059:(z,u,r)=>{r.d(u,{c:()=>c});var o=r(6814),d=r(9382),e=r(95),h=r(4190),f=r(551),_=r(3640),y=r(5879);let c=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=y.oAB({type:s}),s.\u0275inj=y.cJS({imports:[o.ez,h.Bz,d.we,e.Jb,f.PV,_.mS]}),s})()},5884:(z,u,r)=>{r.d(u,{J:()=>d,i:()=>o});const o={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},d={clientMutationId:void 0,fields:o,comment:void 0,organizationId:void 0}},5710:(z,u,r)=>{r.d(u,{_:()=>_});var o=r(313),d=r(1791),e=r(5619),h=r(5884),f=r(8475);class _ extends f.lG{constructor(){super(f.yQ.ASSERTION);const c=h.i;this.fields={molecularProfileId$:new e.X(c.molecularProfileId),variantMolecularProfile$:new e.X(void 0),geneId$:new e.X(void 0),variantId$:new e.X(void 0),variantOrigin$:new e.X(c.variantOrigin),assertionType$:new e.X(c.assertionType),assertionDirection$:new e.X(c.assertionDirection),evidenceItemIds$:new e.X(c.evidenceItemIds),significance$:new e.X(c.significance),diseaseId$:new e.X(c.diseaseId),therapyIds$:new e.X(c.therapyIds),therapyInteractionType$:new e.X(c.therapyInteractionType),phenotypeIds$:new e.X(c.phenotypeIds),nccnGuidelineId$:new e.X(c.nccnGuidelineId),fdaRegulatoryApproval$:new e.X(c.fdaRegulatoryApproval),fdaCompanionTest$:new e.X(c.fdaCompanionTest),ampLevel$:new e.X(c.ampLevel),acmgCodeIds$:new e.X(c.acmgCodeIds),clingenCodeIds$:new e.X(c.clingenCodeIds),nccnGuidelineVersion$:new e.X(c.nccnGuidelineVersion)},this.enums={entityType$:new e.X(this.getTypeOptions()),significance$:new e.X([]),direction$:new e.X([]),interaction$:new e.X(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.X(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.X(void 0),significanceOption$:new e.X(void 0)},this.requires={requiresDisease$:new e.X(!1),requiresTherapy$:new e.X(!1),requiresTherapyInteractionType$:new e.X(!1),requiresClingenCodes$:new e.X(!1),requiresAcmgCodes$:new e.X(!1),requiresAmpLevel$:new e.X(!1),allowsFdaApproval$:new e.X(!1)},this.fields.assertionType$.pipe((0,d.t)(this,"onDestroy")).subscribe(s=>{if(!s)return Object.entries(this.requires).forEach(([C,T])=>{T.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(s)),this.enums.direction$.next(this.getDirectionOptions(s)),this.requires.requiresDisease$.next(this.requiresDisease(s)),this.requires.requiresTherapy$.next(this.requiresTherapy(s)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(s)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(s)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(s)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(s))}),this.fields.therapyIds$.pipe((0,d.t)(this,"onDestroy")).subscribe(s=>{this.requires.requiresTherapyInteractionType$.next(null!=s&&s.length>1)}),this.validStates.set(o.uBv.Predictive,{entityType:o.uBv.Predictive,significance:[o._3P.Sensitivityresponse,o._3P.Resistance,o._3P.AdverseResponse,o._3P.ReducedSensitivity,o._3P.Na],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(o.uBv.Diagnostic,{entityType:o.uBv.Diagnostic,significance:[o._3P.Positive,o._3P.Negative],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Prognostic,{entityType:o.uBv.Prognostic,significance:[o._3P.BetterOutcome,o._3P.PoorOutcome,o._3P.Na],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Predisposing,{entityType:o.uBv.Predisposing,significance:[o._3P.Pathogenic,o._3P.LikelyPathogenic,o._3P.Benign,o._3P.LikelyBenign,o._3P.UncertainSignificance],entityDirection:[o.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Oncogenic,{entityType:o.uBv.Oncogenic,significance:[o._3P.Oncogenic,o._3P.LikelyOncogenic,o._3P.Benign,o._3P.LikelyBenign,o._3P.UncertainSignificance],entityDirection:[o.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},5910:(z,u,r)=>{r.r(u),r.d(u,{TestPagesModule:()=>Ke});var o=r(6814),d=r(4190),e=r(5879),h=r(4263);let f=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,a){1&n&&e._UZ(0,"cvc-assertion-revise-form",0),2&n&&e.Q6J("assertionId",3)},dependencies:[h.G],encapsulation:2,changeDetection:0}),t})();var _=r(1689);let y=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,a){1&n&&e._UZ(0,"cvc-assertion-submit-form")},dependencies:[_.u],encapsulation:2,changeDetection:0}),t})();var c=r(9958);let s=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,a){1&n&&e._UZ(0,"cvc-evidence-revise-form",0),2&n&&e.Q6J("evidenceId",7606)},dependencies:[c.r],encapsulation:2,changeDetection:0}),t})();var C=r(6278);let T=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,a){1&n&&e._UZ(0,"cvc-evidence-submit-form")},dependencies:[C.l],encapsulation:2,changeDetection:0}),t})();var l=r(6223);const x={geneId:void 0},O=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select"},{key:"geneIds",type:"gene-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"variantId",type:"variant-select",props:{requireGene:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireGene:!1}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}}]}];var A=r(5545),I=r(3599);let E=(()=>{class t{constructor(){this.form=new l.nJ({}),this.model=x,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Horizontal Field Layout, No State"},fieldGroup:O}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(n,a){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return a.model=p}),e.qZA()()),2&n&&(e.Q6J("nzLayout",a.formLayout)("formGroup",a.form),e.xp6(1),e.Q6J("form",a.form)("fields",a.fields)("model",a.model)("options",a.options))},dependencies:[l._Y,l.JL,l.sg,A.T7,I.Lr],encapsulation:2,changeDetection:0}),t})();var R=r(655),J=r(1791),D=r(5619),$=r(2181),U=r(7398),N=r(5676),q=r(4223);function S(t,i){for(var n=0;n{console.log(n);const a=Object.values(n).filter(g=>"object"==typeof g);return console.log(a),a}))}tagChecked(i){console.log(`Tag checked: ${i}`)}ngOnInit(){}}).\u0275fac=function(i){return new(i||v)(e.Y36(j.eDl))},v.\u0275cmp=e.Xpm({type:v,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["tagTable",""],["nzWidth","150px"],[4,"ngrxLet"],["cardExtra",""],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcCacheId","cvcEmphasize","cvcTagCheckedChange"],["nz-input","","nzSize","small","type","text",3,"ngModel","ngModelChange"],["emphasizeInput",""]],template:function(i,n){1&i&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.ALo(3,"ngrxPush"),e.TgZ(4,"thead")(5,"tr")(6,"th",3),e._uU(7,"Entity"),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Default"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Popover"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Closeable"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Checkable"),e.qZA(),e.TgZ(16,"th"),e._uU(17,"Trucate"),e.qZA(),e.TgZ(18,"th"),e._uU(19,"Group"),e.qZA(),e.TgZ(20,"th"),e._uU(21,"Unlinked"),e.qZA()()(),e.TgZ(22,"tbody"),e.YNc(23,re,13,3,"ng-container",4),e.qZA()()(),e.YNc(24,oe,4,3,"ng-template",null,5,e.W1O)),2&i&&(e.xp6(1),e.Q6J("nzShowPagination",!1)("nzData",e.lcZ(3,3,n.entityTagsData$)||e.DdM(5,se)),e.xp6(22),e.Q6J("ngrxLet",n.emphasizeStr$))},dependencies:[o.sg,o.RF,o.n9,o.ED,L.eJ,l.Fj,l.JJ,l.On,F.bd,m.N8,m.Uo,m._C,m.Om,m.p0,m.$Z,K.J,L.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0}),v);b=(0,R.gn)([(0,J.c)()],b);let ce=(()=>{class t{constructor(){this.form=new l.nJ({}),this.model=x,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:O}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(n,a){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return a.model=p}),e.qZA()()),2&n&&(e.Q6J("nzLayout",a.formLayout)("formGroup",a.form),e.xp6(1),e.Q6J("form",a.form)("fields",a.fields)("model",a.model)("options",a.options))},dependencies:[l._Y,l.JL,l.sg,A.T7,I.Lr],encapsulation:2,changeDetection:0}),t})(),le=(()=>{class t{constructor(){this.form=new l.nJ({}),this.model=x,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Vertical Field Layout, No State"},fieldGroup:O}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"form","fields","model","modelChange"]],template:function(n,a){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return a.model=p}),e.qZA()()),2&n&&(e.Q6J("formGroup",a.form),e.xp6(1),e.Q6J("form",a.form)("fields",a.fields)("model",a.model))},dependencies:[l._Y,l.JL,l.sg,A.T7,I.Lr],encapsulation:2,changeDetection:0}),t})();var M=r(6254),Z=r(95),P=r(9382),de=r(3145);function pe(t,i){if(1&t&&(e.TgZ(0,"a",9),e._uU(1),e.qZA()),2&t){const n=e.oxw().$implicit;e.Q6J("routerLink",n.routeName),e.xp6(1),e.hij(" ",n.tabLabel," ")}}function ge(t,i){1&t&&(e.TgZ(0,"nz-tab"),e.YNc(1,pe,2,2,"a",8),e.qZA())}let ue=(()=>{class t{constructor(n){this.router=n,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Evidence Submit"},{routeName:"evidence-revise-test",iconName:"",tabLabel:"Evidence Revise"},{routeName:"assertion-submit-test",iconName:"",tabLabel:"Assertion Submit"},{routeName:"assertion-revise-test",iconName:"",tabLabel:"Assertion Revise"},{routeName:"variantgroup-revise-test",iconName:"",tabLabel:"VG Revise"},{routeName:"gene-revise-test",iconName:"",tabLabel:"Gene Revise"},{routeName:"mp-revise-test",iconName:"",tabLabel:"MP Revise"},{routeName:"variant-revise-test",iconName:"",tabLabel:"Variant Revise"},{routeName:"vertical-form",iconName:"",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"",tabLabel:"Tags"}]}getActivatedRouteIndex(n){return this.tabs?.findIndex(a=>n.includes(a.routeName))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(d.F0))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-test-pages"]],decls:15,vars:4,consts:[[1,"site-page-header"],["cvcFlaggableOptions",""],[3,"nzSpan"],["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex"],[4,"ngFor","ngForOf"],[1,"content"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"]],template:function(n,a){1&n&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-title",1),e._uU(3," Forms2 Test Pages "),e.qZA(),e.TgZ(4,"nz-page-header-content")(5,"nz-row")(6,"nz-col",2)(7,"nz-row",3)(8,"nz-col",4)(9,"nz-tabset",5),e.YNc(10,ge,2,0,"nz-tab",6),e.qZA()()()()(),e.TgZ(11,"nz-row")(12,"nz-col",2)(13,"div",7),e._UZ(14,"router-outlet"),e.qZA()()()()()),2&n&&(e.xp6(6),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzSelectedIndex",a.selectedTabIndex),e.xp6(1),e.Q6J("ngForOf",a.tabs),e.xp6(2),e.Q6J("nzSpan",24))},dependencies:[o.sg,d.lC,d.rH,M.$O,M.u9,M.u5,Z.t3,Z.SK,P.xH,P.xw,P.Ao,P.Fx,de.I],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{flex-wrap:nowrap;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}"],changeDetection:0}),t})();var me=r(9439);let fe=(()=>{class t{constructor(n){this.cdr=n}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:0,template:function(n,a){1&n&&e._UZ(0,"cvc-variantgroup-revise-form")},dependencies:[me.L],encapsulation:2}),t})();var ve=r(1858);let he=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"geneId"]],template:function(n,a){1&n&&e._UZ(0,"cvc-gene-revise-form",0),2&n&&e.Q6J("geneId",6)},dependencies:[ve.$],encapsulation:2,changeDetection:0}),t})();var _e=r(3610);let ye=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,a){1&n&&e._UZ(0,"cvc-mp-revise-form",0),2&n&&e.Q6J("molecularProfileId",3176)},dependencies:[_e.R],encapsulation:2,changeDetection:0}),t})();var Te=r(9230);const Pe=[{path:"",component:ue,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:T,data:{breadcrumb:"Evidence Submit Test"}},{path:"evidence-revise-test",component:s,data:{breadcrumb:"Evidence Revise Test"}},{path:"assertion-submit-test",component:y,data:{breadcrumb:"Assertion Submit Test"}},{path:"assertion-revise-test",component:f,data:{breadcrumb:"Assertion Revise Test"}},{path:"variantgroup-revise-test",component:fe,data:{breadcrumb:"Variant Group Revise Test"}},{path:"gene-revise-test",component:he,data:{breadcrumb:"Gene Revise Test"}},{path:"mp-revise-test",component:ye,data:{breadcrumb:"MP Revise Test"}},{path:"variant-revise-test",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,a){1&n&&e._UZ(0,"cvc-variant-revise-form",0),2&n&&e.Q6J("variantId",4)},dependencies:[Te.J],encapsulation:2,changeDetection:0}),t})(),data:{breadcrumb:"Variant Revise Test"}},{path:"vertical-form",component:le,data:{breadcrumb:"Nonstate"}},{path:"inline-form",component:ce,data:{breadcrumb:"Inline"}},{path:"horizontal-form",component:E,data:{breadcrumb:"Horizontal"}},{path:"tags-test",component:b,data:{breadcrumb:"Horizontal"}}]}];let Ce=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.Bz.forChild(Pe),d.Bz]}),t})();var Me=r(2419),ze=r(4059),xe=r(551),Oe=r(2392),Ae=r(2524),Ie=r(1416),be=r(2574);let Ze=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ie.Z,be.zf]}),t})();var we=r(7471);let Se=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,we.A]}),t})();var Le=r(4975);let Fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Le.E]}),t})();var Ee=r(6902);let Re=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ee.P]}),t})();var w=r(6683);let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})(),De=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})(),$e=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})();var Ue=r(3328);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,l.u5,F.vh,m.HQ,Ue.x]}),t})();var qe=r(4706);let Be=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,qe.A]}),t})();var Xe=r(296);let Ge=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Xe.C]}),t})();var Qe=r(9934);let Ve=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Qe.i]}),t})();var He=r(1351);let je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,He.K]}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ce,M.KJ,Z.Jb,xe.PV,Oe.ZJ,P.we,Ze,Se,Ge,Ve,Fe,Re,je,Je,De,$e,Ne,Ae.s,ze.c,Me.D,Be]}),t})()}}]); \ No newline at end of file diff --git a/server/public/2287.7fb3e7687c663878.js b/server/public/2287.7fb3e7687c663878.js new file mode 100644 index 000000000..357ec8241 --- /dev/null +++ b/server/public/2287.7fb3e7687c663878.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2287],{684:(Z,O,e)=>{e.d(O,{K:()=>T});var u=e(6814),h=e(5545),n=e(5879),A=e(6223),M=e(824);const C={name:"comment-textarea",component:(()=>{class g extends h.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(o,E)=>`Comments must be at least ${E.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return g.\u0275fac=function(){let P;return function(E){return(P||(P=n.n5z(g)))(E||g)}}(),g.\u0275cmp=n.Xpm({type:g,selectors:[["comment-textarea-type"]],features:[n.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(o,E){1&o&&n._UZ(0,"textarea",0),2&o&&n.Q6J("formControl",E.formControl)("formlyAttributes",E.field)},dependencies:[A.Fj,A.JJ,A.oH,h.JD,M.Zp],encapsulation:2,changeDetection:0}),g})(),wrappers:["form-field"]};var v=e(3599),f=e(7459);let T=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[u.ez,A.UX,h.X0.forChild({types:[C]}),f.u,v.U5,M.o7]}),g})()},7570:(Z,O,e)=>{function u(h,n){const A=(t,C)=>{let v;for(let f of t)if(f.fieldGroup)v=A(f.fieldGroup,C);else if(f.key===C){v=f;break}return v},M=(t,C)=>{for(let v of Object.keys(C))if(C[v]instanceof Object&&!Array.isArray(C[v]))M(t,C[v]);else{const f=A(t,v);f&&(f.defaultValue=C[v])}return t};return M(h,n)}e.d(O,{Z:()=>u})},9350:(Z,O,e)=>{e.r(O),e.d(O,{AssertionsReviseModule:()=>H});var u=e(6814),h=e(4190),n=e(7921),A=e(7398),M=e(4223),t=e(5879),C=e(313),v=e(951),f=e(6254),T=e(2574),g=e(551),P=e(2392),o=e(2606),E=e(3145),N=e(95),k=e(8178),w=e(2616),b=e(8091);function B(s,y){if(1&s&&(t.TgZ(0,"span",12)(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&s){const p=t.oxw(2).ngIf;t.xp6(2),t.Oqu(p.name)}}function L(s,y){if(1&s&&(t.TgZ(0,"span",13),t._UZ(1,"cvc-molecular-profile-tag",14),t.qZA()),2&s){const p=t.oxw(2).ngIf;t.xp6(1),t.Q6J("molecularProfile",p.molecularProfile)("enablePopover",!1)}}function I(s,y){1&s&&(t.TgZ(0,"nz-space",9),t.YNc(1,B,4,1,"span",10),t.YNc(2,L,2,2,"span",11),t.qZA())}function c(s,y){1&s&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function d(s,y){1&s&&(t.TgZ(0,"nz-row",15)(1,"div",16),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function r(s,y){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,I,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t._uU(9),t.qZA(),t.TgZ(10,"nz-page-header-content")(11,"div",6),t.YNc(12,c,2,0,"div",7),t.ALo(13,"ngrxPush"),t.YNc(14,d,3,0,"ng-template",null,8,t.W1O),t.qZA()()(),t.BQk()),2&s){const p=y.ngIf,D=t.MAs(3),J=t.MAs(15),Q=t.oxw();t.xp6(1),t.Q6J("displayName",p.name)("relationsTpl",D),t.xp6(6),t.Q6J("nzTwotoneColor",t.lcZ(8,6,"Assertion")),t.xp6(2),t.hij(" ",p.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(13,8,Q.isSignedIn$))("ngIfElse",J)}}let a=(()=>{class s{constructor(p,D,J){this.gql=p,this.route=D,this.viewerService=J,this.routeSub=this.route.params.subscribe(Q=>{let W=this.gql.watch({assertionId:+Q.assertionId}).valueChanges;this.loading$=W.pipe((0,M.j)("loading"),(0,n.O)(!0)),this.assertion$=W.pipe((0,M.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(p=>p.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return s.\u0275fac=function(p){return new(p||s)(t.Y36(C.A94),t.Y36(h.gz),t.Y36(v.a))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[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,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(p,D){1&p&&(t.YNc(0,r,16,10,"ng-container",0),t.ALo(1,"async")),2&p&&t.Q6J("ngIf",t.lcZ(1,1,D.assertion$))},dependencies:[u.O5,h.lC,f.$O,f.u9,f.u5,T.NU,T.$1,g.Ls,P.ZU,o.p,E.I,N.t3,N.SK,k.u,u.Ov,w.a,b.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{flex-wrap:nowrap;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})();var x=e(2962),l=e(4139),m=e(1487);let _=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[u.ez,N.Jb,x.vh,l.H0,T.zf,m.P]}),s})();var R=e(2624);function U(s,y){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-assertion-revise-form",2),t.BQk()),2&s){const p=t.oxw();t.xp6(1),t.Q6J("assertionId",p.assertionId)}}function F(s,y){1&s&&t._uU(0,"Loading Assertion...")}const S=[{path:"",component:a,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class s{constructor(p){this.route=p,this.routeParams$=this.route.params.subscribe(D=>{this.assertionId=+D.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return s.\u0275fac=function(p){return new(p||s)(t.Y36(h.gz))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-assertions-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingAssertion",""],[3,"assertionId"]],template:function(p,D){if(1&p&&(t.YNc(0,U,2,1,"ng-container",0),t.YNc(1,F,1,0,"ng-template",null,1,t.W1O)),2&p){const J=t.MAs(2);t.Q6J("ngIf",D.assertionId)("ngIfElse",J)}},dependencies:[u.O5,R.G],encapsulation:2}),s})(),data:{breadcrumb:"Suggest Revision"}}]}];let z=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[h.Bz.forChild(S),_,h.Bz]}),s})();var V=e(2419),Y=e(684),K=e(8603),j=e(8527),$=e(2524);let H=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[u.ez,z,f.KJ,T.zf,g.PV,P.ZJ,T.zf,$.s,j.u,V.D,Y.K,N.Jb,K.a]}),s})()},9337:(Z,O,e)=>{e.r(O),e.d(O,{AssertionsModule:()=>F});var u=e(6814),h=e(4190),n=e(2392),A=e(6254),M=e(95),t=e(6494),C=e(5895),v=e(551),f=e(2419),T=e(2840),g=e(2574),P=e(2524),o=e(5879);let E=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[u.ez,h.Bz,v.PV,n.ZJ,A.KJ,M.Jb,t.m,T.sL,g.zf,P.s,C.s,f.D]}),i})();var N=e(951),k=e(8091),w=e(855),b=e(1958),B=e(1826),L=e(3145),I=e(2616);function c(i,S){1&i&&(o.TgZ(0,"button",17),o._UZ(1,"i",18),o._uU(2," Submit New Assertion "),o.qZA())}function d(i,S){if(1&i&&(o.ynx(0),o.YNc(1,c,3,0,"button",16),o.BQk()),2&i){const z=S.ngrxLet;o.xp6(1),o.Q6J("ngIf",z.signedIn)}}function r(i,S){if(1&i&&o.YNc(0,d,2,1,"ng-container",15),2&i){const z=o.oxw();o.Q6J("ngrxLet",z.viewer$)}}function a(i,S){1&i&&(o.TgZ(0,"a",19),o._UZ(1,"i",20),o._uU(2," View Assertion Model Docs "),o.qZA())}function x(i,S){1&i&&(o.TgZ(0,"a",21),o._UZ(1,"i",20),o._uU(2," View Assertion Curation Docs "),o.qZA())}const _=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(z){return new(z||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["app-assertions"]],decls:1,vars:0,template:function(z,V){1&z&&o._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(z){this.viewerService=z,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(z){return new(z||i)(o.Y36(N.a))},i.\u0275cmp=o.Xpm({type:i,selectors:[["assertions-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzFlex","0 1 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(z,V){if(1&z&&(o._UZ(0,"cvc-section-navigation",0),o.YNc(1,r,1,1,"ng-template",null,1,o.W1O),o.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),o._UZ(7,"i",5),o.ALo(8,"entityColor"),o.qZA(),o.TgZ(9,"nz-col",6)(10,"h2"),o._uU(11,"Assertions"),o.qZA(),o.TgZ(12,"p",7),o._uU(13," 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. "),o.qZA()(),o.TgZ(14,"nz-col",8)(15,"nz-space",9),o.YNc(16,a,3,0,"a",10),o.YNc(17,x,3,0,"a",11),o.qZA()()(),o.TgZ(18,"nz-row")(19,"nz-col",12)(20,"div",13),o._UZ(21,"cvc-assertions-table",14),o.qZA()()()()()),2&z){const Y=o.MAs(2);o.Q6J("actionsTpl",Y),o.xp6(7),o.Q6J("nzTwotoneColor",o.lcZ(8,4,"Assertion")),o.xp6(5),o.Q6J("nzEllipsisRows",2),o.xp6(7),o.Q6J("nzSpan",24)}},dependencies:[u.O5,k.eJ,h.rH,v.Ls,n.ZU,A.$O,A.u5,M.t3,M.SK,T.ix,w.w,b.dQ,g.NU,g.$1,B.x,L.I,I.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{flex-wrap:nowrap;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:"add",loadChildren:()=>Promise.all([e.e(8592),e.e(9939)]).then(e.bind(e,9939)).then(i=>i.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2212),e.e(5556),e.e(2602),e.e(9949),e.e(7856),e.e(1364),e.e(3575),e.e(4280),e.e(647),e.e(5412)]).then(e.bind(e,5412)).then(i=>i.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,9350)).then(i=>i.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(9939)]).then(e.bind(e,9939)).then(i=>i.AssertionAddModule)}];let R=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[h.Bz.forChild(_),E,h.Bz]}),i})();var U=e(9350);let F=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[u.ez,R,U.AssertionsReviseModule]}),i})()},4139:(Z,O,e)=>{e.d(O,{H0:()=>I});var u=e(5879),h=e(6814),n=e(9388);let I=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=u.oAB({type:c}),c.\u0275inj=u.cJS({imports:[n.vT,h.ez]}),c})()},6494:(Z,O,e)=>{e.d(O,{i:()=>d,m:()=>r});var u=e(655),h=e(6028),n=e(5879),A=e(6223),M=e(8645),t=e(2438),C=e(9773),v=e(874),f=e(7754),T=e(4300),g=e(9388),P=e(6814),o=e(1958),E=e(551),N=e(8324);const k=["switchElement"];function w(a,x){1&a&&n._UZ(0,"span",8)}function b(a,x){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const l=n.oxw(2);n.xp6(1),n.Oqu(l.nzCheckedChildren)}}function B(a,x){if(1&a&&(n.ynx(0),n.YNc(1,b,2,1,"ng-container",9),n.BQk()),2&a){const l=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",l.nzCheckedChildren)}}function L(a,x){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const l=n.oxw(2);n.xp6(1),n.Oqu(l.nzUnCheckedChildren)}}function I(a,x){if(1&a&&n.YNc(0,L,2,1,"ng-container",9),2&a){const l=n.oxw();n.Q6J("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let d=(()=>{class a{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()}constructor(l,m,_,R,U,F){this.nzConfigService=l,this.host=m,this.ngZone=_,this.cdr=R,this.focusMonitor=U,this.directionality=F,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.nzId=null,this.dir="ltr",this.destroy$=new M.x,this.isNzDisableFirstChange=!0}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,t.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,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=l;m!==h.oh&&m!==h.SV&&m!==h.L_&&m!==h.K5||(l.preventDefault(),this.ngZone.run(()=>{m===h.oh?this.updateValue(!1):m===h.SV?this.updateValue(!0):(m===h.L_||m===h.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=this.isNzDisableFirstChange&&this.nzDisabled||l,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return a.\u0275fac=function(l){return new(l||a)(n.Y36(v.jY),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(T.tE),n.Y36(g.Is,8))},a.\u0275cmp=n.Xpm({type:a,selectors:[["nz-switch"]],viewQuery:function(l,m){if(1&l&&n.Gf(k,7),2&l){let _;n.iGM(_=n.CRH())&&(m.switchElement=_.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[n._Bn([{provide:A.JU,useExisting:(0,n.Gpc)(()=>a),multi:!0}])],decls:9,vars:16,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,m){if(1&l&&(n.TgZ(0,"button",0,1)(2,"span",2),n.YNc(3,w,1,0,"span",3),n.qZA(),n.TgZ(4,"span",4),n.YNc(5,B,2,1,"ng-container",5),n.YNc(6,I,1,1,"ng-template",null,6,n.W1O),n.qZA(),n._UZ(8,"div",7),n.qZA()),2&l){const _=n.MAs(7);n.ekj("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),n.Q6J("disabled",m.nzDisabled)("nzWaveExtraNode",!0),n.uIk("id",m.nzId),n.xp6(3),n.Q6J("ngIf",m.nzLoading),n.xp6(2),n.Q6J("ngIf",m.isChecked)("ngIfElse",_)}},dependencies:[P.O5,o.dQ,E.Ls,N.f],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,f.yF)()],a.prototype,"nzLoading",void 0),(0,u.gn)([(0,f.yF)()],a.prototype,"nzDisabled",void 0),(0,u.gn)([(0,f.yF)()],a.prototype,"nzControl",void 0),(0,u.gn)([(0,v.oS)()],a.prototype,"nzSize",void 0),a})(),r=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[g.vT,P.ez,o.vG,E.PV,N.T]}),a})()}}]); \ No newline at end of file diff --git a/server/public/2807.8bae9d22291f7358.js b/server/public/2807.8bae9d22291f7358.js new file mode 100644 index 000000000..a7a24a2ba --- /dev/null +++ b/server/public/2807.8bae9d22291f7358.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2807],{4786:(xn,U,o)=>{o.d(U,{O:()=>X});var g=o(8130),D=o(2023),r=o(5879),z=o(6814),B=o(4190),L=o(5695),q=o(7417),F=o(551),V=o(8213),v=o(3103),l=o(2616);function k(_,f){}function j(_,f){if(1&_&&(r.ynx(0),r.TgZ(1,"a",4),r.YNc(2,k,0,0,"ng-template",5),r.qZA(),r.BQk()),2&_){const s=r.oxw(),p=r.MAs(2);r.xp6(1),r.Q6J("routerLink",s.evidence.link),r.xp6(1),r.Q6J("ngTemplateOutlet",p)}}function N(_,f){}function $(_,f){if(1&_&&r._UZ(0,"cvc-evidence-popover",9),2&_){const s=r.oxw(3);r.Q6J("evidenceId",s.evidence.id)}}function P(_,f){if(1&_&&r.YNc(0,$,1,1,"cvc-evidence-popover",8),2&_){const s=r.oxw(2);r.Q6J("ngIf",s.enablePopover)}}const n=function(_,f,s){return{rejected:_,submitted:f,accepted:s}};function x(_,f){if(1&_&&(r.TgZ(0,"nz-tag",6),r.YNc(1,N,0,0,"ng-template",5),r.qZA(),r.YNc(2,P,1,1,"ng-template",null,7,r.W1O)),2&_){const s=r.MAs(3),p=r.oxw(),T=r.MAs(6);r.Q6J("ngClass",r.kEZ(5,n,"REJECTED"===p.evidence.status,"SUBMITTED"===p.evidence.status,"ACCEPTED"===p.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",s)("nzPopoverTrigger",p.enablePopover?"hover":null),r.xp6(1),r.Q6J("ngTemplateOutlet",T)}}function M(_,f){}function J(_,f){if(1&_&&r.YNc(0,M,0,0,"ng-template",5),2&_){r.oxw();const s=r.MAs(2);r.Q6J("ngTemplateOutlet",s)}}function O(_,f){if(1&_&&(r.TgZ(0,"cvc-icon-badges",10),r._UZ(1,"i",11),r.ALo(2,"entityColor"),r.ALo(3,"entityColor"),r.qZA(),r._uU(4)),2&_){const s=r.oxw();r.Q6J("flagged",s.evidence.flagged)("entityColor",s.iconColor),r.xp6(1),r.Q6J("nzTwotoneColor","REJECTED"===s.evidence.status?r.lcZ(2,4,"Rejected"):r.lcZ(3,6,"EvidenceItem")),r.xp6(3),r.hij(" ",s.evidence.name,"\n")}}let X=(()=>{class _ extends g.a{set evidence(s){if(!s)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=s}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,D.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return _.\u0275fac=function(s){return new(s||_)},_.\u0275cmp=r.Xpm({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[r.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(s,p){if(1&s&&(r.YNc(0,j,3,2,"ng-container",0),r.YNc(1,x,4,9,"ng-template",null,1,r.W1O),r.YNc(3,J,1,1,"ng-template",null,2,r.W1O),r.YNc(5,O,5,8,"ng-template",null,3,r.W1O)),2&s){const T=r.MAs(4);r.Q6J("ngIf",p.linked)("ngIfElse",T)}},dependencies:[z.mk,z.O5,z.tP,B.rH,L.j,q.lU,F.Ls,V._,v.b,l.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),_})()},7707:(xn,U,o)=>{o.r(U),o.d(U,{VariantsDetailModule:()=>li});var g=o(6814),D=o(4758),r=o(5725),z=o(5956),B=o(936),L=o(7129),q=o(2419),F=o(4059),V=o(2524),v=o(6223),l=o(4190),k=o(8527),j=o(9543),N=o(6545),$=o(100),P=o(5545),n=o(5879),x=o(2840),M=o(855),J=o(1958),O=o(5883);const _={name:"submit-button",component:(()=>{class t extends P.fS{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-submit-button-type"]],features:[n.qOj],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(e,i){1&e&&(n.TgZ(0,"cvc-form-buttons")(1,"button",0),n._uU(2),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("disabled",!i.form.valid),n.xp6(1),n.hij(" ",i.to.submitLabel," "))},dependencies:[x.ix,M.w,J.dQ,O.Z],encapsulation:2,changeDetection:0}),t})()};let f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,v.UX,P.X0.forChild({types:[_]}),x.sL,N.R]}),t})();var s=o(3903),p=o(2962),T=o(3599),m=o(95),R=o(9691),y=o(2574),nn=o(2669),tn=o(6109),G=o(2392);let Tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,l.Bz,v.u5,v.UX,T.U5,s.L,m.Jb,x.sL,nn.j,p.vh,y.zf,G.ZJ,tn.cg,R.LV,$.B,N.R,f,j.w,k.u]}),t})();var Q,E=o(551),C=o(6254),en=o(7417),u=o(313),an=o(7921),Y=o(9773),Z=o(4223),on=o(8645),rn=o(5619),cn=o(951),b=o(8091),yn=o(1520),hn=o(5098),In=o(327),zn=o(1801),_n=o(4121),Cn=o(3145),Zn=o(8295),Qn=o(1834),An=o(655),Vn=o(2024),S=o(7398),sn=o(2181),gn=o(5676),pn=o(1791),Mn=o(7473),Jn=o(1446),bn=o(2606);function Sn(t,a){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-molecular-profile-tag",19),n.BQk()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("molecularProfile",e)}}function Un(t,a){if(1&t&&n.YNc(0,Sn,2,1,"ng-container",18),2&t){const e=n.oxw(3).ngrxLet;n.Q6J("ngForOf",e)}}function Nn(t,a){if(1&t&&(n.TgZ(0,"nz-alert",16),n.YNc(1,Un,1,1,"ng-template",null,17,n.W1O),n.qZA()),2&t){const e=n.MAs(2);n.Q6J("nzDescription",e)}}function Pn(t,a){1&t&&(n.ynx(0),n.YNc(1,Nn,3,1,"nz-alert",15),n.BQk())}function On(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Pn,2,0,"ng-container",14),n.BQk()),2&t){const e=a.ngrxLet;n.xp6(1),n.Q6J("ngIf",e&&e.length>0)}}function En(t,a){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-molecular-profile-tag",19),n.BQk()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("molecularProfile",e)}}function Yn(t,a){if(1&t&&n.YNc(0,En,2,1,"ng-container",18),2&t){const e=n.oxw(3).ngrxLet;n.Q6J("ngForOf",e)}}function wn(t,a){if(1&t&&(n.TgZ(0,"nz-alert",21),n.YNc(1,Yn,1,1,"ng-template",null,22,n.W1O),n.qZA()),2&t){const e=n.MAs(2);n.Q6J("nzDescription",e)}}function Dn(t,a){1&t&&(n.ynx(0),n.YNc(1,wn,3,1,"nz-alert",20),n.BQk())}function Bn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Dn,2,0,"ng-container",14),n.BQk()),2&t){const e=a.ngrxLet;n.xp6(1),n.Q6J("ngIf",e&&e.length>0)}}function Ln(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"nz-alert",23),n.NdJ("nzOnClose",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.onSuccessBannerClose())}),n.qZA()}}function qn(t,a){if(1&t&&n._UZ(0,"nz-alert",24),2&t){n.oxw();const e=n.MAs(9);n.Q6J("nzDescription",e)}}function Fn(t,a){if(1&t&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&t){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function kn(t,a){if(1&t&&(n.TgZ(0,"ul"),n.YNc(1,Fn,2,1,"li",18),n.qZA()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.errorMessages)}}function jn(t,a){}function $n(t,a){1&t&&n.YNc(0,jn,0,0,"ng-template")}function Rn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,$n,1,0,null,28),n.BQk()),2&t){n.oxw();const e=n.MAs(6);n.xp6(1),n.Q6J("ngTemplateOutlet",e)}}function Gn(t,a){}function Hn(t,a){1&t&&n.YNc(0,Gn,0,0,"ng-template")}function Wn(t,a){if(1&t&&(n.TgZ(0,"span",29),n.YNc(1,Hn,1,0,null,28),n.qZA()),2&t){n.oxw();const e=n.MAs(6);n.xp6(1),n.Q6J("ngTemplateOutlet",e)}}function Kn(t,a){if(1&t&&(n.TgZ(0,"button",30),n._uU(1," Deprecate Variant "),n.qZA()),2&t){const e=n.oxw().ngrxLet,i=n.oxw();n.Q6J("disabled",!(void 0!==i.comment&&i.comment.length>=10&&e.signedIn&&e.isEditor&&i.reason))("nzTooltipTrigger",i.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==i.selectedOrg?null:i.selectedOrg.name))}}function Xn(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-form-buttons"),n.YNc(2,Rn,2,1,"ng-container",25),n.YNc(3,Wn,2,1,"ng-template",null,26,n.W1O),n.YNc(5,Kn,2,3,"ng-template",null,27,n.W1O),n.qZA(),n.BQk()),2&t){const e=a.ngrxLet,i=n.MAs(4);n.xp6(2),n.Q6J("ngIf",e.signedIn&&e.isEditor)("ngIfElse",i)}}let H=((Q=class{constructor(a,e,i,c,d,A){this.deprecateVariantGQL=a,this.variantDetailGQL=e,this.mpsForVariantGQL=i,this.networkErrorService=c,this.route=d,this.viewerService=A,this.destroy$=new on.x,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new Vn.U(c),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,pn.t)(this)).subscribe(e=>{this.selectedOrg=e.mostRecentOrg}),void 0===this.variantId)throw new Error("Must pass a variant id into deprecate variant component");let a=this.mpsForVariantGQL.fetch({variantId:this.variantId});this.mpsToDeprecate$=a.pipe((0,S.U)(({data:e})=>e.molecularProfiles.nodes),(0,sn.h)(gn.ep),(0,S.U)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=a.pipe((0,S.U)(({data:e})=>e.molecularProfiles.nodes),(0,sn.h)(gn.ep),(0,S.U)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=a.pipe((0,S.U)(({loading:e})=>e))}deprecateVariant(){if(this.errorMessages=[],this.reason&&this.comment&&this.variantId){let e=this.deprecateVariantMutator.mutate(this.deprecateVariantGQL,{deprecationReason:this.reason,comment:this.comment,variantId:this.variantId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.variantDetailGQL.document,variables:{variantId:this.variantId}}]});e.submitSuccess$.pipe((0,Y.R)(this.destroy$)).subscribe(i=>{i&&(this.success=!0,this.comment="")}),e.submitError$.pipe((0,Y.R)(this.destroy$)).subscribe(i=>{i.length>0&&(this.errorMessages=i)}),e.isSubmitting$.pipe((0,Y.R)(this.destroy$)).subscribe(i=>{this.loading=i})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}).\u0275fac=function(a){return new(a||Q)(n.Y36(u.vv6),n.Y36(u.iJT),n.Y36(u.E1C),n.Y36(Mn.Y),n.Y36(l.gz),n.Y36(cn.a))},Q.\u0275cmp=n.Xpm({type:Q,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModel","ngModelChange"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription"],["mpsToDeprecateTpl",""],[4,"ngFor","ngForOf"],[3,"molecularProfile"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription"],["mpsWithEvidenceTpl",""],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate variant."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(a,e){1&a&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.TgZ(2,"nz-space",1),n.YNc(3,On,2,1,"ng-container",2),n.YNc(4,Bn,2,1,"ng-container",2),n.qZA()(),n.TgZ(5,"nz-card",3),n.YNc(6,Ln,1,0,"nz-alert",4),n.YNc(7,qn,1,1,"nz-alert",5),n.YNc(8,kn,2,1,"ng-template",null,6,n.W1O),n.TgZ(10,"nz-form-item")(11,"nz-select",7),n.NdJ("ngModelChange",function(c){return e.reason=c}),n._UZ(12,"nz-option",8)(13,"nz-option",9)(14,"nz-option",10),n.qZA()(),n.TgZ(15,"form",11),n.NdJ("ngSubmit",function(){return e.deprecateVariant()}),n.TgZ(16,"cvc-comment-input-form",12),n.NdJ("commentChange",function(c){return e.comment=c}),n.qZA(),n.TgZ(17,"nz-spin",13)(18,"nz-form-item")(19,"nz-form-control"),n.YNc(20,Xn,7,2,"ng-container",2),n.qZA()()()()()),2&a&&(n.Q6J("nzSpinning",n.lcZ(1,9,e.mpListLoading$)),n.xp6(3),n.Q6J("ngrxLet",e.mpsToDeprecate$),n.xp6(1),n.Q6J("ngrxLet",e.mpsWithEvidence$),n.xp6(2),n.Q6J("ngIf",e.success),n.xp6(1),n.Q6J("ngIf",e.errorMessages.length>0),n.xp6(4),n.Q6J("ngModel",e.reason),n.xp6(5),n.Q6J("comment",e.comment),n.xp6(1),n.Q6J("nzSpinning",e.loading),n.xp6(3),n.Q6J("ngrxLet",e.viewer$))},dependencies:[g.sg,g.O5,g.tP,v._Y,v.JJ,v.JL,v.On,v.F,b.eJ,m.t3,m.SK,T.Lr,T.Nx,T.Fd,s.r,x.ix,M.w,J.dQ,nn.W,p.bd,y.NU,y.$1,tn.SY,R.Ip,R.Vq,O.Z,Jn.b,bn.p,b.fM],encapsulation:2,changeDetection:0}),Q);H=(0,An.gn)([(0,pn.c)()],H);var nt=o(4082),tt=o(2616);function et(t,a){if(1&t&&(n.TgZ(0,"span",16)(1,"strong"),n._uU(2),n.qZA(),n._uU(3," Parent:"),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.xp6(2),n.Oqu(e.name)}}function at(t,a){if(1&t&&(n.TgZ(0,"span",17)(1,"a",18),n._UZ(2,"cvc-gene-tag",19),n.qZA()()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",e.gene.id,""),n.xp6(1),n.Q6J("gene",e.gene)}}function it(t,a){1&t&&(n.TgZ(0,"nz-space",13),n.YNc(1,et,4,1,"span",14),n.YNc(2,at,3,2,"span",15),n.qZA())}function ot(t,a){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function rt(t,a){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,ot,2,0,"span",0),n.qZA()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ct(t,a){if(1&t&&(n.TgZ(0,"nz-page-header-subtitle"),n.YNc(1,rt,3,2,"span",20),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.variantAliases)}}const _t=function(t){return["/variants",t,"revise"]};function st(t,a){if(1&t&&(n.TgZ(0,"button",25,26),n._uU(2," Revise "),n.qZA()),2&t){const e=n.MAs(1),i=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,_t,i.id))("nzType",e.isActive?"primary":"default")}}function gt(t,a){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,st,3,4,"button",24),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",null==e?null:e.signedIn)}}function pt(t,a){if(1&t&&(n.TgZ(0,"button",28,26),n._uU(2," Flag "),n.qZA()),2&t){const e=n.MAs(1);n.Q6J("nzType",e.isActive?"primary":"default")}}function lt(t,a){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,pt,3,1,"button",27),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function ft(t,a){if(1&t&&(n.TgZ(0,"div",32),n._UZ(1,"cvc-variant-deprecate-form",33),n.qZA()),2&t){const e=n.oxw(5).ngIf;n.xp6(1),n.Q6J("variantId",e.id)}}function mt(t,a){if(1&t&&(n.TgZ(0,"button",30),n._uU(1," Deprecate "),n.YNc(2,ft,2,1,"ng-template",null,31,n.W1O),n.qZA()),2&t){const e=n.MAs(3),i=n.oxw(4).ngIf;n.Q6J("disabled",i.deprecated)("nzPopoverContent",e)}}function ut(t,a){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,mt,4,2,"button",29),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.isEditor)}}function vt(t,a){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",35),2&t){const e=n.oxw(2).ngrxLet,i=n.oxw(3);n.Q6J("viewer",e)("subscribableId",i.subscribable.id)}}function dt(t,a){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,vt,1,2,"cvc-entity-subscription-button",34),n.qZA()),2&t){const e=n.oxw().ngrxLet,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.signedIn&&i.subscribable)}}function xt(t,a){1&t&&(n.TgZ(0,"nz-space",22),n.YNc(1,gt,2,1,"span",23),n.YNc(2,lt,2,1,"span",23),n.YNc(3,ut,2,1,"span",23),n.YNc(4,dt,2,1,"span",23),n.qZA())}function Tt(t,a){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,xt,5,0,"nz-space",21),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",e.viewer$)}}function yt(t,a){if(1&t&&n._UZ(0,"nz-alert",36),2&t){n.oxw();const e=n.MAs(16);n.Q6J("nzMessage",e)}}const ht=function(){return[]};function It(t,a){if(1&t&&(n._uU(0),n.ALo(1,"enumToTitle"),n._UZ(2,"cvc-comment-body",37)),2&t){const e=n.oxw().ngIf;n.hij(" This Variant has been deprecated for reason: ",n.lcZ(1,2,e.deprecationReason),". "),n.xp6(2),n.Q6J("commentBodySegments",(null==e.deprecationComment?null:e.deprecationComment.parsedComment)||n.DdM(4,ht))}}function zt(t,a){if(1&t&&(n.TgZ(0,"nz-col",38),n._UZ(1,"cvc-contributor-avatars",39),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("subscribable",e.subscribable)}}const Ct=function(t){return{flagged:t}};function Zt(t,a){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,it,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.TgZ(6,"nz-page-header",4)(7,"nz-page-header-title",5),n._UZ(8,"i",6),n.ALo(9,"entityColor"),n._uU(10),n.qZA(),n.YNc(11,ct,2,1,"nz-page-header-subtitle",0),n.YNc(12,Tt,2,1,"nz-page-header-extra",7),n.TgZ(13,"nz-page-header-content"),n.YNc(14,yt,1,1,"nz-alert",8),n.YNc(15,It,3,5,"ng-template",null,9,n.W1O),n.TgZ(17,"cvc-tab-navigation",10),n.ALo(18,"ngrxPush"),n.YNc(19,zt,2,1,"ng-template",null,11,n.W1O),n.qZA(),n.TgZ(21,"div",12),n._UZ(22,"router-outlet"),n.qZA()()()(),n.BQk()),2&t){const e=a.ngIf,i=n.MAs(3),c=n.oxw();n.xp6(1),n.Q6J("displayName",e.gene.name+" "+e.name)("relationsTpl",i),n.xp6(3),n.Q6J("flags",n.lcZ(5,10,c.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(16,Ct,e.flags.totalCount>0)),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(9,12,"Variant")),n.xp6(2),n.hij(" ",e.name," "),n.xp6(1),n.Q6J("ngIf",e.variantAliases.length>0),n.xp6(1),n.Q6J("ngrxLet",c.viewer$),n.xp6(2),n.Q6J("ngIf",e.deprecated),n.xp6(3),n.Q6J("tabs",n.lcZ(18,14,c.tabs$))}}let Qt=(()=>{class t{constructor(e,i,c){this.gql=e,this.viewerService=i,this.route=c,this.destroy$=new on.x,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 rn.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(d=>{this.queryRef=this.gql.watch({variantId:+d.variantId});let A=this.queryRef.valueChanges;this.loading$=A.pipe((0,Z.j)("loading"),(0,an.O)(!0)),this.variant$=A.pipe((0,Z.j)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,Z.j)("flags","totalCount")),this.variant$.pipe((0,Y.R)(this.destroy$)).subscribe({next:w=>{this.tabs$.next(this.defaultTabs.map(I=>"Revisions"===I.tabLabel?{badgeCount:w?.revisions.totalCount,...I}:"Comments"===I.tabLabel?{badgeCount:w?.comments.totalCount,badgeColor:"#cccccc",...I}:I))}}),this.subscribable={id:+d.variantId,entityType:u.o71.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.iJT),n.Y36(cn.a),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["variantRelations",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],["deprecationMessageTemplate",""],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],["deprecateVariantForm",""],[1,"deprecateVariant"],[3,"variantId"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(e,i){1&e&&(n.YNc(0,Zt,23,18,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,i.variant$))},dependencies:[g.mk,g.sg,g.O5,l.lC,l.rH,l.Od,b.eJ,x.ix,M.w,J.dQ,E.Ls,C.$O,C.u9,C.yG,C.u5,C.Jp,y.NU,y.$1,m.t3,s.r,en.lU,yn.N,hn.P,In.o,zn.Y,_n.H,Cn.I,Zn.Q,Qn.m,H,b.fM,nt.I,tt.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{flex-wrap:nowrap;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}.deprecateVariant[_ngcontent-%COMP%]{width:700px}"]}),t})();var At=o(1260);let Vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,At.l]}),t})();var Mt=o(5565);let Jt=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:u.OfU.Variant}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(e,i){1&e&&n._UZ(0,"cvc-comment-list",0),2&e&&n.Q6J("commentable",i.commentable)},dependencies:[Mt.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var bt=o(7937),St=o(4139);let Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,m.Jb,p.vh,y.zf,St.H0,E.PV,bt.M]}),t})();var Nt=o(4385);let Pt=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:u.sfv.Variant,id:+this.route.snapshot.params.variantId}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(e,i){1&e&&n._UZ(0,"cvc-flag-list-and-filter",0),2&e&&n.Q6J("flaggable",i.flaggable)},dependencies:[Nt.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Ot=o(2534);let Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,Ot.A]}),t})();var Yt=o(6126);let wt=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(i=>{this.variantId=+i.variantId,this.entityType=u.oRL.Variant})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,i){1&e&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&n.Q6J("id",i.variantId)("entityType",i.entityType)},dependencies:[Yt.a],encapsulation:2}),t})();var Dt=o(366),Bt=o(8641),W=o(8125),Lt=o(3717),ln=o(6067),K=o(9382),h=o(3740);let qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,K.we,h.HQ,p.vh,ln.X,m.Jb,V.s]}),t})();var Ft=o(3511),fn=o(9894),kt=o(8706),mn=o(5695),jt=o(6055),$t=o(6610);let Rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,y.zf,m.Jb,W.q6,p.vh,G.ZJ,E.PV,mn.X,jt.z,V.s,Dt.$,kt.W,Bt.s,z.U,Lt.M,ln.X,qt,Ft.o,fn.t,$t.I]}),t})();var Gt=o(1765),Ht=o(1887),Wt=o(7938),un=o(3317),Kt=o(406);function Xt(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",e.variantInfo.clinvarId," ")}}function ne(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",20),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.xp6(1),n.hij(" ",e.variantInfo.dbsnpRsid," ")}}function te(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",21),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.xp6(1),n.hij(" ",e.variantInfo.cosmicId," ")}}function ee(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ae(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ee,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ie(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ae,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.snpeffSnpEffect)}}function oe(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function re(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,oe,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ce(t,a){if(1&t&&(n.ynx(0),n.YNc(1,re,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.snpeffSnpImpact)}}function _e(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," MyVariant.info ID: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.TgZ(7,"strong",17),n._uU(8,"ClinVar ID:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,Xt,3,2,"ng-container",18),n.qZA()(),n.TgZ(11,"div",14)(12,"div",15),n._uU(13," dbSNP RSID: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,ne,3,2,"ng-container",18),n.TgZ(16,"strong",17),n._uU(17,"COSMIC ID (v68):"),n.qZA(),n._uU(18,"\xa0 "),n.YNc(19,te,3,2,"ng-container",18),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," SNPEff Effect: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,ie,2,1,"ng-container",18),n.qZA()(),n.TgZ(25,"div",14)(26,"div",15),n._uU(27," SNPEff Impact: "),n.qZA(),n.TgZ(28,"div",16),n.YNc(29,ce,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",e.variantInfo.myVariantInfoId," "),n.xp6(4),n.Q6J("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",i),n.xp6(4),n.Q6J("ngIf",e.variantInfo.cosmicId)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",i)}}function se(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",e.variantInfo.clinvarId," ")}}function ge(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",23),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.xp6(1),n.hij(" ",e.variantInfo.clinvarOmim," ")}}function pe(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function le(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,pe,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function fe(t,a){if(1&t&&(n.ynx(0),n.YNc(1,le,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function me(t,a){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ue(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,me,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ve(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ue,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function de(t,a){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function xe(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,de,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Te(t,a){if(1&t&&(n.ynx(0),n.YNc(1,xe,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function ye(t,a){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function he(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ye,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Ie(t,a){if(1&t&&(n.ynx(0),n.YNc(1,he,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function ze(t,a){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function Ce(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ze,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Ze(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ce,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function Qe(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," ClinVar ID: "),n.qZA(),n.TgZ(5,"div",16),n.YNc(6,se,3,2,"ng-container",18),n.TgZ(7,"strong",17),n._uU(8,"OMIM:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,ge,3,2,"ng-container",18),n.qZA()(),n.TgZ(11,"div",14)(12,"div",15),n._uU(13," ClinVar Clinical Significance: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,fe,2,1,"ng-container",18),n.qZA()(),n.TgZ(16,"div",14)(17,"div",15),n._uU(18," HGVS Coding: "),n.qZA(),n.TgZ(19,"div",16),n.YNc(20,ve,2,1,"ng-container",18),n.qZA()(),n.TgZ(21,"div",14)(22,"div",15),n._uU(23," HGVS Genomic: "),n.qZA(),n.TgZ(24,"div",16),n.YNc(25,Te,2,1,"ng-container",18),n.qZA()(),n.TgZ(26,"div",14)(27,"div",15),n._uU(28," HGVS Non-Coding: "),n.qZA(),n.TgZ(29,"div",16),n.YNc(30,Ie,2,1,"ng-container",18),n.qZA()(),n.TgZ(31,"div",14)(32,"div",15),n._uU(33," HGVS Protein: "),n.qZA(),n.TgZ(34,"div",16),n.YNc(35,Ze,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.xp6(4),n.Q6J("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",i)}}function Ae(t,a){if(1&t&&(n.TgZ(0,"cvc-link-tag",27),n._uU(1," View this variant in the gnomAD browser "),n.qZA()),2&t){const e=n.oxw(3);n.MGl("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}const vn=function(){return["."]};function Ve(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ae,2,1,"cvc-link-tag",24),n.TgZ(2,"nz-table",25,26)(4,"thead")(5,"tr")(6,"th"),n._uU(7,"Type"),n.qZA(),n.TgZ(8,"th"),n._uU(9,"Allele Frequency"),n.qZA(),n.TgZ(10,"th"),n._uU(11,"Allele Count"),n.qZA(),n.TgZ(12,"th"),n._uU(13,"Allele Number"),n.qZA(),n.TgZ(14,"th"),n._uU(15,"Filter"),n.qZA()()(),n.TgZ(16,"tbody")(17,"tr")(18,"td"),n._uU(19,"Total Exome"),n.qZA(),n.TgZ(20,"td"),n._uU(21),n.ALo(22,"ifEmpty"),n.qZA(),n.TgZ(23,"td"),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.TgZ(26,"td"),n._uU(27),n.ALo(28,"ifEmpty"),n.qZA(),n.TgZ(29,"td"),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA()(),n.TgZ(32,"tr")(33,"td"),n._uU(34,"Total Genome"),n.qZA(),n.TgZ(35,"td"),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.TgZ(38,"td"),n._uU(39),n.ALo(40,"ifEmpty"),n.qZA(),n.TgZ(41,"td"),n._uU(42),n.ALo(43,"ifEmpty"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA()()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.variantInfo.dbsnpRsid),n.xp6(1),n.Q6J("nzData",n.DdM(36,vn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(19),n.hij(" ",n.xi3(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.xp6(3),n.Oqu(n.xi3(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.xp6(3),n.hij(" ",n.xi3(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.xp6(3),n.Oqu(n.xi3(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.xp6(6),n.hij(" ",n.xi3(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.xp6(3),n.hij(" ",n.xi3(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.xp6(3),n.hij(" ",n.xi3(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.xp6(3),n.Oqu(n.xi3(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Me(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," Allele Count: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," Allele Number: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," Adjusted Allele Frequency: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function Je(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," phyloP100way: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," phyloP30way: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," phastCons100way: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," phastCons30way: "),n.qZA(),n.TgZ(23,"div",16),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA()(),n.TgZ(26,"div",14)(27,"div",15),n._uU(28," GERP++: "),n.qZA(),n.TgZ(29,"div",16),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA()(),n.TgZ(32,"div",14)(33,"div",15),n._uU(34," SiPhy: "),n.qZA(),n.TgZ(35,"div",16),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,24,e.variantInfo.phyloP100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,27,e.variantInfo.phyloP30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,30,e.variantInfo.phastcons100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(25,33,e.variantInfo.phastcons30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(31,36,e.variantInfo.gerp,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(37,39,e.variantInfo.siphy,"--")," ")}}function be(t,a){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function Se(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,be,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Ue(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Se,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.eglHgvs)}}function Ne(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," EGL Class: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," Protein Variant Name: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," Transcript Variant Name: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," HGVS: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,Ue,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,17,e.variantInfo.eglClass,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,20,e.variantInfo.eglProtein,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,23,e.variantInfo.eglTranscript,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",i)}}function Pe(t,a){if(1&t&&(n.TgZ(0,"td"),n._uU(1),n.ALo(2,"ifEmpty"),n.qZA()),2&t){const e=n.oxw(3);n.xp6(1),n.Oqu(n.xi3(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function Oe(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ee(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Oe,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Ye(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ee,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.siftPrediction)}}function we(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function De(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,we,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Be(t,a){if(1&t&&(n.ynx(0),n.YNc(1,De,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.siftScore)}}function Le(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function qe(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Le,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Fe(t,a){if(1&t&&(n.ynx(0),n.YNc(1,qe,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function ke(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function je(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ke,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function $e(t,a){if(1&t&&(n.ynx(0),n.YNc(1,je,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HdivScore)}}function Re(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ge(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Re,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function He(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ge,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function We(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ke(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,We,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Xe(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ke,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HvarScore)}}function na(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ta(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,na,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ea(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ta,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationtasterPrediction)}}function aa(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ia(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,aa,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function oa(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ia,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationtasterScore)}}function ra(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ca(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ra,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function _a(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ca,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationassessorPrediction)}}function sa(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ga(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,sa,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function pa(t,a){if(1&t&&(n.ynx(0),n.YNc(1,ga,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationassessorScore)}}function la(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function fa(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,la,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ma(t,a){if(1&t&&(n.ynx(0),n.YNc(1,fa,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.fathmmPrediction)}}function ua(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function va(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ua,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function da(t,a){if(1&t&&(n.ynx(0),n.YNc(1,va,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.fathmmScore)}}function xa(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ta(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,xa,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function ya(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ta,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.proveanPrediction)}}function ha(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ia(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ha,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function za(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ia,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.proveanScore)}}function Ca(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Za(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ca,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Qa(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Za,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.caddConsequence)}}function Aa(t,a){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Va(t,a){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Aa,2,0,"ng-container",0),n.BQk()),2&t){const e=a.$implicit,i=a.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!i)}}function Ma(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Va,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.caddDetail)}}function Ja(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",25,26)(3,"thead")(4,"tr")(5,"th"),n._uU(6,"Predictor"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Prediction"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"Score"),n.qZA()()(),n.TgZ(11,"tbody")(12,"tr")(13,"td"),n._uU(14,"REVEL"),n.qZA(),n.TgZ(15,"td"),n._uU(16,"N/A"),n.qZA(),n.YNc(17,Pe,3,4,"td",0),n.qZA(),n.TgZ(18,"tr")(19,"td"),n._uU(20,"SIFT"),n.qZA(),n.TgZ(21,"td"),n.YNc(22,Ye,2,1,"ng-container",18),n.qZA(),n.TgZ(23,"td"),n.YNc(24,Be,2,1,"ng-container",18),n.qZA()(),n.TgZ(25,"tr")(26,"td"),n._uU(27,"Polyphen2 HDIV"),n.qZA(),n.TgZ(28,"td"),n.YNc(29,Fe,2,1,"ng-container",18),n.qZA(),n.TgZ(30,"td"),n.YNc(31,$e,2,1,"ng-container",18),n.qZA()(),n.TgZ(32,"tr")(33,"td"),n._uU(34,"Polyphen2 HVAR"),n.qZA(),n.TgZ(35,"td"),n.YNc(36,He,2,1,"ng-container",18),n.qZA(),n.TgZ(37,"td"),n.YNc(38,Xe,2,1,"ng-container",18),n.qZA()(),n.TgZ(39,"tr")(40,"td"),n._uU(41,"LRT"),n.qZA(),n.TgZ(42,"td"),n._uU(43),n.ALo(44,"ifEmpty"),n.qZA(),n.TgZ(45,"td"),n._uU(46),n.ALo(47,"ifEmpty"),n.qZA()(),n.TgZ(48,"tr")(49,"td"),n._uU(50,"MutationTaster"),n.qZA(),n.TgZ(51,"td"),n.YNc(52,ea,2,1,"ng-container",18),n.qZA(),n.TgZ(53,"td"),n.YNc(54,oa,2,1,"ng-container",18),n.qZA()(),n.TgZ(55,"tr")(56,"td"),n._uU(57,"MutationAssessor"),n.qZA(),n.TgZ(58,"td"),n.YNc(59,_a,2,1,"ng-container",18),n.qZA(),n.TgZ(60,"td"),n.YNc(61,pa,2,1,"ng-container",18),n.qZA()(),n.TgZ(62,"tr")(63,"td"),n._uU(64,"FATHMM"),n.qZA(),n.TgZ(65,"td"),n.YNc(66,ma,2,1,"ng-container",18),n.qZA(),n.TgZ(67,"td"),n.YNc(68,da,2,1,"ng-container",18),n.qZA()(),n.TgZ(69,"tr")(70,"td"),n._uU(71,"PROVEAN"),n.qZA(),n.TgZ(72,"td"),n.YNc(73,ya,2,1,"ng-container",18),n.qZA(),n.TgZ(74,"td"),n.YNc(75,za,2,1,"ng-container",18),n.qZA()(),n.TgZ(76,"tr")(77,"td"),n._uU(78,"MetaSVM"),n.qZA(),n.TgZ(79,"td"),n._uU(80),n.ALo(81,"ifEmpty"),n.qZA(),n.TgZ(82,"td"),n._uU(83),n.ALo(84,"ifEmpty"),n.qZA()(),n.TgZ(85,"tr")(86,"td"),n._uU(87,"MetaLR"),n.qZA(),n.TgZ(88,"td"),n._uU(89),n.ALo(90,"ifEmpty"),n.qZA(),n.TgZ(91,"td"),n._uU(92),n.ALo(93,"ifEmpty"),n.qZA()(),n.TgZ(94,"tr")(95,"td"),n._uU(96,"CADD"),n.qZA(),n.TgZ(97,"td"),n._uU(98," Consequence: "),n.YNc(99,Qa,2,1,"ng-container",18),n._UZ(100,"br"),n._uU(101," Consequence Detail: "),n.YNc(102,Ma,2,1,"ng-container",18),n.qZA(),n.TgZ(103,"td"),n._uU(104),n.ALo(105,"ifEmpty"),n._UZ(106,"br"),n._uU(107),n.ALo(108,"ifEmpty"),n.qZA()(),n.TgZ(109,"tr")(110,"td"),n._uU(111,"FATHMM-MKL"),n.qZA(),n.TgZ(112,"td"),n._uU(113),n.ALo(114,"ifEmpty"),n.qZA(),n.TgZ(115,"td"),n._uU(116),n.ALo(117,"ifEmpty"),n.qZA()(),n.TgZ(118,"tr")(119,"td"),n._uU(120,"fitCons"),n.qZA(),n.TgZ(121,"td"),n._uU(122,"N/A"),n.qZA(),n.TgZ(123,"td"),n._uU(124),n.ALo(125,"ifEmpty"),n.qZA()()()(),n.BQk()),2&t){const e=n.oxw(2),i=n.MAs(2);n.xp6(1),n.Q6J("nzData",n.DdM(80,vn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(16),n.Q6J("ngIf",e.variantInfo.revelScore),n.xp6(5),n.Q6J("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",i),n.xp6(5),n.Q6J("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",i),n.xp6(5),n.Q6J("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",i),n.xp6(5),n.Oqu(n.xi3(44,47,e.variantInfo.lrtPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(47,50,e.variantInfo.lrtScore,"--")),n.xp6(6),n.Q6J("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",i),n.xp6(5),n.Q6J("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",i),n.xp6(5),n.Q6J("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",i),n.xp6(5),n.Q6J("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",i),n.xp6(5),n.Oqu(n.xi3(81,53,e.variantInfo.metasvmPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(84,56,e.variantInfo.metasvmScore,"--")),n.xp6(6),n.Oqu(n.xi3(90,59,e.variantInfo.metalrPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(93,62,e.variantInfo.metalrScore,"--")),n.xp6(7),n.Q6J("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",i),n.xp6(3),n.Q6J("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",i),n.xp6(2),n.hij(" ",n.xi3(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.xp6(3),n.hij(" ",n.xi3(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.xp6(6),n.Oqu(n.xi3(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(117,74,e.variantInfo.fathmmMklScore,"--")),n.xp6(8),n.Oqu(n.xi3(125,77,e.variantInfo.fitconsScore,"--"))}}function ba(t,a){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2)(2,"nz-card-tab")(3,"nz-tabset",3)(4,"nz-tab",4),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(0))}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(1))}),n.qZA(),n.TgZ(6,"nz-tab",6),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(2))}),n.qZA(),n.TgZ(7,"nz-tab",7),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(3))}),n.qZA(),n.TgZ(8,"nz-tab",8),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(4))}),n.qZA(),n.TgZ(9,"nz-tab",9),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(5))}),n.qZA(),n.TgZ(10,"nz-tab",10),n.NdJ("nzClick",function(){n.CHM(e);const c=n.oxw();return n.KtG(c.tabIndex.next(6))}),n.qZA()()(),n.ynx(11,11),n.ALo(12,"async"),n.YNc(13,_e,30,23,"ng-container",12),n.YNc(14,Qe,36,32,"ng-container",12),n.YNc(15,Ve,47,37,"ng-container",12),n.YNc(16,Me,20,21,"ng-container",12),n.YNc(17,Je,38,42,"ng-container",12),n.YNc(18,Ne,25,26,"ng-container",12),n.YNc(19,Ja,126,81,"ng-container",12),n.BQk(),n.qZA(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(8),n.Q6J("ngSwitch",n.lcZ(12,9,e.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3),n.xp6(1),n.Q6J("ngSwitchCase",4),n.xp6(1),n.Q6J("ngSwitchCase",5),n.xp6(1),n.Q6J("ngSwitchCase",6)}}function Sa(t,a){1&t&&n._uU(0,"--")}let Ua=(()=>{class t{constructor(){this.tabIndex=new rn.X(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","Conservation Analysis Tools",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],["gnomadTable",""],[3,"href"]],template:function(e,i){1&e&&(n.YNc(0,ba,20,11,"ng-container",0),n.YNc(1,Sa,1,0,"ng-template",null,1,n.W1O)),2&e&&n.Q6J("ngIf",i.variantInfo)},dependencies:[g.sg,g.O5,g.RF,g.n9,K.xH,K.xw,h.N8,h.Uo,h._C,h.Om,h.p0,h.$Z,p.bd,p._i,un.l,m.t3,m.SK,g.Ov,Kt.D],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var Na=o(3493),Pa=o(3180);function Oa(t,a){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function Ea(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Oa,2,1,"nz-tag",25),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.variantAliases)}}function Ya(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function wa(t,a){1&t&&n._UZ(0,"cvc-variant-type-tag",28),2&t&&n.Q6J("variantType",a.$implicit)}function Da(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,wa,1,1,"cvc-variant-type-tag",27),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.variantTypes)}}function Ba(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function La(t,a){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function qa(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,La,2,1,"nz-tag",25),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.hgvsDescriptions)}}function Fa(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function ka(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list")(2,"nz-tag"),n._uU(3),n.qZA()(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(3),n.Oqu(e.maneSelectTranscript)}}function ja(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None found"),n.qZA())}function $a(t,a){if(1&t&&(n.TgZ(0,"cvc-link-tag",29),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.Q6J("href","https://reg.genome.network/allele/"+e.alleleRegistryId+".html"),n.xp6(1),n.hij(" ",e.alleleRegistryId," ")}}function Ra(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"Unregistered"),n.qZA())}function Ga(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",30),n._uU(2),n.qZA(),n.BQk()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.xp6(1),n.hij(" ",e," ")}}function Ha(t,a){if(1&t&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Ga,3,2,"ng-container",25),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngForOf",e.clinvarIds)}}function Wa(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Ha,2,1,"cvc-tag-list",6),n.BQk()),2&t){const e=n.oxw().ngIf,i=n.MAs(37);n.xp6(1),n.Q6J("ngIf","N/A"!==e.clinvarIds[0]&&"NONE FOUND"!==e.clinvarIds[0])("ngIfElse",i)}}function Ka(t,a){if(1&t&&(n.TgZ(0,"span",26),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Oqu(e.clinvarIds[0])}}function Xa(t,a){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function ni(t,a){if(1&t&&(n.TgZ(0,"nz-descriptions-item",31)(1,"cvc-link-tag",32),n._uU(2," Variant Report "),n.qZA()()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("href",e.openCravatUrl)}}function ti(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-col",2),n._UZ(2,"cvc-my-variant-info",33),n.qZA(),n.BQk()),2&t){const e=a.ngIf;n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("variantInfo",e)}}function ei(t,a){1&t&&(n.TgZ(0,"nz-col",2)(1,"nz-card",34),n._UZ(2,"cvc-empty-revisable",35),n.qZA()()),2&t&&n.Q6J("nzSpan",24)}const ai=function(){return[8,16]},dn=function(){return[8,8]},ii=function(){return{xxl:2,xl:2,lg:1,md:1,sm:1,xs:1}};function oi(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-row",1)(4,"nz-col",3)(5,"nz-descriptions",4)(6,"nz-descriptions-item",5),n.YNc(7,Ea,3,1,"ng-container",6),n.YNc(8,Ya,2,0,"ng-template",null,7,n.W1O),n.qZA(),n.TgZ(10,"nz-descriptions-item",8),n.YNc(11,Da,3,1,"ng-container",6),n.YNc(12,Ba,2,0,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(14,"nz-descriptions-item",8),n.YNc(15,qa,3,1,"ng-container",6),n.YNc(16,Fa,2,0,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(18,"nz-descriptions-item",11),n.YNc(19,ka,4,1,"ng-container",6),n.YNc(20,ja,2,0,"ng-template",null,12,n.W1O),n.qZA()()(),n.TgZ(22,"nz-col",2),n._UZ(23,"cvc-coordinates-card",13),n.qZA()()(),n.TgZ(24,"nz-col",14)(25,"nz-row",1)(26,"nz-col",2)(27,"nz-descriptions",4)(28,"nz-descriptions-item",15),n._UZ(29,"cvc-gene-tag",16),n.qZA(),n.TgZ(30,"nz-descriptions-item",17),n.YNc(31,$a,2,2,"cvc-link-tag",18),n.YNc(32,Ra,2,0,"ng-template",null,19,n.W1O),n.qZA(),n.TgZ(34,"nz-descriptions-item",8),n.YNc(35,Wa,2,2,"ng-container",6),n.YNc(36,Ka,2,1,"ng-template",null,20,n.W1O),n.YNc(38,Xa,2,0,"ng-template",null,21,n.W1O),n.qZA(),n.YNc(40,ni,3,1,"nz-descriptions-item",22),n.qZA()(),n.YNc(41,ti,3,2,"ng-container",6),n.ALo(42,"ngrxPush"),n.YNc(43,ei,3,1,"ng-template",null,23,n.W1O),n.qZA()(),n.TgZ(45,"nz-col",3),n._UZ(46,"cvc-molecular-profiles-table",24),n.qZA()(),n.BQk()),2&t){const e=a.ngIf,i=n.MAs(9),c=n.MAs(13),d=n.MAs(17),A=n.MAs(21),w=n.MAs(33),I=n.MAs(39),fi=n.MAs(44),mi=n.oxw();n.xp6(1),n.Q6J("nzGutter",n.DdM(32,ai)),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzGutter",n.DdM(33,dn)),n.xp6(2),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",e.variantAliases.length>0)("ngIfElse",i),n.xp6(3),n.Q6J("nzTitle",e.variantTypes.length>1?"Variant Types":"Variant Type"),n.xp6(1),n.Q6J("ngIf",e.variantTypes.length>0)("ngIfElse",c),n.xp6(3),n.Q6J("nzTitle",e.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.xp6(1),n.Q6J("ngIf",e.hgvsDescriptions.length>0)("ngIfElse",d),n.xp6(4),n.Q6J("ngIf",e.maneSelectTranscript)("ngIfElse",A),n.xp6(3),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("cvcVariantId",e.id),n.xp6(2),n.Q6J("nzGutter",n.DdM(34,dn)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",n.DdM(35,ii)),n.xp6(2),n.Q6J("gene",e.gene),n.xp6(2),n.Q6J("ngIf",e.alleleRegistryId&&"unregistered"!=e.alleleRegistryId)("ngIfElse",w),n.xp6(3),n.Q6J("nzTitle",e.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.xp6(1),n.Q6J("ngIf",e.clinvarIds.length>0)("ngIfElse",I),n.xp6(5),n.Q6J("ngIf",e.openCravatUrl),n.xp6(1),n.Q6J("ngIf",n.lcZ(42,30,mi.variantInfo$))("ngIfElse",fi),n.xp6(5),n.MGl("cvcTitle","",e.name," Molecular Profiles"),n.Q6J("variantId",e.id)}}let ri=(()=>{class t{constructor(e,i){var c;if(this.gql=e,this.route=i,null==(c=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:c});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,Z.j)("loading"),(0,an.O)(!0)),this.variant$=d.pipe((0,Z.j)("data","variant")),this.variantInfo$=d.pipe((0,Z.j)("data","variant","myVariantInfo")),this.subscribable={entityType:u.o71.Variant,id:c}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.Bo4),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["noAliases",""],[3,"nzTitle"],["noTypes",""],["noDescriptions",""],["nzTitle","MANE Select Transcript"],["noMane",""],[3,"cvcVariantId"],["nzSpan","12"],["nzTitle","Gene"],[3,"gene"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["nzTitle","OpenCRAVAT",4,"ngIf"],["noVariantInfo",""],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","OpenCRAVAT"],["tooltip","View on OpenCRAVAT",3,"href"],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide Representative Variant Coordinates"]],template:function(e,i){1&e&&(n.YNc(0,oi,47,36,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,i.variant$))},dependencies:[g.sg,g.O5,m.t3,m.SK,W.R7,W.uj,p.bd,G.ZU,mn.j,Gt.m,Ht.$,_n.H,Wt.j,un.l,Ua,Na.J,Pa.B,b.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})();var ci=o(7441);let _i=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:u.o71.Variant}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,i){1&e&&n._UZ(0,"cvc-event-feed",0),2&e&&n.Q6J("subscribable",i.subscribable)},dependencies:[ci.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,fn.t]}),t})();const gi=[{path:"",component:Qt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ri,data:{breadcrumb:"Summary"}},{path:"comments",component:Jt,data:{breadcrumb:"Comments"}},{path:"revisions",component:wt,data:{breadcrumb:"Revisions"}},{path:"flags",component:Pt,data:{breadcrumb:"Flags"}},{path:"events",component:_i,data:{breadcrumb:"Events"}}]}];let pi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[l.Bz.forChild(gi),Rt,Vt,Et,Ut,si,l.Bz]}),t})(),li=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[g.ez,pi,x.sL,E.PV,C.KJ,y.zf,m.Jb,s.L,en.$6,B.Z,F.c,r.m,z.U,q.D,L.g,V.s,D.m,Tn]}),t})()}}]); \ No newline at end of file diff --git a/server/public/2818.0ccc21c376328600.js b/server/public/2818.0ccc21c376328600.js new file mode 100644 index 000000000..5b9f49579 --- /dev/null +++ b/server/public/2818.0ccc21c376328600.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2818],{9390:(E,S,n)=>{n.d(S,{C:()=>f,w:()=>t});const t={geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,therapyIds:void 0,therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:void 0,rating:void 0,sourceId:void 0,variantOrigin:void 0},f={clientMutationId:void 0,fields:t,comment:void 0,organizationId:void 0}},4607:(E,S,n)=>{n.d(S,{lG:()=>m,yQ:()=>r});var t=n(2),f=n(313),o=n(8645),z=n(3742),r=(()=>((r=r||{}).EVIDENCE="Evidence",r.ASSERTION="Assertion",r))();class m{constructor(d){this.formReady$=new o.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new o.x,this.requiresTherapy$=new o.x,this.requiresDisease$=new o.x,this.requiresAcmgCode$=new o.x,this.requiresAmpLevel$=new o.x,this.requiresClingenCode$=new o.x,this.allowsFdaApproval$=new o.x,this.getTypeOptions=()=>this.entityName==r.ASSERTION?(0,z.o6)(f.uBv).map(l=>l):(0,z.o6)(f.kqt).map(l=>l),this.getSignificanceOptions=l=>this.validStates.get(l)?.significance||[],this.getInteractionOptions=()=>(0,z.o6)(f.wkr).map(l=>l),this.isValidSignificanceOption=(l,s)=>{const y=this.validStates.get(l);return!y||y.significance.includes(s)},this.getDirectionOptions=l=>this.validStates.get(l)?.entityDirection||[],this.isValidDirectionOption=(l,s)=>{const y=this.validStates.get(l);return!y||y.entityDirection.includes(s)},this.requiresTherapy=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresTherapy},this.requiresDisease=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresDisease},this.requiresAcmgCodes=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresAcmgCodes},this.requiresAmpLevel=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresAmpLevel},this.requiresClingenCodes=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresClingenCodes},this.allowsFdaApproval=l=>{const s=this.validStates.get(l);return void 0===s||s.allowsFdaApproval},this.getOptionsFromEnums=l=>0===l.length?[]:l.map(s=>({value:s,label:(0,t.E)(s)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=d,this.pluralNames=new Map,this.pluralNames.set(r.ASSERTION,"Assertions"),this.pluralNames.set(r.EVIDENCE,"Evidence")}onDestroy(){}}},7382:(E,S,n)=>{n.d(S,{_:()=>a});var t=n(313),f=n(1791),o=n(5619),z=n(9390),r=n(4607);class a extends r.lG{constructor(){super(r.yQ.EVIDENCE);const p=z.w;this.fields={molecularProfileId$:new o.X(p.molecularProfileId),variantId$:new o.X(p.variantId),variantMolecularProfile$:new o.X(void 0),geneId$:new o.X(p.geneId),evidenceType$:new o.X(p.evidenceType),evidenceLevel$:new o.X(p.evidenceLevel),evidenceDirection$:new o.X(p.evidenceDirection),significance$:new o.X(p.significance),variantOrigin$:new o.X(p.variantOrigin),diseaseId$:new o.X(p.diseaseId),therapyIds$:new o.X(p.therapyIds),therapyInteractionType$:new o.X(p.therapyInteractionType),rating$:new o.X(p.rating),phenotypeIds$:new o.X(p.phenotypeIds),sourceId$:new o.X(p.sourceId)},this.enums={entityType$:new o.X(this.getTypeOptions()),significance$:new o.X([]),direction$:new o.X([]),interaction$:new o.X(this.getInteractionOptions())},this.requires={requiresDisease$:new o.X(!1),requiresTherapy$:new o.X(!1),requiresTherapyInteractionType$:new o.X(!1),requiresClingenCodes$:new o.X(!1),requiresAcmgCodes$:new o.X(!1),requiresAmpLevel$:new o.X(!1),allowsFdaApproval$:new o.X(!1)},this.fields.evidenceType$.pipe((0,f.t)(this,"onDestroy")).subscribe(d=>{if(!d)return Object.entries(this.requires).forEach(([l,s])=>{s.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(d)),this.enums.direction$.next(this.getDirectionOptions(d)),this.requires.requiresDisease$.next(this.requiresDisease(d)),this.requires.requiresTherapy$.next(this.requiresTherapy(d)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(d)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(d)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(d)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(d))}),this.fields.therapyIds$.pipe((0,f.t)(this,"onDestroy")).subscribe(d=>{this.requires.requiresTherapyInteractionType$.next(!!d&&d.length>1)}),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,significance:[t.y1h.Sensitivityresponse,t.y1h.Resistance,t.y1h.AdverseResponse,t.y1h.ReducedSensitivity,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,significance:[t.y1h.Positive,t.y1h.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,significance:[t.y1h.BetterOutcome,t.y1h.PoorOutcome,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,significance:[t.y1h.Oncogenicity,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,significance:[t.y1h.Predisposition,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,significance:[t.y1h.GainOfFunction,t.y1h.LossOfFunction,t.y1h.UnalteredFunction,t.y1h.Neomorphic,t.y1h.DominantNegative,t.y1h.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},684:(E,S,n)=>{n.d(S,{K:()=>l});var t=n(6814),f=n(5545),o=n(5879),z=n(6223),r=n(824);const m={name:"comment-textarea",component:(()=>{class s extends f.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(_,I)=>`Comments must be at least ${I.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return s.\u0275fac=function(){let y;return function(I){return(y||(y=o.n5z(s)))(I||s)}}(),s.\u0275cmp=o.Xpm({type:s,selectors:[["comment-textarea-type"]],features:[o.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(_,I){1&_&&o._UZ(0,"textarea",0),2&_&&o.Q6J("formControl",I.formControl)("formlyAttributes",I.field)},dependencies:[z.Fj,z.JJ,z.oH,f.JD,r.Zp],encapsulation:2,changeDetection:0}),s})(),wrappers:["form-field"]};var p=n(3599),d=n(7459);let l=(()=>{class s{}return s.\u0275fac=function(_){return new(_||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[t.ez,z.UX,f.X0.forChild({types:[m]}),d.u,p.U5,r.o7]}),s})()},7570:(E,S,n)=>{function t(f,o){const z=(a,m)=>{let p;for(let d of a)if(d.fieldGroup)p=z(d.fieldGroup,m);else if(d.key===m){p=d;break}return p},r=(a,m)=>{for(let p of Object.keys(m))if(m[p]instanceof Object&&!Array.isArray(m[p]))r(a,m[p]);else{const d=z(a,p);d&&(d.defaultValue=m[p])}return a};return r(f,o)}n.d(S,{Z:()=>t})},2114:(E,S,n)=>{n.d(S,{Ct:()=>o,I9:()=>z,ux:()=>f});var t=n(1022);function f(r){return{significance:r.significance,description:r.description,diseaseId:r.disease?.id,therapyIds:r.therapies.map(a=>a.id),therapyInteractionType:r.therapyInteractionType,evidenceDirection:r.evidenceDirection,evidenceLevel:r.evidenceLevel,evidenceType:r.evidenceType,molecularProfileId:r.molecularProfile.id,phenotypeIds:r.phenotypes.map(a=>a.id),rating:r.evidenceRating,sourceId:r.source.id,variantOrigin:r.variantOrigin}}function o(r,a){let m=z(a);if(m)return{id:r,comment:m.comment,organizationId:m.organizationId,fields:m.fields}}function z(r){const a=r.fields;if(![a.molecularProfileId,a.variantOrigin,a.sourceId,a.evidenceType,a.significance,a.evidenceLevel,a.evidenceDirection,a.rating].find(p=>void 0===p))return{fields:{molecularProfileId:a.molecularProfileId,variantOrigin:a.variantOrigin,sourceId:a.sourceId,evidenceType:a.evidenceType,significance:a.significance,evidenceLevel:a.evidenceLevel,evidenceDirection:a.evidenceDirection,rating:a.rating,description:t.xt(a.description),diseaseId:t.uP(a.diseaseId),phenotypeIds:a.phenotypeIds?a.phenotypeIds:[],therapyIds:a.therapyIds?a.therapyIds:[],therapyInteractionType:t.uP(a.therapyInteractionType)},organizationId:r.organizationId,comment:r.comment}}},8287:(E,S,n)=>{n.r(S),n.d(S,{EvidenceReviseModule:()=>K});var t=n(6814),f=n(8603),o=n(2419),z=n(2524),r=n(684),a=n(95),m=n(8527),p=n(551),d=n(6254),l=n(2574),s=n(2392),y=n(4190),_=n(7921),I=n(7398),x=n(4223),e=n(5879),N=n(313),O=n(951),w=n(2606),M=n(3145),D=n(8178),u=n(8091),h=n(2616);function c(i,v){if(1&i&&(e.TgZ(0,"span",12)(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&i){const g=e.oxw(2).ngIf;e.xp6(2),e.Oqu(g.name)}}function C(i,v){if(1&i&&(e.TgZ(0,"span",13),e._UZ(1,"cvc-molecular-profile-tag",14),e.qZA()),2&i){const g=e.oxw(2).ngIf;e.xp6(1),e.Q6J("molecularProfile",g.molecularProfile)("enablePopover",!1)}}function A(i,v){1&i&&(e.TgZ(0,"nz-space",9),e.YNc(1,c,4,1,"span",10),e.YNc(2,C,2,2,"span",11),e.qZA())}function q(i,v){1&i&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function L(i,v){1&i&&(e.TgZ(0,"nz-row",15)(1,"div",16),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function R(i,v){if(1&i&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,A,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e.ALo(8,"entityColor"),e._uU(9),e.qZA(),e.TgZ(10,"nz-page-header-content")(11,"div",6),e.YNc(12,q,2,0,"div",7),e.ALo(13,"ngrxPush"),e.YNc(14,L,3,0,"ng-template",null,8,e.W1O),e.qZA()()(),e.BQk()),2&i){const g=v.ngIf,T=e.MAs(3),P=e.MAs(15),k=e.oxw();e.xp6(1),e.Q6J("displayName",g.name)("relationsTpl",T),e.xp6(6),e.Q6J("nzTwotoneColor",e.lcZ(8,6,"EvidenceItem")),e.xp6(2),e.hij(" ",g.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(13,8,k.isSignedIn$))("ngIfElse",P)}}let F=(()=>{class i{constructor(g,T,P){this.gql=g,this.route=T,this.viewerService=P,this.routeSub=this.route.params.subscribe(k=>{let $=this.gql.watch({evidenceId:+k.evidenceId}).valueChanges;this.loading$=$.pipe((0,x.j)("loading"),(0,_.O)(!0)),this.evidence$=$.pipe((0,x.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,x.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,x.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,x.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,I.U)(g=>g.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(N.pHu),e.Y36(y.gz),e.Y36(O.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[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,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(g,T){1&g&&(e.YNc(0,R,16,10,"ng-container",0),e.ALo(1,"async")),2&g&&e.Q6J("ngIf",e.lcZ(1,1,T.evidence$))},dependencies:[t.O5,y.lC,d.$O,d.u9,d.u5,l.NU,l.$1,a.t3,a.SK,p.Ls,s.ZU,w.p,M.I,D.u,t.Ov,u.fM,h.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{flex-wrap:nowrap;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})();var B=n(2962),b=n(4139),U=n(1986);let X=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[t.ez,a.Jb,B.vh,b.H0,l.zf,U.A]}),i})();var Z=n(75);function V(i,v){if(1&i&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&i){const g=e.oxw();e.xp6(1),e.Q6J("evidenceId",g.evidenceId)}}function j(i,v){1&i&&e._uU(0,"Loading Evidence...")}const J=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class i{constructor(g){this.route=g,this.routeParams$=this.route.params.subscribe(T=>{this.evidenceId=+T.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(y.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(g,T){if(1&g&&(e.YNc(0,V,2,1,"ng-container",0),e.YNc(1,j,1,0,"ng-template",null,1,e.W1O)),2&g){const P=e.MAs(2);e.Q6J("ngIf",T.evidenceId)("ngIfElse",P)}},dependencies:[t.O5,Z.r],encapsulation:2}),i})(),data:{breadcrumb:"Suggest Revision"}}]}];let W=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[y.Bz.forChild(J),X,y.Bz]}),i})(),K=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[t.ez,W,d.KJ,l.zf,a.Jb,p.PV,s.ZJ,l.zf,m.u,z.s,o.D,r.K,f.a]}),i})()},4139:(E,S,n)=>{n.d(S,{H0:()=>D});var t=n(5879),f=n(6814),o=n(9388);let D=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[o.vT,f.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/2907.99547d3b28cc5ead.js b/server/public/2907.802f04b81997e7c6.js similarity index 99% rename from server/public/2907.99547d3b28cc5ead.js rename to server/public/2907.802f04b81997e7c6.js index 8cb706719..c4d55327d 100644 --- a/server/public/2907.99547d3b28cc5ead.js +++ b/server/public/2907.802f04b81997e7c6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2907],{1218:(b,C,o)=>{o.d(C,{i:()=>z});var r=o(6814),h=o(4190),T=o(5695),c=o(7417),t=o(551),d=o(1855),p=o(2524),m=o(3640),u=o(3146),v=o(5879);let z=(()=>{class f{}return f.\u0275fac=function(s){return new(s||f)},f.\u0275mod=v.oAB({type:f}),f.\u0275inj=v.cJS({imports:[r.ez,h.Bz,m.mS,T.X,c.$6,t.PV,d.f,p.s,u.C]}),f})()},1106:(b,C,o)=>{o.d(C,{L:()=>l});var r=o(6814),h=o(4190),T=o(5695),c=o(551),t=o(95),d=o(6067),p=o(8125),m=o(2962),u=o(1022),v=o(5879);let z=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[r.ez,m.vh,t.Jb,p.q6,d.X,u.H]}),s})();var f=o(7417);let l=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[r.ez,h.Bz,T.X,c.PV,f.$6,z]}),s})()},7950:(b,C,o)=>{o.d(C,{x:()=>f});var r=o(6814),h=o(366),T=o(5695),c=o(7417),t=o(3396),d=o(1106),p=o(5956),m=o(7528),u=o(6061),v=o(3717),z=o(5879);let f=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[r.ez,T.X,c.$6,h.$,u.N,t.Q,d.L,p.U,m.Q,v.M]}),l})()},3717:(b,C,o)=>{o.d(C,{M:()=>f});var r=o(6814),h=o(4190),T=o(5695),c=o(2962),t=o(6067),d=o(8125),p=o(551),m=o(2524),u=o(5879);let v=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[r.ez,p.PV,c.vh,d.q6,m.s,t.X]}),l})();var z=o(7417);let f=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[r.ez,h.Bz,p.PV,T.X,z.$6,v]}),l})()},4010:(b,C,o)=>{o.d(C,{F:()=>T});var h=o(5879);let T=(()=>{class c{transform(d,p="display-string"){return void 0===d?"":"display-string"===p?function r(c){switch(c){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return c}}(d):`civic-${d.replace(/_/g,"").toLowerCase()}`}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275pipe=h.Yjl({name:"therapyInteractionEnumDisplay",type:c,pure:!0}),c})()},2057:(b,C,o)=>{o.r(C),o.d(C,{TherapiesModule:()=>Tn});var r=o(6814),h=o(4190),T=o(7921),c=o(4223),t=o(5879),d=o(313),p=o(551),m=o(6254),u=o(3317),v=o(3145),z=o(8091),f=o(2616);function l(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.therapyUrl),t.xp6(1),t.hij(" ",e.ncitId," ")}}function s(n,a){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,l,2,2,"cvc-link-tag",5),t.qZA()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngIf",e.therapyUrl)}}function y(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.YNc(7,s,2,1,"nz-page-header-extra",0),t.TgZ(8,"nz-page-header-content")(9,"div",4),t._UZ(10,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const e=a.ngIf;t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,4,"Therapy")),t.xp6(2),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",e.ncitId)}}let A=(()=>{class n{constructor(e,i){this.route=e,this.gql=i,this.routeSub=this.route.params.subscribe(g=>{this.therapyId=+g.therapyId,this.queryRef=this.gql.watch({therapyId:this.therapyId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,c.j)("loading"),(0,T.O)(!0)),this.therapy$=_.pipe((0,c.j)("data","therapy"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.gz),t.Y36(d.hVB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],[1,"content"],["tooltip","View in the NCIthesaurus",3,"href",4,"ngIf"],["tooltip","View in the NCIthesaurus",3,"href"]],template:function(e,i){1&e&&(t.YNc(0,y,11,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,i.therapy$))},dependencies:[r.O5,h.lC,p.Ls,m.$O,m.u9,m.u5,m.Jp,u.l,v.I,z.fM,f.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{flex-wrap:nowrap;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 Z,M=o(95),I=o(2392),S=o(2574),D=o(2840),Y=o(855),X=o(655),G=o(4632),E=o(1791),N=o(5619),w=o(8645),F=o(5676),$=o(3997),k=o(812),q=o(836),Q=o(2181),L=o(7398),tt=o(3620),nt=o(2460),B=o(2962),x=o(3740),O=o(5695),J=o(6109),et=o(6753),ot=o(4764),at=o(8516),it=o(4770),rt=o(3489),ct=o(9857),lt=o(4997);function st(n,a){}function pt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,st,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),i=t.MAs(8),g=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",i),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function gt(n,a){}const ht=function(n){return{height:n}};function dt(n,a){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,gt,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(6),g=t.MAs(8),_=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,ht,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",i)("nzExtra",g),t.xp6(1),t.Q6J("ngTemplateOutlet",_)}}function mt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",27),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("href",e.therapyUrl),t.xp6(1),t.hij(" ",e.ncitId," ")}}function ft(n,a){1&n&&t._uU(0,"--")}function _t(n,a){if(1&n&&(t.TgZ(0,"tr",22)(1,"td",18),t._UZ(2,"cvc-therapy-tag",23),t.qZA(),t.TgZ(3,"td"),t.YNc(4,mt,2,2,"cvc-link-tag",24),t.YNc(5,ft,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.TgZ(7,"td",26),t._uU(8),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.qZA()()),2&n){const e=a.$implicit,i=t.MAs(6);t.xp6(2),t.Q6J("therapy",e),t.xp6(2),t.Q6J("ngIf",e.ncitId)("ngIfElse",i),t.xp6(4),t.hij(" ",e.evidenceCount," "),t.xp6(2),t.hij(" ",e.assertionCount," ")}}const ut=function(){return[]},vt=function(){return{x:"680px",y:"800px"}},K=function(){return["descend","ascend",null]};function Ct(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.scrollEvent$.next(g))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.sortChange$.next(g))}),t.TgZ(7,"tr")(8,"th",12),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",13),t._uU(11," NCIt ID "),t.qZA(),t.TgZ(12,"th",14),t._UZ(13,"i",15),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",16),t._UZ(16,"i",17),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr")(19,"th",18)(20,"cvc-clearable-input-filter",19),t.NdJ("inputModelChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.nameFilter=g)})("inputModelChange",function(){t.CHM(e);const g=t.oxw();return t.KtG(g.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",19),t.NdJ("inputModelChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.ncitIdFilter=g)})("inputModelChange",function(){t.CHM(e);const g=t.oxw();return t.KtG(g.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",20)(24,"th",20),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,_t,11,5,"ng-template",21),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,23,e.row$)||t.DdM(31,ut))("nzLoading",!t.lcZ(3,25,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(32,vt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.NcitId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.EvidenceItemCount)("nzSortDirections",t.DdM(33,K))("nzSortFn",!0),t.xp6(3),t.Q6J("nzColumnKey",e.sortColumns.AssertionCount)("nzSortDirections",t.DdM(34,K))("nzSortFn",!0),t.xp6(5),t.Q6J("inputModel",e.nameFilter),t.xp6(2),t.Q6J("inputModel",e.ncitIdFilter)}}function Tt(n,a){}function zt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Tt,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function xt(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function yt(n,a){if(1&n&&(t.YNc(0,zt,2,1,"ng-container",28),t.YNc(1,xt,2,1,"ng-container",28),t.TgZ(2,"span",29),t._UZ(3,"cvc-table-counts",30),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function Mt(n,a){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function It(n,a){if(1&n&&(t.YNc(0,Mt,4,0,"nz-tag",31),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",32),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let R=((Z=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e){this.gql=a,this.cdr=e,this.truncateLongName=!1,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=d.HUC,this.noMoreRows$=new N.X(!1),this.scrollEvent$=new N.X("stop"),this.sortChange$=new w.x,this.filterChange$=new w.x,this.scrollIndex$=new w.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,c.j)("loading"),(0,$.x)(),(0,k.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,c.j)("loading"),(0,$.x)(),(0,q.T)(2)),this.connection$=this.result$.pipe((0,c.j)("data","therapies"),(0,Q.h)(F.ep)),this.row$=this.connection$.pipe((0,c.j)("edges"),(0,Q.h)(F.ep),(0,L.U)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,c.j)("pageInfo"),(0,Q.h)(F.ep)),this.sortChange$.pipe((0,E.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,G._)(a)})}),this.filterChange$.pipe((0,tt.b)(500),(0,E.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,L.U)(a=>"stop"!==a),(0,$.x)(),(0,E.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(a=>"bottom"===a),(0,nt.M)(this.pageInfo$),(0,L.U)(([a,e])=>e),(0,E.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,ncitId:this.ncitIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,e){return e?.id}}).\u0275fac=function(a){return new(a||Z)(t.Y36(d.vz2),t.Y36(t.sBO))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["cvc-therapies-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",truncateLongName:"truncateLongName",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],["nzWidth","400px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100%",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic-assertion"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"therapy"],[3,"href",4,"ngIf","ngIfElse"],["noNcit",""],["nzRight","","nzAlign","right"],[3,"href"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,e){if(1&a&&(t.YNc(0,pt,3,3,"ng-container",0),t.YNc(1,dt,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Ct,27,35,"ng-template",null,2,t.W1O),t.YNc(5,yt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,It,4,6,"ng-template",null,4,t.W1O)),2&a){const i=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",i)}},dependencies:[r.O5,r.tP,r.PC,Y.w,B.bd,p.Ls,x.N8,x.qD,x.Uo,x._C,x.Om,x.p0,x.$Z,x.zu,x.qn,x.UX,O.j,J.SY,et.D,ot.q,at.p,it.T,u.l,rt.H,ct.B,lt.y,z.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),Z);function Ot(n,a){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Therapy Attribute Docs "),t.qZA())}function Pt(n,a){1&n&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Therapy Curation Docs "),t.qZA())}R=(0,X.gn)([(0,E.c)()],R);let Zt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["therapies-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["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/therapy.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html#curating-therapies","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Therapies"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html#curating-therapies","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Therapies"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC Therapies are associated with Predictive Evidence Types, and describe the sensitivity, resistance or adverse response to treatment. Therapies may also be used to describe more general treatment types and regimes, such as FOLFOX or Radiation. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Ot,3,0,"a",8),t.YNc(15,Pt,3,0,"a",9),t.qZA()()(),t.TgZ(16,"div",10)(17,"div",11)(18,"div",12),t._UZ(19,"cvc-therapies-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Therapy")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[p.Ls,m.$O,m.u5,M.t3,M.SK,I.ZU,S.NU,S.$1,D.ix,Y.w,v.I,R,f.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{flex-wrap:nowrap;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 P=o(8125),V=o(1887),bt=o(6822),At=o(1826);function St(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.chebiDefinition," ")}}function Et(n,a){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Jt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,Et,2,1,"nz-tag",13),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",e.chemInfo.indications)}}function Ut(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",21),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzSpan",2),t.xp6(1),t.hij(" ",e.chemInfo.inchikey," ")}}function Dt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",22),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.firstApproval," ")}}function Qt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",23),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.chemblMoleculeType," ")}}function Bt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",24),t._uU(2),t.qZA(),t.TgZ(3,"nz-descriptions-item",25),t._uU(4),t.qZA(),t.BQk()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.code," "),t.xp6(2),t.hij(" ",e.description," ")}}function Nt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",26),t._uU(2),t.qZA(),t.TgZ(3,"nz-descriptions-item",27),t._uU(4),t.qZA(),t.BQk()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.code," "),t.xp6(2),t.hij(" ",e.description," ")}}function wt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",28),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.ebi.ac.uk/chebi/searchId.do?chebiId="+e.chemInfo.chebiId),t.xp6(1),t.hij(" ",e.chemInfo.chebiId," ")}}function Ft(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",29),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.ebi.ac.uk/chembl/compound_report_card/"+e.chemInfo.chemblId),t.xp6(1),t.hij(" ",e.chemInfo.chemblId," ")}}function $t(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",30),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://pubchem.ncbi.nlm.nih.gov/compound/"+e.chemInfo.pubchemCid),t.xp6(1),t.hij(" PubChem ",e.chemInfo.pubchemCid," ")}}function Lt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",31),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.pharmgkb.org/chemical/"+e.chemInfo.pharmgkbId),t.xp6(1),t.hij(" PHARMGKB ",e.chemInfo.pharmgkbId," ")}}function Rt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",32),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://mor.nlm.nih.gov/RxNav/search?searchBy=RXCUI&searchTerm="+e.chemInfo.rxnorm),t.xp6(1),t.hij(" RxNav ",e.chemInfo.rxnorm," ")}}function jt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://go.drugbank.com/drugs/"+e.chemInfo.drugbankId),t.xp6(1),t.hij(" DrugBank ",e.chemInfo.drugbankId," ")}}function Yt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",2)(2,"div",3)(3,"nz-row",4)(4,"nz-col",5)(5,"nz-descriptions",6)(6,"nz-descriptions-item",7),t.YNc(7,St,2,1,"ng-container",8),t.qZA(),t.TgZ(8,"nz-descriptions-item",9),t.YNc(9,Jt,3,1,"ng-container",8),t.qZA(),t.YNc(10,Ut,2,2,"nz-descriptions-item",10),t.qZA()(),t.TgZ(11,"nz-col",5)(12,"nz-descriptions",6),t.YNc(13,Dt,2,1,"nz-descriptions-item",11),t.YNc(14,Qt,2,1,"nz-descriptions-item",12),t.YNc(15,Bt,5,2,"ng-container",13),t.YNc(16,Nt,5,2,"ng-container",13),t.TgZ(17,"nz-descriptions-item",14)(18,"cvc-tag-list"),t.YNc(19,wt,2,2,"cvc-link-tag",15),t.YNc(20,Ft,2,2,"cvc-link-tag",16),t.YNc(21,$t,2,2,"cvc-link-tag",17),t.YNc(22,Lt,2,2,"cvc-link-tag",18),t.YNc(23,Rt,2,2,"cvc-link-tag",19),t.YNc(24,jt,2,2,"cvc-link-tag",20),t.qZA()()()()()()(),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(3),t.Q6J("nzGutter",8),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chebiDefinition)("ngIfElse",i),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.indications.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",e.chemInfo.inchikey),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.firstApproval),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chemblMoleculeType),t.xp6(1),t.Q6J("ngForOf",e.chemInfo.fdaEpcCodes),t.xp6(1),t.Q6J("ngForOf",e.chemInfo.fdaMoaCodes),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(2),t.Q6J("ngIf",e.chemInfo.chebiId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chemblId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.pubchemCid),t.xp6(1),t.Q6J("ngIf",e.chemInfo.pharmgkbId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.rxnorm),t.xp6(1),t.Q6J("ngIf",e.chemInfo.drugbankId)}}function Kt(n,a){1&n&&(t.TgZ(0,"span",34),t._uU(1,"Not Found"),t.qZA())}let Vt=(()=>{class n{constructor(){this.tabIndex=new N.X(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-my-chem-info"]],inputs:{chemInfo:"chemInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyChemInfo"],[1,"tab-padding"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","ChEBI Definition",3,"nzSpan"],[4,"ngIf","ngIfElse"],["nzTitle","Inidications",3,"nzSpan"],["nzTitle","InChIKey",3,"nzSpan",4,"ngIf"],["nzTitle","First Approval",4,"ngIf"],["nzTitle","Molecule Type",4,"ngIf"],[4,"ngFor","ngForOf"],["nzTitle","External Identifiers",3,"nzSpan"],["tooltip","View in ChEBI",3,"href",4,"ngIf"],["tooltip","View in ChEMBL",3,"href",4,"ngIf"],["tooltip","View in PubChem",3,"href",4,"ngIf"],["tooltip","View in PHARMGKB",3,"href",4,"ngIf"],["tooltip","View in RxNav",3,"href",4,"ngIf"],["tooltip","View in DrugBank",3,"href",4,"ngIf"],["nzTitle","InChIKey",3,"nzSpan"],["nzTitle","First Approval"],["nzTitle","Molecule Type"],["nzTitle","FDA EPC Code"],["nzTitle","FDA EPC Description"],["nzTitle","FDA MOA Code"],["nzTitle","FDA MOA Description"],["tooltip","View in ChEBI",3,"href"],["tooltip","View in ChEMBL",3,"href"],["tooltip","View in PubChem",3,"href"],["tooltip","View in PHARMGKB",3,"href"],["tooltip","View in RxNav",3,"href"],["tooltip","View in DrugBank",3,"href"],["nz-typography","","nzType","secondary"]],template:function(e,i){1&e&&(t.YNc(0,Yt,25,25,"ng-container",0),t.YNc(1,Kt,2,0,"ng-template",null,1,t.W1O)),2&e&&t.Q6J("ngIf",i.chemInfo)},dependencies:[r.sg,r.O5,B.bd,P.R7,P.uj,M.t3,M.SK,O.j,I.ZU,u.l,V.$],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),n})();var Ht=o(5869);function Wt(n,a){if(1&n&&(t.TgZ(0,"nz-tag",12),t._uU(1),t.ALo(2,"truncate"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("nzTooltipTitle",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Xt(n,a){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,Wt,3,4,"nz-tag",11),t.qZA()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",e.therapyAliases)}}function Gt(n,a){1&n&&(t.TgZ(0,"i",13),t._uU(1,"None specified"),t.qZA())}const kt=function(){return[8,16]};function qt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t._UZ(2,"cvc-my-chem-info",3),t.TgZ(3,"nz-col",4)(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),t.YNc(6,Xt,2,1,"cvc-tag-list",7),t.YNc(7,Gt,2,0,"ng-template",null,8,t.W1O),t.qZA()()(),t.TgZ(9,"nz-col",4),t._UZ(10,"cvc-evidence-table",9),t.qZA(),t.TgZ(11,"nz-col",4),t._UZ(12,"cvc-assertions-table",10),t.qZA()(),t.BQk()),2&n){const e=a.ngIf,i=t.MAs(8);t.xp6(1),t.Q6J("nzGutter",t.DdM(12,kt)),t.xp6(1),t.Q6J("chemInfo",e.myChemInfo),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",e.therapyAliases.length>0)("ngIfElse",i),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","Evidence associated with ",e.name,""),t.Q6J("therapyId",e.id),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","Assertions associated with ",e.name,""),t.Q6J("therapyId",e.id)}}const tn=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies"]],decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Zt,data:{breadcrumb:"Home"}},{path:":therapyId",component:A,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(e,i){this.route=e,this.gql=i,this.routeSub=this.route.params.subscribe(g=>{this.therapyId=+g.therapyId,this.queryRef=this.gql.watch({therapyId:this.therapyId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,c.j)("loading"),(0,T.O)(!0)),this.therapy$=_.pipe((0,c.j)("data","therapy"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.gz),t.Y36(d.Gnp))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies-summary"]],decls:3,vars:3,consts:[[1,"summary-container"],[4,"ngIf"],[3,"nzGutter"],[3,"chemInfo"],[3,"nzSpan"],["nzSize","small","nzLayout","vertical","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","1"],[4,"ngIf","ngIfElse"],["noAliases",""],["cvcHeight","400px",3,"therapyId","cvcTitle"],[3,"therapyId","cvcTitle"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-typography","","nzType","secondary"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,qt,13,13,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,i.therapy$)))},dependencies:[r.sg,r.O5,M.t3,M.SK,I.ZU,O.j,P.R7,P.uj,J.SY,V.$,bt.a,At.x,Vt,z.fM,Ht.W],styles:["[_nghost-%COMP%]{display:block}.summary-container[_ngcontent-%COMP%]{margin-top:8px}.top-table[_ngcontent-%COMP%]{max-height:500px}"]}),n})(),data:{breadcrumb:"Summary"}}]}]}];let nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[h.Bz.forChild(tn),h.Bz]}),n})();var H=o(2419),j=o(6067),U=o(2524);let en=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,h.Bz,p.PV,m.KJ,S.zf,P.q6,O.X,J.cg,j.X,H.D,U.s]}),n})();var on=o(7856),an=o(9175),rn=o(4742),cn=o(9312),ln=o(2989),sn=o(9154),pn=o(6061);let gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,D.sL,B.vh,p.PV,p.PV,x.HQ,O.X,J.cg,I.ZJ,U.s,an.n,rn.c,on.k,pn.N,j.X,sn.y,ln.T,cn.w]}),n})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,p.PV,m.KJ,M.Jb,I.ZJ,S.zf,D.sL,U.s,H.D,gn]}),n})();var dn=o(1403),mn=o(5895),fn=o(9333),_n=o(279),W=o(366),un=o(9382);let vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,un.we,x.HQ,B.vh,P.q6,M.Jb,O.X,I.ZJ,U.s,j.X,W.$]}),n})(),Cn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,M.Jb,S.zf,I.ZJ,D.sL,O.X,p.PV,P.q6,J.cg,W.$,fn.h,U.s,dn.Q,mn.s,vn,_n.s]}),n})(),Tn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,h.Bz,nn,hn,en,Cn]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2907],{1218:(b,C,o)=>{o.d(C,{i:()=>z});var r=o(6814),h=o(4190),T=o(5695),c=o(7417),t=o(551),d=o(1855),p=o(2524),m=o(3640),u=o(3146),v=o(5879);let z=(()=>{class f{}return f.\u0275fac=function(s){return new(s||f)},f.\u0275mod=v.oAB({type:f}),f.\u0275inj=v.cJS({imports:[r.ez,h.Bz,m.mS,T.X,c.$6,t.PV,d.f,p.s,u.C]}),f})()},1106:(b,C,o)=>{o.d(C,{L:()=>l});var r=o(6814),h=o(4190),T=o(5695),c=o(551),t=o(95),d=o(6067),p=o(8125),m=o(2962),u=o(4293),v=o(5879);let z=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[r.ez,m.vh,t.Jb,p.q6,d.X,u.H]}),s})();var f=o(7417);let l=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[r.ez,h.Bz,T.X,c.PV,f.$6,z]}),s})()},7950:(b,C,o)=>{o.d(C,{x:()=>f});var r=o(6814),h=o(366),T=o(5695),c=o(7417),t=o(3396),d=o(1106),p=o(5956),m=o(7528),u=o(6061),v=o(3717),z=o(5879);let f=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[r.ez,T.X,c.$6,h.$,u.N,t.Q,d.L,p.U,m.Q,v.M]}),l})()},3717:(b,C,o)=>{o.d(C,{M:()=>f});var r=o(6814),h=o(4190),T=o(5695),c=o(2962),t=o(6067),d=o(8125),p=o(551),m=o(2524),u=o(5879);let v=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[r.ez,p.PV,c.vh,d.q6,m.s,t.X]}),l})();var z=o(7417);let f=(()=>{class l{}return l.\u0275fac=function(y){return new(y||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[r.ez,h.Bz,p.PV,T.X,z.$6,v]}),l})()},4010:(b,C,o)=>{o.d(C,{F:()=>T});var h=o(5879);let T=(()=>{class c{transform(d,p="display-string"){return void 0===d?"":"display-string"===p?function r(c){switch(c){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return c}}(d):`civic-${d.replace(/_/g,"").toLowerCase()}`}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275pipe=h.Yjl({name:"therapyInteractionEnumDisplay",type:c,pure:!0}),c})()},2057:(b,C,o)=>{o.r(C),o.d(C,{TherapiesModule:()=>Tn});var r=o(6814),h=o(4190),T=o(7921),c=o(4223),t=o(5879),d=o(313),p=o(551),m=o(6254),u=o(3317),v=o(3145),z=o(8091),f=o(2616);function l(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.therapyUrl),t.xp6(1),t.hij(" ",e.ncitId," ")}}function s(n,a){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,l,2,2,"cvc-link-tag",5),t.qZA()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngIf",e.therapyUrl)}}function y(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.YNc(7,s,2,1,"nz-page-header-extra",0),t.TgZ(8,"nz-page-header-content")(9,"div",4),t._UZ(10,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const e=a.ngIf;t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,4,"Therapy")),t.xp6(2),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",e.ncitId)}}let A=(()=>{class n{constructor(e,i){this.route=e,this.gql=i,this.routeSub=this.route.params.subscribe(g=>{this.therapyId=+g.therapyId,this.queryRef=this.gql.watch({therapyId:this.therapyId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,c.j)("loading"),(0,T.O)(!0)),this.therapy$=_.pipe((0,c.j)("data","therapy"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.gz),t.Y36(d.hVB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],[1,"content"],["tooltip","View in the NCIthesaurus",3,"href",4,"ngIf"],["tooltip","View in the NCIthesaurus",3,"href"]],template:function(e,i){1&e&&(t.YNc(0,y,11,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,i.therapy$))},dependencies:[r.O5,h.lC,p.Ls,m.$O,m.u9,m.u5,m.Jp,u.l,v.I,z.fM,f.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{flex-wrap:nowrap;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 Z,M=o(95),I=o(2392),S=o(2574),D=o(2840),Y=o(855),X=o(655),G=o(4632),E=o(1791),N=o(5619),w=o(8645),F=o(5676),$=o(3997),k=o(812),q=o(836),Q=o(2181),L=o(7398),tt=o(3620),nt=o(2460),B=o(2962),x=o(3740),O=o(5695),J=o(6109),et=o(6753),ot=o(4764),at=o(8516),it=o(4770),rt=o(3489),ct=o(9857),lt=o(4997);function st(n,a){}function pt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,st,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),i=t.MAs(8),g=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",i),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function gt(n,a){}const ht=function(n){return{height:n}};function dt(n,a){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,gt,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(6),g=t.MAs(8),_=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,ht,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",i)("nzExtra",g),t.xp6(1),t.Q6J("ngTemplateOutlet",_)}}function mt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",27),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("href",e.therapyUrl),t.xp6(1),t.hij(" ",e.ncitId," ")}}function ft(n,a){1&n&&t._uU(0,"--")}function _t(n,a){if(1&n&&(t.TgZ(0,"tr",22)(1,"td",18),t._UZ(2,"cvc-therapy-tag",23),t.qZA(),t.TgZ(3,"td"),t.YNc(4,mt,2,2,"cvc-link-tag",24),t.YNc(5,ft,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.TgZ(7,"td",26),t._uU(8),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.qZA()()),2&n){const e=a.$implicit,i=t.MAs(6);t.xp6(2),t.Q6J("therapy",e),t.xp6(2),t.Q6J("ngIf",e.ncitId)("ngIfElse",i),t.xp6(4),t.hij(" ",e.evidenceCount," "),t.xp6(2),t.hij(" ",e.assertionCount," ")}}const ut=function(){return[]},vt=function(){return{x:"680px",y:"800px"}},K=function(){return["descend","ascend",null]};function Ct(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.scrollEvent$.next(g))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.sortChange$.next(g))}),t.TgZ(7,"tr")(8,"th",12),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",13),t._uU(11," NCIt ID "),t.qZA(),t.TgZ(12,"th",14),t._UZ(13,"i",15),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",16),t._UZ(16,"i",17),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr")(19,"th",18)(20,"cvc-clearable-input-filter",19),t.NdJ("inputModelChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.nameFilter=g)})("inputModelChange",function(){t.CHM(e);const g=t.oxw();return t.KtG(g.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",19),t.NdJ("inputModelChange",function(g){t.CHM(e);const _=t.oxw();return t.KtG(_.ncitIdFilter=g)})("inputModelChange",function(){t.CHM(e);const g=t.oxw();return t.KtG(g.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",20)(24,"th",20),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,_t,11,5,"ng-template",21),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,23,e.row$)||t.DdM(31,ut))("nzLoading",!t.lcZ(3,25,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(32,vt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.NcitId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.EvidenceItemCount)("nzSortDirections",t.DdM(33,K))("nzSortFn",!0),t.xp6(3),t.Q6J("nzColumnKey",e.sortColumns.AssertionCount)("nzSortDirections",t.DdM(34,K))("nzSortFn",!0),t.xp6(5),t.Q6J("inputModel",e.nameFilter),t.xp6(2),t.Q6J("inputModel",e.ncitIdFilter)}}function Tt(n,a){}function zt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Tt,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function xt(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function yt(n,a){if(1&n&&(t.YNc(0,zt,2,1,"ng-container",28),t.YNc(1,xt,2,1,"ng-container",28),t.TgZ(2,"span",29),t._UZ(3,"cvc-table-counts",30),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function Mt(n,a){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function It(n,a){if(1&n&&(t.YNc(0,Mt,4,0,"nz-tag",31),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",32),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let R=((Z=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e){this.gql=a,this.cdr=e,this.truncateLongName=!1,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=d.HUC,this.noMoreRows$=new N.X(!1),this.scrollEvent$=new N.X("stop"),this.sortChange$=new w.x,this.filterChange$=new w.x,this.scrollIndex$=new w.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,c.j)("loading"),(0,$.x)(),(0,k.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,c.j)("loading"),(0,$.x)(),(0,q.T)(2)),this.connection$=this.result$.pipe((0,c.j)("data","therapies"),(0,Q.h)(F.ep)),this.row$=this.connection$.pipe((0,c.j)("edges"),(0,Q.h)(F.ep),(0,L.U)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,c.j)("pageInfo"),(0,Q.h)(F.ep)),this.sortChange$.pipe((0,E.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,G._)(a)})}),this.filterChange$.pipe((0,tt.b)(500),(0,E.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,L.U)(a=>"stop"!==a),(0,$.x)(),(0,E.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(a=>"bottom"===a),(0,nt.M)(this.pageInfo$),(0,L.U)(([a,e])=>e),(0,E.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,ncitId:this.ncitIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,e){return e?.id}}).\u0275fac=function(a){return new(a||Z)(t.Y36(d.vz2),t.Y36(t.sBO))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["cvc-therapies-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",truncateLongName:"truncateLongName",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],["nzWidth","400px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100%",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic-assertion"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"therapy"],[3,"href",4,"ngIf","ngIfElse"],["noNcit",""],["nzRight","","nzAlign","right"],[3,"href"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,e){if(1&a&&(t.YNc(0,pt,3,3,"ng-container",0),t.YNc(1,dt,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Ct,27,35,"ng-template",null,2,t.W1O),t.YNc(5,yt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,It,4,6,"ng-template",null,4,t.W1O)),2&a){const i=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",i)}},dependencies:[r.O5,r.tP,r.PC,Y.w,B.bd,p.Ls,x.N8,x.qD,x.Uo,x._C,x.Om,x.p0,x.$Z,x.zu,x.qn,x.UX,O.j,J.SY,et.D,ot.q,at.p,it.T,u.l,rt.H,ct.B,lt.y,z.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),Z);function Ot(n,a){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Therapy Attribute Docs "),t.qZA())}function Pt(n,a){1&n&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Therapy Curation Docs "),t.qZA())}R=(0,X.gn)([(0,E.c)()],R);let Zt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["therapies-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["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/therapy.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html#curating-therapies","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Therapies"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/therapy.html#curating-therapies","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Therapies"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC Therapies are associated with Predictive Evidence Types, and describe the sensitivity, resistance or adverse response to treatment. Therapies may also be used to describe more general treatment types and regimes, such as FOLFOX or Radiation. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Ot,3,0,"a",8),t.YNc(15,Pt,3,0,"a",9),t.qZA()()(),t.TgZ(16,"div",10)(17,"div",11)(18,"div",12),t._UZ(19,"cvc-therapies-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Therapy")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[p.Ls,m.$O,m.u5,M.t3,M.SK,I.ZU,S.NU,S.$1,D.ix,Y.w,v.I,R,f.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{flex-wrap:nowrap;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 P=o(8125),V=o(1887),bt=o(6822),At=o(1826);function St(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.chebiDefinition," ")}}function Et(n,a){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Jt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,Et,2,1,"nz-tag",13),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",e.chemInfo.indications)}}function Ut(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",21),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzSpan",2),t.xp6(1),t.hij(" ",e.chemInfo.inchikey," ")}}function Dt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",22),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.firstApproval," ")}}function Qt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions-item",23),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.chemInfo.chemblMoleculeType," ")}}function Bt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",24),t._uU(2),t.qZA(),t.TgZ(3,"nz-descriptions-item",25),t._uU(4),t.qZA(),t.BQk()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.code," "),t.xp6(2),t.hij(" ",e.description," ")}}function Nt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",26),t._uU(2),t.qZA(),t.TgZ(3,"nz-descriptions-item",27),t._uU(4),t.qZA(),t.BQk()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.code," "),t.xp6(2),t.hij(" ",e.description," ")}}function wt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",28),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.ebi.ac.uk/chebi/searchId.do?chebiId="+e.chemInfo.chebiId),t.xp6(1),t.hij(" ",e.chemInfo.chebiId," ")}}function Ft(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",29),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.ebi.ac.uk/chembl/compound_report_card/"+e.chemInfo.chemblId),t.xp6(1),t.hij(" ",e.chemInfo.chemblId," ")}}function $t(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",30),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://pubchem.ncbi.nlm.nih.gov/compound/"+e.chemInfo.pubchemCid),t.xp6(1),t.hij(" PubChem ",e.chemInfo.pubchemCid," ")}}function Lt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",31),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://www.pharmgkb.org/chemical/"+e.chemInfo.pharmgkbId),t.xp6(1),t.hij(" PHARMGKB ",e.chemInfo.pharmgkbId," ")}}function Rt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",32),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://mor.nlm.nih.gov/RxNav/search?searchBy=RXCUI&searchTerm="+e.chemInfo.rxnorm),t.xp6(1),t.hij(" RxNav ",e.chemInfo.rxnorm," ")}}function jt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",33),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href","https://go.drugbank.com/drugs/"+e.chemInfo.drugbankId),t.xp6(1),t.hij(" DrugBank ",e.chemInfo.drugbankId," ")}}function Yt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",2)(2,"div",3)(3,"nz-row",4)(4,"nz-col",5)(5,"nz-descriptions",6)(6,"nz-descriptions-item",7),t.YNc(7,St,2,1,"ng-container",8),t.qZA(),t.TgZ(8,"nz-descriptions-item",9),t.YNc(9,Jt,3,1,"ng-container",8),t.qZA(),t.YNc(10,Ut,2,2,"nz-descriptions-item",10),t.qZA()(),t.TgZ(11,"nz-col",5)(12,"nz-descriptions",6),t.YNc(13,Dt,2,1,"nz-descriptions-item",11),t.YNc(14,Qt,2,1,"nz-descriptions-item",12),t.YNc(15,Bt,5,2,"ng-container",13),t.YNc(16,Nt,5,2,"ng-container",13),t.TgZ(17,"nz-descriptions-item",14)(18,"cvc-tag-list"),t.YNc(19,wt,2,2,"cvc-link-tag",15),t.YNc(20,Ft,2,2,"cvc-link-tag",16),t.YNc(21,$t,2,2,"cvc-link-tag",17),t.YNc(22,Lt,2,2,"cvc-link-tag",18),t.YNc(23,Rt,2,2,"cvc-link-tag",19),t.YNc(24,jt,2,2,"cvc-link-tag",20),t.qZA()()()()()()(),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(3),t.Q6J("nzGutter",8),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chebiDefinition)("ngIfElse",i),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.indications.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",e.chemInfo.inchikey),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",2),t.xp6(1),t.Q6J("ngIf",e.chemInfo.firstApproval),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chemblMoleculeType),t.xp6(1),t.Q6J("ngForOf",e.chemInfo.fdaEpcCodes),t.xp6(1),t.Q6J("ngForOf",e.chemInfo.fdaMoaCodes),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(2),t.Q6J("ngIf",e.chemInfo.chebiId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.chemblId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.pubchemCid),t.xp6(1),t.Q6J("ngIf",e.chemInfo.pharmgkbId),t.xp6(1),t.Q6J("ngIf",e.chemInfo.rxnorm),t.xp6(1),t.Q6J("ngIf",e.chemInfo.drugbankId)}}function Kt(n,a){1&n&&(t.TgZ(0,"span",34),t._uU(1,"Not Found"),t.qZA())}let Vt=(()=>{class n{constructor(){this.tabIndex=new N.X(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-my-chem-info"]],inputs:{chemInfo:"chemInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyChemInfo"],[1,"tab-padding"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","ChEBI Definition",3,"nzSpan"],[4,"ngIf","ngIfElse"],["nzTitle","Inidications",3,"nzSpan"],["nzTitle","InChIKey",3,"nzSpan",4,"ngIf"],["nzTitle","First Approval",4,"ngIf"],["nzTitle","Molecule Type",4,"ngIf"],[4,"ngFor","ngForOf"],["nzTitle","External Identifiers",3,"nzSpan"],["tooltip","View in ChEBI",3,"href",4,"ngIf"],["tooltip","View in ChEMBL",3,"href",4,"ngIf"],["tooltip","View in PubChem",3,"href",4,"ngIf"],["tooltip","View in PHARMGKB",3,"href",4,"ngIf"],["tooltip","View in RxNav",3,"href",4,"ngIf"],["tooltip","View in DrugBank",3,"href",4,"ngIf"],["nzTitle","InChIKey",3,"nzSpan"],["nzTitle","First Approval"],["nzTitle","Molecule Type"],["nzTitle","FDA EPC Code"],["nzTitle","FDA EPC Description"],["nzTitle","FDA MOA Code"],["nzTitle","FDA MOA Description"],["tooltip","View in ChEBI",3,"href"],["tooltip","View in ChEMBL",3,"href"],["tooltip","View in PubChem",3,"href"],["tooltip","View in PHARMGKB",3,"href"],["tooltip","View in RxNav",3,"href"],["tooltip","View in DrugBank",3,"href"],["nz-typography","","nzType","secondary"]],template:function(e,i){1&e&&(t.YNc(0,Yt,25,25,"ng-container",0),t.YNc(1,Kt,2,0,"ng-template",null,1,t.W1O)),2&e&&t.Q6J("ngIf",i.chemInfo)},dependencies:[r.sg,r.O5,B.bd,P.R7,P.uj,M.t3,M.SK,O.j,I.ZU,u.l,V.$],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),n})();var Ht=o(5869);function Wt(n,a){if(1&n&&(t.TgZ(0,"nz-tag",12),t._uU(1),t.ALo(2,"truncate"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("nzTooltipTitle",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Xt(n,a){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,Wt,3,4,"nz-tag",11),t.qZA()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",e.therapyAliases)}}function Gt(n,a){1&n&&(t.TgZ(0,"i",13),t._uU(1,"None specified"),t.qZA())}const kt=function(){return[8,16]};function qt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t._UZ(2,"cvc-my-chem-info",3),t.TgZ(3,"nz-col",4)(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),t.YNc(6,Xt,2,1,"cvc-tag-list",7),t.YNc(7,Gt,2,0,"ng-template",null,8,t.W1O),t.qZA()()(),t.TgZ(9,"nz-col",4),t._UZ(10,"cvc-evidence-table",9),t.qZA(),t.TgZ(11,"nz-col",4),t._UZ(12,"cvc-assertions-table",10),t.qZA()(),t.BQk()),2&n){const e=a.ngIf,i=t.MAs(8);t.xp6(1),t.Q6J("nzGutter",t.DdM(12,kt)),t.xp6(1),t.Q6J("chemInfo",e.myChemInfo),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",e.therapyAliases.length>0)("ngIfElse",i),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","Evidence associated with ",e.name,""),t.Q6J("therapyId",e.id),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","Assertions associated with ",e.name,""),t.Q6J("therapyId",e.id)}}const tn=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies"]],decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Zt,data:{breadcrumb:"Home"}},{path:":therapyId",component:A,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(e,i){this.route=e,this.gql=i,this.routeSub=this.route.params.subscribe(g=>{this.therapyId=+g.therapyId,this.queryRef=this.gql.watch({therapyId:this.therapyId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,c.j)("loading"),(0,T.O)(!0)),this.therapy$=_.pipe((0,c.j)("data","therapy"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(h.gz),t.Y36(d.Gnp))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-therapies-summary"]],decls:3,vars:3,consts:[[1,"summary-container"],[4,"ngIf"],[3,"nzGutter"],[3,"chemInfo"],[3,"nzSpan"],["nzSize","small","nzLayout","vertical","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","1"],[4,"ngIf","ngIfElse"],["noAliases",""],["cvcHeight","400px",3,"therapyId","cvcTitle"],[3,"therapyId","cvcTitle"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-typography","","nzType","secondary"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,qt,13,13,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,i.therapy$)))},dependencies:[r.sg,r.O5,M.t3,M.SK,I.ZU,O.j,P.R7,P.uj,J.SY,V.$,bt.a,At.x,Vt,z.fM,Ht.W],styles:["[_nghost-%COMP%]{display:block}.summary-container[_ngcontent-%COMP%]{margin-top:8px}.top-table[_ngcontent-%COMP%]{max-height:500px}"]}),n})(),data:{breadcrumb:"Summary"}}]}]}];let nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[h.Bz.forChild(tn),h.Bz]}),n})();var H=o(2419),j=o(6067),U=o(2524);let en=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,h.Bz,p.PV,m.KJ,S.zf,P.q6,O.X,J.cg,j.X,H.D,U.s]}),n})();var on=o(7856),an=o(9175),rn=o(4742),cn=o(9312),ln=o(2989),sn=o(9154),pn=o(6061);let gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,D.sL,B.vh,p.PV,p.PV,x.HQ,O.X,J.cg,I.ZJ,U.s,an.n,rn.c,on.k,pn.N,j.X,sn.y,ln.T,cn.w]}),n})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,p.PV,m.KJ,M.Jb,I.ZJ,S.zf,D.sL,U.s,H.D,gn]}),n})();var dn=o(1403),mn=o(5895),fn=o(9333),_n=o(279),W=o(366),un=o(9382);let vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,un.we,x.HQ,B.vh,P.q6,M.Jb,O.X,I.ZJ,U.s,j.X,W.$]}),n})(),Cn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,M.Jb,S.zf,I.ZJ,D.sL,O.X,p.PV,P.q6,J.cg,W.$,fn.h,U.s,dn.Q,mn.s,vn,_n.s]}),n})(),Tn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,h.Bz,nn,hn,en,Cn]}),n})()}}]); \ No newline at end of file diff --git a/server/public/2927.d14b37b1ff075dce.js b/server/public/2927.d14b37b1ff075dce.js deleted file mode 100644 index 3d793ec1e..000000000 --- a/server/public/2927.d14b37b1ff075dce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2927],{2927:(mt,C,o)=>{o.r(C),o.d(C,{AssertionsDetailModule:()=>_t});var c=o(6814),g=o(4190),d=o(2574),z=o(2392),f=o(6254),A=o(2840),x=o(5695),h=o(551),P=o(3903),_=o(95),D=o(2419),U=o(5725),w=o(7129),Y=o(3786),B=o(8380),E=o(4059),L=o(936),a=o(313),S=o(7921),F=o(9773),y=o(4223),V=o(8645),R=o(5619),e=o(5879),q=o(951),T=o(8091),b=o(855),j=o(1958),$=o(3145),G=o(327),W=o(1801),K=o(8295),X=o(4794),H=o(5162),k=o(5098),ee=o(1520),Q=o(2606),ne=o(2616);function te(n,s){if(1&n&&(e.TgZ(0,"span",8),e._uU(1,"Related to "),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e._uU(4,":"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(3),e.Oqu(t.name)}}function se(n,s){if(1&n&&(e.TgZ(0,"span",9),e._UZ(1,"cvc-molecular-profile-tag",10),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function ie(n,s){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,te,5,1,"span",6),e.YNc(2,se,2,2,"span",7),e.qZA())}const oe=function(n){return["/assertions",n,"revise"]};function ae(n,s){if(1&n&&(e.TgZ(0,"button",25,26),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),i=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,oe,i.id))("nzType",t.isActive?"primary":"default")}}function re(n,s){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ae,3,4,"button",24),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ce(n,s){if(1&n&&(e.TgZ(0,"span")(1,"button",27,26),e._uU(3," Flag "),e.qZA()()),2&n){const t=e.MAs(2);e.xp6(1),e.Q6J("nzType",t.isActive?"primary":"default")}}function le(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-entity-subscription-button",28),e.BQk()),2&n){const t=e.oxw(2).ngrxLet,i=e.oxw(2);e.xp6(1),e.Q6J("viewer",t)("subscribableId",i.subscribable.id)}}function ge(n,s){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,le,2,2,"ng-container",0),e.qZA()),2&n){const t=e.oxw().ngrxLet,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&i.subscribable)}}function pe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",30),e.NdJ("onReverted",function(r){e.CHM(t);const l=e.oxw(5);return e.KtG(l.onRevertCompleted(r))}),e.qZA()}if(2&n){const t=e.oxw(4).ngIf;e.Q6J("entityId",t.id)}}function ue(n,s){1&n&&(e.ynx(0),e.YNc(1,pe,1,1,"cvc-revert-entity-button",29),e.BQk())}function _e(n,s){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ue,2,0,"ng-container",0),e.qZA()),2&n){const t=e.oxw().ngrxLet,i=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function me(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",31),e.NdJ("nzOnClose",function(){const l=e.CHM(t).$implicit,u=e.oxw(3);return e.KtG(u.onErrorBannerClose(l))}),e.qZA()}2&n&&e.Q6J("nzMessage",s.$implicit)}function de(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",32),e.NdJ("nzOnClose",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.onSuccessBannerClose())}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function fe(n,s){1&n&&e._UZ(0,"nz-alert",33)}function ye(n,s){1&n&&e._UZ(0,"nz-alert",34)}function ve(n,s){if(1&n&&(e.TgZ(0,"nz-col",35),e._UZ(1,"cvc-contributor-avatars",36),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function ze(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"span")(1,"cvc-moderate-entity-buttons",38),e.NdJ("onModerated",function(r){e.CHM(t);const l=e.oxw(4);return e.KtG(l.onModerateCompleted(r))}),e.qZA()()}if(2&n){const t=e.oxw(2).ngrxLet,i=e.oxw().ngIf;e.xp6(1),e.Q6J("rejectOnly",!t.canModerate)("entityId",i.id)("viewer",t)}}function he(n,s){1&n&&e._UZ(0,"span")}function Ae(n,s){1&n&&(e.TgZ(0,"nz-space",37),e.YNc(1,ze,2,3,"span",15),e.YNc(2,he,1,0,"span",15),e.qZA())}const xe=function(n){return{flagged:n}};function Te(n,s){if(1&n&&(e.TgZ(0,"nz-page-header",11)(1,"nz-page-header-title",12),e._UZ(2,"i",13),e.ALo(3,"entityColor"),e._uU(4),e.qZA(),e.TgZ(5,"nz-page-header-extra")(6,"nz-space",14),e.YNc(7,re,2,1,"span",15),e.YNc(8,ce,4,1,"span",15),e.YNc(9,ge,2,1,"span",15),e.YNc(10,_e,2,1,"span",15),e.qZA()(),e.TgZ(11,"nz-page-header-content"),e.YNc(12,me,1,1,"nz-alert",16),e.YNc(13,de,1,1,"nz-alert",17),e.YNc(14,fe,1,0,"nz-alert",18),e.YNc(15,ye,1,0,"nz-alert",19),e.TgZ(16,"cvc-tab-navigation",20),e.ALo(17,"ngrxPush"),e.YNc(18,ve,2,1,"ng-template",null,21,e.W1O),e.qZA(),e.YNc(20,Ae,3,0,"nz-space",22),e.TgZ(21,"div",23),e._UZ(22,"router-outlet"),e.qZA()()()),2&n){const t=s.ngrxLet,i=e.oxw().ngIf,r=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(13,xe,i.flags.totalCount>0)),e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(3,9,"Assertion")),e.xp6(2),e.hij(" ",i.name," "),e.xp6(8),e.Q6J("ngForOf",r.errors),e.xp6(1),e.Q6J("ngIf",r.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==i.status),e.xp6(1),e.Q6J("ngIf","REJECTED"==i.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,11,r.tabs$)),e.xp6(4),e.Q6J("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function Ze(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,ie,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,Te,23,15,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=s.ngIf,i=e.MAs(3),r=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",i),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,r.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",r.viewer$)}}let Ce=(()=>{class n{constructor(t,i,r){this.gql=t,this.viewerService=i,this.route=r,this.destroy$=new V.x,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.errors=[],this.tabs$=new R.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({assertionId:+l.assertionId});let u=this.queryRef.valueChanges;this.loading$=u.pipe((0,y.j)("loading"),(0,S.O)(!0)),this.assertion$=u.pipe((0,y.j)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,y.j)("flags","totalCount")),this.assertion$.pipe((0,F.R)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(v=>"Revisions"===v.tabLabel?{badgeCount:m?.revisions.totalCount,...v}:"Comments"===v.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",...v}:v))}}),this.subscribable={id:+l.assertionId,entityType:a.o71.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onErrorBannerClose(t){this.errors=this.errors?.filter(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${t}.`,this.queryRef?.refetch())}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.A94),e.Y36(q.a),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],["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,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["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 Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical",4,"ngIf"],[1,"content"],["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"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"entityId","onReverted",4,"nzSpaceItem"],["entityType","Assertion",3,"entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","Assertion",3,"rejectOnly","entityId","viewer","onModerated"]],template:function(t,i){1&t&&(e.YNc(0,Ze,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.assertion$))},dependencies:[c.mk,c.sg,c.O5,g.lC,g.rH,g.Od,T.eJ,d.NU,d.$1,z.ZU,f.$O,f.u9,f.u5,f.Jp,A.ix,b.w,j.dQ,h.Ls,P.r,_.t3,$.I,G.o,W.Y,K.Q,X.e,H.m,k.P,ee.N,Q.p,T.fM,ne.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{flex-wrap:nowrap;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 Pe=o(1830);let Se=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,Pe.l]}),n})();var be=o(800);let Qe=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:a.OfU.Assertion}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertions-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",i.commentable)},dependencies:[be.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ie=o(2962),Je=o(4139),Me=o(183);let Ne=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,_.Jb,Ie.vh,d.zf,Je.H0,Me.M]}),n})();var Oe=o(7287);let De=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:a.sfv.Assertion,id:+this.route.snapshot.params.assertionId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",i.flaggable)},dependencies:[Oe.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ue=o(2534);let we=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,Ue.A]}),n})();var Ye=o(6126);let Be=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.aid=+i.assertionId,this.entityType=a.oRL.Assertion})}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertions-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,i){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",i.aid)("entityType",i.entityType)},dependencies:[Ye.a],encapsulation:2}),n})();var Z=o(8125),I=o(2524),Ee=o(2655),Le=o(8706),Fe=o(366),Ve=o(1403),Re=o(3396),qe=o(3043),J=o(6109),je=o(7364),M=o(8527),$e=o(9858),Ge=o(6061),We=o(8916);let Ke=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,_.Jb,d.zf,_.Jb,z.ZJ,A.sL,x.X,h.PV,Z.q6,J.cg,We.M,I.s,Ee.x,Le.W,Fe.$,Ge.N,Ve.Q,Re.Q,qe.y,je._,M.u,$e.r]}),n})();var Xe=o(2),N=o(3742),p=(()=>((p=p||{}).EVIDENCE="Evidence",p.ASSERTION="Assertion",p))();class He{constructor(s){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==p.ASSERTION?(0,N.o6)(a.uBv).map(t=>t):(0,N.o6)(a.kqt).map(t=>t),this.getSignificanceOptions=t=>this.validStates.get(t)?.significance||[],this.isValidSignificanceOption=(t,i)=>{const r=this.validStates.get(t);return!r||r.significance.includes(i)},this.getDirectionOptions=t=>this.validStates.get(t)?.entityDirection||[],this.isValidDirectionOption=(t,i)=>{const r=this.validStates.get(t);return!r||r.entityDirection.includes(i)},this.requiresDrug=t=>{const i=this.validStates.get(t);return void 0===i||i.requiresDrug},this.requiresDisease=t=>{const i=this.validStates.get(t);return void 0===i||i.requiresDisease},this.requiresAcmgCodes=t=>{const i=this.validStates.get(t);return void 0===i||i.requiresAcmgCodes},this.requiresAmpLevel=t=>{const i=this.validStates.get(t);return void 0===i||i.requiresAmpLevel},this.requiresClingenCodes=t=>{const i=this.validStates.get(t);return void 0===i||i.requiresClingenCodes},this.allowsFdaApproval=t=>{const i=this.validStates.get(t);return void 0===i||i.allowsFdaApproval},this.getOptionsFromEnums=t=>0===t.length?[]:t.map(i=>({value:i,label:(0,Xe.E)(i)})),this.entityName=s,this.pluralNames=new Map,this.pluralNames.set(p.ASSERTION,"Assertions"),this.pluralNames.set(p.EVIDENCE,"Evidence")}}class ke extends He{constructor(){super(p.ASSERTION),this.validStates.set(a.uBv.Predictive,{entityType:a.uBv.Predictive,significance:[a._3P.Sensitivityresponse,a._3P.Resistance,a._3P.AdverseResponse,a._3P.ReducedSensitivity,a._3P.Na],entityDirection:[a.mdl.Supports,a.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(a.uBv.Diagnostic,{entityType:a.uBv.Diagnostic,significance:[a._3P.Positive,a._3P.Negative],entityDirection:[a.mdl.Supports,a.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(a.uBv.Prognostic,{entityType:a.uBv.Prognostic,significance:[a._3P.BetterOutcome,a._3P.PoorOutcome,a._3P.Na],entityDirection:[a.mdl.Supports,a.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(a.uBv.Predisposing,{entityType:a.uBv.Predisposing,significance:[a._3P.Pathogenic,a._3P.LikelyPathogenic,a._3P.Benign,a._3P.LikelyBenign,a._3P.UncertainSignificance],entityDirection:[a.mdl.Supports],requiresDisease:!0,requiresDrug:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(a.uBv.Oncogenic,{entityType:a.uBv.Oncogenic,significance:[a._3P.Oncogenic,a._3P.LikelyOncogenic,a._3P.Benign,a._3P.LikelyBenign,a._3P.UncertainSignificance],entityDirection:[a.mdl.Supports],requiresDisease:!0,requiresDrug:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}var en=o(9183),nn=o(2384),tn=o(356),sn=o(1887),on=o(4770),an=o(6822),rn=o(9775),cn=o(3897),ln=o(8923),gn=o(5095),pn=o(3702),un=o(4010),_n=o(8004),mn=o(5573);function dn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-tag"),e._uU(2),e.ALo(3,"formatAmp"),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Oqu(e.xi3(3,1,t.ampLevel,"verbose"))}}function fn(n,s){1&n&&(e._uU(0," ACMG Codes "),e.TgZ(1,"span",44),e._UZ(2,"i",45),e.qZA())}function yn(n,s){if(1&n&&(e.TgZ(0,"nz-tag",47),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function vn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,yn,2,2,"nz-tag",46),e.qZA(),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("ngForOf",t.acmgCodes)}}function zn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"None provided"),e.qZA(),e.BQk())}function hn(n,s){if(1&n&&(e.ynx(0),e.YNc(1,vn,3,1,"ng-container",0),e.YNc(2,zn,3,0,"ng-container",0),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.acmgCodes.length>0),e.xp6(1),e.Q6J("ngIf",0==t.acmgCodes.length)}}function An(n,s){1&n&&(e._uU(0," ClinGen/CGC/VICC Codes "),e.TgZ(1,"span",44),e._UZ(2,"i",45),e.qZA())}function xn(n,s){if(1&n&&(e.TgZ(0,"nz-tag",47),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function Tn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,xn,2,2,"nz-tag",46),e.qZA(),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("ngForOf",t.clingenCodes)}}function Zn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"None provided"),e.qZA(),e.BQk())}function Cn(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Tn,3,1,"ng-container",0),e.YNc(2,Zn,3,0,"ng-container",0),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.clingenCodes.length>0),e.xp6(1),e.Q6J("ngIf",0==t.clingenCodes.length)}}function Pn(n,s){1&n&&(e.TgZ(0,"span",44),e._uU(1,"Not applicable"),e.qZA())}function Sn(n,s){if(1&n&&(e._uU(0," Submitted "),e.TgZ(1,"span",44),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.submissionEvent.createdAt),") ")}}function bn(n,s){if(1&n&&(e._uU(0," Accepted "),e.TgZ(1,"span",44),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.acceptanceEvent.createdAt),") ")}}function Qn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",25),e._uU(2," by "),e._UZ(3,"cvc-user-tag",26),e.qZA(),e.YNc(4,bn,4,3,"ng-template",null,48,e.W1O),e.BQk()),2&n){const t=e.MAs(5),i=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(2),e.Q6J("user",i.acceptanceEvent.originatingUser)}}function In(n,s){if(1&n&&(e._uU(0," Rejected "),e.TgZ(1,"span",44),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.rejectionEvent.createdAt),") ")}}function Jn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",25),e._uU(2),e.ALo(3,"timeAgo"),e._UZ(4,"cvc-user-tag",26),e.qZA(),e.YNc(5,In,4,3,"ng-template",null,49,e.W1O),e.BQk()),2&n){const t=e.MAs(6),i=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.hij(" by ",e.lcZ(3,3,i.rejectionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",i.rejectionEvent.originatingUser)}}function Mn(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Qn,6,2,"ng-container",0),e.YNc(2,Jn,7,5,"ng-container",0),e.BQk()),2&n){const t=e.oxw().ngIf,i=e.oxw();e.xp6(1),e.Q6J("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),e.xp6(1),e.Q6J("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Nn(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-disease-tag",50),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("disease",t.disease)}}function On(n,s){1&n&&(e.TgZ(0,"span",44),e._uU(1,"Not applicable"),e.qZA())}function Dn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function Un(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",52),e.BQk()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function wn(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,Un,2,1,"ng-container",51),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function Yn(n,s){if(1&n&&e.GkF(0,53),2&n){e.oxw(2);const t=e.MAs(3);e.Q6J("ngTemplateOutlet",t)}}function Bn(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-therapy-tag",54),e.BQk()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("therapy",t)}}function En(n,s){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Bn,2,1,"ng-container",51),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.therapies)}}function Ln(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",55)(1,"nz-tag"),e._UZ(2,"i",56),e.ALo(3,"therapyInteractionEnumDisplay"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Q6J("nzType",e.xi3(3,2,t.therapyInteractionType,"icon-name")),e.xp6(2),e.hij(" ",e.lcZ(5,5,t.therapyInteractionType)," ")}}function Fn(n,s){1&n&&e._UZ(0,"i",57),2&n&&e.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Vn(n,s){1&n&&e._UZ(0,"i",57),2&n&&e.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Rn(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function qn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"N/A"),e.qZA(),e.BQk())}function jn(n,s){if(1&n&&e.GkF(0,53),2&n){e.oxw(2);const t=e.MAs(3);e.Q6J("ngTemplateOutlet",t)}}function $n(n,s){1&n&&e._UZ(0,"i",57),2&n&&e.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Gn(n,s){1&n&&e._UZ(0,"i",57),2&n&&e.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Wn(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function Kn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"N/A"),e.qZA(),e.BQk())}function Xn(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.AsE("",t.nccnGuideline.name," (",t.nccnGuidelineVersion,")")}}function Hn(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",44),e._uU(2,"None Provided"),e.qZA(),e.BQk())}const kn=function(){return[8,16]},O=function(){return[8,8]},et=function(){return{xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}},nt=function(){return{xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}},tt=function(){return{xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}};function st(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6)(7,"p",7),e._uU(8),e.qZA()(),e.TgZ(9,"nz-descriptions-item",8)(10,"p",9),e._uU(11),e.qZA()()()(),e.TgZ(12,"nz-col",4)(13,"nz-descriptions",10)(14,"nz-descriptions-item",11),e._UZ(15,"cvc-attribute-tag",12),e.ALo(16,"enumTooltip"),e.qZA(),e.TgZ(17,"nz-descriptions-item",13),e._UZ(18,"cvc-attribute-tag",14),e.ALo(19,"enumTooltip"),e.qZA(),e.TgZ(20,"nz-descriptions-item",15),e._UZ(21,"cvc-attribute-tag",14),e.ALo(22,"enumTooltip"),e.qZA(),e.TgZ(23,"nz-descriptions-item",16),e._UZ(24,"cvc-attribute-tag",14),e.ALo(25,"enumTooltip"),e.qZA(),e.TgZ(26,"nz-descriptions-item",17),e.YNc(27,dn,4,4,"ng-container",18),e.qZA(),e.TgZ(28,"nz-descriptions-item",19),e.YNc(29,fn,3,0,"ng-template",null,20,e.W1O),e.YNc(31,hn,3,2,"ng-container",18),e.qZA(),e.TgZ(32,"nz-descriptions-item",19),e.YNc(33,An,3,0,"ng-template",null,21,e.W1O),e.YNc(35,Cn,3,2,"ng-container",18),e.qZA(),e.YNc(36,Pn,2,0,"ng-template",null,22,e.W1O),e.qZA()()()(),e.TgZ(38,"nz-col",4)(39,"nz-row",3)(40,"nz-col",4)(41,"nz-descriptions",5)(42,"nz-descriptions-item",23),e._UZ(43,"cvc-status-tag",24),e.qZA(),e.TgZ(44,"nz-descriptions-item",25),e._uU(45," by "),e._UZ(46,"cvc-user-tag",26),e.qZA(),e.YNc(47,Sn,4,3,"ng-template",null,27,e.W1O),e.YNc(49,Mn,3,2,"ng-container",0),e.qZA()(),e.TgZ(50,"nz-col",4)(51,"nz-descriptions",10)(52,"nz-descriptions-item",28),e._UZ(53,"cvc-molecular-profile-tag",29),e.qZA(),e.TgZ(54,"nz-descriptions-item",30),e._UZ(55,"cvc-mp-tag-name",31),e.qZA(),e.TgZ(56,"nz-descriptions-item",32),e.YNc(57,Nn,2,1,"ng-container",0),e.YNc(58,On,2,0,"span",33),e.qZA(),e.TgZ(59,"nz-descriptions-item",25),e.YNc(60,Dn,3,0,"ng-container",0),e.YNc(61,wn,3,1,"ng-container",0),e.qZA(),e.TgZ(62,"nz-descriptions-item",25),e.ynx(63,34),e.YNc(64,Yn,1,1,"ng-template",35),e.YNc(65,En,2,1,"ng-template",36),e.BQk(),e.qZA(),e.YNc(66,Ln,6,7,"nz-descriptions-item",37),e.TgZ(67,"nz-descriptions-item",38),e.YNc(68,Fn,1,3,"i",39),e.YNc(69,Vn,1,3,"i",39),e.YNc(70,Rn,3,3,"ng-container",0),e.YNc(71,qn,3,0,"ng-container",0),e.YNc(72,jn,1,1,"ng-container",40),e.qZA(),e.TgZ(73,"nz-descriptions-item",41),e.YNc(74,$n,1,3,"i",39),e.YNc(75,Gn,1,3,"i",39),e.YNc(76,Wn,3,3,"ng-container",0),e.YNc(77,Kn,3,0,"ng-container",0),e.qZA(),e.TgZ(78,"nz-descriptions-item",42),e.YNc(79,Xn,2,2,"ng-container",0),e.YNc(80,Hn,3,0,"ng-container",0),e.qZA()()()()(),e.TgZ(81,"nz-col",4),e._UZ(82,"cvc-evidence-table",43),e.qZA()(),e.BQk()),2&n){const t=s.ngIf,i=e.MAs(30),r=e.MAs(34),l=e.MAs(48),u=e.oxw(),m=e.MAs(3);e.xp6(1),e.Q6J("nzGutter",e.DdM(79,kn)),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(80,O)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",1),e.xp6(3),e.Oqu(t.summary),e.xp6(2),e.Q6J("nzEllipsisRows",6),e.xp6(1),e.hij(" ",t.description," "),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(81,et)),e.xp6(2),e.Q6J("cvcAttrValue",t.assertionType)("nzTooltipTitle",e.xi3(16,63,t.assertionType,"assertionType")),e.xp6(3),e.Q6J("cvcAttrValue",t.assertionDirection)("nzTooltipTitle",e.gM2(19,66,t.assertionDirection,"assertionDirection",t.assertionType,"Assertion")),e.xp6(3),e.Q6J("cvcAttrValue",t.significance)("nzTooltipTitle",e.gM2(22,71,t.significance,"significance",t.assertionType,"Assertion")),e.xp6(3),e.Q6J("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.xi3(25,76,t.variantOrigin,"variantOrigin")),e.xp6(3),e.Q6J("ngIf",u.assertionRules.requiresAmpLevel(t.assertionType))("ngIfElse",m),e.xp6(1),e.Q6J("nzSpan",2)("nzTitle",i),e.xp6(3),e.Q6J("ngIf",u.assertionRules.requiresAcmgCodes(t.assertionType))("ngIfElse",m),e.xp6(1),e.Q6J("nzSpan",2)("nzTitle",r),e.xp6(3),e.Q6J("ngIf",u.assertionRules.requiresClingenCodes(t.assertionType))("ngIfElse",m),e.xp6(3),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(82,O)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(83,nt)),e.xp6(2),e.Q6J("status",t.status),e.xp6(1),e.Q6J("nzTitle",l),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(3),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(84,tt)),e.xp6(2),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!0),e.xp6(2),e.Q6J("nameSegments",t.molecularProfile.parsedName),e.xp6(2),e.Q6J("ngIf",t.disease&&t.disease.name),e.xp6(1),e.Q6J("ngIf",!(null!=t.disease&&t.disease.name)),e.xp6(1),e.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",0===t.phenotypes.length),e.xp6(1),e.Q6J("ngIf",t.phenotypes.length>0),e.xp6(1),e.Q6J("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.xp6(1),e.Q6J("ngPlural",t.therapies.length),e.xp6(3),e.Q6J("ngIf",t.therapyInteractionType),e.xp6(2),e.Q6J("ngIf",!0===t.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",!1===t.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",t.regulatoryApprovalLastUpdated),e.xp6(1),e.Q6J("ngIf",void 0===t.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",void 0===t.regulatoryApproval),e.xp6(2),e.Q6J("ngIf",!0===t.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",!1===t.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",t.fdaCompanionTestLastUpdated),e.xp6(1),e.Q6J("ngIf",void 0===t.fdaCompanionTest),e.xp6(2),e.Q6J("ngIf",t.nccnGuideline),e.xp6(1),e.Q6J("ngIf",!t.nccnGuideline),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.MGl("cvcTitle","",t.name," Evidence"),e.Q6J("assertionId",t.id)}}function it(n,s){1&n&&e._UZ(0,"cvc-empty-value",58)}function ot(n,s){1&n&&e._UZ(0,"cvc-empty-value",59)}let at=(()=>{class n{constructor(t,i){var r;if(this.gql=t,this.route=i,this.assertionRules=new ke,this.statusValues=a.RTy,null==(r=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:r});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,y.j)("loading"),(0,S.O)(!0)),this.assertion$=l.pipe((0,y.j)("data","assertion")),this.subscribable={entityType:a.o71.Assertion,id:r}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.ejK),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",1,"summary-block",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","assertionType","nz-tooltip","","iconPropertyType","type",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["submittedTitle",""],["nzTitle","Molecular Profile Name"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline"],[3,"assertionId","cvcTitle"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nz-tooltip","","nzTooltipTitle","All codes are reviewed during acceptance. Absence of a code implies it is not met."],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["acceptedTitle",""],["rejectedTitle",""],[3,"disease"],[4,"ngFor","ngForOf"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["nz-icon","",1,"attribute-icon",3,"nzType"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,i){1&t&&(e.YNc(0,st,83,85,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,it,1,0,"ng-template",null,1,e.W1O),e.YNc(4,ot,1,0,"ng-template",null,2,e.W1O)),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.assertion$))},dependencies:[c.sg,c.O5,c.tP,c.iq,c.zE,_.t3,_.SK,z.ZU,b.w,x.j,h.Ls,Z.R7,Z.uj,J.SY,en.P,nn.h,tn.I,sn.$,on.T,an.a,rn.n,cn.i,ln.z,Q.p,gn.C,c.rS,T.fM,pn.t,un.F,_n.v,mn.x],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]}),n})();var rt=o(7441);let ct=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:a.o71.Assertion}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",i.subscribable)},dependencies:[rt.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var lt=o(9894);let gt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,lt.t]}),n})();const pt=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:at,data:{breadcrumb:"Summary"}},{path:"events",component:ct,data:{breadcrumb:"Events"}},{path:"comments",component:Qe,data:{breadcrumb:"Comments"}},{path:"revisions",component:Be,data:{breadcrumb:"Revisions"}},{path:"flags",component:De,data:{breadcrumb:"Flags"}}]}];let ut=(()=>{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(pt),Ke,Se,we,Ne,gt,g.Bz]}),n})(),_t=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[c.ez,ut,g.Bz,d.zf,z.ZJ,f.KJ,A.sL,x.X,h.PV,P.L,_.Jb,I.s,D.D,U.m,w.g,Y.G,B.P,E.c,L.Z,M.u]}),n})()}}]); \ No newline at end of file diff --git a/server/public/3180.eebfe5e56e4343d4.js b/server/public/3180.99319959b80b12cb.js similarity index 60% rename from server/public/3180.eebfe5e56e4343d4.js rename to server/public/3180.99319959b80b12cb.js index 4276135c7..4d40aeb49 100644 --- a/server/public/3180.eebfe5e56e4343d4.js +++ b/server/public/3180.99319959b80b12cb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3180],{1218:(T,C,n)=>{n.d(C,{i:()=>E});var l=n(6814),d=n(4190),e=n(5695),c=n(7417),f=n(551),g=n(1855),m=n(2524),P=n(3640),z=n(3146),u=n(5879);let E=(()=>{class p{}return p.\u0275fac=function(t){return new(t||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[l.ez,d.Bz,P.mS,e.X,c.$6,f.PV,g.f,m.s,z.C]}),p})()},1106:(T,C,n)=>{n.d(C,{L:()=>s});var l=n(6814),d=n(4190),e=n(5695),c=n(551),f=n(95),g=n(6067),m=n(8125),P=n(2962),z=n(1022),u=n(5879);let E=(()=>{class t{}return t.\u0275fac=function(O){return new(O||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[l.ez,P.vh,f.Jb,m.q6,g.X,z.H]}),t})();var p=n(7417);let s=(()=>{class t{}return t.\u0275fac=function(O){return new(O||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[l.ez,d.Bz,e.X,c.PV,p.$6,E]}),t})()},7950:(T,C,n)=>{n.d(C,{x:()=>p});var l=n(6814),d=n(366),e=n(5695),c=n(7417),f=n(3396),g=n(1106),m=n(5956),P=n(7528),z=n(6061),u=n(3717),E=n(5879);let p=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=E.oAB({type:s}),s.\u0275inj=E.cJS({imports:[l.ez,e.X,c.$6,d.$,z.N,f.Q,g.L,m.U,P.Q,u.M]}),s})()},3717:(T,C,n)=>{n.d(C,{M:()=>p});var l=n(6814),d=n(4190),e=n(5695),c=n(2962),f=n(6067),g=n(8125),m=n(551),P=n(2524),z=n(5879);let u=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=z.oAB({type:s}),s.\u0275inj=z.cJS({imports:[l.ez,m.PV,c.vh,g.q6,P.s,f.X]}),s})();var E=n(7417);let p=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=z.oAB({type:s}),s.\u0275inj=z.cJS({imports:[l.ez,d.Bz,m.PV,e.X,E.$6,u]}),s})()},4010:(T,C,n)=>{n.d(C,{F:()=>e});var d=n(5879);let e=(()=>{class c{transform(g,m="display-string"){return void 0===g?"":"display-string"===m?function l(c){switch(c){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return c}}(g):`civic-${g.replace(/_/g,"").toLowerCase()}`}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275pipe=d.Yjl({name:"therapyInteractionEnumDisplay",type:c,pure:!0}),c})()},6534:(T,C,n)=>{n.r(C),n.d(C,{EvidenceModule:()=>Z});var l=n(6814),d=n(4190),e=n(2419),c=n(6254),f=n(95),g=n(551),m=n(1403),P=n(5956),z=n(6494),u=n(2840),E=n(2574),p=n(2392),s=n(2524),t=n(5879);let M=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[l.ez,d.Bz,u.sL,z.m,c.KJ,f.Jb,g.PV,E.zf,p.ZJ,s.s,e.D,P.U,m.Q]}),o})();var O=n(951),D=n(8091),x=n(855),A=n(1958),I=n(3145),B=n(6822),U=n(2616);function L(o,v){1&o&&(t.TgZ(0,"button",15),t._UZ(1,"i",16),t._uU(2," Submit New Evidence "),t.qZA())}function S(o,v){if(1&o&&(t.ynx(0),t.YNc(1,L,3,0,"button",14),t.BQk()),2&o){const h=v.ngrxLet;t.xp6(1),t.Q6J("ngIf",h.signedIn)}}function i(o,v){if(1&o&&t.YNc(0,S,2,1,"ng-container",13),2&o){const h=t.oxw();t.Q6J("ngrxLet",h.viewer$)}}function _(o,v){1&o&&(t.TgZ(0,"a",17),t._UZ(1,"i",18),t._uU(2," View Evidence Model Docs "),t.qZA())}function a(o,v){1&o&&(t.TgZ(0,"a",19),t._UZ(1,"i",18),t._uU(2," View Evidence Curation Docs "),t.qZA())}function r(o,v){1&o&&(t.TgZ(0,"nz-row")(1,"div",20)(2,"div",21),t._UZ(3,"cvc-evidence-table",22),t.qZA()()()),2&o&&(t.xp6(1),t.Q6J("nzSpan",24))}const R=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(h){return new(h||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-evidence"]],decls:1,vars:0,template:function(h,W){1&h&&t._UZ(0,"router-outlet")},dependencies:[d.lC],encapsulation:2}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(h){this.viewerService=h,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(h){return new(h||o)(t.Y36(O.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["evidence-home"]],decls:19,vars:6,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"],["nzFlex","0 1 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(h,W){if(1&h&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,i,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Evidence Items"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," 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. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,_,3,0,"a",10),t.YNc(17,a,3,0,"a",11),t.qZA()()(),t.YNc(18,r,4,1,"nz-row",12),t.qZA()()),2&h){const V=t.MAs(2);t.Q6J("actionsTpl",V),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"EvidenceItem")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("ngIf",W.tableView)}},dependencies:[l.O5,d.rH,D.eJ,u.ix,x.w,A.dQ,c.$O,c.u5,f.t3,f.SK,g.Ls,E.NU,E.$1,p.ZU,I.I,B.a,U.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{flex-wrap:nowrap;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:()=>Promise.all([n.e(6607),n.e(8592),n.e(9803)]).then(n.bind(n,9803)).then(o=>o.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(4872),n.e(5556),n.e(2602),n.e(7889),n.e(3577),n.e(7856),n.e(1364),n.e(8245),n.e(4503),n.e(5756),n.e(8592),n.e(7167)]).then(n.bind(n,9814)).then(o=>o.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(8592),n.e(3266)]).then(n.bind(n,8287)).then(o=>o.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let K=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.Bz.forChild(R),M,d.Bz]}),o})(),Z=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[l.ez,K]}),o})()},6494:(T,C,n)=>{n.d(C,{i:()=>L,m:()=>S});var l=n(655),d=n(6028),e=n(5879),c=n(6223),f=n(8645),g=n(2438),m=n(9773),P=n(874),z=n(7754),u=n(4300),E=n(9388),p=n(6814),s=n(1958),t=n(551),M=n(8324);const O=["switchElement"];function D(i,_){1&i&&e._UZ(0,"span",8)}function x(i,_){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzCheckedChildren)}}function A(i,_){if(1&i&&(e.ynx(0),e.YNc(1,x,2,1,"ng-container",9),e.BQk()),2&i){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzCheckedChildren)}}function I(i,_){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzUnCheckedChildren)}}function B(i,_){if(1&i&&e.YNc(0,I,2,1,"ng-container",9),2&i){const a=e.oxw();e.Q6J("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let L=(()=>{class i{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,r,y,N,R,K){this.nzConfigService=a,this.host=r,this.ngZone=y,this.cdr=N,this.focusMonitor=R,this.directionality=K,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.nzId=null,this.dir="ltr",this.destroy$=new f.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,m.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.host.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,g.R)(this.switchElement.nativeElement,"keydown").pipe((0,m.R)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=a;r!==d.oh&&r!==d.SV&&r!==d.L_&&r!==d.K5||(a.preventDefault(),this.ngZone.run(()=>{r===d.oh?this.updateValue(!1):r===d.SV?this.updateValue(!0):(r===d.L_||r===d.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,m.R)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return i.\u0275fac=function(a){return new(a||i)(e.Y36(P.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(u.tE),e.Y36(E.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-switch"]],viewQuery:function(a,r){if(1&a&&e.Gf(O,7),2&a){let y;e.iGM(y=e.CRH())&&(r.switchElement=y.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[e._Bn([{provide:c.JU,useExisting:(0,e.Gpc)(()=>i),multi:!0}])],decls:9,vars:16,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(a,r){if(1&a&&(e.TgZ(0,"button",0,1)(2,"span",2),e.YNc(3,D,1,0,"span",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,A,2,1,"ng-container",5),e.YNc(6,B,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&a){const y=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.uIk("id",r.nzId),e.xp6(3),e.Q6J("ngIf",r.nzLoading),e.xp6(2),e.Q6J("ngIf",r.isChecked)("ngIfElse",y)}},dependencies:[p.O5,s.dQ,t.Ls,M.f],encapsulation:2,changeDetection:0}),(0,l.gn)([(0,z.yF)()],i.prototype,"nzLoading",void 0),(0,l.gn)([(0,z.yF)()],i.prototype,"nzDisabled",void 0),(0,l.gn)([(0,z.yF)()],i.prototype,"nzControl",void 0),(0,l.gn)([(0,P.oS)()],i.prototype,"nzSize",void 0),i})(),S=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[E.vT,p.ez,s.vG,t.PV,M.T]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3180],{1218:(T,C,n)=>{n.d(C,{i:()=>E});var l=n(6814),d=n(4190),e=n(5695),c=n(7417),f=n(551),g=n(1855),m=n(2524),P=n(3640),z=n(3146),u=n(5879);let E=(()=>{class p{}return p.\u0275fac=function(t){return new(t||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[l.ez,d.Bz,P.mS,e.X,c.$6,f.PV,g.f,m.s,z.C]}),p})()},1106:(T,C,n)=>{n.d(C,{L:()=>s});var l=n(6814),d=n(4190),e=n(5695),c=n(551),f=n(95),g=n(6067),m=n(8125),P=n(2962),z=n(4293),u=n(5879);let E=(()=>{class t{}return t.\u0275fac=function(O){return new(O||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[l.ez,P.vh,f.Jb,m.q6,g.X,z.H]}),t})();var p=n(7417);let s=(()=>{class t{}return t.\u0275fac=function(O){return new(O||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({imports:[l.ez,d.Bz,e.X,c.PV,p.$6,E]}),t})()},7950:(T,C,n)=>{n.d(C,{x:()=>p});var l=n(6814),d=n(366),e=n(5695),c=n(7417),f=n(3396),g=n(1106),m=n(5956),P=n(7528),z=n(6061),u=n(3717),E=n(5879);let p=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=E.oAB({type:s}),s.\u0275inj=E.cJS({imports:[l.ez,e.X,c.$6,d.$,z.N,f.Q,g.L,m.U,P.Q,u.M]}),s})()},3717:(T,C,n)=>{n.d(C,{M:()=>p});var l=n(6814),d=n(4190),e=n(5695),c=n(2962),f=n(6067),g=n(8125),m=n(551),P=n(2524),z=n(5879);let u=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=z.oAB({type:s}),s.\u0275inj=z.cJS({imports:[l.ez,m.PV,c.vh,g.q6,P.s,f.X]}),s})();var E=n(7417);let p=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=z.oAB({type:s}),s.\u0275inj=z.cJS({imports:[l.ez,d.Bz,m.PV,e.X,E.$6,u]}),s})()},4010:(T,C,n)=>{n.d(C,{F:()=>e});var d=n(5879);let e=(()=>{class c{transform(g,m="display-string"){return void 0===g?"":"display-string"===m?function l(c){switch(c){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return c}}(g):`civic-${g.replace(/_/g,"").toLowerCase()}`}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275pipe=d.Yjl({name:"therapyInteractionEnumDisplay",type:c,pure:!0}),c})()},6534:(T,C,n)=>{n.r(C),n.d(C,{EvidenceModule:()=>Z});var l=n(6814),d=n(4190),e=n(2419),c=n(6254),f=n(95),g=n(551),m=n(1403),P=n(5956),z=n(6494),u=n(2840),E=n(2574),p=n(2392),s=n(2524),t=n(5879);let M=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[l.ez,d.Bz,u.sL,z.m,c.KJ,f.Jb,g.PV,E.zf,p.ZJ,s.s,e.D,P.U,m.Q]}),o})();var O=n(951),D=n(8091),x=n(855),A=n(1958),I=n(3145),B=n(6822),U=n(2616);function L(o,v){1&o&&(t.TgZ(0,"button",15),t._UZ(1,"i",16),t._uU(2," Submit New Evidence "),t.qZA())}function S(o,v){if(1&o&&(t.ynx(0),t.YNc(1,L,3,0,"button",14),t.BQk()),2&o){const h=v.ngrxLet;t.xp6(1),t.Q6J("ngIf",h.signedIn)}}function i(o,v){if(1&o&&t.YNc(0,S,2,1,"ng-container",13),2&o){const h=t.oxw();t.Q6J("ngrxLet",h.viewer$)}}function _(o,v){1&o&&(t.TgZ(0,"a",17),t._UZ(1,"i",18),t._uU(2," View Evidence Model Docs "),t.qZA())}function a(o,v){1&o&&(t.TgZ(0,"a",19),t._UZ(1,"i",18),t._uU(2," View Evidence Curation Docs "),t.qZA())}function r(o,v){1&o&&(t.TgZ(0,"nz-row")(1,"div",20)(2,"div",21),t._UZ(3,"cvc-evidence-table",22),t.qZA()()()),2&o&&(t.xp6(1),t.Q6J("nzSpan",24))}const R=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(h){return new(h||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-evidence"]],decls:1,vars:0,template:function(h,W){1&h&&t._UZ(0,"router-outlet")},dependencies:[d.lC],encapsulation:2}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(h){this.viewerService=h,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(h){return new(h||o)(t.Y36(O.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["evidence-home"]],decls:19,vars:6,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"],["nzFlex","0 1 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(h,W){if(1&h&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,i,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Evidence Items"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," 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. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,_,3,0,"a",10),t.YNc(17,a,3,0,"a",11),t.qZA()()(),t.YNc(18,r,4,1,"nz-row",12),t.qZA()()),2&h){const V=t.MAs(2);t.Q6J("actionsTpl",V),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"EvidenceItem")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("ngIf",W.tableView)}},dependencies:[l.O5,d.rH,D.eJ,u.ix,x.w,A.dQ,c.$O,c.u5,f.t3,f.SK,g.Ls,E.NU,E.$1,p.ZU,I.I,B.a,U.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{flex-wrap:nowrap;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:()=>Promise.all([n.e(5302),n.e(8592),n.e(9803)]).then(n.bind(n,9803)).then(o=>o.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(4872),n.e(5556),n.e(2602),n.e(9949),n.e(3577),n.e(7856),n.e(1364),n.e(3575),n.e(4280),n.e(647),n.e(8592),n.e(8723)]).then(n.bind(n,9814)).then(o=>o.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(8592),n.e(2818)]).then(n.bind(n,8287)).then(o=>o.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let K=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[d.Bz.forChild(R),M,d.Bz]}),o})(),Z=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[l.ez,K]}),o})()},6494:(T,C,n)=>{n.d(C,{i:()=>L,m:()=>S});var l=n(655),d=n(6028),e=n(5879),c=n(6223),f=n(8645),g=n(2438),m=n(9773),P=n(874),z=n(7754),u=n(4300),E=n(9388),p=n(6814),s=n(1958),t=n(551),M=n(8324);const O=["switchElement"];function D(i,_){1&i&&e._UZ(0,"span",8)}function x(i,_){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzCheckedChildren)}}function A(i,_){if(1&i&&(e.ynx(0),e.YNc(1,x,2,1,"ng-container",9),e.BQk()),2&i){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzCheckedChildren)}}function I(i,_){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzUnCheckedChildren)}}function B(i,_){if(1&i&&e.YNc(0,I,2,1,"ng-container",9),2&i){const a=e.oxw();e.Q6J("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let L=(()=>{class i{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,r,y,N,R,K){this.nzConfigService=a,this.host=r,this.ngZone=y,this.cdr=N,this.focusMonitor=R,this.directionality=K,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.nzId=null,this.dir="ltr",this.destroy$=new f.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,m.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.host.nativeElement,"click").pipe((0,m.R)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,g.R)(this.switchElement.nativeElement,"keydown").pipe((0,m.R)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=a;r!==d.oh&&r!==d.SV&&r!==d.L_&&r!==d.K5||(a.preventDefault(),this.ngZone.run(()=>{r===d.oh?this.updateValue(!1):r===d.SV?this.updateValue(!0):(r===d.L_||r===d.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,m.R)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return i.\u0275fac=function(a){return new(a||i)(e.Y36(P.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(u.tE),e.Y36(E.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-switch"]],viewQuery:function(a,r){if(1&a&&e.Gf(O,7),2&a){let y;e.iGM(y=e.CRH())&&(r.switchElement=y.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[e._Bn([{provide:c.JU,useExisting:(0,e.Gpc)(()=>i),multi:!0}])],decls:9,vars:16,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(a,r){if(1&a&&(e.TgZ(0,"button",0,1)(2,"span",2),e.YNc(3,D,1,0,"span",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,A,2,1,"ng-container",5),e.YNc(6,B,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&a){const y=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.uIk("id",r.nzId),e.xp6(3),e.Q6J("ngIf",r.nzLoading),e.xp6(2),e.Q6J("ngIf",r.isChecked)("ngIfElse",y)}},dependencies:[p.O5,s.dQ,t.Ls,M.f],encapsulation:2,changeDetection:0}),(0,l.gn)([(0,z.yF)()],i.prototype,"nzLoading",void 0),(0,l.gn)([(0,z.yF)()],i.prototype,"nzDisabled",void 0),(0,l.gn)([(0,z.yF)()],i.prototype,"nzControl",void 0),(0,l.gn)([(0,P.oS)()],i.prototype,"nzSize",void 0),i})(),S=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[E.vT,p.ez,s.vG,t.PV,M.T]}),i})()}}]); \ No newline at end of file diff --git a/server/public/3241.60d0afddee3f5546.js b/server/public/3241.60d0afddee3f5546.js deleted file mode 100644 index e978597b5..000000000 --- a/server/public/3241.60d0afddee3f5546.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3241],{215:(nt,Z,i)=>{i.d(Z,{m:()=>$});var e=i(5879),a=i(6814),t=i(4190),x=i(5695),P=i(551),M=i(7417),E=i(5676),y=i(7398),w=i(2181),N=i(313),Q=i(2962),U=i(95),L=i(8125),J=i(3317),B=i(7458),D=i(8091);const z=function(p,_){return{displayName:p,profileImagePath:_}};function O(p,_){if(1&p&&(e._UZ(0,"cvc-user-avatar",12),e.TgZ(1,"span",13),e._uU(2),e.qZA()),2&p){const r=e.oxw().ngIf;e.Q6J("user",e.WLB(2,z,r.name,r.profileImagePath)),e.xp6(2),e.Oqu(r.name)}}function m(p,_){if(1&p&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&p){const r=_.ngIf;e.xp6(1),e.Oqu(r)}}function T(p,_){if(1&p&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",14),e._uU(2),e.qZA(),e.BQk()),2&p){const r=e.oxw().ngIf;e.xp6(1),e.Q6J("href",r.url),e.xp6(1),e.hij(" ",r.name," ")}}function I(p,_){if(1&p&&(e.ynx(0),e.TgZ(1,"nz-card",4),e.YNc(2,O,3,5,"ng-template",null,5,e.W1O),e.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.YNc(8,m,2,1,"span",9),e.qZA()()()(),e.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.YNc(11,T,3,2,"ng-container",9),e.qZA()()(),e.BQk()),2&p){const r=_.ngIf,v=e.MAs(3);e.oxw();const l=e.MAs(4),b=e.MAs(6);e.xp6(1),e.Q6J("nzTitle",v),e.xp6(7),e.Q6J("ngIf",r.description)("ngIfElse",l),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",r.url)("ngIfElse",b)}}function u(p,_){1&p&&e._uU(0," Organization has not provided a description.\n")}function h(p,_){1&p&&e._uU(0," -- ")}let d=(()=>{class p{constructor(r){this.gql=r}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,y.U)(({data:r})=>r?.organization),(0,w.h)(E.ep))}}return p.\u0275fac=function(r){return new(r||p)(e.Y36(N.X5f))},p.\u0275cmp=e.Xpm({type:p,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(r,v){1&r&&(e.TgZ(0,"div",0),e.YNc(1,I,12,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,u,1,0,"ng-template",null,2,e.W1O),e.YNc(5,h,1,0,"ng-template",null,3,e.W1O)),2&r&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,v.org$)))},dependencies:[a.O5,Q.bd,U.t3,U.SK,L.R7,L.uj,J.l,B.L,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}"]}),p})();function S(p,_){}function k(p,_){if(1&p&&(e.ynx(0),e.TgZ(1,"a",4),e.YNc(2,S,0,0,"ng-template",5),e.qZA(),e.BQk()),2&p){const r=e.oxw(),v=e.MAs(2);e.xp6(1),e.MGl("routerLink","/organizations/",r.org.id,""),e.xp6(1),e.Q6J("ngTemplateOutlet",v)}}function q(p,_){}function R(p,_){if(1&p&&e._UZ(0,"cvc-organization-popover",9),2&p){const r=e.oxw(3);e.Q6J("orgId",r.org.id)}}function j(p,_){if(1&p&&e.YNc(0,R,1,1,"cvc-organization-popover",8),2&p){const r=e.oxw(2);e.Q6J("ngIf",r.enablePopover)}}function F(p,_){if(1&p&&(e.TgZ(0,"nz-tag",6),e.YNc(1,q,0,0,"ng-template",5),e.qZA(),e.YNc(2,j,1,1,"ng-template",null,7,e.W1O)),2&p){const r=e.MAs(3);e.oxw();const v=e.MAs(6);e.Q6J("nzPopoverContent",r),e.xp6(1),e.Q6J("ngTemplateOutlet",v)}}function Y(p,_){}function W(p,_){if(1&p&&e.YNc(0,Y,0,0,"ng-template",5),2&p){e.oxw();const r=e.MAs(2);e.Q6J("ngTemplateOutlet",r)}}function H(p,_){if(1&p&&(e._UZ(0,"i",10),e._uU(1)),2&p){const r=e.oxw();e.xp6(1),e.hij(" ",r.org.name,"\n")}}let $=(()=>{class p{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 p.\u0275fac=function(r){return new(r||p)},p.\u0275cmp=e.Xpm({type:p,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(r,v){if(1&r&&(e.YNc(0,k,3,2,"ng-container",0),e.YNc(1,F,4,2,"ng-template",null,1,e.W1O),e.YNc(3,W,1,1,"ng-template",null,2,e.W1O),e.YNc(5,H,2,1,"ng-template",null,3,e.W1O)),2&r){const l=e.MAs(4);e.Q6J("ngIf",v.linked)("ngIfElse",l)}},dependencies:[a.O5,a.tP,t.rH,x.j,P.Ls,M.lU,d],styles:["[_nghost-%COMP%]{display:inline-block}"]}),p})()},3488:(nt,Z,i)=>{i.d(Z,{p:()=>K});var e=i(5879),a=i(6814),t=i(4190),x=i(7398),P=i(2181),M=i(5676),E=i(313),y=i(2962),w=i(551),N=i(2574),Q=i(8125),U=i(4121),L=i(356),J=i(270),B=i(4786),D=i(9408),z=i(5959),O=i(2384),m=i(8091),T=i(2616),I=i(5573);function u(s,C){if(1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",14),e.ALo(2,"entityColor"),e._uU(3),e.qZA()),2&s){const g=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(2,2,"Revision")),e.xp6(2),e.hij(" RID",g.id," ")}}function h(s,C){if(1&s&&e._UZ(0,"cvc-status-tag",15),2&s){const g=e.oxw(2).ngIf;e.Q6J("status",g.status)}}function d(s,C){1&s&&(e.TgZ(0,"nz-space",11),e.YNc(1,u,4,4,"span",12),e.YNc(2,h,1,1,"cvc-status-tag",13),e.qZA())}function S(s,C){if(1&s&&e._UZ(0,"cvc-gene-tag",23),2&s){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",g.subject)}}function k(s,C){if(1&s&&e._UZ(0,"cvc-assertion-tag",24),2&s){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",g.subject)}}function q(s,C){if(1&s&&e._UZ(0,"cvc-evidence-tag",25),2&s){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",g.subject)}}function R(s,C){if(1&s&&e._UZ(0,"cvc-variant-tag",26),2&s){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",g.subject)}}function j(s,C){if(1&s&&e._UZ(0,"cvc-variant-group-tag",27),2&s){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variantgroup",g.subject)}}function F(s,C){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const g=e.oxw(2).ngIf;e.xp6(1),e.Oqu(g.subject.name)}}function Y(s,C){if(1&s&&(e.ynx(0,16),e.YNc(1,S,1,2,"cvc-gene-tag",17),e.YNc(2,k,1,2,"cvc-assertion-tag",18),e.YNc(3,q,1,2,"cvc-evidence-tag",19),e.YNc(4,R,1,2,"cvc-variant-tag",20),e.YNc(5,j,1,2,"cvc-variant-group-tag",21),e.YNc(6,F,2,1,"span",22),e.BQk()),2&s){const g=e.oxw().ngIf;e.Q6J("ngSwitch",g.subject.__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","VariantGroup")}}function W(s,C){if(1&s&&e._UZ(0,"cvc-user-tag",28),2&s){const g=e.oxw().ngIf;e.Q6J("enablePopover",!1)("user",g.revisor)}}function H(s,C){if(1&s&&(e.TgZ(0,"nz-descriptions-item",29),e._uU(1),e.qZA()),2&s){const g=e.oxw().ngIf;e.xp6(1),e.hij(" ",g.creationComment.comment," ")}}function $(s,C){if(1&s&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,d,3,0,"ng-template",null,3,e.W1O),e.YNc(4,Y,7,6,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.YNc(8,W,1,2,"cvc-user-tag",7),e.qZA(),e.TgZ(9,"nz-descriptions-item",8),e._uU(10),e.qZA(),e.TgZ(11,"nz-descriptions-item",9),e._uU(12),e.ALo(13,"timeAgo"),e.qZA(),e.YNc(14,H,2,1,"nz-descriptions-item",10),e.qZA()(),e.BQk()),2&s){const g=C.ngIf,G=e.MAs(3),et=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",G)("nzExtra",et),e.xp6(5),e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("ngIf",g.revisor),e.xp6(2),e.hij(" ",g.linkoutData.name," "),e.xp6(2),e.hij(" ",e.lcZ(13,7,g.createdAt)," "),e.xp6(2),e.Q6J("ngIf",g.creationComment)}}let p=(()=>{class s{constructor(g){this.gql=g}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,x.U)(({data:g})=>g?.revision),(0,P.h)(M.ep))}}return s.\u0275fac=function(g){return new(g||s)(e.Y36(E.otH))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["subject",""],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user",4,"ngIf"],["nzTitle","Field"],["nzTitle","Revision Date"],["nzTitle","Creation Comment",4,"ngIf"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],[3,"status"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"enablePopover","variantgroup",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"]],template:function(g,G){1&g&&(e.TgZ(0,"div",0),e.YNc(1,$,15,9,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&g&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,G.revision$)))},dependencies:[a.O5,a.RF,a.n9,a.ED,y.bd,w.Ls,N.NU,N.$1,Q.R7,Q.uj,U.H,L.I,J.w,B.O,D.I,z.u,O.h,m.fM,T.a,I.x],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}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),s})();var _=i(5695),r=i(7417);function v(s,C){}function l(s,C){}function b(s,C){if(1&s&&e._UZ(0,"cvc-revision-popover",6),2&s){const g=e.oxw(2);e.Q6J("revisionId",g.revision.id)}}function tt(s,C){if(1&s&&(e.TgZ(0,"nz-tag",4),e.YNc(1,l,0,0,"ng-template",1),e.qZA(),e.YNc(2,b,1,1,"ng-template",null,5,e.W1O)),2&s){const g=e.MAs(3),G=e.oxw(),et=e.MAs(5);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g)("nzPopoverTrigger",G.enablePopover?"hover":null),e.xp6(1),e.Q6J("ngTemplateOutlet",et)}}function V(s,C){if(1&s&&(e._UZ(0,"i",7),e._uU(1)),2&s){const g=e.oxw();e.xp6(1),e.hij(" ",g.revision.name,"\n")}}const ot=function(s){return{revisionSetId:s}};let K=(()=>{class s{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["tag",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["revisionPopover",""],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(g,G){if(1&g&&(e.TgZ(0,"a",0),e.YNc(1,v,0,0,"ng-template",1),e.qZA(),e.YNc(2,tt,4,4,"ng-template",null,2,e.W1O),e.YNc(4,V,2,1,"ng-template",null,3,e.W1O)),2&g){const et=e.MAs(3);e.Q6J("routerLink",G.revision.link)("queryParams",e.VKq(3,ot,G.revision.revisionSetId)),e.xp6(1),e.Q6J("ngTemplateOutlet",et)}},dependencies:[a.tP,t.rH,p,_.j,w.Ls,r.lU],encapsulation:2}),s})()},6794:(nt,Z,i)=>{i.d(Z,{l:()=>D});var e=i(5879),a=i(6814),t=i(2962),x=i(6976),P=i(551),M=i(2840),E=i(855),y=i(1958);const w=["itemTemplate"],N=function(z){return{$implicit:z}};function Q(z,O){if(1&z){const m=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(m);const I=e.oxw().$implicit,u=e.oxw(2);return e.KtG(u.onParticipantSelected(I))}),e.GkF(1,6),e.qZA()}if(2&z){const m=e.oxw().$implicit,T=e.oxw(2);e.ekj("selected-participant",m.id==(null==T.selectedItem?null:T.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",T.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,N,m))}}function U(z,O){if(1&z&&(e.ynx(0),e.YNc(1,Q,2,6,"nz-list-item",4),e.BQk()),2&z){const m=O.index,T=e.oxw(2);e.xp6(1),e.Q6J("ngIf",m+1<=T.defaultListSize)}}function L(z,O){if(1&z){const m=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(m);const I=e.oxw(2);return e.KtG(I.onExpandClicked())}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function J(z,O){if(1&z){const m=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(m);const I=e.oxw(2);return e.KtG(I.onCollapseClicked())}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function B(z,O){if(1&z&&(e.ynx(0),e.TgZ(1,"nz-card",1)(2,"nz-list"),e.YNc(3,U,2,1,"ng-container",2),e.qZA(),e.YNc(4,L,3,0,"button",3),e.YNc(5,J,3,0,"button",3),e.qZA(),e.BQk()),2&z){const m=e.oxw();e.xp6(1),e.Q6J("nzTitle",m.listTitle),e.xp6(2),e.Q6J("ngForOf",m.participantList),e.xp6(1),e.Q6J("ngIf",m.participantList.length>m.defaultListSize),e.xp6(1),e.Q6J("ngIf",m.isExpanded)}}let D=(()=>{class z{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(m){this.selectedItem=m.id==this.selectedItem?.id?void 0:m,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 z.\u0275fac=function(m){return new(m||z)},z.\u0275cmp=e.Xpm({type:z,selectors:[["cvc-participant-list"]],contentQueries:function(m,T,I){if(1&m&&e.Suo(I,w,5),2&m){let u;e.iGM(u=e.CRH())&&(T.itemTemplateRef=u.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(m,T){1&m&&e.YNc(0,B,6,4,"ng-container",0),2&m&&e.Q6J("ngIf",T.participantList&&T.participantList.length>0)},dependencies:[a.sg,a.O5,a.tP,t.bd,x.n_,x.AA,P.Ls,M.ix,E.w,y.dQ],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}"]}),z})()},1595:(nt,Z,i)=>{i.d(Z,{N:()=>E});var e=i(6814),a=i(2962),t=i(6976),x=i(551),P=i(2840),M=i(5879);let E=(()=>{class y{}return y.\u0275fac=function(N){return new(N||y)},y.\u0275mod=M.oAB({type:y}),y.\u0275inj=M.cJS({imports:[e.ez,a.vh,t.Ph,x.PV,P.sL]}),y})()},5959:(nt,Z,i)=>{i.d(Z,{u:()=>_});var e=i(2023),a=i(5879),t=i(6814),x=i(4190),P=i(7417),M=i(5695),E=i(551),y=i(5676),w=i(7398),N=i(2181),Q=i(313),U=i(2962),L=i(8125),J=i(4138),B=i(9408),D=i(1887),z=i(8091),O=i(2616);function m(r,v){if(1&r&&(a._UZ(0,"i",7),a.ALo(1,"entityColor"),a._uU(2)),2&r){const l=a.oxw().ngIf;a.Q6J("nzTwotoneColor",a.lcZ(1,2,"VariantGroup")),a.xp6(2),a.hij(" ",l.name," ")}}function T(r,v){if(1&r&&a._UZ(0,"cvc-variant-tag",10),2&r){const l=v.$implicit;a.Q6J("enablePopover",!1)("variant",l.node)}}function I(r,v){if(1&r&&(a.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),a.YNc(2,T,1,2,"cvc-variant-tag",9),a.qZA()()),2&r){const l=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",l.variants.edges)}}function u(r,v){if(1&r&&a._UZ(0,"cvc-source-tag",13),2&r){const l=v.$implicit;a.Q6J("enablePopover",!1)("source",l)}}function h(r,v){if(1&r&&(a.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),a.YNc(2,u,1,2,"cvc-source-tag",12),a.qZA()()),2&r){const l=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",l.sources)}}function d(r,v){if(1&r&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,m,3,4,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,I,3,1,"nz-descriptions-item",5),a.YNc(7,h,3,1,"nz-descriptions-item",6),a.qZA()(),a.BQk()),2&r){const l=v.ngIf,b=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",b),a.xp6(3),a.hij(" ",l.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",l.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",l.sources.length>0)}}let S=(()=>{class r{constructor(l){this.gql=l}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,w.U)(({data:l})=>l?.variantGroup),(0,N.h)(y.ep))}}return r.\u0275fac=function(l){return new(l||r)(a.Y36(Q.Zo2))},r.\u0275cmp=a.Xpm({type:r,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(l,b){1&l&&(a.TgZ(0,"div",0),a.YNc(1,d,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&l&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,b.variantGroup$)))},dependencies:[t.sg,t.O5,U.bd,L.R7,L.uj,E.Ls,J.T,B.I,D.$,z.fM,O.a],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}"]}),r})();var k=i(3103);function q(r,v){}function R(r,v){if(1&r&&(a.ynx(0),a.TgZ(1,"a",4),a.YNc(2,q,0,0,"ng-template",5),a.qZA(),a.BQk()),2&r){const l=a.oxw(),b=a.MAs(2);a.xp6(1),a.Q6J("routerLink",l.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",b)}}function j(r,v){}function F(r,v){if(1&r&&a._UZ(0,"cvc-variant-group-popover",9),2&r){const l=a.oxw(3);a.Q6J("variantGroupId",l.variantgroup.id)}}function Y(r,v){if(1&r&&a.YNc(0,F,1,1,"cvc-variant-group-popover",8),2&r){const l=a.oxw(2);a.Q6J("ngIf",l.enablePopover)}}function W(r,v){if(1&r&&(a.TgZ(0,"nz-tag",6),a.YNc(1,j,0,0,"ng-template",5),a.qZA(),a.YNc(2,Y,1,1,"ng-template",null,7,a.W1O)),2&r){const l=a.MAs(3),b=a.oxw(),tt=a.MAs(6);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",b.enablePopover?"hover":null),a.xp6(1),a.Q6J("ngTemplateOutlet",tt)}}function H(r,v){}function $(r,v){if(1&r&&a.YNc(0,H,0,0,"ng-template",5),2&r){a.oxw();const l=a.MAs(2);a.Q6J("ngTemplateOutlet",l)}}function p(r,v){if(1&r&&(a.TgZ(0,"cvc-icon-badges",10),a._UZ(1,"i",11),a.ALo(2,"entityColor"),a.qZA(),a._uU(3)),2&r){const l=a.oxw();a.Q6J("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),a.xp6(1),a.Q6J("nzTwotoneColor",a.lcZ(2,4,"VariantGroup")),a.xp6(2),a.hij(" ",l.variantgroup.name,"\n")}}let _=(()=>{class r{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,e.f)("VariantGroup")}}return r.\u0275fac=function(l){return new(l||r)},r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(l,b){if(1&l&&(a.YNc(0,R,3,2,"ng-container",0),a.YNc(1,W,4,4,"ng-template",null,1,a.W1O),a.YNc(3,$,1,1,"ng-template",null,2,a.W1O),a.YNc(5,p,4,6,"ng-template",null,3,a.W1O)),2&l){const tt=a.MAs(4);a.Q6J("ngIf",b.linked)("ngIfElse",tt)}},dependencies:[t.O5,t.tP,x.rH,P.lU,M.j,E.Ls,S,k.b,O.a],encapsulation:2,changeDetection:0}),r})()},4710:(nt,Z,i)=>{i.r(Z),i.d(Z,{SourcesModule:()=>Xt});var e=i(6814),a=i(4190),t=i(5879),x=i(6254),P=i(551),M=i(3145),E=i(655),y=i(6223),w=i(2024),N=i(1791);const U=[{wrappers:["form-layout"],props:{submitLabel:"Submit Source Suggestion",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Submit Source Suggestion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!1,description:"Select a Molecular Profile for this Source Suggestion, if applicable.",watchVariantMolecularProfileId:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"sourceId",type:"source-select",wrappers:["form-field"],props:{required:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Source Suggestion"}}]}]}];var m,J=i(313),B=i(7473),D=i(3599),z=i(5545),O=i(4634);function T(n,c){if(1&n&&(t._uU(0," You will be redirected shortly or you may view your Source Suggestion "),t.TgZ(1,"a",4),t._uU(2,"here"),t.qZA(),t._uU(3,". ")),2&n){const o=t.oxw();t.xp6(1),t.Q6J("href",o.url,t.LSH)}}let I=((m=class{constructor(c,o,f){this.submitSourceGQL=c,this.networkErrorService=o,this.cdr=f,this.form=new y.nJ({}),this.model={fields:{}},this.fields=U,this.submitSourceMutator=new w.U(o)}ngOnInit(){this.url="/curation/queues/pending-sources"}onSubmit(c){const o=function L(n){const c=n.fields;if(![n.comment,c.sourceId].find(f=>void 0===f))return{sourceId:c.sourceId,molecularProfileId:c.molecularProfileId,diseaseId:c.diseaseId,organizationId:n.organizationId,comment:n.comment}}(c);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,f=>{this.newSourceId=f.suggestSource?.sourceSuggestion.id}))}}).\u0275fac=function(c){return new(c||m)(t.Y36(J.tWC),t.Y36(B.Y),t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,selectors:[["cvc-source-submit-form"]],decls:5,vars:7,consts:[["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","modelChange"],[3,"href"]],template:function(c,o){if(1&c&&(t.TgZ(0,"cvc-form-submission-status-display",0),t.YNc(1,T,4,1,"ng-template",null,1,t.W1O),t.TgZ(3,"form",2),t.NdJ("ngSubmit",function(){return o.onSubmit(o.model)}),t.TgZ(4,"formly-form",3),t.NdJ("modelChange",function(A){return o.model=A}),t.qZA()()()),2&c){const f=t.MAs(2);t.Q6J("mutationState",o.mutationState)("redirectUrl",o.url)("successMessage",f),t.xp6(3),t.Q6J("formGroup",o.form),t.xp6(1),t.Q6J("form",o.form)("fields",o.fields)("model",o.model)}},dependencies:[D.Lr,y._Y,y.JL,y.sg,z.T7,O.F]}),m);I=(0,E.gn)([(0,N.c)()],I);var u=i(2616);let h=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-source-add-page"]],decls:11,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"]],template:function(o,f){1&o&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title"),t._UZ(3,"i",2),t.ALo(4,"entityColor"),t._uU(5," Add a Source Suggestion "),t.qZA(),t.TgZ(6,"nz-page-header-subtitle"),t._uU(7," Submit a promising source for curation "),t.qZA(),t.TgZ(8,"nz-page-header-content")(9,"div",3),t._UZ(10,"cvc-source-submit-form"),t.qZA()()()),2&o&&(t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,1,"Assertion")))},dependencies:[x.$O,x.u9,x.yG,x.u5,P.Ls,M.I,I,u.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{flex-wrap:nowrap;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 d=i(8645),S=i(5619),k=i(7921),q=i(9773),R=i(4223),j=i(951),F=i(8091),Y=i(2840),W=i(855),H=i(1958),$=i(3317),p=i(5098);function _(n,c){1&n&&(t.TgZ(0,"button",10),t._UZ(1,"i",11),t._uU(2," Suggest a New Source "),t.qZA())}function r(n,c){if(1&n&&(t.ynx(0),t.YNc(1,_,3,0,"button",9),t.BQk()),2&n){const o=c.ngrxLet;t.xp6(1),t.Q6J("ngIf",o.signedIn)}}function v(n,c){if(1&n&&t.YNc(0,r,2,1,"ng-container",8),2&n){const o=t.oxw(2);t.Q6J("ngrxLet",o.viewer$)}}function l(n,c){if(1&n&&(t.TgZ(0,"cvc-link-tag",12),t._uU(1),t.qZA()),2&n){const o=t.oxw().ngIf;t.Q6J("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.xp6(1),t.hij(" ",o.displayType+":"+o.citationId," ")}}function b(n,c){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,v,1,1,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title"),t._UZ(6,"i",4),t.ALo(7,"entityColor"),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-extra"),t.YNc(10,l,2,3,"cvc-link-tag",5),t.qZA(),t.TgZ(11,"nz-page-header-content"),t._UZ(12,"cvc-tab-navigation",6),t.ALo(13,"ngrxPush"),t.TgZ(14,"div",7),t._UZ(15,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const o=c.ngIf,f=t.MAs(3),A=t.oxw();t.xp6(1),t.Q6J("displayName",o.citation)("actionsTpl",f),t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(7,6,"Source")),t.xp6(2),t.hij(" ",o.citation," "),t.xp6(2),t.Q6J("ngIf",o.sourceUrl),t.xp6(2),t.Q6J("tabs",t.lcZ(13,8,A.tabs$))}}let tt=(()=>{class n{constructor(o,f,A){this.viewerService=o,this.route=f,this.gql=A,this.destroy$=new d.x,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new S.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(X=>{this.sourceId=+X.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let it=this.queryRef.valueChanges;this.loading$=it.pipe((0,R.j)("loading"),(0,k.O)(!0)),this.source$=it.pipe((0,R.j)("data","source")),this.source$.pipe((0,q.R)(this.destroy$)).subscribe({next:qt=>{this.tabs$.next(this.defaultTabs.map(st=>"Comments"===st.tabLabel?{badgeCount:qt?.comments.totalCount,badgeColor:"#cccccc",...st}:st))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(j.a),t.Y36(a.gz),t.Y36(J.Bk6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["sourcesActions",""],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[3,"href","tooltip",4,"ngIf"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],[3,"href","tooltip"]],template:function(o,f){1&o&&(t.YNc(0,b,16,10,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,f.source$))},dependencies:[e.O5,a.lC,a.rH,F.eJ,x.$O,x.u9,x.u5,x.Jp,Y.ix,W.w,H.dQ,P.Ls,M.I,$.l,p.P,F.fM,u.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{flex-wrap:nowrap;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 V=i(95),ot=i(2392),K=i(2574),s=i(6473);function C(n,c){1&n&&(t.TgZ(0,"button",18),t._UZ(1,"i",19),t._uU(2," Suggest a New Source "),t.qZA())}function g(n,c){if(1&n&&(t.ynx(0),t.YNc(1,C,3,0,"button",17),t.BQk()),2&n){const o=c.ngrxLet;t.xp6(1),t.Q6J("ngIf",o.signedIn)}}function G(n,c){if(1&n&&t.YNc(0,g,2,1,"ng-container",16),2&n){const o=t.oxw();t.Q6J("ngrxLet",o.viewer$)}}function et(n,c){1&n&&(t.TgZ(0,"a",20),t._UZ(1,"i",21),t._uU(2," View Source Docs "),t.qZA())}function gt(n,c){1&n&&(t.TgZ(0,"a",22),t._UZ(1,"i",21),t._uU(2," View Source Curation Docs "),t.qZA())}let dt=(()=>{class n{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(j.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["sources-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["sourcesActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzFlex","0 1 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/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(o,f){if(1&o&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,G,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Sources"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,et,3,0,"a",10),t.YNc(17,gt,3,0,"a",11),t.qZA()()(),t.TgZ(18,"div",12)(19,"div",13)(20,"div",14),t._UZ(21,"cvc-sources-table",15),t.qZA()()()()()),2&o){const A=t.MAs(2);t.Q6J("actionsTpl",A),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"Source")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[e.O5,a.rH,F.eJ,x.$O,x.u5,P.Ls,V.t3,V.SK,Y.ix,W.w,H.dQ,ot.ZU,K.NU,K.$1,M.I,s.d,u.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{flex-wrap:nowrap;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 pt=i(6109),at=i(8125),ut=i(8753);let mt=(()=>{class n{set cvcAutoHeightDiv(o){const f=parseInt(o,0);!isNaN(f)&&f>=0&&(this._offset=f)}set cvcAutoHeightTarget(o){this._target=o}get cvcAutoHeightTarget(){return this._target}constructor(o,f,A){this.el=o,this.zone=f,this.cdr=A,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new d.x,this.resizeObserver=new ResizeObserver(X=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,ut.p)(10)).subscribe(X=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const o=this.el.nativeElement,f=o.parentElement.getBoundingClientRect().height;o&&o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o&&("parent"===this._target?o.style.height=f:"viewport"===this._target&&(o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o.style.height=`calc(100vh - ${this.divTop+this._offset}px)`),o.style["overflow-y"]="auto",this.cdr.detectChanges())}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275dir=t.lG2({type:n,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),n})();var vt=i(6822),ft=i(4106),ht=i(3369);function _t(n,c){if(1&n&&(t.TgZ(0,"cvc-link-tag",23),t._uU(1),t.qZA()),2&n){const o=t.oxw().ngIf;t.Q6J("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.xp6(1),t.hij(" ",o.displayType+":"+o.citationId," ")}}function zt(n,c){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const o=t.oxw().ngIf;t.xp6(1),t.hij(" ",o.pmcId," ")}}function Ct(n,c){}function xt(n,c){if(1&n&&(t.TgZ(0,"nz-descriptions-item",28),t.YNc(1,Ct,0,0,"ng-template",29),t.qZA()),2&n){t.oxw(2);const o=t.MAs(29);t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Tt(n,c){if(1&n&&(t.TgZ(0,"nz-descriptions-item",28),t._UZ(1,"cvc-clinical-trial-tag",30),t.qZA()),2&n){const o=t.oxw(2).ngIf;t.xp6(1),t.Q6J("clinicalTrial",o.clinicalTrials[0])}}function St(n,c){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-space"),t._UZ(2,"cvc-clinical-trial-tag",30),t.qZA(),t.BQk()),2&n){const o=c.$implicit;t.xp6(2),t.Q6J("clinicalTrial",o)}}function yt(n,c){if(1&n&&(t.TgZ(0,"nz-descriptions-item",31),t.YNc(1,St,3,1,"ng-container",32),t.qZA()),2&n){const o=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",o.clinicalTrials)}}function Pt(n,c){if(1&n&&(t.ynx(0,24),t.YNc(1,xt,2,1,"ng-template",25),t.YNc(2,Tt,2,1,"ng-template",26),t.YNc(3,yt,2,1,"ng-template",27),t.BQk()),2&n){const o=t.oxw().ngIf;t.Q6J("ngPlural",o.clinicalTrials.length)}}function Ot(n,c){1&n&&(t.TgZ(0,"span",33),t._uU(1," Not available "),t.qZA())}function It(n,c){if(1&n&&t._uU(0),2&n){const o=t.oxw().ngIf;t.hij(" Evidence for ",o.citation," ")}}function Mt(n,c){if(1&n&&t._uU(0),2&n){const o=t.oxw().ngIf;t.hij(" Source Suggestions for ",o.citation," ")}}const bt=function(){return[8,16]};function At(n,c){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4)(5,"i"),t._uU(6),t.qZA()(),t.TgZ(7,"nz-descriptions-item",5),t._uU(8),t.qZA()()(),t.TgZ(9,"nz-col",2)(10,"nz-descriptions",3)(11,"nz-descriptions-item",6)(12,"p",7),t._uU(13),t.qZA()()()(),t.TgZ(14,"nz-col",2)(15,"nz-descriptions",8)(16,"nz-descriptions-item",9),t._uU(17),t.qZA(),t.TgZ(18,"nz-descriptions-item",10),t.YNc(19,_t,2,3,"cvc-link-tag",11),t.qZA(),t.TgZ(20,"nz-descriptions-item",12),t._uU(21),t.qZA(),t.TgZ(22,"nz-descriptions-item",13),t.YNc(23,zt,2,1,"ng-container",14),t.qZA(),t.TgZ(24,"nz-descriptions-item",15)(25,"span",16),t._UZ(26,"span",17),t.qZA()(),t.YNc(27,Pt,4,1,"ng-container",18),t.qZA(),t.YNc(28,Ot,2,0,"ng-template",null,19,t.W1O),t.qZA(),t.TgZ(30,"nz-col",2),t._UZ(31,"cvc-evidence-table",20),t.YNc(32,It,1,1,"ng-template",null,21,t.W1O),t.qZA(),t.TgZ(34,"nz-col",2),t._UZ(35,"cvc-source-suggestions-table",20),t.YNc(36,Mt,1,1,"ng-template",null,22,t.W1O),t.qZA()(),t.BQk()),2&n){const o=c.ngIf,f=t.MAs(29),A=t.MAs(33),X=t.MAs(37),it=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(26,bt)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(3),t.Oqu(o.title),t.xp6(2),t.hij(" ",o.authorString," "),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("nzEllipsisRows",6),t.xp6(1),t.hij(" ",o.abstract," "),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Oqu(o.publicationDate),t.xp6(1),t.MGl("nzTitle","",o.displayType," ID"),t.xp6(1),t.Q6J("ngIf",o.sourceUrl),t.xp6(2),t.Oqu(o.fullJournalTitle),t.xp6(2),t.Q6J("ngIf",o.pmcId)("ngIfElse",f),t.xp6(2),t.Q6J("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.xp6(1),t.Q6J("nzType",o.pmcId?"unlock":"lock"),t.xp6(1),t.Q6J("ngIf",o.clinicalTrials),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("sourceId",it.sourceId)("cvcTitleTemplate",A),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("sourceId",it.sourceId)("cvcTitleTemplate",X)}}let Zt=(()=>{class n{constructor(o,f){this.route=o,this.gql=f,this.routeSub=this.route.params.subscribe(A=>{this.sourceId=+A.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let X=this.queryRef.valueChanges;this.loading$=X.pipe((0,R.j)("loading"),(0,k.O)(!0)),this.source$=X.pipe((0,R.j)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(a.gz),t.Y36(J.g0X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],["cvcAutoHeightDiv","",3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Title"],["nzTitle","Authors"],["nzTitle","Abstract"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],[3,"href","tooltip",4,"ngIf"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],["nzTitle","Access"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],[3,"ngPlural",4,"ngIf"],["notAvailable",""],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[3,"href","tooltip"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"]],template:function(o,f){1&o&&(t.YNc(0,At,38,27,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,f.source$))},dependencies:[e.sg,e.O5,e.tP,e.iq,e.zE,V.t3,V.SK,K.NU,ot.ZU,P.Ls,pt.SY,at.R7,at.uj,$.l,mt,vt.a,ft.O,ht.G,F.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]}),n})(),wt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-sources"]],decls:1,vars:0,template:function(o,f){1&o&&t._UZ(0,"router-outlet")},dependencies:[a.lC],encapsulation:2}),n})();var Nt=i(800);const Et=[{path:"",component:wt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:dt,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:h},{path:":sourceId",component:tt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class n{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:J.OfU.Source}}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(a.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(o,f){1&o&&t._UZ(0,"cvc-comment-list",0),2&o&&t.Q6J("commentable",f.commentable)},dependencies:[Nt.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Comments"}}]}]}];let Jt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[a.Bz.forChild(Et),a.Bz]}),n})();var Lt=i(6078),rt=i(2419),ct=i(2524);let Qt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,x.KJ,P.PV,V.Jb,Y.sL,ot.ZJ,K.zf,rt.D,Lt.h,ct.s]}),n})();var lt=i(6067),Ut=i(4059);let Dt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,x.KJ,Y.sL,P.PV,rt.D,lt.X,Ut.c,ct.s]}),n})();var kt=i(4605),Yt=i(1403),Bt=i(5843),Rt=i(9333);let Ft=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,V.Jb,K.zf,V.Jb,K.zf,ot.ZJ,P.PV,pt.cg,at.q6,lt.X,Rt.h,Yt.Q,Bt.W,kt.N]}),n})();var Gt=i(6683),Vt=i(279),jt=i(5106);let Wt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,D.U5,Y.sL,Gt.S,jt.g,Vt.s]}),n})(),Ht=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,x.KJ,P.PV,ct.s,rt.D,Wt]}),n})();var $t=i(1830);let Kt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,$t.l]}),n})(),Xt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,Jt,Qt,Dt,Ft,Ht,Kt]}),n})()},4139:(nt,Z,i)=>{i.d(Z,{H0:()=>I});var e=i(5879),a=i(6814),t=i(9388);let I=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[t.vT,a.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/3266.321649ce55603d0f.js b/server/public/3266.321649ce55603d0f.js deleted file mode 100644 index 8c5e1a148..000000000 --- a/server/public/3266.321649ce55603d0f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3266],{9560:(E,S,n)=>{n.d(S,{K:()=>l});var t=n(6814),f=n(5545),o=n(5879),z=n(6223),r=n(824);const m={name:"comment-textarea",component:(()=>{class s extends f.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(_,I)=>`Comments must be at least ${I.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return s.\u0275fac=function(){let y;return function(I){return(y||(y=o.n5z(s)))(I||s)}}(),s.\u0275cmp=o.Xpm({type:s,selectors:[["comment-textarea-type"]],features:[o.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(_,I){1&_&&o._UZ(0,"textarea",0),2&_&&o.Q6J("formControl",I.formControl)("formlyAttributes",I.field)},dependencies:[z.Fj,z.JJ,z.oH,f.JD,r.Zp],encapsulation:2,changeDetection:0}),s})(),wrappers:["form-field"]};var p=n(3599),d=n(7459);let l=(()=>{class s{}return s.\u0275fac=function(_){return new(_||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[t.ez,z.UX,f.X0.forChild({types:[m]}),d.u,p.U5,r.o7]}),s})()},1759:(E,S,n)=>{n.d(S,{C:()=>f,w:()=>t});const t={geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,therapyIds:void 0,therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:void 0,rating:void 0,sourceId:void 0,variantOrigin:void 0},f={clientMutationId:void 0,fields:t,comment:void 0,organizationId:void 0}},8475:(E,S,n)=>{n.d(S,{lG:()=>m,yQ:()=>r});var t=n(2),f=n(313),o=n(8645),z=n(3742),r=(()=>((r=r||{}).EVIDENCE="Evidence",r.ASSERTION="Assertion",r))();class m{constructor(d){this.formReady$=new o.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new o.x,this.requiresTherapy$=new o.x,this.requiresDisease$=new o.x,this.requiresAcmgCode$=new o.x,this.requiresAmpLevel$=new o.x,this.requiresClingenCode$=new o.x,this.allowsFdaApproval$=new o.x,this.getTypeOptions=()=>this.entityName==r.ASSERTION?(0,z.o6)(f.uBv).map(l=>l):(0,z.o6)(f.kqt).map(l=>l),this.getSignificanceOptions=l=>this.validStates.get(l)?.significance||[],this.getInteractionOptions=()=>(0,z.o6)(f.wkr).map(l=>l),this.isValidSignificanceOption=(l,s)=>{const y=this.validStates.get(l);return!y||y.significance.includes(s)},this.getDirectionOptions=l=>this.validStates.get(l)?.entityDirection||[],this.isValidDirectionOption=(l,s)=>{const y=this.validStates.get(l);return!y||y.entityDirection.includes(s)},this.requiresTherapy=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresTherapy},this.requiresDisease=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresDisease},this.requiresAcmgCodes=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresAcmgCodes},this.requiresAmpLevel=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresAmpLevel},this.requiresClingenCodes=l=>{const s=this.validStates.get(l);return void 0===s||s.requiresClingenCodes},this.allowsFdaApproval=l=>{const s=this.validStates.get(l);return void 0===s||s.allowsFdaApproval},this.getOptionsFromEnums=l=>0===l.length?[]:l.map(s=>({value:s,label:(0,t.E)(s)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=d,this.pluralNames=new Map,this.pluralNames.set(r.ASSERTION,"Assertions"),this.pluralNames.set(r.EVIDENCE,"Evidence")}onDestroy(){}}},3684:(E,S,n)=>{n.d(S,{_:()=>a});var t=n(313),f=n(1791),o=n(5619),z=n(1759),r=n(8475);class a extends r.lG{constructor(){super(r.yQ.EVIDENCE);const p=z.w;this.fields={molecularProfileId$:new o.X(p.molecularProfileId),variantId$:new o.X(p.variantId),variantMolecularProfile$:new o.X(void 0),geneId$:new o.X(p.geneId),evidenceType$:new o.X(p.evidenceType),evidenceLevel$:new o.X(p.evidenceLevel),evidenceDirection$:new o.X(p.evidenceDirection),significance$:new o.X(p.significance),variantOrigin$:new o.X(p.variantOrigin),diseaseId$:new o.X(p.diseaseId),therapyIds$:new o.X(p.therapyIds),therapyInteractionType$:new o.X(p.therapyInteractionType),rating$:new o.X(p.rating),phenotypeIds$:new o.X(p.phenotypeIds),sourceId$:new o.X(p.sourceId)},this.enums={entityType$:new o.X(this.getTypeOptions()),significance$:new o.X([]),direction$:new o.X([]),interaction$:new o.X(this.getInteractionOptions())},this.requires={requiresDisease$:new o.X(!1),requiresTherapy$:new o.X(!1),requiresTherapyInteractionType$:new o.X(!1),requiresClingenCodes$:new o.X(!1),requiresAcmgCodes$:new o.X(!1),requiresAmpLevel$:new o.X(!1),allowsFdaApproval$:new o.X(!1)},this.fields.evidenceType$.pipe((0,f.t)(this,"onDestroy")).subscribe(d=>{if(!d)return Object.entries(this.requires).forEach(([l,s])=>{s.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(d)),this.enums.direction$.next(this.getDirectionOptions(d)),this.requires.requiresDisease$.next(this.requiresDisease(d)),this.requires.requiresTherapy$.next(this.requiresTherapy(d)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(d)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(d)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(d)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(d))}),this.fields.therapyIds$.pipe((0,f.t)(this,"onDestroy")).subscribe(d=>{this.requires.requiresTherapyInteractionType$.next(!!d&&d.length>1)}),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,significance:[t.y1h.Sensitivityresponse,t.y1h.Resistance,t.y1h.AdverseResponse,t.y1h.ReducedSensitivity,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,significance:[t.y1h.Positive,t.y1h.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,significance:[t.y1h.BetterOutcome,t.y1h.PoorOutcome,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,significance:[t.y1h.Oncogenicity,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,significance:[t.y1h.Predisposition,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,significance:[t.y1h.GainOfFunction,t.y1h.LossOfFunction,t.y1h.UnalteredFunction,t.y1h.Neomorphic,t.y1h.DominantNegative,t.y1h.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},7745:(E,S,n)=>{function t(f,o){const z=(a,m)=>{let p;for(let d of a)if(d.fieldGroup)p=z(d.fieldGroup,m);else if(d.key===m){p=d;break}return p},r=(a,m)=>{for(let p of Object.keys(m))if(m[p]instanceof Object&&!Array.isArray(m[p]))r(a,m[p]);else{const d=z(a,p);d&&(d.defaultValue=m[p])}return a};return r(f,o)}n.d(S,{Z:()=>t})},1565:(E,S,n)=>{n.d(S,{Ct:()=>o,I9:()=>z,ux:()=>f});var t=n(2701);function f(r){return{significance:r.significance,description:r.description,diseaseId:r.disease?.id,therapyIds:r.therapies.map(a=>a.id),therapyInteractionType:r.therapyInteractionType,evidenceDirection:r.evidenceDirection,evidenceLevel:r.evidenceLevel,evidenceType:r.evidenceType,molecularProfileId:r.molecularProfile.id,phenotypeIds:r.phenotypes.map(a=>a.id),rating:r.evidenceRating,sourceId:r.source.id,variantOrigin:r.variantOrigin}}function o(r,a){let m=z(a);if(m)return{id:r,comment:m.comment,organizationId:m.organizationId,fields:m.fields}}function z(r){const a=r.fields;if(![a.molecularProfileId,a.variantOrigin,a.sourceId,a.evidenceType,a.significance,a.evidenceLevel,a.evidenceDirection,a.rating].find(p=>void 0===p))return{fields:{molecularProfileId:a.molecularProfileId,variantOrigin:a.variantOrigin,sourceId:a.sourceId,evidenceType:a.evidenceType,significance:a.significance,evidenceLevel:a.evidenceLevel,evidenceDirection:a.evidenceDirection,rating:a.rating,description:t.xt(a.description),diseaseId:t.uP(a.diseaseId),phenotypeIds:a.phenotypeIds?a.phenotypeIds:[],therapyIds:a.therapyIds?a.therapyIds:[],therapyInteractionType:t.uP(a.therapyInteractionType)},organizationId:r.organizationId,comment:r.comment}}},8287:(E,S,n)=>{n.r(S),n.d(S,{EvidenceReviseModule:()=>K});var t=n(6814),f=n(8603),o=n(2419),z=n(2524),r=n(9560),a=n(95),m=n(8527),p=n(551),d=n(6254),l=n(2574),s=n(2392),y=n(4190),_=n(7921),I=n(7398),x=n(4223),e=n(5879),N=n(313),O=n(951),w=n(2606),M=n(3145),D=n(8178),u=n(8091),h=n(2616);function c(i,v){if(1&i&&(e.TgZ(0,"span",12)(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&i){const g=e.oxw(2).ngIf;e.xp6(2),e.Oqu(g.name)}}function C(i,v){if(1&i&&(e.TgZ(0,"span",13),e._UZ(1,"cvc-molecular-profile-tag",14),e.qZA()),2&i){const g=e.oxw(2).ngIf;e.xp6(1),e.Q6J("molecularProfile",g.molecularProfile)("enablePopover",!1)}}function A(i,v){1&i&&(e.TgZ(0,"nz-space",9),e.YNc(1,c,4,1,"span",10),e.YNc(2,C,2,2,"span",11),e.qZA())}function q(i,v){1&i&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function L(i,v){1&i&&(e.TgZ(0,"nz-row",15)(1,"div",16),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function R(i,v){if(1&i&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,A,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e.ALo(8,"entityColor"),e._uU(9),e.qZA(),e.TgZ(10,"nz-page-header-content")(11,"div",6),e.YNc(12,q,2,0,"div",7),e.ALo(13,"ngrxPush"),e.YNc(14,L,3,0,"ng-template",null,8,e.W1O),e.qZA()()(),e.BQk()),2&i){const g=v.ngIf,T=e.MAs(3),P=e.MAs(15),k=e.oxw();e.xp6(1),e.Q6J("displayName",g.name)("relationsTpl",T),e.xp6(6),e.Q6J("nzTwotoneColor",e.lcZ(8,6,"EvidenceItem")),e.xp6(2),e.hij(" ",g.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(13,8,k.isSignedIn$))("ngIfElse",P)}}let F=(()=>{class i{constructor(g,T,P){this.gql=g,this.route=T,this.viewerService=P,this.routeSub=this.route.params.subscribe(k=>{let $=this.gql.watch({evidenceId:+k.evidenceId}).valueChanges;this.loading$=$.pipe((0,x.j)("loading"),(0,_.O)(!0)),this.evidence$=$.pipe((0,x.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,x.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,x.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,x.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,I.U)(g=>g.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(N.pHu),e.Y36(y.gz),e.Y36(O.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[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,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(g,T){1&g&&(e.YNc(0,R,16,10,"ng-container",0),e.ALo(1,"async")),2&g&&e.Q6J("ngIf",e.lcZ(1,1,T.evidence$))},dependencies:[t.O5,y.lC,d.$O,d.u9,d.u5,l.NU,l.$1,a.t3,a.SK,p.Ls,s.ZU,w.p,M.I,D.u,t.Ov,u.fM,h.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{flex-wrap:nowrap;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})();var B=n(2962),b=n(4139),U=n(7471);let X=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[t.ez,a.Jb,B.vh,b.H0,l.zf,U.A]}),i})();var Z=n(9958);function V(i,v){if(1&i&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&i){const g=e.oxw();e.xp6(1),e.Q6J("evidenceId",g.evidenceId)}}function j(i,v){1&i&&e._uU(0,"Loading Evidence...")}const J=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class i{constructor(g){this.route=g,this.routeParams$=this.route.params.subscribe(T=>{this.evidenceId=+T.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(y.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(g,T){if(1&g&&(e.YNc(0,V,2,1,"ng-container",0),e.YNc(1,j,1,0,"ng-template",null,1,e.W1O)),2&g){const P=e.MAs(2);e.Q6J("ngIf",T.evidenceId)("ngIfElse",P)}},dependencies:[t.O5,Z.r],encapsulation:2}),i})(),data:{breadcrumb:"Suggest Revision"}}]}];let W=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[y.Bz.forChild(J),X,y.Bz]}),i})(),K=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[t.ez,W,d.KJ,l.zf,a.Jb,p.PV,s.ZJ,l.zf,m.u,z.s,o.D,r.K,f.a]}),i})()},4139:(E,S,n)=>{n.d(S,{H0:()=>D});var t=n(5879),f=n(6814),o=n(9388);let D=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[o.vT,f.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/3385.5c8b6d5ba6a7c6a3.js b/server/public/3385.5c8b6d5ba6a7c6a3.js new file mode 100644 index 000000000..bb1156fed --- /dev/null +++ b/server/public/3385.5c8b6d5ba6a7c6a3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3385],{8516:(T,p,e)=>{e.d(p,{p:()=>g});var n=e(5879),i=e(6814),t=e(6223),o=e(824),_=e(551);function l(h,f){if(1&h){const c=n.EpF();n.TgZ(0,"i",4),n.NdJ("click",function(){n.CHM(c);const r=n.oxw(2);return r.inputModel=void 0,n.KtG(r.onModelUpdated())}),n.qZA()}}function a(h,f){if(1&h&&n.YNc(0,l,1,0,"i",3),2&h){const c=n.oxw();n.Q6J("ngIf",c.inputModel)}}let g=(()=>{class h{constructor(){this.inputModelChange=new n.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return h.\u0275fac=function(c){return new(c||h)},h.\u0275cmp=n.Xpm({type:h,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","","nzSize","small",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(c,u){if(1&c&&(n.TgZ(0,"nz-input-group",0)(1,"input",1),n.NdJ("ngModelChange",function(C){return u.inputModel=C})("ngModelChange",function(){return u.onModelUpdated()}),n.qZA()(),n.YNc(2,a,1,1,"ng-template",null,2,n.W1O)),2&c){const r=n.MAs(3);n.Q6J("nzSuffix",r),n.xp6(1),n.Q6J("placeholder",u.placeholderText?u.placeholderText:"")("ngModel",u.inputModel)}},dependencies:[i.O5,t.Fj,t.JJ,t.On,o.Zp,o.gB,o.ke,_.Ls],styles:["[_nghost-%COMP%]{display:block;height:22px}[_nghost-%COMP%] nz-input-group{padding:2px;height:22px}[_nghost-%COMP%] nz-input-group input{height:16px}"],changeDetection:0}),h})()},7856:(T,p,e)=>{e.d(p,{k:()=>a});var n=e(6814),i=e(824),t=e(6223),o=e(551),_=e(3599),l=e(5879);let a=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=l.oAB({type:g}),g.\u0275inj=l.cJS({imports:[n.ez,t.u5,_.U5,i.o7,o.PV]}),g})()},9857:(T,p,e)=>{e.d(p,{B:()=>f});var n=e(2181),i=e(7398),t=e(5879),o=e(6814),_=e(2392),l=e(8091),a=e(5573);function g(c,u){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"timeAgo"),t.qZA()),2&c){const r=t.oxw().ngIf;t.xp6(1),t.hij(" (Current as of ",t.lcZ(2,1,r.lastUpdated),") ")}}function h(c,u){if(1&c&&(t.TgZ(0,"span",1),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.YNc(4,g,3,3,"span",2),t.qZA()),2&c){const r=u.ngIf;t.xp6(1),t.AsE(" ",t.lcZ(2,3,r.edgeCount)," of ",t.lcZ(3,5,r.filteredCount)," displayed "),t.xp6(3),t.Q6J("ngIf",r.lastUpdated)}}let f=(()=>{class c{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,n.h)(r=>null!=r.totalCount||null!=r.filteredCount),(0,i.U)(r=>{const C=r.filteredCount,E=r.totalCount,s=r.edges;return null==C&&null==E&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:s.length,filteredCount:C??E,lastUpdated:r.lastUpdated}}))}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-table-counts"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"],[4,"ngIf"]],template:function(r,C){1&r&&(t.YNc(0,h,5,7,"span",0),t.ALo(1,"ngrxPush")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,C.tableCountsInfo$))},dependencies:[o.O5,_.ZU,o.JJ,l.fM,a.x],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),c})()},2989:(T,p,e)=>{e.d(p,{T:()=>_});var n=e(6814),i=e(2392),t=e(2524),o=e(5879);let _=(()=>{class l{}return l.\u0275fac=function(g){return new(g||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[n.ez,i.ZJ,t.s]}),l})()},5573:(T,p,e)=>{e.d(p,{x:()=>c});var n=e(5879);const t=3600,o=24*t,l=365*o,g=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),f=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let c=(()=>{class u{transform(C){let E;E="number"==typeof C?C:Date.parse(C);const s=Date.now(),d=Math.round(Math.abs(s-E)/1e3);if(d>=2592e3&&d=l){let O=new Date(E);return f.format(O)}let v,m;return d<60?(v=Math.round(d),m="second"):d1?"s":""} ago`}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275pipe=n.Yjl({name:"timeAgo",type:u,pure:!0}),u})()},4632:(T,p,e)=>{e.d(p,{_:()=>i});var n=e(313);function i(t){var o;switch(t.value){case"ascend":o=n.SrV.Asc;break;case"descend":o=n.SrV.Desc;break;default:return}return{column:t.key,direction:o}}},6753:(T,p,e)=>{e.d(p,{D:()=>o});var n=e(8645),i=e(8753),t=e(5879);let o=(()=>{class _{set cvcAutoHeightCard(a){a&&(this._offset=a)}get cvcAutoHeightCard(){return this._offset}set cvcAutoHeightTarget(a){this._target=a}get cvcAutoHeightTarget(){return this._target}constructor(a,g,h){this.el=a,this.zone=g,this.cdr=h,this._offset=0,this._target="parent",this.onResized$=new n.x,this.resizeObserver=new ResizeObserver(f=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,i.p)(10)).subscribe(f=>{this.doAutoSize()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}doAutoSize(){const a=this.el.nativeElement,g=a.parentElement.clientHeight,f=a.querySelector(".ant-card-head").clientHeight,c=a.querySelector(".ant-card-body");if(c){if("parent"===this._target)c.style.height=`calc(${g-f}px)`;else if("viewport"===this._target){let u=0;c.getBoundingClientRect&&c.getBoundingClientRect().top&&(u=c.getBoundingClientRect().top),c.style.height=`calc(100vh - ${u+f+this._offset}px)`}c.style["overflow-y"]="auto"}else console.warn("auto-height-card could not find reference to ant-card-body div.");this.cdr.detectChanges()}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},_.\u0275dir=t.lG2({type:_,selectors:[["","cvcAutoHeightCard",""]],inputs:{cvcAutoHeightCard:"cvcAutoHeightCard",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),_})()},9175:(T,p,e)=>{e.d(p,{n:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4764:(T,p,e)=>{e.d(p,{q:()=>t});var n=e(5879),i=e(3740);let t=(()=>{class o{constructor(l,a,g){this.element=l,this.table=a,this.cd=g,this.table&&this.table.nzPageIndexChange&&this.table.nzPageIndexChange.subscribe(h=>{const f=this.element.nativeElement.querySelector(".ant-table-body");f&&f.scrollTop&&(f.scrollTop=0)})}onResize(){this.doAutoSize()}ngOnInit(){}ngAfterViewInit(){this.doAutoSize()}doAutoSize(){setTimeout(()=>{const l=void 0===this.offset?70:this.offset;if(this.element&&this.element.nativeElement&&this.element.nativeElement.parentElement&&this.element.nativeElement.parentElement.offsetHeight)if(this.table&&this.table.nzScroll&&this.table.nzScroll.x){const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px",x:this.table.nzScroll.x},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}else{const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px"},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}},10)}}return o.\u0275fac=function(l){return new(l||o)(n.Y36(n.SBq),n.Y36(i.N8),n.Y36(n.sBO))},o.\u0275dir=n.lG2({type:o,selectors:[["","cvcAutoHeightTable",""]],hostBindings:function(l,a){1&l&&n.NdJ("resize",function(h){return a.onResize(h)},!1,n.Jf7)},inputs:{offset:["cvcAutoHeightTable","offset"]}}),o})()},4742:(T,p,e)=>{e.d(p,{c:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4997:(T,p,e)=>{e.d(p,{y:()=>C});var r,n=e(655),i=e(5879),t=e(1791),o=e(6321),_=e(1374),l=e(8753),a=e(9397),g=e(3620),h=e(7398),f=e(9384),c=e(2181),u=e(3740);let C=((r=class{set cvcTableScrollToIndex(s){void 0!==s&&this.scrollToIndex(s)}set cvcTableScrollToOffset(s){void 0!==s&&this.scrollToIndex(s)}constructor(s){this.host=s,this.cvcTableScrollOnScroll=new i.vpe,this.cvcTableScrollTargetHeight=140,this.cvcTableScrollFetchCount=25,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300,console.log("table-scroll.directive constructor()")}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroll directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,_.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,l.p)(this.onScrollThrottleTime,o.z,{leading:!0,trailing:!0}),(0,a.b)(s=>this.cvcTableScrollOnScroll.next("scroll")),(0,g.b)(this.onScrollDebounceTime),(0,t.t)(this)).subscribe(s=>{this.cvcTableScrollOnScroll.next("stop")}),this.scrolled$.pipe((0,h.U)(s=>this.viewport.measureScrollOffset("bottom")),(0,f.G)(),(0,c.h)(([s,d])=>d{this.cvcTableScrollOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollPageInfo)}catch(d){console.error(d)}})}loadMore(s){const d=this.cvcTableScrollQueryRef;if(!s&&d)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(s&&!d)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(s&&d){const[v,m,M]=[this.cvcTableScrollFetchCount,s.hasNextPage,s.endCursor];if(!v||!M)throw new Error("table-scroll PageInfo invalid.");if(!m)return;d.fetchMore({variables:{first:v,after:M}})}}scrollToIndex(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");v.scrollToIndex(s)}scrollToOffset(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");v.scrollToOffset(s)}}).\u0275fac=function(s){return new(s||r)(i.Y36(u.N8))},r.\u0275dir=i.lG2({type:r,selectors:[["","cvcTableScroll",""]],inputs:{cvcTableScrollTargetHeight:"cvcTableScrollTargetHeight",cvcTableScrollQueryRef:"cvcTableScrollQueryRef",cvcTableScrollPageInfo:"cvcTableScrollPageInfo",cvcTableScrollFetchCount:"cvcTableScrollFetchCount",cvcTableScrollToIndex:"cvcTableScrollToIndex",cvcTableScrollToOffset:"cvcTableScrollToOffset"},outputs:{cvcTableScrollOnScroll:"cvcTableScrollOnScroll"}}),r);C=(0,n.gn)([(0,t.c)()],C)},9312:(T,p,e)=>{e.d(p,{w:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()}}]); \ No newline at end of file diff --git a/server/public/3385.7da54368d3f3368e.js b/server/public/3385.7da54368d3f3368e.js deleted file mode 100644 index 6eb935b40..000000000 --- a/server/public/3385.7da54368d3f3368e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3385],{8516:(C,d,e)=>{e.d(d,{p:()=>h});var t=e(5879),a=e(6814),n=e(6223),o=e(824),c=e(551);function s(i,u){if(1&i){const l=t.EpF();t.TgZ(0,"i",4),t.NdJ("click",function(){t.CHM(l);const v=t.oxw(2);return v.inputModel=void 0,t.KtG(v.onModelUpdated())}),t.qZA()}}function r(i,u){if(1&i&&t.YNc(0,s,1,0,"i",3),2&i){const l=t.oxw();t.Q6J("ngIf",l.inputModel)}}let h=(()=>{class i{constructor(){this.inputModelChange=new t.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=t.Xpm({type:i,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","","nzSize","small",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(l,g){if(1&l&&(t.TgZ(0,"nz-input-group",0)(1,"input",1),t.NdJ("ngModelChange",function(T){return g.inputModel=T})("ngModelChange",function(){return g.onModelUpdated()}),t.qZA()(),t.YNc(2,r,1,1,"ng-template",null,2,t.W1O)),2&l){const v=t.MAs(3);t.Q6J("nzSuffix",v),t.xp6(1),t.Q6J("placeholder",g.placeholderText?g.placeholderText:"")("ngModel",g.inputModel)}},dependencies:[a.O5,n.Fj,n.JJ,n.On,o.Zp,o.gB,o.ke,c.Ls],styles:["[_nghost-%COMP%]{display:block;height:22px}[_nghost-%COMP%] nz-input-group{padding:2px;height:22px}[_nghost-%COMP%] nz-input-group input{height:16px}"],changeDetection:0}),i})()},7856:(C,d,e)=>{e.d(d,{k:()=>r});var t=e(6814),a=e(824),n=e(6223),o=e(551),c=e(3599),s=e(5879);let r=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275mod=s.oAB({type:h}),h.\u0275inj=s.cJS({imports:[t.ez,n.u5,c.U5,a.o7,o.PV]}),h})()},9857:(C,d,e)=>{e.d(d,{B:()=>h});var t=e(2181),a=e(7398),n=e(5879),o=e(6814),c=e(2392),s=e(8091);function r(i,u){if(1&i&&(n.TgZ(0,"span",1),n._uU(1),n.ALo(2,"number"),n.ALo(3,"number"),n.qZA()),2&i){const l=u.ngIf;n.xp6(1),n.AsE(" ",n.lcZ(2,2,l.edgeCount)," of ",n.lcZ(3,4,l.filteredCount)," displayed\n")}}let h=(()=>{class i{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,t.h)(l=>null!=l.totalCount||null!=l.filteredCount),(0,a.U)(l=>{const g=l.filteredCount,v=l.totalCount,T=l.edges;return null==g&&null==v&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:T.length,filteredCount:g??v}}))}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-table-counts"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"]],template:function(l,g){1&l&&(n.YNc(0,r,4,6,"span",0),n.ALo(1,"ngrxPush")),2&l&&n.Q6J("ngIf",n.lcZ(1,1,g.tableCountsInfo$))},dependencies:[o.O5,c.ZU,o.JJ,s.fM],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),i})()},2989:(C,d,e)=>{e.d(d,{T:()=>o});var t=e(6814),a=e(2392),n=e(5879);let o=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[t.ez,a.ZJ]}),c})()},4632:(C,d,e)=>{e.d(d,{_:()=>a});var t=e(313);function a(n){var o;switch(n.value){case"ascend":o=t.SrV.Asc;break;case"descend":o=t.SrV.Desc;break;default:return}return{column:n.key,direction:o}}},6753:(C,d,e)=>{e.d(d,{D:()=>o});var t=e(8645),a=e(8753),n=e(5879);let o=(()=>{class c{set cvcAutoHeightCard(r){r&&(this._offset=r)}get cvcAutoHeightCard(){return this._offset}set cvcAutoHeightTarget(r){this._target=r}get cvcAutoHeightTarget(){return this._target}constructor(r,h,i){this.el=r,this.zone=h,this.cdr=i,this._offset=0,this._target="parent",this.onResized$=new t.x,this.resizeObserver=new ResizeObserver(u=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,a.p)(10)).subscribe(u=>{this.doAutoSize()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}doAutoSize(){const r=this.el.nativeElement,h=r.parentElement.clientHeight,u=r.querySelector(".ant-card-head").clientHeight,l=r.querySelector(".ant-card-body");if(l){if("parent"===this._target)l.style.height=`calc(${h-u}px)`;else if("viewport"===this._target){let g=0;l.getBoundingClientRect&&l.getBoundingClientRect().top&&(g=l.getBoundingClientRect().top),l.style.height=`calc(100vh - ${g+u+this._offset}px)`}l.style["overflow-y"]="auto"}else console.warn("auto-height-card could not find reference to ant-card-body div.");this.cdr.detectChanges()}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return c.\u0275fac=function(r){return new(r||c)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO))},c.\u0275dir=n.lG2({type:c,selectors:[["","cvcAutoHeightCard",""]],inputs:{cvcAutoHeightCard:"cvcAutoHeightCard",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),c})()},9175:(C,d,e)=>{e.d(d,{n:()=>n});var t=e(6814),a=e(5879);let n=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=a.oAB({type:o}),o.\u0275inj=a.cJS({imports:[t.ez]}),o})()},4764:(C,d,e)=>{e.d(d,{q:()=>n});var t=e(5879),a=e(3740);let n=(()=>{class o{constructor(s,r,h){this.element=s,this.table=r,this.cd=h,this.table&&this.table.nzPageIndexChange&&this.table.nzPageIndexChange.subscribe(i=>{const u=this.element.nativeElement.querySelector(".ant-table-body");u&&u.scrollTop&&(u.scrollTop=0)})}onResize(){this.doAutoSize()}ngOnInit(){}ngAfterViewInit(){this.doAutoSize()}doAutoSize(){setTimeout(()=>{const s=void 0===this.offset?70:this.offset;if(this.element&&this.element.nativeElement&&this.element.nativeElement.parentElement&&this.element.nativeElement.parentElement.offsetHeight)if(this.table&&this.table.nzScroll&&this.table.nzScroll.x){const r=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-s).toString()+"px",x:this.table.nzScroll.x},this.table.ngOnChanges({nzScroll:new t.WD2({originNzScroll:r},this.table.nzScroll,!1)}),this.cd.detectChanges()}else{const r=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-s).toString()+"px"},this.table.ngOnChanges({nzScroll:new t.WD2({originNzScroll:r},this.table.nzScroll,!1)}),this.cd.detectChanges()}},10)}}return o.\u0275fac=function(s){return new(s||o)(t.Y36(t.SBq),t.Y36(a.N8),t.Y36(t.sBO))},o.\u0275dir=t.lG2({type:o,selectors:[["","cvcAutoHeightTable",""]],hostBindings:function(s,r){1&s&&t.NdJ("resize",function(i){return r.onResize(i)},!1,t.Jf7)},inputs:{offset:["cvcAutoHeightTable","offset"]}}),o})()},4742:(C,d,e)=>{e.d(d,{c:()=>n});var t=e(6814),a=e(5879);let n=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=a.oAB({type:o}),o.\u0275inj=a.cJS({imports:[t.ez]}),o})()},4997:(C,d,e)=>{e.d(d,{y:()=>T});var v,t=e(655),a=e(5879),n=e(1791),o=e(6321),c=e(1374),s=e(8753),r=e(9397),h=e(3620),i=e(7398),u=e(9384),l=e(2181),g=e(3740);let T=((v=class{set cvcTableScrollToIndex(_){void 0!==_&&this.scrollToIndex(_)}set cvcTableScrollToOffset(_){void 0!==_&&this.scrollToIndex(_)}constructor(_){this.host=_,this.cvcTableScrollOnScroll=new a.vpe,this.cvcTableScrollTargetHeight=140,this.cvcTableScrollFetchCount=25,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300,console.log("table-scroll.directive constructor()")}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroll directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,c.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,s.p)(this.onScrollThrottleTime,o.z,{leading:!0,trailing:!0}),(0,r.b)(_=>this.cvcTableScrollOnScroll.next("scroll")),(0,h.b)(this.onScrollDebounceTime),(0,n.t)(this)).subscribe(_=>{this.cvcTableScrollOnScroll.next("stop")}),this.scrolled$.pipe((0,i.U)(_=>this.viewport.measureScrollOffset("bottom")),(0,u.G)(),(0,l.h)(([_,p])=>p<_&&p{this.cvcTableScrollOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollPageInfo)}catch(p){console.error(p)}})}loadMore(_){const p=this.cvcTableScrollQueryRef;if(!_&&p)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(_&&!p)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(_&&p){const[f,O,M]=[this.cvcTableScrollFetchCount,_.hasNextPage,_.endCursor];if(!f||!M)throw new Error("table-scroll PageInfo invalid.");if(!O)return;p.fetchMore({variables:{first:f,after:M}})}}scrollToIndex(_){const[p,f]=[this.host,this.host.cdkVirtualScrollViewport];if(!p||!f)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");f.scrollToIndex(_)}scrollToOffset(_){const[p,f]=[this.host,this.host.cdkVirtualScrollViewport];if(!p||!f)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");f.scrollToOffset(_)}}).\u0275fac=function(_){return new(_||v)(a.Y36(g.N8))},v.\u0275dir=a.lG2({type:v,selectors:[["","cvcTableScroll",""]],inputs:{cvcTableScrollTargetHeight:"cvcTableScrollTargetHeight",cvcTableScrollQueryRef:"cvcTableScrollQueryRef",cvcTableScrollPageInfo:"cvcTableScrollPageInfo",cvcTableScrollFetchCount:"cvcTableScrollFetchCount",cvcTableScrollToIndex:"cvcTableScrollToIndex",cvcTableScrollToOffset:"cvcTableScrollToOffset"},outputs:{cvcTableScrollOnScroll:"cvcTableScrollOnScroll"}}),v);T=(0,t.gn)([(0,n.c)()],T)},9312:(C,d,e)=>{e.d(d,{w:()=>n});var t=e(6814),a=e(5879);let n=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=a.oAB({type:o}),o.\u0275inj=a.cJS({imports:[t.ez]}),o})()}}]); \ No newline at end of file diff --git a/server/public/3517.e0f070fb12de8314.js b/server/public/3517.971ef8b7911b86b7.js similarity index 99% rename from server/public/3517.e0f070fb12de8314.js rename to server/public/3517.971ef8b7911b86b7.js index f6489484c..6a7257864 100644 --- a/server/public/3517.e0f070fb12de8314.js +++ b/server/public/3517.971ef8b7911b86b7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3517],{6602:(S,v,o)=>{o.r(v),o.d(v,{PagesModule:()=>N});var l=o(6814),h=o(4190),e=o(5879),c=o(6254),g=o(95),u=o(2962),p=o(3740);function b(n,s){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA()()),2&n){const r=s.$implicit;e.xp6(2),e.Oqu(r.awardee),e.xp6(2),e.Oqu(r.org),e.xp6(2),e.Oqu(r.award)}}const y=function(){return[8,12]};let C=(()=>{class n{constructor(){this.funding=[{awardee:"Malachi Griffith",org:"National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH)",award:"R00HG007940"},{awardee:"Obi Lee Griffith",org:"National Cancer Institute (NCI) of NIH",award:"K22CA188163"},{awardee:"Obi Lee Griffith (with Malachi Griffith as co-PI)",org:"NCI including a funding supplement from the Childhood Cancer Data Initiative (CCDI)",award:"U24CA237719 (previously: U01CA209936)"},{awardee:"CIViC",org:"Washington University Institute of Clinical and Translational Sciences from National Center for Advancing Translational Sciences (NCATS) of NIH",award:"UL1TR002345"},{awardee:"Obi Griffith, Malachi Griffith, Gordana Raca",org:"National Cancer Institute (NCI) of NIH",award:"UU24CA258115"},{awardee:"CIViC",org:"Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine.",award:""},{awardee:"CIViC (awarded in cloud credits)",org:"NIH Cloud Credits Model Pilot of the NIH Big Data to Knowledge (BD2K) program",award:""},{awardee:"CIViC (integration with Google BigQuery)",org:"Google",award:""}]}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages-about"]],decls:49,vars:7,consts:[[1,"site-page-header"],[3,"nzGutter"],[3,"nzSpan"],["nzType","inner","nzTitle","Why Use CIViC - Our Elevator Pitch",2,"width","100%"],["nzXs","24","nzSm","24","nzMd","24","nzLg","12","nzXl","12","nzXXl","8"],["nzType","inner","nzTitle","Mission Statement",2,"width","100%"],["href","https://www.civicdb.org","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["src","assets/images/CIViC_principles__shorter.png","alt","CIViC principles",2,"width","100%"],["nzType","inner","nzTitle","Funding",2,"width","100%"],[3,"nzData","nzFrontPagination","nzShowPagination"],["basicTable",""],[4,"ngFor","ngForOf"],["nzXs","24","nzSm","24","nzMd","24","nzXXl","8"],["nzType","inner","nzTitle","Acknowledgements",2,"width","100%"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute",2,"height","50px","margin","12px"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences",2,"height","50px","margin","12px"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health",2,"height","50px","margin","12px"],["src","assets/images/GCBR-Logo-RGB.png","alt","Global Code Biodata Resources",2,"height","50px","margin","12px"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute",2,"height","50px","margin","12px"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis",2,"height","50px","margin","12px"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute",2,"height","50px","margin","12px"]],template:function(r,z){if(1&r&&(e.TgZ(0,"nz-page-header",0)(1,"nz-page-header-title"),e._uU(2," About CIViC "),e.qZA(),e.TgZ(3,"nz-page-header-content")(4,"nz-row",1)(5,"nz-col",2)(6,"nz-card",3),e._uU(7," We developed a free, expert-curated web resource that helps doctors identify the best treatment options for cancer patients based on their unique tumor DNA. Cancer is driven by DNA mutations. Using these mutations to guide patient care requires experts to actively review and summarize the latest scientific advances. Our easily searchable resource coordinates these efforts. The free and open design of our database shares expert cancer mutation knowledge with everyone. "),e.qZA()(),e.TgZ(8,"nz-col",4)(9,"nz-card",5)(10,"p"),e._uU(11," Precision medicine refers to the use of prevention and treatment strategies that are tailored to the unique features of each individual and their disease. In the context of cancer this might involve the identification of specific variants shown to predict response to a targeted therapy. The biomedical literature describing associations between genetic variants and clinically relevant outcomes is large and growing rapidly. Currently variant interpretations exist largely in private or encumbered databases resulting in extensive repetition of effort. Effective precision medicine requires this information to be centralized, debated, and interpreted for application in a clinical setting. CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer, available online at "),e.TgZ(12,"a",6),e._uU(13,"civicdb.org"),e.qZA(),e._uU(14,". Our goal is to enable precision medicine by providing an educational forum for dissemination of knowledge and active discussion of the clinical significance of cancer genome alterations. For more details and to cite CIViC please refer to the "),e.TgZ(15,"a",7),e._uU(16,"CIViC publication"),e.qZA(),e._uU(17," in Nature Genetics. "),e.qZA(),e.TgZ(18,"p"),e._uU(19," All content created in CIViC is, and will continue to be, freely available, without restriction with a "),e.TgZ(20,"a",8),e._uU(21,"Public Domain License"),e.qZA(),e._uU(22,". Anyone can contribute to CIViC by simply registering for an account. Users join the community with \u201cCurator\u201d level privileges that allow them to comment or propose additions or revisions on any knowledge in CIViC. Proposed additions and revisions are then reviewed by users with \u201cEditor\u201d or \u201cAdmin\u201d level privileges before gaining \u201cAccepted\u201d status. Content that has been Submitted but not yet Accepted should be interpreted and used with caution. Community Curators work together with Editors towards comprehensive and accurate interpretations of the clinical relevance of variants in cancer. "),e.qZA(),e._UZ(23,"img",9),e.qZA()(),e.TgZ(24,"nz-col",4)(25,"nz-card",10)(26,"p"),e._uU(27," Malachi Griffith was supported by the National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH) under Award Number R00HG007940. Obi Lee Griffith was supported by the National Cancer Institute of the NIH under Award Number K22CA188163. The CIViC project is also supported by the NCI under Award Numbers U24CA237719 to Obi Lee Griffith (with Malachi Griffith as co-PI), including a funding supplement from the Childhood Cancer Data Initiative (CCDI), and previously U01CA209936 (with Malachi Griffith and Elaine R Mardis as co-PIs). CIViC is also supported by the Washington University Institute of Clinical and Translational Sciences grant UL1TR002345 from the National Center for Advancing Translational Sciences (NCATS) of the National Institutes of Health (NIH). CIViC is also supported by Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine. This research benefited from the use of credits from the National Institutes of Health (NIH) Cloud Credits Model Pilot, a component of the NIH Big Data to Knowledge (BD2K) program. Support for the VCF format and integration with Google BigQuery was funded by Google. The content of this website is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health or other funding sources. "),e.qZA(),e.TgZ(28,"nz-table",11,12)(30,"thead")(31,"tr")(32,"th"),e._uU(33,"Awardee"),e.qZA(),e.TgZ(34,"th"),e._uU(35,"Awarding Organization"),e.qZA(),e.TgZ(36,"th"),e._uU(37,"Award Number"),e.qZA()()(),e.TgZ(38,"tbody"),e.YNc(39,b,7,3,"tr",13),e.qZA()()()(),e.TgZ(40,"nz-col",14)(41,"nz-card",15),e._UZ(42,"img",16)(43,"img",17)(44,"img",18)(45,"img",19)(46,"img",20)(47,"img",21)(48,"img",22),e.qZA()()()()()),2&r){const P=e.MAs(29);e.xp6(4),e.Q6J("nzGutter",e.DdM(6,y)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(23),e.Q6J("nzData",z.funding)("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(11),e.Q6J("ngForOf",P.data)}},dependencies:[l.sg,c.$O,c.u9,c.u5,g.t3,g.SK,u.bd,p.N8,p.Uo,p._C,p.Om,p.p0,p.$Z],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{flex-wrap:nowrap;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 f=o(2574);function x(n,s){1&n&&(e.TgZ(0,"nz-row",5)(1,"nz-col",1)(2,"nz-card",6)(3,"p"),e._uU(4," CIViC provides an educational resource to support better understanding of the current state of precision medicine. It may also provide useful summaries and links to relevant published evidence for the clinical relevance of specific variants. "),e.qZA(),e.TgZ(5,"p"),e._uU(6," For more information on the CIViC knowledge model, please see "),e.TgZ(7,"a",7),e._uU(8,"our documentation"),e.qZA(),e._uU(9,". "),e.qZA()()(),e.TgZ(10,"nz-col",1)(11,"nz-card",8)(12,"p"),e._uU(13," CIViC provides an open forum for community contributions. Anyone can create an account to flag problems, add comments, propose revisions to existing content, or submit new evidence, assertions, or summaries. All proposed additions/revisions enter a pending state until considered for acceptance by a CIViC editor. All content contributed and accepted is immediately considered public domain knowledge. "),e.qZA(),e.TgZ(14,"p"),e._uU(15," For more details on how to contribute please read our "),e.TgZ(16,"a",9),e._uU(17,"curating docs"),e.qZA(),e._uU(18,". "),e.qZA()()(),e.TgZ(19,"nz-col",1)(20,"nz-card",10)(21,"p"),e._uU(22," CIViC data can be retrieved using the underlying GraphQL API. The API documentation is available on "),e.TgZ(23,"a",11),e._uU(24,"GitHub"),e.qZA(),e._uU(25,". "),e.qZA(),e.TgZ(26,"p"),e._uU(27," The GraphiQL user interface found "),e.TgZ(28,"a",12),e._uU(29,"here"),e.qZA(),e._uU(30,' is a good way to get started interacting with the API. You can explore the schema and available queries using the "Docs" explorer found in the upper right. '),e.qZA()()(),e.TgZ(31,"nz-col",1)(32,"nz-card",13)(33,"p"),e._uU(34," We've recorded a few instructional videos to offer overviews of the CIViC application. They are recommended viewing for users wishing to gain a quick understanding of basic CIViC interface elements and workflows. "),e.qZA(),e.TgZ(35,"p"),e._uU(36," These videos can be found on the "),e.TgZ(37,"a",14),e._uU(38,"CIViC YouTube channel"),e.qZA(),e._uU(39,". "),e.qZA()()()()),2&n&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(12),e.Q6J("nzSpan",6))}function w(n,s){1&n&&(e.TgZ(0,"nz-row",5)(1,"nz-col",1)(2,"nz-card",15),e._uU(3," Please follow our Twitter account "),e.TgZ(4,"a",16),e._uU(5,"@CIViCdb"),e.qZA(),e._uU(6,". "),e.qZA()(),e.TgZ(7,"nz-col",1)(8,"nz-card",17),e._uU(9," Please email "),e.TgZ(10,"a",18),e._uU(11,"help@civicdb.org"),e.qZA(),e._uU(12,". "),e.qZA()(),e.TgZ(13,"nz-col",1)(14,"nz-card",19),e._uU(15," Please create an issue in the "),e.TgZ(16,"a",20),e._uU(17,"civic-v2 GitHub repo"),e.qZA(),e._uU(18,". "),e.qZA()()()),2&n&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8))}const T=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages"]],decls:1,vars:0,template:function(r,z){1&r&&e._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),n})(),children:[{path:"about",component:C},{path:"help",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages-help"]],decls:10,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Knowledgebase Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/model.html","target","_blank"],["nzType","inner","nzTitle","Curation Process Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/curating.html","target","_blank"],["nzType","inner","nzTitle","API Documentation",2,"width","100%","height","100%"],["href","https://griffithlab.github.io/civic-v2/","target","_blank"],["href","https://civicdb.org/api/graphiql","target","_blank"],["nzType","inner","nzTitle","Tutorials",2,"width","100%","height","100%"],["href","https://www.youtube.com/playlist?list=PLImz36orVFPCQjx6wjMrYW-IPWGk8HrbX","target","_blank"],["nzType","inner","nzTitle","News and Updates",2,"width","100%"],["href","https://twitter.com/CIViCdb","target","_blank"],["nzType","inner","nzTitle","General Inquiries",2,"width","100%"],["href","mailto:help@civicdb.org","target","_blank"],["nzType","inner","nzTitle","Bug Reports and Feature Requests",2,"width","100%"],["href","https://github.com/griffithlab/civic-v2/issues","target","_blank"]],template:function(r,z){1&r&&(e.TgZ(0,"nz-page-header",0)(1,"nz-page-header-title"),e._uU(2," CIViC Help "),e.qZA(),e.TgZ(3,"nz-page-header-content")(4,"nz-row")(5,"nz-col",1)(6,"div",2)(7,"nz-space",3),e.YNc(8,x,40,5,"nz-row",4),e.YNc(9,w,19,4,"nz-row",4),e.qZA()()()()()()),2&r&&(e.xp6(5),e.Q6J("nzSpan",24))},dependencies:[c.$O,c.u9,c.u5,g.t3,g.SK,f.NU,f.$1,u.bd],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{flex-wrap:nowrap;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})()}]}];let A=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[h.Bz.forChild(T),h.Bz]}),n})(),M=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,c.KJ,g.Jb,f.zf,u.vh,p.HQ]}),n})();var I=o(824);let H=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,I.o7,c.KJ,g.Jb,f.zf,u.vh]}),n})(),N=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,A,M,H]}),n})()},6254:(S,v,o)=>{o.d(v,{$O:()=>k,Jp:()=>Z,KJ:()=>R,ZJ:()=>P,u5:()=>z,u9:()=>s,yG:()=>r});var l=o(9388),h=o(6814),e=o(5879),c=o(8324),g=o(551),u=o(655),p=o(8645),b=o(9773),y=o(7398),C=o(874),f=o(7032),x=o(8802);function w(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"span",9),e.BQk()),2&t){const a=i.$implicit,d=e.oxw(2);e.xp6(1),e.Q6J("nzType",a||d.getBackIcon())}}function D(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.onBack())}),e.TgZ(1,"div",7),e.YNc(2,w,2,1,"ng-container",8),e.qZA()()}if(2&t){const a=e.oxw();e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzBackIcon)}}function O(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzTitle)}}function T(t,i){if(1&t&&(e.TgZ(0,"span",10),e.YNc(1,O,2,1,"ng-container",8),e.qZA()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzTitle)}}function A(t,i){1&t&&e.Hsn(0,6,["*ngIf","!nzTitle"])}function M(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzSubtitle)}}function I(t,i){if(1&t&&(e.TgZ(0,"span",11),e.YNc(1,M,2,1,"ng-container",8),e.qZA()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzSubtitle)}}function H(t,i){1&t&&e.Hsn(0,7,["*ngIf","!nzSubtitle"])}const N=[[["nz-breadcrumb","nz-page-header-breadcrumb",""]],[["nz-avatar","nz-page-header-avatar",""]],[["nz-page-header-tags"],["","nz-page-header-tags",""]],[["nz-page-header-extra"],["","nz-page-header-extra",""]],[["nz-page-header-content"],["","nz-page-header-content",""]],[["nz-page-header-footer"],["","nz-page-header-footer",""]],[["nz-page-header-title"],["","nz-page-header-title",""]],[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]]],n=["nz-breadcrumb[nz-page-header-breadcrumb]","nz-avatar[nz-page-header-avatar]","nz-page-header-tags, [nz-page-header-tags]","nz-page-header-extra, [nz-page-header-extra]","nz-page-header-content, [nz-page-header-content]","nz-page-header-footer, [nz-page-header-footer]","nz-page-header-title, [nz-page-header-title]","nz-page-header-subtitle, [nz-page-header-subtitle]"];let s=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-title"],["","nz-page-header-title",""]],hostAttrs:[1,"ant-page-header-heading-title"],exportAs:["nzPageHeaderTitle"]}),t})(),r=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]],hostAttrs:[1,"ant-page-header-heading-sub-title"],exportAs:["nzPageHeaderSubtitle"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-content"],["","nz-page-header-content",""]],hostAttrs:[1,"ant-page-header-content"],exportAs:["nzPageHeaderContent"]}),t})(),P=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-tags"],["","nz-page-header-tags",""]],hostAttrs:[1,"ant-page-header-heading-tags"],exportAs:["nzPageHeaderTags"]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-extra"],["","nz-page-header-extra",""]],hostAttrs:[1,"ant-page-header-heading-extra"],exportAs:["nzPageHeaderExtra"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-footer"],["","nz-page-header-footer",""]],hostAttrs:[1,"ant-page-header-footer"],exportAs:["nzPageHeaderFooter"]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-breadcrumb","nz-page-header-breadcrumb",""]],exportAs:["nzPageHeaderBreadcrumb"]}),t})(),k=(()=>{class t{constructor(a,d,m,_,F,q){this.location=a,this.nzConfigService=d,this.elementRef=m,this.nzResizeObserver=_,this.cdr=F,this.directionality=q,this._nzModuleName="pageHeader",this.nzBackIcon=null,this.nzGhost=!0,this.nzBack=new e.vpe,this.compact=!1,this.destroy$=new p.x,this.dir="ltr"}ngOnInit(){this.directionality.change?.pipe((0,b.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,y.U)(([a])=>a.contentRect.width),(0,b.R)(this.destroy$)).subscribe(a=>{this.compact=a<768,this.cdr.markForCheck()})}onBack(){if(this.nzBack.observers.length)this.nzBack.emit();else{if(!this.location)throw new Error(`${f.Bq} you should import 'RouterModule' or register 'Location' if you want to use 'nzBack' default event!`);this.location.back()}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getBackIcon(){return"rtl"===this.dir?"arrow-right":"arrow-left"}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(h.Ye,8),e.Y36(C.jY),e.Y36(e.SBq),e.Y36(x.D3),e.Y36(e.sBO),e.Y36(l.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nz-page-header"]],contentQueries:function(a,d,m){if(1&a&&(e.Suo(m,U,5),e.Suo(m,G,5)),2&a){let _;e.iGM(_=e.CRH())&&(d.nzPageHeaderFooter=_.first),e.iGM(_=e.CRH())&&(d.nzPageHeaderBreadcrumb=_.first)}},hostAttrs:[1,"ant-page-header"],hostVars:10,hostBindings:function(a,d){2&a&&e.ekj("has-footer",d.nzPageHeaderFooter)("ant-page-header-ghost",d.nzGhost)("has-breadcrumb",d.nzPageHeaderBreadcrumb)("ant-page-header-compact",d.compact)("ant-page-header-rtl","rtl"===d.dir)},inputs:{nzBackIcon:"nzBackIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzGhost:"nzGhost"},outputs:{nzBack:"nzBack"},exportAs:["nzPageHeader"],ngContentSelectors:n,decls:13,vars:5,consts:[[1,"ant-page-header-heading"],[1,"ant-page-header-heading-left"],["class","ant-page-header-back",3,"click",4,"ngIf"],["class","ant-page-header-heading-title",4,"ngIf"],[4,"ngIf"],["class","ant-page-header-heading-sub-title",4,"ngIf"],[1,"ant-page-header-back",3,"click"],["role","button","tabindex","0",1,"ant-page-header-back-button"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"ant-page-header-heading-title"],[1,"ant-page-header-heading-sub-title"]],template:function(a,d){1&a&&(e.F$t(N),e.Hsn(0),e.TgZ(1,"div",0)(2,"div",1),e.YNc(3,D,3,1,"div",2),e.Hsn(4,1),e.YNc(5,T,2,1,"span",3),e.YNc(6,A,1,0,"ng-content",4),e.YNc(7,I,2,1,"span",5),e.YNc(8,H,1,0,"ng-content",4),e.Hsn(9,2),e.qZA(),e.Hsn(10,3),e.qZA(),e.Hsn(11,4),e.Hsn(12,5)),2&a&&(e.xp6(3),e.Q6J("ngIf",null!==d.nzBackIcon),e.xp6(2),e.Q6J("ngIf",d.nzTitle),e.xp6(1),e.Q6J("ngIf",!d.nzTitle),e.xp6(1),e.Q6J("ngIf",d.nzSubtitle),e.xp6(1),e.Q6J("ngIf",!d.nzSubtitle))},dependencies:[h.O5,c.f,g.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,C.oS)()],t.prototype,"nzGhost",void 0),t})(),R=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.vT,h.ez,c.T,g.PV]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3517],{3517:(S,v,o)=>{o.r(v),o.d(v,{PagesModule:()=>N});var l=o(6814),h=o(4190),e=o(5879),c=o(6254),g=o(95),u=o(2962),p=o(3740);function b(n,s){if(1&n&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA()()),2&n){const r=s.$implicit;e.xp6(2),e.Oqu(r.awardee),e.xp6(2),e.Oqu(r.org),e.xp6(2),e.Oqu(r.award)}}const y=function(){return[8,12]};let C=(()=>{class n{constructor(){this.funding=[{awardee:"Malachi Griffith",org:"National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH)",award:"R00HG007940"},{awardee:"Obi Lee Griffith",org:"National Cancer Institute (NCI) of NIH",award:"K22CA188163"},{awardee:"Obi Lee Griffith (with Malachi Griffith as co-PI)",org:"NCI including a funding supplement from the Childhood Cancer Data Initiative (CCDI)",award:"U24CA237719 (previously: U01CA209936)"},{awardee:"CIViC",org:"Washington University Institute of Clinical and Translational Sciences from National Center for Advancing Translational Sciences (NCATS) of NIH",award:"UL1TR002345"},{awardee:"Obi Griffith, Malachi Griffith, Gordana Raca",org:"National Cancer Institute (NCI) of NIH",award:"UU24CA258115"},{awardee:"CIViC",org:"Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine.",award:""},{awardee:"CIViC (awarded in cloud credits)",org:"NIH Cloud Credits Model Pilot of the NIH Big Data to Knowledge (BD2K) program",award:""},{awardee:"CIViC (integration with Google BigQuery)",org:"Google",award:""}]}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages-about"]],decls:49,vars:7,consts:[[1,"site-page-header"],[3,"nzGutter"],[3,"nzSpan"],["nzType","inner","nzTitle","Why Use CIViC - Our Elevator Pitch",2,"width","100%"],["nzXs","24","nzSm","24","nzMd","24","nzLg","12","nzXl","12","nzXXl","8"],["nzType","inner","nzTitle","Mission Statement",2,"width","100%"],["href","https://www.civicdb.org","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["src","assets/images/CIViC_principles__shorter.png","alt","CIViC principles",2,"width","100%"],["nzType","inner","nzTitle","Funding",2,"width","100%"],[3,"nzData","nzFrontPagination","nzShowPagination"],["basicTable",""],[4,"ngFor","ngForOf"],["nzXs","24","nzSm","24","nzMd","24","nzXXl","8"],["nzType","inner","nzTitle","Acknowledgements",2,"width","100%"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute",2,"height","50px","margin","12px"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences",2,"height","50px","margin","12px"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health",2,"height","50px","margin","12px"],["src","assets/images/GCBR-Logo-RGB.png","alt","Global Code Biodata Resources",2,"height","50px","margin","12px"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute",2,"height","50px","margin","12px"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis",2,"height","50px","margin","12px"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute",2,"height","50px","margin","12px"]],template:function(r,z){if(1&r&&(e.TgZ(0,"nz-page-header",0)(1,"nz-page-header-title"),e._uU(2," About CIViC "),e.qZA(),e.TgZ(3,"nz-page-header-content")(4,"nz-row",1)(5,"nz-col",2)(6,"nz-card",3),e._uU(7," We developed a free, expert-curated web resource that helps doctors identify the best treatment options for cancer patients based on their unique tumor DNA. Cancer is driven by DNA mutations. Using these mutations to guide patient care requires experts to actively review and summarize the latest scientific advances. Our easily searchable resource coordinates these efforts. The free and open design of our database shares expert cancer mutation knowledge with everyone. "),e.qZA()(),e.TgZ(8,"nz-col",4)(9,"nz-card",5)(10,"p"),e._uU(11," Precision medicine refers to the use of prevention and treatment strategies that are tailored to the unique features of each individual and their disease. In the context of cancer this might involve the identification of specific variants shown to predict response to a targeted therapy. The biomedical literature describing associations between genetic variants and clinically relevant outcomes is large and growing rapidly. Currently variant interpretations exist largely in private or encumbered databases resulting in extensive repetition of effort. Effective precision medicine requires this information to be centralized, debated, and interpreted for application in a clinical setting. CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer, available online at "),e.TgZ(12,"a",6),e._uU(13,"civicdb.org"),e.qZA(),e._uU(14,". Our goal is to enable precision medicine by providing an educational forum for dissemination of knowledge and active discussion of the clinical significance of cancer genome alterations. For more details and to cite CIViC please refer to the "),e.TgZ(15,"a",7),e._uU(16,"CIViC publication"),e.qZA(),e._uU(17," in Nature Genetics. "),e.qZA(),e.TgZ(18,"p"),e._uU(19," All content created in CIViC is, and will continue to be, freely available, without restriction with a "),e.TgZ(20,"a",8),e._uU(21,"Public Domain License"),e.qZA(),e._uU(22,". Anyone can contribute to CIViC by simply registering for an account. Users join the community with \u201cCurator\u201d level privileges that allow them to comment or propose additions or revisions on any knowledge in CIViC. Proposed additions and revisions are then reviewed by users with \u201cEditor\u201d or \u201cAdmin\u201d level privileges before gaining \u201cAccepted\u201d status. Content that has been Submitted but not yet Accepted should be interpreted and used with caution. Community Curators work together with Editors towards comprehensive and accurate interpretations of the clinical relevance of variants in cancer. "),e.qZA(),e._UZ(23,"img",9),e.qZA()(),e.TgZ(24,"nz-col",4)(25,"nz-card",10)(26,"p"),e._uU(27," Malachi Griffith was supported by the National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH) under Award Number R00HG007940. Obi Lee Griffith was supported by the National Cancer Institute of the NIH under Award Number K22CA188163. The CIViC project is also supported by the NCI under Award Numbers U24CA237719 to Obi Lee Griffith (with Malachi Griffith as co-PI), including a funding supplement from the Childhood Cancer Data Initiative (CCDI), and previously U01CA209936 (with Malachi Griffith and Elaine R Mardis as co-PIs). CIViC is also supported by the Washington University Institute of Clinical and Translational Sciences grant UL1TR002345 from the National Center for Advancing Translational Sciences (NCATS) of the National Institutes of Health (NIH). CIViC is also supported by Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine. This research benefited from the use of credits from the National Institutes of Health (NIH) Cloud Credits Model Pilot, a component of the NIH Big Data to Knowledge (BD2K) program. Support for the VCF format and integration with Google BigQuery was funded by Google. The content of this website is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health or other funding sources. "),e.qZA(),e.TgZ(28,"nz-table",11,12)(30,"thead")(31,"tr")(32,"th"),e._uU(33,"Awardee"),e.qZA(),e.TgZ(34,"th"),e._uU(35,"Awarding Organization"),e.qZA(),e.TgZ(36,"th"),e._uU(37,"Award Number"),e.qZA()()(),e.TgZ(38,"tbody"),e.YNc(39,b,7,3,"tr",13),e.qZA()()()(),e.TgZ(40,"nz-col",14)(41,"nz-card",15),e._UZ(42,"img",16)(43,"img",17)(44,"img",18)(45,"img",19)(46,"img",20)(47,"img",21)(48,"img",22),e.qZA()()()()()),2&r){const P=e.MAs(29);e.xp6(4),e.Q6J("nzGutter",e.DdM(6,y)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(23),e.Q6J("nzData",z.funding)("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(11),e.Q6J("ngForOf",P.data)}},dependencies:[l.sg,c.$O,c.u9,c.u5,g.t3,g.SK,u.bd,p.N8,p.Uo,p._C,p.Om,p.p0,p.$Z],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{flex-wrap:nowrap;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 f=o(2574);function x(n,s){1&n&&(e.TgZ(0,"nz-row",5)(1,"nz-col",1)(2,"nz-card",6)(3,"p"),e._uU(4," CIViC provides an educational resource to support better understanding of the current state of precision medicine. It may also provide useful summaries and links to relevant published evidence for the clinical relevance of specific variants. "),e.qZA(),e.TgZ(5,"p"),e._uU(6," For more information on the CIViC knowledge model, please see "),e.TgZ(7,"a",7),e._uU(8,"our documentation"),e.qZA(),e._uU(9,". "),e.qZA()()(),e.TgZ(10,"nz-col",1)(11,"nz-card",8)(12,"p"),e._uU(13," CIViC provides an open forum for community contributions. Anyone can create an account to flag problems, add comments, propose revisions to existing content, or submit new evidence, assertions, or summaries. All proposed additions/revisions enter a pending state until considered for acceptance by a CIViC editor. All content contributed and accepted is immediately considered public domain knowledge. "),e.qZA(),e.TgZ(14,"p"),e._uU(15," For more details on how to contribute please read our "),e.TgZ(16,"a",9),e._uU(17,"curating docs"),e.qZA(),e._uU(18,". "),e.qZA()()(),e.TgZ(19,"nz-col",1)(20,"nz-card",10)(21,"p"),e._uU(22," CIViC data can be retrieved using the underlying GraphQL API. The API documentation is available on "),e.TgZ(23,"a",11),e._uU(24,"GitHub"),e.qZA(),e._uU(25,". "),e.qZA(),e.TgZ(26,"p"),e._uU(27," The GraphiQL user interface found "),e.TgZ(28,"a",12),e._uU(29,"here"),e.qZA(),e._uU(30,' is a good way to get started interacting with the API. You can explore the schema and available queries using the "Docs" explorer found in the upper right. '),e.qZA()()(),e.TgZ(31,"nz-col",1)(32,"nz-card",13)(33,"p"),e._uU(34," We've recorded a few instructional videos to offer overviews of the CIViC application. They are recommended viewing for users wishing to gain a quick understanding of basic CIViC interface elements and workflows. "),e.qZA(),e.TgZ(35,"p"),e._uU(36," These videos can be found on the "),e.TgZ(37,"a",14),e._uU(38,"CIViC YouTube channel"),e.qZA(),e._uU(39,". "),e.qZA()()()()),2&n&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(12),e.Q6J("nzSpan",6))}function w(n,s){1&n&&(e.TgZ(0,"nz-row",5)(1,"nz-col",1)(2,"nz-card",15),e._uU(3," Please follow our Twitter account "),e.TgZ(4,"a",16),e._uU(5,"@CIViCdb"),e.qZA(),e._uU(6,". "),e.qZA()(),e.TgZ(7,"nz-col",1)(8,"nz-card",17),e._uU(9," Please email "),e.TgZ(10,"a",18),e._uU(11,"help@civicdb.org"),e.qZA(),e._uU(12,". "),e.qZA()(),e.TgZ(13,"nz-col",1)(14,"nz-card",19),e._uU(15," Please create an issue in the "),e.TgZ(16,"a",20),e._uU(17,"civic-v2 GitHub repo"),e.qZA(),e._uU(18,". "),e.qZA()()()),2&n&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8))}const T=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages"]],decls:1,vars:0,template:function(r,z){1&r&&e._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),n})(),children:[{path:"about",component:C},{path:"help",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-pages-help"]],decls:10,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Knowledgebase Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/model.html","target","_blank"],["nzType","inner","nzTitle","Curation Process Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/curating.html","target","_blank"],["nzType","inner","nzTitle","API Documentation",2,"width","100%","height","100%"],["href","https://griffithlab.github.io/civic-v2/","target","_blank"],["href","https://civicdb.org/api/graphiql","target","_blank"],["nzType","inner","nzTitle","Tutorials",2,"width","100%","height","100%"],["href","https://www.youtube.com/playlist?list=PLImz36orVFPCQjx6wjMrYW-IPWGk8HrbX","target","_blank"],["nzType","inner","nzTitle","News and Updates",2,"width","100%"],["href","https://twitter.com/CIViCdb","target","_blank"],["nzType","inner","nzTitle","General Inquiries",2,"width","100%"],["href","mailto:help@civicdb.org","target","_blank"],["nzType","inner","nzTitle","Bug Reports and Feature Requests",2,"width","100%"],["href","https://github.com/griffithlab/civic-v2/issues","target","_blank"]],template:function(r,z){1&r&&(e.TgZ(0,"nz-page-header",0)(1,"nz-page-header-title"),e._uU(2," CIViC Help "),e.qZA(),e.TgZ(3,"nz-page-header-content")(4,"nz-row")(5,"nz-col",1)(6,"div",2)(7,"nz-space",3),e.YNc(8,x,40,5,"nz-row",4),e.YNc(9,w,19,4,"nz-row",4),e.qZA()()()()()()),2&r&&(e.xp6(5),e.Q6J("nzSpan",24))},dependencies:[c.$O,c.u9,c.u5,g.t3,g.SK,f.NU,f.$1,u.bd],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{flex-wrap:nowrap;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})()}]}];let A=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[h.Bz.forChild(T),h.Bz]}),n})(),M=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,c.KJ,g.Jb,f.zf,u.vh,p.HQ]}),n})();var I=o(824);let H=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,I.o7,c.KJ,g.Jb,f.zf,u.vh]}),n})(),N=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez,A,M,H]}),n})()},6254:(S,v,o)=>{o.d(v,{$O:()=>k,Jp:()=>Z,KJ:()=>R,ZJ:()=>P,u5:()=>z,u9:()=>s,yG:()=>r});var l=o(9388),h=o(6814),e=o(5879),c=o(8324),g=o(551),u=o(655),p=o(8645),b=o(9773),y=o(7398),C=o(874),f=o(7032),x=o(8802);function w(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"span",9),e.BQk()),2&t){const a=i.$implicit,d=e.oxw(2);e.xp6(1),e.Q6J("nzType",a||d.getBackIcon())}}function D(t,i){if(1&t){const a=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.onBack())}),e.TgZ(1,"div",7),e.YNc(2,w,2,1,"ng-container",8),e.qZA()()}if(2&t){const a=e.oxw();e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzBackIcon)}}function O(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzTitle)}}function T(t,i){if(1&t&&(e.TgZ(0,"span",10),e.YNc(1,O,2,1,"ng-container",8),e.qZA()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzTitle)}}function A(t,i){1&t&&e.Hsn(0,6,["*ngIf","!nzTitle"])}function M(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzSubtitle)}}function I(t,i){if(1&t&&(e.TgZ(0,"span",11),e.YNc(1,M,2,1,"ng-container",8),e.qZA()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzSubtitle)}}function H(t,i){1&t&&e.Hsn(0,7,["*ngIf","!nzSubtitle"])}const N=[[["nz-breadcrumb","nz-page-header-breadcrumb",""]],[["nz-avatar","nz-page-header-avatar",""]],[["nz-page-header-tags"],["","nz-page-header-tags",""]],[["nz-page-header-extra"],["","nz-page-header-extra",""]],[["nz-page-header-content"],["","nz-page-header-content",""]],[["nz-page-header-footer"],["","nz-page-header-footer",""]],[["nz-page-header-title"],["","nz-page-header-title",""]],[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]]],n=["nz-breadcrumb[nz-page-header-breadcrumb]","nz-avatar[nz-page-header-avatar]","nz-page-header-tags, [nz-page-header-tags]","nz-page-header-extra, [nz-page-header-extra]","nz-page-header-content, [nz-page-header-content]","nz-page-header-footer, [nz-page-header-footer]","nz-page-header-title, [nz-page-header-title]","nz-page-header-subtitle, [nz-page-header-subtitle]"];let s=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-title"],["","nz-page-header-title",""]],hostAttrs:[1,"ant-page-header-heading-title"],exportAs:["nzPageHeaderTitle"]}),t})(),r=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]],hostAttrs:[1,"ant-page-header-heading-sub-title"],exportAs:["nzPageHeaderSubtitle"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-content"],["","nz-page-header-content",""]],hostAttrs:[1,"ant-page-header-content"],exportAs:["nzPageHeaderContent"]}),t})(),P=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-tags"],["","nz-page-header-tags",""]],hostAttrs:[1,"ant-page-header-heading-tags"],exportAs:["nzPageHeaderTags"]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-extra"],["","nz-page-header-extra",""]],hostAttrs:[1,"ant-page-header-heading-extra"],exportAs:["nzPageHeaderExtra"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-page-header-footer"],["","nz-page-header-footer",""]],hostAttrs:[1,"ant-page-header-footer"],exportAs:["nzPageHeaderFooter"]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275dir=e.lG2({type:t,selectors:[["nz-breadcrumb","nz-page-header-breadcrumb",""]],exportAs:["nzPageHeaderBreadcrumb"]}),t})(),k=(()=>{class t{constructor(a,d,m,_,F,q){this.location=a,this.nzConfigService=d,this.elementRef=m,this.nzResizeObserver=_,this.cdr=F,this.directionality=q,this._nzModuleName="pageHeader",this.nzBackIcon=null,this.nzGhost=!0,this.nzBack=new e.vpe,this.compact=!1,this.destroy$=new p.x,this.dir="ltr"}ngOnInit(){this.directionality.change?.pipe((0,b.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,y.U)(([a])=>a.contentRect.width),(0,b.R)(this.destroy$)).subscribe(a=>{this.compact=a<768,this.cdr.markForCheck()})}onBack(){if(this.nzBack.observers.length)this.nzBack.emit();else{if(!this.location)throw new Error(`${f.Bq} you should import 'RouterModule' or register 'Location' if you want to use 'nzBack' default event!`);this.location.back()}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getBackIcon(){return"rtl"===this.dir?"arrow-right":"arrow-left"}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(h.Ye,8),e.Y36(C.jY),e.Y36(e.SBq),e.Y36(x.D3),e.Y36(e.sBO),e.Y36(l.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nz-page-header"]],contentQueries:function(a,d,m){if(1&a&&(e.Suo(m,U,5),e.Suo(m,G,5)),2&a){let _;e.iGM(_=e.CRH())&&(d.nzPageHeaderFooter=_.first),e.iGM(_=e.CRH())&&(d.nzPageHeaderBreadcrumb=_.first)}},hostAttrs:[1,"ant-page-header"],hostVars:10,hostBindings:function(a,d){2&a&&e.ekj("has-footer",d.nzPageHeaderFooter)("ant-page-header-ghost",d.nzGhost)("has-breadcrumb",d.nzPageHeaderBreadcrumb)("ant-page-header-compact",d.compact)("ant-page-header-rtl","rtl"===d.dir)},inputs:{nzBackIcon:"nzBackIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzGhost:"nzGhost"},outputs:{nzBack:"nzBack"},exportAs:["nzPageHeader"],ngContentSelectors:n,decls:13,vars:5,consts:[[1,"ant-page-header-heading"],[1,"ant-page-header-heading-left"],["class","ant-page-header-back",3,"click",4,"ngIf"],["class","ant-page-header-heading-title",4,"ngIf"],[4,"ngIf"],["class","ant-page-header-heading-sub-title",4,"ngIf"],[1,"ant-page-header-back",3,"click"],["role","button","tabindex","0",1,"ant-page-header-back-button"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"ant-page-header-heading-title"],[1,"ant-page-header-heading-sub-title"]],template:function(a,d){1&a&&(e.F$t(N),e.Hsn(0),e.TgZ(1,"div",0)(2,"div",1),e.YNc(3,D,3,1,"div",2),e.Hsn(4,1),e.YNc(5,T,2,1,"span",3),e.YNc(6,A,1,0,"ng-content",4),e.YNc(7,I,2,1,"span",5),e.YNc(8,H,1,0,"ng-content",4),e.Hsn(9,2),e.qZA(),e.Hsn(10,3),e.qZA(),e.Hsn(11,4),e.Hsn(12,5)),2&a&&(e.xp6(3),e.Q6J("ngIf",null!==d.nzBackIcon),e.xp6(2),e.Q6J("ngIf",d.nzTitle),e.xp6(1),e.Q6J("ngIf",!d.nzTitle),e.xp6(1),e.Q6J("ngIf",d.nzSubtitle),e.xp6(1),e.Q6J("ngIf",!d.nzSubtitle))},dependencies:[h.O5,c.f,g.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,C.oS)()],t.prototype,"nzGhost",void 0),t})(),R=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.vT,h.ez,c.T,g.PV]}),t})()}}]); \ No newline at end of file diff --git a/server/public/3575.92e853b16ef2b3b4.js b/server/public/3575.92e853b16ef2b3b4.js new file mode 100644 index 000000000..1d032da82 --- /dev/null +++ b/server/public/3575.92e853b16ef2b3b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3575],{1834:(K,$,e)=>{e.d($,{m:()=>F});var t=e(5879),f=e(6814),i=e(5695),n=e(551),T=e(3488),P=e(270),S=e(4786),x=e(9408),E=e(5959),M=e(4121),B=e(356),z=e(215),D=e(2606);function N(_,u){if(1&_&&(t.ynx(0),t._UZ(1,"span",2),t.BQk()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("innerHtml",r.text,t.oJD)}}function J(_,u){if(1&_&&(t.ynx(0),t._UZ(1,"cvc-user-tag",3),t.BQk()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("user",r)}}const y=function(_,u,r,Y){return{id:_,name:u,link:r,revisionSetId:Y}};function Q(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-revision-tag",6),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("revision",t.l5B(1,y,r.entityId,r.displayName,r.link,r.revisionSetId))}}const U=function(_,u,r){return{id:_,name:u,link:r}};function I(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-gene-tag",7),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("gene",t.kEZ(1,U,r.entityId,r.displayName,r.link))}}const Z=function(_,u,r,Y){return{id:_,name:u,link:r,deprecated:Y}};function O(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-tag",8),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variant",t.l5B(1,Z,r.entityId,r.displayName,r.link,r.deprecated))}}function L(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-group-tag",9),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variantgroup",t.kEZ(1,U,r.entityId,r.displayName,r.link))}}const R=function(_,u,r,Y){return{id:_,name:u,status:r,link:Y}};function v(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-evidence-tag",10),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("evidence",t.l5B(1,R,r.entityId,r.displayName,r.status,r.link))}}function h(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-assertion-tag",11),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("assertion",t.l5B(1,R,r.entityId,r.displayName,r.status,r.link))}}const m=function(_,u){return{id:_,name:u}};function s(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-organization-tag",12),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("org",t.WLB(1,m,r.entityId,r.displayName))}}function c(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-molecular-profile-tag",13),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("molecularProfile",t.l5B(1,Z,r.entityId,r.displayName,r.link,r.deprecated))}}function g(_,u){if(1&_&&(t.TgZ(0,"span")(1,"nz-tag"),t._UZ(2,"i",14),t._uU(3),t.qZA()()),2&_){const r=t.oxw(2).$implicit;t.xp6(2),t.MGl("nzType","civic-",r.displayName.slice(0,-1),""),t.xp6(1),t.hij(" ",r.displayName,"")}}function C(_,u){if(1&_&&(t.ynx(0)(1,4),t.YNc(2,Q,2,6,"span",5),t.YNc(3,I,2,5,"span",5),t.YNc(4,O,2,6,"span",5),t.YNc(5,L,2,5,"span",5),t.YNc(6,v,2,6,"span",5),t.YNc(7,h,2,6,"span",5),t.YNc(8,s,2,4,"span",5),t.YNc(9,c,2,6,"span",5),t.YNc(10,g,4,2,"span",5),t.BQk()()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("ngSwitch",r.tagType),t.xp6(1),t.Q6J("ngSwitchCase","REVISION"),t.xp6(1),t.Q6J("ngSwitchCase","GENE"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT_GROUP"),t.xp6(1),t.Q6J("ngSwitchCase","EVIDENCE_ITEM"),t.xp6(1),t.Q6J("ngSwitchCase","ASSERTION"),t.xp6(1),t.Q6J("ngSwitchCase","ORGANIZATION"),t.xp6(1),t.Q6J("ngSwitchCase","MOLECULAR_PROFILE"),t.xp6(1),t.Q6J("ngSwitchCase","ROLE")}}function A(_,u){if(1&_&&(t.ynx(0),t.YNc(1,N,2,1,"ng-container",1),t.YNc(2,J,2,1,"ng-container",1),t.YNc(3,C,11,10,"ng-container",1),t.BQk()),2&_){const r=u.$implicit;t.xp6(1),t.Q6J("ngIf","CommentTextSegment"==r.__typename),t.xp6(1),t.Q6J("ngIf","User"==r.__typename),t.xp6(1),t.Q6J("ngIf","CommentTagSegment"==r.__typename)}}let F=(()=>{class _{ngOnInit(){if(void 0===this.commentBodySegments)throw new Error("Must pass a list of comment body segments into comment body component.")}}return _.\u0275fac=function(r){return new(r||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["cvc-comment-body"]],inputs:{commentBodySegments:"commentBodySegments"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"innerHtml"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision"],[3,"gene"],[3,"variant"],[3,"variantgroup"],[3,"evidence"],[3,"assertion"],[3,"org"],[3,"molecularProfile"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(r,Y){1&r&&t.YNc(0,A,4,3,"ng-container",0),2&r&&t.Q6J("ngForOf",Y.commentBodySegments)},dependencies:[f.sg,f.O5,f.RF,f.n9,i.j,n.Ls,T.p,P.w,S.O,x.I,E.u,M.H,B.I,z.m,D.p],encapsulation:2}),_})()},5565:(K,$,e)=>{e.d($,{D:()=>pn});var c,t=e(313),f=e(7398),i=e(4223),n=e(5879),T=e(6814),P=e(2840),S=e(855),x=e(95),E=e(2962),M=e(6976),B=e(551),z=e(6928),D=e(2574),N=e(655),J=e(2024),y=e(1791),Q=e(951),U=e(7473),I=e(6223),Z=e(1958),O=e(3599),L=e(2669),R=e(3903),v=e(6109),h=e(6943),m=e(5883),s=e(1446);function g(a,p){if(1&a){const o=n.EpF();n.TgZ(0,"nz-alert",6),n.NdJ("nzOnClose",function(){n.CHM(o);const d=n.oxw();return n.KtG(d.onSuccessBannerClose())}),n.qZA()}}function C(a,p){if(1&a&&(n.TgZ(0,"nz-form-item"),n._UZ(1,"cvc-form-errors-alert",7),n.qZA()),2&a){const o=n.oxw();n.xp6(1),n.Q6J("errors",o.errorMessages)}}let A=((c=class{constructor(p,o,l){this.viewerService=p,this.addCommentGql=o,this.networkErrorService=l,this.commentAddedEvent=new n.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,y.t)(this)).subscribe(d=>{this.mostRecentOrg=d.mostRecentOrg}),this.addCommentMutator=new J.U(this.networkErrorService)}submitComment(){if(this.commentText){this.errorMessages=[];let o=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});o.submitSuccess$.pipe((0,y.t)(this)).subscribe(l=>{l&&(this.resetForm(),this.success=!0)}),o.submitError$.pipe((0,y.t)(this)).subscribe(l=>{l&&(this.errorMessages=l,this.success=!1)}),o.isSubmitting$.pipe((0,y.t)(this)).subscribe(l=>{this.loading=l})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}}).\u0275fac=function(p){return new(p||c)(n.Y36(Q.a),n.Y36(t.iGM),n.Y36(U.Y))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:11,vars:7,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(p,o){1&p&&(n.TgZ(0,"nz-card"),n.YNc(1,g,1,0,"nz-alert",0),n.TgZ(2,"form",1),n.NdJ("ngSubmit",function(){return o.submitComment()}),n.YNc(3,C,2,1,"nz-form-item",2),n.TgZ(4,"cvc-comment-input-form",3),n.NdJ("commentChange",function(d){return o.commentText=d}),n.qZA(),n.TgZ(5,"nz-spin",4)(6,"nz-form-item")(7,"nz-form-control")(8,"cvc-form-buttons")(9,"button",5),n._uU(10," Add Comment "),n.qZA()()()()()()()),2&p&&(n.xp6(1),n.Q6J("ngIf",o.success),n.xp6(2),n.Q6J("ngIf",o.errorMessages.length>0),n.xp6(1),n.Q6J("comment",o.commentText),n.xp6(1),n.Q6J("nzSpinning",o.loading),n.xp6(4),n.Q6J("disabled",o.loading||!(void 0!==o.commentText&&o.commentText.length>=10))("nzTooltipTrigger",o.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==o.mostRecentOrg?null:o.mostRecentOrg.name)))},dependencies:[T.O5,I._Y,I.JL,P.ix,S.w,Z.dQ,E.bd,x.t3,x.SK,O.Lr,O.Nx,O.Fd,L.W,R.r,v.SY,I.F,h.V,m.Z,s.b],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),c);A=(0,N.gn)([(0,y.c)()],A);var F=e(6794),_=e(1320),u=e(1834),r=e(5573);function Y(a,p){if(1&a&&n._UZ(0,"nz-avatar",4),2&a){const o=n.oxw();n.Q6J("nzSrc",o.comment.commenter.profileImagePath)}}function G(a,p){1&a&&n._UZ(0,"nz-avatar",5)}let j=(()=>{class a{ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-comment-display"]],inputs:{comment:"comment"},decls:7,vars:7,consts:[[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"commentBodySegments"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"]],template:function(o,l){if(1&o&&(n.TgZ(0,"nz-comment",0),n.ALo(1,"timeAgo"),n.YNc(2,Y,1,1,"nz-avatar",1),n.YNc(3,G,1,0,"ng-template",null,2,n.W1O),n.TgZ(5,"nz-comment-content"),n._UZ(6,"cvc-comment-body",3),n.qZA()()),2&o){const d=n.MAs(4);n.Q6J("nzAuthor",l.comment.commenter.displayName)("nzDatetime",n.lcZ(1,5,l.comment.createdAt)),n.xp6(2),n.Q6J("ngIf",l.comment.commenter.profileImagePath)("ngIfElse",d),n.xp6(4),n.Q6J("commentBodySegments",l.comment.parsedComment)}},dependencies:[T.O5,_.WE,_.DA,_.Y4,z.Dz,u.m,r.x],encapsulation:2}),a})();var H=e(8091),V=e(6116);function X(a,p){if(1&a){const o=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){n.CHM(o);const d=n.oxw().ngIf,W=n.oxw(3);return n.KtG(W.onLoadMore(d.startCursor))}),n._uU(2," Load older comments "),n.qZA()()}}function b(a,p){if(1&a&&(n.TgZ(0,"nz-list-header"),n.YNc(1,X,3,0,"div",17),n.qZA()),2&a){const o=p.ngIf;n.xp6(1),n.Q6J("ngIf",o.hasPreviousPage)}}function q(a,p){if(1&a&&(n.TgZ(0,"nz-list-item"),n._UZ(1,"cvc-comment-display",20),n.qZA()),2&a){const o=p.$implicit;n.xp6(1),n.Q6J("comment",o)}}function k(a,p){if(1&a&&(n.TgZ(0,"nz-card",13)(1,"nz-list",14),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.YNc(4,b,2,1,"nz-list-header",15),n.ALo(5,"ngrxPush"),n.YNc(6,q,2,1,"ng-template",null,16,n.W1O),n.qZA()()),2&a){const o=n.MAs(7),l=n.oxw(2);n.xp6(1),n.Q6J("nzDataSource",n.lcZ(2,4,l.comments$))("nzLoading",n.lcZ(3,6,l.loading$))("nzRenderItem",o),n.xp6(3),n.Q6J("ngIf",n.lcZ(5,8,l.pageInfo$))}}function nn(a,p){if(1&a){const o=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){n.CHM(o);const d=n.oxw(2);return n.KtG(d.refreshList())}),n.qZA()}if(2&a){const o=n.oxw(2);n.Q6J("subject",o.commentable)}}function tn(a,p){if(1&a&&n._UZ(0,"nz-avatar",24),2&a){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function en(a,p){if(1&a&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&a){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.displayName.charAt(0)))}}function on(a,p){if(1&a&&(n.YNc(0,tn,1,1,"nz-avatar",22),n.YNc(1,en,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&a){const o=p.$implicit,l=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",l),n.xp6(4),n.Oqu(o.displayName)}}function mn(a,p){if(1&a&&n._UZ(0,"nz-avatar",24),2&a){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function cn(a,p){if(1&a&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&a){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.displayName.charAt(0)))}}function an(a,p){if(1&a&&(n.YNc(0,mn,1,1,"nz-avatar",22),n.YNc(1,cn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&a){const o=p.$implicit,l=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",l),n.xp6(4),n.Oqu(o.displayName)}}function sn(a,p){if(1&a&&(n._UZ(0,"nz-avatar",26),n.TgZ(1,"span"),n._uU(2),n.qZA()),2&a){const o=p.$implicit;n.MGl("nzIcon","civic-",o.tag.displayName,""),n.xp6(2),n.hij("",o.tag.displayName,"s")}}function rn(a,p){if(1&a&&(n._UZ(0,"i",27),n.ALo(1,"iconNameForSubscribableEntity"),n.TgZ(2,"span"),n._uU(3),n.qZA()),2&a){const o=p.$implicit;n.Q6J("nzType",n.lcZ(1,2,o.tag.tagType)),n.xp6(3),n.Oqu(o.tag.displayName)}}const w=function(){return[]};function _n(a,p){if(1&a){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),n.YNc(4,k,8,10,"nz-card",5),n.YNc(5,nn,1,1,"cvc-comment-add-form",6),n.qZA()(),n.TgZ(6,"nz-col",7)(7,"cvc-participant-list",8),n.NdJ("participantSelectedEvent",function(d){n.CHM(o);const W=n.oxw();return n.KtG(W.onCommenterSelected(d))}),n.ALo(8,"ngrxPush"),n.YNc(9,on,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",10),n.NdJ("participantSelectedEvent",function(d){n.CHM(o);const W=n.oxw();return n.KtG(W.onMentionedUserSelected(d))}),n.ALo(12,"ngrxPush"),n.YNc(13,an,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){n.CHM(o);const W=n.oxw();return n.KtG(W.onMentionedRoleSelected(d))}),n.ALo(16,"ngrxPush"),n.YNc(17,sn,3,2,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){n.CHM(o);const W=n.oxw();return n.KtG(W.onMentionedEntitySelected(d))}),n.ALo(20,"ngrxPush"),n.YNc(21,rn,4,4,"ng-template",null,9,n.W1O),n.qZA()()(),n.BQk()}if(2&a){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(6),n.Q6J("participantList",n.lcZ(8,5,o.commenters$)||n.DdM(13,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(12,7,o.mentionedUsers$)||n.DdM(14,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,9,o.mentionedRoles$)||n.DdM(15,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,11,o.mentionedEntities$)||n.DdM(16,w))}}function ln(a,p){if(1&a){const o=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){n.CHM(o);const d=n.oxw();return n.KtG(d.refreshList())}),n.qZA()}if(2&a){const o=n.oxw();n.Q6J("subject",o.commentable)}}let pn=(()=>{class a{constructor(o){this.gql=o,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:t.h01.Created,direction:t.SrV.Asc}});let o=this.queryRef$.valueChanges;this.pageInfo$=o.pipe((0,f.U)(({data:l})=>l.comments.pageInfo)),this.loading$=o.pipe((0,f.U)(({loading:l})=>l)),this.comments$=o.pipe((0,f.U)(({data:l})=>l.comments.edges.map(d=>d.node))),this.commenters$=o.pipe((0,f.U)(({data:l})=>l.comments.uniqueCommenters)),this.mentionedUsers$=o.pipe((0,f.U)(({data:l})=>l.comments.mentionedUsers)),this.mentionedRoles$=o.pipe((0,f.U)(({data:l})=>l.comments.mentionedRoles.map(d=>({id:`${d.entityId}-${d.tagType}`,tag:d})))),this.mentionedEntities$=o.pipe((0,f.U)(({data:l})=>l.comments.mentionedEntities.map(d=>({id:`${d.entityId}-${d.tagType}`,tag:d})))),this.unfilteredCount$=o.pipe((0,i.j)("data","comments","unfilteredCountForSubject"))}onLoadMore(o){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:o}})}onCommenterSelected(o){this.queryRef$.refetch({originatingUserId:o?.id})}onMentionedUserSelected(o){this.queryRef$.refetch({mentionedUserId:o?.id})}onMentionedRoleSelected(o){if(o){let l=t.i44[o.tag.displayName[0].toUpperCase()+o.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:l})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(o){this.queryRef$.refetch(o?{mentionedEntity:{entityType:o.tag.tagType,id:o.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(t.iST))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noComments",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Commenters",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],[4,"ngIf"],["comment",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],[3,"comment"],["id","addComment",3,"subject","commentAddedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],[3,"nzIcon"],["nz-icon","",3,"nzType"]],template:function(o,l){if(1&o&&(n.YNc(0,_n,23,17,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,ln,1,1,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,l.unfilteredCount$))("ngIfElse",d)}},dependencies:[T.O5,P.ix,S.w,x.t3,x.SK,E.bd,M.n_,M.t4,M.AA,B.Ls,z.Dz,D.NU,D.$1,A,F.l,j,T.gd,H.fM,V.j],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]}),a})()},1260:(K,$,e)=>{e.d($,{l:()=>g});var t=e(6814),f=e(95),i=e(2962),n=e(6976),T=e(6928),P=e(2574),S=e(4139),x=e(1595),E=e(1320),M=e(4758),B=e(2524),z=e(5879);let D=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,E.YM,T.Rt,M.m,B.s]}),C})();var N=e(6223),J=e(5545),y=e(3599),Q=e(9543),U=e(6545),I=e(100),Z=e(684),O=e(3903),L=e(2840),R=e(6513),v=e(2669),h=e(9382),m=e(6109);let s=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,N.UX,L.sL,i.vh,h.we,y.U5,v.j,R.Gl,O.L,m.cg,N.u5,J.X0,I.B,U.R,M.m,Z.K,Q.w]}),C})();var c=e(551);let g=(()=>{class C{}return C.\u0275fac=function(F){return new(F||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,L.sL,f.Jb,i.vh,n.Ph,c.PV,B.s,T.Rt,P.zf,S.H0,s,x.N,D]}),C})()},1446:(K,$,e)=>{e.d($,{b:()=>R});var t=e(5879),f=e(8645),i=e(313),n=e(2181),T=e(9773),P=e(7398),S=e(7921),x=e(4223),E=e(5676),M=e(951),B=e(6814),z=e(6223),D=e(8091),N=e(9382),J=e(2669),y=e(6513),Q=e(1834);function U(v,h){if(1&v&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.BQk()),2&v){const m=h.$implicit;t.xp6(2),t.Oqu(m.displayName)}}function I(v,h){1&v&&(t.ynx(0),t._UZ(1,"nz-spin",8),t.BQk())}function Z(v,h){if(1&v&&(t.ynx(0),t._UZ(1,"cvc-comment-body",9),t.BQk()),2&v){const m=h.ngIf;t.xp6(1),t.Q6J("commentBodySegments",m)}}const O=function(){return["#","@","$"]};function L(v,h){if(1&v){const m=t.EpF();t.ynx(0),t.TgZ(1,"nz-tabset",1)(2,"nz-tab",2)(3,"nz-mention",3),t.NdJ("nzOnSearchChange",function(c){t.CHM(m);const g=t.oxw();return t.KtG(g.onSearchChange(c))})("nzOnSelect",function(){t.CHM(m);const c=t.oxw();return t.KtG(c.suggestions=[])}),t.TgZ(4,"textarea",4),t.NdJ("ngModelChange",function(c){t.CHM(m);const g=t.oxw();return t.KtG(g.commentText=c)})("ngModelChange",function(c){t.CHM(m);const g=t.oxw();return t.KtG(g.onCommentChanged(c))}),t.qZA(),t.YNc(5,U,3,1,"ng-container",5),t.qZA()(),t.TgZ(6,"nz-tab",6),t.NdJ("nzClick",function(){t.CHM(m);const c=t.oxw();return t.KtG(c.onPreviewButtonClicked())}),t.YNc(7,I,2,0,"ng-container",7),t.ALo(8,"ngrxPush"),t.YNc(9,Z,2,1,"ng-container",7),t.ALo(10,"ngrxPush"),t.qZA()(),t.BQk()}if(2&v){const m=h.ngrxLet,s=t.oxw();t.xp6(1),t.Q6J("nzAnimated",!1),t.xp6(2),t.Q6J("nzSuggestions",s.suggestions)("nzPrefix",t.DdM(13,O))("nzValueWith",s.autoCompleteValueFor),t.xp6(1),t.Q6J("placeholder",m&&m.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("ngModel",s.commentText),t.uIk("disabled",!m||!m.canCurate||null),t.xp6(3),t.Q6J("ngIf",t.lcZ(8,9,s.previewLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(10,11,s.previewComment$))}}let R=(()=>{class v{constructor(m,s,c,g){this.previewCommentGql=m,this.userTypeaheadGql=s,this.entityTypeaheadGql=c,this.viewerService=g,this.commentChange=new t.vpe,this.destroy$=new f.x,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,x.j)("data","userTypeahead"),(0,n.h)(E.ep),(0,T.R)(this.destroy$)).subscribe(m=>this.suggestions=m.map(s=>({displayName:s.username,value:s.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,x.j)("data","entityTypeahead"),(0,n.h)(E.ep),(0,T.R)(this.destroy$)).subscribe(m=>this.suggestions=m.map(s=>({displayName:s.displayName,value:this.tagForEntityTypeAndId(s.tagType,s.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(m){return m.value}tagForEntityTypeAndId(m,s){switch(m){case i.mpB.Gene:return`GID${s}`;case i.mpB.Variant:return`VID${s}`;case i.mpB.VariantGroup:return`VGID${s}`;case i.mpB.EvidenceItem:return`EID${s}`;case i.mpB.Assertion:return`AID${s}`;case i.mpB.Revision:return`RID${s}`;case i.mpB.MolecularProfile:return`MPID${s}`;case i.mpB.Role:return Object.keys(i.i44)[s]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,x.j)("data","previewCommentText"),(0,n.h)(E.ep)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,P.U)(({loading:m})=>m),(0,S.O)(!0)))}onSearchChange({value:m,prefix:s}){"@"===s?this.userTypeaheadQueryRef$.refetch({queryTerm:m}):"$"==s?this.suggestions=this.roleSuggestions.filter(c=>c.value.startsWith(m)):this.entityTypeaheadQueryRef$.refetch({queryTerm:m})}onCommentChanged(m){this.commentChange.emit(m)}}return v.\u0275fac=function(m){return new(m||v)(t.Y36(i.mII),t.Y36(i.vMt),t.Y36(i.GYx),t.Y36(M.a))},v.\u0275cmp=t.Xpm({type:v,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[t.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzSuggestions","nzPrefix","nzValueWith","nzOnSearchChange","nzOnSelect"],["nzMentionTrigger","","nz-input","","rows","4",2,"width","100%",3,"placeholder","ngModel","ngModelChange"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(m,s){1&m&&t.YNc(0,L,11,14,"ng-container",0),2&m&&t.Q6J("ngrxLet",s.viewer$)},dependencies:[B.O5,z.Fj,z.JJ,D.eJ,N.xH,N.xw,J.W,y.YW,y.jO,y.O3,z.On,Q.m,D.fM],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),v})()},1320:(K,$,e)=>{e.d($,{DA:()=>I,WE:()=>R,Y4:()=>Z,YM:()=>h});var t=e(9388),f=e(6814),i=e(5879),n=e(8324),T=e(8484),P=e(8645),S=e(9773);function x(m,s){1&m&&i.Hsn(0)}const E=["*"];function M(m,s){if(1&m&&(i.ynx(0),i._uU(1),i.BQk()),2&m){const c=i.oxw(2);i.xp6(1),i.Oqu(c.nzAuthor)}}function B(m,s){if(1&m&&(i.TgZ(0,"span",8),i.YNc(1,M,2,1,"ng-container",9),i.qZA()),2&m){const c=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",c.nzAuthor)}}function z(m,s){if(1&m&&(i.ynx(0),i._uU(1),i.BQk()),2&m){const c=i.oxw(2);i.xp6(1),i.Oqu(c.nzDatetime)}}function D(m,s){if(1&m&&(i.TgZ(0,"span",10),i.YNc(1,z,2,1,"ng-container",9),i.qZA()),2&m){const c=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",c.nzDatetime)}}function N(m,s){}function J(m,s){if(1&m&&(i.TgZ(0,"li")(1,"span"),i.YNc(2,N,0,0,"ng-template",13),i.qZA()()),2&m){const c=s.$implicit;i.xp6(2),i.Q6J("nzCommentActionHost",c.content)}}function y(m,s){if(1&m&&(i.TgZ(0,"ul",11),i.YNc(1,J,3,1,"li",12),i.qZA()),2&m){const c=i.oxw();i.xp6(1),i.Q6J("ngForOf",c.actions)}}const Q=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],U=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];let I=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275dir=i.lG2({type:m,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]}),m})(),Z=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275dir=i.lG2({type:m,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]}),m})(),O=(()=>{class m extends T.Pl{constructor(c,g){super(c,g)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(i._Vd),i.Y36(i.s_b))},m.\u0275dir=i.lG2({type:m,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[i.qOj]}),m})(),L=(()=>{class m{get content(){return this.contentPortal}constructor(c){this.viewContainerRef=c,this.contentPortal=null}ngOnInit(){this.contentPortal=new T.UE(this.implicitContent,this.viewContainerRef)}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(i.s_b))},m.\u0275cmp=i.Xpm({type:m,selectors:[["nz-comment-action"]],viewQuery:function(c,g){if(1&c&&i.Gf(i.Rgc,7),2&c){let C;i.iGM(C=i.CRH())&&(g.implicitContent=C.first)}},exportAs:["nzCommentAction"],ngContentSelectors:E,decls:1,vars:0,template:function(c,g){1&c&&(i.F$t(),i.YNc(0,x,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),m})(),R=(()=>{class m{constructor(c,g){this.cdr=c,this.directionality=g,this.dir="ltr",this.destroy$=new P.x}ngOnInit(){this.directionality.change?.pipe((0,S.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(i.sBO),i.Y36(t.Is,8))},m.\u0275cmp=i.Xpm({type:m,selectors:[["nz-comment"]],contentQueries:function(c,g,C){if(1&c&&i.Suo(C,L,4),2&c){let A;i.iGM(A=i.CRH())&&(g.actions=A)}},hostVars:4,hostBindings:function(c,g){2&c&&i.ekj("ant-comment",!0)("ant-comment-rtl","rtl"===g.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:U,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],["class","ant-comment-content-author-name",4,"ngIf"],["class","ant-comment-content-author-time",4,"ngIf"],["class","ant-comment-actions",4,"ngIf"],[1,"ant-comment-nested"],[1,"ant-comment-content-author-name"],[4,"nzStringTemplateOutlet"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[4,"ngFor","ngForOf"],[3,"nzCommentActionHost"]],template:function(c,g){1&c&&(i.F$t(Q),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.TgZ(3,"div",2)(4,"div",3),i.YNc(5,B,2,1,"span",4),i.YNc(6,D,2,1,"span",5),i.qZA(),i.Hsn(7,1),i.YNc(8,y,2,1,"ul",6),i.qZA()(),i.TgZ(9,"div",7),i.Hsn(10,2),i.qZA()),2&c&&(i.xp6(5),i.Q6J("ngIf",g.nzAuthor),i.xp6(1),i.Q6J("ngIf",g.nzDatetime),i.xp6(2),i.Q6J("ngIf",null==g.actions?null:g.actions.length))},dependencies:[f.sg,f.O5,n.f,O],encapsulation:2,changeDetection:0}),m})(),h=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[t.vT,f.ez,n.T]}),m})()}}]); \ No newline at end of file diff --git a/server/public/3759.3d400adf74aefef4.js b/server/public/3759.e977f0b5b5f0bcb3.js similarity index 96% rename from server/public/3759.3d400adf74aefef4.js rename to server/public/3759.e977f0b5b5f0bcb3.js index fa1c35b63..eeff5a55b 100644 --- a/server/public/3759.3d400adf74aefef4.js +++ b/server/public/3759.e977f0b5b5f0bcb3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3759],{3759:(H,d,o)=>{o.r(d),o.d(d,{MolecularProfilesModule:()=>B});var c=o(6814),l=o(4190),h=o(2419),r=o(6254),i=o(95),p=o(551),m=o(5956),f=o(2392),g=o(2840),s=o(2574),u=o(9333),z=o(7417),M=o(2731),P=o(6610),v=o(2524),e=o(5879);let y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[c.ez,l.Bz,r.KJ,i.Jb,p.PV,f.ZJ,g.sL,s.zf,z.$6,v.s,h.D,m.U,P.I,u.h,h.D,M.e]}),t})();var x=o(951),C=o(855),O=o(3145),Z=o(3180),T=o(2616);function b(t,a){1&t&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Molecular Profiles Model Docs "),e.qZA())}function A(t,a){1&t&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Molecular Profiles Curation Docs "),e.qZA())}const S=[{path:"",component:(()=>{class t{constructor(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(n,V){1&n&&e._UZ(0,"router-outlet")},dependencies:[l.lC],encapsulation:2}),t})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(n){this.viewerService=n,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(x.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["molecular-profiles-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nzFlex","0 1 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/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Molecular Profiles"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""]],template:function(n,V){1&n&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e._UZ(5,"i",3),e.ALo(6,"entityColor"),e.qZA(),e.TgZ(7,"nz-col",4)(8,"h2"),e._uU(9,"Molecular Profiles"),e.qZA(),e.TgZ(10,"p",5),e._uU(11," CIViC molecular profiles are complex combinations of one or more CIViC variants across one or more genes. Variants are placed in combinations connected by AND or OR, and mutual exclusivity is supported by NOT. These relationships may be further defined by parenthesis. "),e.qZA()(),e.TgZ(12,"nz-col",6)(13,"nz-space",7),e.YNc(14,b,3,0,"a",8),e.YNc(15,A,3,0,"a",9),e.qZA()()(),e.TgZ(16,"nz-row")(17,"nz-col",10)(18,"div",11),e._UZ(19,"cvc-molecular-profiles-table",12),e.qZA()()()()()),2&n&&(e.xp6(5),e.Q6J("nzTwotoneColor",e.lcZ(6,3,"MolecularProfile")),e.xp6(5),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},dependencies:[r.$O,r.u5,i.t3,i.SK,p.Ls,f.ZU,g.ix,C.w,s.NU,s.$1,O.I,Z.B,T.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{flex-wrap:nowrap;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}.addVariant[_ngcontent-%COMP%]{width:500px}"]}),t})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(4872),o.e(2212),o.e(5556),o.e(2602),o.e(7889),o.e(3577),o.e(7856),o.e(8245),o.e(4503),o.e(5990),o.e(8421),o.e(8026)]).then(o.bind(o,4519)).then(t=>t.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(8592),o.e(2299)]).then(o.bind(o,4897)).then(t=>t.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let U=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.Bz.forChild(S),y,l.Bz]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[c.ez,U]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3759],{3759:(H,d,o)=>{o.r(d),o.d(d,{MolecularProfilesModule:()=>B});var c=o(6814),l=o(4190),h=o(2419),r=o(6254),i=o(95),p=o(551),m=o(5956),f=o(2392),g=o(2840),s=o(2574),u=o(9333),z=o(7417),M=o(4057),P=o(6610),v=o(2524),e=o(5879);let y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[c.ez,l.Bz,r.KJ,i.Jb,p.PV,f.ZJ,g.sL,s.zf,z.$6,v.s,h.D,m.U,P.I,u.h,h.D,M.e]}),t})();var x=o(951),C=o(855),O=o(3145),Z=o(3180),T=o(2616);function b(t,a){1&t&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Molecular Profiles Model Docs "),e.qZA())}function A(t,a){1&t&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Molecular Profiles Curation Docs "),e.qZA())}const S=[{path:"",component:(()=>{class t{constructor(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(n,V){1&n&&e._UZ(0,"router-outlet")},dependencies:[l.lC],encapsulation:2}),t})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(n){this.viewerService=n,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(x.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["molecular-profiles-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nzFlex","0 1 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/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Molecular Profiles"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""]],template:function(n,V){1&n&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e._UZ(5,"i",3),e.ALo(6,"entityColor"),e.qZA(),e.TgZ(7,"nz-col",4)(8,"h2"),e._uU(9,"Molecular Profiles"),e.qZA(),e.TgZ(10,"p",5),e._uU(11," CIViC molecular profiles are complex combinations of one or more CIViC variants across one or more genes. Variants are placed in combinations connected by AND or OR, and mutual exclusivity is supported by NOT. These relationships may be further defined by parenthesis. "),e.qZA()(),e.TgZ(12,"nz-col",6)(13,"nz-space",7),e.YNc(14,b,3,0,"a",8),e.YNc(15,A,3,0,"a",9),e.qZA()()(),e.TgZ(16,"nz-row")(17,"nz-col",10)(18,"div",11),e._UZ(19,"cvc-molecular-profiles-table",12),e.qZA()()()()()),2&n&&(e.xp6(5),e.Q6J("nzTwotoneColor",e.lcZ(6,3,"MolecularProfile")),e.xp6(5),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},dependencies:[r.$O,r.u5,i.t3,i.SK,p.Ls,f.ZU,g.ix,C.w,s.NU,s.$1,O.I,Z.B,T.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{flex-wrap:nowrap;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}.addVariant[_ngcontent-%COMP%]{width:500px}"]}),t})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(4872),o.e(2212),o.e(5556),o.e(2602),o.e(9949),o.e(3577),o.e(7856),o.e(3575),o.e(4280),o.e(4840),o.e(8421),o.e(8026)]).then(o.bind(o,4519)).then(t=>t.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(8592),o.e(1467)]).then(o.bind(o,4897)).then(t=>t.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let U=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.Bz.forChild(S),y,l.Bz]}),t})(),B=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[c.ez,U]}),t})()}}]); \ No newline at end of file diff --git a/server/public/3806.1ac5dbcc871c240d.js b/server/public/3806.1ac5dbcc871c240d.js new file mode 100644 index 000000000..6727263d8 --- /dev/null +++ b/server/public/3806.1ac5dbcc871c240d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3806],{3806:(es,Nt,c)=>{c.r(Nt),c.d(Nt,{OrganizationsModule:()=>qo});var p=c(6814),Ee=c(5895),v=c(551),t=c(5879);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Ee.s,v.PV]}),n})();var Ut=c(2419),m=c(8645),Ft=c(2438),A=c(2181),V=c(8180),P=c(9773),Jt=c(874),Qt=c(7754),W=c(9594),$t=c(8484),L=c(6028),Le=c(4194),Yt=c(9087),Ze=c(6593),ut=c(532),O=c(2831),u=c(2495),Gt=c(4300),j=c(7394),ke=c(1687),Ne=c(927),Ht=c(5592),ft=c(3019),I=c(7398),F=c(7921),Ue=c(9397),Fe=c(4664),et=c(9388);function _t(n,i,e){for(let o in i)if(i.hasOwnProperty(o)){const s=i[o];s?n.setProperty(o,s,e?.has(o)?"important":""):n.removeProperty(o)}return n}function J(n,i){const e=i?"":"none";_t(n.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Bt(n,i,e){_t(n.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function nt(n,i){return i&&"none"!=i?n+" "+i:n}function Vt(n){const i=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*i}function vt(n,i){return n.getPropertyValue(i).split(",").map(o=>o.trim())}function zt(n){const i=n.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Ct(n,i,e){const{top:o,bottom:s,left:r,right:a}=n;return e>=o&&e<=s&&i>=r&&i<=a}function X(n,i,e){n.top+=i,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function Wt(n,i,e,o){const{top:s,right:r,bottom:a,left:l,width:d,height:h}=n,g=d*i,f=h*i;return o>s-f&&ol-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zt(e)})})}handleScroll(i){const e=(0,O.sA)(i),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const l=s.top-r,d=s.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&X(h.clientRect,l,d)}),s.top=r,s.left=a,{top:l,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Xt(n){const i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),o=n.nodeName.toLowerCase();i.removeAttribute("id");for(let s=0;sJ(o,e)))}constructor(i,e,o,s,r,a){this._config=e,this._document=o,this._ngZone=s,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new m.x,this._pointerMoveSubscription=j.w0.EMPTY,this._pointerUpSubscription=j.w0.EMPTY,this._scrollSubscription=j.w0.EMPTY,this._resizeSubscription=j.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new m.x,this.started=new m.x,this.released=new m.x,this.ended=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.moved=this._moveEvents,this._pointerDown=l=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const d=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const N=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),U=this._dropContainer;if(!N)return void this._endDragSequence(l);(!U||!U.isDragging()&&!U.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const g=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,f=this._activeTransform;f.x=h.x-g.x+this._passiveTransform.x,f.y=h.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(f.x,f.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:l,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new jt(o),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(o=>(0,u.fI)(o)),this._handles.forEach(o=>J(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=(0,u.fI)(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,it),e.addEventListener("touchstart",this._pointerDown,ee),e.addEventListener("dragstart",this._nativeDragStart,it)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?(0,u.fI)(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),J(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),J(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){K(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),Bt(o,!1,bt),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=K(e),r=!s&&0!==e.button,a=this._rootElement,l=(0,O.sA)(e),d=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,Gt.yG)(e):(0,Gt.X6)(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||d||h)return;if(this._handles.length){const b=a.style;this._rootElementTapHighlight=b.webkitTapHighlightColor||"",b.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(b=>this._updateOnScroll(b)),this._boundaryElement&&(this._boundaryRect=zt(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Bt(this._rootElement,!0,bt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(i),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s,event:i}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s,event:i}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,o=i?i.template:null;let s;if(o&&i){const r=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(o,i.context);a.detectChanges(),s=ie(a,this._document),this._previewRef=a,i.matchSize?oe(s,r):s.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Xt(this._rootElement),oe(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return _t(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},bt),J(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function Je(n){const i=getComputedStyle(n),e=vt(i,"transition-property"),o=e.find(l=>"transform"===l||"all"===l);if(!o)return 0;const s=e.indexOf(o),r=vt(i,"transition-duration"),a=vt(i,"transition-delay");return Vt(r[s])+Vt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{(!a||(0,O.sA)(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let o;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),o=ie(this._placeholderRef,this._document)):o=Xt(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(i,e,o){const s=e===this._rootElement?null:e,r=s?s.getBoundingClientRect():i,a=K(o)?o.targetTouches[0]:o,l=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-l.left),y:r.top-i.top+(a.pageY-r.top-l.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),o=K(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=r,l.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,l=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),g=l.top+a,f=l.bottom-(h-a);o=ne(o,l.left+r,l.right-(d-r)),s=ne(s,g,f)}return{x:o,y:s}}_updatePointerDirectionDelta(i){const{x:e,y:o}=i,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),l=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,J(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,it),i.removeEventListener("touchstart",this._pointerDown,ee),i.removeEventListener("dragstart",this._nativeDragStart,it)}_applyRootElementTransform(i,e){const o=ot(i,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=nt(o,this._initialTransform)}_applyPreviewTransform(i,e){const o=this._previewTemplate?.template?void 0:this._initialTransform,s=ot(i,e);this._preview.style.transform=nt(s,o)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===o.width&&0===o.height)return;const r=s.left-o.left,a=o.right-s.right,l=s.top-o.top,d=o.bottom-s.bottom;s.width>o.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,s.height>o.height?(l>0&&(e+=l),d>0&&(e-=d)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:K(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const o=(0,O.sA)(i);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&X(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,O.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const o=this._previewContainer||"global";if("parent"===o)return i;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,u.fI)(o)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function ot(n,i){return`translate3d(${Math.round(n)}px, ${Math.round(i)}px, 0)`}function ne(n,i,e){return Math.max(i,Math.min(e,n))}function K(n){return"t"===n.type[0]}function ie(n,i){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const o=i.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function oe(n,i){n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.transform=ot(i.left,i.top)}function q(n,i){return Math.max(0,Math.min(i,n))}class He{constructor(i,e){this._element=i,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,e,o,s){const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(i,e,o,s);if(-1===a&&r.length>0)return null;const l="horizontal"===this.orientation,d=r.findIndex(x=>x.drag===i),h=r[a],f=h.clientRect,b=d>a?1:-1,N=this._getItemOffsetPx(r[d].clientRect,f,b),U=this._getSiblingOffsetPx(d,r,b),B=r.slice();return function Ge(n,i,e){const o=q(i,n.length-1),s=q(e,n.length-1);if(o===s)return;const r=n[o],a=s{if(B[ts]===x)return;const Me=x.drag===i,kt=Me?N:U,Re=Me?i.getPlaceholderElement():x.drag.getRootElement();x.offset+=kt,l?(Re.style.transform=nt(`translate3d(${Math.round(x.offset)}px, 0, 0)`,x.initialTransform),X(x.clientRect,0,kt)):(Re.style.transform=nt(`translate3d(0, ${Math.round(x.offset)}px, 0)`,x.initialTransform),X(x.clientRect,kt,0))}),this._previousSwap.overlaps=Ct(f,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:d,currentIndex:a}}enter(i,e,o,s){const r=null==s||s<0?this._getItemIndexFromPointerPosition(i,e,o):s,a=this._activeDraggables,l=a.indexOf(i),d=i.getPlaceholderElement();let h=a[r];if(h===i&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(l,1),h&&!this._dragDropRegistry.isDragging(h)){const g=h.getRootElement();g.parentElement.insertBefore(d,g),a.splice(r,0,i)}else(0,u.fI)(this._element).appendChild(d),a.push(i);d.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const o=this._itemPositions.find(s=>s.drag===i)?.initialTransform;e.style.transform=o||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:o})=>{X(o,i,e)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:zt(o)}}).sort((e,o)=>i?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_getItemOffsetPx(i,e,o){const s="horizontal"===this.orientation;let r=s?e.left-i.left:e.top-i.top;return-1===o&&(r+=s?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,o){const s="horizontal"===this.orientation,r=e[i].clientRect,a=e[i+-1*o];let l=r[s?"width":"height"]*o;if(a){const d=s?"left":"top",h=s?"right":"bottom";-1===o?l-=a.clientRect[d]-r[h]:l+=r[d]-a.clientRect[h]}return l}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?i>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,o,s){const r="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:d})=>l!==i&&((!s||l!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?s.x:s.y)!==this._previousSwap.delta)&&(r?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&o!0,this.sortPredicate=()=>!0,this.beforeStarted=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.sorted=new m.x,this.receivingStarted=new m.x,this.receivingStopped=new m.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=j.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new m.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,ke.F)(0,Ne.Z).pipe((0,P.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-l):2===this._verticalScrollDirection&&a.scrollBy(0,l),1===this._horizontalScrollDirection?a.scrollBy(-l,0):2===this._horizontalScrollDirection&&a.scrollBy(l,0)})},this.element=(0,u.fI)(i),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new jt(o),this._sortStrategy=new He(this.element,e),this._sortStrategy.withSortPredicate((a,l)=>this.sortPredicate(a,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,o,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,o,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,o,s,r,a,l,d={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:l,event:d})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===i.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=(0,u.fI)(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,o,s){if(this.sortingDisabled||!this._clientRect||!Wt(this._clientRect,.05,e,o))return;const r=this._sortStrategy.sort(i,e,o,s);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||o||Wt(a.clientRect,.05,i,e)&&([s,r]=function Ve(n,i,e,o){const s=ae(i,o),r=ce(i,e);let a=0,l=0;if(s){const d=n.scrollTop;1===s?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(r){const d=n.scrollLeft;1===r?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[a,l]}(l,a.clientRect,i,e),(s||r)&&(o=l))}),!s&&!r){const{width:a,height:l}=this._viewportRuler.getViewportSize(),d={width:a,height:l,top:0,right:a,bottom:l,left:0};s=ae(d,e),r=ce(d,i),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=(0,u.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=(0,u.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=(0,u.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&Ct(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,o){return this._siblings.find(s=>s._canReceive(i,e,o))}_canReceive(i,e,o){if(!this._clientRect||!Ct(this._clientRect,e,o)||!this.enterPredicate(i,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,u.fI)(this.element);return s===r||r.contains(s)}_startReceiving(i,e){const o=this._activeSiblings;!o.has(i)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=(0,O.kV)((0,u.fI)(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function ae(n,i){const{top:e,bottom:o,height:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}function ce(n,i){const{left:e,right:o,width:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}const st=(0,O.i$)({passive:!1,capture:!0});let We=(()=>{class n{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new m.x,this.pointerUp=new m.x,this.scroll=new m.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,st)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,st)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:st}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:st}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new Ht.y(s=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,ft.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(p.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const je={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let xt=(()=>{class n{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=je){return new Ye(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Be(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(p.K0),t.LFG(t.R0b),t.LFG(ut.rL),t.LFG(We))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wt=new t.OlP("CDK_DRAG_PARENT"),yt=new t.OlP("CdkDragHandle");let le=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._stateChanges.next(this)}constructor(e,o){this.element=e,this._stateChanges=new m.x,this._disabled=!1,this._parentDrag=o}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[t._Bn([{provide:yt,useExisting:n}])]}),n})();const de=new t.OlP("CdkDragPlaceholder"),he=new t.OlP("CdkDragPreview"),ge=new t.OlP("CDK_DRAG_CONFIG"),pe=new t.OlP("CdkDropList");let me=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._dragRef.disabled=this._disabled}constructor(e,o,s,r,a,l,d,h,g,f,b){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=g,this._selfHandle=f,this._parentDrag=b,this._destroyed=new m.x,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new Ht.y(N=>{const U=this._dragRef.moved.pipe((0,I.U)(B=>({source:this,pointerPosition:B.pointerPosition,event:B.event,delta:B.delta,distance:B.distance}))).subscribe(N);return()=>{U.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),l&&this._assignDefaults(l),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,V.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let o=e;this.rootElementSelector&&(o=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,u.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,u.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,V.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let o=this.element.nativeElement.parentElement;for(;o;){if(o.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(s=>s.element.nativeElement===o)?._dragRef||null);break}o=o.parentElement}})}_handleEvents(e){e.started.subscribe(o=>{this.started.emit({source:this,event:o.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(o=>{this.released.emit({source:this,event:o.event})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:l,draggingDisabled:d,rootElementSelector:h,previewContainer:g}=e;this.disabled=d??!1,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),l&&(this.boundaryElement=l),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe((0,F.O)(this._handles),(0,Ue.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,Fe.w)(e=>(0,ft.T)(...e.map(o=>o._stateChanges.pipe((0,F.O)(o))))),(0,P.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(pe,12),t.Y36(p.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ge,8),t.Y36(et.Is,8),t.Y36(xt),t.Y36(t.sBO),t.Y36(yt,10),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,he,5),t.Suo(s,de,5),t.Suo(s,yt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t._Bn([{provide:wt,useExisting:n}]),t.TTD]}),n})(),nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[xt],imports:[ut.ZD]}),n})();var on=c(6192);const sn=["imgRef"],rn=["imagePreviewWrapper"];function an(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",10),t.NdJ("click",function(){const r=t.CHM(e).$implicit;return t.KtG(r.onClick())}),t._UZ(1,"span",11),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function cn(n,i){if(1&n&&t._UZ(0,"img",13,14),2&n){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",o.sanitizerResourceUrl(e.src),t.LSH)("srcset",e.srcset)("alt",e.alt)}}function ln(n,i){if(1&n&&(t.ynx(0),t.YNc(1,cn,2,9,"img",12),t.BQk()),2&n){const e=i.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function dn(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",15),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchLeft(s))}),t._UZ(2,"span",16),t.qZA(),t.TgZ(3,"div",17),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchRight(s))}),t._UZ(4,"span",18),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class Dt{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class gn{constructor(i,e,o){this.previewInstance=i,this.config=e,this.overlayRef=o,this.destroy$=new m.x,o.keydownEvents().pipe((0,A.h)(s=>this.config.nzKeyboard&&(s.keyCode===L.hY||s.keyCode===L.oh||s.keyCode===L.SV)&&!(0,L.Vb)(s))).subscribe(s=>{s.preventDefault(),s.keyCode===L.hY&&this.close(),s.keyCode===L.oh&&this.prev(),s.keyCode===L.SV&&this.next()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),i.containerClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.closeClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.animationStateChanged.pipe((0,A.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,V.q)(1)).subscribe(()=>{this.dispose()})}switchTo(i){this.previewInstance.switchTo(i)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function fe(n,i,e){const o=n+i,s=(i-e)/2;let r=null;return i>e?(n>0&&(r=s),n<0&&oe)&&(r=n<0?s:-s),r}const at={x:0,y:0};let fn=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,o,s,r,a,l,d,h){this.ngZone=e,this.host=o,this.cdr=s,this.nzConfigService=r,this.config=a,this.overlayRef=l,this.destroy$=d,this.sanitizer=h,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position={...at},this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.zoom=this.config.nzZoom??1,this.rotate=this.config.nzRotate??0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ft.R)(this.host.nativeElement,"click").pipe((0,P.R)(this.destroy$)).subscribe(e=>{e.target===e.currentTarget&&this.maskClosable&&this.containerClick.observers.length&&this.ngZone.run(()=>this.containerClick.emit())}),(0,Ft.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,P.R)(this.destroy$)).subscribe(()=>{this.isDragging=!0})})}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at}}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at})}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function mn(n){const i=n.getBoundingClientRect(),e=document.documentElement;return{left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:l}=function un(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),d=this.rotate%180!=0,g=function pn(n){let i={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(i={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(i={x:fe(n.left,n.width,n.clientWidth),y:fe(n.top,n.height,n.clientHeight)}),i}({width:d?o:e,height:d?e:o,left:s,top:r,clientWidth:a,clientHeight:l});((0,Qt.DX)(g.x)||(0,Qt.DX)(g.y))&&(this.position={...this.position,...g})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position={...at}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt.jY),t.Y36(Dt),t.Y36(W.Iu),t.Y36(Yt.kn),t.Y36(Ze.H7))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&(t.Gf(sn,5),t.Gf(rn,7)),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first),t.iGM(s=t.CRH())&&(o.imagePreviewWrapper=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],features:[t._Bn([Yt.kn])],decls:11,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","cdkDragReleased"],["imagePreviewWrapper",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3)(4,"ul",4),t.YNc(5,an,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6,7),t.NdJ("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(8,ln,2,1,"ng-container",8),t.qZA(),t.YNc(9,dn,5,4,"ng-container",9),t.qZA()(),t._UZ(10,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(2),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},dependencies:[me,le,p.sg,p.O5,v.Ls],encapsulation:2,data:{animation:[Le.MC]},changeDetection:0}),n})(),_n=(()=>{class n{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s={...new Dt,...o??{}},r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const l=new gn(a,s,r);return a.previewRef=l,l}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:W.Iu,useValue:e},{provide:Dt,useValue:o}]}),r=new $t.C5(fn,null,s);return e.attach(r).instance}createOverlay(e){const o=this.nzConfigService.getConfigForComponent("image")||{},s=new W.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??o.nzCloseOnNavigation??!0,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||o.nzDirection||this.directionality.value});return this.overlay.create(s)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(W.aV),t.LFG(t.zs3),t.LFG(Jt.jY),t.LFG(et.Is,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[_n],imports:[et.vT,W.U8,$t.eL,nn,p.ez,v.PV,on.YS]}),n})();var Q=c(6254),zn=c(4059),_=c(95),w=c(2574),C=c(4190),St=c(6067),_e=c(2996),y=c(2962),Z=c(6976),tt=c(1106),ve=c(5572),Pt=c(6928),M=c(8125),ct=c(6987),ze=c(126),$=c(2524),Cn=c(3043),bn=c(7525),xn=c(3396),wn=c(4605),T=c(2392),Ce=c(366),yn=c(2612),lt=c(6223),Tn=c(6061),Ot=c(7950);let be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,y.vh,_.Jb,w.zf,T.ZJ,_e.A2,M.q6,ct.S,yn.Wr,Ot.x,St.X,wn.N,xn.Q,Tn.N,bn.h,Cn.y,ze.K,$.s,tt.L,ve.C,Ce.$]}),n})();var xe=c(7417),dt=c(5695),k=c(2840);let Dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,C.Bz,Q.KJ,k.sL,_.Jb,v.PV,w.zf,vn,y.vh,_e.A2,Z.Ph,Pt.Rt,M.q6,ct.S,T.ZJ,xe.$6,dt.X,ve.C,tt.L,Ce.$,$.s,ze.K,St.X,zn.c,Ut.D,be]}),n})();var Sn=c(9894);let Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Sn.t]}),n})();var On=c(1403);let In=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,On.Q]}),n})();var It=c(2669);let Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,w.zf,_.Jb,It.j,be]}),n})();var Rn=c(7856),En=c(9154),An=c(2989),Ln=c(9175),Zn=c(4742),kn=c(9312),D=c(3740);let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,v.PV,D.HQ,k.sL,y.vh,v.PV,T.ZJ,dt.X,En.y,An.T,kn.w,Ln.n,Zn.c,Rn.k,tt.L,Ot.x,$.s]}),n})();var Mt=c(9691),Un=c(9382),we=c(804),ye=c(3640),Te=c(6109);let Fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,ye.mS,ct.S,w.zf,Pt.Rt,_.Jb,y.vh,Z.Ph,Un.we,Mt.LV,T.ZJ,we.Xo,v.PV,dt.X,Te.cg,$.s,tt.L]}),n})(),Jn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Q.KJ,v.PV,_.Jb,k.sL,w.zf,T.ZJ,$.s,Ut.D,Fn,Nn]}),n})();var Qn=c(4293),$n=c(8706);let Yn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,y.vh,M.q6,T.ZJ,v.PV,w.zf,_.Jb,ct.S,Ot.x,Qn.H,St.X,$.s,tt.L,$n.W]}),n})(),Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,_.Jb,w.zf,k.sL,It.j,Yn]}),n})();var Hn=c(1826);let Bn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[Hn.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var R=c(4223),E=c(5619),z=c(313),Rt=c(951),ht=c(855),Vn=c(1607),gt=c(215),Wn=c(1887),De=c(3217),jn=c(5098),Se=c(3145),Y=c(8091),Pe=c(2616);function Xn(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",19),2&n){const e=t.oxw().ngIf;t.Q6J("organization",e)("size",128)}}function Kn(n,i){if(1&n&&(t.TgZ(0,"div",20),t._UZ(1,"i",21),t.ALo(2,"entityColor"),t.TgZ(3,"span",22)(4,"strong"),t._uU(5),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(2,2,"Organization")),t.xp6(4),t.hij(" ",e.name,"")}}function qn(n,i){if(1&n&&(t.TgZ(0,"a",24),t._UZ(1,"span",25),t._uU(2," Visit Website "),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.url,t.LSH)}}function ti(n,i){1&n&&(t.ynx(0),t.YNc(1,qn,3,1,"a",23),t.BQk())}function ei(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.description," ")}}function ni(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2,"No description provided."),t.qZA()())}function ii(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",34),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("org",e)}}function oi(n,i){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,ii,2,1,"ng-container",33),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",e.subGroups)}}function si(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2," This organization does not include any child organizations. "),t.qZA()())}function ri(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",26)(1,"nz-descriptions-item",27),t.YNc(2,ei,2,1,"ng-container",28),t.YNc(3,ni,3,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(5,"nz-descriptions-item",30),t.YNc(6,oi,2,1,"cvc-tag-list",28),t.YNc(7,si,3,0,"ng-template",null,31,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),o=t.MAs(8),s=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(1),t.Q6J("nzTitle","About "+s.name),t.xp6(1),t.Q6J("ngIf",s.description)("ngIfElse",e),t.xp6(3),t.Q6J("nzSpan",4)("nzTitle","Child Organization"+(1!==s.subGroups.length?"s":"")),t.xp6(1),t.Q6J("ngIf",s.subGroups.length>0)("ngIfElse",o)}}function ai(n,i){1&n&&(t.TgZ(0,"div",38)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function ci(n,i){if(1&n&&(t.TgZ(0,"div",35),t._uU(1," Ranked Activities "),t.TgZ(2,"span",32),t._UZ(3,"i",36),t.qZA()(),t.YNc(4,ai,17,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}const li=function(){return[8,8]};function di(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-content")(4,"nz-row",3)(5,"nz-col",4)(6,"nz-space",5),t.YNc(7,Xn,1,2,"cvc-organization-avatar",6),t.YNc(8,Kn,6,4,"div",7),t.YNc(9,ti,2,0,"ng-container",0),t.qZA()(),t.TgZ(10,"nz-col",8)(11,"nz-space",5),t.YNc(12,ri,9,8,"nz-descriptions",9),t.qZA()(),t.TgZ(13,"nz-col",10)(14,"nz-descriptions",11)(15,"nz-descriptions-item",12),t._UZ(16,"cvc-stats-card",13),t.qZA(),t.YNc(17,ci,6,1,"ng-template",null,14,t.W1O),t.qZA()()(),t.TgZ(19,"nz-row",15)(20,"nz-col",16),t._UZ(21,"cvc-tab-navigation",17),t.ALo(22,"ngrxPush"),t.TgZ(23,"div",18),t._UZ(24,"router-outlet"),t.qZA()()()()(),t.BQk()),2&n){const e=i.ngIf,o=t.MAs(18),s=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzGutter",t.DdM(10,li)),t.xp6(5),t.Q6J("ngIf",e.url),t.xp6(6),t.Q6J("nzTitle",o),t.xp6(1),t.Q6J("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(22,8,s.tabs$))}}let hi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.destroy$=new m.x,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new E.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organization$=a.pipe((0,R.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,P.R)(this.destroy$)).subscribe({next:l=>{this.tabs$.next(l&&l.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.WOS),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],["noDescription",""],[3,"nzSpan","nzTitle"],["noSubGroups",""],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"]],template:function(e,o){1&e&&(t.YNc(0,di,25,11,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},dependencies:[p.sg,p.O5,C.lC,Q.$O,Q.u5,k.ix,ht.w,_.t3,_.SK,v.Ls,w.NU,w.$1,M.R7,M.uj,T.ZU,xe.lU,Vn.z,gt.m,Wn.$,De.M,jn.P,Se.I,Y.fM,Pe.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{flex-wrap:nowrap;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%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),n})();var gi=c(7441);let pi=(()=>{class n{constructor(e){this.route=e,this.mode=z.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},dependencies:[gi.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var mi=c(6822);let ui=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[mi.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();function fi(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",8),2&n){const e=t.oxw();t.Q6J("organization",e.organization)("size",48)}}function _i(n,i){if(1&n&&t._UZ(0,"cvc-organization-tag",9),2&n){const e=t.oxw();t.Q6J("org",e.organization)("enablePopover",!0)}}let vi=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],["organizationAvatar",""],["organizationTag",""],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,fi,1,2,"ng-template",null,2,t.W1O),t.YNc(4,_i,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t._uU(10),t.qZA()()()()()),2&e){const s=t.MAs(3),r=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",o.organization.name)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("nzEllipsisRows",4)("nzExpandable",!0),t.xp6(1),t.hij(" ",o.organization.description," ")}},dependencies:[y.bd,y.l7,T.ZU,M.R7,M.uj,De.M,gt.m],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function zi(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-organization-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("organization",e)}}function Ci(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zi,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}const bi=function(){return[8,8]};let xi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.routeSub=s.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organizations$=a.pipe((0,R.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Lr0),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-row",1),t.YNc(3,Ci,2,1,"ng-container",2),t.ALo(4,"ngrxPush"),t.qZA()()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,3,o.loading$)),t.xp6(2),t.Q6J("nzGutter",t.DdM(7,bi)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(4,5,o.organizations$)))},dependencies:[p.sg,p.O5,_.t3,_.SK,It.W,vi,Y.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),n})();var G,Oe=c(655),S=c(1791);function wi(n,i){1&n&&t.GkF(0)}function yi(n,i){1&n&&t.GkF(0)}function Ti(n,i){1&n&&t.GkF(0)}function Di(n,i){1&n&&t.GkF(0)}function Si(n,i){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA(),t.TgZ(2,"span",14),t._UZ(3,"i",15),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," "),t.xp6(2),t.Q6J("nzTooltipTitle",e.info)}}const Pi=function(){return[0,5]};function Oi(n,i){if(1&n&&(t.TgZ(0,"nz-badge",19),t._UZ(1,"nz-avatar",20),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzCount",e.rank)("nzOffset",t.DdM(3,Pi)),t.xp6(1),t.Q6J("nzSrc",e.profileImagePath)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"nz-list-item"),t.YNc(1,Oi,2,4,"ng-template",null,16,t.W1O),t.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t._UZ(5,"cvc-organization-tag",18),t.qZA()()()),2&n){const e=i.$implicit,o=t.MAs(2);t.xp6(3),t.Q6J("nzAvatar",o),t.xp6(2),t.Q6J("org",e.organization)}}function Mi(n,i){if(1&n&&t._UZ(0,"nz-list-empty",21),2&n){t.oxw();const e=t.MAs(7);t.Q6J("nzNoResult",e)}}function Ri(n,i){1&n&&t._UZ(0,"nz-empty",22)}const Ei=function(n){return{"list-height-block":n}};function Ai(n,i){if(1&n&&(t.YNc(0,Si,4,2,"ng-template",null,7,t.W1O),t.TgZ(2,"nz-list",8)(3,"div",9),t.YNc(4,Ii,6,2,"nz-list-item",10),t.qZA(),t.YNc(5,Mi,1,1,"nz-list-empty",11),t.YNc(6,Ri,1,0,"ng-template",null,12,t.W1O),t.qZA()),2&n){const e=i.$implicit,o=t.MAs(1);t.xp6(2),t.Q6J("nzHeader",o)("nzLoading",e.loading),t.xp6(1),t.Q6J("ngClass",t.VKq(5,Ei,e.rows.length>0)),t.xp6(1),t.Q6J("ngForOf",e.rows),t.xp6(1),t.Q6J("ngIf",0===e.rows.length)}}function Li(n,i){1&n&&(t.TgZ(0,"span",13)(1,"strong"),t._uU(2,"Organization Curation Activity Leaderboards"),t.qZA()())}function Zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"Time: "),t.qZA(),t.TgZ(2,"nz-select",23),t.NdJ("ngModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.timeWindow$.next(s))}),t.ALo(3,"ngrxPush"),t._UZ(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",t.lcZ(3,2,e.timeWindow$))}}const ki=function(){return[8,8]},pt=function(n){return{$implicit:n}};let Et=((G=class{constructor(i,e,o,s){this.commentsGQL=i,this.revisionsGQL=e,this.moderationGQL=o,this.submissionsGQL=s,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=z.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new E.X(this.initialWindow),this.timeWindow$.pipe((0,S.t)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new E.X(this.initialCommentsView),this.revisionsView$=new E.X(this.initialRevisionsView),this.moderationView$=new E.X(this.initialModerationView),this.submissionsView$=new E.X(this.initialSubmissionsView)}ngOnInit(){const i=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.submissionsView$.next(e))}}).\u0275fac=function(i){return new(i||G)(t.Y36(z.ld2),t.Y36(z.enw),t.Y36(z.tI$),t.Y36(z.Pm))},G.\u0275cmp=t.Xpm({type:G,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(i,e){if(1&i&&(t.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),t.YNc(3,wi,1,0,"ng-container",3),t.ALo(4,"ngrxPush"),t.qZA(),t.TgZ(5,"nz-col",2),t.YNc(6,yi,1,0,"ng-container",3),t.ALo(7,"ngrxPush"),t.qZA(),t.TgZ(8,"nz-col",2),t.YNc(9,Ti,1,0,"ng-container",3),t.ALo(10,"ngrxPush"),t.qZA(),t.TgZ(11,"nz-col",2),t.YNc(12,Di,1,0,"ng-container",3),t.ALo(13,"ngrxPush"),t.qZA()()(),t.YNc(14,Ai,8,7,"ng-template",null,4,t.W1O),t.YNc(16,Li,3,0,"ng-template",null,5,t.W1O),t.YNc(18,Zi,8,4,"ng-template",null,6,t.W1O)),2&i){const o=t.MAs(15),s=t.MAs(17),r=t.MAs(19);t.Q6J("nzTitle",s)("nzExtra",r),t.xp6(1),t.Q6J("nzGutter",t.DdM(19,ki)),t.xp6(2),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(20,pt,t.lcZ(4,11,e.commentsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(22,pt,t.lcZ(7,13,e.revisionsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(24,pt,t.lcZ(10,15,e.moderationView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(26,pt,t.lcZ(13,17,e.submissionsView$)))}},dependencies:[p.mk,p.sg,p.O5,p.tP,lt.JJ,lt.On,ye.x7,Pt.Dz,_.t3,_.SK,y.bd,Z.n_,Z.I2,Z.AA,Z.yi,Z.IO,Mt.Ip,Mt.Vq,T.ZU,we.p9,v.Ls,Te.SY,gt.m,Y.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0}),G);Et=(0,Oe.gn)([(0,S.c)()],Et);var H,Ni=c(4632),mt=c(5676),At=c(3997),Ui=c(812),Fi=c(836),Ji=c(3620),Qi=c(2460),$i=c(3489),Yi=c(9857),Gi=c(4997),Hi=c(6753),Bi=c(4764),Vi=c(8516),Ie=c(4527),Wi=c(5573);function ji(n,i){}function Xi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,ji,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),o=t.MAs(8),s=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",o),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Ki(n,i){}const qi=function(n){return{height:n}};function to(n,i){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,Ki,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(6),s=t.MAs(8),r=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,qi,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function eo(n,i){if(1&n&&(t._UZ(0,"tr",23),t.TgZ(1,"tr")(2,"td",19),t._UZ(3,"cvc-organization-tag",24),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",25),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",26),t._uU(13),t.ALo(14,"timeAgo"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("org",e),t.xp6(2),t.hij(" ",t.lcZ(6,6,e.memberCount)," "),t.xp6(3),t.Q6J("maxDisplayCount",1)("tags",e.subGroups),t.xp6(2),t.hij(" ",t.lcZ(11,8,e.eventCount)," "),t.xp6(3),t.hij(" ",t.lcZ(14,10,null==e.mostRecentEvent?null:e.mostRecentEvent.createdAt)," ")}}const no=function(){return[]},io=function(){return{x:"680px",y:"800px"}};function oo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.scrollEvent$.next(s))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.sortChange$.next(s))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Organization "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Members"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Sub Organizations"),t.qZA(),t.TgZ(14,"th",16),t._uU(15," Actions "),t.qZA(),t.TgZ(16,"th",17),t._uU(17," Last Action "),t.qZA()(),t.TgZ(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.NdJ("inputModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.orgNameInput=s)})("inputModelChange",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.filterChange$.next())}),t.qZA()(),t._UZ(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,eo,15,12,"ng-template",22),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,14,e.row$)||t.DdM(22,no))("nzLoading",!t.lcZ(3,16,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,18,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,20,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(23,io))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",e.orgNameInput)}}function so(n,i){}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,so,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function ao(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function co(n,i){if(1&n&&(t.YNc(0,ro,2,1,"ng-container",27),t.YNc(1,ao,2,1,"ng-container",27),t.TgZ(2,"span",28),t._UZ(3,"cvc-table-counts",29),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function lo(n,i){1&n&&(t.TgZ(0,"nz-tag",32),t._UZ(1,"i",33),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function ho(n,i){if(1&n&&(t.YNc(0,lo,4,0,"nz-tag",30),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",31),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let Lt=((H=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e){this.gql=i,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=z.xlL,this.noMoreRows$=new E.X(!1),this.scrollEvent$=new E.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Ui.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Fi.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","organizations"),(0,A.h)(mt.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,A.h)(mt.ep),(0,I.U)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,A.h)(mt.ep)),this.sortChange$.pipe((0,S.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,Ni._)(i)})}),this.filterChange$.pipe((0,Ji.b)(500),(0,S.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(i=>"stop"!==i),(0,At.x)(),(0,S.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.h)(i=>"bottom"===i),(0,Qi.M)(this.pageInfo$),(0,I.U)(([i,e])=>e),(0,S.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,e){return e?.id}}).\u0275fac=function(i){return new(i||H)(t.Y36(z.io),t.Y36(t.sBO))},H.\u0275cmp=t.Xpm({type:H,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right"],["nzWidth","125px","nzRight","","nzAlign","right"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,e){if(1&i&&(t.YNc(0,Xi,3,3,"ng-container",0),t.YNc(1,to,3,6,"ng-template",null,1,t.W1O),t.YNc(3,oo,27,24,"ng-template",null,2,t.W1O),t.YNc(5,co,4,3,"ng-template",null,3,t.W1O),t.YNc(7,ho,4,6,"ng-template",null,4,t.W1O)),2&i){const o=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",o)}},dependencies:[p.O5,p.tP,p.PC,v.Ls,D.N8,D.qD,D.Uo,D._C,D.Om,D.p0,D.$Z,D.zu,D.qn,D.UX,ht.w,y.bd,dt.j,$i.H,Yi.B,Gi.y,Hi.D,Bi.q,Vi.p,gt.m,Ie.T,p.JJ,Y.fM,Wi.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),H);function go(n,i){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Organization Docs "),t.qZA())}Lt=(0,Oe.gn)([(0,S.c)()],Lt);const po=function(){return[8,16]};let mo=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["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/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Organizations"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,go,3,0,"a",8),t.qZA()()(),t.TgZ(15,"nz-row",9)(16,"nz-col",10),t._UZ(17,"cvc-organization-leaderboards"),t.qZA(),t.TgZ(18,"nz-col",11)(19,"div",12),t._UZ(20,"cvc-organizations-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,4,"Organization")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(5),t.Q6J("nzGutter",t.DdM(6,po)),t.xp6(3),t.Q6J("nzSpan",24))},dependencies:[Q.$O,Q.u5,v.Ls,_.t3,_.SK,k.ix,ht.w,w.NU,w.$1,T.ZU,Se.I,Et,Lt,Pe.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{flex-wrap:nowrap;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 Zt=c(2185),uo=c(1958),fo=c(7458),_o=c(356),vo=c(4082);function zo(n,i){if(1&n&&t._UZ(0,"cvc-user-avatar",17),2&n){const e=t.oxw();t.Q6J("user",e.user)("size",48)}}function Co(n,i){if(1&n&&t._UZ(0,"cvc-user-tag",18),2&n){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function xo(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",19),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",e.organizations)}}function wo(n,i){1&n&&(t.ynx(0),t.TgZ(1,"span",20)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function yo(n,i){1&n&&(t.TgZ(0,"i",20),t._uU(1," None provided "),t.qZA())}function To(n,i){if(1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",24),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://",e.user.url,"",t.LSH)}}function Do(n,i){1&n&&t._UZ(0,"i",25)}function So(n,i){if(1&n&&(t.YNc(0,To,2,1,"a",21),t.YNc(1,Do,1,0,"ng-template",null,22,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.url)("ngIfElse",e)}}function Po(n,i){if(1&n&&(t.TgZ(0,"a",28),t._UZ(1,"i",29),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function Oo(n,i){1&n&&t._UZ(0,"i",30)}function Io(n,i){if(1&n&&(t.YNc(0,Po,2,1,"a",26),t.YNc(1,Oo,1,0,"ng-template",null,27,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.twitterHandle)("ngIfElse",e)}}function Mo(n,i){if(1&n&&(t.TgZ(0,"a",33),t._UZ(1,"i",34),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function Ro(n,i){1&n&&t._UZ(0,"i",35)}function Eo(n,i){if(1&n&&(t.YNc(0,Mo,2,1,"a",31),t.YNc(1,Ro,1,0,"ng-template",null,32,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.facebookProfile)("ngIfElse",e)}}function Ao(n,i){if(1&n&&(t.TgZ(0,"a",38),t._UZ(1,"i",39),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function Lo(n,i){1&n&&t._UZ(0,"i",40)}function Zo(n,i){if(1&n&&(t.YNc(0,Ao,2,1,"a",36),t.YNc(1,Lo,1,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.linkedinProfile)("ngIfElse",e)}}function ko(n,i){if(1&n&&(t.TgZ(0,"a",43),t._UZ(1,"i",44),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function No(n,i){1&n&&t._UZ(0,"i",45)}function Uo(n,i){if(1&n&&(t.YNc(0,ko,2,1,"a",41),t.YNc(1,No,1,0,"ng-template",null,42,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.orcid)("ngIfElse",e)}}const Fo=function(n,i,e,o,s){return[n,i,e,o,s]};let Jo=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case z.i44.Admin:this.icon="civic-admin";break;case z.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],["userAvatar",""],["userTag",""],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["noPersonalLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["noTwitterLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["noFacebookLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["noLinkedinLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["noOrcidLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,zo,1,2,"ng-template",null,2,t.W1O),t.YNc(4,Co,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),t._uU(9),t.ALo(10,"titlecase"),t.qZA(),t.TgZ(11,"nz-descriptions-item",7),t.YNc(12,bo,3,3,"ng-container",8),t.qZA(),t.TgZ(13,"nz-descriptions-item",9),t.YNc(14,xo,2,2,"ng-container",10),t.YNc(15,wo,4,0,"ng-container",10),t.qZA(),t.YNc(16,yo,2,0,"ng-template",null,11,t.W1O),t.qZA()()(),t.YNc(18,So,3,2,"ng-template",null,12,t.W1O),t.YNc(20,Io,3,2,"ng-template",null,13,t.W1O),t.YNc(22,Eo,3,2,"ng-template",null,14,t.W1O),t.YNc(24,Zo,3,2,"ng-template",null,15,t.W1O),t.YNc(26,Uo,3,2,"ng-template",null,16,t.W1O)),2&e){const s=t.MAs(3),r=t.MAs(5),a=t.MAs(17),l=t.MAs(19),d=t.MAs(21),h=t.MAs(23),g=t.MAs(25),f=t.MAs(27);t.Q6J("nzActions",t.qbA(16,Fo,l,f,g,h,d)),t.xp6(1),t.Q6J("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(10,14,o.user.role)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",o.user.areaOfExpertise)("ngIfElse",a),t.xp6(1),t.Q6J("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",o.user.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===o.user.organizations.length)}},dependencies:[p.O5,y.bd,y.l7,M.R7,M.uj,T.ZU,v.Ls,Ie.T,fo.L,_o.I,p.rS,vo.I],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function Qo(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-user-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("user",e)}}function $o(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qo,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function Yo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().ngrxLet,r=t.oxw();return t.KtG(r.loadMore(s.endCursor))}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij(" Load ",e.initialPageSize," More ")}}function Go(n,i){if(1&n&&(t.TgZ(0,"nz-col",6),t.YNc(1,Yo,2,1,"button",7),t.qZA()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e&&e.hasNextPage&&e.endCursor)}}const Ho=function(){return[8,8]};let Bo=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,Zt.j)("loading"),(0,F.O)(!0)),this.members$=a.pipe((0,Zt.j)("data","users","edges"),(0,A.h)(mt.lm),(0,I.U)(l=>l.map(d=>d.node))),this.pageInfo$=a.pipe((0,Zt.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Del),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-row",0),t.YNc(1,$o,2,1,"ng-container",1),t.ALo(2,"ngrxPush"),t.YNc(3,Go,2,1,"nz-col",2),t.qZA()),2&e&&(t.Q6J("nzGutter",t.DdM(5,Ho)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,o.members$)),t.xp6(2),t.Q6J("ngrxLet",o.pageInfo$))},dependencies:[p.sg,p.O5,Y.eJ,_.t3,_.SK,k.ix,ht.w,uo.dQ,Jo,Y.fM],encapsulation:2}),n})();var Vo=c(6282);const Wo=[{path:"",component:(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[C.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:mo},{path:":organizationId",component:hi,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Bo,data:{breadcrumb:"Members"}},{path:"groups",component:xi,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:ui,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Bn,data:{breadcrumb:"Assertions"}},{path:"activity",component:pi,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[Vo.O],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let jo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[C.Bz.forChild(Wo),C.Bz]}),n})();var Xo=c(7240);let Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Xo.W]}),n})(),qo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,jo,Jn,In,Ae,Dn,Pn,Mn,Gn,Ko]}),n})()}}]); \ No newline at end of file diff --git a/server/public/4084.2ab1cbc2a7466079.js b/server/public/4084.2ab1cbc2a7466079.js new file mode 100644 index 000000000..7e7cef4b7 --- /dev/null +++ b/server/public/4084.2ab1cbc2a7466079.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4084],{4084:(W,g,n)=>{n.r(g),n.d(g,{VariantGroupsAddModule:()=>D});var p=n(6814),v=n(8603),y=n(2419),V=n(2524),l=n(95),f=n(551),d=n(6254),s=n(4190),b=n(7398),t=n(5879),G=n(951),z=n(8178),S=n(3145),C=n(8091),M=n(2616);function x(e,a){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function w(e,a){1&e&&(t.TgZ(0,"nz-row",7)(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA()())}let A=(()=>{class e{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,b.U)(r=>r.signedIn))}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(G.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-add-view"]],decls:12,vars:7,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,o){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),t._UZ(3,"i",3),t.ALo(4,"entityColor"),t._uU(5," Add New Variant Group "),t.qZA(),t.TgZ(6,"nz-page-header-content")(7,"div",4),t.YNc(8,x,2,0,"div",5),t.ALo(9,"ngrxPush"),t.YNc(10,w,3,0,"ng-template",null,6,t.W1O),t.qZA()()()),2&r){const c=t.MAs(11);t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,3,"VariantGroup")),t.xp6(5),t.Q6J("ngIf",t.lcZ(9,5,o.isSignedIn$))("ngIfElse",c)}},dependencies:[p.O5,s.lC,l.t3,l.SK,f.Ls,d.$O,d.u9,d.u5,z.u,S.I,C.fM,M.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{flex-wrap:nowrap;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 h=n(3599),O=n(2840),P=n(706),T=n(279),F=n(1227);let Z=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,s.Bz,h.U5,O.sL,P.S,T.s,F.g]}),e})(),I=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,Z]}),e})();var J=n(655),u=n(6223),U=n(2024),L=n(8597),N=n(1791);const Y=[{wrappers:["form-layout"],props:{submitLabel:"Submit Variant Group",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Submit Variant Group"},fieldGroup:[{key:"name",type:"input",props:{label:"Variant Group Name",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Variant Group.",placeholder:"Enter a Variant Group Summary",label:"Variant Group Summary",required:!0,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{required:!1}},{key:"variantIds",type:"variant-multi-select",props:{label:"Variants",required:!0,colSpan:24,requireGene:!1,showManagerBtn:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Group"}}]}]}];var i,B=n(313),Q=n(7473),j=n(5545),$=n(9928);const E=function(e){return["/variant-groups",e]};function K(e,a){if(1&e&&(t._uU(0," View your Variant Group "),t.TgZ(1,"a",4),t._uU(2,"here"),t.qZA(),t._uU(3,". You will be redirected shortly. ")),2&e){const r=t.oxw();t.xp6(1),t.Q6J("routerLink",t.VKq(1,E,r.newVariantGroupId))}}let m=((i=class{constructor(a,r,o){this.submitVariantGroupGQL=a,this.networkErrorService=r,this.cdr=o,this.form=new u.nJ({}),this.model={fields:{}},this.fields=Y,this.submitVariantGroupMutator=new U.U(r)}onSubmit(a){const r=(0,L.t3)(a);r&&(this.mutationState=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:r},void 0,o=>{this.newVariantGroupId=o.submitVariantGroup?.variantGroup.id,this.newVariantGroupUrl=`/variant-groups/${this.newVariantGroupId}`}))}}).\u0275fac=function(a){return new(a||i)(t.Y36(B.tji),t.Y36(Q.Y),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variantgroup-submit-form"]],decls:5,vars:7,consts:[["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","modelChange"],[3,"routerLink"]],template:function(a,r){if(1&a&&(t.TgZ(0,"cvc-form-submission-status-display",0),t.YNc(1,K,4,3,"ng-template",null,1,t.W1O),t.TgZ(3,"form",2),t.NdJ("ngSubmit",function(){return r.onSubmit(r.model)}),t.TgZ(4,"formly-form",3),t.NdJ("modelChange",function(c){return r.model=c}),t.qZA()()()),2&a){const o=t.MAs(2);t.Q6J("mutationState",r.mutationState)("redirectUrl",r.newVariantGroupUrl)("successMessage",o),t.xp6(3),t.Q6J("formGroup",r.form),t.xp6(1),t.Q6J("form",r.form)("fields",r.fields)("model",r.model)}},dependencies:[s.rH,h.Lr,u._Y,u.JL,u.sg,j.T7,$.F]}),i);m=(0,J.gn)([(0,N.c)()],m);const R=[{path:"",component:A,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,o){1&r&&t._UZ(0,"cvc-variantgroup-submit-form")},dependencies:[m],encapsulation:2}),e})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let X=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.Bz.forChild(R),I,s.Bz]}),e})(),D=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,X,l.Jb,f.PV,d.KJ,v.a,V.s,y.D]}),e})()}}]); \ No newline at end of file diff --git a/server/public/4280.8b435a0224d36f67.js b/server/public/4280.8b435a0224d36f67.js new file mode 100644 index 000000000..e9535e9d7 --- /dev/null +++ b/server/public/4280.8b435a0224d36f67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4280],{4385:(V,Q,o)=>{o.d(Q,{L:()=>zt});var g,_=o(313),s=o(2181),R=o(7398),O=o(4223),n=o(5676),t=o(5879),m=o(6814),b=o(8091),y=o(2840),S=o(855),N=o(1958),A=o(95),P=o(655),I=o(2024),L=o(1791),J=o(951),B=o(7473),z=o(6223),E=o(3599),C=o(2962),M=o(3903),Y=o(6109),D=o(2669),j=o(5883),k=o(1446),T=o(4082);function v(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.onSuccessBannerClose())}),t.qZA()}}function d(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const a=t.MAs(4);t.Q6J("nzDescription",a)}}function x(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a)}}function w(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,x,2,1,"li",10),t.qZA()),2&c){const a=t.oxw();t.xp6(1),t.Q6J("ngForOf",a.errorMessages)}}function q(c,p){}function nn(c,p){1&c&&t.YNc(0,q,0,0,"ng-template")}function K(c,p){if(1&c&&(t.ynx(0),t.YNc(1,nn,1,0,null,14),t.BQk()),2&c){t.oxw();const a=t.MAs(6);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function en(c,p){}function on(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function sn(c,p){if(1&c&&(t.TgZ(0,"span",15),t.YNc(1,on,1,0,null,14),t.qZA()),2&c){t.oxw();const a=t.MAs(6);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function an(c,p){if(1&c&&(t.TgZ(0,"button",16),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const a=t.oxw().ngrxLet,f=t.oxw();t.Q6J("disabled",!(void 0!==f.comment&&f.comment.length>=10&&a.signedIn))("nzTooltipTrigger",f.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==f.selectedOrg?null:f.selectedOrg.name)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,4,f.flaggable.entityType)," ")}}function $(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.YNc(2,K,2,1,"ng-container",11),t.YNc(3,sn,2,1,"ng-template",null,12,t.W1O),t.YNc(5,an,3,6,"ng-template",null,13,t.W1O),t.qZA(),t.BQk()),2&c){const a=p.ngrxLet,f=t.MAs(4);t.xp6(2),t.Q6J("ngIf",a.signedIn)("ngIfElse",f)}}let Z=((g=class{constructor(p,a,f){this.gql=p,this.viewerService=a,this.networkErrorService=f,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.addFlagMutator=new I.U(this.networkErrorService),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.pipe((0,L.t)(this)).subscribe(h=>{this.selectedOrg=h.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(p){this.selectedOrg=p}submitFlag(){this.errorMessages=[];let a=this.addFlagMutator.mutate(this.gql,{input:{comment:this.comment,subject:this.flaggable,organizationId:this.selectedOrg?.id}});a.submitSuccess$.pipe((0,L.t)(this)).subscribe(f=>{f&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),a.submitError$.pipe((0,L.t)(this)).subscribe(f=>{f.length>0&&(this.errorMessages=f)}),a.isSubmitting$.pipe((0,L.t)(this)).subscribe(f=>{this.loading=f})}onSuccessBannerClose(){this.success=!1}}).\u0275fac=function(p){return new(p||g)(t.Y36(_.B0s),t.Y36(J.a),t.Y36(B.Y))},g.\u0275cmp=t.Xpm({type:g,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"],[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","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(p,a){1&p&&(t.TgZ(0,"nz-card",0),t.YNc(1,v,1,0,"nz-alert",1),t.YNc(2,d,1,1,"nz-alert",2),t.YNc(3,w,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return a.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(h){return a.comment=h}),t.qZA(),t.TgZ(7,"nz-spin",6)(8,"nz-form-item")(9,"nz-form-control"),t.YNc(10,$,7,2,"ng-container",7),t.qZA()()()()()),2&p&&(t.xp6(1),t.Q6J("ngIf",a.success),t.xp6(1),t.Q6J("ngIf",a.errorMessages.length>0),t.xp6(4),t.Q6J("comment",a.comment),t.xp6(1),t.Q6J("nzSpinning",a.loading),t.xp6(3),t.Q6J("ngrxLet",a.viewer$))},dependencies:[m.sg,m.O5,m.tP,z._Y,z.JL,z.F,b.eJ,A.t3,A.SK,E.Lr,E.Nx,E.Fd,y.ix,S.w,N.dQ,C.bd,M.r,Y.SY,D.W,j.Z,k.b,T.I],encapsulation:2,changeDetection:0}),g);Z=(0,P.gn)([(0,L.c)()],Z);var tn,G=o(8645),H=o(9773),ln=o(2574),mn=o(2392),dn=o(804),fn=o(6987),pn=o(551),un=o(356),vn=o(2384),zn=o(7417);function Cn(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.onSuccessBannerClose())}),t.qZA()}}function Tn(c,p){}function xn(c,p){1&c&&t.YNc(0,Tn,0,0,"ng-template")}function hn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,xn,1,0,null,9),t.BQk()),2&c){t.oxw(2);const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function yn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,hn,2,1,"ng-container",5),t.BQk()),2&c){const a=t.oxw().ngrxLet,f=t.MAs(5),h=t.oxw();t.xp6(1),t.Q6J("ngIf",a.isEditor||a.isAdmin||h.flag.flaggingUser.id===a.id)("ngIfElse",f)}}function An(c,p){}function Rn(c,p){1&c&&t.YNc(0,An,0,0,"ng-template")}function On(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,Rn,1,0,null,9),t.qZA()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function Fn(c,p){}function Zn(c,p){1&c&&t.YNc(0,Fn,0,0,"ng-template")}function Ln(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,Zn,1,0,null,9),t.qZA()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function bn(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(h){t.CHM(a);const U=t.oxw(3);return t.KtG(U.flagResolvePopoverVisible=h)})("click",function(){t.CHM(a);const h=t.oxw(3);return t.KtG(h.flagResolvePopoverVisible=!h.flagResolvePopoverVisible)}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const a=t.oxw(2).ngrxLet,f=t.oxw(),h=t.MAs(3),U=t.MAs(5);t.Q6J("nzPopoverTitle",h)("nzPopoverVisible",f.flagResolvePopoverVisible)("nzPopoverContent",U)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&f.flag.flaggingUser.id!=a.id)}}function Mn(c,p){if(1&c&&t.YNc(0,bn,3,5,"button",12),2&c){const a=t.oxw(2);t.Q6J("ngIf",!a.success)}}function En(c,p){if(1&c&&(t.ynx(0),t.YNc(1,yn,2,2,"ng-container",5),t.YNc(2,On,2,1,"ng-template",null,6,t.W1O),t.YNc(4,Ln,2,1,"ng-template",null,7,t.W1O),t.YNc(6,Mn,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const a=p.ngrxLet,f=t.MAs(3);t.xp6(1),t.Q6J("ngIf",a.signedIn)("ngIfElse",f)}}const Sn=function(){return{float:"right"}};function Nn(c,p){if(1&c){const a=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15)(2,"i",16),t.NdJ("click",function(){t.CHM(a);const h=t.oxw();return h.flagResolvePopoverVisible=!1,t.KtG(h.errorMessages=[])}),t.qZA()()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,Sn)))}function Qn(c,p){if(1&c&&t._UZ(0,"nz-alert",24),2&c){t.oxw();const a=t.MAs(2);t.Q6J("nzDescription",a)}}function In(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a)}}function Pn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,In,2,1,"li",25),t.qZA()),2&c){const a=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",a.errorMessages)}}function Jn(c,p){if(1&c){const a=t.EpF();t.YNc(0,Qn,1,1,"nz-alert",17),t.YNc(1,Pn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19)(4,"form",20),t.NdJ("ngSubmit",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.resolveFlag())}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(h){t.CHM(a);const U=t.oxw();return t.KtG(U.comment=h)}),t.qZA(),t.TgZ(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"button",23),t._uU(11," Resolve "),t.qZA()()()()()()()}if(2&c){const a=t.oxw();t.Q6J("ngIf",a.errorMessages.length>0),t.xp6(5),t.Q6J("comment",a.comment),t.xp6(1),t.Q6J("nzSpinning",a.loading),t.xp6(4),t.Q6J("disabled",!(void 0!==a.comment&&a.comment.length>=10))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}let cn=((tn=class{constructor(p,a,f){this.gql=p,this.viewerService=a,this.networkErrorService=f,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.resolveFlagMutator=new I.U(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewerService.viewer$.pipe((0,L.t)(this)).subscribe(p=>{this.selectedOrg=p.mostRecentOrg})}onOrgSelected(p){this.selectedOrg=p}resolveFlag(){if(this.comment){this.errorMessages=[];let p=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});p.submitSuccess$.pipe((0,L.t)(this)).subscribe(a=>{a&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),p.submitError$.pipe((0,L.t)(this)).subscribe(a=>{a.length>0&&(this.success=!1,this.errorMessages=a)}),p.isSubmitting$.pipe((0,L.t)(this)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}}).\u0275fac=function(p){return new(p||tn)(t.Y36(_.EwB),t.Y36(J.a),t.Y36(B.Y))},tn.\u0275cmp=t.Xpm({type:tn,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"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(p,a){1&p&&(t.YNc(0,Cn,1,0,"nz-alert",0),t.YNc(1,En,8,2,"ng-container",1),t.YNc(2,Nn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Jn,12,6,"ng-template",null,3,t.W1O)),2&p&&(t.Q6J("ngIf",a.success),t.xp6(1),t.Q6J("ngrxLet",a.viewer$))},dependencies:[m.sg,m.O5,m.tP,m.PC,z._Y,z.JL,b.eJ,y.ix,S.w,N.dQ,A.t3,A.SK,E.Lr,E.Nx,E.Fd,z.F,M.r,C.bd,zn.lU,pn.Ls,Y.SY,D.W,k.b,j.Z],encapsulation:2}),tn);cn=(0,P.gn)([(0,L.c)()],cn);var Yn=o(1834),Dn=o(2616),gn=o(5573);function Un(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const U=t.CHM(a).$implicit,Ct=t.oxw();return t.KtG(Ct.onErrorBannerClose(U))}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function Bn(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.onSuccessBannerClose())}),t.qZA()}if(2&c){const a=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",a.success,".")}}function $n(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const a=t.oxw(2).$implicit;t.Q6J("commentBodySegments",a.openComment.parsedComment)}}function wn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const a=t.oxw(2).$implicit,f=t.oxw(2);t.xp6(1),t.Q6J("flag",a)("flagResolvedCallback",f.flagResolvedCallback)}}function jn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const a=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",a.resolutionComment.parsedComment)}}function Wn(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const a=t.oxw(3).$implicit;t.Q6J("user",a.resolvingUser)}}function X(c,p){if(1&c&&(t.TgZ(0,"nz-row")(1,"nz-col",17),t.YNc(2,jn,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,Wn,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeAgo"),t.qZA()()),2&c){const a=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",a.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==a.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,a.resolvedAt)," ")}}function Gn(c,p){if(1&c&&(t._UZ(0,"i",22),t.ALo(1,"entityColor"),t._uU(2)),2&c){const a=t.oxw(2).$implicit;t.Q6J("nzTwotoneColor",t.lcZ(1,2,"Flag")),t.xp6(2),t.hij(" FID",a.id," ")}}function Kn(c,p){if(1&c&&(t.TgZ(0,"span")(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()()),2&c){const a=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",a.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,a.createdAt))}}function Vn(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const a=t.oxw(3).$implicit;t.Q6J("status",a.state)}}function kn(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Kn,7,4,"span",24),t.YNc(2,Vn,1,1,"cvc-status-tag",25),t.qZA())}function Hn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,$n,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,wn,2,2,"ng-container",3),t.YNc(4,X,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Gn,3,4,"ng-template",null,13,t.W1O),t.YNc(8,kn,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const a=t.MAs(5),f=t.MAs(7),h=t.MAs(9),U=t.oxw().$implicit;t.Q6J("nzTitle",f)("nzExtra",h),t.xp6(1),t.Q6J("ngIf",U.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==U.state)("ngIfElse",a)}}function qn(c,p){1&c&&(t.ynx(0),t.YNc(1,Hn,10,5,"nz-card",9),t.BQk())}function Xn(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,qn,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.flags)}}function nt(c,p){1&c&&t._UZ(0,"nz-empty",28)}let tt=(()=>{class c{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new G.x}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,f){a.submitSuccess$.pipe((0,H.R)(this.destroy$)).subscribe(h=>{h&&(this.isLoading=!1,this.errors=void 0,this.success=f)}),a.submitError$.pipe((0,H.R)(this.destroy$)).subscribe(h=>{h.length>0&&(this.isLoading=!1,this.success=!1,this.errors=h)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(a){this.errors=this.errors?.filter(f=>f!=a)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(J.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","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(a,f){if(1&a&&(t.YNc(0,Un,1,1,"nz-alert",0),t.YNc(1,Bn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,Xn,3,1,"ng-container",3),t.YNc(4,nt,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&a){const h=t.MAs(5);t.Q6J("ngForOf",f.errors),t.xp6(1),t.Q6J("ngIf",f.success),t.xp6(2),t.Q6J("ngIf",f.flags&&f.flags.length>0)("ngIfElse",h)}},dependencies:[m.sg,m.O5,A.t3,A.SK,C.bd,ln.NU,ln.$1,mn.ZU,dn.p9,fn.g,pn.Ls,un.I,vn.h,S.w,M.r,cn,Yn.m,Dn.a,gn.x],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var et=o(6794),it=o(6928);const _n=function(){return[]};function ot(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const a=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,a.flags$)||t.DdM(4,_n))("flagResolvedCallback",a.refresh)}}function st(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(a);const h=t.oxw(2).ngrxLet,U=t.oxw(2);return t.KtG(U.loadMore(null==h?null:h.endCursor))}),t._uU(1," Load More "),t.qZA()}}function at(c,p){1&c&&(t.ynx(0),t.YNc(1,st,2,0,"button",15),t.BQk())}function lt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,at,2,0,"ng-container",14),t.BQk()),2&c){const a=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function ct(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const a=t.oxw(2);t.Q6J("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function _t(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a.displayName)}}function rt(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const a=t.oxw().$implicit;t.Q6J("nzSrc",a.profileImagePath)}}function pt(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const a=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,a.username.charAt(0)))}}function gt(c,p){if(1&c&&(t.YNc(0,rt,1,1,"nz-avatar",18),t.YNc(1,pt,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const a=p.$implicit,f=t.MAs(2);t.Q6J("ngIf",a.profileImagePath)("ngIfElse",f),t.xp6(4),t.Oqu(a.username)}}function mt(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const a=t.oxw().$implicit;t.Q6J("nzSrc",a.profileImagePath)}}function dt(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const a=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,a.username.charAt(0)))}}function ft(c,p){if(1&c&&(t.YNc(0,mt,1,1,"nz-avatar",18),t.YNc(1,dt,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const a=p.$implicit,f=t.MAs(2);t.Q6J("ngIf",a.profileImagePath)("ngIfElse",f),t.xp6(4),t.Oqu(a.username)}}function ut(c,p){if(1&c){const a=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,ot,2,5,"cvc-flag-list",5),t.YNc(5,lt,2,1,"ng-container",6),t.YNc(6,ct,1,2,"cvc-flag-add-form",7),t.qZA()(),t.TgZ(7,"nz-col",8)(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(h){t.CHM(a);const U=t.oxw();return t.KtG(U.onStateSelected(h))}),t.YNc(9,_t,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(h){t.CHM(a);const U=t.oxw();return t.KtG(U.onFlaggingUsersSelected(h))}),t.ALo(12,"ngrxPush"),t.YNc(13,gt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(h){t.CHM(a);const U=t.oxw();return t.KtG(U.onResolvingUsersSelected(h))}),t.ALo(16,"ngrxPush"),t.YNc(17,ft,5,3,"ng-template",null,10,t.W1O),t.qZA()()(),t.BQk()}if(2&c){const a=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",a.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,a.uniqueFlaggingUsers$)||t.DdM(10,_n)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,a.uniqueResolvingUsers$)||t.DdM(11,_n))}}function vt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const a=t.oxw();t.Q6J("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let zt=(()=>{class c{constructor(a){this.gql=a,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,O.j)("data","flags","edges"),(0,s.h)(n.ep),(0,R.U)(a=>a.map(f=>f.node))),this.pageInfo$=this.results$.pipe((0,O.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,O.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,R.U)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,R.U)(({data:a})=>a.flags?.uniqueResolvingUsers))}onFlaggingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:a?a.id:void 0})}onResolvingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:a?a.id:void 0})}onStateSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:a?a.value:void 0})}loadMore(a){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:a}})}}return c.\u0275fac=function(a){return new(a||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(a,f){if(1&a&&(t.YNc(0,ut,19,12,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,vt,1,2,"ng-template",null,1,t.W1O)),2&a){const h=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,f.unfilteredCount$))("ngIfElse",h)}},dependencies:[m.O5,b.eJ,y.ix,S.w,N.dQ,A.t3,A.SK,Z,tt,et.l,it.Dz,ln.NU,ln.$1,m.gd,b.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},7937:(V,Q,o)=>{o.d(Q,{M:()=>$});var _=o(6814),s=o(7907),R=o(8706),O=o(2962),n=o(3599),t=o(6976),m=o(6223),b=o(2524),y=o(9543),S=o(6545),N=o(3903),A=o(2840),P=o(2669),I=o(6109),L=o(5879);let J=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=L.oAB({type:Z}),Z.\u0275inj=L.cJS({imports:[_.ez,m.u5,m.UX,n.U5,A.sL,O.vh,N.L,I.cg,P.j,S.R,b.s,y.w]}),Z})();var B=o(4758),z=o(3396),E=o(3043),C=o(2655),M=o(8641),Y=o(6061),D=o(3717),j=o(7528),k=o(551),T=o(7417);let g=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=L.oAB({type:Z}),Z.\u0275inj=L.cJS({imports:[_.ez,m.UX,A.sL,n.U5,m.u5,N.L,O.vh,T.$6,k.PV,I.cg,P.j,y.w,S.R]}),Z})();var v=o(6928),d=o(2612),x=o(6987),w=o(804),q=o(95),nn=o(824),K=o(2574),en=o(5695),on=o(2392);let sn=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=L.oAB({type:Z}),Z.\u0275inj=L.cJS({imports:[_.ez,q.Jb,t.Ph,O.vh,K.zf,en.X,on.ZJ,v.Rt,w.Xo,d.Wr,x.S,I.cg,t.Ph,T.$6,k.PV,nn.o7,m.u5,M.s,R.W,z.Q,Y.N,E.y,j.Q,D.M,C.x,b.s,A.sL,N.L,g,x.S,B.m]}),Z})();var an=o(1595);let $=(()=>{class Z{}return Z.\u0275fac=function(H){return new(H||Z)},Z.\u0275mod=L.oAB({type:Z}),Z.\u0275inj=L.cJS({imports:[_.ez,m.u5,A.sL,n.U5,s.aF,A.sL,R.W,t.Ph,O.vh,J,sn,w.Xo,an.N,v.Rt,K.zf,b.s]}),Z})()},1801:(V,Q,o)=>{o.d(Q,{Y:()=>s});var _=o(5879);let s=(()=>{class R{constructor(){}}return R.\u0275fac=function(n){return new(n||R)},R.\u0275dir=_.lG2({type:R,selectors:[["","cvcFlaggableOptions",""]]}),R})()},327:(V,Q,o)=>{o.d(Q,{o:()=>B});var _=o(5879),s=o(1801),R=o(6814),O=o(4190),n=o(551),t=o(3640),m=o(6109);const b=["cvcFlaggable",""];function y(z,E){1&z&&_.Hsn(0)}function S(z,E){1&z&&_.GkF(0)}function N(z,E){if(1&z&&(_.ynx(0),_.YNc(1,S,1,0,"ng-container",2),_.BQk()),2&z){_.oxw();const C=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",C)}}function A(z,E){if(1&z&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&z){_.oxw();const C=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",C)}}function P(z,E){if(1&z&&_._uU(0),2&z){const C=_.oxw(2);_.hij(" ",C.flags," open flags ")}}function I(z,E){1&z&&_.GkF(0)}function L(z,E){if(1&z&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,A,2,1,"ng-template",null,4,_.W1O),_.YNc(4,P,1,1,"ng-template",null,5,_.W1O),_.YNc(6,I,1,0,"ng-container",2),_.qZA(),_.BQk()),2&z){const C=_.MAs(3);_.oxw();const M=_.MAs(1);_.xp6(1),_.Q6J("nzText",C),_.xp6(5),_.Q6J("ngTemplateOutlet",M)}}const J=["*"];let B=(()=>{class z{constructor(C){this.renderer=C}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 z.\u0275fac=function(C){return new(C||z)(_.Y36(_.Qsj))},z.\u0275cmp=_.Xpm({type:z,selectors:[["","cvcFlaggable",""]],contentQueries:function(C,M,Y){if(1&C&&_.Suo(Y,s.Y,5,_.SBq),2&C){let D;_.iGM(D=_.CRH())&&(M.flaggedChild=D.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:b,ngContentSelectors:J,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(C,M){1&C&&(_.F$t(),_.YNc(0,y,1,0,"ng-template",null,0,_.W1O),_.YNc(2,N,2,1,"ng-container",1),_.YNc(3,L,7,2,"ng-container",1)),2&C&&(_.xp6(2),_.Q6J("ngIf",0===M.flags),_.xp6(1),_.Q6J("ngIf",M.flags))},dependencies:[R.O5,R.tP,O.rH,n.Ls,t.F9,m.SY],encapsulation:2}),z})()},5725:(V,Q,o)=>{o.d(Q,{m:()=>b});var _=o(6814),s=o(6109),R=o(2392),O=o(3640),n=o(551),t=o(4190),m=o(5879);let b=(()=>{class y{}return y.\u0275fac=function(N){return new(N||y)},y.\u0275mod=m.oAB({type:y}),y.\u0275inj=m.cJS({imports:[_.ez,t.Bz,n.PV,O.mS,s.cg,R.ZJ]}),y})()},1665:(V,Q,o)=>{o.d(Q,{i:()=>an});var _=o(6814),s=o(2962),R=o(6976),O=o(95),n=o(5879);let t=(()=>{class ${}return $.\u0275fac=function(G){return new(G||$)},$.\u0275mod=n.oAB({type:$}),$.\u0275inj=n.cJS({imports:[_.ez,O.Jb]}),$})();var m=o(29),b=o(8641),y=o(2574),S=o(5695),N=o(2392),A=o(6928),P=o(8706),I=o(3396),L=o(3043),J=o(7528),B=o(3717),z=o(565),E=o(804),C=o(2655),M=o(2612),Y=o(6987),D=o(6109),j=o(2840),k=o(3903),T=o(551),g=o(7417),v=o(824),d=o(6223),x=o(2524),w=o(8125),q=o(9543),nn=o(4758),K=o(1218),en=o(6061),on=o(8527),sn=o(5956);let an=(()=>{class ${}return $.\u0275fac=function(G){return new(G||$)},$.\u0275mod=n.oAB({type:$}),$.\u0275inj=n.cJS({imports:[_.ez,O.Jb,R.Ph,s.vh,y.zf,S.X,N.ZJ,A.Rt,E.Xo,M.Wr,Y.S,D.cg,R.Ph,g.$6,T.PV,v.o7,w.q6,Y.S,d.u5,m.C,sn.U,b.s,t,P.W,I.Q,en.N,L.y,J.Q,K.i,B.M,C.x,q.w,on.u,x.s,nn.m,z.cD,j.sL,k.L]}),$})()},6126:(V,Q,o)=>{o.d(Q,{a:()=>ke});var _=o(313),s=o(7398),R=o(7921),O=o(4223),n=o(5879),t=o(4190),m=o(6814),b=o(8091),y=o(95),S=o(2574),N=o(5695),A=o(6928),P=o(804),I=o(2840),L=o(855),J=o(1958),B=o(551),z=o(6794),E=o(8645),C=o(2024),M=o(9773),Y=o(951),D=o(7473),j=o(6976),k=o(2962),T=o(2392),g=o(2612),v=o(6987),d=o(6109),x=o(7417),w=o(8125);let q=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=n.Yjl({name:"camelToWords",type:e,pure:!0}),e})();const nn=["itemTemplate"],K=function(e){return{$implicit:e}};function en(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,K,i))}}function on(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function sn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.YNc(1,en,3,4,"ng-container",10),n.YNc(2,on,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function an(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw();n.MGl("nzNoResult","No ",i.entityType,"")}}function $(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,K,i))}}function Z(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function G(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",17),n.YNc(1,$,3,4,"ng-container",10),n.YNc(2,Z,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function H(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(3);n.MGl("nzNoResult","No ",i.entityType," Removed")}}function ln(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,G,4,2,"nz-list-item",16),n.YNc(2,H,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw(2);n.MGl("nzHeader","Removed ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.removedObjects.length)}}function mn(e,l){1&e&&(n.ynx(0),n.YNc(1,ln,3,3,"nz-list",7),n.BQk())}function dn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,K,i))}}function fn(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function pn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.YNc(1,dn,3,4,"ng-container",10),n.YNc(2,fn,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function un(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(2);n.MGl("nzNoResult","No ",i.entityType," Added")}}function vn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,pn,4,2,"nz-list-item",18),n.YNc(2,un,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw();n.MGl("nzHeader","Added ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.addedObjects.length)}}function zn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,K,i))}}function tn(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function Cn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",21),n.YNc(1,zn,3,4,"ng-container",10),n.YNc(2,tn,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function Tn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(3);n.MGl("nzNoResult","No ",i.entityType," Kept")}}function xn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,Cn,4,2,"nz-list-item",20),n.YNc(2,Tn,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw(2);n.MGl("nzHeader","Kept ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.keptObjects.length)}}function hn(e,l){1&e&&(n.ynx(0),n.YNc(1,xn,3,3,"nz-list",7),n.BQk())}function yn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,K,i))}}function An(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function Rn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",22),n.YNc(1,yn,3,4,"ng-container",10),n.YNc(2,An,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function On(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw();n.MGl("nzNoResult","No ",i.entityType,"")}}let Fn=(()=>{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(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(i,r,u){if(1&i&&n.Suo(u,nn,5),2&i){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"],[4,"ngIf","ngIfElse"],["deleted",""],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzColor","error"],[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(i,r){1&i&&(n.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"nz-list",2),n.YNc(3,sn,4,2,"nz-list-item",3),n.YNc(4,an,1,1,"nz-list-empty",4),n.qZA()(),n.TgZ(5,"nz-col",1)(6,"nz-space",5),n.YNc(7,mn,2,0,"ng-container",6),n.YNc(8,vn,3,3,"nz-list",7),n.YNc(9,hn,2,0,"ng-container",6),n.qZA()(),n.TgZ(10,"nz-col",1)(11,"nz-list",2),n.YNc(12,Rn,4,2,"nz-list-item",8),n.YNc(13,On,1,1,"nz-list-empty",4),n.qZA()()()),2&i&&(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))},dependencies:[m.mk,m.sg,m.O5,m.tP,j.n_,j.I2,j.AA,y.t3,y.SK,N.j,S.NU,S.$1,q],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 Zn=o(4121),Ln=o(4138);let bn=(()=>{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(i){return new(i||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(i,r){1&i&&(n.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1)(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1)(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3)(13,"div",4),n._uU(14),n.qZA()()()()),2&i&&(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," "))},dependencies:[y.t3,y.SK],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 Mn=o(356),En=o(9775),Sn=o(4770),Nn=o(3897),Qn=o(9408),In=o(4786),Pn=o(7938),Jn=o(2384),cn=o(1446),Yn=o(2606),Dn=o(1834),gn=o(565),Un=o(3903),Bn=o(4082),$n=o(2616),wn=o(5573);function jn(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const F=n.CHM(i).$implicit,W=n.oxw();return n.KtG(W.onErrorBannerClose(F))}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Wn(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){n.CHM(i);const u=n.oxw();return n.KtG(u.onSuccessBannerClose())}),n.qZA()}if(2&e){const i=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",i.success,".")}}const X=function(e,l,i){return{id:e,name:l,link:i}};function Gn(e,l){if(1&e&&n._UZ(0,"cvc-gene-tag",20),2&e){const i=l.$implicit;n.Q6J("gene",n.kEZ(1,X,i.id,i.displayName,i.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,Gn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Vn(e,l){1&e&&n._UZ(0,"cvc-source-tag",22),2&e&&n.Q6J("source",l.$implicit)}function kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Vn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",24),2&e){const i=l.$implicit;n.Q6J("disease",n.kEZ(1,X,i.id,i.displayName,i.link))}}function qn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Hn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Xn(e,l){if(1&e&&n._UZ(0,"cvc-molecular-profile-tag",26),2&e){const i=l.$implicit;n.Q6J("molecularProfile",n.kEZ(1,X,i.id,i.displayName,i.link))}}function nt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Xn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function tt(e,l){if(1&e&&n._UZ(0,"cvc-therapy-tag",28),2&e){const i=l.$implicit;n.Q6J("therapy",n.kEZ(1,X,i.id,i.displayName,i.link))}}function et(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,tt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-therapy-tag",28),2&e){const i=l.$implicit;n.Q6J("therapy",n.kEZ(1,X,i.id,i.displayName,i.link))}}function _n(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,it,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ot(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function st(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",29),n.YNc(2,ot,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function lt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,at,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ct(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function _t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",31),n.YNc(2,ct,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function rt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function pt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,rt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function mt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",33),n.YNc(2,gt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function ft(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,dt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ut(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function vt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,ut,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function zt(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",37),2&e){const i=l.$implicit;n.Q6J("variantType",n.kEZ(1,X,i.id,i.displayName,i.link))}}function c(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,zt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function p(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",39),2&e){const i=l.$implicit;n.Q6J("phenotype",n.kEZ(1,X,i.id,i.displayName,i.link))}}function a(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",38),n.YNc(2,p,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function f(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",41),2&e){const i=l.$implicit;n.Q6J("variant",n.kEZ(1,X,i.id,i.displayName,i.link))}}function h(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",40),n.YNc(2,f,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function U(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",41),2&e){const i=l.$implicit;n.Q6J("variant",n.kEZ(1,X,i.id,i.displayName,i.link))}}function Ct(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",42),n.YNc(2,U,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ht(e,l){1&e&&n._UZ(0,"cvc-source-tag",22),2&e&&n.Q6J("source",l.$implicit)}function yt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",43),n.YNc(2,ht,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}const At=function(e,l,i,r){return{id:e,name:l,link:i,status:r}};function Rt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",45),2&e){const i=l.$implicit;n.Q6J("evidence",n.l5B(1,At,i.id,i.displayName,i.link,i.status))}}function Ot(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",44),n.YNc(2,Rt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Ft(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",46),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function Zt(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",50),n.BQk()),2&e){const i=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",i.resolutionComment.parsedComment)}}function Lt(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",51),2&e){const i=n.oxw(2).$implicit;n.Q6J("user",i.resolver)}}function bt(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row")(3,"nz-col",47),n.YNc(4,Zt,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",48),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,Lt,1,1,"cvc-user-tag",49),n._uU(9),n.ALo(10,"timeAgo"),n.qZA()(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",i.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,i.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==i.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,i.resolvedAt)," ")}}function Mt(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",53),n.ALo(2,"entityColor"),n._uU(3),n.TgZ(4,"span"),n._uU(5),n.qZA()()),2&e){const i=n.oxw(2).$implicit;n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,3,"Revision")),n.xp6(2),n.hij(" RID",i.id," "),n.xp6(2),n.hij("",i.linkoutData.name," Updated")}}function Et(e,l){if(1&e&&n._UZ(0,"i",56),2&e){n.oxw();const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function St(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",50),2&e){const i=n.oxw(3).$implicit;n.Q6J("commentBodySegments",i.creationComment.parsedComment)}}function Nt(e,l){1&e&&(n.ynx(0),n.YNc(1,Et,1,1,"i",54),n.YNc(2,St,1,1,"ng-template",null,55,n.W1O),n.BQk())}function Qt(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,Mt,6,5,"span",52),n.YNc(2,Nt,4,0,"ng-container",15),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",i.creationComment)}}function It(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",63),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",51),n.BQk()),2&e){const i=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",i.revisor)}}function Pt(e,l){1&e&&(n.TgZ(0,"span",63),n._uU(1,"Submitted"),n.qZA())}function Jt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,It,4,1,"ng-container",61),n.YNc(2,Pt,2,0,"ng-template",null,62,n.W1O),n.TgZ(4,"span",63),n._uU(5),n.ALo(6,"timeAgo"),n.qZA()()),2&e){const i=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",i),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function Yt(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",64),2&e){const i=n.oxw(2).$implicit;n.Q6J("status",i.status)}}function Dt(e,l){1&e&&n._UZ(0,"nz-divider",65)}function Ut(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"a",66),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(2).$implicit,F=n.oxw(3);return n.KtG(F.onChangesetSelected(u.revisionSetId))}),n._uU(1,"Show Group"),n.qZA()}}function Bt(e,l){1&e&&n._UZ(0,"nz-divider",65)}function $t(e,l){1&e&&n._UZ(0,"label",69),2&e&&n.Q6J("nzDisabled",!0)}function wt(e,l){1&e&&n._UZ(0,"label",72),2&e&&n.Q6J("nzDisabled",!0)}function jt(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"label",73),n.NdJ("nzCheckedChange",function(u){n.CHM(i);const F=n.oxw(5).$implicit,W=n.oxw(3);return n.KtG(W.onRevisionCheckboxClicked(u,F.id))}),n.qZA()}}function Wt(e,l){if(1&e&&(n.YNc(0,wt,1,1,"label",70),n.YNc(1,jt,1,0,"ng-template",null,71,n.W1O)),2&e){const i=n.MAs(2),r=n.oxw(4).$implicit,u=n.oxw(2).ngrxLet;n.Q6J("ngIf",u.isCurator&&u.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",i)}}function Gt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,$t,1,1,"label",67),n.YNc(2,Wt,3,2,"ng-template",null,68,n.W1O),n.qZA()),2&e){const i=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",i)}}function Kt(e,l){1&e&&(n.ynx(0),n.YNc(1,Bt,1,0,"nz-divider",59),n.YNc(2,Gt,4,2,"span",52),n.BQk())}function Vt(e,l){if(1&e&&(n.TgZ(0,"nz-space",57),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,Jt,7,5,"span",52),n.YNc(2,Yt,1,1,"cvc-status-tag",58),n.YNc(3,Dt,1,0,"nz-divider",59),n.YNc(4,Ut,2,0,"a",60),n.YNc(5,Kt,3,0,"ng-container",15),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===i.status)}}function kt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,Kn,4,1,"ng-container",13),n.YNc(3,kn,4,1,"ng-container",13),n.YNc(4,qn,4,1,"ng-container",13),n.YNc(5,nt,4,1,"ng-container",13),n.YNc(6,et,4,1,"ng-container",13),n.YNc(7,_n,4,1,"ng-container",13),n.YNc(8,st,4,1,"ng-container",13),n.YNc(9,lt,4,1,"ng-container",13),n.YNc(10,_t,4,1,"ng-container",13),n.YNc(11,pt,4,1,"ng-container",13),n.YNc(12,mt,4,1,"ng-container",13),n.YNc(13,ft,4,1,"ng-container",13),n.YNc(14,vt,4,1,"ng-container",13),n.YNc(15,c,4,1,"ng-container",13),n.YNc(16,a,4,1,"ng-container",13),n.YNc(17,h,4,1,"ng-container",13),n.YNc(18,Ct,4,1,"ng-container",13),n.YNc(19,yt,4,1,"ng-container",13),n.YNc(20,Ot,4,1,"ng-container",13),n.YNc(21,Ft,2,5,"ng-container",14),n.BQk(),n.YNc(22,bt,11,8,"ng-container",15),n.YNc(23,Qt,3,1,"ng-template",null,16,n.W1O),n.YNc(25,Vt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(24),u=n.MAs(26);n.Q6J("nzHeader",r)("nzExtra",u)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",i.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","gene_id"),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","molecular_profile_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","therapy_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","molecular_profile_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clingen_code_ids"),n.xp6(1),n.Q6J("ngSwitchCase","acmg_code_ids"),n.xp6(1),n.Q6J("ngSwitchCase","nccn_guideline_id"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_description_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"!==i.status)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,kt,27,24,"nz-collapse-panel",10),n.qZA()),2&e){const i=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",i.untypedRevisons)}}function qt(e,l){1&e&&n._UZ(0,"nz-empty",74)}function Xt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Ht,2,1,"nz-collapse",7),n.YNc(3,qt,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.MAs(4),r=n.oxw(),u=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",u),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",i)}}function ne(e,l){}function te(e,l){1&e&&n.YNc(0,ne,0,0,"ng-template")}function ee(e,l){if(1&e&&(n.ynx(0),n.YNc(1,te,1,0,null,83),n.BQk()),2&e){n.oxw();const i=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function ie(e,l){}function oe(e,l){1&e&&n.YNc(0,ie,0,0,"ng-template")}function se(e,l){if(1&e&&(n.TgZ(0,"span",84),n.YNc(1,oe,1,0,null,83),n.qZA()),2&e){n.oxw();const i=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function ae(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"button",85),n.NdJ("nzPopoverVisibleChange",function(u){n.CHM(i);const F=n.oxw(7);return n.KtG(F.validationPopoverVisible=u)})("click",function(){n.CHM(i);const u=n.oxw(7);return n.KtG(u.validationPopoverVisible=!u.validationPopoverVisible)}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",86),n.qZA()}if(2&e){const i=n.oxw(2).ngrxLet,r=n.MAs(7),u=n.MAs(9),F=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",F.validationPopoverVisible)("nzPopoverContent",u)("nzPopoverTrigger",void 0)("disabled",0===F.selectedRevisionIds.length||!i.signedIn)}}function le(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,ee,2,1,"ng-container",61),n.YNc(2,se,2,1,"ng-template",null,81,n.W1O),n.YNc(4,ae,3,5,"ng-template",null,82,n.W1O),n.qZA()),2&e){const i=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",i)}}function ce(e,l){if(1&e&&n._UZ(0,"i",88),2&e){n.oxw(4);const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function _e(e,l){1&e&&(n.ynx(0),n.YNc(1,ce,1,1,"i",87),n.BQk())}const re=function(){return{float:"right"}};function pe(e,l){if(1&e){const i=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",89)(2,"i",90),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(6);return n.KtG(u.validationPopoverVisible=!1)}),n.qZA()()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,re)))}function ge(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"cvc-comment-input-form",93),n.NdJ("commentChange",function(u){n.CHM(i);const F=n.oxw(7);return n.KtG(F.revisionComment=u)}),n.qZA()}if(2&e){const i=n.oxw(7);n.Q6J("comment",i.revisionComment)}}function me(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"span")(1,"button",94),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(8);return n.KtG(u.onRejectRevisionsClicked())}),n._uU(2," Reject Revision "),n.qZA()()}if(2&e){const i=n.oxw(8);n.xp6(1),n.Q6J("nzLoading",i.isLoading)("disabled",void 0===i.revisionComment||i.revisionComment.length<10)("nzTooltipTrigger",i.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==i.mostRecentOrg?null:i.mostRecentOrg.name))}}function de(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"span")(1,"button",95),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(8);return n.KtG(u.onAcceptRevisionClicked())}),n._uU(2," Accept Revision "),n.qZA()()}if(2&e){const i=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==i&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))("nzTooltipTrigger",r.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==r.mostRecentOrg?null:r.mostRecentOrg.name))}}function fe(e,l){if(1&e&&n._UZ(0,"i",97),2&e){n.oxw(6);const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function ue(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,fe,1,1,"i",96),n.qZA()),2&e){const i=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i>0)}}function ve(e,l){1&e&&(n.TgZ(0,"span")(1,"nz-space"),n.YNc(2,me,3,4,"span",52),n.YNc(3,de,3,4,"span",52),n.YNc(4,ue,2,1,"span",52),n.qZA()())}function ze(e,l){1&e&&(n.TgZ(0,"nz-space",91),n.YNc(1,ge,1,1,"cvc-comment-input-form",92),n.YNc(2,ve,5,0,"span",52),n.qZA())}function Ce(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",76)(2,"div",77)(3,"nz-space",78),n.YNc(4,le,6,2,"span",52),n.YNc(5,_e,2,0,"ng-container",15),n.qZA(),n.YNc(6,pe,3,2,"ng-template",null,79,n.W1O),n.YNc(8,ze,3,0,"ng-template",null,80,n.W1O),n.qZA()(),n.BQk()),2&e){const i=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",i&&i>0)}}function Te(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Ce,10,1,"ng-container",2),n.BQk()),2&e){const i=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",i.viewer$)}}function xe(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i)}}function he(e,l){if(1&e&&(n.TgZ(0,"nz-card",99)(1,"nz-list",100),n.YNc(2,xe,2,1,"nz-list-item",101),n.qZA()()),2&e){const i=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",i)}}function ye(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,he,3,1,"nz-card",98),n.qZA()),2&e){const i=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i.length>0)}}function Ae(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",106),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.Q6J("nzTitle",i.fieldName),n.xp6(1),n.Oqu(i.error)}}function Re(e,l){if(1&e&&(n.TgZ(0,"nz-card",103)(1,"nz-descriptions",104),n.YNc(2,Ae,2,2,"nz-descriptions-item",105),n.qZA()()),2&e){const i=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",i)}}function Oe(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Re,3,1,"nz-card",102),n.qZA()),2&e){const i=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i.length>0)}}function Fe(e,l){1&e&&(n.TgZ(0,"nz-space",91),n.YNc(1,ye,2,1,"span",52),n.YNc(2,Oe,2,1,"span",52),n.qZA())}function Ze(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Te,2,1,"ng-container",2),n.YNc(2,Fe,3,0,"ng-template",null,75,n.W1O),n.BQk()),2&e){const i=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",i.totalErrorCount$)}}function Le(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Ze,4,1,"ng-container",2),n.BQk()),2&e){const i=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",i.genericErrors$)}}function be(e,l){if(1&e&&n.YNc(0,Le,2,1,"ng-container",2),2&e){const i=n.oxw();n.Q6J("ngrxLet",i.validationErrors$)}}let Me=(()=>{class e{constructor(i,r,u,F,W){this.viewerService=i,this.networkErrorService=r,this.acceptRevisionsGql=u,this.rejectRevisionsGql=F,this.validationGql=W,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new E.x,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new C.U(this.networkErrorService),this.rejectRevisionsMutator=new C.U(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnChanges(i){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewerService.viewer$.subscribe(i=>{this.mostRecentOrg=i.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.genericErrors.length+i.validateRevisionsForAcceptance.validationErrors.length),(0,R.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,r){i?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(u=>u!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,r){i.submitSuccess$.pipe((0,M.R)(this.destroy$)).subscribe(u=>{u&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[],this.revisionComment=void 0)}),i.submitError$.pipe((0,M.R)(this.destroy$)).subscribe(u=>{u.length>0&&(this.isLoading=!1,this.success=!1,this.errors=u,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let i=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"rejected")}}onAcceptRevisionClicked(){this.isLoading=!0;let i=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(i){this.errors=this.errors?.filter(r=>r!=i)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(Y.a),n.Y36(D.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},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","Gene",3,"diffObject"],["itemTemplate",""],[3,"gene"],["entityType","Sources",3,"diffObject"],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Molecular Profile",3,"diffObject"],[3,"molecularProfile"],["entityType","Therapies",3,"diffObject"],[3,"therapy"],["entityType","Variant Aliases",3,"diffObject"],["entityType","Molecular Profile Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","ClinGen/CGC/VICC Code(s)",3,"diffObject"],["entityType","ACMG/AMP Code(s)",3,"diffObject"],["entityType","NCCN Guideline",3,"diffObject"],["entityType","HGVS Descriptions",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","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["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"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","","nz-tooltip","",3,"nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nz-tooltip","",3,"nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle","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(i,r){1&i&&(n.YNc(0,jn,1,1,"nz-alert",0),n.YNc(1,Wn,1,1,"nz-alert",1),n.YNc(2,Xt,5,3,"ng-container",2),n.YNc(3,be,1,1,"ng-template",null,3,n.W1O)),2&i&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},dependencies:[m.sg,m.O5,m.tP,m.PC,m.RF,m.n9,m.ED,y.t3,y.SK,j.n_,j.AA,k.bd,S.NU,S.$1,N.j,T.ZU,P.p9,g.Ie,v.g,d.SY,x.lU,B.Ls,w.R7,w.uj,Fn,Zn.H,Ln.T,bn,Mn.I,En.n,Sn.T,Nn.i,Qn.I,In.O,Pn.j,Jn.h,cn.b,Yn.p,Dn.m,gn.Zv,gn.yH,I.ix,L.w,J.dQ,Un.r,b.eJ,Bn.I,$n.a,wn.x],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})();function Ee(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(u){n.CHM(i);const F=n.oxw(2);return n.KtG(F.onRevisionSetSelected(u))})("revisionMutationCompleted",function(){n.CHM(i);const u=n.oxw(2);return n.KtG(u.refresh())}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const i=n.oxw(2);n.Q6J("revisions",n.lcZ(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function Se(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(2).ngrxLet,F=n.oxw(2);return n.KtG(F.loadMore(null==u?null:u.endCursor))}),n._uU(1," Load More "),n.qZA()}}function Ne(e,l){1&e&&(n.ynx(0),n.YNc(1,Se,2,0,"button",16),n.BQk())}function Qe(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Ne,2,0,"ng-container",15),n.BQk()),2&e){const i=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Ie(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-row")(1,"nz-tag",19),n.NdJ("nzOnClose",function(){n.CHM(i);const u=n.oxw(3);return n.KtG(u.onSetFilterClearClicked())}),n._uU(2),n.qZA()()}if(2&e){const i=n.oxw(3);n.xp6(2),n.hij("Group: ",i.filteredSet,"")}}function Pe(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,Ie,3,1,"nz-row",18),n.qZA())}function Je(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i.displayName)}}function Ye(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function De(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.username.charAt(0)))}}function Ue(e,l){if(1&e&&(n.YNc(0,Ye,1,1,"nz-avatar",20),n.YNc(1,De,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.username)}}function Be(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i.displayName)}}function $e(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function we(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.username.charAt(0)))}}function je(e,l){if(1&e&&(n.YNc(0,$e,1,1,"nz-avatar",20),n.YNc(1,we,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.username)}}const Tt=function(){return[]};function We(e,l){if(1&e){const i=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),n.YNc(4,Ee,2,4,"cvc-revision-list",5),n.YNc(5,Qe,2,1,"ng-container",6),n.qZA()(),n.TgZ(6,"nz-col",7),n.YNc(7,Pe,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(u){n.CHM(i);const F=n.oxw();return n.KtG(F.onStatusSelected(u))}),n.YNc(9,Je,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(u){n.CHM(i);const F=n.oxw();return n.KtG(F.onRevisorSelected(u))}),n.ALo(12,"ngrxPush"),n.YNc(13,Ue,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(u){n.CHM(i);const F=n.oxw();return n.KtG(F.onFieldNameSelected(u))}),n.ALo(16,"ngrxPush"),n.YNc(17,Be,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(u){n.CHM(i);const F=n.oxw();return n.KtG(F.onResolverSelected(u))}),n.ALo(20,"ngrxPush"),n.YNc(21,je,5,3,"ng-template",null,10,n.W1O),n.qZA()()(),n.BQk()}if(2&e){const i=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",i.pageInfo$),n.xp6(2),n.Q6J("ngIf",i.filteredSet),n.xp6(1),n.Q6J("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,i.uniqueRevisors$)||n.DdM(14,Tt)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,i.revisionFields$)||n.DdM(15,Tt)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,i.uniqueResolvers$)||n.DdM(16,Tt))}}function Ge(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Ke(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Ve(e,l){if(1&e&&(n.YNc(0,Ge,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ke,1,0,"ng-template",null,24,n.W1O)),2&e){const i=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",i)}}let ke=(()=>{class e{constructor(i,r,u,F,W,rn,xt,He,qe,Xe,ni,ti,ei,ii){this.gql=i,this.route=r,this.variantDetailGql=u,this.variantSummaryGql=F,this.variantGroupDetailGql=W,this.variantGroupSummaryGql=rn,this.assertionDetailGql=xt,this.assertionSummaryGql=He,this.geneDetailGql=qe,this.geneSummaryGql=Xe,this.evidenceDetailGql=ni,this.evidenceSummaryGql=ti,this.molecularProfileDetailGql=ei,this.molecularProfileSummaryGql=ii,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.preselectedRevisionStatus=this.selectableStatuses[0],this.defaultPageSize=10,this.refetchQueries=[]}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(i=>{this.queryParamsSub=this.route.queryParams.subscribe(r=>{let u={first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New};r.revisionSetId&&(this.filteredSet=+r.revisionSetId,this.preselectedRevisionStatus=void 0,u.status=void 0,u.revisionSetId=+r.revisionSetId),this.queryRef=this.gql.watch(u);let F=this.queryRef.valueChanges;this.revisions$=F.pipe((0,O.j)("data","revisions","edges"),(0,s.U)(W=>W.map(rn=>rn.node))),this.isLoading$=F.pipe((0,s.U)(W=>W.loading),(0,R.O)(!0)),this.pageInfo$=F.pipe((0,O.j)("data","revisions","pageInfo")),this.uniqueRevisors$=F.pipe((0,s.U)(({data:W})=>W.revisions?.uniqueRevisors)),this.uniqueResolvers$=F.pipe((0,s.U)(({data:W})=>W.revisions?.uniqueResolvers)),this.revisionFields$=F.pipe((0,s.U)(({data:W})=>W.revisions?.revisedFieldNames.map((rn,xt)=>({...rn,id:xt})))),this.unfilteredCount$=F.pipe((0,O.j)("data","revisions","unfilteredCountForSubject"))})}),this.entityType){case _.oRL.Variant:return this.refetchQueries.push({query:this.variantDetailGql.document,variables:{variantId:this.id}}),void this.refetchQueries.push({query:this.variantSummaryGql.document,variables:{variantId:this.id}});case _.oRL.Assertion:return this.refetchQueries.push({query:this.assertionDetailGql.document,variables:{assertionId:this.id}}),void this.refetchQueries.push({query:this.assertionSummaryGql.document,variables:{assertionId:this.id}});case _.oRL.EvidenceItem:return this.refetchQueries.push({query:this.evidenceDetailGql.document,variables:{evidenceId:this.id}}),void this.refetchQueries.push({query:this.evidenceSummaryGql.document,variables:{evidenceId:this.id}});case _.oRL.Gene:return this.refetchQueries.push({query:this.geneDetailGql.document,variables:{geneId:this.id}}),void this.refetchQueries.push({query:this.geneSummaryGql.document,variables:{geneId:this.id}});case _.oRL.VariantGroup:return this.refetchQueries.push({query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.id}}),void this.refetchQueries.push({query:this.variantGroupSummaryGql.document,variables:{variantGroupId:this.id}});case _.oRL.MolecularProfile:return this.refetchQueries.push({query:this.molecularProfileDetailGql.document,variables:{molecularProfileId:this.id}}),void this.refetchQueries.push({query:this.molecularProfileSummaryGql.document,variables:{molecularProfileId:this.id}})}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onFieldNameSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:i?i.name:void 0})}onRevisorSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:i?i.id:void 0})}onResolverSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:i?i.id:void 0})}onStatusSelected(i){this.preselectedRevisionStatus=i,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:i?i.value:void 0})}onRevisionSetSelected(i){this.filteredSet=i,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionSetId:i||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(i){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:i}})}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(_.L5n),n.Y36(t.gz),n.Y36(_.iJT),n.Y36(_.Bo4),n.Y36(_.Qtd),n.Y36(_.q1D),n.Y36(_.A94),n.Y36(_.ejK),n.Y36(_.TNk),n.Y36(_.cCu),n.Y36(_.pHu),n.Y36(_.sBY),n.Y36(_.AMF),n.Y36(_.Tg0))},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","refetchQueries","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Filter by Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Filter by Revisor",3,"participantList","participantSelectedEvent"],["listTitle","Filter by Field",3,"participantList","participantSelectedEvent"],["listTitle","Filter by Resolver",3,"participantList","participantSelectedEvent"],[3,"revisions","refetchQueries","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(i,r){if(1&i&&(n.YNc(0,We,23,17,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ve,4,4,"ng-template",null,1,n.W1O)),2&i){const u=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",u)}},dependencies:[m.O5,b.eJ,y.t3,y.SK,S.NU,S.$1,N.j,A.Dz,P.p9,I.ix,L.w,J.dQ,B.Ls,z.l,Me,m.gd,b.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2534:(V,Q,o)=>{o.d(Q,{A:()=>L});var _=o(6814),s=o(95),R=o(6976),O=o(2962),n=o(2574),t=o(5695),m=o(2392),b=o(1595),y=o(6928),S=o(1665),N=o(804),A=o(2840),P=o(551),I=o(5879);let L=(()=>{class J{}return J.\u0275fac=function(z){return new(z||J)},J.\u0275mod=I.oAB({type:J}),J.\u0275inj=I.cJS({imports:[_.ez,s.Jb,R.Ph,O.vh,n.zf,t.X,m.ZJ,y.Rt,N.Xo,A.sL,P.PV,b.N,S.i]}),J})()},1520:(V,Q,o)=>{o.d(Q,{N:()=>k});var _=o(4223),s=o(5879),R=o(313),O=o(6814),n=o(2392),t=o(4190),m=o(6928),b=o(7417),y=o(8125),S=o(4821),N=o(7908);function A(T,g){1&T&&(s.ynx(0),s._uU(1,", "),s.BQk())}function P(T,g){if(1&T&&(s.ynx(0),s._uU(1),s.ALo(2,"eventVerbiage"),s.YNc(3,A,2,0,"ng-container",12),s.BQk()),2&T){const v=g.$implicit,d=g.last;s.xp6(1),s.hij(" ",s.Dn7(2,2,v.action,"contributor-card",v.count)," "),s.xp6(2),s.Q6J("ngIf",!d)}}function I(T,g){if(1&T&&(s.TgZ(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.YNc(2,P,4,6,"ng-container",10),s.qZA(),s.TgZ(3,"nz-descriptions-item",11),s._uU(4),s.ALo(5,"date"),s.qZA()()),2&T){const v=s.oxw(2).$implicit;s.Q6J("nzColumn",1),s.xp6(2),s.Q6J("ngForOf",v.uniqueActions),s.xp6(2),s.hij(" ",s.lcZ(5,3,v.lastActionDate)," ")}}function L(T,g){if(1&T&&(s.TgZ(0,"cvc-user-popover",6),s.YNc(1,I,6,5,"ng-template",null,7,s.W1O),s.qZA()),2&T){const v=s.oxw().$implicit;s.Q6J("userId",v.user.id)}}function J(T,g){if(1&T&&(s.TgZ(0,"a",3),s._UZ(1,"nz-avatar",4),s.YNc(2,L,3,1,"ng-template",null,5,s.W1O),s.qZA()),2&T){const v=g.$implicit,d=s.MAs(3);s.MGl("routerLink","/users/",v.user.id,""),s.xp6(1),s.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d)("nzSrc",v.user.profileImagePath)}}function B(T,g){if(1&T&&(s.ynx(0),s.YNc(1,J,4,5,"a",2),s.BQk()),2&T){const v=s.oxw();s.xp6(1),s.Q6J("ngForOf",v.sortedContributors)}}function z(T,g){1&T&&s._uU(0," None ")}let E=(()=>{class T{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((v,d)=>d.totalActionCount-v.totalActionCount)}}return T.\u0275fac=function(v){return new(v||T)},T.\u0275cmp=s.Xpm({type:T,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(v,d){if(1&v&&(s.YNc(0,B,2,1,"ng-container",0),s.YNc(1,z,1,0,"ng-template",null,1,s.W1O)),2&v){const x=s.MAs(2);s.Q6J("ngIf",d.sortedContributors&&d.sortedContributors.length>0)("ngIfElse",x)}},dependencies:[O.sg,O.O5,t.rH,m.Dz,b.lU,y.R7,y.uj,S.q,O.uU,N.R],encapsulation:2}),T})();var C=o(8091);function M(T,g){if(1&T&&(s.ynx(0),s._UZ(1,"cvc-contributor-stack",5),s.BQk()),2&T){const v=g.ngIf;s.xp6(1),s.Q6J("contributors",v)}}function Y(T,g){1&T&&s._uU(0," None ")}function D(T,g){if(1&T&&(s.ynx(0),s._UZ(1,"cvc-contributor-stack",5),s.BQk()),2&T){const v=g.ngIf;s.xp6(1),s.Q6J("contributors",v)}}function j(T,g){1&T&&s._uU(0," None ")}let k=(()=>{class T{constructor(v){this.gql=v}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let v=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=v.pipe((0,_.j)("data","contributors","curators")),this.editors$=v.pipe((0,_.j)("data","contributors","editors"))}}return T.\u0275fac=function(v){return new(v||T)(s.Y36(R.kQf))},T.\u0275cmp=s.Xpm({type:T,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(v,d){if(1&v&&(s.TgZ(0,"span",0),s._uU(1,"Curators:"),s.qZA(),s.TgZ(2,"div",1),s.YNc(3,M,2,1,"ng-container",2),s.ALo(4,"ngrxPush"),s.YNc(5,Y,1,0,"ng-template",null,3,s.W1O),s.qZA(),s.TgZ(7,"span",0),s._uU(8,"Editors:"),s.qZA(),s.TgZ(9,"div",1),s.YNc(10,D,2,1,"ng-container",2),s.ALo(11,"ngrxPush"),s.YNc(12,j,1,0,"ng-template",null,4,s.W1O),s.qZA()),2&v){const x=s.MAs(6),w=s.MAs(13);s.xp6(3),s.Q6J("ngIf",s.lcZ(4,4,d.curators$))("ngIfElse",x),s.xp6(7),s.Q6J("ngIf",s.lcZ(11,6,d.editors$))("ngIfElse",w)}},dependencies:[O.O5,n.ZU,E,C.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}"]}),T})()},936:(V,Q,o)=>{o.d(Q,{Z:()=>N});var _=o(6814),s=o(2392),R=o(4190),O=o(6928),n=o(7417),t=o(2524),m=o(4086),b=o(8125),y=o(5879);let S=(()=>{class A{}return A.\u0275fac=function(I){return new(I||A)},A.\u0275mod=y.oAB({type:A}),A.\u0275inj=y.cJS({imports:[_.ez,R.Bz,O.Rt,n.$6,b.q6,t.s,m.J]}),A})(),N=(()=>{class A{}return A.\u0275fac=function(I){return new(I||A)},A.\u0275mod=y.oAB({type:A}),A.\u0275inj=y.cJS({imports:[_.ez,s.ZJ,S]}),A})()},8295:(V,Q,o)=>{o.d(Q,{Q:()=>B});var _=o(2024),s=o(313),R=o(8645),O=o(7398),n=o(9773),t=o(5879),m=o(7473),b=o(6814),y=o(2840),S=o(855),N=o(1958),A=o(551),P=o(6109),I=o(8091);function L(z,E){if(1&z){const C=t.EpF();t.ynx(0),t.TgZ(1,"button",2),t.NdJ("click",function(){t.CHM(C);const Y=t.oxw();return t.KtG(Y.unsubscribe())}),t._UZ(2,"i",3),t.qZA(),t.BQk()}if(2&z){const C=t.oxw();t.xp6(1),t.Q6J("nzLoading",C.isSubmitting)}}function J(z,E){if(1&z){const C=t.EpF();t.TgZ(0,"button",4),t.NdJ("click",function(){t.CHM(C);const Y=t.oxw();return t.KtG(Y.subscribe())}),t._UZ(1,"i",5),t.qZA()}if(2&z){const C=t.oxw();t.Q6J("nzLoading",C.isSubmitting)}}let B=(()=>{class z{constructor(C,M,Y,D){this.isSubscribedGQL=C,this.unsubscribeMutation=M,this.subscribeMutation=Y,this.networkErrorService=D,this.isSubmitting=!1,this.destroy$=new R.x,this.unsubscribeMutator=new _.U(D),this.subscribeMutator=new _.U(D)}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:s.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,O.U)(({data:M})=>M.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(M=>{M&&(this.queryRef?.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(M=>{M&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return z.\u0275fac=function(C){return new(C||z)(t.Y36(s.A4J),t.Y36(s.m$d),t.Y36(s.jMx),t.Y36(m.Y))},z.\u0275cmp=t.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(C,M){if(1&C&&(t.YNc(0,L,3,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,J,2,1,"ng-template",null,1,t.W1O)),2&C){const Y=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,M.existingSubscription$))("ngIfElse",Y)}},dependencies:[b.O5,y.ix,S.w,N.dQ,A.Ls,P.SY,I.fM],styles:["[_nghost-%COMP%]{display:block}"]}),z})()},7129:(V,Q,o)=>{o.d(Q,{g:()=>t});var _=o(6814),s=o(2840),R=o(551),O=o(6109),n=o(5879);let t=(()=>{class m{}return m.\u0275fac=function(y){return new(y||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[_.ez,s.sL,R.PV,O.cg]}),m})()},4082:(V,Q,o)=>{o.d(Q,{I:()=>s});var _=o(5879);let s=(()=>{class R{transform(n){if(n){let m=n.toLowerCase().replace(/_/g," ").split(" ");for(var t=0;t{o.d(Q,{Zv:()=>k,cD:()=>T,yH:()=>D});var _=o(655),s=o(5879),R=o(2438),O=o(9773),n=o(2181),t=o(4194),m=o(874),b=o(9087),y=o(7754),S=o(9388),N=o(331),A=o(6814),P=o(551),I=o(8324);const L=["*"],J=["collapseHeader"];function B(g,v){if(1&g&&(s.ynx(0),s._UZ(1,"span",7),s.BQk()),2&g){const d=v.$implicit,x=s.oxw(2);s.xp6(1),s.Q6J("nzType",d||"right")("nzRotate",x.nzActive?90:0)}}function z(g,v){if(1&g&&(s.TgZ(0,"div"),s.YNc(1,B,2,2,"ng-container",3),s.qZA()),2&g){const d=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",d.nzExpandedIcon)}}function E(g,v){if(1&g&&(s.ynx(0),s._uU(1),s.BQk()),2&g){const d=s.oxw();s.xp6(1),s.Oqu(d.nzHeader)}}function C(g,v){if(1&g&&(s.ynx(0),s._uU(1),s.BQk()),2&g){const d=s.oxw(2);s.xp6(1),s.Oqu(d.nzExtra)}}function M(g,v){if(1&g&&(s.TgZ(0,"div",8),s.YNc(1,C,2,1,"ng-container",3),s.qZA()),2&g){const d=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",d.nzExtra)}}const Y="collapse";let D=(()=>{class g{constructor(d,x,w,q){this.nzConfigService=d,this.cdr=x,this.directionality=w,this.destroy$=q,this._nzModuleName=Y,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(Y).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,O.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(d){this.listOfNzCollapsePanelComponent.push(d)}removePanel(d){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(d),1)}click(d){this.nzAccordion&&!d.nzActive&&this.listOfNzCollapsePanelComponent.filter(x=>x!==d).forEach(x=>{x.nzActive&&(x.nzActive=!1,x.nzActiveChange.emit(x.nzActive),x.markForCheck())}),d.nzActive=!d.nzActive,d.nzActiveChange.emit(d.nzActive)}}return g.\u0275fac=function(d){return new(d||g)(s.Y36(m.jY),s.Y36(s.sBO),s.Y36(S.Is,8),s.Y36(b.kn))},g.\u0275cmp=s.Xpm({type:g,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(d,x){2&d&&s.ekj("ant-collapse-icon-position-left","left"===x.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===x.nzExpandIconPosition)("ant-collapse-ghost",x.nzGhost)("ant-collapse-borderless",!x.nzBordered)("ant-collapse-rtl","rtl"===x.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],features:[s._Bn([b.kn])],ngContentSelectors:L,decls:1,vars:0,template:function(d,x){1&d&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,m.oS)(),(0,y.yF)()],g.prototype,"nzAccordion",void 0),(0,_.gn)([(0,m.oS)(),(0,y.yF)()],g.prototype,"nzBordered",void 0),(0,_.gn)([(0,m.oS)(),(0,y.yF)()],g.prototype,"nzGhost",void 0),g})();const j="collapsePanel";let k=(()=>{class g{markForCheck(){this.cdr.markForCheck()}constructor(d,x,w,q,nn,K){this.nzConfigService=d,this.ngZone=x,this.cdr=w,this.destroy$=q,this.nzCollapseComponent=nn,this.noAnimation=K,this._nzModuleName=j,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.vpe,this.nzConfigService.getConfigChangeEventForComponent(j).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,R.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.h)(()=>!this.nzDisabled),(0,O.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}}return g.\u0275fac=function(d){return new(d||g)(s.Y36(m.jY),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(b.kn),s.Y36(D,1),s.Y36(N.P,8))},g.\u0275cmp=s.Xpm({type:g,selectors:[["nz-collapse-panel"]],viewQuery:function(d,x){if(1&d&&s.Gf(J,7),2&d){let w;s.iGM(w=s.CRH())&&(x.collapseHeader=w.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(d,x){2&d&&s.ekj("ant-collapse-no-arrow",!x.nzShowArrow)("ant-collapse-item-active",x.nzActive)("ant-collapse-item-disabled",x.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],features:[s._Bn([b.kn])],ngContentSelectors:L,decls:8,vars:8,consts:[["role","button",1,"ant-collapse-header"],["collapseHeader",""],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(d,x){1&d&&(s.F$t(),s.TgZ(0,"div",0,1),s.YNc(2,z,2,1,"div",2),s.YNc(3,E,2,1,"ng-container",3),s.YNc(4,M,2,1,"div",4),s.qZA(),s.TgZ(5,"div",5)(6,"div",6),s.Hsn(7),s.qZA()()),2&d&&(s.uIk("aria-expanded",x.nzActive),s.xp6(2),s.Q6J("ngIf",x.nzShowArrow),s.xp6(1),s.Q6J("nzStringTemplateOutlet",x.nzHeader),s.xp6(1),s.Q6J("ngIf",x.nzExtra),s.xp6(1),s.ekj("ant-collapse-content-active",x.nzActive),s.Q6J("@.disabled",!(null==x.noAnimation||!x.noAnimation.nzNoAnimation))("@collapseMotion",x.nzActive?"expanded":"hidden"))},dependencies:[A.O5,P.Ls,I.f],encapsulation:2,data:{animation:[t.J_]},changeDetection:0}),(0,_.gn)([(0,y.yF)()],g.prototype,"nzActive",void 0),(0,_.gn)([(0,y.yF)()],g.prototype,"nzDisabled",void 0),(0,_.gn)([(0,m.oS)(),(0,y.yF)()],g.prototype,"nzShowArrow",void 0),g})(),T=(()=>{class g{}return g.\u0275fac=function(d){return new(d||g)},g.\u0275mod=s.oAB({type:g}),g.\u0275inj=s.cJS({imports:[S.vT,A.ez,P.PV,I.T,N.g]}),g})()}}]); \ No newline at end of file diff --git a/server/public/4449.385cbcaaa3a2a9b7.js b/server/public/4449.29bd210305459ea1.js similarity index 99% rename from server/public/4449.385cbcaaa3a2a9b7.js rename to server/public/4449.29bd210305459ea1.js index 86a0d12f2..6216a0b13 100644 --- a/server/public/4449.385cbcaaa3a2a9b7.js +++ b/server/public/4449.29bd210305459ea1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4449],{1218:(O,v,o)=>{o.d(v,{i:()=>x});var c=o(6814),d=o(4190),C=o(5695),l=o(7417),n=o(551),_=o(1855),m=o(2524),h=o(3640),u=o(3146),z=o(5879);let x=(()=>{class f{}return f.\u0275fac=function(g){return new(g||f)},f.\u0275mod=z.oAB({type:f}),f.\u0275inj=z.cJS({imports:[c.ez,d.Bz,h.mS,C.X,l.$6,n.PV,_.f,m.s,u.C]}),f})()},1106:(O,v,o)=>{o.d(v,{L:()=>r});var c=o(6814),d=o(4190),C=o(5695),l=o(551),n=o(95),_=o(6067),m=o(8125),h=o(2962),u=o(1022),z=o(5879);let x=(()=>{class g{}return g.\u0275fac=function(P){return new(P||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[c.ez,h.vh,n.Jb,m.q6,_.X,u.H]}),g})();var f=o(7417);let r=(()=>{class g{}return g.\u0275fac=function(P){return new(P||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[c.ez,d.Bz,C.X,l.PV,f.$6,x]}),g})()},7950:(O,v,o)=>{o.d(v,{x:()=>f});var c=o(6814),d=o(366),C=o(5695),l=o(7417),n=o(3396),_=o(1106),m=o(5956),h=o(7528),u=o(6061),z=o(3717),x=o(5879);let f=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=x.oAB({type:r}),r.\u0275inj=x.cJS({imports:[c.ez,C.X,l.$6,d.$,u.N,n.Q,_.L,m.U,h.Q,z.M]}),r})()},3717:(O,v,o)=>{o.d(v,{M:()=>f});var c=o(6814),d=o(4190),C=o(5695),l=o(2962),n=o(6067),_=o(8125),m=o(551),h=o(2524),u=o(5879);let z=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[c.ez,m.PV,l.vh,_.q6,h.s,n.X]}),r})();var x=o(7417);let f=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[c.ez,d.Bz,m.PV,C.X,x.$6,z]}),r})()},4010:(O,v,o)=>{o.d(v,{F:()=>C});var d=o(5879);let C=(()=>{class l{transform(_,m="display-string"){return void 0===_?"":"display-string"===m?function c(l){switch(l){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return l}}(_):`civic-${_.replace(/_/g,"").toLowerCase()}`}}return l.\u0275fac=function(_){return new(_||l)},l.\u0275pipe=d.Yjl({name:"therapyInteractionEnumDisplay",type:l,pure:!0}),l})()},6444:(O,v,o)=>{o.r(v),o.d(v,{DiseasesModule:()=>ze});var c=o(6814),d=o(4190),C=o(7921),l=o(4223),n=o(5879),_=o(313),m=o(551),h=o(6254),u=o(3317),z=o(3145),x=o(8091),f=o(2616);function r(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",6),n._uU(1),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("href",t.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+t.doid," ")}}function g(e,a){if(1&e&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,r,2,2,"cvc-link-tag",5),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.diseaseUrl)}}function y(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),n._UZ(4,"i",3),n.ALo(5,"entityColor"),n._uU(6),n.qZA(),n.YNc(7,g,2,1,"nz-page-header-extra",0),n.TgZ(8,"nz-page-header-content")(9,"div",4),n._UZ(10,"router-outlet"),n.qZA()()(),n.BQk()),2&e){const t=a.ngIf;n.xp6(1),n.Q6J("displayName",t.name),n.xp6(3),n.Q6J("nzTwotoneColor",n.lcZ(5,4,"Disease")),n.xp6(2),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",t.doid)}}let P=(()=>{class e{constructor(t,i){this.route=t,this.gql=i,this.routeSub=this.route.params.subscribe(s=>{this.diseaseId=+s.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,l.j)("loading"),(0,C.O)(!0)),this.disease$=p.pipe((0,l.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(d.gz),n.Y36(_.wg3))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-diseases-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],[1,"content"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf"],["tooltip","View on disease-ontology.org",3,"href"]],template:function(t,i){1&t&&(n.YNc(0,y,11,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,i.disease$))},dependencies:[c.O5,d.lC,m.Ls,h.$O,h.u9,h.u5,h.Jp,u.l,z.I,x.fM,f.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{flex-wrap:nowrap;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 I,M=o(95),w=o(2840),Y=o(855),D=o(2392),b=o(2574),G=o(655),X=o(4632),Z=o(1791),B=o(5619),N=o(8645),F=o(5676),$=o(3997),q=o(812),k=o(836),J=o(2181),R=o(7398),nn=o(3620),en=o(2460),S=o(2962),T=o(3740),E=o(5695),H=o(6109),tn=o(6753),on=o(4764),an=o(8516),sn=o(9775),cn=o(3489),rn=o(9857),ln=o(4997);function gn(e,a){}function pn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",5),n.YNc(2,gn,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){n.oxw();const t=n.MAs(6),i=n.MAs(8),s=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",t)("nzExtra",i),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function dn(e,a){}const _n=function(e){return{height:e}};function mn(e,a){if(1&e&&(n.TgZ(0,"div",7)(1,"nz-card",8),n.YNc(2,dn,0,0,"ng-template",6),n.qZA()()),2&e){const t=n.oxw(),i=n.MAs(6),s=n.MAs(8),p=n.MAs(4);n.Q6J("ngStyle",n.VKq(4,_n,t.cvcHeight)),n.xp6(1),n.Q6J("nzTitle",i)("nzExtra",s),n.xp6(1),n.Q6J("ngTemplateOutlet",p)}}function hn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",36),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit;n.Q6J("href",t.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+t.doid," ")}}function fn(e,a){1&e&&n._uU(0," -- ")}function un(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=a.$implicit,i=a.last;n.xp6(1),n.AsE(" ",t,"",i?"":", "," ")}}function zn(e,a){if(1&e&&n.YNc(0,un,2,2,"ng-container",37),2&e){const t=n.oxw().$implicit;n.Q6J("ngForOf",t.geneNames)}}function vn(e,a){if(1&e&&(n.TgZ(0,"tr",29)(1,"td",25),n._UZ(2,"cvc-disease-tag",30),n.qZA(),n.TgZ(3,"td",25),n.YNc(4,hn,2,2,"cvc-link-tag",31),n.YNc(5,fn,1,0,"ng-template",null,32,n.W1O),n.qZA(),n.TgZ(7,"td",33),n.YNc(8,zn,1,1,"ng-template",null,34,n.W1O),n.GkF(10,6),n.qZA(),n.TgZ(11,"td",35),n._uU(12),n.qZA(),n.TgZ(13,"td",35),n._uU(14),n.qZA(),n.TgZ(15,"td",35),n._uU(16),n.qZA(),n.TgZ(17,"td",35),n._uU(18),n.qZA()()),2&e){const t=a.$implicit,i=n.MAs(6),s=n.MAs(9),p=n.oxw(2);n.xp6(2),n.Q6J("disease",t),n.xp6(2),n.Q6J("ngIf",t.doid)("ngIfElse",i),n.xp6(3),n.Q6J("nzTooltipTitle",p.isScrolling?"":s),n.xp6(3),n.Q6J("ngTemplateOutlet",s),n.xp6(2),n.hij(" ",t.geneCount," "),n.xp6(2),n.hij(" ",t.variantCount," "),n.xp6(2),n.hij(" ",t.evidenceItemCount," "),n.xp6(2),n.hij(" ",t.assertionCount," ")}}const Cn=function(){return[]},xn=function(){return{x:"680px",y:"800px"}},Q=function(){return["descend","ascend",null]};function Tn(e,a){if(1&e){const t=n.EpF();n.TgZ(0,"nz-table",9,10),n.NdJ("cvcTableScrollOnScroll",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.scrollEvent$.next(s))}),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.ALo(5,"ngrxPush"),n.TgZ(6,"thead",11),n.NdJ("nzSortOrderChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.sortChange$.next(s))}),n.TgZ(7,"tr",12)(8,"th",13),n._uU(9," Name "),n.qZA(),n.TgZ(10,"th",14),n._uU(11," DOID "),n.qZA(),n.TgZ(12,"th",15),n._uU(13,"Genes"),n.qZA(),n.TgZ(14,"th",16),n._UZ(15,"i",17),n._uU(16," Count "),n.qZA(),n.TgZ(17,"th",18),n._UZ(18,"i",19),n._uU(19," Count "),n.qZA(),n.TgZ(20,"th",20),n._UZ(21,"i",21),n._uU(22," Count "),n.qZA(),n.TgZ(23,"th",22),n._UZ(24,"i",23),n._uU(25," Count "),n.qZA()(),n.TgZ(26,"tr",24)(27,"th",25)(28,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.nameInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n.TgZ(29,"th",25)(30,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.doidInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n.TgZ(31,"th")(32,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.geneNameInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n._UZ(33,"th",27)(34,"th",27)(35,"th",27)(36,"th",27),n.qZA()(),n.TgZ(37,"tbody"),n.YNc(38,vn,19,9,"ng-template",28),n.qZA()()}if(2&e){const t=n.oxw();n.Q6J("nzData",n.lcZ(2,30,t.row$)||n.DdM(38,Cn))("nzLoading",!n.lcZ(3,32,t.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",t.queryRef)("cvcTableScrollPageInfo",n.lcZ(4,34,t.pageInfo$))("cvcTableScrollToIndex",n.lcZ(5,36,t.scrollIndex$))("nzVirtualForTrackBy",t.trackByIndex)("nzScroll",n.DdM(39,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",t.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",t.sortColumns.Doid)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",t.sortColumns.GeneCount)("nzSortFn",!0)("nzSortDirections",n.DdM(40,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",n.DdM(41,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(42,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(43,Q)),n.xp6(5),n.Q6J("inputModel",t.nameInput),n.xp6(2),n.Q6J("inputModel",t.doidInput),n.xp6(2),n.Q6J("inputModel",t.geneNameInput)}}function yn(e,a){}function Mn(e,a){if(1&e&&(n.ynx(0),n.YNc(1,yn,0,0,"ng-template",6),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",t.cvcTitleTemplate)}}function Dn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.cvcTitle," ")}}function In(e,a){if(1&e&&(n.YNc(0,Mn,2,1,"ng-container",38),n.YNc(1,Dn,2,1,"ng-container",38),n.TgZ(2,"span",39),n._UZ(3,"cvc-table-counts",40),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngIf",t.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",t.cvcTitle),n.xp6(2),n.Q6J("cvcTableCountsConnection",t.connection$)}}function On(e,a){1&e&&(n.TgZ(0,"nz-tag",43),n._UZ(1,"i",44),n.TgZ(2,"span"),n._uU(3,"Loading\u2026"),n.qZA()())}function Pn(e,a){if(1&e&&(n.YNc(0,On,4,0,"nz-tag",41),n.ALo(1,"ngrxPush"),n._UZ(2,"cvc-no-more-rows",42),n.ALo(3,"ngrxPush")),2&e){const t=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,t.moreLoading$)),n.xp6(2),n.Q6J("cvcShowTag",n.lcZ(3,4,t.noMoreRows$))}}let L=((I=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,t){this.gql=a,this.cdr=t,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=_.R8w,this.noMoreRows$=new B.X(!1),this.scrollEvent$=new B.X("stop"),this.sortChange$=new N.x,this.filterChange$=new N.x,this.scrollIndex$=new N.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,l.j)("loading"),(0,$.x)(),(0,q.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,l.j)("loading"),(0,$.x)(),(0,k.T)(2)),this.connection$=this.result$.pipe((0,l.j)("data","browseDiseases"),(0,J.h)(F.ep)),this.row$=this.connection$.pipe((0,l.j)("edges"),(0,J.h)(F.ep),(0,R.U)(a=>a.map(t=>t.node))),this.pageInfo$=this.connection$.pipe((0,l.j)("pageInfo"),(0,J.h)(F.ep)),this.sortChange$.pipe((0,Z.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,X._)(a)})}),this.filterChange$.pipe((0,nn.b)(500),(0,Z.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,R.U)(a=>"stop"!==a),(0,$.x)(),(0,Z.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,J.h)(a=>"bottom"===a),(0,en.M)(this.pageInfo$),(0,R.U)(([a,t])=>t),(0,Z.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,geneNames:this.geneNameInput,doid:this.doidInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,t){return t?.id}}).\u0275fac=function(a){return new(a||I)(n.Y36(_.Tq1),n.Y36(n.sBO))},I.\u0275cmp=n.Xpm({type:I,selectors:[["cvc-diseases-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","400px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Gene Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-gene"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"disease"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["noDoid",""],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["geneNames",""],["nzRight","","nzAlign","right"],["tooltip","View on disease-ontology.org",3,"href"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,t){if(1&a&&(n.YNc(0,pn,3,3,"ng-container",0),n.YNc(1,mn,3,6,"ng-template",null,1,n.W1O),n.YNc(3,Tn,39,44,"ng-template",null,2,n.W1O),n.YNc(5,In,4,3,"ng-template",null,3,n.W1O),n.YNc(7,Pn,4,6,"ng-template",null,4,n.W1O)),2&a){const i=n.MAs(2);n.Q6J("ngIf",!t.cvcHeight)("ngIfElse",i)}},dependencies:[c.sg,c.O5,c.tP,c.PC,Y.w,S.bd,m.Ls,T.N8,T.qD,T.Uo,T._C,T.Om,T.p0,T.$Z,T.zu,T.qn,T.UX,E.j,H.SY,tn.D,on.q,an.p,sn.n,u.l,cn.H,rn.B,ln.y,x.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),I);function Zn(e,a){1&e&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Disease Attribute Docs "),n.qZA())}function Sn(e,a){1&e&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Disease Curation Docs "),n.qZA())}L=(0,G.gn)([(0,Z.c)()],L);let An=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["diseases-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nzFlex","0 1 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/disease.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Diseases"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock",""]],template:function(t,i){1&t&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n._UZ(5,"i",3),n.ALo(6,"entityColor"),n.qZA(),n.TgZ(7,"nz-col",4)(8,"h2"),n._uU(9,"Diseases"),n.qZA(),n.TgZ(10,"p",5),n._uU(11," All CIViC Evidence Items are associated with a Disease included in the Disease Ontology database. "),n.qZA()(),n.TgZ(12,"nz-col",6)(13,"nz-space",7),n.YNc(14,Zn,3,0,"a",8),n.YNc(15,Sn,3,0,"a",9),n.qZA()()(),n.TgZ(16,"div",10)(17,"div",11)(18,"div",12),n._UZ(19,"cvc-diseases-table",13),n.qZA()()()()()),2&t&&(n.xp6(5),n.Q6J("nzTwotoneColor",n.lcZ(6,3,"Disease")),n.xp6(5),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},dependencies:[m.Ls,h.$O,h.u5,M.t3,M.SK,w.ix,Y.w,D.ZU,b.NU,b.$1,z.I,L,f.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{flex-wrap:nowrap;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 W=o(2185),bn=o(6822),Jn=o(1826),K=o(9382),A=o(8125),En=o(1887);function Qn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.doDef," ")}}function Un(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",24),n._uU(1),n.qZA()),2&e){const i=a.index;n.Q6J("href",a.$implicit),n.xp6(1),n.hij("Source ",i+1,"")}}function wn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Un,2,2,"cvc-link-tag",23),n.qZA(),n.BQk()),2&e){const t=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.doDefCitations)}}function Bn(e,a){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.hij(" ",t," ")}}function Nn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",25)(1,"cvc-tag-list"),n.YNc(2,Bn,2,1,"nz-tag",26),n.qZA()()),2&e){const t=n.oxw(3);n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.diseaseOntologyExactSynonyms)}}function Fn(e,a){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.hij(" ",t," ")}}function $n(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",27)(1,"cvc-tag-list"),n.YNc(2,Fn,2,1,"nz-tag",26),n.qZA()()),2&e){const t=n.oxw(3);n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.diseaseOntologyRelatedSynonyms)}}function Rn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",28),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.Q6J("href","https://meshb.nlm.nih.gov/record/ui?ui="+t.diseaseInfo.mesh),n.xp6(1),n.hij(" MeSH:",t.diseaseInfo.mesh," ")}}function Ln(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",29),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.Q6J("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+t),n.xp6(1),n.hij(" NCIt:",t," ")}}function Kn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",30),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.Q6J("href","https://www.omim.org/entry/"+t.diseaseInfo.omim),n.xp6(1),n.hij(" OMIM:",t.diseaseInfo.omim," ")}}function jn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",31),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.icd10," ")}}function Yn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",32),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.icdo," ")}}function Hn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"div",8)(2,"nz-row",9)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.YNc(6,Qn,2,1,"ng-container",13),n.qZA(),n.TgZ(7,"nz-descriptions-item",14),n.YNc(8,wn,3,1,"ng-container",13),n.qZA()()(),n.TgZ(9,"nz-col",10)(10,"nz-descriptions",11),n.YNc(11,Nn,3,2,"nz-descriptions-item",15),n.YNc(12,$n,3,2,"nz-descriptions-item",16),n.TgZ(13,"nz-descriptions-item",17)(14,"cvc-tag-list"),n.YNc(15,Rn,2,2,"cvc-link-tag",18),n.YNc(16,Ln,2,2,"cvc-link-tag",19),n.YNc(17,Kn,2,2,"cvc-link-tag",20),n.qZA()(),n.YNc(18,jn,2,1,"nz-descriptions-item",21),n.YNc(19,Yn,2,1,"nz-descriptions-item",22),n.qZA()()()(),n.BQk()),2&e){const t=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.doDef)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.doDefCitations.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",2),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.diseaseOntologyExactSynonyms.length>0),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.diseaseOntologyRelatedSynonyms.length>0),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.mesh),n.xp6(1),n.Q6J("ngForOf",t.diseaseInfo.ncit),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.omim),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.icd10),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.icdo)}}function Wn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.mondoDef," ")}}function Vn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"div",8)(2,"nz-row",9)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.YNc(6,Wn,2,1,"ng-container",13),n.qZA()()()()(),n.BQk()),2&e){const t=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",2),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.mondoDef)("ngIfElse",i)}}function Gn(e,a){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2)(2,"nz-card-tab")(3,"nz-tabset",3)(4,"nz-tab",4),n.NdJ("nzClick",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.tabIndex.next(0))}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.tabIndex.next(1))}),n.qZA()()(),n.ynx(6,6),n.ALo(7,"async"),n.YNc(8,Hn,20,19,"ng-container",7),n.YNc(9,Vn,7,6,"ng-container",7),n.BQk(),n.qZA(),n.BQk()}if(2&e){const t=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(3),n.Q6J("ngSwitch",n.lcZ(7,4,t.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1)}}function Xn(e,a){1&e&&(n.TgZ(0,"span",33),n._uU(1,"Not Found"),n.qZA())}let qn=(()=>{class e{constructor(){this.tabIndex=new B.X(0)}tabChange(t){this.tabIndex.next(t)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-my-disease-info"]],inputs:{diseaseInfo:"diseaseInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyDiseaseInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Disease Ontology",3,"nzClick"],["nzTitle","Mondo",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Definition"],[4,"ngIf","ngIfElse"],["nzTitle","Citations"],["nzTitle","Exact Synonyms",3,"nzSpan",4,"ngIf"],["nzTitle","Related Synonyms",3,"nzSpan",4,"ngIf"],["nzTitle","External Identifiers",3,"nzSpan"],["tooltip","View in MeSH",3,"href",4,"ngIf"],["tooltip","View in NCI Thesaurus",3,"href",4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href",4,"ngIf"],["nzTitle","ICD - 10",4,"ngIf"],["nzTitle","ICD - O",4,"ngIf"],[3,"href",4,"ngFor","ngForOf"],[3,"href"],["nzTitle","Exact Synonyms",3,"nzSpan"],[4,"ngFor","ngForOf"],["nzTitle","Related Synonyms",3,"nzSpan"],["tooltip","View in MeSH",3,"href"],["tooltip","View in NCI Thesaurus",3,"href"],["tooltip","View on OMIM",3,"href"],["nzTitle","ICD - 10"],["nzTitle","ICD - O"],["nz-typography","","nzType","secondary"]],template:function(t,i){1&t&&(n.YNc(0,Gn,10,6,"ng-container",0),n.YNc(1,Xn,2,0,"ng-template",null,1,n.W1O)),2&t&&n.Q6J("ngIf",i.diseaseInfo)},dependencies:[c.sg,c.O5,c.RF,c.n9,K.xH,K.xw,S.bd,S._i,A.R7,A.uj,M.t3,M.SK,E.j,D.ZU,u.l,En.$,c.Ov],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),e})();const kn=function(){return[8,16]};function ne(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3),n._UZ(3,"cvc-my-disease-info",4),n.qZA(),n.TgZ(4,"nz-col",3),n._UZ(5,"cvc-evidence-table",5),n.qZA(),n.TgZ(6,"nz-col",3),n._UZ(7,"cvc-assertions-table",6),n.qZA()(),n.BQk()),2&e){const t=a.ngIf,i=n.oxw();n.xp6(1),n.Q6J("nzGutter",n.DdM(9,kn)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("diseaseInfo",t.myDiseaseInfo),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.MGl("cvcTitle","",t.displayName," Evidence"),n.Q6J("diseaseId",i.diseaseId),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.MGl("cvcTitle","",t.displayName," Assertions"),n.Q6J("diseaseId",i.diseaseId)}}const ee=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-diseases"]],decls:1,vars:0,template:function(t,i){1&t&&n._UZ(0,"router-outlet")},dependencies:[d.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:An,data:{breadcrumb:"Home"}},{path:":diseaseId",component:P,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,i){this.route=t,this.gql=i,this.routeSub=this.route.params.subscribe(s=>{this.diseaseId=+s.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,W.j)("loading"),(0,C.O)(!0)),this.disease$=p.pipe((0,W.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(d.gz),n.Y36(_.MNv))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-diseases-summary"]],decls:3,vars:3,consts:[[1,"summary-container"],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],[3,"diseaseInfo"],["cvcHeight","400px",3,"diseaseId","cvcTitle"],[3,"diseaseId","cvcTitle"]],template:function(t,i){1&t&&(n.TgZ(0,"div",0),n.YNc(1,ne,8,10,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,i.disease$)))},dependencies:[c.O5,M.t3,M.SK,bn.a,Jn.x,qn,x.fM],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Summary"}}]}]}];let te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[d.Bz.forChild(ee),d.Bz]}),e})();var j=o(6067),V=o(2419),U=o(2524);let oe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,d.Bz,m.PV,D.ZJ,h.KJ,A.q6,b.zf,j.X,V.D,U.s]}),e})();var ae=o(5895),ie=o(1403),se=o(366);let ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,K.we,T.HQ,S.vh,A.q6,M.Jb,E.X,D.ZJ,U.s,j.X,se.$]}),e})(),re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,M.Jb,A.q6,D.ZJ,ie.Q,ae.s,ce]}),e})();var le=o(7856),ge=o(9154),pe=o(2989),de=o(9175),_e=o(4742),me=o(9312),he=o(3396);let fe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,w.sL,S.vh,m.PV,m.PV,T.HQ,E.X,H.cg,D.ZJ,U.s,de.n,_e.c,le.k,he.Q,j.X,ge.y,pe.T,me.w]}),e})(),ue=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,m.PV,h.KJ,M.Jb,w.sL,D.ZJ,b.zf,V.D,fe,U.s]}),e})(),ze=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,d.Bz,te,ue,oe,re]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4449],{1218:(O,v,o)=>{o.d(v,{i:()=>x});var c=o(6814),d=o(4190),C=o(5695),l=o(7417),n=o(551),_=o(1855),m=o(2524),h=o(3640),u=o(3146),z=o(5879);let x=(()=>{class f{}return f.\u0275fac=function(g){return new(g||f)},f.\u0275mod=z.oAB({type:f}),f.\u0275inj=z.cJS({imports:[c.ez,d.Bz,h.mS,C.X,l.$6,n.PV,_.f,m.s,u.C]}),f})()},1106:(O,v,o)=>{o.d(v,{L:()=>r});var c=o(6814),d=o(4190),C=o(5695),l=o(551),n=o(95),_=o(6067),m=o(8125),h=o(2962),u=o(4293),z=o(5879);let x=(()=>{class g{}return g.\u0275fac=function(P){return new(P||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[c.ez,h.vh,n.Jb,m.q6,_.X,u.H]}),g})();var f=o(7417);let r=(()=>{class g{}return g.\u0275fac=function(P){return new(P||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[c.ez,d.Bz,C.X,l.PV,f.$6,x]}),g})()},7950:(O,v,o)=>{o.d(v,{x:()=>f});var c=o(6814),d=o(366),C=o(5695),l=o(7417),n=o(3396),_=o(1106),m=o(5956),h=o(7528),u=o(6061),z=o(3717),x=o(5879);let f=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=x.oAB({type:r}),r.\u0275inj=x.cJS({imports:[c.ez,C.X,l.$6,d.$,u.N,n.Q,_.L,m.U,h.Q,z.M]}),r})()},3717:(O,v,o)=>{o.d(v,{M:()=>f});var c=o(6814),d=o(4190),C=o(5695),l=o(2962),n=o(6067),_=o(8125),m=o(551),h=o(2524),u=o(5879);let z=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[c.ez,m.PV,l.vh,_.q6,h.s,n.X]}),r})();var x=o(7417);let f=(()=>{class r{}return r.\u0275fac=function(y){return new(y||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[c.ez,d.Bz,m.PV,C.X,x.$6,z]}),r})()},4010:(O,v,o)=>{o.d(v,{F:()=>C});var d=o(5879);let C=(()=>{class l{transform(_,m="display-string"){return void 0===_?"":"display-string"===m?function c(l){switch(l){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return l}}(_):`civic-${_.replace(/_/g,"").toLowerCase()}`}}return l.\u0275fac=function(_){return new(_||l)},l.\u0275pipe=d.Yjl({name:"therapyInteractionEnumDisplay",type:l,pure:!0}),l})()},6444:(O,v,o)=>{o.r(v),o.d(v,{DiseasesModule:()=>ze});var c=o(6814),d=o(4190),C=o(7921),l=o(4223),n=o(5879),_=o(313),m=o(551),h=o(6254),u=o(3317),z=o(3145),x=o(8091),f=o(2616);function r(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",6),n._uU(1),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("href",t.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+t.doid," ")}}function g(e,a){if(1&e&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,r,2,2,"cvc-link-tag",5),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.diseaseUrl)}}function y(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),n._UZ(4,"i",3),n.ALo(5,"entityColor"),n._uU(6),n.qZA(),n.YNc(7,g,2,1,"nz-page-header-extra",0),n.TgZ(8,"nz-page-header-content")(9,"div",4),n._UZ(10,"router-outlet"),n.qZA()()(),n.BQk()),2&e){const t=a.ngIf;n.xp6(1),n.Q6J("displayName",t.name),n.xp6(3),n.Q6J("nzTwotoneColor",n.lcZ(5,4,"Disease")),n.xp6(2),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",t.doid)}}let P=(()=>{class e{constructor(t,i){this.route=t,this.gql=i,this.routeSub=this.route.params.subscribe(s=>{this.diseaseId=+s.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,l.j)("loading"),(0,C.O)(!0)),this.disease$=p.pipe((0,l.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(d.gz),n.Y36(_.wg3))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-diseases-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],[1,"content"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf"],["tooltip","View on disease-ontology.org",3,"href"]],template:function(t,i){1&t&&(n.YNc(0,y,11,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,i.disease$))},dependencies:[c.O5,d.lC,m.Ls,h.$O,h.u9,h.u5,h.Jp,u.l,z.I,x.fM,f.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{flex-wrap:nowrap;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 I,M=o(95),w=o(2840),Y=o(855),D=o(2392),b=o(2574),G=o(655),X=o(4632),Z=o(1791),B=o(5619),N=o(8645),F=o(5676),$=o(3997),q=o(812),k=o(836),J=o(2181),R=o(7398),nn=o(3620),en=o(2460),S=o(2962),T=o(3740),E=o(5695),H=o(6109),tn=o(6753),on=o(4764),an=o(8516),sn=o(9775),cn=o(3489),rn=o(9857),ln=o(4997);function gn(e,a){}function pn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",5),n.YNc(2,gn,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){n.oxw();const t=n.MAs(6),i=n.MAs(8),s=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",t)("nzExtra",i),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function dn(e,a){}const _n=function(e){return{height:e}};function mn(e,a){if(1&e&&(n.TgZ(0,"div",7)(1,"nz-card",8),n.YNc(2,dn,0,0,"ng-template",6),n.qZA()()),2&e){const t=n.oxw(),i=n.MAs(6),s=n.MAs(8),p=n.MAs(4);n.Q6J("ngStyle",n.VKq(4,_n,t.cvcHeight)),n.xp6(1),n.Q6J("nzTitle",i)("nzExtra",s),n.xp6(1),n.Q6J("ngTemplateOutlet",p)}}function hn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",36),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit;n.Q6J("href",t.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+t.doid," ")}}function fn(e,a){1&e&&n._uU(0," -- ")}function un(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=a.$implicit,i=a.last;n.xp6(1),n.AsE(" ",t,"",i?"":", "," ")}}function zn(e,a){if(1&e&&n.YNc(0,un,2,2,"ng-container",37),2&e){const t=n.oxw().$implicit;n.Q6J("ngForOf",t.geneNames)}}function vn(e,a){if(1&e&&(n.TgZ(0,"tr",29)(1,"td",25),n._UZ(2,"cvc-disease-tag",30),n.qZA(),n.TgZ(3,"td",25),n.YNc(4,hn,2,2,"cvc-link-tag",31),n.YNc(5,fn,1,0,"ng-template",null,32,n.W1O),n.qZA(),n.TgZ(7,"td",33),n.YNc(8,zn,1,1,"ng-template",null,34,n.W1O),n.GkF(10,6),n.qZA(),n.TgZ(11,"td",35),n._uU(12),n.qZA(),n.TgZ(13,"td",35),n._uU(14),n.qZA(),n.TgZ(15,"td",35),n._uU(16),n.qZA(),n.TgZ(17,"td",35),n._uU(18),n.qZA()()),2&e){const t=a.$implicit,i=n.MAs(6),s=n.MAs(9),p=n.oxw(2);n.xp6(2),n.Q6J("disease",t),n.xp6(2),n.Q6J("ngIf",t.doid)("ngIfElse",i),n.xp6(3),n.Q6J("nzTooltipTitle",p.isScrolling?"":s),n.xp6(3),n.Q6J("ngTemplateOutlet",s),n.xp6(2),n.hij(" ",t.geneCount," "),n.xp6(2),n.hij(" ",t.variantCount," "),n.xp6(2),n.hij(" ",t.evidenceItemCount," "),n.xp6(2),n.hij(" ",t.assertionCount," ")}}const Cn=function(){return[]},xn=function(){return{x:"680px",y:"800px"}},Q=function(){return["descend","ascend",null]};function Tn(e,a){if(1&e){const t=n.EpF();n.TgZ(0,"nz-table",9,10),n.NdJ("cvcTableScrollOnScroll",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.scrollEvent$.next(s))}),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.ALo(5,"ngrxPush"),n.TgZ(6,"thead",11),n.NdJ("nzSortOrderChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.sortChange$.next(s))}),n.TgZ(7,"tr",12)(8,"th",13),n._uU(9," Name "),n.qZA(),n.TgZ(10,"th",14),n._uU(11," DOID "),n.qZA(),n.TgZ(12,"th",15),n._uU(13,"Genes"),n.qZA(),n.TgZ(14,"th",16),n._UZ(15,"i",17),n._uU(16," Count "),n.qZA(),n.TgZ(17,"th",18),n._UZ(18,"i",19),n._uU(19," Count "),n.qZA(),n.TgZ(20,"th",20),n._UZ(21,"i",21),n._uU(22," Count "),n.qZA(),n.TgZ(23,"th",22),n._UZ(24,"i",23),n._uU(25," Count "),n.qZA()(),n.TgZ(26,"tr",24)(27,"th",25)(28,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.nameInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n.TgZ(29,"th",25)(30,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.doidInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n.TgZ(31,"th")(32,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(s){n.CHM(t);const p=n.oxw();return n.KtG(p.geneNameInput=s)})("inputModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.filterChange$.next())}),n.qZA()(),n._UZ(33,"th",27)(34,"th",27)(35,"th",27)(36,"th",27),n.qZA()(),n.TgZ(37,"tbody"),n.YNc(38,vn,19,9,"ng-template",28),n.qZA()()}if(2&e){const t=n.oxw();n.Q6J("nzData",n.lcZ(2,30,t.row$)||n.DdM(38,Cn))("nzLoading",!n.lcZ(3,32,t.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",t.queryRef)("cvcTableScrollPageInfo",n.lcZ(4,34,t.pageInfo$))("cvcTableScrollToIndex",n.lcZ(5,36,t.scrollIndex$))("nzVirtualForTrackBy",t.trackByIndex)("nzScroll",n.DdM(39,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",t.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",t.sortColumns.Doid)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",t.sortColumns.GeneCount)("nzSortFn",!0)("nzSortDirections",n.DdM(40,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",n.DdM(41,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(42,Q)),n.xp6(3),n.Q6J("nzColumnKey",t.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(43,Q)),n.xp6(5),n.Q6J("inputModel",t.nameInput),n.xp6(2),n.Q6J("inputModel",t.doidInput),n.xp6(2),n.Q6J("inputModel",t.geneNameInput)}}function yn(e,a){}function Mn(e,a){if(1&e&&(n.ynx(0),n.YNc(1,yn,0,0,"ng-template",6),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",t.cvcTitleTemplate)}}function Dn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.cvcTitle," ")}}function In(e,a){if(1&e&&(n.YNc(0,Mn,2,1,"ng-container",38),n.YNc(1,Dn,2,1,"ng-container",38),n.TgZ(2,"span",39),n._UZ(3,"cvc-table-counts",40),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngIf",t.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",t.cvcTitle),n.xp6(2),n.Q6J("cvcTableCountsConnection",t.connection$)}}function On(e,a){1&e&&(n.TgZ(0,"nz-tag",43),n._UZ(1,"i",44),n.TgZ(2,"span"),n._uU(3,"Loading\u2026"),n.qZA()())}function Pn(e,a){if(1&e&&(n.YNc(0,On,4,0,"nz-tag",41),n.ALo(1,"ngrxPush"),n._UZ(2,"cvc-no-more-rows",42),n.ALo(3,"ngrxPush")),2&e){const t=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,t.moreLoading$)),n.xp6(2),n.Q6J("cvcShowTag",n.lcZ(3,4,t.noMoreRows$))}}let L=((I=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,t){this.gql=a,this.cdr=t,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=_.R8w,this.noMoreRows$=new B.X(!1),this.scrollEvent$=new B.X("stop"),this.sortChange$=new N.x,this.filterChange$=new N.x,this.scrollIndex$=new N.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,l.j)("loading"),(0,$.x)(),(0,q.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,l.j)("loading"),(0,$.x)(),(0,k.T)(2)),this.connection$=this.result$.pipe((0,l.j)("data","browseDiseases"),(0,J.h)(F.ep)),this.row$=this.connection$.pipe((0,l.j)("edges"),(0,J.h)(F.ep),(0,R.U)(a=>a.map(t=>t.node))),this.pageInfo$=this.connection$.pipe((0,l.j)("pageInfo"),(0,J.h)(F.ep)),this.sortChange$.pipe((0,Z.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,X._)(a)})}),this.filterChange$.pipe((0,nn.b)(500),(0,Z.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,R.U)(a=>"stop"!==a),(0,$.x)(),(0,Z.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,J.h)(a=>"bottom"===a),(0,en.M)(this.pageInfo$),(0,R.U)(([a,t])=>t),(0,Z.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,geneNames:this.geneNameInput,doid:this.doidInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,t){return t?.id}}).\u0275fac=function(a){return new(a||I)(n.Y36(_.Tq1),n.Y36(n.sBO))},I.\u0275cmp=n.Xpm({type:I,selectors:[["cvc-diseases-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","400px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Gene Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-gene"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"disease"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["noDoid",""],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["geneNames",""],["nzRight","","nzAlign","right"],["tooltip","View on disease-ontology.org",3,"href"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,t){if(1&a&&(n.YNc(0,pn,3,3,"ng-container",0),n.YNc(1,mn,3,6,"ng-template",null,1,n.W1O),n.YNc(3,Tn,39,44,"ng-template",null,2,n.W1O),n.YNc(5,In,4,3,"ng-template",null,3,n.W1O),n.YNc(7,Pn,4,6,"ng-template",null,4,n.W1O)),2&a){const i=n.MAs(2);n.Q6J("ngIf",!t.cvcHeight)("ngIfElse",i)}},dependencies:[c.sg,c.O5,c.tP,c.PC,Y.w,S.bd,m.Ls,T.N8,T.qD,T.Uo,T._C,T.Om,T.p0,T.$Z,T.zu,T.qn,T.UX,E.j,H.SY,tn.D,on.q,an.p,sn.n,u.l,cn.H,rn.B,ln.y,x.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),I);function Zn(e,a){1&e&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Disease Attribute Docs "),n.qZA())}function Sn(e,a){1&e&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Disease Curation Docs "),n.qZA())}L=(0,G.gn)([(0,Z.c)()],L);let An=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["diseases-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nzFlex","0 1 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/disease.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Diseases"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock",""]],template:function(t,i){1&t&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n._UZ(5,"i",3),n.ALo(6,"entityColor"),n.qZA(),n.TgZ(7,"nz-col",4)(8,"h2"),n._uU(9,"Diseases"),n.qZA(),n.TgZ(10,"p",5),n._uU(11," All CIViC Evidence Items are associated with a Disease included in the Disease Ontology database. "),n.qZA()(),n.TgZ(12,"nz-col",6)(13,"nz-space",7),n.YNc(14,Zn,3,0,"a",8),n.YNc(15,Sn,3,0,"a",9),n.qZA()()(),n.TgZ(16,"div",10)(17,"div",11)(18,"div",12),n._UZ(19,"cvc-diseases-table",13),n.qZA()()()()()),2&t&&(n.xp6(5),n.Q6J("nzTwotoneColor",n.lcZ(6,3,"Disease")),n.xp6(5),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},dependencies:[m.Ls,h.$O,h.u5,M.t3,M.SK,w.ix,Y.w,D.ZU,b.NU,b.$1,z.I,L,f.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{flex-wrap:nowrap;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 W=o(2185),bn=o(6822),Jn=o(1826),K=o(9382),A=o(8125),En=o(1887);function Qn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.doDef," ")}}function Un(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",24),n._uU(1),n.qZA()),2&e){const i=a.index;n.Q6J("href",a.$implicit),n.xp6(1),n.hij("Source ",i+1,"")}}function wn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Un,2,2,"cvc-link-tag",23),n.qZA(),n.BQk()),2&e){const t=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.doDefCitations)}}function Bn(e,a){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.hij(" ",t," ")}}function Nn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",25)(1,"cvc-tag-list"),n.YNc(2,Bn,2,1,"nz-tag",26),n.qZA()()),2&e){const t=n.oxw(3);n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.diseaseOntologyExactSynonyms)}}function Fn(e,a){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.hij(" ",t," ")}}function $n(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",27)(1,"cvc-tag-list"),n.YNc(2,Fn,2,1,"nz-tag",26),n.qZA()()),2&e){const t=n.oxw(3);n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngForOf",t.diseaseInfo.diseaseOntologyRelatedSynonyms)}}function Rn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",28),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.Q6J("href","https://meshb.nlm.nih.gov/record/ui?ui="+t.diseaseInfo.mesh),n.xp6(1),n.hij(" MeSH:",t.diseaseInfo.mesh," ")}}function Ln(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",29),n._uU(1),n.qZA()),2&e){const t=a.$implicit;n.Q6J("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+t),n.xp6(1),n.hij(" NCIt:",t," ")}}function Kn(e,a){if(1&e&&(n.TgZ(0,"cvc-link-tag",30),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.Q6J("href","https://www.omim.org/entry/"+t.diseaseInfo.omim),n.xp6(1),n.hij(" OMIM:",t.diseaseInfo.omim," ")}}function jn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",31),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.icd10," ")}}function Yn(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",32),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.icdo," ")}}function Hn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"div",8)(2,"nz-row",9)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.YNc(6,Qn,2,1,"ng-container",13),n.qZA(),n.TgZ(7,"nz-descriptions-item",14),n.YNc(8,wn,3,1,"ng-container",13),n.qZA()()(),n.TgZ(9,"nz-col",10)(10,"nz-descriptions",11),n.YNc(11,Nn,3,2,"nz-descriptions-item",15),n.YNc(12,$n,3,2,"nz-descriptions-item",16),n.TgZ(13,"nz-descriptions-item",17)(14,"cvc-tag-list"),n.YNc(15,Rn,2,2,"cvc-link-tag",18),n.YNc(16,Ln,2,2,"cvc-link-tag",19),n.YNc(17,Kn,2,2,"cvc-link-tag",20),n.qZA()(),n.YNc(18,jn,2,1,"nz-descriptions-item",21),n.YNc(19,Yn,2,1,"nz-descriptions-item",22),n.qZA()()()(),n.BQk()),2&e){const t=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",1),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.doDef)("ngIfElse",i),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.doDefCitations.length>0)("ngIfElse",i),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",2),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.diseaseOntologyExactSynonyms.length>0),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.diseaseOntologyRelatedSynonyms.length>0),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.mesh),n.xp6(1),n.Q6J("ngForOf",t.diseaseInfo.ncit),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.omim),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.icd10),n.xp6(1),n.Q6J("ngIf",t.diseaseInfo.icdo)}}function Wn(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.diseaseInfo.mondoDef," ")}}function Vn(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"div",8)(2,"nz-row",9)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.YNc(6,Wn,2,1,"ng-container",13),n.qZA()()()()(),n.BQk()),2&e){const t=n.oxw(2),i=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzBordered",!0)("nzColumn",2),n.xp6(2),n.Q6J("ngIf",t.diseaseInfo.mondoDef)("ngIfElse",i)}}function Gn(e,a){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2)(2,"nz-card-tab")(3,"nz-tabset",3)(4,"nz-tab",4),n.NdJ("nzClick",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.tabIndex.next(0))}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.tabIndex.next(1))}),n.qZA()()(),n.ynx(6,6),n.ALo(7,"async"),n.YNc(8,Hn,20,19,"ng-container",7),n.YNc(9,Vn,7,6,"ng-container",7),n.BQk(),n.qZA(),n.BQk()}if(2&e){const t=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(3),n.Q6J("ngSwitch",n.lcZ(7,4,t.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1)}}function Xn(e,a){1&e&&(n.TgZ(0,"span",33),n._uU(1,"Not Found"),n.qZA())}let qn=(()=>{class e{constructor(){this.tabIndex=new B.X(0)}tabChange(t){this.tabIndex.next(t)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-my-disease-info"]],inputs:{diseaseInfo:"diseaseInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyDiseaseInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Disease Ontology",3,"nzClick"],["nzTitle","Mondo",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Definition"],[4,"ngIf","ngIfElse"],["nzTitle","Citations"],["nzTitle","Exact Synonyms",3,"nzSpan",4,"ngIf"],["nzTitle","Related Synonyms",3,"nzSpan",4,"ngIf"],["nzTitle","External Identifiers",3,"nzSpan"],["tooltip","View in MeSH",3,"href",4,"ngIf"],["tooltip","View in NCI Thesaurus",3,"href",4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href",4,"ngIf"],["nzTitle","ICD - 10",4,"ngIf"],["nzTitle","ICD - O",4,"ngIf"],[3,"href",4,"ngFor","ngForOf"],[3,"href"],["nzTitle","Exact Synonyms",3,"nzSpan"],[4,"ngFor","ngForOf"],["nzTitle","Related Synonyms",3,"nzSpan"],["tooltip","View in MeSH",3,"href"],["tooltip","View in NCI Thesaurus",3,"href"],["tooltip","View on OMIM",3,"href"],["nzTitle","ICD - 10"],["nzTitle","ICD - O"],["nz-typography","","nzType","secondary"]],template:function(t,i){1&t&&(n.YNc(0,Gn,10,6,"ng-container",0),n.YNc(1,Xn,2,0,"ng-template",null,1,n.W1O)),2&t&&n.Q6J("ngIf",i.diseaseInfo)},dependencies:[c.sg,c.O5,c.RF,c.n9,K.xH,K.xw,S.bd,S._i,A.R7,A.uj,M.t3,M.SK,E.j,D.ZU,u.l,En.$,c.Ov],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),e})();const kn=function(){return[8,16]};function ne(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3),n._UZ(3,"cvc-my-disease-info",4),n.qZA(),n.TgZ(4,"nz-col",3),n._UZ(5,"cvc-evidence-table",5),n.qZA(),n.TgZ(6,"nz-col",3),n._UZ(7,"cvc-assertions-table",6),n.qZA()(),n.BQk()),2&e){const t=a.ngIf,i=n.oxw();n.xp6(1),n.Q6J("nzGutter",n.DdM(9,kn)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("diseaseInfo",t.myDiseaseInfo),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.MGl("cvcTitle","",t.displayName," Evidence"),n.Q6J("diseaseId",i.diseaseId),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.MGl("cvcTitle","",t.displayName," Assertions"),n.Q6J("diseaseId",i.diseaseId)}}const ee=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-diseases"]],decls:1,vars:0,template:function(t,i){1&t&&n._UZ(0,"router-outlet")},dependencies:[d.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:An,data:{breadcrumb:"Home"}},{path:":diseaseId",component:P,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,i){this.route=t,this.gql=i,this.routeSub=this.route.params.subscribe(s=>{this.diseaseId=+s.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,W.j)("loading"),(0,C.O)(!0)),this.disease$=p.pipe((0,W.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(d.gz),n.Y36(_.MNv))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-diseases-summary"]],decls:3,vars:3,consts:[[1,"summary-container"],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],[3,"diseaseInfo"],["cvcHeight","400px",3,"diseaseId","cvcTitle"],[3,"diseaseId","cvcTitle"]],template:function(t,i){1&t&&(n.TgZ(0,"div",0),n.YNc(1,ne,8,10,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,i.disease$)))},dependencies:[c.O5,M.t3,M.SK,bn.a,Jn.x,qn,x.fM],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Summary"}}]}]}];let te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[d.Bz.forChild(ee),d.Bz]}),e})();var j=o(6067),V=o(2419),U=o(2524);let oe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,d.Bz,m.PV,D.ZJ,h.KJ,A.q6,b.zf,j.X,V.D,U.s]}),e})();var ae=o(5895),ie=o(1403),se=o(366);let ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,K.we,T.HQ,S.vh,A.q6,M.Jb,E.X,D.ZJ,U.s,j.X,se.$]}),e})(),re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,M.Jb,A.q6,D.ZJ,ie.Q,ae.s,ce]}),e})();var le=o(7856),ge=o(9154),pe=o(2989),de=o(9175),_e=o(4742),me=o(9312),he=o(3396);let fe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,w.sL,S.vh,m.PV,m.PV,T.HQ,E.X,H.cg,D.ZJ,U.s,de.n,_e.c,le.k,he.Q,j.X,ge.y,pe.T,me.w]}),e})(),ue=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,m.PV,h.KJ,M.Jb,w.sL,D.ZJ,b.zf,V.D,fe,U.s]}),e})(),ze=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.ez,d.Bz,te,ue,oe,re]}),e})()}}]); \ No newline at end of file diff --git a/server/public/4503.6cd57c57ee30cc72.js b/server/public/4503.6cd57c57ee30cc72.js deleted file mode 100644 index 0208a69d6..000000000 --- a/server/public/4503.6cd57c57ee30cc72.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4503],{7287:(K,I,o)=>{o.d(I,{L:()=>ut});var _=o(313),s=o(2181),O=o(7398),R=o(4223),n=o(5676),t=o(5879),f=o(6814),L=o(8091),T=o(2840),N=o(855),S=o(1958),F=o(95),Y=o(2024),P=o(8645),J=o(9773),M=o(951),B=o(7473),C=o(6223),E=o(3599),h=o(2962),b=o(3903),D=o(6109),U=o(2669),W=o(5805),V=o(2257),x=o(3764),m=o(1889),z=o(4082);function u(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){t.CHM(a);const v=t.oxw();return t.KtG(v.onSuccessBannerClose())}),t.qZA()}}function y(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const a=t.MAs(4);t.Q6J("nzDescription",a)}}function w(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a)}}function H(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,w,2,1,"li",10),t.qZA()),2&c){const a=t.oxw();t.xp6(1),t.Q6J("ngForOf",a.errorMessages)}}function nn(c,p){}function tn(c,p){1&c&&t.YNc(0,nn,0,0,"ng-template")}function en(c,p){if(1&c&&(t.ynx(0),t.YNc(1,tn,1,0,null,15),t.BQk()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function k(c,p){}function on(c,p){1&c&&t.YNc(0,k,0,0,"ng-template")}function sn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,on,1,0,null,15),t.qZA()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function an(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const a=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&a.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function $(c,p){if(1&c){const a=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons")(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.onOrgSelected(v))}),t.YNc(3,en,2,1,"ng-container",12),t.YNc(4,sn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,an,3,4,"ng-template",null,14,t.W1O),t.qZA()(),t.BQk()}if(2&c){const a=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",a.signedIn)("ngIfElse",g)}}let Z=(()=>{class c{constructor(a,g,v){this.gql=a,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new P.x,this.addFlagMutator=new Y.U(v),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(Q=>{this.selectedOrg=Q.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(a){this.selectedOrg=a}submitFlag(){this.errorMessages=[];let g=this.addFlagMutator.mutate(this.gql,{input:{comment:this.comment,subject:this.flaggable,organizationId:this.selectedOrg?.id}});g.submitSuccess$.pipe((0,J.R)(this.destroy$)).subscribe(v=>{v&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),g.submitError$.pipe((0,J.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.errorMessages=v)}),g.isSubmitting$.pipe((0,J.R)(this.destroy$)).subscribe(v=>{this.loading=v})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(_.B0s),t.Y36(M.a),t.Y36(B.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(a,g){1&a&&(t.TgZ(0,"nz-card",0),t.YNc(1,u,1,0,"nz-alert",1),t.YNc(2,y,1,1,"nz-alert",2),t.YNc(3,H,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(Q){return g.comment=Q}),t.qZA(),t.TgZ(7,"nz-spin",6)(8,"nz-form-item")(9,"nz-form-control"),t.YNc(10,$,8,2,"ng-container",7),t.qZA()()()()()),2&a&&(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$))},dependencies:[f.sg,f.O5,f.tP,C._Y,C.JL,C.F,L.eJ,F.t3,F.SK,E.Lr,E.Nx,E.Fd,T.ix,N.w,S.dQ,h.bd,b.r,D.SY,U.W,W.m,V.q,x.Z,m.b,z.I],encapsulation:2}),c})();var j=o(2574),q=o(2392),pn=o(804),gn=o(6987),_n=o(551),mn=o(356),dn=o(2384),fn=o(7417);function un(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){t.CHM(a);const v=t.oxw();return t.KtG(v.onSuccessBannerClose())}),t.qZA()}}function vn(c,p){}function zn(c,p){1&c&&t.YNc(0,vn,0,0,"ng-template")}function Cn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,zn,1,0,null,9),t.BQk()),2&c){t.oxw(2);const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function xn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Cn,2,1,"ng-container",5),t.BQk()),2&c){const a=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",a.isEditor||a.isAdmin||v.flag.flaggingUser.id===a.id)("ngIfElse",g)}}function hn(c,p){}function Tn(c,p){1&c&&t.YNc(0,hn,0,0,"ng-template")}function yn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,Tn,1,0,null,9),t.qZA()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function An(c,p){}function On(c,p){1&c&&t.YNc(0,An,0,0,"ng-template")}function Rn(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,On,1,0,null,9),t.qZA()),2&c){t.oxw();const a=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function Fn(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){t.CHM(a);const Q=t.oxw(3);return t.KtG(Q.flagResolvePopoverVisible=v)})("click",function(){t.CHM(a);const v=t.oxw(3);return t.KtG(v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible)}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const a=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),Q=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",Q)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&g.flag.flaggingUser.id!=a.id)}}function Zn(c,p){if(1&c&&t.YNc(0,Fn,3,5,"button",12),2&c){const a=t.oxw(2);t.Q6J("ngIf",!a.success)}}function Ln(c,p){if(1&c&&(t.ynx(0),t.YNc(1,xn,2,2,"ng-container",5),t.YNc(2,yn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,Rn,2,1,"ng-template",null,7,t.W1O),t.YNc(6,Zn,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const a=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",a.signedIn)("ngIfElse",g)}}const bn=function(){return{float:"right"}};function Mn(c,p){if(1&c){const a=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15)(2,"i",16),t.NdJ("click",function(){t.CHM(a);const v=t.oxw();return v.flagResolvePopoverVisible=!1,t.KtG(v.errorMessages=[])}),t.qZA()()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,bn)))}function En(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const a=t.MAs(2);t.Q6J("nzDescription",a)}}function Nn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a)}}function Sn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Nn,2,1,"li",26),t.qZA()),2&c){const a=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",a.errorMessages)}}function Qn(c,p){if(1&c){const a=t.EpF();t.YNc(0,En,1,1,"nz-alert",17),t.YNc(1,Sn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19)(4,"form",20),t.NdJ("ngSubmit",function(){t.CHM(a);const v=t.oxw();return t.KtG(v.resolveFlag())}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.comment=v)}),t.qZA(),t.TgZ(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.onOrgSelected(v))}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA()()()()()()()()}if(2&c){const a=t.oxw();t.Q6J("ngIf",a.errorMessages.length>0),t.xp6(5),t.Q6J("comment",a.comment),t.xp6(1),t.Q6J("nzSpinning",a.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==a.comment&&a.comment.length>=10))}}let In=(()=>{class c{constructor(a,g,v){this.gql=a,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new P.x,this.resolveFlagMutator=new Y.U(v),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewerService.viewer$.subscribe(a=>{this.selectedOrg=a.mostRecentOrg})}onOrgSelected(a){this.selectedOrg=a}resolveFlag(){if(this.comment){this.errorMessages=[];let a=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});a.submitSuccess$.pipe((0,J.R)(this.destroy$)).subscribe(g=>{g&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),a.submitError$.pipe((0,J.R)(this.destroy$)).subscribe(g=>{g.length>0&&(this.success=!1,this.errorMessages=g)}),a.isSubmitting$.pipe((0,J.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(_.EwB),t.Y36(M.a),t.Y36(B.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(a,g){1&a&&(t.YNc(0,un,1,0,"nz-alert",0),t.YNc(1,Ln,8,2,"ng-container",1),t.YNc(2,Mn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Qn,13,4,"ng-template",null,3,t.W1O)),2&a&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},dependencies:[f.sg,f.O5,f.tP,f.PC,C._Y,C.JL,L.eJ,T.ix,N.w,S.dQ,F.t3,F.SK,E.Lr,E.Nx,E.Fd,C.F,b.r,h.bd,fn.lU,_n.Ls,D.SY,U.W,m.b,x.Z,W.m,V.q],encapsulation:2}),c})();var Pn=o(1834),Jn=o(2616),Yn=o(5573);function Dn(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const Q=t.CHM(a).$implicit,vt=t.oxw();return t.KtG(vt.onErrorBannerClose(Q))}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function Un(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){t.CHM(a);const v=t.oxw();return t.KtG(v.onSuccessBannerClose())}),t.qZA()}if(2&c){const a=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",a.success,".")}}function Bn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const a=t.oxw(2).$implicit;t.Q6J("commentBodySegments",a.openComment.parsedComment)}}function rn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const a=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",a)("flagResolvedCallback",g.flagResolvedCallback)}}function $n(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const a=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",a.resolutionComment.parsedComment)}}function wn(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const a=t.oxw(3).$implicit;t.Q6J("user",a.resolvingUser)}}function jn(c,p){if(1&c&&(t.TgZ(0,"nz-row")(1,"nz-col",17),t.YNc(2,$n,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,wn,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeAgo"),t.qZA()()),2&c){const a=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",a.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==a.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,a.resolvedAt)," ")}}function Wn(c,p){if(1&c&&(t._UZ(0,"i",22),t.ALo(1,"entityColor"),t._uU(2)),2&c){const a=t.oxw(2).$implicit;t.Q6J("nzTwotoneColor",t.lcZ(1,2,"Flag")),t.xp6(2),t.hij(" FID",a.id," ")}}function Gn(c,p){if(1&c&&(t.TgZ(0,"span")(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()()),2&c){const a=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",a.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,a.createdAt))}}function Kn(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const a=t.oxw(3).$implicit;t.Q6J("status",a.state)}}function X(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Gn,7,4,"span",24),t.YNc(2,Kn,1,1,"cvc-status-tag",25),t.qZA())}function Vn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,Bn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,rn,2,2,"ng-container",3),t.YNc(4,jn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,13,t.W1O),t.YNc(8,X,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const a=t.MAs(5),g=t.MAs(7),v=t.MAs(9),Q=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",Q.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==Q.state)("ngIfElse",a)}}function Hn(c,p){1&c&&(t.ynx(0),t.YNc(1,Vn,10,5,"nz-card",9),t.BQk())}function kn(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,Hn,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const a=t.oxw();t.xp6(2),t.Q6J("ngForOf",a.flags)}}function qn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Xn=(()=>{class c{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new P.x}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,g){a.submitSuccess$.pipe((0,J.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),a.submitError$.pipe((0,J.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(a){this.errors=this.errors?.filter(g=>g!=a)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(a){return new(a||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","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(a,g){if(1&a&&(t.YNc(0,Dn,1,1,"nz-alert",0),t.YNc(1,Un,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,kn,3,1,"ng-container",3),t.YNc(4,qn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&a){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)}},dependencies:[f.sg,f.O5,F.t3,F.SK,h.bd,j.NU,j.$1,q.ZU,pn.p9,gn.g,_n.Ls,mn.I,dn.h,N.w,b.r,In,Pn.m,Jn.a,Yn.x],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var nt=o(6794),tt=o(6928);const ln=function(){return[]};function et(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const a=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,a.flags$)||t.DdM(4,ln))("flagResolvedCallback",a.refresh)}}function it(c,p){if(1&c){const a=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(a);const v=t.oxw(2).ngrxLet,Q=t.oxw(2);return t.KtG(Q.loadMore(null==v?null:v.endCursor))}),t._uU(1," Load More "),t.qZA()}}function ot(c,p){1&c&&(t.ynx(0),t.YNc(1,it,2,0,"button",15),t.BQk())}function st(c,p){if(1&c&&(t.ynx(0),t.YNc(1,ot,2,0,"ng-container",14),t.BQk()),2&c){const a=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function at(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const a=t.oxw(2);t.Q6J("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function lt(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const a=p.$implicit;t.xp6(1),t.Oqu(a.displayName)}}function ct(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const a=t.oxw().$implicit;t.Q6J("nzSrc",a.profileImagePath)}}function _t(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const a=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,a.username.charAt(0)))}}function rt(c,p){if(1&c&&(t.YNc(0,ct,1,1,"nz-avatar",18),t.YNc(1,_t,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const a=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",a.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(a.username)}}function pt(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const a=t.oxw().$implicit;t.Q6J("nzSrc",a.profileImagePath)}}function gt(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const a=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,a.username.charAt(0)))}}function mt(c,p){if(1&c&&(t.YNc(0,pt,1,1,"nz-avatar",18),t.YNc(1,gt,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const a=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",a.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(a.username)}}function dt(c,p){if(1&c){const a=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,et,2,5,"cvc-flag-list",5),t.YNc(5,st,2,1,"ng-container",6),t.YNc(6,at,1,2,"cvc-flag-add-form",7),t.qZA()(),t.TgZ(7,"nz-col",8)(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.onStateSelected(v))}),t.YNc(9,lt,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.onFlaggingUsersSelected(v))}),t.ALo(12,"ngrxPush"),t.YNc(13,rt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){t.CHM(a);const Q=t.oxw();return t.KtG(Q.onResolvingUsersSelected(v))}),t.ALo(16,"ngrxPush"),t.YNc(17,mt,5,3,"ng-template",null,10,t.W1O),t.qZA()()(),t.BQk()}if(2&c){const a=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",a.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,a.uniqueFlaggingUsers$)||t.DdM(10,ln)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,a.uniqueResolvingUsers$)||t.DdM(11,ln))}}function ft(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const a=t.oxw();t.Q6J("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let ut=(()=>{class c{constructor(a){this.gql=a,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,R.j)("data","flags","edges"),(0,s.h)(n.ep),(0,O.U)(a=>a.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,R.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,R.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,O.U)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,O.U)(({data:a})=>a.flags?.uniqueResolvingUsers))}onFlaggingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:a?a.id:void 0})}onResolvingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:a?a.id:void 0})}onStateSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:a?a.value:void 0})}loadMore(a){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:a}})}}return c.\u0275fac=function(a){return new(a||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(a,g){if(1&a&&(t.YNc(0,dt,19,12,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,ft,1,2,"ng-template",null,1,t.W1O)),2&a){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},dependencies:[f.O5,L.eJ,T.ix,N.w,S.dQ,F.t3,F.SK,Z,Xn,nt.l,tt.Dz,j.NU,j.$1,f.gd,L.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},183:(K,I,o)=>{o.d(I,{M:()=>$});var _=o(6814),s=o(7907),O=o(8706),R=o(2962),n=o(3599),t=o(6976),f=o(6223),L=o(6294),T=o(2840),N=o(845),S=o(3903),F=o(6109),Y=o(2524),P=o(3378),J=o(2669),M=o(5879);let B=(()=>{class Z{}return Z.\u0275fac=function(q){return new(q||Z)},Z.\u0275mod=M.oAB({type:Z}),Z.\u0275inj=M.cJS({imports:[_.ez,f.u5,f.UX,n.U5,T.sL,R.vh,S.L,F.cg,J.j,L.A,N.R,Y.s,P.w]}),Z})();var C=o(4758),E=o(3396),h=o(3043),b=o(2655),D=o(8641),U=o(6061),W=o(3717),V=o(7528),x=o(7417),m=o(551);let z=(()=>{class Z{}return Z.\u0275fac=function(q){return new(q||Z)},Z.\u0275mod=M.oAB({type:Z}),Z.\u0275inj=M.cJS({imports:[_.ez,f.UX,T.sL,n.U5,f.u5,S.L,R.vh,x.$6,m.PV,F.cg,J.j,P.w,N.R,L.A]}),Z})();var u=o(6928),y=o(2612),w=o(6987),H=o(804),nn=o(95),tn=o(824),en=o(2574),k=o(5695),on=o(2392);let sn=(()=>{class Z{}return Z.\u0275fac=function(q){return new(q||Z)},Z.\u0275mod=M.oAB({type:Z}),Z.\u0275inj=M.cJS({imports:[_.ez,nn.Jb,t.Ph,R.vh,en.zf,k.X,on.ZJ,u.Rt,H.Xo,y.Wr,w.S,F.cg,t.Ph,x.$6,m.PV,tn.o7,f.u5,L.A,D.s,O.W,E.Q,U.N,h.y,V.Q,W.M,b.x,Y.s,T.sL,S.L,z,w.S,C.m]}),Z})();var an=o(1595);let $=(()=>{class Z{}return Z.\u0275fac=function(q){return new(q||Z)},Z.\u0275mod=M.oAB({type:Z}),Z.\u0275inj=M.cJS({imports:[_.ez,f.u5,T.sL,n.U5,s.aF,T.sL,O.W,t.Ph,R.vh,B,sn,H.Xo,an.N,u.Rt,en.zf,Y.s]}),Z})()},1801:(K,I,o)=>{o.d(I,{Y:()=>s});var _=o(5879);let s=(()=>{class O{constructor(){}}return O.\u0275fac=function(n){return new(n||O)},O.\u0275dir=_.lG2({type:O,selectors:[["","cvcFlaggableOptions",""]]}),O})()},327:(K,I,o)=>{o.d(I,{o:()=>B});var _=o(5879),s=o(1801),O=o(6814),R=o(4190),n=o(551),t=o(3640),f=o(6109);const L=["cvcFlaggable",""];function T(C,E){1&C&&_.Hsn(0)}function N(C,E){1&C&&_.GkF(0)}function S(C,E){if(1&C&&(_.ynx(0),_.YNc(1,N,1,0,"ng-container",2),_.BQk()),2&C){_.oxw();const h=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",h)}}function F(C,E){if(1&C&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&C){_.oxw();const h=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",h)}}function Y(C,E){if(1&C&&_._uU(0),2&C){const h=_.oxw(2);_.hij(" ",h.flags," open flags ")}}function P(C,E){1&C&&_.GkF(0)}function J(C,E){if(1&C&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,F,2,1,"ng-template",null,4,_.W1O),_.YNc(4,Y,1,1,"ng-template",null,5,_.W1O),_.YNc(6,P,1,0,"ng-container",2),_.qZA(),_.BQk()),2&C){const h=_.MAs(3);_.oxw();const b=_.MAs(1);_.xp6(1),_.Q6J("nzText",h),_.xp6(5),_.Q6J("ngTemplateOutlet",b)}}const M=["*"];let B=(()=>{class C{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 C.\u0275fac=function(h){return new(h||C)(_.Y36(_.Qsj))},C.\u0275cmp=_.Xpm({type:C,selectors:[["","cvcFlaggable",""]],contentQueries:function(h,b,D){if(1&h&&_.Suo(D,s.Y,5,_.SBq),2&h){let U;_.iGM(U=_.CRH())&&(b.flaggedChild=U.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:L,ngContentSelectors:M,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,b){1&h&&(_.F$t(),_.YNc(0,T,1,0,"ng-template",null,0,_.W1O),_.YNc(2,S,2,1,"ng-container",1),_.YNc(3,J,7,2,"ng-container",1)),2&h&&(_.xp6(2),_.Q6J("ngIf",0===b.flags),_.xp6(1),_.Q6J("ngIf",b.flags))},dependencies:[O.O5,O.tP,R.rH,n.Ls,t.F9,f.SY],encapsulation:2}),C})()},5725:(K,I,o)=>{o.d(I,{m:()=>L});var _=o(6814),s=o(6109),O=o(2392),R=o(3640),n=o(551),t=o(4190),f=o(5879);let L=(()=>{class T{}return T.\u0275fac=function(S){return new(S||T)},T.\u0275mod=f.oAB({type:T}),T.\u0275inj=f.cJS({imports:[_.ez,t.Bz,n.PV,R.mS,s.cg,O.ZJ]}),T})()},1665:(K,I,o)=>{o.d(I,{i:()=>an});var _=o(6814),s=o(2962),O=o(6976),R=o(95),n=o(5879);let t=(()=>{class ${}return $.\u0275fac=function(j){return new(j||$)},$.\u0275mod=n.oAB({type:$}),$.\u0275inj=n.cJS({imports:[_.ez,R.Jb]}),$})();var f=o(29),L=o(8641),T=o(2574),N=o(6294),S=o(5695),F=o(2392),Y=o(6928),P=o(8706),J=o(3396),M=o(3043),B=o(7528),C=o(3717),E=o(565),h=o(804),b=o(2655),D=o(2612),U=o(6987),W=o(6109),V=o(2840),x=o(3903),m=o(551),z=o(7417),u=o(824),y=o(6223),w=o(2524),H=o(8125),nn=o(3378),tn=o(4758),en=o(1218),k=o(6061),on=o(8527),sn=o(5956);let an=(()=>{class ${}return $.\u0275fac=function(j){return new(j||$)},$.\u0275mod=n.oAB({type:$}),$.\u0275inj=n.cJS({imports:[_.ez,R.Jb,O.Ph,s.vh,T.zf,S.X,F.ZJ,Y.Rt,h.Xo,D.Wr,U.S,W.cg,O.Ph,z.$6,m.PV,u.o7,H.q6,U.S,y.u5,N.A,f.C,sn.U,L.s,t,P.W,J.Q,k.N,M.y,B.Q,en.i,C.M,b.x,nn.w,on.u,w.s,tn.m,E.cD,V.sL,x.L]}),$})()},6126:(K,I,o)=>{o.d(I,{a:()=>qe});var _=o(313),s=o(7398),O=o(7921),R=o(4223),n=o(5879),t=o(4190),f=o(6814),L=o(8091),T=o(95),N=o(2574),S=o(5695),F=o(6928),Y=o(804),P=o(2840),J=o(855),M=o(1958),B=o(551),C=o(6794),E=o(8645),h=o(2024),b=o(9773),D=o(951),U=o(7473),W=o(6976),V=o(2962),x=o(2392),m=o(2612),z=o(6987),u=o(6109),y=o(7417),w=o(8125),H=o(5805),nn=o(2257);let tn=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=n.Yjl({name:"camelToWords",type:e,pure:!0}),e})();const en=["itemTemplate"],k=function(e){return{$implicit:e}};function on(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,k,i))}}function sn(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function an(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.YNc(1,on,3,4,"ng-container",10),n.YNc(2,sn,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function $(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw();n.MGl("nzNoResult","No ",i.entityType,"")}}function Z(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,k,i))}}function j(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function q(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",17),n.YNc(1,Z,3,4,"ng-container",10),n.YNc(2,j,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function pn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(3);n.MGl("nzNoResult","No ",i.entityType," Removed")}}function gn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,q,4,2,"nz-list-item",16),n.YNc(2,pn,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw(2);n.MGl("nzHeader","Removed ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.removedObjects.length)}}function _n(e,l){1&e&&(n.ynx(0),n.YNc(1,gn,3,3,"nz-list",7),n.BQk())}function mn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,k,i))}}function dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function fn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.YNc(1,mn,3,4,"ng-container",10),n.YNc(2,dn,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function un(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(2);n.MGl("nzNoResult","No ",i.entityType," Added")}}function vn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,fn,4,2,"nz-list-item",18),n.YNc(2,un,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw();n.MGl("nzHeader","Added ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.addedObjects.length)}}function zn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,k,i))}}function Cn(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function xn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",21),n.YNc(1,zn,3,4,"ng-container",10),n.YNc(2,Cn,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function hn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw(3);n.MGl("nzNoResult","No ",i.entityType," Kept")}}function Tn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,xn,4,2,"nz-list-item",20),n.YNc(2,hn,1,1,"nz-list-empty",4),n.qZA()),2&e){const i=n.oxw(2);n.MGl("nzHeader","Kept ",i.entityType,""),n.xp6(1),n.Q6J("ngForOf",i.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===i.diffObject.keptObjects.length)}}function yn(e,l){1&e&&(n.ynx(0),n.YNc(1,Tn,3,3,"nz-list",7),n.BQk())}function An(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,k,i))}}function On(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,i.entityType)," ",i.id,"")}}function Rn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",22),n.YNc(1,An,3,4,"ng-container",10),n.YNc(2,On,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!i.deleted)("ngIfElse",r)}}function Fn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const i=n.oxw();n.MGl("nzNoResult","No ",i.entityType,"")}}let Zn=(()=>{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(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(i,r,d){if(1&i&&n.Suo(d,en,5),2&i){let A;n.iGM(A=n.CRH())&&(r.itemTemplateRef=A.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"],[4,"ngIf","ngIfElse"],["deleted",""],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzColor","error"],[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(i,r){1&i&&(n.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"nz-list",2),n.YNc(3,an,4,2,"nz-list-item",3),n.YNc(4,$,1,1,"nz-list-empty",4),n.qZA()(),n.TgZ(5,"nz-col",1)(6,"nz-space",5),n.YNc(7,_n,2,0,"ng-container",6),n.YNc(8,vn,3,3,"nz-list",7),n.YNc(9,yn,2,0,"ng-container",6),n.qZA()(),n.TgZ(10,"nz-col",1)(11,"nz-list",2),n.YNc(12,Rn,4,2,"nz-list-item",8),n.YNc(13,Fn,1,1,"nz-list-empty",4),n.qZA()()()),2&i&&(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))},dependencies:[f.mk,f.sg,f.O5,f.tP,W.n_,W.I2,W.AA,T.t3,T.SK,S.j,N.NU,N.$1,tn],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 Ln=o(4121),bn=o(4138);let Mn=(()=>{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(i){return new(i||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(i,r){1&i&&(n.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1)(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1)(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3)(13,"div",4),n._uU(14),n.qZA()()()()),2&i&&(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," "))},dependencies:[T.t3,T.SK],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 En=o(356),Nn=o(9775),Sn=o(4770),Qn=o(3897),In=o(9408),Pn=o(4786),Jn=o(7938),Yn=o(2384),Dn=o(1889),Un=o(2606),Bn=o(1834),rn=o(565),$n=o(3903),wn=o(4082),jn=o(2616),Wn=o(5573);function Gn(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const A=n.CHM(i).$implicit,G=n.oxw();return n.KtG(G.onErrorBannerClose(A))}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Kn(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){n.CHM(i);const d=n.oxw();return n.KtG(d.onSuccessBannerClose())}),n.qZA()}if(2&e){const i=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",i.success,".")}}const X=function(e,l,i){return{id:e,name:l,link:i}};function Vn(e,l){if(1&e&&n._UZ(0,"cvc-gene-tag",20),2&e){const i=l.$implicit;n.Q6J("gene",n.kEZ(1,X,i.id,i.displayName,i.link))}}function Hn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",22),2&e&&n.Q6J("source",l.$implicit)}function qn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Xn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",24),2&e){const i=l.$implicit;n.Q6J("disease",n.kEZ(1,X,i.id,i.displayName,i.link))}}function nt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Xn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function tt(e,l){if(1&e&&n._UZ(0,"cvc-molecular-profile-tag",26),2&e){const i=l.$implicit;n.Q6J("molecularProfile",n.kEZ(1,X,i.id,i.displayName,i.link))}}function ln(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,tt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function et(e,l){if(1&e&&n._UZ(0,"cvc-therapy-tag",28),2&e){const i=l.$implicit;n.Q6J("therapy",n.kEZ(1,X,i.id,i.displayName,i.link))}}function it(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,et,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ot(e,l){if(1&e&&n._UZ(0,"cvc-therapy-tag",28),2&e){const i=l.$implicit;n.Q6J("therapy",n.kEZ(1,X,i.id,i.displayName,i.link))}}function st(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,ot,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function lt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",29),n.YNc(2,at,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ct(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function _t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,ct,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function rt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function pt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",31),n.YNc(2,rt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function mt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,gt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function ft(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",33),n.YNc(2,dt,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function ut(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function c(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,ut,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function p(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.hij(" ",i.displayName," ")}}function a(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,p,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function g(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",37),2&e){const i=l.$implicit;n.Q6J("variantType",n.kEZ(1,X,i.id,i.displayName,i.link))}}function v(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,g,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Q(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",39),2&e){const i=l.$implicit;n.Q6J("phenotype",n.kEZ(1,X,i.id,i.displayName,i.link))}}function vt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",38),n.YNc(2,Q,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function xt(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",41),2&e){const i=l.$implicit;n.Q6J("variant",n.kEZ(1,X,i.id,i.displayName,i.link))}}function ht(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",40),n.YNc(2,xt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Tt(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",41),2&e){const i=l.$implicit;n.Q6J("variant",n.kEZ(1,X,i.id,i.displayName,i.link))}}function yt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",42),n.YNc(2,Tt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function At(e,l){1&e&&n._UZ(0,"cvc-source-tag",22),2&e&&n.Q6J("source",l.$implicit)}function Ot(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",43),n.YNc(2,At,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}const Rt=function(e,l,i,r){return{id:e,name:l,link:i,status:r}};function Ft(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",45),2&e){const i=l.$implicit;n.Q6J("evidence",n.l5B(1,Rt,i.id,i.displayName,i.link,i.status))}}function Zt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",44),n.YNc(2,Ft,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",i.linkoutData.diffValue)}}function Lt(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",46),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function bt(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",50),n.BQk()),2&e){const i=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",i.resolutionComment.parsedComment)}}function Mt(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",51),2&e){const i=n.oxw(2).$implicit;n.Q6J("user",i.resolver)}}function Et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row")(3,"nz-col",47),n.YNc(4,bt,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",48),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,Mt,1,1,"cvc-user-tag",49),n._uU(9),n.ALo(10,"timeAgo"),n.qZA()(),n.BQk()),2&e){const i=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",i.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,i.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==i.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,i.resolvedAt)," ")}}function Nt(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",53),n.ALo(2,"entityColor"),n._uU(3),n.TgZ(4,"span"),n._uU(5),n.qZA()()),2&e){const i=n.oxw(2).$implicit;n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,3,"Revision")),n.xp6(2),n.hij(" RID",i.id," "),n.xp6(2),n.hij("",i.linkoutData.name," Updated")}}function St(e,l){if(1&e&&n._UZ(0,"i",56),2&e){n.oxw();const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function Qt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",50),2&e){const i=n.oxw(3).$implicit;n.Q6J("commentBodySegments",i.creationComment.parsedComment)}}function It(e,l){1&e&&(n.ynx(0),n.YNc(1,St,1,1,"i",54),n.YNc(2,Qt,1,1,"ng-template",null,55,n.W1O),n.BQk())}function Pt(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,Nt,6,5,"span",52),n.YNc(2,It,4,0,"ng-container",15),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",i.creationComment)}}function Jt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",63),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",51),n.BQk()),2&e){const i=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",i.revisor)}}function Yt(e,l){1&e&&(n.TgZ(0,"span",63),n._uU(1,"Submitted"),n.qZA())}function Dt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Jt,4,1,"ng-container",61),n.YNc(2,Yt,2,0,"ng-template",null,62,n.W1O),n.TgZ(4,"span",63),n._uU(5),n.ALo(6,"timeAgo"),n.qZA()()),2&e){const i=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",i),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function Ut(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",64),2&e){const i=n.oxw(2).$implicit;n.Q6J("status",i.status)}}function Bt(e,l){1&e&&n._UZ(0,"nz-divider",65)}function $t(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"a",66),n.NdJ("click",function(){n.CHM(i);const d=n.oxw(2).$implicit,A=n.oxw(3);return n.KtG(A.onChangesetSelected(d.revisionSetId))}),n._uU(1,"Show Group"),n.qZA()}}function wt(e,l){1&e&&n._UZ(0,"nz-divider",65)}function jt(e,l){1&e&&n._UZ(0,"label",69),2&e&&n.Q6J("nzDisabled",!0)}function Wt(e,l){1&e&&n._UZ(0,"label",72),2&e&&n.Q6J("nzDisabled",!0)}function Gt(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"label",73),n.NdJ("nzCheckedChange",function(d){n.CHM(i);const A=n.oxw(5).$implicit,G=n.oxw(3);return n.KtG(G.onRevisionCheckboxClicked(d,A.id))}),n.qZA()}}function Kt(e,l){if(1&e&&(n.YNc(0,Wt,1,1,"label",70),n.YNc(1,Gt,1,0,"ng-template",null,71,n.W1O)),2&e){const i=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",i)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,jt,1,1,"label",67),n.YNc(2,Kt,3,2,"ng-template",null,68,n.W1O),n.qZA()),2&e){const i=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",i)}}function Ht(e,l){1&e&&(n.ynx(0),n.YNc(1,wt,1,0,"nz-divider",59),n.YNc(2,Vt,4,2,"span",52),n.BQk())}function kt(e,l){if(1&e&&(n.TgZ(0,"nz-space",57),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,Dt,7,5,"span",52),n.YNc(2,Ut,1,1,"cvc-status-tag",58),n.YNc(3,Bt,1,0,"nz-divider",59),n.YNc(4,$t,2,0,"a",60),n.YNc(5,Ht,3,0,"ng-container",15),n.qZA()),2&e){const i=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===i.status)}}function qt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,Hn,4,1,"ng-container",13),n.YNc(3,qn,4,1,"ng-container",13),n.YNc(4,nt,4,1,"ng-container",13),n.YNc(5,ln,4,1,"ng-container",13),n.YNc(6,it,4,1,"ng-container",13),n.YNc(7,st,4,1,"ng-container",13),n.YNc(8,lt,4,1,"ng-container",13),n.YNc(9,_t,4,1,"ng-container",13),n.YNc(10,pt,4,1,"ng-container",13),n.YNc(11,mt,4,1,"ng-container",13),n.YNc(12,ft,4,1,"ng-container",13),n.YNc(13,c,4,1,"ng-container",13),n.YNc(14,a,4,1,"ng-container",13),n.YNc(15,v,4,1,"ng-container",13),n.YNc(16,vt,4,1,"ng-container",13),n.YNc(17,ht,4,1,"ng-container",13),n.YNc(18,yt,4,1,"ng-container",13),n.YNc(19,Ot,4,1,"ng-container",13),n.YNc(20,Zt,4,1,"ng-container",13),n.YNc(21,Lt,2,5,"ng-container",14),n.BQk(),n.YNc(22,Et,11,8,"ng-container",15),n.YNc(23,Pt,3,1,"ng-template",null,16,n.W1O),n.YNc(25,kt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(24),d=n.MAs(26);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",i.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","gene_id"),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","molecular_profile_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","therapy_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","molecular_profile_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clingen_code_ids"),n.xp6(1),n.Q6J("ngSwitchCase","acmg_code_ids"),n.xp6(1),n.Q6J("ngSwitchCase","nccn_guideline_id"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_description_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"!==i.status)}}function Xt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,qt,27,24,"nz-collapse-panel",10),n.qZA()),2&e){const i=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",i.untypedRevisons)}}function ne(e,l){1&e&&n._UZ(0,"nz-empty",74)}function te(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Xt,2,1,"nz-collapse",7),n.YNc(3,ne,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const i=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",i)}}function ee(e,l){}function ie(e,l){1&e&&n.YNc(0,ee,0,0,"ng-template")}function oe(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ie,1,0,null,83),n.BQk()),2&e){n.oxw();const i=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function se(e,l){}function ae(e,l){1&e&&n.YNc(0,se,0,0,"ng-template")}function le(e,l){if(1&e&&(n.TgZ(0,"span",84),n.YNc(1,ae,1,0,null,83),n.qZA()),2&e){n.oxw();const i=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function ce(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"button",85),n.NdJ("nzPopoverVisibleChange",function(d){n.CHM(i);const A=n.oxw(7);return n.KtG(A.validationPopoverVisible=d)})("click",function(){n.CHM(i);const d=n.oxw(7);return n.KtG(d.validationPopoverVisible=!d.validationPopoverVisible)}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",86),n.qZA()}if(2&e){const i=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),A=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",A.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===A.selectedRevisionIds.length||!i.signedIn)}}function _e(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,oe,2,1,"ng-container",61),n.YNc(2,le,2,1,"ng-template",null,81,n.W1O),n.YNc(4,ce,3,5,"ng-template",null,82,n.W1O),n.qZA()),2&e){const i=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",i)}}function re(e,l){if(1&e&&n._UZ(0,"i",88),2&e){n.oxw(4);const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function pe(e,l){1&e&&(n.ynx(0),n.YNc(1,re,1,1,"i",87),n.BQk())}const ge=function(){return{float:"right"}};function me(e,l){if(1&e){const i=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",89)(2,"i",90),n.NdJ("click",function(){n.CHM(i);const d=n.oxw(6);return n.KtG(d.validationPopoverVisible=!1)}),n.qZA()()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,ge)))}function de(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"cvc-comment-input-form",93),n.NdJ("commentChange",function(d){n.CHM(i);const A=n.oxw(7);return n.KtG(A.revisionComment=d)}),n.qZA()}if(2&e){const i=n.oxw(7);n.Q6J("comment",i.revisionComment)}}function fe(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"span")(1,"cvc-org-selector-btn-group",94),n.NdJ("selectedOrgChange",function(d){n.CHM(i);const A=n.oxw(8);return n.KtG(A.mostRecentOrg=d)}),n.TgZ(2,"button",95),n.NdJ("click",function(){n.CHM(i);const d=n.oxw(8);return n.KtG(d.onRejectRevisionsClicked())}),n._uU(3," Reject Revision "),n.qZA()()()}if(2&e){const i=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",i.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",i.isLoading)("disabled",void 0===i.revisionComment||i.revisionComment.length<10)}}function ue(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"span")(1,"cvc-org-selector-btn-group",94),n.NdJ("selectedOrgChange",function(d){n.CHM(i);const A=n.oxw(8);return n.KtG(A.mostRecentOrg=d)}),n.TgZ(2,"button",96),n.NdJ("click",function(){n.CHM(i);const d=n.oxw(8);return n.KtG(d.onAcceptRevisionClicked())}),n._uU(3," Accept Revision "),n.qZA()()()}if(2&e){const i=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==i&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function ve(e,l){if(1&e&&n._UZ(0,"i",98),2&e){n.oxw(6);const i=n.MAs(3);n.Q6J("nzPopoverContent",i)}}function ze(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,ve,1,1,"i",97),n.qZA()),2&e){const i=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i>0)}}function Ce(e,l){1&e&&(n.TgZ(0,"span")(1,"nz-space"),n.YNc(2,fe,4,3,"span",52),n.YNc(3,ue,4,3,"span",52),n.YNc(4,ze,2,1,"span",52),n.qZA()())}function xe(e,l){1&e&&(n.TgZ(0,"nz-space",91),n.YNc(1,de,1,1,"cvc-comment-input-form",92),n.YNc(2,Ce,5,0,"span",52),n.qZA())}function he(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",76)(2,"div",77)(3,"nz-space",78),n.YNc(4,_e,6,2,"span",52),n.YNc(5,pe,2,0,"ng-container",15),n.qZA(),n.YNc(6,me,3,2,"ng-template",null,79,n.W1O),n.YNc(8,xe,3,0,"ng-template",null,80,n.W1O),n.qZA()(),n.BQk()),2&e){const i=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",i&&i>0)}}function Te(e,l){if(1&e&&(n.ynx(0),n.YNc(1,he,10,1,"ng-container",2),n.BQk()),2&e){const i=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",i.viewer$)}}function ye(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i)}}function Ae(e,l){if(1&e&&(n.TgZ(0,"nz-card",100)(1,"nz-list",101),n.YNc(2,ye,2,1,"nz-list-item",102),n.qZA()()),2&e){const i=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",i)}}function Oe(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ae,3,1,"nz-card",99),n.qZA()),2&e){const i=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i.length>0)}}function Re(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",107),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.Q6J("nzTitle",i.fieldName),n.xp6(1),n.Oqu(i.error)}}function Fe(e,l){if(1&e&&(n.TgZ(0,"nz-card",104)(1,"nz-descriptions",105),n.YNc(2,Re,2,2,"nz-descriptions-item",106),n.qZA()()),2&e){const i=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",i)}}function Ze(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Fe,3,1,"nz-card",103),n.qZA()),2&e){const i=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&i.length>0)}}function Le(e,l){1&e&&(n.TgZ(0,"nz-space",91),n.YNc(1,Oe,2,1,"span",52),n.YNc(2,Ze,2,1,"span",52),n.qZA())}function be(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Te,2,1,"ng-container",2),n.YNc(2,Le,3,0,"ng-template",null,75,n.W1O),n.BQk()),2&e){const i=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",i.totalErrorCount$)}}function Me(e,l){if(1&e&&(n.ynx(0),n.YNc(1,be,4,1,"ng-container",2),n.BQk()),2&e){const i=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",i.genericErrors$)}}function Ee(e,l){if(1&e&&n.YNc(0,Me,2,1,"ng-container",2),2&e){const i=n.oxw();n.Q6J("ngrxLet",i.validationErrors$)}}let Ne=(()=>{class e{constructor(i,r,d,A,G){this.viewerService=i,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=A,this.validationGql=G,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new E.x,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new h.U(r),this.rejectRevisionsMutator=new h.U(r),this.viewer$=this.viewerService.viewer$}ngOnChanges(i){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewerService.viewer$.subscribe(i=>{this.mostRecentOrg=i.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,s.U)(({data:i})=>i.validateRevisionsForAcceptance.genericErrors.length+i.validateRevisionsForAcceptance.validationErrors.length),(0,O.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,r){i?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,r){i.submitSuccess$.pipe((0,b.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),i.submitError$.pipe((0,b.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let i=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"rejected")}}onAcceptRevisionClicked(){this.isLoading=!0;let i=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(i){this.errors=this.errors?.filter(r=>r!=i)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(D.a),n.Y36(U.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},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","Gene",3,"diffObject"],["itemTemplate",""],[3,"gene"],["entityType","Sources",3,"diffObject"],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Molecular Profile",3,"diffObject"],[3,"molecularProfile"],["entityType","Therapies",3,"diffObject"],[3,"therapy"],["entityType","Variant Aliases",3,"diffObject"],["entityType","Molecular Profile Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","ClinGen/CGC/VICC Code(s)",3,"diffObject"],["entityType","ACMG/AMP Code(s)",3,"diffObject"],["entityType","NCCN Guideline",3,"diffObject"],["entityType","HGVS Descriptions",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","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["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(i,r){1&i&&(n.YNc(0,Gn,1,1,"nz-alert",0),n.YNc(1,Kn,1,1,"nz-alert",1),n.YNc(2,te,5,3,"ng-container",2),n.YNc(3,Ee,1,1,"ng-template",null,3,n.W1O)),2&i&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},dependencies:[f.sg,f.O5,f.tP,f.PC,f.RF,f.n9,f.ED,T.t3,T.SK,W.n_,W.AA,V.bd,N.NU,N.$1,S.j,x.ZU,Y.p9,m.Ie,z.g,u.SY,y.lU,B.Ls,w.R7,w.uj,H.m,nn.q,Zn,Ln.H,bn.T,Mn,En.I,Nn.n,Sn.T,Qn.i,In.I,Pn.O,Jn.j,Yn.h,Dn.b,Un.p,Bn.m,rn.Zv,rn.yH,P.ix,J.w,M.dQ,$n.r,L.eJ,wn.I,jn.a,Wn.x],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})();function Se(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){n.CHM(i);const A=n.oxw(2);return n.KtG(A.onRevisionSetSelected(d))})("revisionMutationCompleted",function(){n.CHM(i);const d=n.oxw(2);return n.KtG(d.refresh())}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const i=n.oxw(2);n.Q6J("revisions",n.lcZ(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function Qe(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(i);const d=n.oxw(2).ngrxLet,A=n.oxw(2);return n.KtG(A.loadMore(null==d?null:d.endCursor))}),n._uU(1," Load More "),n.qZA()}}function Ie(e,l){1&e&&(n.ynx(0),n.YNc(1,Qe,2,0,"button",16),n.BQk())}function Pe(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Ie,2,0,"ng-container",15),n.BQk()),2&e){const i=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Je(e,l){if(1&e){const i=n.EpF();n.TgZ(0,"nz-row")(1,"nz-tag",19),n.NdJ("nzOnClose",function(){n.CHM(i);const d=n.oxw(3);return n.KtG(d.onSetFilterClearClicked())}),n._uU(2),n.qZA()()}if(2&e){const i=n.oxw(3);n.xp6(2),n.hij("Group: ",i.filteredSet,"")}}function Ye(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,Je,3,1,"nz-row",18),n.qZA())}function De(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i.displayName)}}function Ue(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function Be(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.username.charAt(0)))}}function $e(e,l){if(1&e&&(n.YNc(0,Ue,1,1,"nz-avatar",20),n.YNc(1,Be,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.username)}}function we(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const i=l.$implicit;n.xp6(1),n.Oqu(i.displayName)}}function je(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function We(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.username.charAt(0)))}}function Ge(e,l){if(1&e&&(n.YNc(0,je,1,1,"nz-avatar",20),n.YNc(1,We,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const i=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.username)}}const zt=function(){return[]};function Ke(e,l){if(1&e){const i=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),n.YNc(4,Se,2,4,"cvc-revision-list",5),n.YNc(5,Pe,2,1,"ng-container",6),n.qZA()(),n.TgZ(6,"nz-col",7),n.YNc(7,Ye,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){n.CHM(i);const A=n.oxw();return n.KtG(A.onStatusSelected(d))}),n.YNc(9,De,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){n.CHM(i);const A=n.oxw();return n.KtG(A.onRevisorSelected(d))}),n.ALo(12,"ngrxPush"),n.YNc(13,$e,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){n.CHM(i);const A=n.oxw();return n.KtG(A.onFieldNameSelected(d))}),n.ALo(16,"ngrxPush"),n.YNc(17,we,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){n.CHM(i);const A=n.oxw();return n.KtG(A.onResolverSelected(d))}),n.ALo(20,"ngrxPush"),n.YNc(21,Ge,5,3,"ng-template",null,10,n.W1O),n.qZA()()(),n.BQk()}if(2&e){const i=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",i.pageInfo$),n.xp6(2),n.Q6J("ngIf",i.filteredSet),n.xp6(1),n.Q6J("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,i.uniqueRevisors$)||n.DdM(14,zt)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,i.revisionFields$)||n.DdM(15,zt)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,i.uniqueResolvers$)||n.DdM(16,zt))}}function Ve(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function He(e,l){1&e&&n._UZ(0,"nz-empty",27)}function ke(e,l){if(1&e&&(n.YNc(0,Ve,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,He,1,0,"ng-template",null,24,n.W1O)),2&e){const i=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",i)}}let qe=(()=>{class e{constructor(i,r,d,A,G,cn,Ct,Xe,ni,ti,ei,ii,oi,si){this.gql=i,this.route=r,this.variantDetailGql=d,this.variantSummaryGql=A,this.variantGroupDetailGql=G,this.variantGroupSummaryGql=cn,this.assertionDetailGql=Ct,this.assertionSummaryGql=Xe,this.geneDetailGql=ni,this.geneSummaryGql=ti,this.evidenceDetailGql=ei,this.evidenceSummaryGql=ii,this.molecularProfileDetailGql=oi,this.molecularProfileSummaryGql=si,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.preselectedRevisionStatus=this.selectableStatuses[0],this.defaultPageSize=10,this.refetchQueries=[]}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(i=>{this.queryParamsSub=this.route.queryParams.subscribe(r=>{let d={first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New};r.revisionSetId&&(this.filteredSet=r.revisionSetId,this.preselectedRevisionStatus=void 0,d.status=void 0,d.revisionSetId=r.revisionSetId),this.queryRef=this.gql.watch(d);let A=this.queryRef.valueChanges;this.revisions$=A.pipe((0,R.j)("data","revisions","edges"),(0,s.U)(G=>G.map(cn=>cn.node))),this.isLoading$=A.pipe((0,s.U)(G=>G.loading),(0,O.O)(!0)),this.pageInfo$=A.pipe((0,R.j)("data","revisions","pageInfo")),this.uniqueRevisors$=A.pipe((0,s.U)(({data:G})=>G.revisions?.uniqueRevisors)),this.uniqueResolvers$=A.pipe((0,s.U)(({data:G})=>G.revisions?.uniqueResolvers)),this.revisionFields$=A.pipe((0,s.U)(({data:G})=>G.revisions?.revisedFieldNames.map((cn,Ct)=>({...cn,id:Ct})))),this.unfilteredCount$=A.pipe((0,R.j)("data","revisions","unfilteredCountForSubject"))})}),this.entityType){case _.oRL.Variant:return this.refetchQueries.push({query:this.variantDetailGql.document,variables:{variantId:this.id}}),void this.refetchQueries.push({query:this.variantSummaryGql.document,variables:{variantId:this.id}});case _.oRL.Assertion:return this.refetchQueries.push({query:this.assertionDetailGql.document,variables:{assertionId:this.id}}),void this.refetchQueries.push({query:this.assertionSummaryGql.document,variables:{assertionId:this.id}});case _.oRL.EvidenceItem:return this.refetchQueries.push({query:this.evidenceDetailGql.document,variables:{evidenceId:this.id}}),void this.refetchQueries.push({query:this.evidenceSummaryGql.document,variables:{evidenceId:this.id}});case _.oRL.Gene:return this.refetchQueries.push({query:this.geneDetailGql.document,variables:{geneId:this.id}}),void this.refetchQueries.push({query:this.geneSummaryGql.document,variables:{geneId:this.id}});case _.oRL.VariantGroup:return this.refetchQueries.push({query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.id}}),void this.refetchQueries.push({query:this.variantGroupSummaryGql.document,variables:{variantGroupId:this.id}});case _.oRL.MolecularProfile:return this.refetchQueries.push({query:this.molecularProfileDetailGql.document,variables:{molecularProfileId:this.id}}),void this.refetchQueries.push({query:this.molecularProfileSummaryGql.document,variables:{molecularProfileId:this.id}})}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onFieldNameSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:i?i.name:void 0})}onRevisorSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:i?i.id:void 0})}onResolverSelected(i){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:i?i.id:void 0})}onStatusSelected(i){this.preselectedRevisionStatus=i,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:i?i.value:void 0})}onRevisionSetSelected(i){this.filteredSet=i,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionSetId:i?+i: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(i){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:i}})}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(_.L5n),n.Y36(t.gz),n.Y36(_.iJT),n.Y36(_.Bo4),n.Y36(_.Qtd),n.Y36(_.q1D),n.Y36(_.A94),n.Y36(_.ejK),n.Y36(_.TNk),n.Y36(_.cCu),n.Y36(_.pHu),n.Y36(_.sBY),n.Y36(_.AMF),n.Y36(_.Tg0))},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","refetchQueries","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Filter by Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Filter by Revisor",3,"participantList","participantSelectedEvent"],["listTitle","Filter by Field",3,"participantList","participantSelectedEvent"],["listTitle","Filter by Resolver",3,"participantList","participantSelectedEvent"],[3,"revisions","refetchQueries","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(i,r){if(1&i&&(n.YNc(0,Ke,23,17,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,ke,4,4,"ng-template",null,1,n.W1O)),2&i){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},dependencies:[f.O5,L.eJ,T.t3,T.SK,N.NU,N.$1,S.j,F.Dz,Y.p9,P.ix,J.w,M.dQ,B.Ls,C.l,Ne,f.gd,L.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2534:(K,I,o)=>{o.d(I,{A:()=>J});var _=o(6814),s=o(95),O=o(6976),R=o(2962),n=o(2574),t=o(5695),f=o(2392),L=o(1595),T=o(6928),N=o(1665),S=o(804),F=o(2840),Y=o(551),P=o(5879);let J=(()=>{class M{}return M.\u0275fac=function(C){return new(C||M)},M.\u0275mod=P.oAB({type:M}),M.\u0275inj=P.cJS({imports:[_.ez,s.Jb,O.Ph,R.vh,n.zf,t.X,f.ZJ,T.Rt,S.Xo,F.sL,Y.PV,L.N,N.i]}),M})()},1520:(K,I,o)=>{o.d(I,{N:()=>V});var _=o(4223),s=o(5879),O=o(313),R=o(6814),n=o(2392),t=o(4190),f=o(6928),L=o(7417),T=o(8125),N=o(4821),S=o(7908);function F(x,m){1&x&&(s.ynx(0),s._uU(1,", "),s.BQk())}function Y(x,m){if(1&x&&(s.ynx(0),s._uU(1),s.ALo(2,"eventVerbiage"),s.YNc(3,F,2,0,"ng-container",12),s.BQk()),2&x){const z=m.$implicit,u=m.last;s.xp6(1),s.hij(" ",s.Dn7(2,2,z.action,"contributor-card",z.count)," "),s.xp6(2),s.Q6J("ngIf",!u)}}function P(x,m){if(1&x&&(s.TgZ(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.YNc(2,Y,4,6,"ng-container",10),s.qZA(),s.TgZ(3,"nz-descriptions-item",11),s._uU(4),s.ALo(5,"date"),s.qZA()()),2&x){const z=s.oxw(2).$implicit;s.Q6J("nzColumn",1),s.xp6(2),s.Q6J("ngForOf",z.uniqueActions),s.xp6(2),s.hij(" ",s.lcZ(5,3,z.lastActionDate)," ")}}function J(x,m){if(1&x&&(s.TgZ(0,"cvc-user-popover",6),s.YNc(1,P,6,5,"ng-template",null,7,s.W1O),s.qZA()),2&x){const z=s.oxw().$implicit;s.Q6J("userId",z.user.id)}}function M(x,m){if(1&x&&(s.TgZ(0,"a",3),s._UZ(1,"nz-avatar",4),s.YNc(2,J,3,1,"ng-template",null,5,s.W1O),s.qZA()),2&x){const z=m.$implicit,u=s.MAs(3);s.MGl("routerLink","/users/",z.user.id,""),s.xp6(1),s.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",u)("nzSrc",z.user.profileImagePath)}}function B(x,m){if(1&x&&(s.ynx(0),s.YNc(1,M,4,5,"a",2),s.BQk()),2&x){const z=s.oxw();s.xp6(1),s.Q6J("ngForOf",z.sortedContributors)}}function C(x,m){1&x&&s._uU(0," None ")}let E=(()=>{class x{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,u)=>u.totalActionCount-z.totalActionCount)}}return x.\u0275fac=function(z){return new(z||x)},x.\u0275cmp=s.Xpm({type:x,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,u){if(1&z&&(s.YNc(0,B,2,1,"ng-container",0),s.YNc(1,C,1,0,"ng-template",null,1,s.W1O)),2&z){const y=s.MAs(2);s.Q6J("ngIf",u.sortedContributors&&u.sortedContributors.length>0)("ngIfElse",y)}},dependencies:[R.sg,R.O5,t.rH,f.Dz,L.lU,T.R7,T.uj,N.q,R.uU,S.R],encapsulation:2}),x})();var h=o(8091);function b(x,m){if(1&x&&(s.ynx(0),s._UZ(1,"cvc-contributor-stack",5),s.BQk()),2&x){const z=m.ngIf;s.xp6(1),s.Q6J("contributors",z)}}function D(x,m){1&x&&s._uU(0," None ")}function U(x,m){if(1&x&&(s.ynx(0),s._UZ(1,"cvc-contributor-stack",5),s.BQk()),2&x){const z=m.ngIf;s.xp6(1),s.Q6J("contributors",z)}}function W(x,m){1&x&&s._uU(0," None ")}let V=(()=>{class x{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 x.\u0275fac=function(z){return new(z||x)(s.Y36(O.kQf))},x.\u0275cmp=s.Xpm({type:x,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,u){if(1&z&&(s.TgZ(0,"span",0),s._uU(1,"Curators:"),s.qZA(),s.TgZ(2,"div",1),s.YNc(3,b,2,1,"ng-container",2),s.ALo(4,"ngrxPush"),s.YNc(5,D,1,0,"ng-template",null,3,s.W1O),s.qZA(),s.TgZ(7,"span",0),s._uU(8,"Editors:"),s.qZA(),s.TgZ(9,"div",1),s.YNc(10,U,2,1,"ng-container",2),s.ALo(11,"ngrxPush"),s.YNc(12,W,1,0,"ng-template",null,4,s.W1O),s.qZA()),2&z){const y=s.MAs(6),w=s.MAs(13);s.xp6(3),s.Q6J("ngIf",s.lcZ(4,4,u.curators$))("ngIfElse",y),s.xp6(7),s.Q6J("ngIf",s.lcZ(11,6,u.editors$))("ngIfElse",w)}},dependencies:[R.O5,n.ZU,E,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}"]}),x})()},936:(K,I,o)=>{o.d(I,{Z:()=>S});var _=o(6814),s=o(2392),O=o(4190),R=o(6928),n=o(7417),t=o(2524),f=o(4086),L=o(8125),T=o(5879);let N=(()=>{class F{}return F.\u0275fac=function(P){return new(P||F)},F.\u0275mod=T.oAB({type:F}),F.\u0275inj=T.cJS({imports:[_.ez,O.Bz,R.Rt,n.$6,L.q6,t.s,f.J]}),F})(),S=(()=>{class F{}return F.\u0275fac=function(P){return new(P||F)},F.\u0275mod=T.oAB({type:F}),F.\u0275inj=T.cJS({imports:[_.ez,s.ZJ,N]}),F})()},8295:(K,I,o)=>{o.d(I,{Q:()=>B});var _=o(2024),s=o(313),O=o(8645),R=o(7398),n=o(9773),t=o(5879),f=o(7473),L=o(6814),T=o(2840),N=o(855),S=o(1958),F=o(551),Y=o(6109),P=o(8091);function J(C,E){if(1&C){const h=t.EpF();t.ynx(0),t.TgZ(1,"button",2),t.NdJ("click",function(){t.CHM(h);const D=t.oxw();return t.KtG(D.unsubscribe())}),t._UZ(2,"i",3),t.qZA(),t.BQk()}if(2&C){const h=t.oxw();t.xp6(1),t.Q6J("nzLoading",h.isSubmitting)}}function M(C,E){if(1&C){const h=t.EpF();t.TgZ(0,"button",4),t.NdJ("click",function(){t.CHM(h);const D=t.oxw();return t.KtG(D.subscribe())}),t._UZ(1,"i",5),t.qZA()}if(2&C){const h=t.oxw();t.Q6J("nzLoading",h.isSubmitting)}}let B=(()=>{class C{constructor(h,b,D,U){this.isSubscribedGQL=h,this.unsubscribeMutation=b,this.subscribeMutation=D,this.networkErrorService=U,this.isSubmitting=!1,this.destroy$=new O.x,this.unsubscribeMutator=new _.U(U),this.subscribeMutator=new _.U(U)}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:s.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,R.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=>{b&&(this.queryRef?.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=>{b&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(h){return new(h||C)(t.Y36(s.A4J),t.Y36(s.m$d),t.Y36(s.jMx),t.Y36(f.Y))},C.\u0275cmp=t.Xpm({type:C,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,b){if(1&h&&(t.YNc(0,J,3,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,M,2,1,"ng-template",null,1,t.W1O)),2&h){const D=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,b.existingSubscription$))("ngIfElse",D)}},dependencies:[L.O5,T.ix,N.w,S.dQ,F.Ls,Y.SY,P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},7129:(K,I,o)=>{o.d(I,{g:()=>t});var _=o(6814),s=o(2840),O=o(551),R=o(6109),n=o(5879);let t=(()=>{class f{}return f.\u0275fac=function(T){return new(T||f)},f.\u0275mod=n.oAB({type:f}),f.\u0275inj=n.cJS({imports:[_.ez,s.sL,O.PV,R.cg]}),f})()},4082:(K,I,o)=>{o.d(I,{I:()=>s});var _=o(5879);let s=(()=>{class O{transform(n){if(n){let f=n.toLowerCase().replace(/_/g," ").split(" ");for(var t=0;t{o.d(I,{Zv:()=>V,cD:()=>x,yH:()=>U});var _=o(655),s=o(5879),O=o(2438),R=o(9773),n=o(2181),t=o(4194),f=o(874),L=o(9087),T=o(7754),N=o(9388),S=o(331),F=o(6814),Y=o(551),P=o(8324);const J=["*"],M=["collapseHeader"];function B(m,z){if(1&m&&(s.ynx(0),s._UZ(1,"span",7),s.BQk()),2&m){const u=z.$implicit,y=s.oxw(2);s.xp6(1),s.Q6J("nzType",u||"right")("nzRotate",y.nzActive?90:0)}}function C(m,z){if(1&m&&(s.TgZ(0,"div"),s.YNc(1,B,2,2,"ng-container",3),s.qZA()),2&m){const u=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",u.nzExpandedIcon)}}function E(m,z){if(1&m&&(s.ynx(0),s._uU(1),s.BQk()),2&m){const u=s.oxw();s.xp6(1),s.Oqu(u.nzHeader)}}function h(m,z){if(1&m&&(s.ynx(0),s._uU(1),s.BQk()),2&m){const u=s.oxw(2);s.xp6(1),s.Oqu(u.nzExtra)}}function b(m,z){if(1&m&&(s.TgZ(0,"div",8),s.YNc(1,h,2,1,"ng-container",3),s.qZA()),2&m){const u=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",u.nzExtra)}}const D="collapse";let U=(()=>{class m{constructor(u,y,w,H){this.nzConfigService=u,this.cdr=y,this.directionality=w,this.destroy$=H,this._nzModuleName=D,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(D).pipe((0,R.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,R.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(u){this.listOfNzCollapsePanelComponent.push(u)}removePanel(u){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(u),1)}click(u){this.nzAccordion&&!u.nzActive&&this.listOfNzCollapsePanelComponent.filter(y=>y!==u).forEach(y=>{y.nzActive&&(y.nzActive=!1,y.nzActiveChange.emit(y.nzActive),y.markForCheck())}),u.nzActive=!u.nzActive,u.nzActiveChange.emit(u.nzActive)}}return m.\u0275fac=function(u){return new(u||m)(s.Y36(f.jY),s.Y36(s.sBO),s.Y36(N.Is,8),s.Y36(L.kn))},m.\u0275cmp=s.Xpm({type:m,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(u,y){2&u&&s.ekj("ant-collapse-icon-position-left","left"===y.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===y.nzExpandIconPosition)("ant-collapse-ghost",y.nzGhost)("ant-collapse-borderless",!y.nzBordered)("ant-collapse-rtl","rtl"===y.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],features:[s._Bn([L.kn])],ngContentSelectors:J,decls:1,vars:0,template:function(u,y){1&u&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,f.oS)(),(0,T.yF)()],m.prototype,"nzAccordion",void 0),(0,_.gn)([(0,f.oS)(),(0,T.yF)()],m.prototype,"nzBordered",void 0),(0,_.gn)([(0,f.oS)(),(0,T.yF)()],m.prototype,"nzGhost",void 0),m})();const W="collapsePanel";let V=(()=>{class m{markForCheck(){this.cdr.markForCheck()}constructor(u,y,w,H,nn,tn){this.nzConfigService=u,this.ngZone=y,this.cdr=w,this.destroy$=H,this.nzCollapseComponent=nn,this.noAnimation=tn,this._nzModuleName=W,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.vpe,this.nzConfigService.getConfigChangeEventForComponent(W).pipe((0,R.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,O.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.h)(()=>!this.nzDisabled),(0,R.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}}return m.\u0275fac=function(u){return new(u||m)(s.Y36(f.jY),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(L.kn),s.Y36(U,1),s.Y36(S.P,8))},m.\u0275cmp=s.Xpm({type:m,selectors:[["nz-collapse-panel"]],viewQuery:function(u,y){if(1&u&&s.Gf(M,7),2&u){let w;s.iGM(w=s.CRH())&&(y.collapseHeader=w.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(u,y){2&u&&s.ekj("ant-collapse-no-arrow",!y.nzShowArrow)("ant-collapse-item-active",y.nzActive)("ant-collapse-item-disabled",y.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],features:[s._Bn([L.kn])],ngContentSelectors:J,decls:8,vars:8,consts:[["role","button",1,"ant-collapse-header"],["collapseHeader",""],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(u,y){1&u&&(s.F$t(),s.TgZ(0,"div",0,1),s.YNc(2,C,2,1,"div",2),s.YNc(3,E,2,1,"ng-container",3),s.YNc(4,b,2,1,"div",4),s.qZA(),s.TgZ(5,"div",5)(6,"div",6),s.Hsn(7),s.qZA()()),2&u&&(s.uIk("aria-expanded",y.nzActive),s.xp6(2),s.Q6J("ngIf",y.nzShowArrow),s.xp6(1),s.Q6J("nzStringTemplateOutlet",y.nzHeader),s.xp6(1),s.Q6J("ngIf",y.nzExtra),s.xp6(1),s.ekj("ant-collapse-content-active",y.nzActive),s.Q6J("@.disabled",!(null==y.noAnimation||!y.noAnimation.nzNoAnimation))("@collapseMotion",y.nzActive?"expanded":"hidden"))},dependencies:[F.O5,Y.Ls,P.f],encapsulation:2,data:{animation:[t.J_]},changeDetection:0}),(0,_.gn)([(0,T.yF)()],m.prototype,"nzActive",void 0),(0,_.gn)([(0,T.yF)()],m.prototype,"nzDisabled",void 0),(0,_.gn)([(0,f.oS)(),(0,T.yF)()],m.prototype,"nzShowArrow",void 0),m})(),x=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=s.oAB({type:m}),m.\u0275inj=s.cJS({imports:[N.vT,F.ez,Y.PV,P.T,S.g]}),m})()}}]); \ No newline at end of file diff --git a/server/public/4840.43d3fde96538cc89.js b/server/public/4840.43d3fde96538cc89.js new file mode 100644 index 000000000..fbf6b237b --- /dev/null +++ b/server/public/4840.43d3fde96538cc89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4840],{1218:(k,v,e)=>{e.d(v,{i:()=>r});var a=e(6814),d=e(4190),t=e(5695),z=e(7417),E=e(551),_=e(1855),g=e(2524),C=e(3640),S=e(3146),p=e(5879);let r=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[a.ez,d.Bz,C.mS,t.X,z.$6,E.PV,_.f,g.s,S.C]}),c})()},3493:(k,v,e)=>{e.d(v,{J:()=>S});var a=e(5879),d=e(6814),t=e(804),z=e(551);function E(p,r){if(1&p&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&p){const c=a.oxw(2);a.xp6(1),a.Oqu(c.notification)}}function _(p,r){1&p&&a._uU(0," Not specified ")}function g(p,r){if(1&p&&(a.YNc(0,E,2,1,"span",3),a.YNc(1,_,1,0,"ng-template",null,4,a.W1O)),2&p){const c=a.MAs(2),h=a.oxw();a.Q6J("ngIf",h.notification)("ngIfElse",c)}}function C(p,r){1&p&&a._UZ(0,"i",6)}let S=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275cmp=a.Xpm({type:p,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(c,h){if(1&c&&(a._UZ(0,"nz-empty",0),a.YNc(1,g,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,0,"ng-template",null,2,a.W1O)),2&c){const u=a.MAs(2),D=a.MAs(4);a.Q6J("nzNotFoundContent",u)("nzNotFoundImage",D)}},dependencies:[d.O5,t.p9,z.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%}"]}),p})()},3511:(k,v,e)=>{e.d(v,{o:()=>E});var a=e(6814),d=e(804),t=e(551),z=e(5879);let E=(()=>{class _{}return _.\u0275fac=function(C){return new(C||_)},_.\u0275mod=z.oAB({type:_}),_.\u0275inj=z.cJS({imports:[a.ez,d.Xo,t.PV]}),_})()},684:(k,v,e)=>{e.d(v,{K:()=>p});var a=e(6814),d=e(5545),t=e(5879),z=e(6223),E=e(824);const g={name:"comment-textarea",component:(()=>{class r extends d.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,u)=>`Comments must be at least ${u.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return r.\u0275fac=function(){let c;return function(u){return(c||(c=t.n5z(r)))(u||r)}}(),r.\u0275cmp=t.Xpm({type:r,selectors:[["comment-textarea-type"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(h,u){1&h&&t._UZ(0,"textarea",0),2&h&&t.Q6J("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[z.Fj,z.JJ,z.oH,d.JD,E.Zp],encapsulation:2,changeDetection:0}),r})(),wrappers:["form-field"]};var C=e(3599),S=e(7459);let p=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[a.ez,z.UX,d.X0.forChild({types:[g]}),S.u,C.U5,E.o7]}),r})()},4139:(k,v,e)=>{e.d(v,{H0:()=>M});var a=e(5879),d=e(6814),t=e(9388);let M=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[t.vT,d.ez]}),s})()},6494:(k,v,e)=>{e.d(v,{i:()=>l,m:()=>o});var a=e(655),d=e(6028),t=e(5879),z=e(6223),E=e(8645),_=e(2438),g=e(9773),C=e(874),S=e(7754),p=e(4300),r=e(9388),c=e(6814),h=e(1958),u=e(551),D=e(8324);const T=["switchElement"];function P(n,f){1&n&&t._UZ(0,"span",8)}function N(n,f){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const i=t.oxw(2);t.xp6(1),t.Oqu(i.nzCheckedChildren)}}function O(n,f){if(1&n&&(t.ynx(0),t.YNc(1,N,2,1,"ng-container",9),t.BQk()),2&n){const i=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzCheckedChildren)}}function x(n,f){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const i=t.oxw(2);t.xp6(1),t.Oqu(i.nzUnCheckedChildren)}}function M(n,f){if(1&n&&t.YNc(0,x,2,1,"ng-container",9),2&n){const i=t.oxw();t.Q6J("nzStringTemplateOutlet",i.nzUnCheckedChildren)}}let l=(()=>{class n{updateValue(i){this.isChecked!==i&&(this.isChecked=i,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(i,m,y,A,I,w){this.nzConfigService=i,this.host=m,this.ngZone=y,this.cdr=A,this.focusMonitor=I,this.directionality=w,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.nzId=null,this.dir="ltr",this.destroy$=new E.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,g.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,_.R)(this.host.nativeElement,"click").pipe((0,g.R)(this.destroy$)).subscribe(i=>{i.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,g.R)(this.destroy$)).subscribe(i=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=i;m!==d.oh&&m!==d.SV&&m!==d.L_&&m!==d.K5||(i.preventDefault(),this.ngZone.run(()=>{m===d.oh?this.updateValue(!1):m===d.SV?this.updateValue(!0):(m===d.L_||m===d.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,g.R)(this.destroy$)).subscribe(i=>{i||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(i){this.isChecked=i,this.cdr.markForCheck()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return n.\u0275fac=function(i){return new(i||n)(t.Y36(C.jY),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(p.tE),t.Y36(r.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-switch"]],viewQuery:function(i,m){if(1&i&&t.Gf(T,7),2&i){let y;t.iGM(y=t.CRH())&&(m.switchElement=y.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[t._Bn([{provide:z.JU,useExisting:(0,t.Gpc)(()=>n),multi:!0}])],decls:9,vars:16,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(i,m){if(1&i&&(t.TgZ(0,"button",0,1)(2,"span",2),t.YNc(3,P,1,0,"span",3),t.qZA(),t.TgZ(4,"span",4),t.YNc(5,O,2,1,"ng-container",5),t.YNc(6,M,1,1,"ng-template",null,6,t.W1O),t.qZA(),t._UZ(8,"div",7),t.qZA()),2&i){const y=t.MAs(7);t.ekj("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),t.Q6J("disabled",m.nzDisabled)("nzWaveExtraNode",!0),t.uIk("id",m.nzId),t.xp6(3),t.Q6J("ngIf",m.nzLoading),t.xp6(2),t.Q6J("ngIf",m.isChecked)("ngIfElse",y)}},dependencies:[c.O5,h.dQ,u.Ls,D.f],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,S.yF)()],n.prototype,"nzLoading",void 0),(0,a.gn)([(0,S.yF)()],n.prototype,"nzDisabled",void 0),(0,a.gn)([(0,S.yF)()],n.prototype,"nzControl",void 0),(0,a.gn)([(0,C.oS)()],n.prototype,"nzSize",void 0),n})(),o=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.vT,c.ez,h.vG,u.PV,D.T]}),n})()}}]); \ No newline at end of file diff --git a/server/public/4872.4170af96d9e3e4f3.js b/server/public/4872.416d5a7a4a85e28a.js similarity index 50% rename from server/public/4872.4170af96d9e3e4f3.js rename to server/public/4872.416d5a7a4a85e28a.js index 1d46d1145..0b3708d68 100644 --- a/server/public/4872.4170af96d9e3e4f3.js +++ b/server/public/4872.416d5a7a4a85e28a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4872],{270:(I,v,o)=>{o.d(v,{w:()=>Se});var r=o(2023),e=o(5879),i=o(6814),_=o(4190),l=o(5695),h=o(7417),A=o(551),d=o(7398),g=o(2181),c=o(5676),p=o(5710),m=o(313),S=o(2962),T=o(8125),z=o(95),O=o(2574),f=o(6109),C=o(9775),y=o(5095),E=o(2606),P=o(3897),u=o(4770),D=o(2384),Z=o(8091),M=o(3702),w=o(6967),L=o(406),N=o(2616),$=o(5573);function U(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"i",17),e.ALo(2,"entityColor"),e._uU(3),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(2,2,"Assertion")),e.xp6(2),e.hij(" ",t.name," ")}}function Q(n,s){if(1&n&&e._UZ(0,"cvc-status-tag",18),2&n){const t=e.oxw(2).ngIf;e.Q6J("status",t.status)}}function q(n,s){1&n&&(e.TgZ(0,"nz-space"),e.YNc(1,U,4,4,"ng-container",15),e.YNc(2,Q,1,1,"cvc-status-tag",16),e.qZA())}function Y(n,s){if(1&n&&e._UZ(0,"cvc-molecular-profile-tag",19),2&n){const t=e.oxw().ngIf;e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function J(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){const t=s.ngIf;e.xp6(1),e.hij(" ",t," ")}}function B(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",21),e._UZ(2,"cvc-mp-tag-name",22),e.qZA()()),2&n){const t=e.oxw().ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("nameSegments",t.molecularProfile.parsedName)("enablePopover",!1)}}function F(n,s){if(1&n&&(e.TgZ(0,"nz-tag",42),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function X(n,s){if(1&n&&(e.ynx(0),e.YNc(1,F,2,2,"nz-tag",41),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.acmgCodes)}}function R(n,s){1&n&&e._uU(0," -- ")}function j(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",39),e.YNc(1,X,2,1,"ng-container",9),e.YNc(2,R,1,0,"ng-template",null,40,e.W1O),e.qZA()),2&n){const t=e.MAs(3),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngIf",a.acmgCodes.length>0)("ngIfElse",t)}}function W(n,s){if(1&n&&(e.TgZ(0,"nz-tag",42),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function G(n,s){if(1&n&&(e.ynx(0),e.YNc(1,W,2,2,"nz-tag",41),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.clingenCodes)}}function K(n,s){1&n&&e._uU(0," -- ")}function V(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",43),e.YNc(1,G,2,1,"ng-container",9),e.YNc(2,K,1,0,"ng-template",null,44,e.W1O),e.qZA()),2&n){const t=e.MAs(3),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngIf",a.clingenCodes.length>0)("ngIfElse",t)}}function H(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",45),e._uU(1),e.ALo(2,"ifEmpty"),e.ALo(3,"formatAmp"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" ",e.xi3(2,1,e.xi3(3,4,t.ampLevel,"compact"),"--")," ")}}function b(n,s){1&n&&e._UZ(0,"i",46)}function k(n,s){1&n&&e._UZ(0,"i",47)}function ee(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function ne(n,s){1&n&&e._UZ(0,"i",46)}function te(n,s){1&n&&e._UZ(0,"i",47)}function oe(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function ie(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-disease-tag",48),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("disease",t.disease)("truncateLongName",!0)}}function se(n,s){1&n&&e._uU(0," N/A ")}function re(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-therapy-tag",51),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("enablePopover",!1)("therapy",t)("truncateLongName",!0)}}function ae(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"titlecase"),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.therapyInteractionType)," ")}}function ce(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",49),e.YNc(1,re,2,3,"span",50),e.YNc(2,ae,3,3,"ng-container",1),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngForOf",t.therapies),e.xp6(1),e.Q6J("ngIf",t.therapies.length>1)}}function pe(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-phenotype-tag",53),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("enablePopover",!1)("phenotype",t)}}function le(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",52),e.YNc(1,pe,2,2,"span",50),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngForOf",t.phenotypes)}}function de(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",23),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",24),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",25),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.YNc(10,j,4,2,"nz-descriptions-item",26),e.YNc(11,V,4,2,"nz-descriptions-item",27),e.YNc(12,H,4,7,"nz-descriptions-item",28),e.TgZ(13,"nz-descriptions-item",29),e.YNc(14,b,1,0,"i",30),e.YNc(15,k,1,0,"i",31),e.YNc(16,ee,3,3,"ng-container",1),e.qZA(),e.TgZ(17,"nz-descriptions-item",32),e.YNc(18,ne,1,0,"i",30),e.YNc(19,te,1,0,"i",31),e.YNc(20,oe,3,3,"ng-container",1),e.qZA(),e.TgZ(21,"nz-descriptions-item",33),e._uU(22),e.ALo(23,"ifEmpty"),e.qZA(),e.TgZ(24,"nz-descriptions-item",25),e._uU(25),e.ALo(26,"evidenceEnumDisplay"),e.qZA(),e.TgZ(27,"nz-descriptions-item",34),e._uU(28),e.ALo(29,"evidenceEnumDisplay"),e.qZA(),e.TgZ(30,"nz-descriptions-item",35),e.YNc(31,ie,2,3,"ng-container",9),e.YNc(32,se,1,0,"ng-template",null,36,e.W1O),e.qZA(),e.YNc(34,ce,3,2,"nz-descriptions-item",37),e.YNc(35,le,2,1,"nz-descriptions-item",38),e.qZA()),2&n){const t=e.MAs(33),a=e.oxw().ngIf,x=e.oxw();e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,20,a.assertionType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,22,a.assertionDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,24,a.variantOrigin)," "),e.xp6(2),e.Q6J("ngIf",x.assertionRules.requiresAcmgCodes(a.assertionType)),e.xp6(1),e.Q6J("ngIf",x.assertionRules.requiresClingenCodes(a.assertionType)),e.xp6(1),e.Q6J("ngIf",x.assertionRules.requiresAmpLevel(a.assertionType)),e.xp6(2),e.Q6J("ngIf",a.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",!a.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",a.regulatoryApprovalLastUpdated),e.xp6(2),e.Q6J("ngIf",a.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",!a.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",a.fdaCompanionTestLastUpdated),e.xp6(2),e.hij(" ",e.xi3(23,26,null==a.nccnGuideline?null:a.nccnGuideline.name,"--")," "),e.xp6(3),e.hij(" ",e.lcZ(26,29,a.variantOrigin)," "),e.xp6(3),e.hij(" ",e.lcZ(29,31,a.significance)," "),e.xp6(3),e.Q6J("ngIf",a.disease)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",a.therapies.length>0),e.xp6(1),e.Q6J("ngIf",a.phenotypes.length>0)}}function ge(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",55),e._UZ(2,"i",56),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/flags"),e.xp6(3),e.hij(" Flags (",t.flags.totalCount,") ")}}function _e(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",57),e._UZ(2,"i",58),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/revisions"),e.xp6(3),e.hij(" Revisions (",t.revisions.totalCount,") ")}}function me(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",59),e._UZ(2,"i",60),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/comments"),e.xp6(3),e.hij(" Comments (",t.comments.totalCount,") ")}}function ue(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-card",3),e.YNc(2,q,3,0,"ng-template",null,4,e.W1O),e.YNc(4,Y,1,3,"ng-template",null,5,e.W1O),e.TgZ(6,"nz-row")(7,"nz-col",6)(8,"div",7)(9,"p",8),e.YNc(10,J,2,1,"ng-container",9),e.qZA()()()(),e.TgZ(11,"nz-space",10),e.YNc(12,B,3,3,"nz-descriptions",11),e.YNc(13,de,36,33,"nz-descriptions",11),e.qZA(),e.TgZ(14,"nz-row",12)(15,"nz-col",6)(16,"nz-space",13),e.YNc(17,ge,4,2,"a",14),e.YNc(18,_e,4,2,"a",14),e.YNc(19,me,4,2,"a",14),e.qZA()()()(),e.BQk()),2&n){const t=s.ngIf,a=e.MAs(3),x=e.MAs(5);e.oxw();const Ee=e.MAs(4);e.xp6(1),e.Q6J("nzTitle",a)("nzExtra",x),e.xp6(9),e.Q6J("ngIf",t.summary)("ngIfElse",Ee)}}function fe(n,s){1&n&&e._uU(0," No Summary exists for this Assertion. ")}let ve=(()=>{class n{constructor(t){this.gql=t,this.assertionRules=new p._}ngOnInit(){if(null==this.assertionId)throw new Error("cvc-assertion-popover requires valid assertionId input.");this.assertion$=this.gql.watch({assertionId:this.assertionId}).valueChanges.pipe((0,d.U)(t=>t.data),(0,g.h)(c.ep),(0,d.U)(({assertion:t})=>t))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.Gbq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertion-popover"]],inputs:{assertionId:"assertionId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noSummary",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["molecularProfile",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Variant Origin"],["nzTitle","ACMG Codes","nzSpan","2",4,"ngIf"],["nzTitle","ClinGen/CGC/VICC Codes","nzSpan","2",4,"ngIf"],["nzTitle","AMP/ASCO/CAP Category",4,"ngIf"],["nzTitle","Regulatory Approval"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a",4,"ngIf"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026",4,"ngIf"],["nzTitle","FDA Companion Test"],["nzTitle","NCCN Guideline"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Disease","nzSpan","2"],["noDisease",""],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["nzTitle","ACMG Codes","nzSpan","2"],["noAcmg",""],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","ClinGen/CGC/VICC Codes","nzSpan","2"],["noClingen",""],["nzTitle","AMP/ASCO/CAP Category"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ue,20,4,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,fe,1,0,"ng-template",null,2,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,a.assertion$)))},dependencies:[i.sg,i.O5,_.rH,S.bd,T.R7,T.uj,A.Ls,z.t3,z.SK,O.NU,O.$1,l.j,f.SY,C.n,y.C,E.p,P.i,u.T,D.h,i.rS,Z.fM,M.t,w.Do,L.D,N.a,$.x],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}"]}),n})();var Ce=o(3103);function he(n,s){}function Te(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"a",4),e.YNc(2,he,0,0,"ng-template",5),e.qZA(),e.BQk()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(1),e.Q6J("routerLink",t.assertion.link),e.xp6(1),e.Q6J("ngTemplateOutlet",a)}}function ze(n,s){}function Ae(n,s){if(1&n&&e._UZ(0,"cvc-assertion-popover",8),2&n){const t=e.oxw(2);e.Q6J("assertionId",t.assertion.id)}}const ye=function(n,s,t){return{rejected:n,submitted:s,accepted:t}};function xe(n,s){if(1&n&&(e.TgZ(0,"nz-tag",6),e.YNc(1,ze,0,0,"ng-template",5),e.qZA(),e.YNc(2,Ae,1,1,"ng-template",null,7,e.W1O)),2&n){const t=e.MAs(3),a=e.oxw(),x=e.MAs(6);e.Q6J("ngClass",e.kEZ(5,ye,"REJECTED"===a.assertion.status,"SUBMITTED"===a.assertion.status,"ACCEPTED"===a.assertion.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzPopoverTrigger",a.enablePopover?"hover":null),e.xp6(1),e.Q6J("ngTemplateOutlet",x)}}function Pe(n,s){}function Ie(n,s){if(1&n&&e.YNc(0,Pe,0,0,"ng-template",5),2&n){e.oxw();const t=e.MAs(2);e.Q6J("ngTemplateOutlet",t)}}function Oe(n,s){if(1&n&&(e.TgZ(0,"cvc-icon-badges",9),e._UZ(1,"i",10),e.ALo(2,"entityColor"),e.ALo(3,"entityColor"),e.qZA(),e._uU(4)),2&n){const t=e.oxw();e.Q6J("flagged",t.assertion.flagged)("entityColor",t.iconColor),e.xp6(1),e.Q6J("nzTwotoneColor","REJECTED"===t.assertion.status?e.lcZ(2,4,"Rejected"):e.lcZ(3,6,"Assertion")),e.xp6(3),e.hij(" ",t.assertion.name,"\n")}}let Se=(()=>{class n{set assertion(t){if(!t)throw new Error("cvc-assertion-tag assertion input requires LinkableAssertion.");this._assertion=t}get assertion(){return this._assertion}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,r.f)("Assertion")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertion-tag"]],inputs:{assertion:"assertion",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["assertionPopover",""],[3,"assertionId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-assertion","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(t,a){if(1&t&&(e.YNc(0,Te,3,2,"ng-container",0),e.YNc(1,xe,4,9,"ng-template",null,1,e.W1O),e.YNc(3,Ie,1,1,"ng-template",null,2,e.W1O),e.YNc(5,Oe,5,8,"ng-template",null,3,e.W1O)),2&t){const x=e.MAs(4);e.Q6J("ngIf",a.linked)("ngIfElse",x)}},dependencies:[i.mk,i.O5,i.tP,_.rH,l.j,h.lU,A.Ls,ve,Ce.b,N.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),n})()},6165:(I,v,o)=>{o.d(v,{W:()=>P});var r=o(6814),e=o(4190),i=o(5695),_=o(7417),l=o(551),h=o(2962),A=o(8125),d=o(3043),g=o(2524),c=o(95),p=o(2574),m=o(3396),S=o(2655),T=o(6109),z=o(9858),O=o(8527),f=o(6061),C=o(5879);let y=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=C.oAB({type:u}),u.\u0275inj=C.cJS({imports:[r.ez,e.Bz,h.vh,A.q6,l.PV,c.Jb,p.zf,i.X,T.cg,m.Q,z.r,O.u,d.y,f.N,g.s,S.x]}),u})();var E=o(3146);let P=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=C.oAB({type:u}),u.\u0275inj=C.cJS({imports:[r.ez,e.Bz,i.X,_.$6,l.PV,y,g.s,E.C]}),u})()},406:(I,v,o)=>{o.d(v,{D:()=>e});var r=o(5879);let e=(()=>{class i{transform(l,h){return null==l||""===l?h:l}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275pipe=r.Yjl({name:"ifEmpty",type:i,pure:!0}),i})()},5573:(I,v,o)=>{o.d(v,{x:()=>p});var r=o(5879);const i=3600,_=24*i,h=365*_,d=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),c=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let p=(()=>{class m{transform(T){let z;z="number"==typeof T?T:Date.parse(T);const O=Date.now(),f=Math.round(Math.abs(O-z)/1e3);if(f>=2592e3&&f=h){let P=new Date(z);return c.format(P)}let C,y;return f<60?(C=Math.round(f),y="second"):f1?"s":""} ago`}}return m.\u0275fac=function(T){return new(T||m)},m.\u0275pipe=r.Yjl({name:"timeAgo",type:m,pure:!0}),m})()},5884:(I,v,o)=>{o.d(v,{J:()=>e,i:()=>r});const r={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},e={clientMutationId:void 0,fields:r,comment:void 0,organizationId:void 0}},5710:(I,v,o)=>{o.d(v,{_:()=>h});var r=o(313),e=o(1791),i=o(5619),_=o(5884),l=o(8475);class h extends l.lG{constructor(){super(l.yQ.ASSERTION);const d=_.i;this.fields={molecularProfileId$:new i.X(d.molecularProfileId),variantMolecularProfile$:new i.X(void 0),geneId$:new i.X(void 0),variantId$:new i.X(void 0),variantOrigin$:new i.X(d.variantOrigin),assertionType$:new i.X(d.assertionType),assertionDirection$:new i.X(d.assertionDirection),evidenceItemIds$:new i.X(d.evidenceItemIds),significance$:new i.X(d.significance),diseaseId$:new i.X(d.diseaseId),therapyIds$:new i.X(d.therapyIds),therapyInteractionType$:new i.X(d.therapyInteractionType),phenotypeIds$:new i.X(d.phenotypeIds),nccnGuidelineId$:new i.X(d.nccnGuidelineId),fdaRegulatoryApproval$:new i.X(d.fdaRegulatoryApproval),fdaCompanionTest$:new i.X(d.fdaCompanionTest),ampLevel$:new i.X(d.ampLevel),acmgCodeIds$:new i.X(d.acmgCodeIds),clingenCodeIds$:new i.X(d.clingenCodeIds),nccnGuidelineVersion$:new i.X(d.nccnGuidelineVersion)},this.enums={entityType$:new i.X(this.getTypeOptions()),significance$:new i.X([]),direction$:new i.X([]),interaction$:new i.X(this.getInteractionOptions())},this.options={assertionTypeOption$:new i.X(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new i.X(void 0),significanceOption$:new i.X(void 0)},this.requires={requiresDisease$:new i.X(!1),requiresTherapy$:new i.X(!1),requiresTherapyInteractionType$:new i.X(!1),requiresClingenCodes$:new i.X(!1),requiresAcmgCodes$:new i.X(!1),requiresAmpLevel$:new i.X(!1),allowsFdaApproval$:new i.X(!1)},this.fields.assertionType$.pipe((0,e.t)(this,"onDestroy")).subscribe(g=>{if(!g)return Object.entries(this.requires).forEach(([c,p])=>{p.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(g)),this.enums.direction$.next(this.getDirectionOptions(g)),this.requires.requiresDisease$.next(this.requiresDisease(g)),this.requires.requiresTherapy$.next(this.requiresTherapy(g)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(g)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(g)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(g)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(g))}),this.fields.therapyIds$.pipe((0,e.t)(this,"onDestroy")).subscribe(g=>{this.requires.requiresTherapyInteractionType$.next(null!=g&&g.length>1)}),this.validStates.set(r.uBv.Predictive,{entityType:r.uBv.Predictive,significance:[r._3P.Sensitivityresponse,r._3P.Resistance,r._3P.AdverseResponse,r._3P.ReducedSensitivity,r._3P.Na],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(r.uBv.Diagnostic,{entityType:r.uBv.Diagnostic,significance:[r._3P.Positive,r._3P.Negative],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Prognostic,{entityType:r.uBv.Prognostic,significance:[r._3P.BetterOutcome,r._3P.PoorOutcome,r._3P.Na],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Predisposing,{entityType:r.uBv.Predisposing,significance:[r._3P.Pathogenic,r._3P.LikelyPathogenic,r._3P.Benign,r._3P.LikelyBenign,r._3P.UncertainSignificance],entityDirection:[r.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Oncogenic,{entityType:r.uBv.Oncogenic,significance:[r._3P.Oncogenic,r._3P.LikelyOncogenic,r._3P.Benign,r._3P.LikelyBenign,r._3P.UncertainSignificance],entityDirection:[r.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},8475:(I,v,o)=>{o.d(v,{lG:()=>A,yQ:()=>l});var r=o(2),e=o(313),i=o(8645),_=o(3742),l=(()=>((l=l||{}).EVIDENCE="Evidence",l.ASSERTION="Assertion",l))();class A{constructor(g){this.formReady$=new i.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new i.x,this.requiresTherapy$=new i.x,this.requiresDisease$=new i.x,this.requiresAcmgCode$=new i.x,this.requiresAmpLevel$=new i.x,this.requiresClingenCode$=new i.x,this.allowsFdaApproval$=new i.x,this.getTypeOptions=()=>this.entityName==l.ASSERTION?(0,_.o6)(e.uBv).map(c=>c):(0,_.o6)(e.kqt).map(c=>c),this.getSignificanceOptions=c=>this.validStates.get(c)?.significance||[],this.getInteractionOptions=()=>(0,_.o6)(e.wkr).map(c=>c),this.isValidSignificanceOption=(c,p)=>{const m=this.validStates.get(c);return!m||m.significance.includes(p)},this.getDirectionOptions=c=>this.validStates.get(c)?.entityDirection||[],this.isValidDirectionOption=(c,p)=>{const m=this.validStates.get(c);return!m||m.entityDirection.includes(p)},this.requiresTherapy=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresTherapy},this.requiresDisease=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresDisease},this.requiresAcmgCodes=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresAcmgCodes},this.requiresAmpLevel=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresAmpLevel},this.requiresClingenCodes=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresClingenCodes},this.allowsFdaApproval=c=>{const p=this.validStates.get(c);return void 0===p||p.allowsFdaApproval},this.getOptionsFromEnums=c=>0===c.length?[]:c.map(p=>({value:p,label:(0,r.E)(p)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=g,this.pluralNames=new Map,this.pluralNames.set(l.ASSERTION,"Assertions"),this.pluralNames.set(l.EVIDENCE,"Evidence")}onDestroy(){}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4872],{270:(z,u,i)=>{i.d(u,{w:()=>Ze});var r=i(2023),e=i(5879),o=i(6814),m=i(4190),l=i(5695),C=i(7417),T=i(551),d=i(7398),g=i(2181),c=i(5676),p=i(9182),f=i(313),O=i(2962),x=i(8125),P=i(95),I=i(2574),Z=i(6109),h=i(9775),E=i(5095),S=i(2606),D=i(3897),_=i(4770),A=i(2384),y=i(8091),M=i(3702),w=i(6967),L=i(406),N=i(2616),$=i(5573);function U(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"i",17),e.ALo(2,"entityColor"),e._uU(3),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(2,2,"Assertion")),e.xp6(2),e.hij(" ",t.name," ")}}function q(n,s){if(1&n&&e._UZ(0,"cvc-status-tag",18),2&n){const t=e.oxw(2).ngIf;e.Q6J("status",t.status)}}function Q(n,s){1&n&&(e.TgZ(0,"nz-space"),e.YNc(1,U,4,4,"ng-container",15),e.YNc(2,q,1,1,"cvc-status-tag",16),e.qZA())}function J(n,s){if(1&n&&e._UZ(0,"cvc-molecular-profile-tag",19),2&n){const t=e.oxw().ngIf;e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function B(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){const t=s.ngIf;e.xp6(1),e.hij(" ",t," ")}}function Y(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",21),e._UZ(2,"cvc-mp-tag-name",22),e.qZA()()),2&n){const t=e.oxw().ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("nameSegments",t.molecularProfile.parsedName)("enablePopover",!1)}}function X(n,s){if(1&n&&(e.TgZ(0,"nz-tag",42),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function R(n,s){if(1&n&&(e.ynx(0),e.YNc(1,X,2,2,"nz-tag",41),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.acmgCodes)}}function F(n,s){1&n&&e._uU(0," -- ")}function j(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",39),e.YNc(1,R,2,1,"ng-container",9),e.YNc(2,F,1,0,"ng-template",null,40,e.W1O),e.qZA()),2&n){const t=e.MAs(3),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngIf",a.acmgCodes.length>0)("ngIfElse",t)}}function G(n,s){if(1&n&&(e.TgZ(0,"nz-tag",42),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("nzTooltipTitle",t.description),e.xp6(1),e.Oqu(t.code)}}function W(n,s){if(1&n&&(e.ynx(0),e.YNc(1,G,2,2,"nz-tag",41),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.clingenCodes)}}function V(n,s){1&n&&e._uU(0," -- ")}function K(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",43),e.YNc(1,W,2,1,"ng-container",9),e.YNc(2,V,1,0,"ng-template",null,44,e.W1O),e.qZA()),2&n){const t=e.MAs(3),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngIf",a.clingenCodes.length>0)("ngIfElse",t)}}function H(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",45),e._uU(1),e.ALo(2,"ifEmpty"),e.ALo(3,"formatAmp"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" ",e.xi3(2,1,e.xi3(3,4,t.ampLevel,"compact"),"--")," ")}}function b(n,s){1&n&&e._UZ(0,"i",46)}function k(n,s){1&n&&e._UZ(0,"i",47)}function ee(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function ne(n,s){1&n&&e._UZ(0,"i",46)}function te(n,s){1&n&&e._UZ(0,"i",47)}function ie(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.hij(" (last updated ",e.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function oe(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-disease-tag",48),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("disease",t.disease)("truncateLongName",!0)}}function se(n,s){1&n&&e._uU(0," N/A ")}function re(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-therapy-tag",51),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("enablePopover",!1)("therapy",t)("truncateLongName",!0)}}function ae(n,s){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"titlecase"),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.therapyInteractionType)," ")}}function ce(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",49),e.YNc(1,re,2,3,"span",50),e.YNc(2,ae,3,3,"ng-container",1),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngForOf",t.therapies),e.xp6(1),e.Q6J("ngIf",t.therapies.length>1)}}function pe(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-phenotype-tag",53),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("enablePopover",!1)("phenotype",t)}}function le(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions-item",52),e.YNc(1,pe,2,2,"span",50),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("ngForOf",t.phenotypes)}}function de(n,s){if(1&n&&(e.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",23),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",24),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",25),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.YNc(10,j,4,2,"nz-descriptions-item",26),e.YNc(11,K,4,2,"nz-descriptions-item",27),e.YNc(12,H,4,7,"nz-descriptions-item",28),e.TgZ(13,"nz-descriptions-item",29),e.YNc(14,b,1,0,"i",30),e.YNc(15,k,1,0,"i",31),e.YNc(16,ee,3,3,"ng-container",1),e.qZA(),e.TgZ(17,"nz-descriptions-item",32),e.YNc(18,ne,1,0,"i",30),e.YNc(19,te,1,0,"i",31),e.YNc(20,ie,3,3,"ng-container",1),e.qZA(),e.TgZ(21,"nz-descriptions-item",33),e._uU(22),e.ALo(23,"ifEmpty"),e.qZA(),e.TgZ(24,"nz-descriptions-item",25),e._uU(25),e.ALo(26,"evidenceEnumDisplay"),e.qZA(),e.TgZ(27,"nz-descriptions-item",34),e._uU(28),e.ALo(29,"evidenceEnumDisplay"),e.qZA(),e.TgZ(30,"nz-descriptions-item",35),e.YNc(31,oe,2,3,"ng-container",9),e.YNc(32,se,1,0,"ng-template",null,36,e.W1O),e.qZA(),e.YNc(34,ce,3,2,"nz-descriptions-item",37),e.YNc(35,le,2,1,"nz-descriptions-item",38),e.qZA()),2&n){const t=e.MAs(33),a=e.oxw().ngIf,v=e.oxw();e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,20,a.assertionType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,22,a.assertionDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,24,a.variantOrigin)," "),e.xp6(2),e.Q6J("ngIf",v.assertionRules.requiresAcmgCodes(a.assertionType)),e.xp6(1),e.Q6J("ngIf",v.assertionRules.requiresClingenCodes(a.assertionType)),e.xp6(1),e.Q6J("ngIf",v.assertionRules.requiresAmpLevel(a.assertionType)),e.xp6(2),e.Q6J("ngIf",a.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",!a.regulatoryApproval),e.xp6(1),e.Q6J("ngIf",a.regulatoryApprovalLastUpdated),e.xp6(2),e.Q6J("ngIf",a.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",!a.fdaCompanionTest),e.xp6(1),e.Q6J("ngIf",a.fdaCompanionTestLastUpdated),e.xp6(2),e.hij(" ",e.xi3(23,26,null==a.nccnGuideline?null:a.nccnGuideline.name,"--")," "),e.xp6(3),e.hij(" ",e.lcZ(26,29,a.variantOrigin)," "),e.xp6(3),e.hij(" ",e.lcZ(29,31,a.significance)," "),e.xp6(3),e.Q6J("ngIf",a.disease)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",a.therapies.length>0),e.xp6(1),e.Q6J("ngIf",a.phenotypes.length>0)}}function ge(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",55),e._UZ(2,"i",56),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/flags"),e.xp6(3),e.hij(" Flags (",t.flags.totalCount,") ")}}function _e(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",57),e._UZ(2,"i",58),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/revisions"),e.xp6(3),e.hij(" Revisions (",t.revisions.totalCount,") ")}}function me(n,s){if(1&n&&(e.TgZ(0,"a",54)(1,"nz-tag",59),e._UZ(2,"i",60),e._uU(3),e.qZA()()),2&n){const t=e.oxw().ngIf;e.MGl("routerLink","/assertions/",t.id,"/comments"),e.xp6(3),e.hij(" Comments (",t.comments.totalCount,") ")}}function ue(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-card",3),e.YNc(2,Q,3,0,"ng-template",null,4,e.W1O),e.YNc(4,J,1,3,"ng-template",null,5,e.W1O),e.TgZ(6,"nz-row")(7,"nz-col",6)(8,"div",7)(9,"p",8),e.YNc(10,B,2,1,"ng-container",9),e.qZA()()()(),e.TgZ(11,"nz-space",10),e.YNc(12,Y,3,3,"nz-descriptions",11),e.YNc(13,de,36,33,"nz-descriptions",11),e.qZA(),e.TgZ(14,"nz-row",12)(15,"nz-col",6)(16,"nz-space",13),e.YNc(17,ge,4,2,"a",14),e.YNc(18,_e,4,2,"a",14),e.YNc(19,me,4,2,"a",14),e.qZA()()()(),e.BQk()),2&n){const t=s.ngIf,a=e.MAs(3),v=e.MAs(5);e.oxw();const Ee=e.MAs(4);e.xp6(1),e.Q6J("nzTitle",a)("nzExtra",v),e.xp6(9),e.Q6J("ngIf",t.summary)("ngIfElse",Ee)}}function fe(n,s){1&n&&e._uU(0," No Summary exists for this Assertion. ")}let ve=(()=>{class n{constructor(t){this.gql=t,this.assertionRules=new p._}ngOnInit(){if(null==this.assertionId)throw new Error("cvc-assertion-popover requires valid assertionId input.");this.assertion$=this.gql.watch({assertionId:this.assertionId}).valueChanges.pipe((0,d.U)(t=>t.data),(0,g.h)(c.ep),(0,d.U)(({assertion:t})=>t))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(f.Gbq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertion-popover"]],inputs:{assertionId:"assertionId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noSummary",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["molecularProfile",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Variant Origin"],["nzTitle","ACMG Codes","nzSpan","2",4,"ngIf"],["nzTitle","ClinGen/CGC/VICC Codes","nzSpan","2",4,"ngIf"],["nzTitle","AMP/ASCO/CAP Category",4,"ngIf"],["nzTitle","Regulatory Approval"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a",4,"ngIf"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026",4,"ngIf"],["nzTitle","FDA Companion Test"],["nzTitle","NCCN Guideline"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Disease","nzSpan","2"],["noDisease",""],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["nzTitle","ACMG Codes","nzSpan","2"],["noAcmg",""],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","ClinGen/CGC/VICC Codes","nzSpan","2"],["noClingen",""],["nzTitle","AMP/ASCO/CAP Category"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ue,20,4,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,fe,1,0,"ng-template",null,2,e.W1O)),2&t&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,a.assertion$)))},dependencies:[o.sg,o.O5,m.rH,O.bd,x.R7,x.uj,T.Ls,P.t3,P.SK,I.NU,I.$1,l.j,Z.SY,h.n,E.C,S.p,D.i,_.T,A.h,o.rS,y.fM,M.t,w.Do,L.D,N.a,$.x],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}"]}),n})();var Ce=i(3103);function Te(n,s){}function he(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"a",4),e.YNc(2,Te,0,0,"ng-template",5),e.qZA(),e.BQk()),2&n){const t=e.oxw(),a=e.MAs(2);e.xp6(1),e.Q6J("routerLink",t.assertion.link),e.xp6(1),e.Q6J("ngTemplateOutlet",a)}}function ze(n,s){}function Ae(n,s){if(1&n&&e._UZ(0,"cvc-assertion-popover",8),2&n){const t=e.oxw(2);e.Q6J("assertionId",t.assertion.id)}}const ye=function(n,s,t){return{rejected:n,submitted:s,accepted:t}};function xe(n,s){if(1&n&&(e.TgZ(0,"nz-tag",6),e.YNc(1,ze,0,0,"ng-template",5),e.qZA(),e.YNc(2,Ae,1,1,"ng-template",null,7,e.W1O)),2&n){const t=e.MAs(3),a=e.oxw(),v=e.MAs(6);e.Q6J("ngClass",e.kEZ(5,ye,"REJECTED"===a.assertion.status,"SUBMITTED"===a.assertion.status,"ACCEPTED"===a.assertion.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzPopoverTrigger",a.enablePopover?"hover":null),e.xp6(1),e.Q6J("ngTemplateOutlet",v)}}function Pe(n,s){}function Ie(n,s){if(1&n&&e.YNc(0,Pe,0,0,"ng-template",5),2&n){e.oxw();const t=e.MAs(2);e.Q6J("ngTemplateOutlet",t)}}function Oe(n,s){if(1&n&&(e.TgZ(0,"cvc-icon-badges",9),e._UZ(1,"i",10),e.ALo(2,"entityColor"),e.ALo(3,"entityColor"),e.qZA(),e._uU(4)),2&n){const t=e.oxw();e.Q6J("flagged",t.assertion.flagged)("entityColor",t.iconColor),e.xp6(1),e.Q6J("nzTwotoneColor","REJECTED"===t.assertion.status?e.lcZ(2,4,"Rejected"):e.lcZ(3,6,"Assertion")),e.xp6(3),e.hij(" ",t.assertion.name,"\n")}}let Ze=(()=>{class n{set assertion(t){if(!t)throw new Error("cvc-assertion-tag assertion input requires LinkableAssertion.");this._assertion=t}get assertion(){return this._assertion}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,r.f)("Assertion")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-assertion-tag"]],inputs:{assertion:"assertion",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["assertionPopover",""],[3,"assertionId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-assertion","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(t,a){if(1&t&&(e.YNc(0,he,3,2,"ng-container",0),e.YNc(1,xe,4,9,"ng-template",null,1,e.W1O),e.YNc(3,Ie,1,1,"ng-template",null,2,e.W1O),e.YNc(5,Oe,5,8,"ng-template",null,3,e.W1O)),2&t){const v=e.MAs(4);e.Q6J("ngIf",a.linked)("ngIfElse",v)}},dependencies:[o.mk,o.O5,o.tP,m.rH,l.j,C.lU,T.Ls,ve,Ce.b,N.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),n})()},6165:(z,u,i)=>{i.d(u,{W:()=>D});var r=i(6814),e=i(4190),o=i(5695),m=i(7417),l=i(551),C=i(2962),T=i(8125),d=i(3043),g=i(2524),c=i(95),p=i(2574),f=i(3396),O=i(2655),x=i(6109),P=i(9858),I=i(8527),Z=i(6061),h=i(5879);let E=(()=>{class _{}return _.\u0275fac=function(y){return new(y||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[r.ez,e.Bz,C.vh,T.q6,l.PV,c.Jb,p.zf,o.X,x.cg,f.Q,P.r,I.u,d.y,Z.N,g.s,O.x]}),_})();var S=i(3146);let D=(()=>{class _{}return _.\u0275fac=function(y){return new(y||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[r.ez,e.Bz,o.X,m.$6,l.PV,E,g.s,S.C]}),_})()},406:(z,u,i)=>{i.d(u,{D:()=>e});var r=i(5879);let e=(()=>{class o{transform(l,C){return null==l||""===l?C:l}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=r.Yjl({name:"ifEmpty",type:o,pure:!0}),o})()},9348:(z,u,i)=>{i.d(u,{J:()=>e,i:()=>r});const r={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},e={clientMutationId:void 0,fields:r,comment:void 0,organizationId:void 0}},9182:(z,u,i)=>{i.d(u,{_:()=>C});var r=i(313),e=i(1791),o=i(5619),m=i(9348),l=i(4607);class C extends l.lG{constructor(){super(l.yQ.ASSERTION);const d=m.i;this.fields={molecularProfileId$:new o.X(d.molecularProfileId),variantMolecularProfile$:new o.X(void 0),geneId$:new o.X(void 0),variantId$:new o.X(void 0),variantOrigin$:new o.X(d.variantOrigin),assertionType$:new o.X(d.assertionType),assertionDirection$:new o.X(d.assertionDirection),evidenceItemIds$:new o.X(d.evidenceItemIds),significance$:new o.X(d.significance),diseaseId$:new o.X(d.diseaseId),therapyIds$:new o.X(d.therapyIds),therapyInteractionType$:new o.X(d.therapyInteractionType),phenotypeIds$:new o.X(d.phenotypeIds),nccnGuidelineId$:new o.X(d.nccnGuidelineId),fdaRegulatoryApproval$:new o.X(d.fdaRegulatoryApproval),fdaCompanionTest$:new o.X(d.fdaCompanionTest),ampLevel$:new o.X(d.ampLevel),acmgCodeIds$:new o.X(d.acmgCodeIds),clingenCodeIds$:new o.X(d.clingenCodeIds),nccnGuidelineVersion$:new o.X(d.nccnGuidelineVersion)},this.enums={entityType$:new o.X(this.getTypeOptions()),significance$:new o.X([]),direction$:new o.X([]),interaction$:new o.X(this.getInteractionOptions())},this.options={assertionTypeOption$:new o.X(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new o.X(void 0),significanceOption$:new o.X(void 0)},this.requires={requiresDisease$:new o.X(!1),requiresTherapy$:new o.X(!1),requiresTherapyInteractionType$:new o.X(!1),requiresClingenCodes$:new o.X(!1),requiresAcmgCodes$:new o.X(!1),requiresAmpLevel$:new o.X(!1),allowsFdaApproval$:new o.X(!1)},this.fields.assertionType$.pipe((0,e.t)(this,"onDestroy")).subscribe(g=>{if(!g)return Object.entries(this.requires).forEach(([c,p])=>{p.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(g)),this.enums.direction$.next(this.getDirectionOptions(g)),this.requires.requiresDisease$.next(this.requiresDisease(g)),this.requires.requiresTherapy$.next(this.requiresTherapy(g)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(g)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(g)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(g)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(g))}),this.fields.therapyIds$.pipe((0,e.t)(this,"onDestroy")).subscribe(g=>{this.requires.requiresTherapyInteractionType$.next(null!=g&&g.length>1)}),this.validStates.set(r.uBv.Predictive,{entityType:r.uBv.Predictive,significance:[r._3P.Sensitivityresponse,r._3P.Resistance,r._3P.AdverseResponse,r._3P.ReducedSensitivity,r._3P.Na],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(r.uBv.Diagnostic,{entityType:r.uBv.Diagnostic,significance:[r._3P.Positive,r._3P.Negative],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Prognostic,{entityType:r.uBv.Prognostic,significance:[r._3P.BetterOutcome,r._3P.PoorOutcome,r._3P.Na],entityDirection:[r.mdl.Supports,r.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Predisposing,{entityType:r.uBv.Predisposing,significance:[r._3P.Pathogenic,r._3P.LikelyPathogenic,r._3P.Benign,r._3P.LikelyBenign,r._3P.UncertainSignificance],entityDirection:[r.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(r.uBv.Oncogenic,{entityType:r.uBv.Oncogenic,significance:[r._3P.Oncogenic,r._3P.LikelyOncogenic,r._3P.Benign,r._3P.LikelyBenign,r._3P.UncertainSignificance],entityDirection:[r.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},4607:(z,u,i)=>{i.d(u,{lG:()=>T,yQ:()=>l});var r=i(2),e=i(313),o=i(8645),m=i(3742),l=(()=>((l=l||{}).EVIDENCE="Evidence",l.ASSERTION="Assertion",l))();class T{constructor(g){this.formReady$=new o.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new o.x,this.requiresTherapy$=new o.x,this.requiresDisease$=new o.x,this.requiresAcmgCode$=new o.x,this.requiresAmpLevel$=new o.x,this.requiresClingenCode$=new o.x,this.allowsFdaApproval$=new o.x,this.getTypeOptions=()=>this.entityName==l.ASSERTION?(0,m.o6)(e.uBv).map(c=>c):(0,m.o6)(e.kqt).map(c=>c),this.getSignificanceOptions=c=>this.validStates.get(c)?.significance||[],this.getInteractionOptions=()=>(0,m.o6)(e.wkr).map(c=>c),this.isValidSignificanceOption=(c,p)=>{const f=this.validStates.get(c);return!f||f.significance.includes(p)},this.getDirectionOptions=c=>this.validStates.get(c)?.entityDirection||[],this.isValidDirectionOption=(c,p)=>{const f=this.validStates.get(c);return!f||f.entityDirection.includes(p)},this.requiresTherapy=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresTherapy},this.requiresDisease=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresDisease},this.requiresAcmgCodes=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresAcmgCodes},this.requiresAmpLevel=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresAmpLevel},this.requiresClingenCodes=c=>{const p=this.validStates.get(c);return void 0===p||p.requiresClingenCodes},this.allowsFdaApproval=c=>{const p=this.validStates.get(c);return void 0===p||p.allowsFdaApproval},this.getOptionsFromEnums=c=>0===c.length?[]:c.map(p=>({value:p,label:(0,r.E)(p)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=g,this.pluralNames=new Map,this.pluralNames.set(l.ASSERTION,"Assertions"),this.pluralNames.set(l.EVIDENCE,"Evidence")}onDestroy(){}}}}]); \ No newline at end of file diff --git a/server/public/5130.98854a4b09762254.js b/server/public/5130.98854a4b09762254.js new file mode 100644 index 000000000..738f91e4e --- /dev/null +++ b/server/public/5130.98854a4b09762254.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5130],{215:(et,w,i)=>{i.d(w,{m:()=>X});var e=i(5879),a=i(6814),t=i(4190),x=i(5695),O=i(551),Z=i(7417),Q=i(5676),y=i(7398),N=i(2181),M=i(313),L=i(2962),U=i(95),J=i(8125),D=i(3317),E=i(7458),k=i(8091);const _=function(l,z){return{displayName:l,profileImagePath:z}};function I(l,z){if(1&l&&(e._UZ(0,"cvc-user-avatar",12),e.TgZ(1,"span",13),e._uU(2),e.qZA()),2&l){const r=e.oxw().ngIf;e.Q6J("user",e.WLB(2,_,r.name,r.profileImagePath)),e.xp6(2),e.Oqu(r.name)}}function f(l,z){if(1&l&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&l){const r=z.ngIf;e.xp6(1),e.Oqu(r)}}function T(l,z){if(1&l&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",14),e._uU(2),e.qZA(),e.BQk()),2&l){const r=e.oxw().ngIf;e.xp6(1),e.Q6J("href",r.url),e.xp6(1),e.hij(" ",r.name," ")}}function P(l,z){if(1&l&&(e.ynx(0),e.TgZ(1,"nz-card",4),e.YNc(2,I,3,5,"ng-template",null,5,e.W1O),e.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.YNc(8,f,2,1,"span",9),e.qZA()()()(),e.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.YNc(11,T,3,2,"ng-container",9),e.qZA()()(),e.BQk()),2&l){const r=z.ngIf,m=e.MAs(3);e.oxw();const p=e.MAs(4),b=e.MAs(6);e.xp6(1),e.Q6J("nzTitle",m),e.xp6(7),e.Q6J("ngIf",r.description)("ngIfElse",p),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",r.url)("ngIfElse",b)}}function u(l,z){1&l&&e._uU(0," Organization has not provided a description.\n")}function v(l,z){1&l&&e._uU(0," -- ")}let d=(()=>{class l{constructor(r){this.gql=r}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,y.U)(({data:r})=>r?.organization),(0,N.h)(Q.ep))}}return l.\u0275fac=function(r){return new(r||l)(e.Y36(M.X5f))},l.\u0275cmp=e.Xpm({type:l,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(r,m){1&r&&(e.TgZ(0,"div",0),e.YNc(1,P,12,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,u,1,0,"ng-template",null,2,e.W1O),e.YNc(5,v,1,0,"ng-template",null,3,e.W1O)),2&r&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,m.org$)))},dependencies:[a.O5,L.bd,U.t3,U.SK,J.R7,J.uj,D.l,E.L,k.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 S(l,z){}function Y(l,z){if(1&l&&(e.ynx(0),e.TgZ(1,"a",4),e.YNc(2,S,0,0,"ng-template",5),e.qZA(),e.BQk()),2&l){const r=e.oxw(),m=e.MAs(2);e.xp6(1),e.MGl("routerLink","/organizations/",r.org.id,""),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function W(l,z){}function $(l,z){if(1&l&&e._UZ(0,"cvc-organization-popover",9),2&l){const r=e.oxw(3);e.Q6J("orgId",r.org.id)}}function H(l,z){if(1&l&&e.YNc(0,$,1,1,"cvc-organization-popover",8),2&l){const r=e.oxw(2);e.Q6J("ngIf",r.enablePopover)}}function R(l,z){if(1&l&&(e.TgZ(0,"nz-tag",6),e.YNc(1,W,0,0,"ng-template",5),e.qZA(),e.YNc(2,H,1,1,"ng-template",null,7,e.W1O)),2&l){const r=e.MAs(3);e.oxw();const m=e.MAs(6);e.Q6J("nzPopoverContent",r),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function F(l,z){}function K(l,z){if(1&l&&e.YNc(0,F,0,0,"ng-template",5),2&l){e.oxw();const r=e.MAs(2);e.Q6J("ngTemplateOutlet",r)}}function G(l,z){if(1&l&&(e._UZ(0,"i",10),e._uU(1)),2&l){const r=e.oxw();e.xp6(1),e.hij(" ",r.org.name,"\n")}}let X=(()=>{class l{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 l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(r,m){if(1&r&&(e.YNc(0,Y,3,2,"ng-container",0),e.YNc(1,R,4,2,"ng-template",null,1,e.W1O),e.YNc(3,K,1,1,"ng-template",null,2,e.W1O),e.YNc(5,G,2,1,"ng-template",null,3,e.W1O)),2&r){const p=e.MAs(4);e.Q6J("ngIf",m.linked)("ngIfElse",p)}},dependencies:[a.O5,a.tP,t.rH,x.j,O.Ls,Z.lU,d],styles:["[_nghost-%COMP%]{display:inline-block}"]}),l})()},3488:(et,w,i)=>{i.d(w,{p:()=>st});var e=i(5879),a=i(6814),t=i(4190),x=i(7398),O=i(2181),Z=i(5676),Q=i(313),y=i(2962),N=i(551),M=i(2574),L=i(8125),U=i(4121),J=i(356),D=i(270),E=i(4786),k=i(9408),_=i(5959),I=i(2384),f=i(8091),T=i(2616),P=i(5573);function u(c,C){if(1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",14),e.ALo(2,"entityColor"),e._uU(3),e.qZA()),2&c){const g=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(2,2,"Revision")),e.xp6(2),e.hij(" RID",g.id," ")}}function v(c,C){if(1&c&&e._UZ(0,"cvc-status-tag",15),2&c){const g=e.oxw(2).ngIf;e.Q6J("status",g.status)}}function d(c,C){1&c&&(e.TgZ(0,"nz-space",11),e.YNc(1,u,4,4,"span",12),e.YNc(2,v,1,1,"cvc-status-tag",13),e.qZA())}function S(c,C){if(1&c&&e._UZ(0,"cvc-gene-tag",23),2&c){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",g.subject)}}function Y(c,C){if(1&c&&e._UZ(0,"cvc-assertion-tag",24),2&c){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",g.subject)}}function W(c,C){if(1&c&&e._UZ(0,"cvc-evidence-tag",25),2&c){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",g.subject)}}function $(c,C){if(1&c&&e._UZ(0,"cvc-variant-tag",26),2&c){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",g.subject)}}function H(c,C){if(1&c&&e._UZ(0,"cvc-variant-group-tag",27),2&c){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variantgroup",g.subject)}}function R(c,C){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const g=e.oxw(2).ngIf;e.xp6(1),e.Oqu(g.subject.name)}}function F(c,C){if(1&c&&(e.ynx(0,16),e.YNc(1,S,1,2,"cvc-gene-tag",17),e.YNc(2,Y,1,2,"cvc-assertion-tag",18),e.YNc(3,W,1,2,"cvc-evidence-tag",19),e.YNc(4,$,1,2,"cvc-variant-tag",20),e.YNc(5,H,1,2,"cvc-variant-group-tag",21),e.YNc(6,R,2,1,"span",22),e.BQk()),2&c){const g=e.oxw().ngIf;e.Q6J("ngSwitch",g.subject.__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","VariantGroup")}}function K(c,C){if(1&c&&e._UZ(0,"cvc-user-tag",28),2&c){const g=e.oxw().ngIf;e.Q6J("enablePopover",!1)("user",g.revisor)}}function G(c,C){if(1&c&&(e.TgZ(0,"nz-descriptions-item",29),e._uU(1),e.qZA()),2&c){const g=e.oxw().ngIf;e.xp6(1),e.hij(" ",g.creationComment.comment," ")}}function X(c,C){if(1&c&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,d,3,0,"ng-template",null,3,e.W1O),e.YNc(4,F,7,6,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.YNc(8,K,1,2,"cvc-user-tag",7),e.qZA(),e.TgZ(9,"nz-descriptions-item",8),e._uU(10),e.qZA(),e.TgZ(11,"nz-descriptions-item",9),e._uU(12),e.ALo(13,"timeAgo"),e.qZA(),e.YNc(14,G,2,1,"nz-descriptions-item",10),e.qZA()(),e.BQk()),2&c){const g=C.ngIf,B=e.MAs(3),q=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",B)("nzExtra",q),e.xp6(5),e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("ngIf",g.revisor),e.xp6(2),e.hij(" ",g.linkoutData.name," "),e.xp6(2),e.hij(" ",e.lcZ(13,7,g.createdAt)," "),e.xp6(2),e.Q6J("ngIf",g.creationComment)}}let l=(()=>{class c{constructor(g){this.gql=g}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,x.U)(({data:g})=>g?.revision),(0,O.h)(Z.ep))}}return c.\u0275fac=function(g){return new(g||c)(e.Y36(Q.otH))},c.\u0275cmp=e.Xpm({type:c,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["subject",""],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user",4,"ngIf"],["nzTitle","Field"],["nzTitle","Revision Date"],["nzTitle","Creation Comment",4,"ngIf"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],[3,"status"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"enablePopover","variantgroup",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"]],template:function(g,B){1&g&&(e.TgZ(0,"div",0),e.YNc(1,X,15,9,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&g&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,B.revision$)))},dependencies:[a.O5,a.RF,a.n9,a.ED,y.bd,N.Ls,M.NU,M.$1,L.R7,L.uj,U.H,J.I,D.w,E.O,k.I,_.u,I.h,f.fM,T.a,P.x],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}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),c})();var z=i(5695),r=i(7417);function m(c,C){}function p(c,C){}function b(c,C){if(1&c&&e._UZ(0,"cvc-revision-popover",6),2&c){const g=e.oxw(2);e.Q6J("revisionId",g.revision.id)}}function V(c,C){if(1&c&&(e.TgZ(0,"nz-tag",4),e.YNc(1,p,0,0,"ng-template",1),e.qZA(),e.YNc(2,b,1,1,"ng-template",null,5,e.W1O)),2&c){const g=e.MAs(3),B=e.oxw(),q=e.MAs(5);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g)("nzPopoverTrigger",B.enablePopover?"hover":null),e.xp6(1),e.Q6J("ngTemplateOutlet",q)}}function it(c,C){if(1&c&&(e._UZ(0,"i",7),e._uU(1)),2&c){const g=e.oxw();e.xp6(1),e.hij(" ",g.revision.name,"\n")}}const at=function(c){return{revisionSetId:c}};let st=(()=>{class c{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["tag",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["revisionPopover",""],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(g,B){if(1&g&&(e.TgZ(0,"a",0),e.YNc(1,m,0,0,"ng-template",1),e.qZA(),e.YNc(2,V,4,4,"ng-template",null,2,e.W1O),e.YNc(4,it,2,1,"ng-template",null,3,e.W1O)),2&g){const q=e.MAs(3);e.Q6J("routerLink",B.revision.link)("queryParams",e.VKq(3,at,B.revision.revisionSetId)),e.xp6(1),e.Q6J("ngTemplateOutlet",q)}},dependencies:[a.tP,t.rH,l,z.j,N.Ls,r.lU],encapsulation:2}),c})()},6794:(et,w,i)=>{i.d(w,{l:()=>k});var e=i(5879),a=i(6814),t=i(2962),x=i(6976),O=i(551),Z=i(2840),Q=i(855),y=i(1958);const N=["itemTemplate"],M=function(_){return{$implicit:_}};function L(_,I){if(1&_){const f=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(f);const P=e.oxw().$implicit,u=e.oxw(2);return e.KtG(u.onParticipantSelected(P))}),e.GkF(1,6),e.qZA()}if(2&_){const f=e.oxw().$implicit,T=e.oxw(2);e.ekj("selected-participant",f.id==(null==T.selectedItem?null:T.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",T.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,M,f))}}function U(_,I){if(1&_&&(e.ynx(0),e.YNc(1,L,2,6,"nz-list-item",4),e.BQk()),2&_){const f=I.index,T=e.oxw(2);e.xp6(1),e.Q6J("ngIf",f+1<=T.defaultListSize)}}function J(_,I){if(1&_){const f=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(f);const P=e.oxw(2);return e.KtG(P.onExpandClicked())}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function D(_,I){if(1&_){const f=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(f);const P=e.oxw(2);return e.KtG(P.onCollapseClicked())}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function E(_,I){if(1&_&&(e.ynx(0),e.TgZ(1,"nz-card",1)(2,"nz-list"),e.YNc(3,U,2,1,"ng-container",2),e.qZA(),e.YNc(4,J,3,0,"button",3),e.YNc(5,D,3,0,"button",3),e.qZA(),e.BQk()),2&_){const f=e.oxw();e.xp6(1),e.Q6J("nzTitle",f.listTitle),e.xp6(2),e.Q6J("ngForOf",f.participantList),e.xp6(1),e.Q6J("ngIf",f.participantList.length>f.defaultListSize),e.xp6(1),e.Q6J("ngIf",f.isExpanded)}}let k=(()=>{class _{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(f){this.selectedItem=f.id==this.selectedItem?.id?void 0:f,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 _.\u0275fac=function(f){return new(f||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["cvc-participant-list"]],contentQueries:function(f,T,P){if(1&f&&e.Suo(P,N,5),2&f){let u;e.iGM(u=e.CRH())&&(T.itemTemplateRef=u.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(f,T){1&f&&e.YNc(0,E,6,4,"ng-container",0),2&f&&e.Q6J("ngIf",T.participantList&&T.participantList.length>0)},dependencies:[a.sg,a.O5,a.tP,t.bd,x.n_,x.AA,O.Ls,Z.ix,Q.w,y.dQ],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}"]}),_})()},1595:(et,w,i)=>{i.d(w,{N:()=>Q});var e=i(6814),a=i(2962),t=i(6976),x=i(551),O=i(2840),Z=i(5879);let Q=(()=>{class y{}return y.\u0275fac=function(M){return new(M||y)},y.\u0275mod=Z.oAB({type:y}),y.\u0275inj=Z.cJS({imports:[e.ez,a.vh,t.Ph,x.PV,O.sL]}),y})()},5959:(et,w,i)=>{i.d(w,{u:()=>z});var e=i(2023),a=i(5879),t=i(6814),x=i(4190),O=i(7417),Z=i(5695),Q=i(551),y=i(5676),N=i(7398),M=i(2181),L=i(313),U=i(2962),J=i(8125),D=i(4138),E=i(9408),k=i(1887),_=i(8091),I=i(2616);function f(r,m){if(1&r&&(a._UZ(0,"i",7),a.ALo(1,"entityColor"),a._uU(2)),2&r){const p=a.oxw().ngIf;a.Q6J("nzTwotoneColor",a.lcZ(1,2,"VariantGroup")),a.xp6(2),a.hij(" ",p.name," ")}}function T(r,m){if(1&r&&a._UZ(0,"cvc-variant-tag",10),2&r){const p=m.$implicit;a.Q6J("enablePopover",!1)("variant",p.node)}}function P(r,m){if(1&r&&(a.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),a.YNc(2,T,1,2,"cvc-variant-tag",9),a.qZA()()),2&r){const p=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",p.variants.edges)}}function u(r,m){if(1&r&&a._UZ(0,"cvc-source-tag",13),2&r){const p=m.$implicit;a.Q6J("enablePopover",!1)("source",p)}}function v(r,m){if(1&r&&(a.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),a.YNc(2,u,1,2,"cvc-source-tag",12),a.qZA()()),2&r){const p=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",p.sources)}}function d(r,m){if(1&r&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,f,3,4,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,P,3,1,"nz-descriptions-item",5),a.YNc(7,v,3,1,"nz-descriptions-item",6),a.qZA()(),a.BQk()),2&r){const p=m.ngIf,b=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",b),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 S=(()=>{class r{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,N.U)(({data:p})=>p?.variantGroup),(0,M.h)(y.ep))}}return r.\u0275fac=function(p){return new(p||r)(a.Y36(L.Zo2))},r.\u0275cmp=a.Xpm({type:r,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(p,b){1&p&&(a.TgZ(0,"div",0),a.YNc(1,d,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,b.variantGroup$)))},dependencies:[t.sg,t.O5,U.bd,J.R7,J.uj,Q.Ls,D.T,E.I,k.$,_.fM,I.a],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}"]}),r})();var Y=i(3103);function W(r,m){}function $(r,m){if(1&r&&(a.ynx(0),a.TgZ(1,"a",4),a.YNc(2,W,0,0,"ng-template",5),a.qZA(),a.BQk()),2&r){const p=a.oxw(),b=a.MAs(2);a.xp6(1),a.Q6J("routerLink",p.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",b)}}function H(r,m){}function R(r,m){if(1&r&&a._UZ(0,"cvc-variant-group-popover",9),2&r){const p=a.oxw(3);a.Q6J("variantGroupId",p.variantgroup.id)}}function F(r,m){if(1&r&&a.YNc(0,R,1,1,"cvc-variant-group-popover",8),2&r){const p=a.oxw(2);a.Q6J("ngIf",p.enablePopover)}}function K(r,m){if(1&r&&(a.TgZ(0,"nz-tag",6),a.YNc(1,H,0,0,"ng-template",5),a.qZA(),a.YNc(2,F,1,1,"ng-template",null,7,a.W1O)),2&r){const p=a.MAs(3),b=a.oxw(),V=a.MAs(6);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",b.enablePopover?"hover":null),a.xp6(1),a.Q6J("ngTemplateOutlet",V)}}function G(r,m){}function X(r,m){if(1&r&&a.YNc(0,G,0,0,"ng-template",5),2&r){a.oxw();const p=a.MAs(2);a.Q6J("ngTemplateOutlet",p)}}function l(r,m){if(1&r&&(a.TgZ(0,"cvc-icon-badges",10),a._UZ(1,"i",11),a.ALo(2,"entityColor"),a.qZA(),a._uU(3)),2&r){const p=a.oxw();a.Q6J("flagged",p.variantgroup.flagged)("entityColor",p.iconColor),a.xp6(1),a.Q6J("nzTwotoneColor",a.lcZ(2,4,"VariantGroup")),a.xp6(2),a.hij(" ",p.variantgroup.name,"\n")}}let z=(()=>{class r{set variantgroup(p){if(!p)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=p}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,e.f)("VariantGroup")}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(p,b){if(1&p&&(a.YNc(0,$,3,2,"ng-container",0),a.YNc(1,K,4,4,"ng-template",null,1,a.W1O),a.YNc(3,X,1,1,"ng-template",null,2,a.W1O),a.YNc(5,l,4,6,"ng-template",null,3,a.W1O)),2&p){const V=a.MAs(4);a.Q6J("ngIf",b.linked)("ngIfElse",V)}},dependencies:[t.O5,t.tP,x.rH,O.lU,Z.j,Q.Ls,S,Y.b,I.a],encapsulation:2,changeDetection:0}),r})()},534:(et,w,i)=>{i.r(w),i.d(w,{SourcesModule:()=>le});var e=i(6814),a=i(4190),t=i(5879),x=i(6254),O=i(551),Z=i(3145),Q=i(655),y=i(6223),N=i(2024),M=i(1791);const U=[{wrappers:["form-layout"],props:{submitLabel:"Submit Source Suggestion",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Submit Source Suggestion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!1,description:"Select a Molecular Profile for this Source Suggestion, if applicable.",watchVariantMolecularProfileId:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"sourceId",type:"source-select",wrappers:["form-field"],props:{required:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Source Suggestion"}}]}]}];var u,J=i(7398),E=i(313),k=i(7473),_=i(3599),I=i(3903),f=i(5545),T=i(9928),P=i(8091);function v(n,s){if(1&n&&t._UZ(0,"nz-alert",7),2&n){t.oxw();const o=t.MAs(3);t.Q6J("nzMessage",o)}}function d(n,s){1&n&&(t.TgZ(0,"p")(1,"strong"),t._uU(2," This Source has been marked as fully curated by an Editor. Please double check that you still wish to submit a new Suggestion for it. "),t.qZA()())}function S(n,s){if(1&n&&(t.ynx(0),t.YNc(1,v,1,1,"nz-alert",5),t.YNc(2,d,3,0,"ng-template",null,6,t.W1O),t._UZ(4,"br"),t.BQk()),2&n){const o=s.ngIf;t.xp6(1),t.Q6J("ngIf",o)}}function Y(n,s){if(1&n&&t._UZ(0,"nz-alert",7),2&n){t.oxw();const o=t.MAs(3);t.Q6J("nzMessage",o)}}function W(n,s){1&n&&(t.TgZ(0,"p")(1,"strong"),t._uU(2," This Source has already been Suggested. Please double check that you still wish to submit a new Suggestion for it. "),t.qZA()())}function $(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Y,1,1,"nz-alert",5),t.YNc(2,W,3,0,"ng-template",null,6,t.W1O),t._UZ(4,"br"),t.BQk()),2&n){const o=s.ngIf;t.xp6(1),t.Q6J("ngIf",o)}}function H(n,s){if(1&n&&(t._uU(0," You will be redirected shortly or you may view your Source Suggestion "),t.TgZ(1,"a",8),t._uU(2,"here"),t.qZA(),t._uU(3,". ")),2&n){const o=t.oxw();t.xp6(1),t.Q6J("href",o.url,t.LSH)}}let R=((u=class{constructor(s,o,h){this.submitSourceGQL=s,this.sourceChecksGQL=o,this.form=new y.nJ({}),this.model={fields:{}},this.fields=U,this.submitSourceMutator=new N.U(h)}ngOnInit(){this.url="/curation/queues/pending-sources",this.suggestionChecksQueryRef=this.sourceChecksGQL.watch({sourceId:0}),this.fullyCuratedSource$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,J.U)(s=>s.data?.source?.fullyCurated),(0,M.t)(this)),this.existingSourceSuggestion$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,J.U)(s=>{const o=s.data?.sourceSuggestions?.filteredCount;return!!o&&o>0}),(0,M.t)(this))}onModelChange(s){s.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=s.fields.sourceId,this.suggestionChecksQueryRef?.refetch(this.selectedSourceId?{sourceId:this.selectedSourceId}:{sourceId:0}))}onSubmit(s){const o=function D(n){const s=n.fields;if(![n.comment,s.sourceId].find(h=>void 0===h))return{sourceId:s.sourceId,molecularProfileId:s.molecularProfileId,diseaseId:s.diseaseId,organizationId:n.organizationId,comment:n.comment}}(s);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,h=>{this.newSourceId=h.suggestSource?.sourceSuggestion.id}))}}).\u0275fac=function(s){return new(s||u)(t.Y36(E.tWC),t.Y36(E.S8C),t.Y36(k.Y))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-source-submit-form"]],decls:9,vars:13,consts:[[4,"ngIf"],["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","modelChange"],["nzType","warning",3,"nzMessage",4,"ngIf"],["fullyCuratedAlert",""],["nzType","warning",3,"nzMessage"],[3,"href"]],template:function(s,o){if(1&s&&(t.YNc(0,S,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,$,5,1,"ng-container",0),t.ALo(3,"ngrxPush"),t.TgZ(4,"cvc-form-submission-status-display",1),t.YNc(5,H,4,1,"ng-template",null,2,t.W1O),t.TgZ(7,"form",3),t.NdJ("ngSubmit",function(){return o.onSubmit(o.model)}),t.TgZ(8,"formly-form",4),t.NdJ("modelChange",function(A){return o.model=A,o.onModelChange(A)}),t.qZA()()()),2&s){const h=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,9,o.fullyCuratedSource$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,11,o.existingSourceSuggestion$)),t.xp6(2),t.Q6J("mutationState",o.mutationState)("redirectUrl",o.url)("successMessage",h),t.xp6(3),t.Q6J("formGroup",o.form),t.xp6(1),t.Q6J("form",o.form)("fields",o.fields)("model",o.model)}},dependencies:[e.O5,_.Lr,I.r,y._Y,y.JL,y.sg,f.T7,T.F,P.fM]}),u);R=(0,Q.gn)([(0,M.c)()],R);var F=i(2616);let K=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-source-add-page"]],decls:11,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"]],template:function(o,h){1&o&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title"),t._UZ(3,"i",2),t.ALo(4,"entityColor"),t._uU(5," Add a Source Suggestion "),t.qZA(),t.TgZ(6,"nz-page-header-subtitle"),t._uU(7," Submit a promising source for curation "),t.qZA(),t.TgZ(8,"nz-page-header-content")(9,"div",3),t._UZ(10,"cvc-source-submit-form"),t.qZA()()()),2&o&&(t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,1,"Assertion")))},dependencies:[x.$O,x.u9,x.yG,x.u5,O.Ls,Z.I,R,F.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{flex-wrap:nowrap;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 G=i(8645),X=i(5619),l=i(7921),z=i(9773),r=i(4223),m=i(951),p=i(2840),b=i(855),V=i(1958),it=i(5695),at=i(3317),st=i(5098);function c(n,s){1&n&&(t.TgZ(0,"button",11),t._UZ(1,"i",12),t._uU(2," Suggest a New Source "),t.qZA())}function C(n,s){if(1&n&&(t.ynx(0),t.YNc(1,c,3,0,"button",10),t.BQk()),2&n){const o=s.ngrxLet;t.xp6(1),t.Q6J("ngIf",o.signedIn)}}function g(n,s){if(1&n&&t.YNc(0,C,2,1,"ng-container",9),2&n){const o=t.oxw(2);t.Q6J("ngrxLet",o.viewer$)}}function B(n,s){1&n&&(t.TgZ(0,"nz-tag",13),t._uU(1," Fully Curated "),t.qZA())}function q(n,s){if(1&n&&(t.TgZ(0,"cvc-link-tag",14),t._uU(1),t.qZA()),2&n){const o=t.oxw().ngIf;t.Q6J("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.xp6(1),t.hij(" ",o.displayType+":"+o.citationId," ")}}function mt(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,g,1,1,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title"),t._UZ(6,"i",4),t.ALo(7,"entityColor"),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-extra"),t.YNc(10,B,2,0,"nz-tag",5),t.YNc(11,q,2,3,"cvc-link-tag",6),t.qZA(),t.TgZ(12,"nz-page-header-content"),t._UZ(13,"cvc-tab-navigation",7),t.ALo(14,"ngrxPush"),t.TgZ(15,"div",8),t._UZ(16,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const o=s.ngIf,h=t.MAs(3),A=t.oxw();t.xp6(1),t.Q6J("displayName",o.citation)("actionsTpl",h),t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(7,7,"Source")),t.xp6(2),t.hij(" ",o.citation," "),t.xp6(2),t.Q6J("ngIf",o.fullyCurated),t.xp6(1),t.Q6J("ngIf",o.sourceUrl),t.xp6(2),t.Q6J("tabs",t.lcZ(14,9,A.tabs$))}}let ft=(()=>{class n{constructor(o,h,A){this.viewerService=o,this.route=h,this.gql=A,this.destroy$=new G.x,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new X.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(j=>{this.sourceId=+j.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let ot=this.queryRef.valueChanges;this.loading$=ot.pipe((0,r.j)("loading"),(0,l.O)(!0)),this.source$=ot.pipe((0,r.j)("data","source")),this.source$.pipe((0,z.R)(this.destroy$)).subscribe({next:pe=>{this.tabs$.next(this.defaultTabs.map(gt=>"Comments"===gt.tabLabel?{badgeCount:pe?.comments.totalCount,badgeColor:"#cccccc",...gt}:gt))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(m.a),t.Y36(a.gz),t.Y36(E.Bk6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["sourcesActions",""],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzColor","success",4,"ngIf"],[3,"href","tooltip",4,"ngIf"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nzColor","success"],[3,"href","tooltip"]],template:function(o,h){1&o&&(t.YNc(0,mt,17,11,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,h.source$))},dependencies:[e.O5,a.lC,a.rH,P.eJ,x.$O,x.u9,x.u5,x.Jp,p.ix,b.w,V.dQ,O.Ls,it.j,Z.I,at.l,st.P,P.fM,F.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{flex-wrap:nowrap;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 tt=i(95),rt=i(2392),nt=i(2574),ht=i(6473);function vt(n,s){1&n&&(t.TgZ(0,"button",18),t._UZ(1,"i",19),t._uU(2," Suggest a New Source "),t.qZA())}function _t(n,s){if(1&n&&(t.ynx(0),t.YNc(1,vt,3,0,"button",17),t.BQk()),2&n){const o=s.ngrxLet;t.xp6(1),t.Q6J("ngIf",o.signedIn)}}function zt(n,s){if(1&n&&t.YNc(0,_t,2,1,"ng-container",16),2&n){const o=t.oxw();t.Q6J("ngrxLet",o.viewer$)}}function Ct(n,s){1&n&&(t.TgZ(0,"a",20),t._UZ(1,"i",21),t._uU(2," View Source Docs "),t.qZA())}function xt(n,s){1&n&&(t.TgZ(0,"a",22),t._UZ(1,"i",21),t._uU(2," View Source Curation Docs "),t.qZA())}let Tt=(()=>{class n{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(m.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["sources-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["sourcesActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzFlex","0 1 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/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(o,h){if(1&o&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,zt,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Sources"),t.qZA(),t.TgZ(12,"p",7),t._uU(13," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,Ct,3,0,"a",10),t.YNc(17,xt,3,0,"a",11),t.qZA()()(),t.TgZ(18,"div",12)(19,"div",13)(20,"div",14),t._UZ(21,"cvc-sources-table",15),t.qZA()()()()()),2&o){const A=t.MAs(2);t.Q6J("actionsTpl",A),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"Source")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[e.O5,a.rH,P.eJ,x.$O,x.u5,O.Ls,tt.t3,tt.SK,p.ix,b.w,V.dQ,rt.ZU,nt.NU,nt.$1,Z.I,ht.d,F.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{flex-wrap:nowrap;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 ut=i(6109),ct=i(8125),St=i(8753);let yt=(()=>{class n{set cvcAutoHeightDiv(o){const h=parseInt(o,0);!isNaN(h)&&h>=0&&(this._offset=h)}set cvcAutoHeightTarget(o){this._target=o}get cvcAutoHeightTarget(){return this._target}constructor(o,h,A){this.el=o,this.zone=h,this.cdr=A,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new G.x,this.resizeObserver=new ResizeObserver(j=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,St.p)(10)).subscribe(j=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const o=this.el.nativeElement,h=o.parentElement.getBoundingClientRect().height;o&&o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o&&("parent"===this._target?o.style.height=h:"viewport"===this._target&&(o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o.style.height=`calc(100vh - ${this.divTop+this._offset}px)`),o.style["overflow-y"]="auto",this.cdr.detectChanges())}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275dir=t.lG2({type:n,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),n})();var Pt=i(6822),It=i(6282),Ot=i(3369);function Mt(n,s){if(1&n&&(t.TgZ(0,"cvc-link-tag",24),t._uU(1),t.qZA()),2&n){const o=t.oxw().ngIf;t.Q6J("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.xp6(1),t.hij(" ",o.displayType+":"+o.citationId," ")}}function bt(n,s){if(1&n&&(t.TgZ(0,"nz-descriptions-item",25),t._uU(1),t.qZA()),2&n){const o=t.oxw().ngIf;t.xp6(1),t.hij(" ",o.ascoAbstractId," ")}}function At(n,s){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const o=t.oxw().ngIf;t.xp6(1),t.hij(" ",o.pmcId," ")}}function Zt(n,s){}function wt(n,s){if(1&n&&(t.TgZ(0,"nz-descriptions-item",30),t.YNc(1,Zt,0,0,"ng-template",31),t.qZA()),2&n){t.oxw(2);const o=t.MAs(30);t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Nt(n,s){if(1&n&&(t.TgZ(0,"nz-descriptions-item",30),t._UZ(1,"cvc-clinical-trial-tag",32),t.qZA()),2&n){const o=t.oxw(2).ngIf;t.xp6(1),t.Q6J("clinicalTrial",o.clinicalTrials[0])}}function Et(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-space"),t._UZ(2,"cvc-clinical-trial-tag",32),t.qZA(),t.BQk()),2&n){const o=s.$implicit;t.xp6(2),t.Q6J("clinicalTrial",o)}}function Qt(n,s){if(1&n&&(t.TgZ(0,"nz-descriptions-item",33),t.YNc(1,Et,3,1,"ng-container",34),t.qZA()),2&n){const o=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",o.clinicalTrials)}}function Jt(n,s){if(1&n&&(t.ynx(0,26),t.YNc(1,wt,2,1,"ng-template",27),t.YNc(2,Nt,2,1,"ng-template",28),t.YNc(3,Qt,2,1,"ng-template",29),t.BQk()),2&n){const o=t.oxw().ngIf;t.Q6J("ngPlural",o.clinicalTrials.length)}}function Lt(n,s){1&n&&(t.TgZ(0,"span",35),t._uU(1," Not available "),t.qZA())}function Ut(n,s){if(1&n&&t._uU(0),2&n){const o=t.oxw().ngIf;t.hij(" Evidence for ",o.citation," ")}}function Dt(n,s){if(1&n&&t._uU(0),2&n){const o=t.oxw().ngIf;t.hij(" Source Suggestions for ",o.citation," ")}}const kt=function(){return[8,16]};function Yt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4)(5,"i"),t._uU(6),t.qZA()(),t.TgZ(7,"nz-descriptions-item",5),t._uU(8),t.qZA()()(),t.TgZ(9,"nz-col",2)(10,"nz-descriptions",3)(11,"nz-descriptions-item",6)(12,"p",7),t._uU(13),t.qZA()()()(),t.TgZ(14,"nz-col",2)(15,"nz-descriptions",8)(16,"nz-descriptions-item",9),t._uU(17),t.qZA(),t.TgZ(18,"nz-descriptions-item",10),t.YNc(19,Mt,2,3,"cvc-link-tag",11),t.qZA(),t.YNc(20,bt,2,1,"nz-descriptions-item",12),t.TgZ(21,"nz-descriptions-item",13),t._uU(22),t.qZA(),t.TgZ(23,"nz-descriptions-item",14),t.YNc(24,At,2,1,"ng-container",15),t.qZA(),t.TgZ(25,"nz-descriptions-item",16)(26,"span",17),t._UZ(27,"span",18),t.qZA()(),t.YNc(28,Jt,4,1,"ng-container",19),t.qZA(),t.YNc(29,Lt,2,0,"ng-template",null,20,t.W1O),t.qZA(),t.TgZ(31,"nz-col",2),t._UZ(32,"cvc-evidence-table",21),t.YNc(33,Ut,1,1,"ng-template",null,22,t.W1O),t.qZA(),t.TgZ(35,"nz-col",2),t._UZ(36,"cvc-source-suggestions-table",21),t.YNc(37,Dt,1,1,"ng-template",null,23,t.W1O),t.qZA()(),t.BQk()),2&n){const o=s.ngIf,h=t.MAs(30),A=t.MAs(34),j=t.MAs(38),ot=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(27,kt)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(3),t.Oqu(o.title),t.xp6(2),t.hij(" ",o.authorString," "),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("nzEllipsisRows",6),t.xp6(1),t.hij(" ",o.abstract," "),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(1),t.Q6J("nzColumn",1),t.xp6(2),t.Oqu(o.publicationDate),t.xp6(1),t.MGl("nzTitle","",o.displayType," ID"),t.xp6(1),t.Q6J("ngIf",o.sourceUrl),t.xp6(1),t.Q6J("ngIf","ASCO"==o.displayType),t.xp6(2),t.hij("",o.fullJournalTitle," "),t.xp6(2),t.Q6J("ngIf",o.pmcId)("ngIfElse",h),t.xp6(2),t.Q6J("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.xp6(1),t.Q6J("nzType",o.pmcId?"unlock":"lock"),t.xp6(1),t.Q6J("ngIf",o.clinicalTrials),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("sourceId",ot.sourceId)("cvcTitleTemplate",A),t.xp6(3),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("sourceId",ot.sourceId)("cvcTitleTemplate",j)}}let Bt=(()=>{class n{constructor(o,h){this.route=o,this.gql=h,this.routeSub=this.route.params.subscribe(A=>{this.sourceId=+A.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let j=this.queryRef.valueChanges;this.loading$=j.pipe((0,r.j)("loading"),(0,l.O)(!0)),this.source$=j.pipe((0,r.j)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(a.gz),t.Y36(E.g0X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],["cvcAutoHeightDiv","",3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Title"],["nzTitle","Authors"],["nzTitle","Abstract"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],[3,"href","tooltip",4,"ngIf"],["nzTitle","ASCO Abstract ID",4,"ngIf"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],["nzTitle","Access"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],[3,"ngPlural",4,"ngIf"],["notAvailable",""],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[3,"href","tooltip"],["nzTitle","ASCO Abstract ID"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"]],template:function(o,h){1&o&&(t.YNc(0,Yt,39,28,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,h.source$))},dependencies:[e.sg,e.O5,e.tP,e.iq,e.zE,tt.t3,tt.SK,nt.NU,rt.ZU,O.Ls,ut.SY,ct.R7,ct.uj,at.l,yt,Pt.a,It.O,Ot.G,P.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]}),n})(),Rt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-sources"]],decls:1,vars:0,template:function(o,h){1&o&&t._UZ(0,"router-outlet")},dependencies:[a.lC],encapsulation:2}),n})();var Ft=i(5565);const Gt=[{path:"",component:Rt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Tt,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:K},{path:":sourceId",component:ft,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Bt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class n{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:E.OfU.Source}}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(a.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(o,h){1&o&&t._UZ(0,"cvc-comment-list",0),2&o&&t.Q6J("commentable",h.commentable)},dependencies:[Ft.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Comments"}}]}]}];let Vt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[a.Bz.forChild(Gt),a.Bz]}),n})();var jt=i(6078),lt=i(2419),pt=i(2524);let Wt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,x.KJ,O.PV,tt.Jb,p.sL,rt.ZJ,nt.zf,lt.D,jt.h,pt.s]}),n})();var dt=i(6067),$t=i(4059);let Ht=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,x.KJ,p.sL,O.PV,it.X,lt.D,dt.X,$t.c,pt.s]}),n})();var Kt=i(4605),Xt=i(1403),qt=i(7240),te=i(9333);let ee=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,tt.Jb,nt.zf,tt.Jb,nt.zf,rt.ZJ,O.PV,ut.cg,ct.q6,dt.X,te.h,Xt.Q,qt.W,Kt.N]}),n})();var ne=i(706),oe=i(279),ie=i(1227);let ae=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,_.U5,p.sL,I.L,ne.S,ie.g,oe.s]}),n})(),re=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,x.KJ,O.PV,pt.s,lt.D,ae]}),n})();var se=i(1260);let ce=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,se.l]}),n})(),le=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[e.ez,a.Bz,Vt,Wt,Ht,ee,re,ce]}),n})()},4139:(et,w,i)=>{i.d(w,{H0:()=>P});var e=i(5879),a=i(6814),t=i(9388);let P=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[t.vT,a.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/5167.2ea8b0e45cd0c87e.js b/server/public/5167.2ea8b0e45cd0c87e.js new file mode 100644 index 000000000..9b0d2b0e0 --- /dev/null +++ b/server/public/5167.2ea8b0e45cd0c87e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5167],{7199:(kn,tt,s)=>{s.r(tt),s.d(tt,{UsersDetailModule:()=>jn});var _=s(6814),F=s(2419),n=s(6254),v=s(4190),P=s(4059),y=s(2574),D=s(4293),Z=s(2840),O=s(551),t=s(5879);let ct=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,Z.sL,O.PV]}),o})();var T=s(8125),b=s(1106),C=s(95),I=s(2524),U=s(2962),lt=s(2996),pt=s(6987),w=s(67),z=s(6223),S=s(3903),V=s(3599),k=s(100),dt=s(7907),B=s(2669),N=s(9691),nt=s(824);let zt=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,z.u5,V.U5,z.UX,U.vh,S.L,dt.aF,Z.sL,B.j,N.LV,nt.o7,k.B]}),o})();var Ct=s(2637),vt=s(5572),xt=s(1826);let Tt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("userId",r.userId)},dependencies:[xt.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=s(313),bt=s(7441);let Ut=(()=>{class o{constructor(e){this.route=e,this.mode=h.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(e,r){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("userId",r.userId)("mode",r.mode)},dependencies:[bt.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Mt=s(6822);let yt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("userId",r.userId)},dependencies:[Mt.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var et=s(2024),H=s(5676),x=s(7398),j=s(2181),$=s(7921),W=s(7473),ot=s(6109),G=s(855),J=s(1958),it=s(2612),K=s(3498),Zt=s(4736),At=s(6794),Q=s(8091),Pt=s(7908),St=s(6116);function R(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t._uU(2),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.Q6J("nzType",e.iconName),t.xp6(1),t.hij(" ",e.displayName," ")}}function M(o,l){1&o&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&o&&t.hij(" ",t.xi3(1,1,l.$implicit.id,"action-filter")," ")}function gt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t.ALo(2,"iconNameForSubscribableEntity"),t._uU(3),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.Q6J("nzType",t.lcZ(2,3,e.subjectWithCount.subject.__typename)),t.xp6(2),t.AsE(" ",e.subjectWithCount.subject.name," (",e.subjectWithCount.occuranceCount,") ")}}function Nt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function Ot(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function It(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkMarkRead())}),t._UZ(1,"i",19),t._uU(2,"Mark as read "),t.qZA(),t.TgZ(3,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkMarkUnread())}),t._UZ(4,"i",19),t._uU(5,"Mark as unread "),t.qZA(),t.TgZ(6,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkUnsubscribe())}),t._UZ(7,"i",20),t._uU(8,"Unsubscribe "),t.qZA(),t._uU(9," Check all "),t.TgZ(10,"label",21),t.NdJ("ngModelChange",function(c){t.CHM(e);const d=t.oxw(2);return t.KtG(d.allChecked=c)})("nzCheckedChange",function(c){t.CHM(e);const d=t.oxw(2);return t.KtG(d.onCheckAllCheckBoxClicked(c))}),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(4),t.Q6J("ngModel",e.allChecked)("nzIndeterminate",e.someChecked)}}function wt(o,l){if(1&o&&t._UZ(0,"i",32),2&o){const e=t.oxw().$implicit;t.Q6J("nzType","SUBSCRIPTION"===e.key.type?"book":"notification")("nzTheme",e.key.seen?"outline":"twotone")}}function Jt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",33),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsUnread(c.key.id))}),t._UZ(2,"i",34),t.qZA(),t.BQk()}}function Qt(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsRead(c.key.id))}),t._UZ(1,"i",19),t.qZA()}}function Lt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",36),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename))}),t._UZ(2,"i",20),t.qZA(),t.BQk()}if(2&o){const e=t.oxw().$implicit;t.xp6(1),t.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",e.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Et(o,l){1&o&&(t.TgZ(0,"button",37),t._UZ(1,"i",20),t.qZA())}function kt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-timeline-item",23),t.YNc(2,wt,1,2,"ng-template",null,24,t.W1O),t.TgZ(4,"nz-row")(5,"nz-col",25),t._UZ(6,"cvc-event-timeline-item",26),t.qZA(),t.TgZ(7,"nz-col",27),t.YNc(8,Jt,3,0,"ng-container",28),t.YNc(9,Qt,2,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(11,"nz-col",27),t.YNc(12,Lt,3,1,"ng-container",28),t.YNc(13,Et,2,0,"ng-template",null,30,t.W1O),t.TgZ(15,"label",31),t.NdJ("ngModelChange",function(c){const f=t.CHM(e).$implicit;return t.KtG(f.value.checked=c)})("nzCheckedChange",function(c){const f=t.CHM(e).$implicit,Y=t.oxw(3);return t.KtG(Y.onNotificationCheckBoxClicked(f.key.id,c))}),t.qZA()()()(),t.BQk()}if(2&o){const e=l.$implicit,r=t.MAs(3),c=t.MAs(10),d=t.MAs(14);t.xp6(1),t.Q6J("nzDot",r)("nzColor",e.key.seen?"gray":"blue"),t.xp6(5),t.Q6J("event",e.key.event),t.xp6(2),t.Q6J("ngIf",e.key.seen)("ngIfElse",c),t.xp6(4),t.Q6J("ngIf",e.key.subscription)("ngIfElse",d),t.xp6(3),t.Q6J("ngModel",e.value.checked)}}function L(o,l){if(1&o&&(t.TgZ(0,"nz-timeline"),t.YNc(1,kt,16,8,"ng-container",22),t.ALo(2,"keyvalue"),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,e))}}function $t(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"div",39)(1,"button",40),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().ngIf,d=t.oxw(2);return t.KtG(d.fetchMore(c.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function Rt(o,l){if(1&o&&(t.ynx(0),t.YNc(1,$t,3,0,"div",38),t.BQk()),2&o){const e=l.ngIf;t.xp6(1),t.Q6J("ngIf",e.hasNextPage&&e.endCursor)}}const q=function(){return[]};function Yt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-row")(4,"nz-button-group",4)(5,"button",5),t.NdJ("click",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.setIncludeRead(!1))}),t._uU(6," Unread "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.setIncludeRead(!0))}),t._uU(8," All "),t.qZA()()(),t.TgZ(9,"nz-row")(10,"nz-col",6)(11,"cvc-participant-list",7),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onNotificationReasonSelected(c))}),t.YNc(12,R,3,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onActionSelected(c))}),t.ALo(15,"ngrxPush"),t.YNc(16,M,2,4,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(18,"cvc-participant-list",10),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onNotificationSubjectSelected(c))}),t.ALo(19,"ngrxPush"),t.YNc(20,gt,4,5,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(22,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onOriginatingUserSelected(c))}),t.ALo(23,"ngrxPush"),t.YNc(24,Nt,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(26,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onOrganizationSelected(c))}),t.ALo(27,"ngrxPush"),t.YNc(28,Ot,2,1,"ng-template",null,8,t.W1O),t.qZA()()()(),t.TgZ(30,"nz-col",13)(31,"nz-card",14),t.YNc(32,It,11,5,"ng-template",null,15,t.W1O),t.TgZ(34,"nz-row",2)(35,"nz-col",16),t.YNc(36,L,3,3,"nz-timeline",1),t.YNc(37,Rt,2,1,"ng-container",1),t.ALo(38,"ngrxPush"),t.qZA()()()()(),t.BQk()}if(2&o){const e=l.ngIf,r=t.MAs(33),c=t.oxw();t.xp6(1),t.Q6J("nzGutter",25),t.xp6(4),t.Q6J("nzType",c.includeReadInput?"default":"primary"),t.xp6(2),t.Q6J("nzType",c.includeReadInput?"primary":"default"),t.xp6(4),t.Q6J("participantList",c.notificationTypes),t.xp6(3),t.Q6J("participantList",t.lcZ(15,12,c.actions$)||t.DdM(22,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(19,14,c.notificationSubjects$)||t.DdM(23,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(23,16,c.originatingUsers$)||t.DdM(24,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(27,18,c.organizations$)||t.DdM(25,q)),t.xp6(5),t.Q6J("nzExtra",r),t.xp6(3),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.size>0),t.xp6(1),t.Q6J("ngIf",t.lcZ(38,20,c.pageInfo$))}}let Ft=(()=>{class o{constructor(e,r,c,d,f){this.route=e,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=d,this.unsubscribeMutation=f,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new et.U(c),this.unsubscribeMutator=new et.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,x.U)(e=>e.data?.notifications),(0,j.h)(H.ep)),this.pageInfo$=this.connection$.pipe((0,x.U)(e=>e.pageInfo),(0,j.h)(H.ep)),this.notificationStateObservable$=this.results$.pipe((0,x.U)(e=>e.data),(0,j.h)(H.ep),(0,x.U)(({notifications:e})=>{let r=new Map;return e.edges.forEach(c=>{if(c.node){let d={checked:!1};r.set(c.node,d),this.notificationState.set(c.node,d)}}),r})),this.notificationSubjects$=this.results$.pipe((0,x.U)(e=>e.data),(0,j.h)(H.ep),(0,x.U)(({notifications:e})=>e.notificationSubjects.map(r=>({id:`${r.subject?.__typename}:${r.subject?.id}`,subjectWithCount:r})))),this.originatingUsers$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.organizations)),this.isLoading$=this.results$.pipe((0,x.U)(({loading:e})=>e),(0,$.O)(!0))}fetchMore(e){this.queryRef.fetchMore({variables:{after:e}})}setIncludeRead(e){this.includeReadInput=e,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(e){this.queryRef.refetch({notificationReason:e?e.type:void 0})}onNotificationSubjectSelected(e){let r;if(void 0!==e){let c=e.subjectWithCount.subject?.__typename;r={id:e.subjectWithCount.subject.id,entityType:h.o71[c]}}this.queryRef.refetch({originatingObject:r})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id})}markAsRead(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.NQC.Read}})}markAsUnread(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.NQC.Unread}})}unsubscribe(e,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:e,entityType:h.o71[r]}]}})}onNotificationCheckBoxClicked(e,r){let c=Array.from(this.notificationState.keys()).find(d=>d.id===e);if(c){let d=this.notificationState.get(c);d&&(d.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(d=>d.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(d=>d.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(d=>!d.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(e){e?this.checkAll():this.uncheckAll()}getCheckedIds(){let e=[];return this.notificationState.forEach((r,c)=>{r.checked&&e.push(c.id)}),e}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,r)=>{e.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,r)=>{e.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let e=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&e.push({id:c.subscription.subscribable.id,entityType:h.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:e}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz),t.Y36(h.yqR),t.Y36(W.Y),t.Y36(h.LiH),t.Y36(h.m$d))},o.\u0275cmp=t.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(e,r){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,Yt,39,26,"ng-container",1),t.ALo(3,"async"),t.qZA()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,2,r.isLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,r.notificationStateObservable$)))},dependencies:[_.sg,_.O5,z.JJ,z.On,ot.SY,B.W,C.t3,C.SK,Z.ix,Z.fY,G.w,J.dQ,U.bd,O.Ls,it.Ie,K.Zv,K.PD,Zt.t,At.l,_.Ov,_.Nd,Q.fM,Pt.R,St.j],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 Dt=s(6282);let Vt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-source-suggestions-table",0),2&e&&t.Q6J("submitterId",r.userId)},dependencies:[Dt.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Bt=s(655),ut=s(4223),at=s(5619),mt=s(1791),Ht=s(951),_t=s(2392),ft=s(7417),jt=s(4527),Wt=s(2610),A=s(1022),Gt=s(8645),st=s(9773),Kt=s(6943);function qt(o,l){1&o&&t._UZ(0,"nz-alert",19)}function rt(o,l){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",20),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("errors",e.errorMessages)}}function Xt(o,l){if(1&o&&t._UZ(0,"nz-option",21),2&o){const e=l.$implicit;t.Q6J("nzLabel",e.name)("nzValue",e.id)}}let tn=(()=>{class o{constructor(e,r,c){this.updateProfileGql=e,this.profileUpdatedEvent=new t.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Gt.x,this.updateProfileMutator=new et.U(c),this.countries$=r.fetch().pipe((0,x.U)(({data:d})=>d.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 e={username:this.username,email:this.email,name:(0,A.xt)(this.name),areaOfExpertise:(0,A.uP)(this.areaOfExpertise),orcid:(0,A.xt)(this.orcid),url:(0,A.xt)(this.url),bio:(0,A.xt)(this.bio),countryId:(0,A.uP)(this.countryId),twitterHandle:(0,A.xt)(this.twitterHandle),facebookProfile:(0,A.xt)(this.facebookProfile),linkedinProfile:(0,A.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:e});r.submitSuccess$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){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=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(h.wbP),t.Y36(h.l4w),t.Y36(W.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,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"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["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(e,r){1&e&&(t.TgZ(0,"nz-card"),t.YNc(1,qt,1,0,"nz-alert",0),t.YNc(2,rt,2,1,"nz-form-item",1),t.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t._uU(6,"Username"),t.qZA(),t.TgZ(7,"input",4),t.NdJ("ngModelChange",function(d){return r.username=d}),t.qZA()(),t.TgZ(8,"nz-form-item")(9,"nz-form-label"),t._uU(10,"Name"),t.qZA(),t.TgZ(11,"input",4),t.NdJ("ngModelChange",function(d){return r.name=d}),t.qZA()(),t.TgZ(12,"nz-form-item")(13,"nz-form-label",3),t._uU(14,"Email"),t.qZA(),t.TgZ(15,"input",4),t.NdJ("ngModelChange",function(d){return r.email=d}),t.qZA()(),t.TgZ(16,"nz-form-item")(17,"nz-form-label"),t._uU(18,"User Bio"),t.qZA(),t.TgZ(19,"textarea",5),t.NdJ("ngModelChange",function(d){return r.bio=d}),t.qZA()(),t.TgZ(20,"nz-form-item")(21,"nz-form-label"),t._uU(22,"Country"),t.qZA(),t.TgZ(23,"nz-select",6),t.NdJ("ngModelChange",function(d){return r.countryId=d}),t.YNc(24,Xt,1,2,"nz-option",7),t.ALo(25,"ngrxPush"),t.qZA()(),t.TgZ(26,"nz-form-item")(27,"nz-form-label"),t._uU(28,"Area of Expertise"),t.qZA(),t.TgZ(29,"nz-select",8),t.NdJ("ngModelChange",function(d){return r.areaOfExpertise=d}),t._UZ(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.qZA()(),t.TgZ(33,"nz-form-item")(34,"nz-form-label"),t._uU(35,"ORCID Identifier"),t.qZA(),t.TgZ(36,"nz-input-group",12)(37,"input",13),t.NdJ("ngModelChange",function(d){return r.orcid=d}),t.qZA()()(),t.TgZ(38,"nz-form-item")(39,"nz-form-label"),t._uU(40,"Personal Website"),t.qZA(),t.TgZ(41,"input",4),t.NdJ("ngModelChange",function(d){return r.url=d}),t.qZA()(),t.TgZ(42,"nz-form-item")(43,"nz-form-label"),t._uU(44,"X/Twitter Handle"),t.qZA(),t.TgZ(45,"nz-input-group",14)(46,"input",15),t.NdJ("ngModelChange",function(d){return r.twitterHandle=d}),t.qZA()()(),t.TgZ(47,"nz-form-item")(48,"nz-form-label"),t._uU(49,"Facebook Profile"),t.qZA(),t.TgZ(50,"nz-input-group",16)(51,"input",15),t.NdJ("ngModelChange",function(d){return r.facebookProfile=d}),t.qZA()()(),t.TgZ(52,"nz-form-item")(53,"nz-form-label"),t._uU(54,"LinkedIn Profile"),t.qZA(),t.TgZ(55,"nz-input-group",17)(56,"input",15),t.NdJ("ngModelChange",function(d){return r.linkedinProfile=d}),t.qZA()()(),t.TgZ(57,"nz-form-item")(58,"button",18),t.NdJ("click",function(){return r.updateProfile()}),t._uU(59," Update Profile "),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("ngIf",r.success),t.xp6(1),t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("nzSpinning",r.loading),t.xp6(4),t.Q6J("ngModel",r.username),t.xp6(4),t.Q6J("ngModel",r.name),t.xp6(4),t.Q6J("ngModel",r.email),t.xp6(4),t.Q6J("ngModel",r.bio),t.xp6(4),t.Q6J("ngModel",r.countryId),t.xp6(1),t.Q6J("ngForOf",t.lcZ(25,16,r.countries$)),t.xp6(5),t.Q6J("ngModel",r.areaOfExpertise),t.xp6(8),t.Q6J("ngModel",r.orcid),t.xp6(4),t.Q6J("ngModel",r.url),t.xp6(5),t.Q6J("ngModel",r.twitterHandle),t.xp6(5),t.Q6J("ngModel",r.facebookProfile),t.xp6(5),t.Q6J("ngModel",r.linkedinProfile),t.xp6(2),t.Q6J("disabled",r.loading||!r.username||!r.email))},dependencies:[_.sg,_.O5,z.Fj,z.JJ,z.On,C.t3,C.SK,V.Nx,V.iK,U.bd,S.r,Z.ix,G.w,J.dQ,B.W,N.Ip,N.Vq,nt.Zp,nt.gB,Kt.V,Q.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 nn=s(3145),Ln=s(5098),En=s(7458),en=s(9862);let on=(()=>{class o{constructor(e){this.http=e,this.uploadComplete=new t.vpe}processProfileImage(e){if(e&&e[0]){let r=new FormData;r.append("image",e[0],e[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(en.eN))},o.\u0275cmp=t.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","primary","nzBlock","",3,"click"]],template:function(e,r){if(1&e){const c=t.EpF();t.TgZ(0,"input",0,1),t.NdJ("change",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(r.processProfileImage(f.files))}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(f.click())}),t._uU(3," Update Image\n"),t.qZA()}},dependencies:[Z.ix,G.w,J.dQ],encapsulation:2}),o})();var E,an=s(1607),sn=s(4082),rn=s(2616);function cn(o,l){if(1&o&&t._UZ(0,"cvc-user-avatar",26),2&o){const e=t.oxw().ngIf;t.Q6J("user",e)("size",128)}}function ln(o,l){if(1&o&&(t.TgZ(0,"div",27),t._UZ(1,"i",28),t.ALo(2,"lowercase"),t.ALo(3,"entityColor"),t.ALo(4,"titlecase"),t.TgZ(5,"span",29)(6,"strong"),t._uU(7),t.qZA()()()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzType","civic-"+t.lcZ(2,3,e.role))("nzTwotoneColor",t.lcZ(3,5,t.lcZ(4,7,e.role))),t.xp6(6),t.hij(" ",e.username,"")}}function pn(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions-item",36),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.name," ")}}function X(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",38),t._UZ(2,"i",39),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://",e.url,"",t.LSH)}}function dn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",40),t._UZ(2,"i",41),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://twitter.com/",e.twitterHandle,"",t.LSH)}}function gn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",42),t._UZ(2,"i",43),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://facebook.com/",e.facebookProfile,"",t.LSH)}}function un(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",44),t._UZ(2,"i",45),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://linkedin.com/in/",e.linkedinProfile,"",t.LSH)}}function ht(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",46),t._UZ(2,"i",47),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://orcid.org/",e.orcid,"",t.LSH)}}function mn(o,l){if(1&o&&(t.TgZ(0,"div",37),t.YNc(1,X,3,1,"ng-container",0),t.YNc(2,dn,3,1,"ng-container",0),t.YNc(3,gn,3,1,"ng-container",0),t.YNc(4,un,3,1,"ng-container",0),t.YNc(5,ht,3,1,"ng-container",0),t.qZA()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngIf",e.url),t.xp6(1),t.Q6J("ngIf",e.twitterHandle),t.xp6(1),t.Q6J("ngIf",e.facebookProfile),t.xp6(1),t.Q6J("ngIf",e.linkedinProfile),t.xp6(1),t.Q6J("ngIf",e.orcid)}}function _n(o,l){1&o&&(t.TgZ(0,"i",48),t._uU(1," None provided "),t.qZA())}function fn(o,l){if(1&o&&(t.TgZ(0,"div")(1,"nz-descriptions",30),t.YNc(2,pn,2,1,"nz-descriptions-item",31),t.TgZ(3,"nz-descriptions-item",32),t._uU(4),t.ALo(5,"enumToTitle"),t.qZA(),t.TgZ(6,"nz-descriptions-item",33),t.YNc(7,mn,6,5,"div",34),t.YNc(8,_n,2,0,"ng-template",null,35,t.W1O),t.qZA()()()),2&o){const e=t.MAs(9),r=t.oxw().ngIf;t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(1),t.Q6J("ngIf",r.name),t.xp6(2),t.hij(" ",t.lcZ(5,6,r.role)," "),t.xp6(3),t.Q6J("ngIf",r.url||r.twitterHandle||r.facebookProfile||r.linkedinProfile||r.orcid)("ngIfElse",e)}}function hn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(3);return t.KtG(c.updateProfileModalVisible=!0)}),t._uU(1," Edit Profile "),t.qZA()}}function zn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-avatar-uploader",52),t.NdJ("uploadComplete",function(c){t.CHM(e);const d=t.oxw(3);return t.KtG(d.profileUploadComplete(c))}),t.qZA()}}function Cn(o,l){1&o&&(t.ynx(0),t.YNc(1,hn,2,0,"button",49),t.YNc(2,zn,1,0,"cvc-avatar-uploader",50),t.BQk())}function vn(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.bio," ")}}function xn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User has not provided a bio."),t.qZA()(),t.BQk())}function Tn(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.areaOfExpertise)," ")}}function bn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function Un(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.country.name," ")}}function Mn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function yn(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",58),t.ALo(2,"ngrxPush"),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",t.lcZ(2,2,e.organization$))}}function Zn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function An(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions",53)(1,"nz-descriptions-item",54),t.YNc(2,vn,2,1,"ng-container",0),t.YNc(3,xn,4,0,"ng-container",0),t.qZA(),t.TgZ(4,"nz-descriptions-item",55),t.YNc(5,Tn,3,3,"ng-container",0),t.YNc(6,bn,4,0,"ng-container",0),t.qZA(),t.TgZ(7,"nz-descriptions-item",56),t.YNc(8,Un,2,1,"ng-container",0),t.YNc(9,Mn,4,0,"ng-container",0),t.qZA(),t.TgZ(10,"nz-descriptions-item",57),t.YNc(11,yn,3,4,"ng-container",0),t.YNc(12,Zn,4,0,"ng-container",0),t.qZA()()),2&o){const e=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(2),t.Q6J("ngIf",e.bio),t.xp6(1),t.Q6J("ngIf",!e.bio),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.areaOfExpertise),t.xp6(1),t.Q6J("ngIf",!e.areaOfExpertise),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.country),t.xp6(1),t.Q6J("ngIf",!e.country),t.xp6(1),t.Q6J("nzSpan",4)("nzTitle","Organization"+(e.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",e.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===e.organizations.length)}}function Pn(o,l){if(1&o&&(t._UZ(0,"i",28),t.ALo(1,"lowercase"),t.ALo(2,"entityColor"),t.ALo(3,"titlecase"),t._uU(4," Editor Conflict of Interest Statement ")),2&o){const e=t.oxw(3).ngIf;t.Q6J("nzType","civic-"+t.lcZ(1,2,e.role))("nzTwotoneColor",t.lcZ(2,4,t.lcZ(3,6,e.role)))}}function Sn(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",64),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(5);return t.KtG(c.updateCoiModalVisible=!0)}),t._uU(2," Update COI "),t.qZA(),t.BQk()}}function Nn(o,l){if(1&o&&(t.YNc(0,Sn,3,0,"ng-container",0),t.ALo(1,"ngrxPush")),2&o){const e=t.oxw(4);t.Q6J("ngIf",t.lcZ(1,1,e.ownProfile$))}}function On(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(4).ngIf;t.xp6(1),t.hij(" ",e.mostRecentConflictOfInterestStatement.coiStatement," ")}}function In(o,l){1&o&&t._uU(0," I do not have any potential conflicts of interest. ")}function wn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2),t.ALo(3,"enumToTitle"),t.qZA(),t.TgZ(4,"nz-descriptions-item",66),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"nz-descriptions-item",67),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"nz-descriptions-item",68),t.YNc(11,On,2,1,"ng-container",69),t.YNc(12,In,1,0,"ng-template",null,70,t.W1O),t.qZA(),t.BQk()),2&o){const e=t.MAs(13),r=t.oxw(3).ngIf;t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",3),t.xp6(1),t.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",e)}}function Jn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2," None on file. "),t.qZA(),t.BQk()),2&o&&(t.xp6(1),t.Q6J("nzSpan",3))}function i(o,l){if(1&o&&(t.TgZ(0,"nz-card",60),t.YNc(1,Pn,5,8,"ng-template",null,61,t.W1O),t.YNc(3,Nn,2,3,"ng-template",null,62,t.W1O),t.TgZ(5,"nz-descriptions",63),t.YNc(6,wn,14,17,"ng-container",0),t.YNc(7,Jn,3,1,"ng-container",0),t.qZA()()),2&o){const e=t.MAs(2),r=t.MAs(4),c=t.oxw(2).ngIf;t.Q6J("nzTitle",e)("nzExtra",r),t.xp6(5),t.Q6J("nzBordered",!0)("nzColumn",3),t.xp6(1),t.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),t.xp6(1),t.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function p(o,l){1&o&&(t.ynx(0),t.YNc(1,i,8,6,"nz-card",59),t.BQk())}function a(o,l){1&o&&(t.TgZ(0,"div",74)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function g(o,l){if(1&o&&(t.TgZ(0,"div",71),t._uU(1," Ranked Activities "),t.TgZ(2,"span",48),t._UZ(3,"i",72),t.qZA()(),t.YNc(4,a,17,0,"ng-template",null,73,t.W1O)),2&o){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}function u(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Edit Profile"),t.qZA())}function m(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-user-profile-form",75),t.NdJ("profileUpdatedEvent",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.profileUpdated())}),t.qZA()}if(2&o){const e=t.oxw().ngIf;t.Q6J("user",e)}}const $n=function(){return[8,8]};function Rn(o,l){if(1&o){const e=t.EpF();t.ynx(0),t._UZ(1,"cvc-section-navigation",4),t.TgZ(2,"nz-page-header",5)(3,"nz-page-header-content")(4,"nz-row",6)(5,"nz-col",7)(6,"nz-space",8),t.YNc(7,cn,1,2,"cvc-user-avatar",9),t.YNc(8,ln,8,9,"div",10),t.YNc(9,fn,10,8,"div",11),t.YNc(10,Cn,3,0,"ng-container",0),t.ALo(11,"ngrxPush"),t.qZA()(),t.TgZ(12,"nz-col",12)(13,"nz-space",13),t.YNc(14,An,13,13,"nz-descriptions",14),t.YNc(15,p,2,0,"ng-container",0),t.qZA()(),t.TgZ(16,"nz-col",15)(17,"nz-descriptions",16)(18,"nz-descriptions-item",17),t._UZ(19,"cvc-stats-card",18),t.qZA(),t.YNc(20,g,6,1,"ng-template",null,19,t.W1O),t.qZA()()(),t.TgZ(22,"nz-row",20)(23,"nz-col",21),t._UZ(24,"cvc-tab-navigation",22),t.ALo(25,"ngrxPush"),t.TgZ(26,"div",23),t._UZ(27,"router-outlet"),t.qZA()()()()(),t.TgZ(28,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.updateProfileModalVisible=c)})("nzOnCancel",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.handleProfileModalCancel())}),t.YNc(29,u,2,0,"ng-template",null,24,t.W1O),t.YNc(31,m,1,1,"ng-template",null,25,t.W1O),t.qZA(),t.BQk()}if(2&o){const e=l.ngIf,r=t.MAs(21),c=t.MAs(30),d=t.MAs(32),f=t.oxw();t.xp6(1),t.Q6J("displayName",e.displayName),t.xp6(3),t.Q6J("nzGutter",t.DdM(16,$n)),t.xp6(6),t.Q6J("ngIf",t.lcZ(11,12,f.ownProfile$)),t.xp6(5),t.Q6J("ngIf","EDITOR"===e.role||"ADMIN"===e.role),t.xp6(3),t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("cvcStats",e.statsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(25,14,f.tabs$)),t.xp6(4),t.Q6J("nzVisible",f.updateProfileModalVisible)("nzContent",d)("nzTitle",c)("nzFooter",null)}}function Yn(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Fn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-user-coi-form",76),t.NdJ("coiUpdatedEvent",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.coiUpdated())}),t.qZA()}}let Qn=((E=class{constructor(l,e,r){this.gql=l,this.viewerService=e,this.route=r,this.organization$=new at.X([]),this.ownProfile$=new at.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 at.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({userId:+c.userId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,ut.j)("loading"),(0,$.O)(!0)),this.user$=d.pipe((0,ut.j)("data","user")),this.user$.pipe((0,x.U)(f=>f?f.organizations.map(Y=>({id:Y.id,name:Y.name,link:Y.url})):[]),(0,mt.t)(this)).subscribe(f=>{this.organization$.next(f)}),this.viewerSub=this.viewerService.viewer$.subscribe(f=>{f.id===+c.userId?(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0)):this.ownProfile$.next(!1)})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(l){l?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}).\u0275fac=function(l){return new(l||E)(t.Y36(h.sLD),t.Y36(Ht.a),t.Y36(v.gz))},E.\u0275cmp=t.Xpm({type:E,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"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["noLinks",""],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["statementTitle",""],["updateCoi",""],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(l,e){if(1&l&&(t.YNc(0,Rn,33,17,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){return e.updateCoiModalVisible=c})("nzOnCancel",function(){return e.handleCoiModalCancel()}),t.YNc(3,Yn,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Fn,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&l){const r=t.MAs(4),c=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,e.user$)),t.xp6(2),t.Q6J("nzVisible",e.updateCoiModalVisible)("nzContent",c)("nzTitle",r)("nzFooter",null)}},dependencies:[_.O5,v.lC,C.t3,C.SK,n.$O,n.u5,y.NU,y.$1,T.R7,T.uj,U.bd,w.du,O.Ls,_t.ZU,ot.SY,ft.lU,Z.ix,G.w,J.dQ,jt.T,Wt.t,tn,nn.I,Ln.P,En.L,on,an.z,_.i8,_.rS,_.uU,Q.fM,sn.I,rn.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{flex-wrap:nowrap;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%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),E);Qn=(0,Bt.gn)([(0,mt.c)()],Qn);const Dn=[{path:"",component:Qn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:yt,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Tt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Ut,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Vt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ft,data:{breadcrumb:"Notifications"}}]}];let Vn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[v.Bz.forChild(Dn),v.Bz]}),o})();var Bn=s(6192),Hn=s(7950);let jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,v.Bz,Vn,S.L,C.Jb,Bn.YS,n.KJ,y.zf,T.q6,U.vh,pt.S,w.Qp,lt.A2,O.PV,_t.ZJ,ot.cg,ft.$6,Z.sL,Hn.x,Ct.e,zt,I.s,F.D,P.c,D.H,ct,b.L,vt.C]}),o})()},5167:(kn,tt,s)=>{s.r(tt),s.d(tt,{UsersModule:()=>Jn});var N,_=s(6814),F=s(4190),n=s(5879),v=s(6254),P=s(551),y=s(95),D=s(2840),Z=s(855),O=s(2574),t=s(2392),ct=s(655),T=s(313),b=s(1791),C=s(5619),I=s(7398),U=s(6223),lt=s(3640),pt=s(6928),w=s(2962),z=s(6976),S=s(9691),V=s(804),k=s(6109),dt=s(356),B=s(8091);function nt(i,p){1&i&&n.GkF(0)}function zt(i,p){1&i&&n.GkF(0)}function Ct(i,p){1&i&&n.GkF(0)}function vt(i,p){1&i&&n.GkF(0)}function xt(i,p){if(1&i&&(n.TgZ(0,"span",13),n._uU(1),n.qZA(),n.TgZ(2,"span",14),n._UZ(3,"i",15),n.qZA()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",a.title," "),n.xp6(2),n.Q6J("nzTooltipTitle",a.info)}}const Tt=function(){return[0,5]};function h(i,p){if(1&i&&(n.TgZ(0,"nz-badge",20),n._UZ(1,"nz-avatar",21),n.qZA()),2&i){const a=n.oxw().$implicit;n.Q6J("nzCount",a.rank)("nzOffset",n.DdM(3,Tt)),n.xp6(1),n.Q6J("nzSrc",a.profileImagePath)}}function bt(i,p){if(1&i&&(n.TgZ(0,"nz-list-item"),n.YNc(1,h,2,4,"ng-template",null,16,n.W1O),n.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),n._UZ(5,"cvc-user-tag",18),n.qZA()(),n.TgZ(6,"ul",19)(7,"nz-list-item-action")(8,"span",14),n._uU(9),n.ALo(10,"number"),n.qZA()()()()),2&i){const a=p.$implicit,g=n.MAs(2);n.xp6(3),n.Q6J("nzAvatar",g),n.xp6(2),n.Q6J("user",a.user),n.xp6(4),n.hij(" Count: ",n.lcZ(10,3,a.actionCount)," ")}}function Ut(i,p){if(1&i&&n._UZ(0,"nz-list-empty",22),2&i){n.oxw();const a=n.MAs(7);n.Q6J("nzNoResult",a)}}function Mt(i,p){1&i&&n._UZ(0,"nz-empty",23)}const yt=function(i){return{"list-height-block":i}};function et(i,p){if(1&i&&(n.YNc(0,xt,4,2,"ng-template",null,7,n.W1O),n.TgZ(2,"nz-list",8)(3,"div",9),n.YNc(4,bt,11,5,"nz-list-item",10),n.qZA(),n.YNc(5,Ut,1,1,"nz-list-empty",11),n.YNc(6,Mt,1,0,"ng-template",null,12,n.W1O),n.qZA()),2&i){const a=p.$implicit,g=n.MAs(1);n.xp6(2),n.Q6J("nzHeader",g)("nzLoading",a.loading),n.xp6(1),n.Q6J("ngClass",n.VKq(5,yt,a.rows.length>0)),n.xp6(1),n.Q6J("ngForOf",a.rows),n.xp6(1),n.Q6J("ngIf",0===a.rows.length)}}function H(i,p){1&i&&(n.TgZ(0,"span",13)(1,"strong"),n._uU(2,"Contributor Curation Activity Leaderboards"),n.qZA()())}function x(i,p){if(1&i){const a=n.EpF();n.TgZ(0,"span"),n._uU(1,"Time: "),n.qZA(),n.TgZ(2,"nz-select",24),n.NdJ("ngModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.timeWindow$.next(u))}),n.ALo(3,"ngrxPush"),n._UZ(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),n.qZA()}if(2&i){const a=n.oxw();n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",n.lcZ(3,2,a.timeWindow$))}}const j=function(){return[8,8]},$=function(i){return{$implicit:i}};let W=((N=class{constructor(p,a,g,u){this.commentsGQL=p,this.revisionsGQL=a,this.moderationGQL=g,this.submissionsGQL=u,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=T.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new C.X(this.initialWindow),this.timeWindow$.pipe((0,b.t)(this)).subscribe(m=>{this.commentsQueryRef.refetch({window:m}),this.revisionsQueryRef.refetch({window:m}),this.moderationQueryRef.refetch({window:m}),this.submissionsQueryRef.refetch({window:m})}),this.commentsView$=new C.X(this.initialCommentsView),this.revisionsView$=new C.X(this.initialRevisionsView),this.moderationView$=new C.X(this.initialModerationView),this.submissionsView$=new C.X(this.initialSubmissionsView)}ngOnInit(){const p=a=>({rank:a.rank,actionCount:a.actionCount,profileImagePath:a.profileImagePath,name:a.name,user:{id:a.id,displayName:a.displayName,role:a.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.commentsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.commentsView$.next(a)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.moderationLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.moderationView$.next(a)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.revisionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.revisionsView$.next(a)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.submissionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.submissionsView$.next(a))}}).\u0275fac=function(p){return new(p||N)(n.Y36(T.ce2),n.Y36(T.VGG),n.Y36(T.SAN),n.Y36(T.da2))},N.\u0275cmp=n.Xpm({type:N,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(p,a){if(1&p&&(n.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),n.YNc(3,nt,1,0,"ng-container",3),n.ALo(4,"ngrxPush"),n.qZA(),n.TgZ(5,"nz-col",2),n.YNc(6,zt,1,0,"ng-container",3),n.ALo(7,"ngrxPush"),n.qZA(),n.TgZ(8,"nz-col",2),n.YNc(9,Ct,1,0,"ng-container",3),n.ALo(10,"ngrxPush"),n.qZA(),n.TgZ(11,"nz-col",2),n.YNc(12,vt,1,0,"ng-container",3),n.ALo(13,"ngrxPush"),n.qZA()()(),n.YNc(14,et,8,7,"ng-template",null,4,n.W1O),n.YNc(16,H,3,0,"ng-template",null,5,n.W1O),n.YNc(18,x,8,4,"ng-template",null,6,n.W1O)),2&p){const g=n.MAs(15),u=n.MAs(17),m=n.MAs(19);n.Q6J("nzTitle",u)("nzExtra",m),n.xp6(1),n.Q6J("nzGutter",n.DdM(19,j)),n.xp6(2),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(20,$,n.lcZ(4,11,a.commentsView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(22,$,n.lcZ(7,13,a.revisionsView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(24,$,n.lcZ(10,15,a.moderationView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(26,$,n.lcZ(13,17,a.submissionsView$)))}},dependencies:[_.mk,_.sg,_.O5,_.tP,U.JJ,U.On,lt.x7,pt.Dz,y.t3,y.SK,w.bd,z.n_,z.I2,z.AA,z.yi,z.IO,z.nk,z.KC,S.Ip,S.Vq,t.ZU,V.p9,P.Ls,k.SY,dt.I,_.JJ,B.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),N);W=(0,ct.gn)([(0,b.c)()],W);var L,ot=s(3145),G=s(4632),J=s(8645),it=s(5676),K=s(3997),Zt=s(812),At=s(836),Q=s(2181),Pt=s(3620),St=s(2460),R=s(4223),M=s(3740),gt=s(5695),Nt=s(6753),Ot=s(4764),It=s(8516),wt=s(3489),Jt=s(9857),Qt=s(4997),Lt=s(4527),Et=s(4082),kt=s(5573);function $t(i,p){}function Rt(i,p){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",5),n.YNc(2,$t,0,0,"ng-template",6),n.qZA(),n.BQk()),2&i){n.oxw();const a=n.MAs(6),g=n.MAs(8),u=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",a)("nzExtra",g),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function q(i,p){}const Yt=function(i){return{height:i}};function Ft(i,p){if(1&i&&(n.TgZ(0,"div",7)(1,"nz-card",8),n.YNc(2,q,0,0,"ng-template",6),n.qZA()()),2&i){const a=n.oxw(),g=n.MAs(6),u=n.MAs(8),m=n.MAs(4);n.Q6J("ngStyle",n.VKq(4,Yt,a.cvcHeight)),n.xp6(1),n.Q6J("nzTitle",g)("nzExtra",u),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Dt(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",a.name," ")}}function Vt(i,p){1&i&&(n.TgZ(0,"i",39),n._uU(1,"Not specified"),n.qZA())}function Bt(i,p){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"cvc-tag-overflow",40),n.qZA()),2&i){const a=n.oxw().$implicit,g=n.oxw(2);n.xp6(1),n.Q6J("maxDisplayCount",1)("tags",a.organizations)("matchingText",g.orgNameInput)}}function ut(i,p){1&i&&(n.TgZ(0,"i",39),n._uU(1,"None specified"),n.qZA())}function at(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"timeAgo"),n.BQk()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,a.mostRecentActionTimestamp)," ")}}function mt(i,p){1&i&&n._uU(0," -- ")}function Ht(i,p){if(1&i&&(n.TgZ(0,"tr",31)(1,"td",23),n._UZ(2,"cvc-user-tag",32),n.qZA(),n.TgZ(3,"td",33),n.YNc(4,Dt,2,1,"ng-container",0),n.YNc(5,Vt,2,0,"ng-template",null,34,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,Bt,2,3,"div",0),n.YNc(9,ut,2,0,"ng-template",null,35,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td",36),n.YNc(15,at,3,3,"ng-container",0),n.YNc(16,mt,1,0,"ng-template",null,37,n.W1O),n.qZA(),n.TgZ(18,"td",38),n._uU(19),n.qZA(),n.TgZ(20,"td",38),n._uU(21),n.qZA()()),2&i){const a=p.$implicit,g=n.MAs(6),u=n.MAs(10),m=n.MAs(17);n.xp6(2),n.Q6J("user",a),n.xp6(2),n.Q6J("ngIf",a.name)("ngIfElse",g),n.xp6(4),n.Q6J("ngIf",a.organizations.length>0)("ngIfElse",u),n.xp6(4),n.hij(" ",n.lcZ(13,10,a.role)," "),n.xp6(3),n.Q6J("ngIf",a.mostRecentActionTimestamp)("ngIfElse",m),n.xp6(4),n.hij(" ",a.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",a.statsHash.revisions," ")}}const _t=function(){return[]},ft=function(){return{x:"680px",y:"800px"}};function jt(i,p){if(1&i){const a=n.EpF();n.TgZ(0,"nz-table",9,10),n.NdJ("cvcTableScrollOnScroll",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.scrollEvent$.next(u))}),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.ALo(5,"ngrxPush"),n.TgZ(6,"thead",11),n.NdJ("nzSortOrderChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.sortChange$.next(u))}),n.TgZ(7,"tr",12)(8,"th",13),n._uU(9," User "),n.qZA(),n.TgZ(10,"th",14),n._uU(11," Name "),n.qZA(),n.TgZ(12,"th",15),n._uU(13,"Organizations"),n.qZA(),n.TgZ(14,"th",16),n._uU(15," Role "),n.qZA(),n.TgZ(16,"th",17),n._uU(17," Last Action "),n.qZA(),n.TgZ(18,"th",18),n._UZ(19,"i",19),n._uU(20," Count "),n.qZA(),n.TgZ(21,"th",20),n._UZ(22,"i",21),n._uU(23," Count "),n.qZA()(),n.TgZ(24,"tr",22),n._UZ(25,"th",23),n.TgZ(26,"th")(27,"cvc-clearable-input-filter",24),n.NdJ("inputModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.nameInput=u)})("inputModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())}),n.qZA()(),n.TgZ(28,"th")(29,"cvc-clearable-input-filter",24),n.NdJ("inputModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.orgNameInput=u)})("inputModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())}),n.qZA()(),n.TgZ(30,"th")(31,"nz-select",25),n.NdJ("ngModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())})("ngModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.roleInput=u)}),n._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),n.qZA()(),n._UZ(35,"th")(36,"th",29)(37,"th",29),n.qZA()(),n.TgZ(38,"tbody"),n.YNc(39,Ht,22,12,"ng-template",30),n.qZA()()}if(2&i){const a=n.oxw();n.Q6J("nzData",n.lcZ(2,21,a.row$)||n.DdM(29,_t))("nzLoading",!n.lcZ(3,23,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",n.lcZ(4,25,a.pageInfo$))("cvcTableScrollToIndex",n.lcZ(5,27,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",n.DdM(30,ft))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(10),n.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",a.sortColumns.Role)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",a.sortColumns.LastAction)("nzSortFn",!0),n.xp6(11),n.Q6J("inputModel",a.nameInput),n.xp6(2),n.Q6J("inputModel",a.orgNameInput),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",a.roleInput)}}function Wt(i,p){}function A(i,p){if(1&i&&(n.ynx(0),n.YNc(1,Wt,0,0,"ng-template",6),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function Gt(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function st(i,p){if(1&i&&(n.YNc(0,A,2,1,"ng-container",41),n.YNc(1,Gt,2,1,"ng-container",41),n.TgZ(2,"span",42),n._UZ(3,"cvc-table-counts",43),n.qZA()),2&i){const a=n.oxw();n.Q6J("ngIf",a.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",a.cvcTitle),n.xp6(2),n.Q6J("cvcTableCountsConnection",a.connection$)}}function Kt(i,p){1&i&&(n.TgZ(0,"nz-tag",46),n._UZ(1,"i",47),n.TgZ(2,"span"),n._uU(3,"Loading\u2026"),n.qZA()())}function qt(i,p){if(1&i&&(n.YNc(0,Kt,4,0,"nz-tag",44),n.ALo(1,"ngrxPush"),n._UZ(2,"cvc-no-more-rows",45),n.ALo(3,"ngrxPush")),2&i){const a=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,a.moreLoading$)),n.xp6(2),n.Q6J("cvcShowTag",n.lcZ(3,4,a.noMoreRows$))}}let rt=((L=class{set initialUserFilters(p){p&&Object.assign(this,p)}constructor(p,a){this.gql=p,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=T.IRu,this.noMoreRows$=new C.X(!1),this.scrollEvent$=new C.X("stop"),this.sortChange$=new J.x,this.filterChange$=new J.x,this.scrollIndex$=new J.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:T.IRu.LastAction,direction:T.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,Zt.o)(p=>!1!==p,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,At.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","users"),(0,Q.h)(it.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,Q.h)(it.ep),(0,I.U)(p=>p.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,Q.h)(it.ep)),this.sortChange$.pipe((0,b.t)(this)).subscribe(p=>{this.queryRef.refetch({sortBy:(0,G._)(p)})}),this.filterChange$.pipe((0,Pt.b)(500),(0,b.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(p=>"stop"!==p),(0,K.x)(),(0,b.t)(this)).subscribe(p=>{this.isScrolling=p,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(p=>"bottom"===p),(0,St.M)(this.pageInfo$),(0,I.U)(([p,a])=>a),(0,b.t)(this)).subscribe(p=>{p.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){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}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(p,a){return a?.id}}).\u0275fac=function(p){return new(p||L)(n.Y36(T.tJ6),n.Y36(n.sBO))},L.\u0275cmp=n.Xpm({type:L,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nameElse",""],["orgElse",""],["nzAlign","right"],["eventElse",""],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(p,a){if(1&p&&(n.YNc(0,Rt,3,3,"ng-container",0),n.YNc(1,Ft,3,6,"ng-template",null,1,n.W1O),n.YNc(3,jt,40,31,"ng-template",null,2,n.W1O),n.YNc(5,st,4,3,"ng-template",null,3,n.W1O),n.YNc(7,qt,4,6,"ng-template",null,4,n.W1O)),2&p){const g=n.MAs(2);n.Q6J("ngIf",!a.cvcHeight)("ngIfElse",g)}},dependencies:[_.O5,_.tP,_.PC,U.JJ,U.On,Z.w,w.bd,P.Ls,S.Ip,S.Vq,M.N8,M.qD,M.Uo,M._C,M.Om,M.p0,M.$Z,M.zu,M.qn,M.UX,gt.j,k.SY,t.ZU,Nt.D,Ot.q,It.p,wt.H,Jt.B,Qt.y,Lt.T,dt.I,B.fM,Et.I,kt.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),L);rt=(0,ct.gn)([(0,b.c)()],rt);var Xt=s(2616);function tn(i,p){1&i&&(n.TgZ(0,"a",12),n._UZ(1,"i",13),n._uU(2," View Contributor Docs "),n.qZA())}const nn=function(){return[8,16]},en=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-users"]],decls:1,vars:0,template:function(a,g){1&a&&n._UZ(0,"router-outlet")},dependencies:[F.lC],encapsulation:2}),i})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 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"],[3,"nzGutter"],["nzSpan","24"],["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(a,g){1&a&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n._UZ(5,"i",3),n.ALo(6,"entityColor"),n.qZA(),n.TgZ(7,"nz-col",4)(8,"h2"),n._uU(9,"Contributors"),n.qZA(),n.TgZ(10,"p",5),n._uU(11," 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.TgZ(12,"nz-col",6)(13,"nz-space",7),n.YNc(14,tn,3,0,"a",8),n.qZA()()(),n.TgZ(15,"nz-row",9)(16,"nz-col",10),n._UZ(17,"cvc-user-leaderboards"),n.qZA(),n.TgZ(18,"nz-col",10),n._UZ(19,"cvc-users-table",11),n.qZA()()()()),2&a&&(n.xp6(5),n.Q6J("nzTwotoneColor",n.lcZ(6,3,"Curator")),n.xp6(5),n.Q6J("nzEllipsisRows",2),n.xp6(5),n.Q6J("nzGutter",n.DdM(5,nn)))},dependencies:[v.$O,v.u5,P.Ls,y.t3,y.SK,D.ix,Z.w,O.NU,O.$1,t.ZU,W,ot.I,rt,Xt.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{flex-wrap:nowrap;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:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(s.bind(s,7199)).then(i=>i.UsersDetailModule)}]}]}];let on=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[F.Bz.forChild(en),F.Bz]}),i})();var an=s(1106),sn=s(7856),rn=s(6067),E=s(9154),cn=s(2989),ln=s(366),pn=s(7950),X=s(2524),dn=s(9175),gn=s(4742),un=s(9312),ht=s(8706);let mn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,D.sL,w.vh,P.PV,S.LV,M.HQ,gt.X,k.cg,t.ZJ,dn.n,gn.c,sn.k,rn.X,E.y,an.L,X.s,cn.T,un.w,ln.$,pn.x,ht.W]}),i})();var _n=s(2419),fn=s(9382),hn=s(6987);let zn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,lt.mS,hn.S,O.zf,pt.Rt,y.Jb,w.vh,z.Ph,fn.we,S.LV,t.ZJ,V.Xo,P.PV,k.cg,X.s,ht.W]}),i})(),Cn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,v.KJ,P.PV,y.Jb,D.sL,O.zf,t.ZJ,zn,_n.D,mn,X.s]}),i})();var vn=s(5895);let xn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,P.PV,vn.s]}),i})();var Tn=s(7199),bn=s(9894);let Un=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,bn.t]}),i})();var Mn=s(1403);let yn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,Mn.Q]}),i})();var Zn=s(7240);let An=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,Zn.W]}),i})();var Pn=s(2669),Sn=s(1595),Nn=s(2612),On=s(3498),In=s(5528);let wn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,k.cg,Pn.j,y.Jb,D.sL,w.vh,P.PV,Nn.Wr,On.FT,In.E,X.s,Sn.N]}),i})(),Jn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,F.Bz,on,Cn,xn,Tn.UsersDetailModule,Un,yn,An,wn]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5167.760347aee0b68735.js b/server/public/5167.760347aee0b68735.js deleted file mode 100644 index 8e0914489..000000000 --- a/server/public/5167.760347aee0b68735.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5167],{7431:(Ee,tt,s)=>{s.r(tt),s.d(tt,{UsersDetailModule:()=>tn});var _=s(6814),F=s(2419),e=s(6254),v=s(4190),A=s(4059),y=s(2574),D=s(1022),Z=s(2840),N=s(551),t=s(5879);let st=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,Z.sL,N.PV]}),o})();var x=s(8125),b=s(1106),C=s(95),O=s(2524),U=s(2962),rt=s(2996),lt=s(6987),w=s(67),z=s(6223),S=s(3903),B=s(3599),k=s(3394),ct=s(7907),V=s(2669),P=s(9691),et=s(824);let Tt=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,z.u5,B.U5,z.UX,U.vh,S.L,ct.aF,Z.sL,V.j,P.LV,et.o7,k.B]}),o})();var xt=s(8788),bt=s(5572),Ut=s(1826);let Mt=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-assertions-table",0),2&n&&t.Q6J("userId",r.userId)},dependencies:[Ut.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=s(313),yt=s(7441);let Zt=(()=>{class o{constructor(n){this.route=n,this.mode=h.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(n,r){1&n&&t._UZ(0,"cvc-event-feed",0),2&n&&t.Q6J("userId",r.userId)("mode",r.mode)},dependencies:[yt.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var At=s(6822);let St=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-evidence-table",0),2&n&&t.Q6J("userId",r.userId)},dependencies:[At.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var nt=s(2024),H=s(5676),T=s(7398),j=s(2181),$=s(7921),W=s(7473),ot=s(6109),G=s(855),J=s(1958),it=s(2612),K=s(3498),Pt=s(4736),Nt=s(6794),Q=s(8091),Ot=s(7908),It=s(6116);function R(o,c){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t._uU(2),t.qZA()),2&o){const n=c.$implicit;t.xp6(1),t.Q6J("nzType",n.iconName),t.xp6(1),t.hij(" ",n.displayName," ")}}function M(o,c){1&o&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&o&&t.hij(" ",t.xi3(1,1,c.$implicit.id,"action-filter")," ")}function pt(o,c){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t.ALo(2,"iconNameForSubscribableEntity"),t._uU(3),t.qZA()),2&o){const n=c.$implicit;t.xp6(1),t.Q6J("nzType",t.lcZ(2,3,n.subjectWithCount.subject.__typename)),t.xp6(2),t.AsE(" ",n.subjectWithCount.subject.name," (",n.subjectWithCount.occuranceCount,") ")}}function wt(o,c){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const n=c.$implicit;t.xp6(1),t.hij(" ",n.displayName," ")}}function Jt(o,c){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const n=c.$implicit;t.xp6(1),t.hij(" ",n.name," ")}}function Qt(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(n);const l=t.oxw(2);return t.KtG(l.bulkMarkRead())}),t._UZ(1,"i",19),t._uU(2,"Mark as read "),t.qZA(),t.TgZ(3,"button",18),t.NdJ("click",function(){t.CHM(n);const l=t.oxw(2);return t.KtG(l.bulkMarkUnread())}),t._UZ(4,"i",19),t._uU(5,"Mark as unread "),t.qZA(),t.TgZ(6,"button",18),t.NdJ("click",function(){t.CHM(n);const l=t.oxw(2);return t.KtG(l.bulkUnsubscribe())}),t._UZ(7,"i",20),t._uU(8,"Unsubscribe "),t.qZA(),t._uU(9," Check all "),t.TgZ(10,"label",21),t.NdJ("ngModelChange",function(l){t.CHM(n);const d=t.oxw(2);return t.KtG(d.allChecked=l)})("nzCheckedChange",function(l){t.CHM(n);const d=t.oxw(2);return t.KtG(d.onCheckAllCheckBoxClicked(l))}),t.qZA()}if(2&o){const n=t.oxw(2);t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(4),t.Q6J("ngModel",n.allChecked)("nzIndeterminate",n.someChecked)}}function Lt(o,c){if(1&o&&t._UZ(0,"i",32),2&o){const n=t.oxw().$implicit;t.Q6J("nzType","SUBSCRIPTION"===n.key.type?"book":"notification")("nzTheme",n.key.seen?"outline":"twotone")}}function Et(o,c){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",33),t.NdJ("click",function(){t.CHM(n);const l=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsUnread(l.key.id))}),t._UZ(2,"i",34),t.qZA(),t.BQk()}}function kt(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(n);const l=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsRead(l.key.id))}),t._UZ(1,"i",19),t.qZA()}}function $t(o,c){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",36),t.NdJ("click",function(){t.CHM(n);const l=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.unsubscribe(l.key.subscription.subscribable.id,l.key.subscription.subscribable.__typename))}),t._UZ(2,"i",20),t.qZA(),t.BQk()}if(2&o){const n=t.oxw().$implicit;t.xp6(1),t.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",n.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Rt(o,c){1&o&&(t.TgZ(0,"button",37),t._UZ(1,"i",20),t.qZA())}function Yt(o,c){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"nz-timeline-item",23),t.YNc(2,Lt,1,2,"ng-template",null,24,t.W1O),t.TgZ(4,"nz-row")(5,"nz-col",25),t._UZ(6,"cvc-event-timeline-item",26),t.qZA(),t.TgZ(7,"nz-col",27),t.YNc(8,Et,3,0,"ng-container",28),t.YNc(9,kt,2,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(11,"nz-col",27),t.YNc(12,$t,3,1,"ng-container",28),t.YNc(13,Rt,2,0,"ng-template",null,30,t.W1O),t.TgZ(15,"label",31),t.NdJ("ngModelChange",function(l){const f=t.CHM(n).$implicit;return t.KtG(f.value.checked=l)})("nzCheckedChange",function(l){const f=t.CHM(n).$implicit,Y=t.oxw(3);return t.KtG(Y.onNotificationCheckBoxClicked(f.key.id,l))}),t.qZA()()()(),t.BQk()}if(2&o){const n=c.$implicit,r=t.MAs(3),l=t.MAs(10),d=t.MAs(14);t.xp6(1),t.Q6J("nzDot",r)("nzColor",n.key.seen?"gray":"blue"),t.xp6(5),t.Q6J("event",n.key.event),t.xp6(2),t.Q6J("ngIf",n.key.seen)("ngIfElse",l),t.xp6(4),t.Q6J("ngIf",n.key.subscription)("ngIfElse",d),t.xp6(3),t.Q6J("ngModel",n.value.checked)}}function L(o,c){if(1&o&&(t.TgZ(0,"nz-timeline"),t.YNc(1,Yt,16,8,"ng-container",22),t.ALo(2,"keyvalue"),t.qZA()),2&o){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,n))}}function Ft(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"div",39)(1,"button",40),t.NdJ("click",function(){t.CHM(n);const l=t.oxw().ngIf,d=t.oxw(2);return t.KtG(d.fetchMore(l.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function Dt(o,c){if(1&o&&(t.ynx(0),t.YNc(1,Ft,3,0,"div",38),t.BQk()),2&o){const n=c.ngIf;t.xp6(1),t.Q6J("ngIf",n.hasNextPage&&n.endCursor)}}const q=function(){return[]};function Bt(o,c){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-row")(4,"nz-button-group",4)(5,"button",5),t.NdJ("click",function(){t.CHM(n);const l=t.oxw();return t.KtG(l.setIncludeRead(!1))}),t._uU(6," Unread "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){t.CHM(n);const l=t.oxw();return t.KtG(l.setIncludeRead(!0))}),t._uU(8," All "),t.qZA()()(),t.TgZ(9,"nz-row")(10,"nz-col",6)(11,"cvc-participant-list",7),t.NdJ("participantSelectedEvent",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.onNotificationReasonSelected(l))}),t.YNc(12,R,3,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.onActionSelected(l))}),t.ALo(15,"ngrxPush"),t.YNc(16,M,2,4,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(18,"cvc-participant-list",10),t.NdJ("participantSelectedEvent",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.onNotificationSubjectSelected(l))}),t.ALo(19,"ngrxPush"),t.YNc(20,pt,4,5,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(22,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.onOriginatingUserSelected(l))}),t.ALo(23,"ngrxPush"),t.YNc(24,wt,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(26,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.onOrganizationSelected(l))}),t.ALo(27,"ngrxPush"),t.YNc(28,Jt,2,1,"ng-template",null,8,t.W1O),t.qZA()()()(),t.TgZ(30,"nz-col",13)(31,"nz-card",14),t.YNc(32,Qt,11,5,"ng-template",null,15,t.W1O),t.TgZ(34,"nz-row",2)(35,"nz-col",16),t.YNc(36,L,3,3,"nz-timeline",1),t.YNc(37,Dt,2,1,"ng-container",1),t.ALo(38,"ngrxPush"),t.qZA()()()()(),t.BQk()}if(2&o){const n=c.ngIf,r=t.MAs(33),l=t.oxw();t.xp6(1),t.Q6J("nzGutter",25),t.xp6(4),t.Q6J("nzType",l.includeReadInput?"default":"primary"),t.xp6(2),t.Q6J("nzType",l.includeReadInput?"primary":"default"),t.xp6(4),t.Q6J("participantList",l.notificationTypes),t.xp6(3),t.Q6J("participantList",t.lcZ(15,12,l.actions$)||t.DdM(22,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(19,14,l.notificationSubjects$)||t.DdM(23,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(23,16,l.originatingUsers$)||t.DdM(24,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(27,18,l.organizations$)||t.DdM(25,q)),t.xp6(5),t.Q6J("nzExtra",r),t.xp6(3),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",n.size>0),t.xp6(1),t.Q6J("ngIf",t.lcZ(38,20,l.pageInfo$))}}let Vt=(()=>{class o{constructor(n,r,l,d,f){this.route=n,this.gql=r,this.networkErrorService=l,this.updateNotificationStatusMuation=d,this.unsubscribeMutation=f,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new nt.U(l),this.unsubscribeMutator=new nt.U(l)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,T.U)(n=>n.data?.notifications),(0,j.h)(H.ep)),this.pageInfo$=this.connection$.pipe((0,T.U)(n=>n.pageInfo),(0,j.h)(H.ep)),this.notificationStateObservable$=this.results$.pipe((0,T.U)(n=>n.data),(0,j.h)(H.ep),(0,T.U)(({notifications:n})=>{let r=new Map;return n.edges.forEach(l=>{if(l.node){let d={checked:!1};r.set(l.node,d),this.notificationState.set(l.node,d)}}),r})),this.notificationSubjects$=this.results$.pipe((0,T.U)(n=>n.data),(0,j.h)(H.ep),(0,T.U)(({notifications:n})=>n.notificationSubjects.map(r=>({id:`${r.subject?.__typename}:${r.subject?.id}`,subjectWithCount:r})))),this.originatingUsers$=this.results$.pipe((0,T.U)(({data:n})=>n.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,T.U)(({data:n})=>n.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,T.U)(({data:n})=>n.notifications.organizations)),this.isLoading$=this.results$.pipe((0,T.U)(({loading:n})=>n),(0,$.O)(!0))}fetchMore(n){this.queryRef.fetchMore({variables:{after:n}})}setIncludeRead(n){this.includeReadInput=n,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(n){this.queryRef.refetch({notificationReason:n?n.type:void 0})}onNotificationSubjectSelected(n){let r;if(void 0!==n){let l=n.subjectWithCount.subject?.__typename;r={id:n.subjectWithCount.subject.id,entityType:h.o71[l]}}this.queryRef.refetch({originatingObject:r})}onOriginatingUserSelected(n){this.queryRef.refetch({originatingUserId:n?.id})}onActionSelected(n){this.queryRef.refetch({eventType:n?n.id:void 0})}onOrganizationSelected(n){this.queryRef.refetch({organizationId:n?.id})}markAsRead(n){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[n],newStatus:h.NQC.Read}})}markAsUnread(n){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[n],newStatus:h.NQC.Unread}})}unsubscribe(n,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:n,entityType:h.o71[r]}]}})}onNotificationCheckBoxClicked(n,r){let l=Array.from(this.notificationState.keys()).find(d=>d.id===n);if(l){let d=this.notificationState.get(l);d&&(d.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(d=>d.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(d=>d.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(d=>!d.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(n){n?this.checkAll():this.uncheckAll()}getCheckedIds(){let n=[];return this.notificationState.forEach((r,l)=>{r.checked&&n.push(l.id)}),n}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((n,r)=>{n.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((n,r)=>{n.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let n=[];this.notificationState.forEach((r,l)=>{r.checked&&l.subscription&&n.push({id:l.subscription.subscribable.id,entityType:h.o71[l.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:n}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz),t.Y36(h.yqR),t.Y36(W.Y),t.Y36(h.LiH),t.Y36(h.m$d))},o.\u0275cmp=t.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(n,r){1&n&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,Bt,39,26,"ng-container",1),t.ALo(3,"async"),t.qZA()),2&n&&(t.Q6J("nzSpinning",t.lcZ(1,2,r.isLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,r.notificationStateObservable$)))},dependencies:[_.sg,_.O5,z.JJ,z.On,ot.SY,V.W,C.t3,C.SK,Z.ix,Z.fY,G.w,J.dQ,U.bd,N.Ls,it.Ie,K.Zv,K.PD,Pt.t,Nt.l,_.Ov,_.Nd,Q.fM,Ot.R,It.j],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 Ht=s(4106);let jt=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-source-suggestions-table",0),2&n&&t.Q6J("submitterId",r.userId)},dependencies:[Ht.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Wt=s(655),dt=s(4223),at=s(5619),ut=s(1791),Gt=s(951),gt=s(2392),mt=s(7417),Kt=s(4527),qt=s(4989);function I(o){let c={value:void 0,unset:void 0};return o&&o.trim().length>0?c.value=o.trim():c.unset=!0,c}function _t(o){let c={value:void 0,unset:void 0};return void 0!==o?c.value=o:c.unset=!0,c}var Xt=s(8645),Ct=s(9773),Le=s(4755);function te(o,c){1&o&&t._UZ(0,"nz-alert",19)}function ee(o,c){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",20),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("errors",n.errorMessages)}}function ne(o,c){if(1&o&&t._UZ(0,"nz-option",21),2&o){const n=c.$implicit;t.Q6J("nzLabel",n.name)("nzValue",n.id)}}let oe=(()=>{class o{constructor(n,r,l){this.updateProfileGql=n,this.profileUpdatedEvent=new t.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Xt.x,this.updateProfileMutator=new nt.U(l),this.countries$=r.fetch().pipe((0,T.U)(({data:d})=>d.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 n={username:this.username,email:this.email,name:I(this.name),areaOfExpertise:_t(this.areaOfExpertise),orcid:I(this.orcid),url:I(this.url),bio:I(this.bio),countryId:_t(this.countryId),twitterHandle:I(this.twitterHandle),facebookProfile:I(this.facebookProfile),linkedinProfile:I(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:n});r.submitSuccess$.pipe((0,Ct.R)(this.destroy$)).subscribe(l=>{l&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,Ct.R)(this.destroy$)).subscribe(l=>{l&&(this.errorMessages=l,this.success=!1)}),r.isSubmitting$.pipe((0,Ct.R)(this.destroy$)).subscribe(l=>{this.loading=l})}}setInitialFormFields(){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=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(h.wbP),t.Y36(h.l4w),t.Y36(W.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,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"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["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(n,r){1&n&&(t.TgZ(0,"nz-card"),t.YNc(1,te,1,0,"nz-alert",0),t.YNc(2,ee,2,1,"nz-form-item",1),t.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t._uU(6,"Username"),t.qZA(),t.TgZ(7,"input",4),t.NdJ("ngModelChange",function(d){return r.username=d}),t.qZA()(),t.TgZ(8,"nz-form-item")(9,"nz-form-label"),t._uU(10,"Name"),t.qZA(),t.TgZ(11,"input",4),t.NdJ("ngModelChange",function(d){return r.name=d}),t.qZA()(),t.TgZ(12,"nz-form-item")(13,"nz-form-label",3),t._uU(14,"Email"),t.qZA(),t.TgZ(15,"input",4),t.NdJ("ngModelChange",function(d){return r.email=d}),t.qZA()(),t.TgZ(16,"nz-form-item")(17,"nz-form-label"),t._uU(18,"User Bio"),t.qZA(),t.TgZ(19,"textarea",5),t.NdJ("ngModelChange",function(d){return r.bio=d}),t.qZA()(),t.TgZ(20,"nz-form-item")(21,"nz-form-label"),t._uU(22,"Country"),t.qZA(),t.TgZ(23,"nz-select",6),t.NdJ("ngModelChange",function(d){return r.countryId=d}),t.YNc(24,ne,1,2,"nz-option",7),t.ALo(25,"ngrxPush"),t.qZA()(),t.TgZ(26,"nz-form-item")(27,"nz-form-label"),t._uU(28,"Area of Expertise"),t.qZA(),t.TgZ(29,"nz-select",8),t.NdJ("ngModelChange",function(d){return r.areaOfExpertise=d}),t._UZ(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.qZA()(),t.TgZ(33,"nz-form-item")(34,"nz-form-label"),t._uU(35,"ORCID Identifier"),t.qZA(),t.TgZ(36,"nz-input-group",12)(37,"input",13),t.NdJ("ngModelChange",function(d){return r.orcid=d}),t.qZA()()(),t.TgZ(38,"nz-form-item")(39,"nz-form-label"),t._uU(40,"Personal Website"),t.qZA(),t.TgZ(41,"input",4),t.NdJ("ngModelChange",function(d){return r.url=d}),t.qZA()(),t.TgZ(42,"nz-form-item")(43,"nz-form-label"),t._uU(44,"X/Twitter Handle"),t.qZA(),t.TgZ(45,"nz-input-group",14)(46,"input",15),t.NdJ("ngModelChange",function(d){return r.twitterHandle=d}),t.qZA()()(),t.TgZ(47,"nz-form-item")(48,"nz-form-label"),t._uU(49,"Facebook Profile"),t.qZA(),t.TgZ(50,"nz-input-group",16)(51,"input",15),t.NdJ("ngModelChange",function(d){return r.facebookProfile=d}),t.qZA()()(),t.TgZ(52,"nz-form-item")(53,"nz-form-label"),t._uU(54,"LinkedIn Profile"),t.qZA(),t.TgZ(55,"nz-input-group",17)(56,"input",15),t.NdJ("ngModelChange",function(d){return r.linkedinProfile=d}),t.qZA()()(),t.TgZ(57,"nz-form-item")(58,"button",18),t.NdJ("click",function(){return r.updateProfile()}),t._uU(59," Update Profile "),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",r.success),t.xp6(1),t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("nzSpinning",r.loading),t.xp6(4),t.Q6J("ngModel",r.username),t.xp6(4),t.Q6J("ngModel",r.name),t.xp6(4),t.Q6J("ngModel",r.email),t.xp6(4),t.Q6J("ngModel",r.bio),t.xp6(4),t.Q6J("ngModel",r.countryId),t.xp6(1),t.Q6J("ngForOf",t.lcZ(25,16,r.countries$)),t.xp6(5),t.Q6J("ngModel",r.areaOfExpertise),t.xp6(8),t.Q6J("ngModel",r.orcid),t.xp6(4),t.Q6J("ngModel",r.url),t.xp6(5),t.Q6J("ngModel",r.twitterHandle),t.xp6(5),t.Q6J("ngModel",r.facebookProfile),t.xp6(5),t.Q6J("ngModel",r.linkedinProfile),t.xp6(2),t.Q6J("disabled",r.loading||!r.username||!r.email))},dependencies:[_.sg,_.O5,z.Fj,z.JJ,z.On,C.t3,C.SK,B.Nx,B.iK,U.bd,S.r,Z.ix,G.w,J.dQ,V.W,P.Ip,P.Vq,et.Zp,et.gB,Le.V,Q.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 ie=s(3145),ae=s(5098),se=s(7458),re=s(9862);let le=(()=>{class o{constructor(n){this.http=n,this.uploadComplete=new t.vpe}processProfileImage(n){if(n&&n[0]){let r=new FormData;r.append("image",n[0],n[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(l=>this.uploadComplete.emit(!0),l=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(re.eN))},o.\u0275cmp=t.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","primary","nzBlock","",3,"click"]],template:function(n,r){if(1&n){const l=t.EpF();t.TgZ(0,"input",0,1),t.NdJ("change",function(){t.CHM(l);const f=t.MAs(1);return t.KtG(r.processProfileImage(f.files))}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){t.CHM(l);const f=t.MAs(1);return t.KtG(f.click())}),t._uU(3," Update Image\n"),t.qZA()}},dependencies:[Z.ix,G.w,J.dQ],encapsulation:2}),o})();var E,X=s(1607),ce=s(4082),pe=s(2616);function vt(o,c){if(1&o&&t._UZ(0,"cvc-user-avatar",26),2&o){const n=t.oxw().ngIf;t.Q6J("user",n)("size",128)}}function de(o,c){if(1&o&&(t.TgZ(0,"div",27),t._UZ(1,"i",28),t.ALo(2,"lowercase"),t.ALo(3,"entityColor"),t.ALo(4,"titlecase"),t.TgZ(5,"span",29)(6,"strong"),t._uU(7),t.qZA()()()),2&o){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("nzType","civic-"+t.lcZ(2,3,n.role))("nzTwotoneColor",t.lcZ(3,5,t.lcZ(4,7,n.role))),t.xp6(6),t.hij(" ",n.username,"")}}function ue(o,c){if(1&o&&(t.TgZ(0,"nz-descriptions-item",36),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.name," ")}}function ge(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"a",38),t._UZ(2,"i",39),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://",n.url,"",t.LSH)}}function me(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"a",40),t._UZ(2,"i",41),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://twitter.com/",n.twitterHandle,"",t.LSH)}}function _e(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"a",42),t._UZ(2,"i",43),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://facebook.com/",n.facebookProfile,"",t.LSH)}}function fe(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"a",44),t._UZ(2,"i",45),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://linkedin.com/in/",n.linkedinProfile,"",t.LSH)}}function he(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"a",46),t._UZ(2,"i",47),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://orcid.org/",n.orcid,"",t.LSH)}}function ze(o,c){if(1&o&&(t.TgZ(0,"div",37),t.YNc(1,ge,3,1,"ng-container",0),t.YNc(2,me,3,1,"ng-container",0),t.YNc(3,_e,3,1,"ng-container",0),t.YNc(4,fe,3,1,"ng-container",0),t.YNc(5,he,3,1,"ng-container",0),t.qZA()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngIf",n.url),t.xp6(1),t.Q6J("ngIf",n.twitterHandle),t.xp6(1),t.Q6J("ngIf",n.facebookProfile),t.xp6(1),t.Q6J("ngIf",n.linkedinProfile),t.xp6(1),t.Q6J("ngIf",n.orcid)}}function Ce(o,c){1&o&&(t.TgZ(0,"i",48),t._uU(1," None provided "),t.qZA())}function ve(o,c){if(1&o&&(t.TgZ(0,"div")(1,"nz-descriptions",30),t.YNc(2,ue,2,1,"nz-descriptions-item",31),t.TgZ(3,"nz-descriptions-item",32),t._uU(4),t.ALo(5,"enumToTitle"),t.qZA(),t.TgZ(6,"nz-descriptions-item",33),t.YNc(7,ze,6,5,"div",34),t.YNc(8,Ce,2,0,"ng-template",null,35,t.W1O),t.qZA()()()),2&o){const n=t.MAs(9),r=t.oxw().ngIf;t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(1),t.Q6J("ngIf",r.name),t.xp6(2),t.hij(" ",t.lcZ(5,6,r.role)," "),t.xp6(3),t.Q6J("ngIf",r.url||r.twitterHandle||r.facebookProfile||r.linkedinProfile||r.orcid)("ngIfElse",n)}}function Te(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(n);const l=t.oxw(3);return t.KtG(l.updateProfileModalVisible=!0)}),t._uU(1," Edit Profile "),t.qZA()}}function xe(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-avatar-uploader",52),t.NdJ("uploadComplete",function(l){t.CHM(n);const d=t.oxw(3);return t.KtG(d.profileUploadComplete(l))}),t.qZA()}}function be(o,c){1&o&&(t.ynx(0),t.YNc(1,Te,2,0,"button",49),t.YNc(2,xe,1,0,"cvc-avatar-uploader",50),t.BQk())}function Ue(o,c){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.bio," ")}}function Me(o,c){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User has not provided a bio."),t.qZA()(),t.BQk())}function ye(o,c){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",t.lcZ(2,1,n.areaOfExpertise)," ")}}function Ze(o,c){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function Ae(o,c){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.country.name," ")}}function Se(o,c){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function Pe(o,c){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",58),t.ALo(2,"ngrxPush"),t.BQk()),2&o){const n=t.oxw(3);t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",t.lcZ(2,2,n.organization$))}}function Ne(o,c){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function Oe(o,c){if(1&o&&(t.TgZ(0,"nz-descriptions",53)(1,"nz-descriptions-item",54),t.YNc(2,Ue,2,1,"ng-container",0),t.YNc(3,Me,4,0,"ng-container",0),t.qZA(),t.TgZ(4,"nz-descriptions-item",55),t.YNc(5,ye,3,3,"ng-container",0),t.YNc(6,Ze,4,0,"ng-container",0),t.qZA(),t.TgZ(7,"nz-descriptions-item",56),t.YNc(8,Ae,2,1,"ng-container",0),t.YNc(9,Se,4,0,"ng-container",0),t.qZA(),t.TgZ(10,"nz-descriptions-item",57),t.YNc(11,Pe,3,4,"ng-container",0),t.YNc(12,Ne,4,0,"ng-container",0),t.qZA()()),2&o){const n=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(2),t.Q6J("ngIf",n.bio),t.xp6(1),t.Q6J("ngIf",!n.bio),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",n.areaOfExpertise),t.xp6(1),t.Q6J("ngIf",!n.areaOfExpertise),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",n.country),t.xp6(1),t.Q6J("ngIf",!n.country),t.xp6(1),t.Q6J("nzSpan",4)("nzTitle","Organization"+(n.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",n.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===n.organizations.length)}}function i(o,c){if(1&o&&(t._UZ(0,"i",28),t.ALo(1,"lowercase"),t.ALo(2,"entityColor"),t.ALo(3,"titlecase"),t._uU(4," Editor Conflict of Interest Statement ")),2&o){const n=t.oxw(3).ngIf;t.Q6J("nzType","civic-"+t.lcZ(1,2,n.role))("nzTwotoneColor",t.lcZ(2,4,t.lcZ(3,6,n.role)))}}function p(o,c){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",64),t.NdJ("click",function(){t.CHM(n);const l=t.oxw(5);return t.KtG(l.updateCoiModalVisible=!0)}),t._uU(2," Update COI "),t.qZA(),t.BQk()}}function a(o,c){if(1&o&&(t.YNc(0,p,3,0,"ng-container",0),t.ALo(1,"ngrxPush")),2&o){const n=t.oxw(4);t.Q6J("ngIf",t.lcZ(1,1,n.ownProfile$))}}function u(o,c){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(4).ngIf;t.xp6(1),t.hij(" ",n.mostRecentConflictOfInterestStatement.coiStatement," ")}}function g(o,c){1&o&&t._uU(0," I do not have any potential conflicts of interest. ")}function m(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2),t.ALo(3,"enumToTitle"),t.qZA(),t.TgZ(4,"nz-descriptions-item",66),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"nz-descriptions-item",67),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"nz-descriptions-item",68),t.YNc(11,u,2,1,"ng-container",69),t.YNc(12,g,1,0,"ng-template",null,70,t.W1O),t.qZA(),t.BQk()),2&o){const n=t.MAs(13),r=t.oxw(3).ngIf;t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",3),t.xp6(1),t.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",n)}}function ke(o,c){1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2," None on file. "),t.qZA(),t.BQk()),2&o&&(t.xp6(1),t.Q6J("nzSpan",3))}function $e(o,c){if(1&o&&(t.TgZ(0,"nz-card",60),t.YNc(1,i,5,8,"ng-template",null,61,t.W1O),t.YNc(3,a,2,3,"ng-template",null,62,t.W1O),t.TgZ(5,"nz-descriptions",63),t.YNc(6,m,14,17,"ng-container",0),t.YNc(7,ke,3,1,"ng-container",0),t.qZA()()),2&o){const n=t.MAs(2),r=t.MAs(4),l=t.oxw(2).ngIf;t.Q6J("nzTitle",n)("nzExtra",r),t.xp6(5),t.Q6J("nzBordered",!0)("nzColumn",3),t.xp6(1),t.Q6J("ngIf",l.mostRecentConflictOfInterestStatement),t.xp6(1),t.Q6J("ngIf",!l.mostRecentConflictOfInterestStatement)}}function Re(o,c){1&o&&(t.ynx(0),t.YNc(1,$e,8,6,"nz-card",59),t.BQk())}function Ye(o,c){1&o&&(t.TgZ(0,"div",74)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function Fe(o,c){if(1&o&&(t.TgZ(0,"div",71),t._uU(1," Ranked Activities "),t.TgZ(2,"span",48),t._UZ(3,"i",72),t.qZA()(),t.YNc(4,Ye,17,0,"ng-template",null,73,t.W1O)),2&o){const n=t.MAs(5);t.Q6J("nzPopoverContent",n)}}function De(o,c){1&o&&(t.TgZ(0,"span"),t._uU(1,"Edit Profile"),t.qZA())}function Be(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-user-profile-form",75),t.NdJ("profileUpdatedEvent",function(){t.CHM(n);const l=t.oxw(2);return t.KtG(l.profileUpdated())}),t.qZA()}if(2&o){const n=t.oxw().ngIf;t.Q6J("user",n)}}const Ve=function(){return[8,8]};function He(o,c){if(1&o){const n=t.EpF();t.ynx(0),t._UZ(1,"cvc-section-navigation",4),t.TgZ(2,"nz-page-header",5)(3,"nz-page-header-content")(4,"nz-row",6)(5,"nz-col",7)(6,"nz-space",8),t.YNc(7,vt,1,2,"cvc-user-avatar",9),t.YNc(8,de,8,9,"div",10),t.YNc(9,ve,10,8,"div",11),t.YNc(10,be,3,0,"ng-container",0),t.ALo(11,"ngrxPush"),t.qZA()(),t.TgZ(12,"nz-col",12)(13,"nz-space",13),t.YNc(14,Oe,13,13,"nz-descriptions",14),t.YNc(15,Re,2,0,"ng-container",0),t.qZA()(),t.TgZ(16,"nz-col",15)(17,"nz-descriptions",16)(18,"nz-descriptions-item",17),t._UZ(19,"cvc-stats-card",18),t.qZA(),t.YNc(20,Fe,6,1,"ng-template",null,19,t.W1O),t.qZA()()(),t.TgZ(22,"nz-row",20)(23,"nz-col",21),t._UZ(24,"cvc-tab-navigation",22),t.ALo(25,"ngrxPush"),t.TgZ(26,"div",23),t._UZ(27,"router-outlet"),t.qZA()()()()(),t.TgZ(28,"nz-modal",1),t.NdJ("nzVisibleChange",function(l){t.CHM(n);const d=t.oxw();return t.KtG(d.updateProfileModalVisible=l)})("nzOnCancel",function(){t.CHM(n);const l=t.oxw();return t.KtG(l.handleProfileModalCancel())}),t.YNc(29,De,2,0,"ng-template",null,24,t.W1O),t.YNc(31,Be,1,1,"ng-template",null,25,t.W1O),t.qZA(),t.BQk()}if(2&o){const n=c.ngIf,r=t.MAs(21),l=t.MAs(30),d=t.MAs(32),f=t.oxw();t.xp6(1),t.Q6J("displayName",n.displayName),t.xp6(3),t.Q6J("nzGutter",t.DdM(16,Ve)),t.xp6(6),t.Q6J("ngIf",t.lcZ(11,12,f.ownProfile$)),t.xp6(5),t.Q6J("ngIf","EDITOR"===n.role||"ADMIN"===n.role),t.xp6(3),t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("cvcStats",n.statsHash)("cvcRanks",n.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(25,14,f.tabs$)),t.xp6(4),t.Q6J("nzVisible",f.updateProfileModalVisible)("nzContent",d)("nzTitle",l)("nzFooter",null)}}function je(o,c){1&o&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function We(o,c){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-user-coi-form",76),t.NdJ("coiUpdatedEvent",function(){t.CHM(n);const l=t.oxw();return t.KtG(l.coiUpdated())}),t.qZA()}}let Ie=((E=class{constructor(c,n,r){this.gql=c,this.viewerService=n,this.route=r,this.organization$=new at.X([]),this.ownProfile$=new at.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 at.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({userId:+l.userId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,dt.j)("loading"),(0,$.O)(!0)),this.user$=d.pipe((0,dt.j)("data","user")),this.user$.pipe((0,T.U)(f=>f?f.organizations.map(Y=>({id:Y.id,name:Y.name,link:Y.url})):[]),(0,ut.t)(this)).subscribe(f=>{this.organization$.next(f)}),this.viewerSub=this.viewerService.viewer$.subscribe(f=>{f.id===+l.userId&&(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0))})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(c){c?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}).\u0275fac=function(c){return new(c||E)(t.Y36(h.sLD),t.Y36(Gt.a),t.Y36(v.gz))},E.\u0275cmp=t.Xpm({type:E,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"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["noLinks",""],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["statementTitle",""],["updateCoi",""],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(c,n){if(1&c&&(t.YNc(0,He,33,17,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(l){return n.updateCoiModalVisible=l})("nzOnCancel",function(){return n.handleCoiModalCancel()}),t.YNc(3,je,2,0,"ng-template",null,2,t.W1O),t.YNc(5,We,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&c){const r=t.MAs(4),l=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,n.user$)),t.xp6(2),t.Q6J("nzVisible",n.updateCoiModalVisible)("nzContent",l)("nzTitle",r)("nzFooter",null)}},dependencies:[_.O5,v.lC,C.t3,C.SK,e.$O,e.u5,y.NU,y.$1,x.R7,x.uj,U.bd,w.du,N.Ls,gt.ZU,ot.SY,mt.lU,Z.ix,G.w,J.dQ,Kt.T,qt.t,oe,ie.I,ae.P,se.L,le,X.z,_.i8,_.rS,_.uU,Q.fM,ce.I,pe.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{flex-wrap:nowrap;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%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),E);Ie=(0,Wt.gn)([(0,ut.c)()],Ie);const Ge=[{path:"",component:Ie,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:St,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Mt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Zt,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:jt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Vt,data:{breadcrumb:"Notifications"}}]}];let Ke=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[v.Bz.forChild(Ge),v.Bz]}),o})();var qe=s(6192),Xe=s(7950);let tn=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,v.Bz,Ke,S.L,C.Jb,qe.YS,e.KJ,y.zf,x.q6,U.vh,lt.S,w.Qp,rt.A2,N.PV,gt.ZJ,ot.cg,mt.$6,Z.sL,Xe.x,xt.e,Tt,O.s,F.D,A.c,D.H,st,b.L,bt.C]}),o})()},5167:(Ee,tt,s)=>{s.r(tt),s.d(tt,{UsersModule:()=>Oe});var P,_=s(6814),F=s(4190),e=s(5879),v=s(6254),A=s(551),y=s(95),D=s(2840),Z=s(855),N=s(2574),t=s(2392),st=s(655),x=s(313),b=s(1791),C=s(5619),O=s(7398),U=s(6223),rt=s(3640),lt=s(6928),w=s(2962),z=s(6976),S=s(9691),B=s(804),k=s(6109),ct=s(356),V=s(8091);function et(i,p){1&i&&e.GkF(0)}function Tt(i,p){1&i&&e.GkF(0)}function xt(i,p){1&i&&e.GkF(0)}function bt(i,p){1&i&&e.GkF(0)}function Ut(i,p){if(1&i&&(e.TgZ(0,"span",13),e._uU(1),e.qZA(),e.TgZ(2,"span",14),e._UZ(3,"i",15),e.qZA()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",a.title," "),e.xp6(2),e.Q6J("nzTooltipTitle",a.info)}}const Mt=function(){return[0,5]};function h(i,p){if(1&i&&(e.TgZ(0,"nz-badge",20),e._UZ(1,"nz-avatar",21),e.qZA()),2&i){const a=e.oxw().$implicit;e.Q6J("nzCount",a.rank)("nzOffset",e.DdM(3,Mt)),e.xp6(1),e.Q6J("nzSrc",a.profileImagePath)}}function yt(i,p){if(1&i&&(e.TgZ(0,"nz-list-item"),e.YNc(1,h,2,4,"ng-template",null,16,e.W1O),e.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),e._UZ(5,"cvc-user-tag",18),e.qZA()(),e.TgZ(6,"ul",19)(7,"nz-list-item-action")(8,"span",14),e._uU(9),e.ALo(10,"number"),e.qZA()()()()),2&i){const a=p.$implicit,u=e.MAs(2);e.xp6(3),e.Q6J("nzAvatar",u),e.xp6(2),e.Q6J("user",a.user),e.xp6(4),e.hij(" Count: ",e.lcZ(10,3,a.actionCount)," ")}}function Zt(i,p){if(1&i&&e._UZ(0,"nz-list-empty",22),2&i){e.oxw();const a=e.MAs(7);e.Q6J("nzNoResult",a)}}function At(i,p){1&i&&e._UZ(0,"nz-empty",23)}const St=function(i){return{"list-height-block":i}};function nt(i,p){if(1&i&&(e.YNc(0,Ut,4,2,"ng-template",null,7,e.W1O),e.TgZ(2,"nz-list",8)(3,"div",9),e.YNc(4,yt,11,5,"nz-list-item",10),e.qZA(),e.YNc(5,Zt,1,1,"nz-list-empty",11),e.YNc(6,At,1,0,"ng-template",null,12,e.W1O),e.qZA()),2&i){const a=p.$implicit,u=e.MAs(1);e.xp6(2),e.Q6J("nzHeader",u)("nzLoading",a.loading),e.xp6(1),e.Q6J("ngClass",e.VKq(5,St,a.rows.length>0)),e.xp6(1),e.Q6J("ngForOf",a.rows),e.xp6(1),e.Q6J("ngIf",0===a.rows.length)}}function H(i,p){1&i&&(e.TgZ(0,"span",13)(1,"strong"),e._uU(2,"Contributor Curation Activity Leaderboards"),e.qZA()())}function T(i,p){if(1&i){const a=e.EpF();e.TgZ(0,"span"),e._uU(1,"Time: "),e.qZA(),e.TgZ(2,"nz-select",24),e.NdJ("ngModelChange",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.timeWindow$.next(g))}),e.ALo(3,"ngrxPush"),e._UZ(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),e.qZA()}if(2&i){const a=e.oxw();e.xp6(2),e.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.lcZ(3,2,a.timeWindow$))}}const j=function(){return[8,8]},$=function(i){return{$implicit:i}};let W=((P=class{constructor(p,a,u,g){this.commentsGQL=p,this.revisionsGQL=a,this.moderationGQL=u,this.submissionsGQL=g,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=x.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new C.X(this.initialWindow),this.timeWindow$.pipe((0,b.t)(this)).subscribe(m=>{this.commentsQueryRef.refetch({window:m}),this.revisionsQueryRef.refetch({window:m}),this.moderationQueryRef.refetch({window:m}),this.submissionsQueryRef.refetch({window:m})}),this.commentsView$=new C.X(this.initialCommentsView),this.revisionsView$=new C.X(this.initialRevisionsView),this.moderationView$=new C.X(this.initialModerationView),this.submissionsView$=new C.X(this.initialSubmissionsView)}ngOnInit(){const p=a=>({rank:a.rank,actionCount:a.actionCount,profileImagePath:a.profileImagePath,name:a.name,user:{id:a.id,displayName:a.displayName,role:a.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,O.U)(a=>{let u=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.commentsLeaderboard.edges.map(g=>{if(g.node){const m=p(g.node);u.push(m)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:a.loading,rows:[...u]}}),(0,b.t)(this)).subscribe(a=>this.commentsView$.next(a)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,O.U)(a=>{let u=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.moderationLeaderboard.edges.map(g=>{if(g.node){const m=p(g.node);u.push(m)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:a.loading,rows:[...u]}}),(0,b.t)(this)).subscribe(a=>this.moderationView$.next(a)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,O.U)(a=>{let u=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.revisionsLeaderboard.edges.map(g=>{if(g.node){const m=p(g.node);u.push(m)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:a.loading,rows:[...u]}}),(0,b.t)(this)).subscribe(a=>this.revisionsView$.next(a)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,O.U)(a=>{let u=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.submissionsLeaderboard.edges.map(g=>{if(g.node){const m=p(g.node);u.push(m)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:a.loading,rows:[...u]}}),(0,b.t)(this)).subscribe(a=>this.submissionsView$.next(a))}}).\u0275fac=function(p){return new(p||P)(e.Y36(x.ce2),e.Y36(x.VGG),e.Y36(x.SAN),e.Y36(x.da2))},P.\u0275cmp=e.Xpm({type:P,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(p,a){if(1&p&&(e.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),e.YNc(3,et,1,0,"ng-container",3),e.ALo(4,"ngrxPush"),e.qZA(),e.TgZ(5,"nz-col",2),e.YNc(6,Tt,1,0,"ng-container",3),e.ALo(7,"ngrxPush"),e.qZA(),e.TgZ(8,"nz-col",2),e.YNc(9,xt,1,0,"ng-container",3),e.ALo(10,"ngrxPush"),e.qZA(),e.TgZ(11,"nz-col",2),e.YNc(12,bt,1,0,"ng-container",3),e.ALo(13,"ngrxPush"),e.qZA()()(),e.YNc(14,nt,8,7,"ng-template",null,4,e.W1O),e.YNc(16,H,3,0,"ng-template",null,5,e.W1O),e.YNc(18,T,8,4,"ng-template",null,6,e.W1O)),2&p){const u=e.MAs(15),g=e.MAs(17),m=e.MAs(19);e.Q6J("nzTitle",g)("nzExtra",m),e.xp6(1),e.Q6J("nzGutter",e.DdM(19,j)),e.xp6(2),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.VKq(20,$,e.lcZ(4,11,a.commentsView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.VKq(22,$,e.lcZ(7,13,a.revisionsView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.VKq(24,$,e.lcZ(10,15,a.moderationView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.VKq(26,$,e.lcZ(13,17,a.submissionsView$)))}},dependencies:[_.mk,_.sg,_.O5,_.tP,U.JJ,U.On,rt.x7,lt.Dz,y.t3,y.SK,w.bd,z.n_,z.I2,z.AA,z.yi,z.IO,z.nk,z.KC,S.Ip,S.Vq,t.ZU,B.p9,A.Ls,k.SY,ct.I,_.JJ,V.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),P);W=(0,st.gn)([(0,b.c)()],W);var L,ot=s(3145),G=s(4632),J=s(8645),it=s(5676),K=s(3997),Pt=s(812),Nt=s(836),Q=s(2181),Ot=s(3620),It=s(2460),R=s(4223),M=s(3740),pt=s(5695),wt=s(6753),Jt=s(4764),Qt=s(8516),Lt=s(3489),Et=s(9857),kt=s(4997),$t=s(4527),Rt=s(4082),Yt=s(5573);function Ft(i,p){}function Dt(i,p){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",5),e.YNc(2,Ft,0,0,"ng-template",6),e.qZA(),e.BQk()),2&i){e.oxw();const a=e.MAs(6),u=e.MAs(8),g=e.MAs(4);e.xp6(1),e.Q6J("nzTitle",a)("nzExtra",u),e.xp6(1),e.Q6J("ngTemplateOutlet",g)}}function q(i,p){}const Bt=function(i){return{height:i}};function Vt(i,p){if(1&i&&(e.TgZ(0,"div",7)(1,"nz-card",8),e.YNc(2,q,0,0,"ng-template",6),e.qZA()()),2&i){const a=e.oxw(),u=e.MAs(6),g=e.MAs(8),m=e.MAs(4);e.Q6J("ngStyle",e.VKq(4,Bt,a.cvcHeight)),e.xp6(1),e.Q6J("nzTitle",u)("nzExtra",g),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function Ht(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",a.name," ")}}function jt(i,p){1&i&&(e.TgZ(0,"i",39),e._uU(1,"Not specified"),e.qZA())}function Wt(i,p){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"cvc-tag-overflow",40),e.qZA()),2&i){const a=e.oxw().$implicit,u=e.oxw(2);e.xp6(1),e.Q6J("maxDisplayCount",1)("tags",a.organizations)("matchingText",u.orgNameInput)}}function dt(i,p){1&i&&(e.TgZ(0,"i",39),e._uU(1,"None specified"),e.qZA())}function at(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.mostRecentActionTimestamp)," ")}}function ut(i,p){1&i&&e._uU(0," -- ")}function Gt(i,p){if(1&i&&(e.TgZ(0,"tr",31)(1,"td",23),e._UZ(2,"cvc-user-tag",32),e.qZA(),e.TgZ(3,"td",33),e.YNc(4,Ht,2,1,"ng-container",0),e.YNc(5,jt,2,0,"ng-template",null,34,e.W1O),e.qZA(),e.TgZ(7,"td"),e.YNc(8,Wt,2,3,"div",0),e.YNc(9,dt,2,0,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.ALo(13,"enumToTitle"),e.qZA(),e.TgZ(14,"td",36),e.YNc(15,at,3,3,"ng-container",0),e.YNc(16,ut,1,0,"ng-template",null,37,e.W1O),e.qZA(),e.TgZ(18,"td",38),e._uU(19),e.qZA(),e.TgZ(20,"td",38),e._uU(21),e.qZA()()),2&i){const a=p.$implicit,u=e.MAs(6),g=e.MAs(10),m=e.MAs(17);e.xp6(2),e.Q6J("user",a),e.xp6(2),e.Q6J("ngIf",a.name)("ngIfElse",u),e.xp6(4),e.Q6J("ngIf",a.organizations.length>0)("ngIfElse",g),e.xp6(4),e.hij(" ",e.lcZ(13,10,a.role)," "),e.xp6(3),e.Q6J("ngIf",a.mostRecentActionTimestamp)("ngIfElse",m),e.xp6(4),e.hij(" ",a.statsHash.submittedEvidenceItems," "),e.xp6(2),e.hij(" ",a.statsHash.revisions," ")}}const gt=function(){return[]},mt=function(){return{x:"680px",y:"800px"}};function Kt(i,p){if(1&i){const a=e.EpF();e.TgZ(0,"nz-table",9,10),e.NdJ("cvcTableScrollOnScroll",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.scrollEvent$.next(g))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.TgZ(6,"thead",11),e.NdJ("nzSortOrderChange",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.sortChange$.next(g))}),e.TgZ(7,"tr",12)(8,"th",13),e._uU(9," User "),e.qZA(),e.TgZ(10,"th",14),e._uU(11," Name "),e.qZA(),e.TgZ(12,"th",15),e._uU(13,"Organizations"),e.qZA(),e.TgZ(14,"th",16),e._uU(15," Role "),e.qZA(),e.TgZ(16,"th",17),e._uU(17," Last Action "),e.qZA(),e.TgZ(18,"th",18),e._UZ(19,"i",19),e._uU(20," Count "),e.qZA(),e.TgZ(21,"th",20),e._UZ(22,"i",21),e._uU(23," Count "),e.qZA()(),e.TgZ(24,"tr",22),e._UZ(25,"th",23),e.TgZ(26,"th")(27,"cvc-clearable-input-filter",24),e.NdJ("inputModelChange",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.nameInput=g)})("inputModelChange",function(){e.CHM(a);const g=e.oxw();return e.KtG(g.filterChange$.next())}),e.qZA()(),e.TgZ(28,"th")(29,"cvc-clearable-input-filter",24),e.NdJ("inputModelChange",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.orgNameInput=g)})("inputModelChange",function(){e.CHM(a);const g=e.oxw();return e.KtG(g.filterChange$.next())}),e.qZA()(),e.TgZ(30,"th")(31,"nz-select",25),e.NdJ("ngModelChange",function(){e.CHM(a);const g=e.oxw();return e.KtG(g.filterChange$.next())})("ngModelChange",function(g){e.CHM(a);const m=e.oxw();return e.KtG(m.roleInput=g)}),e._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),e.qZA()(),e._UZ(35,"th")(36,"th",29)(37,"th",29),e.qZA()(),e.TgZ(38,"tbody"),e.YNc(39,Gt,22,12,"ng-template",30),e.qZA()()}if(2&i){const a=e.oxw();e.Q6J("nzData",e.lcZ(2,21,a.row$)||e.DdM(29,gt))("nzLoading",!e.lcZ(3,23,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",e.lcZ(4,25,a.pageInfo$))("cvcTableScrollToIndex",e.lcZ(5,27,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",e.DdM(30,mt))("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(10),e.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),e.xp6(4),e.Q6J("nzColumnKey",a.sortColumns.Role)("nzSortFn",!0),e.xp6(2),e.Q6J("nzColumnKey",a.sortColumns.LastAction)("nzSortFn",!0),e.xp6(11),e.Q6J("inputModel",a.nameInput),e.xp6(2),e.Q6J("inputModel",a.orgNameInput),e.xp6(2),e.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",a.roleInput)}}function qt(i,p){}function I(i,p){if(1&i&&(e.ynx(0),e.YNc(1,qt,0,0,"ng-template",6),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function _t(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.hij(" ",a.cvcTitle," ")}}function ft(i,p){if(1&i&&(e.YNc(0,I,2,1,"ng-container",41),e.YNc(1,_t,2,1,"ng-container",41),e.TgZ(2,"span",42),e._UZ(3,"cvc-table-counts",43),e.qZA()),2&i){const a=e.oxw();e.Q6J("ngIf",a.cvcTitleTemplate),e.xp6(1),e.Q6J("ngIf",a.cvcTitle),e.xp6(2),e.Q6J("cvcTableCountsConnection",a.connection$)}}function we(i,p){1&i&&(e.TgZ(0,"nz-tag",46),e._UZ(1,"i",47),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}function Je(i,p){if(1&i&&(e.YNc(0,we,4,0,"nz-tag",44),e.ALo(1,"ngrxPush"),e._UZ(2,"cvc-no-more-rows",45),e.ALo(3,"ngrxPush")),2&i){const a=e.oxw();e.Q6J("ngIf",e.lcZ(1,2,a.moreLoading$)),e.xp6(2),e.Q6J("cvcShowTag",e.lcZ(3,4,a.noMoreRows$))}}let ht=((L=class{set initialUserFilters(p){p&&Object.assign(this,p)}constructor(p,a){this.gql=p,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=x.IRu,this.noMoreRows$=new C.X(!1),this.scrollEvent$=new C.X("stop"),this.sortChange$=new J.x,this.filterChange$=new J.x,this.scrollIndex$=new J.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:x.IRu.LastAction,direction:x.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,Pt.o)(p=>!1!==p,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,Nt.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","users"),(0,Q.h)(it.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,Q.h)(it.ep),(0,O.U)(p=>p.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,Q.h)(it.ep)),this.sortChange$.pipe((0,b.t)(this)).subscribe(p=>{this.queryRef.refetch({sortBy:(0,G._)(p)})}),this.filterChange$.pipe((0,Ot.b)(500),(0,b.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,O.U)(p=>"stop"!==p),(0,K.x)(),(0,b.t)(this)).subscribe(p=>{this.isScrolling=p,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(p=>"bottom"===p),(0,It.M)(this.pageInfo$),(0,O.U)(([p,a])=>a),(0,b.t)(this)).subscribe(p=>{p.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){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}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(p,a){return a?.id}}).\u0275fac=function(p){return new(p||L)(e.Y36(x.tJ6),e.Y36(e.sBO))},L.\u0275cmp=e.Xpm({type:L,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nameElse",""],["orgElse",""],["nzAlign","right"],["eventElse",""],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(p,a){if(1&p&&(e.YNc(0,Dt,3,3,"ng-container",0),e.YNc(1,Vt,3,6,"ng-template",null,1,e.W1O),e.YNc(3,Kt,40,31,"ng-template",null,2,e.W1O),e.YNc(5,ft,4,3,"ng-template",null,3,e.W1O),e.YNc(7,Je,4,6,"ng-template",null,4,e.W1O)),2&p){const u=e.MAs(2);e.Q6J("ngIf",!a.cvcHeight)("ngIfElse",u)}},dependencies:[_.O5,_.tP,_.PC,U.JJ,U.On,Z.w,w.bd,A.Ls,S.Ip,S.Vq,M.N8,M.qD,M.Uo,M._C,M.Om,M.p0,M.$Z,M.zu,M.qn,M.UX,pt.j,k.SY,t.ZU,wt.D,Jt.q,Qt.p,Lt.H,Et.B,kt.y,$t.T,ct.I,V.fM,Rt.I,Yt.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),L);ht=(0,st.gn)([(0,b.c)()],ht);var zt=s(2616);function Qe(i,p){1&i&&(e.TgZ(0,"a",12),e._UZ(1,"i",13),e._uU(2," View Contributor Docs "),e.qZA())}const Xt=function(){return[8,16]},te=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-users"]],decls:1,vars:0,template:function(a,u){1&a&&e._UZ(0,"router-outlet")},dependencies:[F.lC],encapsulation:2}),i})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 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"],[3,"nzGutter"],["nzSpan","24"],["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(a,u){1&a&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e._UZ(5,"i",3),e.ALo(6,"entityColor"),e.qZA(),e.TgZ(7,"nz-col",4)(8,"h2"),e._uU(9,"Contributors"),e.qZA(),e.TgZ(10,"p",5),e._uU(11," CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing. "),e.qZA()(),e.TgZ(12,"nz-col",6)(13,"nz-space",7),e.YNc(14,Qe,3,0,"a",8),e.qZA()()(),e.TgZ(15,"nz-row",9)(16,"nz-col",10),e._UZ(17,"cvc-user-leaderboards"),e.qZA(),e.TgZ(18,"nz-col",10),e._UZ(19,"cvc-users-table",11),e.qZA()()()()),2&a&&(e.xp6(5),e.Q6J("nzTwotoneColor",e.lcZ(6,3,"Curator")),e.xp6(5),e.Q6J("nzEllipsisRows",2),e.xp6(5),e.Q6J("nzGutter",e.DdM(5,Xt)))},dependencies:[v.$O,v.u5,A.Ls,y.t3,y.SK,D.ix,Z.w,N.NU,N.$1,t.ZU,W,ot.I,ht,zt.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{flex-wrap:nowrap;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:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(s.bind(s,7431)).then(i=>i.UsersDetailModule)}]}]}];let ee=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[F.Bz.forChild(te),F.Bz]}),i})();var ne=s(1106),oe=s(7856),ie=s(6067),ae=s(9154),se=s(2989),re=s(366),le=s(7950),X=s(2524),ce=s(9175),pe=s(4742),E=s(9312),vt=s(8706);let de=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,D.sL,w.vh,A.PV,S.LV,M.HQ,pt.X,k.cg,t.ZJ,ce.n,pe.c,oe.k,ie.X,ae.y,ne.L,X.s,se.T,E.w,re.$,le.x,vt.W]}),i})();var ue=s(2419),ge=s(9382),me=s(6987);let _e=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,rt.mS,me.S,N.zf,lt.Rt,y.Jb,w.vh,z.Ph,ge.we,S.LV,t.ZJ,B.Xo,A.PV,k.cg,X.s,vt.W]}),i})(),fe=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,v.KJ,A.PV,y.Jb,D.sL,N.zf,t.ZJ,_e,ue.D,de,X.s]}),i})();var he=s(5895);let ze=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,A.PV,he.s]}),i})();var Ce=s(7431),ve=s(9894);let Te=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,ve.t]}),i})();var xe=s(1403);let be=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,xe.Q]}),i})();var Ue=s(5843);let Me=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,Ue.W]}),i})();var ye=s(2669),Ze=s(1595),Ae=s(2612),Se=s(3498),Pe=s(5528);let Ne=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,k.cg,ye.j,y.Jb,D.sL,w.vh,A.PV,Ae.Wr,Se.FT,Pe.E,X.s,Ze.N]}),i})(),Oe=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,F.Bz,ee,fe,ze,Ce.UsersDetailModule,Te,be,Me,Ne]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5302.d41f13d042296c34.js b/server/public/5302.d41f13d042296c34.js new file mode 100644 index 000000000..578616bd4 --- /dev/null +++ b/server/public/5302.d41f13d042296c34.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5302],{8253:(_,h,i)=>{i.d(h,{Z:()=>d});var t=i(6814),m=i(4190),s=i(1227),v=i(706),o=i(2840),n=i(279),f=i(3903),l=i(1403),p=i(5879);let d=(()=>{class a{}return a.\u0275fac=function(T){return new(T||a)},a.\u0275mod=p.oAB({type:a}),a.\u0275inj=p.cJS({imports:[t.ez,m.Bz,o.sL,f.L,v.S,s.g,l.Q,n.s]}),a})()},1679:(_,h,i)=>{i.d(h,{l:()=>D});var t=i(655),m=i(6223),s=i(2024),v=i(7382),o=i(2114),n=i(1791),f=i(9390);const d=(0,i(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Evidence Item",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"New Evidence Item"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated evidence.",watchVariantMolecularProfileId:!0}},{key:"sourceId",type:"source-select",props:{required:!0}},{key:"evidenceType",type:"type-select",props:{required:!0}},{key:"evidenceDirection",type:"direction-select",props:{required:!0}},{key:"significance",type:"significance-select",props:{required:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{required:!0}},{key:"rating",type:"rating",props:{required:!0}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"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. ",placeholder:"Enter an Evidence Statement",extraType:"description",description:'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).',label:"Evidence Statement",required:!0,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!1,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item"}}]}]}],f.C);var E,a=i(7398),y=i(2181),T=i(5676),e=i(5879),C=i(313),P=i(4190),M=i(7473),q=i(6814),L=i(3903),b=i(5545),F=i(3599),w=i(9928),$=i(6822),U=i(8091);const R=function(u){return["/evidence",u,"summary"]};function N(u,r){if(1&u&&(e._uU(0," View your new EID "),e.TgZ(1,"a",5),e._uU(2,"here"),e.qZA(),e._uU(3,". You will be redirected shortly. ")),2&u){const c=e.oxw();e.xp6(1),e.Q6J("routerLink",e.VKq(1,R,c.newEvidenceId))}}function Q(u,r){if(1&u&&e._UZ(0,"nz-alert",8),2&u){e.oxw();const c=e.MAs(3);e.Q6J("nzMessage",c)}}function z(u,r){if(1&u&&(e.TgZ(0,"p")(1,"strong"),e._uU(2," Evidence for this Molecular Profile has already been curated from this Source. Please double check that your Evidence has not already been entered. "),e.qZA()(),e._UZ(3,"cvc-evidence-table",9)),2&u){const c=e.oxw(2);e.xp6(3),e.Q6J("molecularProfileId",c.selectedMpId)("sourceId",c.selectedSourceId)}}function B(u,r){if(1&u&&(e.ynx(0),e.YNc(1,Q,1,1,"nz-alert",6),e.YNc(2,z,4,2,"ng-template",null,7,e.W1O),e._UZ(4,"br"),e.BQk()),2&u){const c=r.ngIf;e.xp6(1),e.Q6J("ngIf",c>0)}}function X(u,r){if(1&u&&e._UZ(0,"nz-alert",8),2&u){e.oxw();const c=e.MAs(3);e.Q6J("nzMessage",c)}}function W(u,r){if(1&u&&(e.TgZ(0,"p")(1,"strong"),e._uU(2," This Source has been marked as fully curated by an Editor. Please double check that your intended Evidence Item does not already exist. "),e.qZA()(),e._UZ(3,"cvc-evidence-table",11)),2&u){const c=e.oxw(2);e.xp6(3),e.Q6J("sourceId",c.selectedSourceId)}}function G(u,r){if(1&u&&(e.ynx(0),e.YNc(1,X,1,1,"nz-alert",6),e.YNc(2,W,4,1,"ng-template",null,10,e.W1O),e._UZ(4,"br"),e.BQk()),2&u){const c=r.ngIf;e.xp6(1),e.Q6J("ngIf",c)}}function K(u,r){if(1&u){const c=e.EpF();e.TgZ(0,"form",12),e.NdJ("ngSubmit",function(){e.CHM(c);const g=e.oxw();return e.KtG(g.onSubmit(g.model))}),e.TgZ(1,"formly-form",13),e.NdJ("modelChange",function(g){e.CHM(c);const S=e.oxw();return S.model=g,e.KtG(S.onModelChange(g))}),e.qZA()()}if(2&u){const c=e.oxw();e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options)}}function Z(u,r){1&u&&e._uU(0," Loading Evidence Item... ")}let D=((E=class{constructor(r,c,I,g,S,Y,J){this.revisableFieldsGQL=r,this.submitEvidenceGQL=c,this.existingEvidenceGQL=I,this.fullyCuratedSourceGQL=g,this.cdr=S,this.route=Y,this.form=new m.nJ({}),this.fields=d,this.state=new v._,this.options={formState:this.state},this.submitEvidenceMutator=new s.U(J),this.routeSub=this.route.queryParams.subscribe(O=>{if(O.existingEvidenceId){this.existingEvidenceId=+O.existingEvidenceId;let A=this.getFieldConfig("direction-select");A&&(A.props.formMode="clone");let x=this.getFieldConfig("significance-select");x&&(x.props.formMode="clone")}else this.model={fields:{}}})}getFieldConfig(r){return this.fields?.[0].fieldGroup?.find(c=>"fields"===c.key)?.fieldGroup?.find(c=>c.type===r)}ngOnInit(){this.countQueryRef=this.existingEvidenceGQL.watch({molecularProfileId:0,sourceId:0}),this.curatedQueryRef=this.fullyCuratedSourceGQL.watch({sourceId:0}),this.existingEvidenceCount$=this.countQueryRef?.valueChanges.pipe((0,a.U)(r=>r.data?.evidenceItems?.totalCount),(0,y.h)(T.ep),(0,n.t)(this)),this.fullyCuratedSource$=this.curatedQueryRef?.valueChanges.pipe((0,a.U)(r=>r.data?.source?.fullyCurated),(0,n.t)(this))}ngAfterViewInit(){this.existingEvidenceId?this.revisableFieldsGQL.fetch({evidenceId:this.existingEvidenceId}).pipe((0,n.t)(this)).subscribe({next:({data:{evidenceItem:r}})=>{r&&(this.model={fields:(0,o.ux)(r)},this.model.fields.description=void 0,this.cdr.detectChanges())},error:r=>{console.error("Error retrieving evidenceItem."),console.error(r)},complete:()=>{this.state.formReady$.next(!0)}}):this.state.formReady$.next(!0)}onSubmit(r){const c=(0,o.I9)(r);c&&(this.mutationState=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:c},void 0,I=>{this.newEvidenceId=I.submitEvidence?.evidenceItem.id,this.newEvidenceUrl=`/evidence/${this.newEvidenceId}/summary`}))}onModelChange(r){r.fields.sourceId&&r.fields.molecularProfileId?(r.fields.sourceId!=this.selectedSourceId||r.fields.molecularProfileId!=this.selectedMpId)&&(this.selectedSourceId=r.fields.sourceId,this.selectedMpId=r.fields.molecularProfileId,this.countQueryRef?.refetch({molecularProfileId:r.fields.molecularProfileId,sourceId:r.fields.sourceId})):this.countQueryRef?.refetch({molecularProfileId:0,sourceId:0}),r.fields.sourceId?r.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=r.fields.sourceId,this.curatedQueryRef?.refetch({sourceId:this.selectedSourceId})):(this.selectedSourceId=void 0,this.curatedQueryRef?.refetch({sourceId:0}))}ngOnDestroy(){this.options.formState.onDestroy(),this.routeSub.unsubscribe()}}).\u0275fac=function(r){return new(r||E)(e.Y36(C.Q_P),e.Y36(C.WFw),e.Y36(C.vxe),e.Y36(C.s4d),e.Y36(e.sBO),e.Y36(P.gz),e.Y36(M.Y))},E.\u0275cmp=e.Xpm({type:E,selectors:[["cvc-evidence-submit-form"]],decls:10,vars:11,consts:[["entityType","Evidence Item",3,"mutationState","redirectUrl","successMessage"],["success",""],[4,"ngIf"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"routerLink"],["nzType","warning",3,"nzMessage",4,"ngIf"],["duplicateEvidenceAlert",""],["nzType","warning",3,"nzMessage"],["cvcHeight","150",3,"molecularProfileId","sourceId"],["fullyCuratedAlert",""],["cvcHeight","150",3,"sourceId"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(r,c){if(1&r&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,N,4,3,"ng-template",null,1,e.W1O),e.YNc(3,B,5,1,"ng-container",2),e.ALo(4,"ngrxPush"),e.YNc(5,G,5,1,"ng-container",2),e.ALo(6,"ngrxPush"),e.YNc(7,K,2,5,"form",3),e.YNc(8,Z,1,0,"ng-template",null,4,e.W1O),e.qZA()),2&r){const I=e.MAs(2),g=e.MAs(9);e.Q6J("mutationState",c.mutationState)("redirectUrl",c.newEvidenceUrl)("successMessage",I),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,7,c.existingEvidenceCount$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(6,9,c.fullyCuratedSource$)),e.xp6(2),e.Q6J("ngIf",c.model)("ngIfElse",g)}},dependencies:[q.O5,P.rH,L.r,m._Y,m.JL,m.sg,b.T7,F.Lr,w.F,$.a,U.fM],encapsulation:2,changeDetection:0}),E);D=(0,t.gn)([(0,n.c)()],D)},9390:(_,h,i)=>{i.d(h,{C:()=>m,w:()=>t});const t={geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,therapyIds:void 0,therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:void 0,rating:void 0,sourceId:void 0,variantOrigin:void 0},m={clientMutationId:void 0,fields:t,comment:void 0,organizationId:void 0}},4607:(_,h,i)=>{i.d(h,{lG:()=>f,yQ:()=>o});var t=i(2),m=i(313),s=i(8645),v=i(3742),o=(()=>((o=o||{}).EVIDENCE="Evidence",o.ASSERTION="Assertion",o))();class f{constructor(p){this.formReady$=new s.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new s.x,this.requiresTherapy$=new s.x,this.requiresDisease$=new s.x,this.requiresAcmgCode$=new s.x,this.requiresAmpLevel$=new s.x,this.requiresClingenCode$=new s.x,this.allowsFdaApproval$=new s.x,this.getTypeOptions=()=>this.entityName==o.ASSERTION?(0,v.o6)(m.uBv).map(d=>d):(0,v.o6)(m.kqt).map(d=>d),this.getSignificanceOptions=d=>this.validStates.get(d)?.significance||[],this.getInteractionOptions=()=>(0,v.o6)(m.wkr).map(d=>d),this.isValidSignificanceOption=(d,a)=>{const y=this.validStates.get(d);return!y||y.significance.includes(a)},this.getDirectionOptions=d=>this.validStates.get(d)?.entityDirection||[],this.isValidDirectionOption=(d,a)=>{const y=this.validStates.get(d);return!y||y.entityDirection.includes(a)},this.requiresTherapy=d=>{const a=this.validStates.get(d);return void 0===a||a.requiresTherapy},this.requiresDisease=d=>{const a=this.validStates.get(d);return void 0===a||a.requiresDisease},this.requiresAcmgCodes=d=>{const a=this.validStates.get(d);return void 0===a||a.requiresAcmgCodes},this.requiresAmpLevel=d=>{const a=this.validStates.get(d);return void 0===a||a.requiresAmpLevel},this.requiresClingenCodes=d=>{const a=this.validStates.get(d);return void 0===a||a.requiresClingenCodes},this.allowsFdaApproval=d=>{const a=this.validStates.get(d);return void 0===a||a.allowsFdaApproval},this.getOptionsFromEnums=d=>0===d.length?[]:d.map(a=>({value:a,label:(0,t.E)(a)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=p,this.pluralNames=new Map,this.pluralNames.set(o.ASSERTION,"Assertions"),this.pluralNames.set(o.EVIDENCE,"Evidence")}onDestroy(){}}},7382:(_,h,i)=>{i.d(h,{_:()=>n});var t=i(313),m=i(1791),s=i(5619),v=i(9390),o=i(4607);class n extends o.lG{constructor(){super(o.yQ.EVIDENCE);const l=v.w;this.fields={molecularProfileId$:new s.X(l.molecularProfileId),variantId$:new s.X(l.variantId),variantMolecularProfile$:new s.X(void 0),geneId$:new s.X(l.geneId),evidenceType$:new s.X(l.evidenceType),evidenceLevel$:new s.X(l.evidenceLevel),evidenceDirection$:new s.X(l.evidenceDirection),significance$:new s.X(l.significance),variantOrigin$:new s.X(l.variantOrigin),diseaseId$:new s.X(l.diseaseId),therapyIds$:new s.X(l.therapyIds),therapyInteractionType$:new s.X(l.therapyInteractionType),rating$:new s.X(l.rating),phenotypeIds$:new s.X(l.phenotypeIds),sourceId$:new s.X(l.sourceId)},this.enums={entityType$:new s.X(this.getTypeOptions()),significance$:new s.X([]),direction$:new s.X([]),interaction$:new s.X(this.getInteractionOptions())},this.requires={requiresDisease$:new s.X(!1),requiresTherapy$:new s.X(!1),requiresTherapyInteractionType$:new s.X(!1),requiresClingenCodes$:new s.X(!1),requiresAcmgCodes$:new s.X(!1),requiresAmpLevel$:new s.X(!1),allowsFdaApproval$:new s.X(!1)},this.fields.evidenceType$.pipe((0,m.t)(this,"onDestroy")).subscribe(p=>{if(!p)return Object.entries(this.requires).forEach(([d,a])=>{a.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(p)),this.enums.direction$.next(this.getDirectionOptions(p)),this.requires.requiresDisease$.next(this.requiresDisease(p)),this.requires.requiresTherapy$.next(this.requiresTherapy(p)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(p)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(p)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(p)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(p))}),this.fields.therapyIds$.pipe((0,m.t)(this,"onDestroy")).subscribe(p=>{this.requires.requiresTherapyInteractionType$.next(!!p&&p.length>1)}),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,significance:[t.y1h.Sensitivityresponse,t.y1h.Resistance,t.y1h.AdverseResponse,t.y1h.ReducedSensitivity,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,significance:[t.y1h.Positive,t.y1h.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,significance:[t.y1h.BetterOutcome,t.y1h.PoorOutcome,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,significance:[t.y1h.Oncogenicity,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,significance:[t.y1h.Predisposition,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,significance:[t.y1h.GainOfFunction,t.y1h.LossOfFunction,t.y1h.UnalteredFunction,t.y1h.Neomorphic,t.y1h.DominantNegative,t.y1h.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},7570:(_,h,i)=>{function t(m,s){const v=(n,f)=>{let l;for(let p of n)if(p.fieldGroup)l=v(p.fieldGroup,f);else if(p.key===f){l=p;break}return l},o=(n,f)=>{for(let l of Object.keys(f))if(f[l]instanceof Object&&!Array.isArray(f[l]))o(n,f[l]);else{const p=v(n,l);p&&(p.defaultValue=f[l])}return n};return o(m,s)}i.d(h,{Z:()=>t})},2114:(_,h,i)=>{i.d(h,{Ct:()=>s,I9:()=>v,ux:()=>m});var t=i(1022);function m(o){return{significance:o.significance,description:o.description,diseaseId:o.disease?.id,therapyIds:o.therapies.map(n=>n.id),therapyInteractionType:o.therapyInteractionType,evidenceDirection:o.evidenceDirection,evidenceLevel:o.evidenceLevel,evidenceType:o.evidenceType,molecularProfileId:o.molecularProfile.id,phenotypeIds:o.phenotypes.map(n=>n.id),rating:o.evidenceRating,sourceId:o.source.id,variantOrigin:o.variantOrigin}}function s(o,n){let f=v(n);if(f)return{id:o,comment:f.comment,organizationId:f.organizationId,fields:f.fields}}function v(o){const n=o.fields;if(![n.molecularProfileId,n.variantOrigin,n.sourceId,n.evidenceType,n.significance,n.evidenceLevel,n.evidenceDirection,n.rating].find(l=>void 0===l))return{fields:{molecularProfileId:n.molecularProfileId,variantOrigin:n.variantOrigin,sourceId:n.sourceId,evidenceType:n.evidenceType,significance:n.significance,evidenceLevel:n.evidenceLevel,evidenceDirection:n.evidenceDirection,rating:n.rating,description:t.xt(n.description),diseaseId:t.uP(n.diseaseId),phenotypeIds:n.phenotypeIds?n.phenotypeIds:[],therapyIds:n.therapyIds?n.therapyIds:[],therapyInteractionType:t.uP(n.therapyInteractionType)},organizationId:o.organizationId,comment:o.comment}}}}]); \ No newline at end of file diff --git a/server/public/5369.bd7c3140e8b78e84.js b/server/public/5369.40cf8db2bfaaa8a2.js similarity index 99% rename from server/public/5369.bd7c3140e8b78e84.js rename to server/public/5369.40cf8db2bfaaa8a2.js index d6460bd77..c44ac7e04 100644 --- a/server/public/5369.bd7c3140e8b78e84.js +++ b/server/public/5369.40cf8db2bfaaa8a2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5369],{1218:(O,v,e)=>{e.d(v,{i:()=>T});var l=e(6814),g=e(4190),y=e(5695),p=e(7417),f=e(551),c=e(1855),d=e(2524),_=e(3640),h=e(3146),t=e(5879);let T=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[l.ez,g.Bz,_.mS,y.X,p.$6,f.PV,c.f,d.s,h.C]}),u})()},1106:(O,v,e)=>{e.d(v,{L:()=>i});var l=e(6814),g=e(4190),y=e(5695),p=e(551),f=e(95),c=e(6067),d=e(8125),_=e(2962),h=e(1022),t=e(5879);let T=(()=>{class r{}return r.\u0275fac=function(b){return new(b||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[l.ez,_.vh,f.Jb,d.q6,c.X,h.H]}),r})();var u=e(7417);let i=(()=>{class r{}return r.\u0275fac=function(b){return new(b||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[l.ez,g.Bz,y.X,p.PV,u.$6,T]}),r})()},7950:(O,v,e)=>{e.d(v,{x:()=>u});var l=e(6814),g=e(366),y=e(5695),p=e(7417),f=e(3396),c=e(1106),d=e(5956),_=e(7528),h=e(6061),t=e(3717),T=e(5879);let u=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=T.oAB({type:i}),i.\u0275inj=T.cJS({imports:[l.ez,y.X,p.$6,g.$,h.N,f.Q,c.L,d.U,_.Q,t.M]}),i})()},3717:(O,v,e)=>{e.d(v,{M:()=>u});var l=e(6814),g=e(4190),y=e(5695),p=e(2962),f=e(6067),c=e(8125),d=e(551),_=e(2524),h=e(5879);let t=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=h.oAB({type:i}),i.\u0275inj=h.cJS({imports:[l.ez,d.PV,p.vh,c.q6,_.s,f.X]}),i})();var T=e(7417);let u=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=h.oAB({type:i}),i.\u0275inj=h.cJS({imports:[l.ez,g.Bz,d.PV,y.X,T.$6,t]}),i})()},4010:(O,v,e)=>{e.d(v,{F:()=>y});var g=e(5879);let y=(()=>{class p{transform(c,d="display-string"){return void 0===c?"":"display-string"===d?function l(p){switch(p){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return p}}(c):`civic-${c.replace(/_/g,"").toLowerCase()}`}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275pipe=g.Yjl({name:"therapyInteractionEnumDisplay",type:p,pure:!0}),p})()},1112:(O,v,e)=>{e.r(v),e.d(v,{PhenotypesModule:()=>Yt});var l=e(6814),g=e(4190),y=e(6067),p=e(2419),f=e(2524),c=e(551),d=e(6254),_=e(8125),h=e(2574),t=e(5879);let T=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,g.Bz,d.KJ,c.PV,h.zf,_.q6,f.s,y.X,p.D]}),n})();var u=e(1403),i=e(5895),r=e(95),C=e(9333);let b=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,r.Jb,C.h,u.Q,i.s]}),n})();var P=e(3740),Y=e(7856),V=e(3043),S=e(2840),E=e(2392),$=e(2962),Q=e(6109),F=e(5695),X=e(9175),G=e(4742),k=e(9154),q=e(9312),tt=e(2989);let nt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,P.HQ,S.sL,c.PV,E.ZJ,$.vh,Q.cg,F.X,f.s,k.y,q.w,tt.T,X.n,G.c,Y.k,V.y,y.X]}),n})(),et=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,d.KJ,c.PV,r.Jb,S.sL,h.zf,E.ZJ,f.s,p.D,nt]}),n})();var ot=e(7921),x=e(4223),Z=e(313),R=e(3317),K=e(3145),N=e(8091),at=e(406),H=e(2616);function rt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t._uU(2),t.ALo(3,"ifEmpty"),t.qZA()()),2&n){const o=t.oxw().ngIf;t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(2),t.hij(" ",t.xi3(3,3,o.description,"--")," ")}}function it(n,a){1&n&&t._UZ(0,"p")}function st(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-extra")(8,"cvc-link-tag",4),t._uU(9),t.qZA()(),t.TgZ(10,"nz-page-header-content")(11,"div",5)(12,"nz-space",6),t.YNc(13,rt,4,6,"nz-descriptions",7),t.YNc(14,it,1,0,"p",8),t.qZA(),t._UZ(15,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const o=a.ngIf;t.xp6(1),t.Q6J("displayName",o.name),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,5,"Phenotype")),t.xp6(2),t.hij(" ",o.name," "),t.xp6(2),t.Q6J("href",o.url),t.xp6(1),t.hij(" ",o.hpoId," ")}}let lt=(()=>{class n{constructor(o,s){this.route=o,this.gql=s,this.routeSub=this.route.params.subscribe(m=>{this.phenotypeId=+m.phenotypeId,this.queryRef=this.gql.watch({phenotypeId:this.phenotypeId});let z=this.queryRef.valueChanges;this.loading$=z.pipe((0,x.j)("loading"),(0,ot.O)(!0)),this.phenotype$=z.pipe((0,x.j)("data","phenotype"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.gz),t.Y36(Z.WGV))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"],["tooltip","View in the HPO",3,"href"],[1,"content"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical",3,"nzBordered","nzColumn",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzLayout","vertical",3,"nzBordered","nzColumn"],["nzTitle","Definition"]],template:function(o,s){1&o&&(t.YNc(0,st,16,7,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,s.phenotype$))},dependencies:[l.O5,g.lC,d.$O,d.u9,d.u5,d.Jp,c.Ls,h.NU,h.$1,_.R7,_.uj,R.l,K.I,N.fM,at.D,H.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{flex-wrap:nowrap;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 M,w=e(855),ct=e(655),pt=e(4632),A=e(1791),W=e(5619),D=e(8645),U=e(5676),B=e(3997),dt=e(812),gt=e(836),I=e(2181),J=e(7398),ht=e(3620),mt=e(2460),ut=e(3489),ft=e(4997),vt=e(9857),yt=e(6753),zt=e(4764),_t=e(8516),Ct=e(3897);function Pt(n,a){}function Tt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,Pt,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const o=t.MAs(6),s=t.MAs(8),m=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",m)}}function xt(n,a){}const Mt=function(n){return{height:n}};function Ot(n,a){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,xt,0,0,"ng-template",6),t.qZA()()),2&n){const o=t.oxw(),s=t.MAs(6),m=t.MAs(8),z=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,Mt,o.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",s)("nzExtra",m),t.xp6(1),t.Q6J("ngTemplateOutlet",z)}}function bt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",29),t._uU(1),t.qZA()),2&n){const o=t.oxw().$implicit;t.Q6J("href",o.url),t.xp6(1),t.hij(" ",o.hpoId," ")}}function At(n,a){1&n&&t._uU(0,"--")}function It(n,a){if(1&n&&(t.TgZ(0,"tr",24)(1,"td",20),t._UZ(2,"cvc-phenotype-tag",25),t.qZA(),t.TgZ(3,"td"),t.YNc(4,bt,2,2,"cvc-link-tag",26),t.YNc(5,At,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.TgZ(7,"td",28),t._uU(8),t.qZA(),t.TgZ(9,"td",28),t._uU(10),t.qZA()()),2&n){const o=a.$implicit,s=t.MAs(6);t.xp6(2),t.Q6J("phenotype",o),t.xp6(2),t.Q6J("ngIf",o.hpoId)("ngIfElse",s),t.xp6(4),t.hij(" ",o.evidenceCount," "),t.xp6(2),t.hij(" ",o.assertionCount," ")}}const St=function(){return[]},Et=function(){return{x:"680px",y:"800px"}},j=function(){return["descend","ascend",null]};function Zt(n,a){if(1&n){const o=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.scrollEvent$.next(m))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.sortChange$.next(m))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," HPO ID "),t.qZA(),t.TgZ(12,"th",15),t._UZ(13,"i",16),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",17),t._UZ(16,"i",18),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.hpoNameFilter=m)})("inputModelChange",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.hpoIdFilter=m)})("inputModelChange",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",22)(24,"th",22),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,It,11,5,"ng-template",23),t.qZA()()}if(2&n){const o=t.oxw();t.Q6J("nzData",t.lcZ(2,23,o.row$)||t.DdM(31,St))("nzLoading",!t.lcZ(3,25,o.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",o.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,o.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,o.scrollIndex$))("nzVirtualForTrackBy",o.trackByIndex)("nzScroll",t.DdM(32,Et))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",o.sortColumns.HpoId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",o.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,j)),t.xp6(3),t.Q6J("nzColumnKey",o.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.DdM(34,j)),t.xp6(5),t.Q6J("inputModel",o.hpoNameFilter),t.xp6(2),t.Q6J("inputModel",o.hpoIdFilter)}}function Dt(n,a){}function Ut(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Dt,0,0,"ng-template",6),t.BQk()),2&n){const o=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function Bt(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const o=t.oxw(2);t.xp6(1),t.hij(" ",o.cvcTitle," ")}}function Jt(n,a){if(1&n&&(t.YNc(0,Ut,2,1,"ng-container",30),t.YNc(1,Bt,2,1,"ng-container",30),t.TgZ(2,"span",31),t._UZ(3,"cvc-table-counts",32),t.qZA()),2&n){const o=t.oxw();t.Q6J("ngIf",o.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",o.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",o.connection$)}}function Lt(n,a){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function $t(n,a){if(1&n&&(t.YNc(0,Lt,4,0,"nz-tag",33),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",34),t.ALo(3,"ngrxPush")),2&n){const o=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,o.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,o.noMoreRows$))}}let L=((M=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,o){this.gql=a,this.cdr=o,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=Z.lYz,this.noMoreRows$=new W.X(!1),this.scrollEvent$=new W.X("stop"),this.sortChange$=new D.x,this.filterChange$=new D.x,this.scrollIndex$=new D.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,x.j)("loading"),(0,B.x)(),(0,dt.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,x.j)("loading"),(0,B.x)(),(0,gt.T)(2)),this.connection$=this.result$.pipe((0,x.j)("data","phenotypes"),(0,I.h)(U.ep)),this.row$=this.connection$.pipe((0,x.j)("edges"),(0,I.h)(U.ep),(0,J.U)(a=>a.map(o=>o.node))),this.pageInfo$=this.connection$.pipe((0,x.j)("pageInfo"),(0,I.h)(U.ep)),this.sortChange$.pipe((0,A.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,pt._)(a)})}),this.filterChange$.pipe((0,ht.b)(500),(0,A.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,J.U)(a=>"stop"!==a),(0,B.x)(),(0,A.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,I.h)(a=>"bottom"===a),(0,mt.M)(this.pageInfo$),(0,J.U)(([a,o])=>o),(0,A.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.hpoNameFilter,hpoId:this.hpoIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,o){return o?.id}}).\u0275fac=function(a){return new(a||M)(t.Y36(Z.B97),t.Y36(t.sBO))},M.\u0275cmp=t.Xpm({type:M,selectors:[["cvc-phenotypes-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","350px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100%",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"phenotype"],[3,"href",4,"ngIf","ngIfElse"],["noHpo",""],["nzRight","","nzAlign","right"],[3,"href"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,o){if(1&a&&(t.YNc(0,Tt,3,3,"ng-container",0),t.YNc(1,Ot,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Zt,27,35,"ng-template",null,2,t.W1O),t.YNc(5,Jt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,$t,4,6,"ng-template",null,4,t.W1O)),2&a){const s=t.MAs(2);t.Q6J("ngIf",!o.cvcHeight)("ngIfElse",s)}},dependencies:[l.O5,l.tP,l.PC,P.N8,P.qD,P.Uo,P._C,P.Om,P.p0,P.$Z,P.zu,P.qn,P.UX,w.w,c.Ls,$.bd,Q.SY,F.j,ut.H,ft.y,vt.B,yt.D,zt.q,_t.p,Ct.i,R.l,N.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),M);function Qt(n,a){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Associated Phenotype Docs "),t.qZA())}function Ft(n,a){1&n&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Phenotype Curation Docs "),t.qZA())}L=(0,ct.gn)([(0,A.c)()],L);let Rt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["phenotypes-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"],["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/associated_phenotype.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Associated Phenotypes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock",""]],template:function(o,s){1&o&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Associated Phenotypes"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Phenotypes are symptoms or abnormalities that are encountered in human disease, optionally associated with Evidence Items and known to the Human Phenotype Ontology database. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Qt,3,0,"a",8),t.YNc(15,Ft,3,0,"a",9),t.qZA()()(),t.TgZ(16,"div",10)(17,"div",11)(18,"div",12),t._UZ(19,"cvc-phenotypes-table",13),t.qZA()()()()()),2&o&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Phenotype")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[d.$O,d.u5,c.Ls,r.t3,r.SK,S.ix,w.w,h.NU,h.$1,E.ZU,K.I,L,H.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Kt=e(6822),Nt=e(1826);const Ht=function(){return[8,16]};function wt(n,a){if(1&n&&(t.TgZ(0,"nz-row",1)(1,"nz-col",2),t._UZ(2,"cvc-assertions-table",3),t.qZA(),t.TgZ(3,"nz-col",2),t._UZ(4,"cvc-evidence-table",4),t.qZA()()),2&n){const o=t.oxw();t.Q6J("nzGutter",t.DdM(5,Ht)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("phenotypeId",o.phenotypeId),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("phenotypeId",o.phenotypeId)}}const Wt=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes"]],decls:1,vars:0,template:function(o,s){1&o&&t._UZ(0,"router-outlet")},dependencies:[g.lC],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{flex-wrap:nowrap;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})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Rt,data:{breadcrumb:"Home"}},{path:":phenotypeId",component:lt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.phenotypeId=+s.phenotypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes-summary"]],decls:1,vars:1,consts:[[3,"nzGutter",4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["cvcHeight","400","cvcTitle","Phenotype Assertions",3,"phenotypeId"],["cvcTitle","Phenotype Evidence",3,"phenotypeId"]],template:function(o,s){1&o&&t.YNc(0,wt,5,6,"nz-row",0),2&o&&t.Q6J("ngIf",s.phenotypeId)},dependencies:[l.O5,r.t3,r.SK,Kt.a,Nt.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Summary"}}]}]}];let jt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.Bz.forChild(Wt),g.Bz]}),n})(),Yt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,g.Bz,jt,et,T,b]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5369],{1218:(O,v,e)=>{e.d(v,{i:()=>T});var l=e(6814),g=e(4190),y=e(5695),p=e(7417),f=e(551),c=e(1855),d=e(2524),_=e(3640),h=e(3146),t=e(5879);let T=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[l.ez,g.Bz,_.mS,y.X,p.$6,f.PV,c.f,d.s,h.C]}),u})()},1106:(O,v,e)=>{e.d(v,{L:()=>i});var l=e(6814),g=e(4190),y=e(5695),p=e(551),f=e(95),c=e(6067),d=e(8125),_=e(2962),h=e(4293),t=e(5879);let T=(()=>{class r{}return r.\u0275fac=function(b){return new(b||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[l.ez,_.vh,f.Jb,d.q6,c.X,h.H]}),r})();var u=e(7417);let i=(()=>{class r{}return r.\u0275fac=function(b){return new(b||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[l.ez,g.Bz,y.X,p.PV,u.$6,T]}),r})()},7950:(O,v,e)=>{e.d(v,{x:()=>u});var l=e(6814),g=e(366),y=e(5695),p=e(7417),f=e(3396),c=e(1106),d=e(5956),_=e(7528),h=e(6061),t=e(3717),T=e(5879);let u=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=T.oAB({type:i}),i.\u0275inj=T.cJS({imports:[l.ez,y.X,p.$6,g.$,h.N,f.Q,c.L,d.U,_.Q,t.M]}),i})()},3717:(O,v,e)=>{e.d(v,{M:()=>u});var l=e(6814),g=e(4190),y=e(5695),p=e(2962),f=e(6067),c=e(8125),d=e(551),_=e(2524),h=e(5879);let t=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=h.oAB({type:i}),i.\u0275inj=h.cJS({imports:[l.ez,d.PV,p.vh,c.q6,_.s,f.X]}),i})();var T=e(7417);let u=(()=>{class i{}return i.\u0275fac=function(C){return new(C||i)},i.\u0275mod=h.oAB({type:i}),i.\u0275inj=h.cJS({imports:[l.ez,g.Bz,d.PV,y.X,T.$6,t]}),i})()},4010:(O,v,e)=>{e.d(v,{F:()=>y});var g=e(5879);let y=(()=>{class p{transform(c,d="display-string"){return void 0===c?"":"display-string"===d?function l(p){switch(p){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return p}}(c):`civic-${c.replace(/_/g,"").toLowerCase()}`}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275pipe=g.Yjl({name:"therapyInteractionEnumDisplay",type:p,pure:!0}),p})()},1112:(O,v,e)=>{e.r(v),e.d(v,{PhenotypesModule:()=>Yt});var l=e(6814),g=e(4190),y=e(6067),p=e(2419),f=e(2524),c=e(551),d=e(6254),_=e(8125),h=e(2574),t=e(5879);let T=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,g.Bz,d.KJ,c.PV,h.zf,_.q6,f.s,y.X,p.D]}),n})();var u=e(1403),i=e(5895),r=e(95),C=e(9333);let b=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,r.Jb,C.h,u.Q,i.s]}),n})();var P=e(3740),Y=e(7856),V=e(3043),S=e(2840),E=e(2392),$=e(2962),Q=e(6109),F=e(5695),X=e(9175),G=e(4742),k=e(9154),q=e(9312),tt=e(2989);let nt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,P.HQ,S.sL,c.PV,E.ZJ,$.vh,Q.cg,F.X,f.s,k.y,q.w,tt.T,X.n,G.c,Y.k,V.y,y.X]}),n})(),et=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,d.KJ,c.PV,r.Jb,S.sL,h.zf,E.ZJ,f.s,p.D,nt]}),n})();var ot=e(7921),x=e(4223),Z=e(313),R=e(3317),K=e(3145),N=e(8091),at=e(406),H=e(2616);function rt(n,a){if(1&n&&(t.TgZ(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t._uU(2),t.ALo(3,"ifEmpty"),t.qZA()()),2&n){const o=t.oxw().ngIf;t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(2),t.hij(" ",t.xi3(3,3,o.description,"--")," ")}}function it(n,a){1&n&&t._UZ(0,"p")}function st(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-extra")(8,"cvc-link-tag",4),t._uU(9),t.qZA()(),t.TgZ(10,"nz-page-header-content")(11,"div",5)(12,"nz-space",6),t.YNc(13,rt,4,6,"nz-descriptions",7),t.YNc(14,it,1,0,"p",8),t.qZA(),t._UZ(15,"router-outlet"),t.qZA()()(),t.BQk()),2&n){const o=a.ngIf;t.xp6(1),t.Q6J("displayName",o.name),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,5,"Phenotype")),t.xp6(2),t.hij(" ",o.name," "),t.xp6(2),t.Q6J("href",o.url),t.xp6(1),t.hij(" ",o.hpoId," ")}}let lt=(()=>{class n{constructor(o,s){this.route=o,this.gql=s,this.routeSub=this.route.params.subscribe(m=>{this.phenotypeId=+m.phenotypeId,this.queryRef=this.gql.watch({phenotypeId:this.phenotypeId});let z=this.queryRef.valueChanges;this.loading$=z.pipe((0,x.j)("loading"),(0,ot.O)(!0)),this.phenotype$=z.pipe((0,x.j)("data","phenotype"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.gz),t.Y36(Z.WGV))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"],["tooltip","View in the HPO",3,"href"],[1,"content"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical",3,"nzBordered","nzColumn",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzLayout","vertical",3,"nzBordered","nzColumn"],["nzTitle","Definition"]],template:function(o,s){1&o&&(t.YNc(0,st,16,7,"ng-container",0),t.ALo(1,"ngrxPush")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,s.phenotype$))},dependencies:[l.O5,g.lC,d.$O,d.u9,d.u5,d.Jp,c.Ls,h.NU,h.$1,_.R7,_.uj,R.l,K.I,N.fM,at.D,H.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{flex-wrap:nowrap;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 M,w=e(855),ct=e(655),pt=e(4632),A=e(1791),W=e(5619),D=e(8645),U=e(5676),B=e(3997),dt=e(812),gt=e(836),I=e(2181),J=e(7398),ht=e(3620),mt=e(2460),ut=e(3489),ft=e(4997),vt=e(9857),yt=e(6753),zt=e(4764),_t=e(8516),Ct=e(3897);function Pt(n,a){}function Tt(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,Pt,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const o=t.MAs(6),s=t.MAs(8),m=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",m)}}function xt(n,a){}const Mt=function(n){return{height:n}};function Ot(n,a){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,xt,0,0,"ng-template",6),t.qZA()()),2&n){const o=t.oxw(),s=t.MAs(6),m=t.MAs(8),z=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,Mt,o.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",s)("nzExtra",m),t.xp6(1),t.Q6J("ngTemplateOutlet",z)}}function bt(n,a){if(1&n&&(t.TgZ(0,"cvc-link-tag",29),t._uU(1),t.qZA()),2&n){const o=t.oxw().$implicit;t.Q6J("href",o.url),t.xp6(1),t.hij(" ",o.hpoId," ")}}function At(n,a){1&n&&t._uU(0,"--")}function It(n,a){if(1&n&&(t.TgZ(0,"tr",24)(1,"td",20),t._UZ(2,"cvc-phenotype-tag",25),t.qZA(),t.TgZ(3,"td"),t.YNc(4,bt,2,2,"cvc-link-tag",26),t.YNc(5,At,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.TgZ(7,"td",28),t._uU(8),t.qZA(),t.TgZ(9,"td",28),t._uU(10),t.qZA()()),2&n){const o=a.$implicit,s=t.MAs(6);t.xp6(2),t.Q6J("phenotype",o),t.xp6(2),t.Q6J("ngIf",o.hpoId)("ngIfElse",s),t.xp6(4),t.hij(" ",o.evidenceCount," "),t.xp6(2),t.hij(" ",o.assertionCount," ")}}const St=function(){return[]},Et=function(){return{x:"680px",y:"800px"}},j=function(){return["descend","ascend",null]};function Zt(n,a){if(1&n){const o=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.scrollEvent$.next(m))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.sortChange$.next(m))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," HPO ID "),t.qZA(),t.TgZ(12,"th",15),t._UZ(13,"i",16),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",17),t._UZ(16,"i",18),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.hpoNameFilter=m)})("inputModelChange",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(m){t.CHM(o);const z=t.oxw();return t.KtG(z.hpoIdFilter=m)})("inputModelChange",function(){t.CHM(o);const m=t.oxw();return t.KtG(m.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",22)(24,"th",22),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,It,11,5,"ng-template",23),t.qZA()()}if(2&n){const o=t.oxw();t.Q6J("nzData",t.lcZ(2,23,o.row$)||t.DdM(31,St))("nzLoading",!t.lcZ(3,25,o.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",o.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,o.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,o.scrollIndex$))("nzVirtualForTrackBy",o.trackByIndex)("nzScroll",t.DdM(32,Et))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",o.sortColumns.HpoId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",o.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,j)),t.xp6(3),t.Q6J("nzColumnKey",o.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.DdM(34,j)),t.xp6(5),t.Q6J("inputModel",o.hpoNameFilter),t.xp6(2),t.Q6J("inputModel",o.hpoIdFilter)}}function Dt(n,a){}function Ut(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Dt,0,0,"ng-template",6),t.BQk()),2&n){const o=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function Bt(n,a){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const o=t.oxw(2);t.xp6(1),t.hij(" ",o.cvcTitle," ")}}function Jt(n,a){if(1&n&&(t.YNc(0,Ut,2,1,"ng-container",30),t.YNc(1,Bt,2,1,"ng-container",30),t.TgZ(2,"span",31),t._UZ(3,"cvc-table-counts",32),t.qZA()),2&n){const o=t.oxw();t.Q6J("ngIf",o.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",o.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",o.connection$)}}function Lt(n,a){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function $t(n,a){if(1&n&&(t.YNc(0,Lt,4,0,"nz-tag",33),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",34),t.ALo(3,"ngrxPush")),2&n){const o=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,o.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,o.noMoreRows$))}}let L=((M=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,o){this.gql=a,this.cdr=o,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=Z.lYz,this.noMoreRows$=new W.X(!1),this.scrollEvent$=new W.X("stop"),this.sortChange$=new D.x,this.filterChange$=new D.x,this.scrollIndex$=new D.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,x.j)("loading"),(0,B.x)(),(0,dt.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,x.j)("loading"),(0,B.x)(),(0,gt.T)(2)),this.connection$=this.result$.pipe((0,x.j)("data","phenotypes"),(0,I.h)(U.ep)),this.row$=this.connection$.pipe((0,x.j)("edges"),(0,I.h)(U.ep),(0,J.U)(a=>a.map(o=>o.node))),this.pageInfo$=this.connection$.pipe((0,x.j)("pageInfo"),(0,I.h)(U.ep)),this.sortChange$.pipe((0,A.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,pt._)(a)})}),this.filterChange$.pipe((0,ht.b)(500),(0,A.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,J.U)(a=>"stop"!==a),(0,B.x)(),(0,A.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,I.h)(a=>"bottom"===a),(0,mt.M)(this.pageInfo$),(0,J.U)(([a,o])=>o),(0,A.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.hpoNameFilter,hpoId:this.hpoIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,o){return o?.id}}).\u0275fac=function(a){return new(a||M)(t.Y36(Z.B97),t.Y36(t.sBO))},M.\u0275cmp=t.Xpm({type:M,selectors:[["cvc-phenotypes-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","350px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100%",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"phenotype"],[3,"href",4,"ngIf","ngIfElse"],["noHpo",""],["nzRight","","nzAlign","right"],[3,"href"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,o){if(1&a&&(t.YNc(0,Tt,3,3,"ng-container",0),t.YNc(1,Ot,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Zt,27,35,"ng-template",null,2,t.W1O),t.YNc(5,Jt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,$t,4,6,"ng-template",null,4,t.W1O)),2&a){const s=t.MAs(2);t.Q6J("ngIf",!o.cvcHeight)("ngIfElse",s)}},dependencies:[l.O5,l.tP,l.PC,P.N8,P.qD,P.Uo,P._C,P.Om,P.p0,P.$Z,P.zu,P.qn,P.UX,w.w,c.Ls,$.bd,Q.SY,F.j,ut.H,ft.y,vt.B,yt.D,zt.q,_t.p,Ct.i,R.l,N.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),M);function Qt(n,a){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Associated Phenotype Docs "),t.qZA())}function Ft(n,a){1&n&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Phenotype Curation Docs "),t.qZA())}L=(0,ct.gn)([(0,A.c)()],L);let Rt=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["phenotypes-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"],["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/associated_phenotype.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Associated Phenotypes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock",""]],template:function(o,s){1&o&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Associated Phenotypes"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Phenotypes are symptoms or abnormalities that are encountered in human disease, optionally associated with Evidence Items and known to the Human Phenotype Ontology database. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Qt,3,0,"a",8),t.YNc(15,Ft,3,0,"a",9),t.qZA()()(),t.TgZ(16,"div",10)(17,"div",11)(18,"div",12),t._UZ(19,"cvc-phenotypes-table",13),t.qZA()()()()()),2&o&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Phenotype")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[d.$O,d.u5,c.Ls,r.t3,r.SK,S.ix,w.w,h.NU,h.$1,E.ZU,K.I,L,H.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Kt=e(6822),Nt=e(1826);const Ht=function(){return[8,16]};function wt(n,a){if(1&n&&(t.TgZ(0,"nz-row",1)(1,"nz-col",2),t._UZ(2,"cvc-assertions-table",3),t.qZA(),t.TgZ(3,"nz-col",2),t._UZ(4,"cvc-evidence-table",4),t.qZA()()),2&n){const o=t.oxw();t.Q6J("nzGutter",t.DdM(5,Ht)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("phenotypeId",o.phenotypeId),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("phenotypeId",o.phenotypeId)}}const Wt=[{path:"",component:(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes"]],decls:1,vars:0,template:function(o,s){1&o&&t._UZ(0,"router-outlet")},dependencies:[g.lC],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{flex-wrap:nowrap;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})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Rt,data:{breadcrumb:"Home"}},{path:":phenotypeId",component:lt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.phenotypeId=+s.phenotypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-phenotypes-summary"]],decls:1,vars:1,consts:[[3,"nzGutter",4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["cvcHeight","400","cvcTitle","Phenotype Assertions",3,"phenotypeId"],["cvcTitle","Phenotype Evidence",3,"phenotypeId"]],template:function(o,s){1&o&&t.YNc(0,wt,5,6,"nz-row",0),2&o&&t.Q6J("ngIf",s.phenotypeId)},dependencies:[l.O5,r.t3,r.SK,Kt.a,Nt.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Summary"}}]}]}];let jt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.Bz.forChild(Wt),g.Bz]}),n})(),Yt=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,g.Bz,jt,et,T,b]}),n})()}}]); \ No newline at end of file diff --git a/server/public/5412.4f725f9a9c41d318.js b/server/public/5412.4f725f9a9c41d318.js new file mode 100644 index 000000000..ed56d89ab --- /dev/null +++ b/server/public/5412.4f725f9a9c41d318.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5412],{5412:(lt,Z,o)=>{o.r(Z),o.d(Z,{AssertionsDetailModule:()=>ct});var r=o(6814),l=o(4190),u=o(2574),y=o(2392),d=o(6254),h=o(2840),T=o(5695),x=o(551),b=o(3903),_=o(95),N=o(2419),U=o(5725),O=o(7129),Y=o(3786),w=o(451),D=o(4059),L=o(936),g=o(313),Q=o(7921),B=o(9773),f=o(4223),E=o(8645),F=o(5619),n=o(5879),V=o(951),v=o(8091),C=o(855),R=o(1958),j=o(3145),$=o(327),G=o(1801),q=o(8295),W=o(4794),K=o(9700),X=o(5098),H=o(1520),P=o(2606),k=o(2616);function nn(e,s){if(1&e&&(n.TgZ(0,"span",8),n._uU(1,"Related to "),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4,":"),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(3),n.Oqu(t.name)}}function en(e,s){if(1&e&&(n.TgZ(0,"span",9),n._UZ(1,"cvc-molecular-profile-tag",10),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(1),n.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function tn(e,s){1&e&&(n.TgZ(0,"nz-space",5),n.YNc(1,nn,5,1,"span",6),n.YNc(2,en,2,2,"span",7),n.qZA())}const sn=function(e){return["/assertions",e,"revise"]};function on(e,s){if(1&e&&(n.TgZ(0,"button",25,26),n._uU(2," Revise "),n.qZA()),2&e){const t=n.MAs(1),i=n.oxw(3).ngIf;n.Q6J("routerLink",n.VKq(2,sn,i.id))("nzType",t.isActive?"primary":"default")}}function an(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,on,3,4,"button",24),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function rn(e,s){if(1&e&&(n.TgZ(0,"span")(1,"button",27,26),n._uU(3," Flag "),n.qZA()()),2&e){const t=n.MAs(2);n.xp6(1),n.Q6J("nzType",t.isActive?"primary":"default")}}function cn(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-entity-subscription-button",28),n.BQk()),2&e){const t=n.oxw(2).ngrxLet,i=n.oxw(2);n.xp6(1),n.Q6J("viewer",t)("subscribableId",i.subscribable.id)}}function ln(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,cn,2,2,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,i=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.signedIn&&i.subscribable)}}function gn(e,s){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"cvc-revert-entity-button",29),n.NdJ("onReverted",function(a){n.CHM(t);const c=n.oxw(4);return n.KtG(c.onRevertCompleted(a))}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("entityId",t.id)}}function pn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gn,2,1,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,i=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function _n(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",30),n.NdJ("nzOnClose",function(){const c=n.CHM(t).$implicit,p=n.oxw(3);return n.KtG(p.onErrorBannerClose(c))}),n.qZA()}2&e&&n.Q6J("nzMessage",s.$implicit)}function mn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",31),n.NdJ("nzOnClose",function(){n.CHM(t);const a=n.oxw(3);return n.KtG(a.onSuccessBannerClose())}),n.qZA()}if(2&e){const t=n.oxw(3);n.Q6J("nzMessage",t.successMessage)}}function un(e,s){1&e&&n._UZ(0,"nz-alert",32)}function dn(e,s){1&e&&n._UZ(0,"nz-alert",33)}function fn(e,s){if(1&e&&(n.TgZ(0,"nz-col",34),n._UZ(1,"cvc-contributor-avatars",35),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.Q6J("subscribable",t.subscribable)}}function zn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"span")(1,"cvc-moderate-entity-buttons",37),n.NdJ("onModerated",function(a){n.CHM(t);const c=n.oxw(4);return n.KtG(c.onModerateCompleted(a))}),n.qZA()()}if(2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("entityId",t.id)}}function yn(e,s){1&e&&n._UZ(0,"span")}function xn(e,s){1&e&&(n.TgZ(0,"nz-space",36),n.YNc(1,zn,2,1,"span",15),n.YNc(2,yn,1,0,"span",15),n.qZA())}const hn=function(e){return{flagged:e}};function Tn(e,s){if(1&e&&(n.TgZ(0,"nz-page-header",11)(1,"nz-page-header-title",12),n._UZ(2,"i",13),n.ALo(3,"entityColor"),n._uU(4),n.qZA(),n.TgZ(5,"nz-page-header-extra")(6,"nz-space",14),n.YNc(7,an,2,1,"span",15),n.YNc(8,rn,4,1,"span",15),n.YNc(9,ln,2,1,"span",15),n.YNc(10,pn,2,1,"span",15),n.qZA()(),n.TgZ(11,"nz-page-header-content"),n.YNc(12,_n,1,1,"nz-alert",16),n.YNc(13,mn,1,1,"nz-alert",17),n.YNc(14,un,1,0,"nz-alert",18),n.YNc(15,dn,1,0,"nz-alert",19),n.TgZ(16,"cvc-tab-navigation",20),n.ALo(17,"ngrxPush"),n.YNc(18,fn,2,1,"ng-template",null,21,n.W1O),n.qZA(),n.YNc(20,xn,3,0,"nz-space",22),n.TgZ(21,"div",23),n._UZ(22,"router-outlet"),n.qZA()()()),2&e){const t=s.ngrxLet,i=n.oxw().ngIf,a=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(13,hn,i.flags.totalCount>0)),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(3,9,"Assertion")),n.xp6(2),n.hij(" ",i.name," "),n.xp6(8),n.Q6J("ngForOf",a.errors),n.xp6(1),n.Q6J("ngIf",a.successMessage),n.xp6(1),n.Q6J("ngIf","SUBMITTED"==i.status),n.xp6(1),n.Q6J("ngIf","REJECTED"==i.status),n.xp6(1),n.Q6J("tabs",n.lcZ(17,11,a.tabs$)),n.xp6(4),n.Q6J("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function vn(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,tn,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.YNc(6,Tn,23,15,"nz-page-header",4),n.qZA(),n.BQk()),2&e){const t=s.ngIf,i=n.MAs(3),a=n.oxw();n.xp6(1),n.Q6J("displayName",t.name)("relationsTpl",i),n.xp6(3),n.Q6J("flags",n.lcZ(5,4,a.flagsTotal$)),n.xp6(2),n.Q6J("ngrxLet",a.viewer$)}}let An=(()=>{class e{constructor(t,i,a){this.gql=t,this.viewerService=i,this.route=a,this.destroy$=new E.x,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.errors=[],this.tabs$=new F.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({assertionId:+c.assertionId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,f.j)("loading"),(0,Q.O)(!0)),this.assertion$=p.pipe((0,f.j)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,f.j)("flags","totalCount")),this.assertion$.pipe((0,B.R)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(z=>"Revisions"===z.tabLabel?{badgeCount:m?.revisions.totalCount,...z}:"Comments"===z.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",...z}:z))}}),this.subscribable={id:+c.assertionId,entityType:g.o71.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onErrorBannerClose(t){this.errors=this.errors?.filter(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${t}.`,this.queryRef?.refetch())}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(g.A94),n.Y36(V.a),n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],["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,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["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 Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical",4,"ngIf"],[1,"content"],["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"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","Assertion",3,"entityId","onModerated"]],template:function(t,i){1&t&&(n.YNc(0,vn,7,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,i.assertion$))},dependencies:[r.mk,r.sg,r.O5,l.lC,l.rH,l.Od,v.eJ,u.NU,u.$1,y.ZU,d.$O,d.u9,d.u5,d.Jp,h.ix,C.w,R.dQ,x.Ls,b.r,_.t3,j.I,$.o,G.Y,q.Q,W.e,K.m,X.P,H.N,P.p,v.fM,k.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{flex-wrap:nowrap;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 Zn=o(1260);let bn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,Zn.l]}),e})();var Qn=o(5565);let Cn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:g.OfU.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,i){1&t&&n._UZ(0,"cvc-comment-list",0),2&t&&n.Q6J("commentable",i.commentable)},dependencies:[Qn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Pn=o(2962),Jn=o(4139),In=o(7937);let Mn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,_.Jb,Pn.vh,u.zf,Jn.H0,In.M]}),e})();var Sn=o(4385);let Nn=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:g.sfv.Assertion,id:+this.route.snapshot.params.assertionId}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,i){1&t&&n._UZ(0,"cvc-flag-list-and-filter",0),2&t&&n.Q6J("flaggable",i.flaggable)},dependencies:[Sn.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Un=o(2534);let On=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,Un.A]}),e})();var Yn=o(6126);let wn=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.aid=+i.assertionId,this.entityType=g.oRL.Assertion})}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,i){1&t&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&n.Q6J("id",i.aid)("entityType",i.entityType)},dependencies:[Yn.a],encapsulation:2}),e})();var A=o(8125),J=o(2524),Dn=o(2655),Ln=o(8706),Bn=o(366),En=o(1403),Fn=o(3396),Vn=o(3043),I=o(6109),Rn=o(7364),M=o(8527),jn=o(9858),$n=o(6061),Gn=o(8916);let qn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,_.Jb,u.zf,_.Jb,y.ZJ,h.sL,T.X,x.PV,A.q6,I.cg,Gn.M,J.s,Dn.x,Ln.W,Bn.$,$n.N,En.Q,Fn.Q,Vn.y,Rn._,M.u,jn.r]}),e})();var Wn=o(9182),Kn=o(9183),Xn=o(2384),Hn=o(356),kn=o(1887),ne=o(4770),ee=o(6822),te=o(9775),se=o(3897),oe=o(8923),ie=o(5095),ae=o(3702),re=o(4010),ce=o(8004),le=o(5573);function ge(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-tag"),n._uU(2),n.ALo(3,"formatAmp"),n.qZA(),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.Oqu(n.xi3(3,1,t.ampLevel,"verbose"))}}function pe(e,s){1&e&&(n._uU(0," ACMG Codes "),n.TgZ(1,"span",44),n._UZ(2,"i",45),n.qZA())}function _e(e,s){if(1&e&&(n.TgZ(0,"nz-tag",47),n._uU(1),n.qZA()),2&e){const t=s.$implicit;n.Q6J("nzTooltipTitle",t.description),n.xp6(1),n.Oqu(t.code)}}function me(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,_e,2,2,"nz-tag",46),n.qZA(),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.Q6J("ngForOf",t.acmgCodes)}}function ue(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"None provided"),n.qZA(),n.BQk())}function de(e,s){if(1&e&&(n.ynx(0),n.YNc(1,me,3,1,"ng-container",0),n.YNc(2,ue,3,0,"ng-container",0),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.acmgCodes.length>0),n.xp6(1),n.Q6J("ngIf",0==t.acmgCodes.length)}}function fe(e,s){1&e&&(n._uU(0," ClinGen/CGC/VICC Codes "),n.TgZ(1,"span",44),n._UZ(2,"i",45),n.qZA())}function ze(e,s){if(1&e&&(n.TgZ(0,"nz-tag",47),n._uU(1),n.qZA()),2&e){const t=s.$implicit;n.Q6J("nzTooltipTitle",t.description),n.xp6(1),n.Oqu(t.code)}}function ye(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,ze,2,2,"nz-tag",46),n.qZA(),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.Q6J("ngForOf",t.clingenCodes)}}function xe(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"None provided"),n.qZA(),n.BQk())}function he(e,s){if(1&e&&(n.ynx(0),n.YNc(1,ye,3,1,"ng-container",0),n.YNc(2,xe,3,0,"ng-container",0),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.clingenCodes.length>0),n.xp6(1),n.Q6J("ngIf",0==t.clingenCodes.length)}}function Te(e,s){1&e&&(n.TgZ(0,"span",44),n._uU(1,"Not applicable"),n.qZA())}function ve(e,s){if(1&e&&(n._uU(0," Submitted "),n.TgZ(1,"span",44),n._uU(2),n.ALo(3,"timeAgo"),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.hij(" (",n.lcZ(3,1,t.submissionEvent.createdAt),") ")}}function Ae(e,s){if(1&e&&(n._uU(0," Accepted "),n.TgZ(1,"span",44),n._uU(2),n.ALo(3,"timeAgo"),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(2),n.hij(" (",n.lcZ(3,1,t.acceptanceEvent.createdAt),") ")}}function Ze(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-descriptions-item",25),n._uU(2," by "),n._UZ(3,"cvc-user-tag",26),n.qZA(),n.YNc(4,Ae,4,3,"ng-template",null,48,n.W1O),n.BQk()),2&e){const t=n.MAs(5),i=n.oxw(2).ngIf;n.xp6(1),n.Q6J("nzTitle",t),n.xp6(2),n.Q6J("user",i.acceptanceEvent.originatingUser)}}function be(e,s){if(1&e&&(n._uU(0," Rejected "),n.TgZ(1,"span",44),n._uU(2),n.ALo(3,"timeAgo"),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(2),n.hij(" (",n.lcZ(3,1,t.rejectionEvent.createdAt),") ")}}function Qe(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-descriptions-item",25),n._uU(2),n.ALo(3,"timeAgo"),n._UZ(4,"cvc-user-tag",26),n.qZA(),n.YNc(5,be,4,3,"ng-template",null,49,n.W1O),n.BQk()),2&e){const t=n.MAs(6),i=n.oxw(2).ngIf;n.xp6(1),n.Q6J("nzTitle",t),n.xp6(1),n.hij(" by ",n.lcZ(3,3,i.rejectionEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",i.rejectionEvent.originatingUser)}}function Ce(e,s){if(1&e&&(n.ynx(0),n.YNc(1,Ze,6,2,"ng-container",0),n.YNc(2,Qe,7,5,"ng-container",0),n.BQk()),2&e){const t=n.oxw().ngIf,i=n.oxw();n.xp6(1),n.Q6J("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),n.xp6(1),n.Q6J("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Pe(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",50),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("disease",t.disease)}}function Je(e,s){1&e&&(n.TgZ(0,"span",44),n._uU(1,"Not applicable"),n.qZA())}function Ie(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"None Specified"),n.qZA(),n.BQk())}function Me(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-phenotype-tag",52),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("phenotype",t)}}function Se(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Me,2,1,"ng-container",51),n.qZA(),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",t.phenotypes)}}function Ne(e,s){if(1&e&&n.GkF(0,53),2&e){n.oxw(2);const t=n.MAs(3);n.Q6J("ngTemplateOutlet",t)}}function Ue(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-therapy-tag",54),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("therapy",t)}}function Oe(e,s){if(1&e&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Ue,2,1,"ng-container",51),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.therapies)}}function Ye(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",55)(1,"nz-tag"),n._UZ(2,"i",56),n.ALo(3,"therapyInteractionEnumDisplay"),n._uU(4),n.ALo(5,"titlecase"),n.qZA()()),2&e){const t=n.oxw().ngIf;n.xp6(2),n.Q6J("nzType",n.xi3(3,2,t.therapyInteractionType,"icon-name")),n.xp6(2),n.hij(" ",n.lcZ(5,5,t.therapyInteractionType)," ")}}function we(e,s){1&e&&n._UZ(0,"i",57),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function De(e,s){1&e&&n._UZ(0,"i",57),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Le(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeAgo"),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function Be(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"N/A"),n.qZA(),n.BQk())}function Ee(e,s){if(1&e&&n.GkF(0,53),2&e){n.oxw(2);const t=n.MAs(3);n.Q6J("ngTemplateOutlet",t)}}function Fe(e,s){1&e&&n._UZ(0,"i",57),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Ve(e,s){1&e&&n._UZ(0,"i",57),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Re(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeAgo"),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function je(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"N/A"),n.qZA(),n.BQk())}function $e(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.AsE("",t.nccnGuideline.name," (",t.nccnGuidelineVersion,")")}}function Ge(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",44),n._uU(2,"None Provided"),n.qZA(),n.BQk())}const qe=function(){return[8,16]},S=function(){return[8,8]},We=function(){return{xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}},Ke=function(){return{xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}},Xe=function(){return{xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}};function He(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6)(7,"p",7),n._uU(8),n.qZA()(),n.TgZ(9,"nz-descriptions-item",8)(10,"p",9),n._uU(11),n.qZA()()()(),n.TgZ(12,"nz-col",4)(13,"nz-descriptions",10)(14,"nz-descriptions-item",11),n._UZ(15,"cvc-attribute-tag",12),n.ALo(16,"enumTooltip"),n.qZA(),n.TgZ(17,"nz-descriptions-item",13),n._UZ(18,"cvc-attribute-tag",14),n.ALo(19,"enumTooltip"),n.qZA(),n.TgZ(20,"nz-descriptions-item",15),n._UZ(21,"cvc-attribute-tag",14),n.ALo(22,"enumTooltip"),n.qZA(),n.TgZ(23,"nz-descriptions-item",16),n._UZ(24,"cvc-attribute-tag",14),n.ALo(25,"enumTooltip"),n.qZA(),n.TgZ(26,"nz-descriptions-item",17),n.YNc(27,ge,4,4,"ng-container",18),n.qZA(),n.TgZ(28,"nz-descriptions-item",19),n.YNc(29,pe,3,0,"ng-template",null,20,n.W1O),n.YNc(31,de,3,2,"ng-container",18),n.qZA(),n.TgZ(32,"nz-descriptions-item",19),n.YNc(33,fe,3,0,"ng-template",null,21,n.W1O),n.YNc(35,he,3,2,"ng-container",18),n.qZA(),n.YNc(36,Te,2,0,"ng-template",null,22,n.W1O),n.qZA()()()(),n.TgZ(38,"nz-col",4)(39,"nz-row",3)(40,"nz-col",4)(41,"nz-descriptions",5)(42,"nz-descriptions-item",23),n._UZ(43,"cvc-status-tag",24),n.qZA(),n.TgZ(44,"nz-descriptions-item",25),n._uU(45," by "),n._UZ(46,"cvc-user-tag",26),n.qZA(),n.YNc(47,ve,4,3,"ng-template",null,27,n.W1O),n.YNc(49,Ce,3,2,"ng-container",0),n.qZA()(),n.TgZ(50,"nz-col",4)(51,"nz-descriptions",10)(52,"nz-descriptions-item",28),n._UZ(53,"cvc-molecular-profile-tag",29),n.qZA(),n.TgZ(54,"nz-descriptions-item",30),n._UZ(55,"cvc-mp-tag-name",31),n.qZA(),n.TgZ(56,"nz-descriptions-item",32),n.YNc(57,Pe,2,1,"ng-container",0),n.YNc(58,Je,2,0,"span",33),n.qZA(),n.TgZ(59,"nz-descriptions-item",25),n.YNc(60,Ie,3,0,"ng-container",0),n.YNc(61,Se,3,1,"ng-container",0),n.qZA(),n.TgZ(62,"nz-descriptions-item",25),n.ynx(63,34),n.YNc(64,Ne,1,1,"ng-template",35),n.YNc(65,Oe,2,1,"ng-template",36),n.BQk(),n.qZA(),n.YNc(66,Ye,6,7,"nz-descriptions-item",37),n.TgZ(67,"nz-descriptions-item",38),n.YNc(68,we,1,3,"i",39),n.YNc(69,De,1,3,"i",39),n.YNc(70,Le,3,3,"ng-container",0),n.YNc(71,Be,3,0,"ng-container",0),n.YNc(72,Ee,1,1,"ng-container",40),n.qZA(),n.TgZ(73,"nz-descriptions-item",41),n.YNc(74,Fe,1,3,"i",39),n.YNc(75,Ve,1,3,"i",39),n.YNc(76,Re,3,3,"ng-container",0),n.YNc(77,je,3,0,"ng-container",0),n.qZA(),n.TgZ(78,"nz-descriptions-item",42),n.YNc(79,$e,2,2,"ng-container",0),n.YNc(80,Ge,3,0,"ng-container",0),n.qZA()()()()(),n.TgZ(81,"nz-col",4),n._UZ(82,"cvc-evidence-table",43),n.qZA()(),n.BQk()),2&e){const t=s.ngIf,i=n.MAs(30),a=n.MAs(34),c=n.MAs(48),p=n.oxw(),m=n.MAs(3);n.xp6(1),n.Q6J("nzGutter",n.DdM(79,qe)),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzGutter",n.DdM(80,S)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",1),n.xp6(3),n.Oqu(t.summary),n.xp6(2),n.Q6J("nzEllipsisRows",6),n.xp6(1),n.hij(" ",t.description," "),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",n.DdM(81,We)),n.xp6(2),n.Q6J("cvcAttrValue",t.assertionType)("nzTooltipTitle",n.xi3(16,63,t.assertionType,"assertionType")),n.xp6(3),n.Q6J("cvcAttrValue",t.assertionDirection)("nzTooltipTitle",n.gM2(19,66,t.assertionDirection,"assertionDirection",t.assertionType,"Assertion")),n.xp6(3),n.Q6J("cvcAttrValue",t.significance)("nzTooltipTitle",n.gM2(22,71,t.significance,"significance",t.assertionType,"Assertion")),n.xp6(3),n.Q6J("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",n.xi3(25,76,t.variantOrigin,"variantOrigin")),n.xp6(3),n.Q6J("ngIf",p.assertionRules.requiresAmpLevel(t.assertionType))("ngIfElse",m),n.xp6(1),n.Q6J("nzSpan",2)("nzTitle",i),n.xp6(3),n.Q6J("ngIf",p.assertionRules.requiresAcmgCodes(t.assertionType))("ngIfElse",m),n.xp6(1),n.Q6J("nzSpan",2)("nzTitle",a),n.xp6(3),n.Q6J("ngIf",p.assertionRules.requiresClingenCodes(t.assertionType))("ngIfElse",m),n.xp6(3),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzGutter",n.DdM(82,S)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",n.DdM(83,Ke)),n.xp6(2),n.Q6J("status",t.status),n.xp6(1),n.Q6J("nzTitle",c),n.xp6(2),n.Q6J("user",t.submissionEvent.originatingUser),n.xp6(3),n.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",n.DdM(84,Xe)),n.xp6(2),n.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!0),n.xp6(2),n.Q6J("nameSegments",t.molecularProfile.parsedName),n.xp6(2),n.Q6J("ngIf",t.disease&&t.disease.name),n.xp6(1),n.Q6J("ngIf",!(null!=t.disease&&t.disease.name)),n.xp6(1),n.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),n.xp6(1),n.Q6J("ngIf",0===t.phenotypes.length),n.xp6(1),n.Q6J("ngIf",t.phenotypes.length>0),n.xp6(1),n.Q6J("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),n.xp6(1),n.Q6J("ngPlural",t.therapies.length),n.xp6(3),n.Q6J("ngIf",t.therapyInteractionType),n.xp6(2),n.Q6J("ngIf",!0===t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",!1===t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",t.regulatoryApprovalLastUpdated),n.xp6(1),n.Q6J("ngIf",void 0===t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",void 0===t.regulatoryApproval),n.xp6(2),n.Q6J("ngIf",!0===t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",!1===t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",t.fdaCompanionTestLastUpdated),n.xp6(1),n.Q6J("ngIf",void 0===t.fdaCompanionTest),n.xp6(2),n.Q6J("ngIf",t.nccnGuideline),n.xp6(1),n.Q6J("ngIf",!t.nccnGuideline),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.MGl("cvcTitle","",t.name," Evidence"),n.Q6J("assertionId",t.id)}}function ke(e,s){1&e&&n._UZ(0,"cvc-empty-value",58)}function nt(e,s){1&e&&n._UZ(0,"cvc-empty-value",59)}let et=(()=>{class e{constructor(t,i){var a;if(this.gql=t,this.route=i,this.assertionRules=new Wn._,this.statusValues=g.RTy,null==(a=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:a});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,f.j)("loading"),(0,Q.O)(!0)),this.assertion$=c.pipe((0,f.j)("data","assertion")),this.subscribable={entityType:g.o71.Assertion,id:a}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(g.ejK),n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",1,"summary-block",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","assertionType","nz-tooltip","","iconPropertyType","type",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["submittedTitle",""],["nzTitle","Molecular Profile Name"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline"],[3,"assertionId","cvcTitle"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nz-tooltip","","nzTooltipTitle","All codes are reviewed during acceptance. Absence of a code implies it is not met."],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["acceptedTitle",""],["rejectedTitle",""],[3,"disease"],[4,"ngFor","ngForOf"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["nz-icon","",1,"attribute-icon",3,"nzType"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,i){1&t&&(n.YNc(0,He,83,85,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,ke,1,0,"ng-template",null,1,n.W1O),n.YNc(4,nt,1,0,"ng-template",null,2,n.W1O)),2&t&&n.Q6J("ngIf",n.lcZ(1,1,i.assertion$))},dependencies:[r.sg,r.O5,r.tP,r.iq,r.zE,_.t3,_.SK,y.ZU,C.w,T.j,x.Ls,A.R7,A.uj,I.SY,Kn.P,Xn.h,Hn.I,kn.$,ne.T,ee.a,te.n,se.i,oe.z,P.p,ie.C,r.rS,v.fM,ae.t,re.F,ce.v,le.x],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]}),e})();var tt=o(7441);let st=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:g.o71.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(l.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,i){1&t&&n._UZ(0,"cvc-event-feed",0),2&t&&n.Q6J("subscribable",i.subscribable)},dependencies:[tt.o],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var ot=o(9894);let it=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,ot.t]}),e})();const at=[{path:"",component:An,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:et,data:{breadcrumb:"Summary"}},{path:"events",component:st,data:{breadcrumb:"Events"}},{path:"comments",component:Cn,data:{breadcrumb:"Comments"}},{path:"revisions",component:wn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Nn,data:{breadcrumb:"Flags"}}]}];let rt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[l.Bz.forChild(at),qn,bn,On,Mn,it,l.Bz]}),e})(),ct=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[r.ez,rt,l.Bz,u.zf,y.ZJ,d.KJ,h.sL,T.X,x.PV,b.L,_.Jb,J.s,N.D,U.m,O.g,Y.G,w.P,D.c,L.Z,M.u]}),e})()}}]); \ No newline at end of file diff --git a/server/public/5484.68dcf87aec9743df.js b/server/public/5484.68dcf87aec9743df.js deleted file mode 100644 index 4af6823b2..000000000 --- a/server/public/5484.68dcf87aec9743df.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5484],{4786:(N,C,a)=>{a.d(C,{O:()=>D});var l=a(8130),g=a(2023),o=a(5879),y=a(6814),u=a(4190),M=a(5695),O=a(7417),m=a(551),t=a(8213),G=a(3103),h=a(2616);function P(s,p){}function v(s,p){if(1&s&&(o.ynx(0),o.TgZ(1,"a",4),o.YNc(2,P,0,0,"ng-template",5),o.qZA(),o.BQk()),2&s){const c=o.oxw(),d=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.evidence.link),o.xp6(1),o.Q6J("ngTemplateOutlet",d)}}function f(s,p){}function V(s,p){if(1&s&&o._UZ(0,"cvc-evidence-popover",9),2&s){const c=o.oxw(3);o.Q6J("evidenceId",c.evidence.id)}}function E(s,p){if(1&s&&o.YNc(0,V,1,1,"cvc-evidence-popover",8),2&s){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}const I=function(s,p,c){return{rejected:s,submitted:p,accepted:c}};function _(s,p){if(1&s&&(o.TgZ(0,"nz-tag",6),o.YNc(1,f,0,0,"ng-template",5),o.qZA(),o.YNc(2,E,1,1,"ng-template",null,7,o.W1O)),2&s){const c=o.MAs(3),d=o.oxw(),b=o.MAs(6);o.Q6J("ngClass",o.kEZ(5,I,"REJECTED"===d.evidence.status,"SUBMITTED"===d.evidence.status,"ACCEPTED"===d.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c)("nzPopoverTrigger",d.enablePopover?"hover":null),o.xp6(1),o.Q6J("ngTemplateOutlet",b)}}function Z(s,p){}function A(s,p){if(1&s&&o.YNc(0,Z,0,0,"ng-template",5),2&s){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function S(s,p){if(1&s&&(o.TgZ(0,"cvc-icon-badges",10),o._UZ(1,"i",11),o.ALo(2,"entityColor"),o.ALo(3,"entityColor"),o.qZA(),o._uU(4)),2&s){const c=o.oxw();o.Q6J("flagged",c.evidence.flagged)("entityColor",c.iconColor),o.xp6(1),o.Q6J("nzTwotoneColor","REJECTED"===c.evidence.status?o.lcZ(2,4,"Rejected"):o.lcZ(3,6,"EvidenceItem")),o.xp6(3),o.hij(" ",c.evidence.name,"\n")}}let D=(()=>{class s extends l.a{set evidence(c){if(!c)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=c}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,g.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[o.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(c,d){if(1&c&&(o.YNc(0,v,3,2,"ng-container",0),o.YNc(1,_,4,9,"ng-template",null,1,o.W1O),o.YNc(3,A,1,1,"ng-template",null,2,o.W1O),o.YNc(5,S,5,8,"ng-template",null,3,o.W1O)),2&c){const b=o.MAs(4);o.Q6J("ngIf",d.linked)("ngIfElse",b)}},dependencies:[y.mk,y.O5,y.tP,u.rH,M.j,O.lU,m.Ls,t._,G.b,h.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),s})()},7093:(N,C,a)=>{a.r(C),a.d(C,{VariantGroupsDetailModule:()=>$t});var l=a(6814),g=a(4190),o=a(8645),y=a(5619),u=a(313),M=a(7921),O=a(9773),m=a(4223),t=a(5879),G=a(951),h=a(8091),P=a(551),v=a(95),f=a(6254),V=a(2840),E=a(855),I=a(1958),_=a(2574),Z=a(327),A=a(1801),S=a(3145),D=a(8295),s=a(5098),p=a(1520),c=a(2616);const d=function(n){return["/variant-groups",n,"revise"]};function b(n,i){if(1&n&&(t.TgZ(0,"button",14,15),t._uU(2," Revise "),t.qZA()),2&n){const e=t.MAs(1),r=t.oxw(4).ngIf;t.Q6J("routerLink",t.VKq(2,d,r.id))("nzType",e.isActive?"primary":"default")}}function Y(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,b,3,4,"button",13),t.qZA()),2&n){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.signedIn)}}function U(n,i){if(1&n&&(t.TgZ(0,"button",17,15),t._uU(2," Flag "),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("nzType",e.isActive?"primary":"default")}}function R(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,U,3,1,"button",16),t.qZA()),2&n){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.signedIn)}}function $(n,i){if(1&n&&t._UZ(0,"cvc-entity-subscription-button",19),2&n){const e=t.oxw(2).ngrxLet,r=t.oxw(3);t.Q6J("viewer",e)("subscribableId",r.subscribable.id)}}function F(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$,1,2,"cvc-entity-subscription-button",18),t.qZA()),2&n){const e=t.oxw().ngrxLet,r=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.signedIn&&r.subscribable)}}function B(n,i){1&n&&(t.TgZ(0,"nz-space",11),t.YNc(1,Y,2,1,"span",12),t.YNc(2,R,2,1,"span",12),t.YNc(3,F,2,1,"span",12),t.qZA())}function j(n,i){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,B,4,0,"nz-space",10),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",e.viewer$)}}function W(n,i){if(1&n&&(t.TgZ(0,"nz-col",20),t._UZ(1,"cvc-contributor-avatars",21),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("subscribable",e.subscribable)}}function K(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"div",2),t.ALo(3,"ngrxPush"),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),t._UZ(6,"i",5),t.ALo(7,"entityColor"),t._uU(8),t.qZA(),t.YNc(9,j,2,1,"nz-page-header-extra",6),t.TgZ(10,"nz-page-header-content")(11,"cvc-tab-navigation",7),t.ALo(12,"ngrxPush"),t.YNc(13,W,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(15,"div",9),t._UZ(16,"router-outlet"),t.qZA()()()(),t.BQk()),2&n){const e=i.ngIf,r=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(1),t.Q6J("flags",t.lcZ(3,6,r.flagsTotal$)),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(7,8,"VariantGroup")),t.xp6(2),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngrxLet",r.viewer$),t.xp6(2),t.Q6J("tabs",t.lcZ(12,10,r.tabs$))}}let X=(()=>{class n{constructor(e,r,L){this.gql=e,this.viewerService=r,this.route=L,this.destroy$=new o.x,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"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new y.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(x=>{let w=this.gql.watch({variantGroupId:+x.variantGroupId}).valueChanges;this.loading$=w.pipe((0,m.j)("loading"),(0,M.O)(!0)),this.variantGroup$=w.pipe((0,m.j)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,m.j)("flags","totalCount")),this.variantGroup$.pipe((0,O.R)(this.destroy$)).subscribe({next:T=>{this.tabs$.next(this.defaultTabs.map(z=>"Revisions"===z.tabLabel?{badgeCount:T?.revisions.totalCount,...z}:"Comments"===z.tabLabel?{badgeCount:T?.comments.totalCount,badgeColor:"#cccccc",...z}:z))}}),this.subscribable={id:+x.variantGroupId,entityType:u.o71.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.Qtd),t.Y36(G.a),t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(e,r){1&e&&(t.YNc(0,K,17,12,"ng-container",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.variantGroup$))},dependencies:[l.O5,h.eJ,g.lC,g.rH,g.Od,P.Ls,v.t3,f.$O,f.u9,f.u5,f.Jp,V.ix,E.w,I.dQ,_.NU,_.$1,Z.o,A.Y,S.I,D.Q,s.P,p.N,l.Ov,h.fM,c.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{flex-wrap:nowrap;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 H=a(1830);let k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,H.l]}),n})();var q=a(800);function tt(n,i){if(1&n&&t._UZ(0,"cvc-comment-list",1),2&n){const e=t.oxw();t.Q6J("commentable",e.commentable)}}let nt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.commentable={entityType:u.OfU.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(e,r){1&e&&t.YNc(0,tt,1,1,"cvc-comment-list",0),2&e&&t.Q6J("ngIf",r.commentable)},dependencies:[l.O5,q.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var et=a(183);let at=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,et.M]}),n})();var ot=a(7287);function it(n,i){if(1&n&&t._UZ(0,"cvc-flag-list-and-filter",1),2&n){const e=t.oxw();t.Q6J("flaggable",e.flaggable)}}let rt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.flaggable={entityType:u.sfv.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(e,r){1&e&&t.YNc(0,it,1,1,"cvc-flag-list-and-filter",0),2&e&&t.Q6J("ngIf",r.flaggable)},dependencies:[l.O5,ot.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var st=a(2534);let ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,st.A]}),n})();var pt=a(6126);let lt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.vgId=+r.variantGroupId,this.entityType=u.oRL.VariantGroup})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,r){1&e&&t._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&t.Q6J("id",r.vgId)("entityType",r.entityType)},dependencies:[pt.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var J=a(8125),gt=a(3511),ut=a(6506),Q=a(2392),dt=a(366),mt=a(8641);let _t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,_.zf,v.Jb,J.q6,Q.ZJ,gt.o,ut.H,dt.$,mt.s]}),n})();var vt=a(7398),ft=a(3493),zt=a(806),ht=a(1887),yt=a(4138);function bt(n,i){if(1&n&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngIf;t.Q6J("nzEllipsisRows",14),t.xp6(1),t.hij(" ",e.description," ")}}function xt(n,i){1&n&&t._UZ(0,"cvc-empty-revisable",12)}function Tt(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",7)(1,"nz-descriptions-item",8),t.YNc(2,bt,2,2,"p",9),t.YNc(3,xt,1,0,"ng-template",null,10,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),r=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",r.description)("ngIfElse",e)}}function Ct(n,i){1&n&&t._UZ(0,"cvc-source-tag",17),2&n&&t.Q6J("source",i.$implicit)}function Gt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,Ct,1,1,"cvc-source-tag",16),t.qZA(),t.BQk()),2&n){const e=t.oxw(3).ngIf;t.xp6(2),t.Q6J("ngForOf",e.sources)}}function Pt(n,i){1&n&&(t.TgZ(0,"span",18),t._uU(1,"None specified"),t.qZA())}function Vt(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",7)(1,"nz-descriptions-item",13),t.YNc(2,Gt,3,1,"ng-container",14),t.YNc(3,Pt,2,0,"ng-template",null,15,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),r=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",r.sources.length>0)("ngIfElse",e)}}function Mt(n,i){1&n&&(t.TgZ(0,"nz-row",3)(1,"nz-col",4)(2,"nz-space",5),t.YNc(3,Tt,5,3,"nz-descriptions",6),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-space",5),t.YNc(6,Vt,5,3,"nz-descriptions",6),t.qZA()()()),2&n&&t.Q6J("nzGutter",16)}function Ot(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-variants-table",21),t.BQk()),2&n){const e=i.ngrxLet;t.xp6(1),t.MGl("cvcTitle","Variants in Variant Groupt ",null==e?null:e.name,""),t.Q6J("variantGroupId",null==e?null:e.id)}}function Et(n,i){if(1&n&&(t.TgZ(0,"nz-row",3)(1,"nz-col",19),t.YNc(2,Ot,2,2,"ng-container",20),t.qZA()()),2&n){const e=t.oxw(2);t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("ngrxLet",e.variantGroup$)}}function It(n,i){1&n&&(t.TgZ(0,"nz-space",1),t.YNc(1,Mt,7,1,"nz-row",2),t.YNc(2,Et,3,3,"nz-row",2),t.qZA())}let Zt=(()=>{class n{constructor(e,r,L){this.gql=e,this.viewerService=r,this.route=L,this.routeSub=this.route.params.subscribe(x=>{this.viewer$=this.viewerService.viewer$;let T=this.gql.watch({variantGroupId:+x.variantGroupId}).valueChanges;this.subscribableEntity={id:+x.variantGroupId,entityType:u.o71.VariantGroup},this.variantGroup$=T.pipe((0,m.j)("data","variantGroup")),this.loading$=T.pipe((0,m.j)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,m.j)("myVariantGroupInfoDetails"),(0,vt.U)(z=>JSON.parse(String(z))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.q1D),t.Y36(G.a),t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(e,r){1&e&&(t.YNc(0,It,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.variantGroup$))},dependencies:[l.sg,l.O5,h.eJ,_.NU,_.$1,v.t3,v.SK,J.R7,J.uj,Q.ZU,ft.J,zt.S,ht.$,yt.T,h.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})();var At=a(9894);let St=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,At.t]}),n})();var Dt=a(7441);const Jt=[{path:"",component:X,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zt,data:{breadcrumb:"Summary"}},{path:"comments",component:nt,data:{breadcrumb:"Comments"}},{path:"revisions",component:lt,data:{breadcrumb:"Revisions"}},{path:"flags",component:rt,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:u.o71.VariantGroup}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,r){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("subscribable",r.subscribable)},dependencies:[Dt.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Events"}}]}];let Lt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.Bz.forChild(Jt),_t,k,ct,at,St,g.Bz]}),n})();var wt=a(2419),Qt=a(7129),Nt=a(5725),Yt=a(4059),Ut=a(936),Rt=a(2524);let $t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,Lt,P.PV,v.Jb,f.KJ,V.sL,_.zf,Nt.m,Rt.s,wt.D,Qt.g,Yt.c,Ut.Z]}),n})()}}]); \ No newline at end of file diff --git a/server/public/5484.f4cba8ea2f9acc36.js b/server/public/5484.f4cba8ea2f9acc36.js new file mode 100644 index 000000000..2052ecabe --- /dev/null +++ b/server/public/5484.f4cba8ea2f9acc36.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5484],{4786:(N,C,a)=>{a.d(C,{O:()=>D});var l=a(8130),g=a(2023),o=a(5879),y=a(6814),u=a(4190),M=a(5695),O=a(7417),m=a(551),t=a(8213),G=a(3103),h=a(2616);function P(s,p){}function v(s,p){if(1&s&&(o.ynx(0),o.TgZ(1,"a",4),o.YNc(2,P,0,0,"ng-template",5),o.qZA(),o.BQk()),2&s){const c=o.oxw(),d=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.evidence.link),o.xp6(1),o.Q6J("ngTemplateOutlet",d)}}function f(s,p){}function V(s,p){if(1&s&&o._UZ(0,"cvc-evidence-popover",9),2&s){const c=o.oxw(3);o.Q6J("evidenceId",c.evidence.id)}}function E(s,p){if(1&s&&o.YNc(0,V,1,1,"cvc-evidence-popover",8),2&s){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}const I=function(s,p,c){return{rejected:s,submitted:p,accepted:c}};function _(s,p){if(1&s&&(o.TgZ(0,"nz-tag",6),o.YNc(1,f,0,0,"ng-template",5),o.qZA(),o.YNc(2,E,1,1,"ng-template",null,7,o.W1O)),2&s){const c=o.MAs(3),d=o.oxw(),b=o.MAs(6);o.Q6J("ngClass",o.kEZ(5,I,"REJECTED"===d.evidence.status,"SUBMITTED"===d.evidence.status,"ACCEPTED"===d.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c)("nzPopoverTrigger",d.enablePopover?"hover":null),o.xp6(1),o.Q6J("ngTemplateOutlet",b)}}function Z(s,p){}function A(s,p){if(1&s&&o.YNc(0,Z,0,0,"ng-template",5),2&s){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function S(s,p){if(1&s&&(o.TgZ(0,"cvc-icon-badges",10),o._UZ(1,"i",11),o.ALo(2,"entityColor"),o.ALo(3,"entityColor"),o.qZA(),o._uU(4)),2&s){const c=o.oxw();o.Q6J("flagged",c.evidence.flagged)("entityColor",c.iconColor),o.xp6(1),o.Q6J("nzTwotoneColor","REJECTED"===c.evidence.status?o.lcZ(2,4,"Rejected"):o.lcZ(3,6,"EvidenceItem")),o.xp6(3),o.hij(" ",c.evidence.name,"\n")}}let D=(()=>{class s extends l.a{set evidence(c){if(!c)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=c}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,g.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[o.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(c,d){if(1&c&&(o.YNc(0,v,3,2,"ng-container",0),o.YNc(1,_,4,9,"ng-template",null,1,o.W1O),o.YNc(3,A,1,1,"ng-template",null,2,o.W1O),o.YNc(5,S,5,8,"ng-template",null,3,o.W1O)),2&c){const b=o.MAs(4);o.Q6J("ngIf",d.linked)("ngIfElse",b)}},dependencies:[y.mk,y.O5,y.tP,u.rH,M.j,O.lU,m.Ls,t._,G.b,h.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),s})()},514:(N,C,a)=>{a.r(C),a.d(C,{VariantGroupsDetailModule:()=>$t});var l=a(6814),g=a(4190),o=a(8645),y=a(5619),u=a(313),M=a(7921),O=a(9773),m=a(4223),t=a(5879),G=a(951),h=a(8091),P=a(551),v=a(95),f=a(6254),V=a(2840),E=a(855),I=a(1958),_=a(2574),Z=a(327),A=a(1801),S=a(3145),D=a(8295),s=a(5098),p=a(1520),c=a(2616);const d=function(n){return["/variant-groups",n,"revise"]};function b(n,i){if(1&n&&(t.TgZ(0,"button",14,15),t._uU(2," Revise "),t.qZA()),2&n){const e=t.MAs(1),r=t.oxw(4).ngIf;t.Q6J("routerLink",t.VKq(2,d,r.id))("nzType",e.isActive?"primary":"default")}}function Y(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,b,3,4,"button",13),t.qZA()),2&n){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.signedIn)}}function U(n,i){if(1&n&&(t.TgZ(0,"button",17,15),t._uU(2," Flag "),t.qZA()),2&n){const e=t.MAs(1);t.Q6J("nzType",e.isActive?"primary":"default")}}function R(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,U,3,1,"button",16),t.qZA()),2&n){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.signedIn)}}function $(n,i){if(1&n&&t._UZ(0,"cvc-entity-subscription-button",19),2&n){const e=t.oxw(2).ngrxLet,r=t.oxw(3);t.Q6J("viewer",e)("subscribableId",r.subscribable.id)}}function F(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$,1,2,"cvc-entity-subscription-button",18),t.qZA()),2&n){const e=t.oxw().ngrxLet,r=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.signedIn&&r.subscribable)}}function B(n,i){1&n&&(t.TgZ(0,"nz-space",11),t.YNc(1,Y,2,1,"span",12),t.YNc(2,R,2,1,"span",12),t.YNc(3,F,2,1,"span",12),t.qZA())}function j(n,i){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,B,4,0,"nz-space",10),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",e.viewer$)}}function W(n,i){if(1&n&&(t.TgZ(0,"nz-col",20),t._UZ(1,"cvc-contributor-avatars",21),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("subscribable",e.subscribable)}}function K(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"div",2),t.ALo(3,"ngrxPush"),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),t._UZ(6,"i",5),t.ALo(7,"entityColor"),t._uU(8),t.qZA(),t.YNc(9,j,2,1,"nz-page-header-extra",6),t.TgZ(10,"nz-page-header-content")(11,"cvc-tab-navigation",7),t.ALo(12,"ngrxPush"),t.YNc(13,W,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(15,"div",9),t._UZ(16,"router-outlet"),t.qZA()()()(),t.BQk()),2&n){const e=i.ngIf,r=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(1),t.Q6J("flags",t.lcZ(3,6,r.flagsTotal$)),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(7,8,"VariantGroup")),t.xp6(2),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngrxLet",r.viewer$),t.xp6(2),t.Q6J("tabs",t.lcZ(12,10,r.tabs$))}}let X=(()=>{class n{constructor(e,r,L){this.gql=e,this.viewerService=r,this.route=L,this.destroy$=new o.x,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"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new y.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(x=>{let w=this.gql.watch({variantGroupId:+x.variantGroupId}).valueChanges;this.loading$=w.pipe((0,m.j)("loading"),(0,M.O)(!0)),this.variantGroup$=w.pipe((0,m.j)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,m.j)("flags","totalCount")),this.variantGroup$.pipe((0,O.R)(this.destroy$)).subscribe({next:T=>{this.tabs$.next(this.defaultTabs.map(z=>"Revisions"===z.tabLabel?{badgeCount:T?.revisions.totalCount,...z}:"Comments"===z.tabLabel?{badgeCount:T?.comments.totalCount,badgeColor:"#cccccc",...z}:z))}}),this.subscribable={id:+x.variantGroupId,entityType:u.o71.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.Qtd),t.Y36(G.a),t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(e,r){1&e&&(t.YNc(0,K,17,12,"ng-container",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.variantGroup$))},dependencies:[l.O5,h.eJ,g.lC,g.rH,g.Od,P.Ls,v.t3,f.$O,f.u9,f.u5,f.Jp,V.ix,E.w,I.dQ,_.NU,_.$1,Z.o,A.Y,S.I,D.Q,s.P,p.N,l.Ov,h.fM,c.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{flex-wrap:nowrap;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 H=a(1260);let k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,H.l]}),n})();var q=a(5565);function tt(n,i){if(1&n&&t._UZ(0,"cvc-comment-list",1),2&n){const e=t.oxw();t.Q6J("commentable",e.commentable)}}let nt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.commentable={entityType:u.OfU.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(e,r){1&e&&t.YNc(0,tt,1,1,"cvc-comment-list",0),2&e&&t.Q6J("ngIf",r.commentable)},dependencies:[l.O5,q.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var et=a(7937);let at=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,et.M]}),n})();var ot=a(4385);function it(n,i){if(1&n&&t._UZ(0,"cvc-flag-list-and-filter",1),2&n){const e=t.oxw();t.Q6J("flaggable",e.flaggable)}}let rt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.flaggable={entityType:u.sfv.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(e,r){1&e&&t.YNc(0,it,1,1,"cvc-flag-list-and-filter",0),2&e&&t.Q6J("ngIf",r.flaggable)},dependencies:[l.O5,ot.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var st=a(2534);let ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,st.A]}),n})();var pt=a(6126);let lt=(()=>{class n{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(r=>{this.vgId=+r.variantGroupId,this.entityType=u.oRL.VariantGroup})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,r){1&e&&t._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&t.Q6J("id",r.vgId)("entityType",r.entityType)},dependencies:[pt.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var J=a(8125),gt=a(3511),ut=a(6506),Q=a(2392),dt=a(366),mt=a(8641);let _t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,_.zf,v.Jb,J.q6,Q.ZJ,gt.o,ut.H,dt.$,mt.s]}),n})();var vt=a(7398),ft=a(3493),zt=a(806),ht=a(1887),yt=a(4138);function bt(n,i){if(1&n&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&n){const e=t.oxw(3).ngIf;t.Q6J("nzEllipsisRows",14),t.xp6(1),t.hij(" ",e.description," ")}}function xt(n,i){1&n&&t._UZ(0,"cvc-empty-revisable",12)}function Tt(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",7)(1,"nz-descriptions-item",8),t.YNc(2,bt,2,2,"p",9),t.YNc(3,xt,1,0,"ng-template",null,10,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),r=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",r.description)("ngIfElse",e)}}function Ct(n,i){1&n&&t._UZ(0,"cvc-source-tag",17),2&n&&t.Q6J("source",i.$implicit)}function Gt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,Ct,1,1,"cvc-source-tag",16),t.qZA(),t.BQk()),2&n){const e=t.oxw(3).ngIf;t.xp6(2),t.Q6J("ngForOf",e.sources)}}function Pt(n,i){1&n&&(t.TgZ(0,"span",18),t._uU(1,"None specified"),t.qZA())}function Vt(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",7)(1,"nz-descriptions-item",13),t.YNc(2,Gt,3,1,"ng-container",14),t.YNc(3,Pt,2,0,"ng-template",null,15,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),r=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",r.sources.length>0)("ngIfElse",e)}}function Mt(n,i){1&n&&(t.TgZ(0,"nz-row",3)(1,"nz-col",4)(2,"nz-space",5),t.YNc(3,Tt,5,3,"nz-descriptions",6),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-space",5),t.YNc(6,Vt,5,3,"nz-descriptions",6),t.qZA()()()),2&n&&t.Q6J("nzGutter",16)}function Ot(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-variants-table",21),t.BQk()),2&n){const e=i.ngrxLet;t.xp6(1),t.MGl("cvcTitle","Variants in Variant Groupt ",null==e?null:e.name,""),t.Q6J("variantGroupId",null==e?null:e.id)}}function Et(n,i){if(1&n&&(t.TgZ(0,"nz-row",3)(1,"nz-col",19),t.YNc(2,Ot,2,2,"ng-container",20),t.qZA()()),2&n){const e=t.oxw(2);t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("ngrxLet",e.variantGroup$)}}function It(n,i){1&n&&(t.TgZ(0,"nz-space",1),t.YNc(1,Mt,7,1,"nz-row",2),t.YNc(2,Et,3,3,"nz-row",2),t.qZA())}let Zt=(()=>{class n{constructor(e,r,L){this.gql=e,this.viewerService=r,this.route=L,this.routeSub=this.route.params.subscribe(x=>{this.viewer$=this.viewerService.viewer$;let T=this.gql.watch({variantGroupId:+x.variantGroupId}).valueChanges;this.subscribableEntity={id:+x.variantGroupId,entityType:u.o71.VariantGroup},this.variantGroup$=T.pipe((0,m.j)("data","variantGroup")),this.loading$=T.pipe((0,m.j)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,m.j)("myVariantGroupInfoDetails"),(0,vt.U)(z=>JSON.parse(String(z))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.q1D),t.Y36(G.a),t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(e,r){1&e&&(t.YNc(0,It,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,r.variantGroup$))},dependencies:[l.sg,l.O5,h.eJ,_.NU,_.$1,v.t3,v.SK,J.R7,J.uj,Q.ZU,ft.J,zt.S,ht.$,yt.T,h.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})();var At=a(9894);let St=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,At.t]}),n})();var Dt=a(7441);const Jt=[{path:"",component:X,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zt,data:{breadcrumb:"Summary"}},{path:"comments",component:nt,data:{breadcrumb:"Comments"}},{path:"revisions",component:lt,data:{breadcrumb:"Revisions"}},{path:"flags",component:rt,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:u.o71.VariantGroup}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,r){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("subscribable",r.subscribable)},dependencies:[Dt.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Events"}}]}];let Lt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[g.Bz.forChild(Jt),_t,k,ct,at,St,g.Bz]}),n})();var wt=a(2419),Qt=a(7129),Nt=a(5725),Yt=a(4059),Ut=a(936),Rt=a(2524);let $t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[l.ez,Lt,P.PV,v.Jb,f.KJ,V.sL,_.zf,Nt.m,Rt.s,wt.D,Qt.g,Yt.c,Ut.Z]}),n})()}}]); \ No newline at end of file diff --git a/server/public/5556.32ab0c9a7d8a680a.js b/server/public/5556.8f7ee9603f203a9d.js similarity index 99% rename from server/public/5556.32ab0c9a7d8a680a.js rename to server/public/5556.8f7ee9603f203a9d.js index 433fd0668..c8bd6dbf3 100644 --- a/server/public/5556.32ab0c9a7d8a680a.js +++ b/server/public/5556.8f7ee9603f203a9d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5556],{29:(U,P,t)=>{t.d(P,{C:()=>u});var o=t(6814),p=t(2962),d=t(6976),n=t(95),m=t(2574),g=t(5695),E=t(2524),v=t(5879);let u=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[o.ez,p.vh,d.Ph,n.Jb,g.X,m.zf,E.s]}),s})()},9755:(U,P,t)=>{t.d(P,{y:()=>c});var o=t(6814),p=t(5695),d=t(551),n=t(4190),m=t(2524),g=t(8706),E=t(6165),v=t(1218),u=t(7528),s=t(2962),C=t(95),i=t(5956),f=t(3641),D=t(2655),z=t(2574),A=t(8125),I=t(29),T=t(5879);let x=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=T.oAB({type:e}),e.\u0275inj=T.cJS({imports:[o.ez,s.vh,C.Jb,d.PV,z.zf,A.q6,m.s,i.U,g.W,E.W,v.i,u.Q,f.G,D.x,I.C]}),e})();var _=t(7417);let c=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=T.oAB({type:e}),e.\u0275inj=T.cJS({imports:[o.ez,n.Bz,m.s,x,p.X,d.PV,_.$6]}),e})()},4821:(U,P,t)=>{t.d(P,{q:()=>W});var o=t(5676),p=t(7398),d=t(2181),n=t(5879),m=t(313),g=t(6814),E=t(95),v=t(2962),u=t(8125),s=t(6987),C=t(1887),i=t(215),f=t(7458),D=t(8091);const z=["additionalMetadata"];function A(a,l){if(1&a&&(n._UZ(0,"cvc-user-avatar",14),n.TgZ(1,"span",15),n._uU(2),n.qZA()),2&a){const r=n.oxw().ngIf;n.Q6J("user",r),n.xp6(2),n.Oqu(r.displayName)}}function I(a,l){if(1&a&&(n._UZ(0,"i",16),n._uU(1),n.ALo(2,"titlecase")),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,r.role)," ")}}function T(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const r=l.ngIf;n.xp6(1),n.Oqu(r)}}function x(a,l){if(1&a&&n._UZ(0,"cvc-organization-tag",18),2&a){const r=l.$implicit;n.Q6J("enablePopover",!1)("org",r)}}function _(a,l){if(1&a&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,x,1,2,"cvc-organization-tag",17),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.organizations)}}function c(a,l){1&a&&n._UZ(0,"nz-divider")}const e=function(a){return{$implicit:a}};function M(a,l){if(1&a&&(n.ynx(0),n._UZ(1,"nz-card",4),n.YNc(2,A,3,2,"ng-template",null,5,n.W1O),n.YNc(4,I,3,3,"ng-template",null,6,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),n.YNc(10,T,2,1,"span",10),n.qZA()()()(),n.TgZ(11,"nz-row")(12,"nz-col",7)(13,"nz-descriptions",11)(14,"nz-descriptions-item",12),n.YNc(15,_,2,1,"cvc-tag-list",10),n.qZA()()()(),n.TgZ(16,"nz-row"),n.YNc(17,c,1,0,"nz-divider",1),n.GkF(18,13),n.qZA(),n.BQk()),2&a){const r=l.ngIf,h=n.MAs(3),L=n.MAs(5),R=n.oxw(),K=n.MAs(4),y=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",h)("nzExtra",L),n.xp6(9),n.Q6J("ngIf",r.bio)("ngIfElse",K),n.xp6(3),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",r.organizations.length>0)("ngIfElse",y),n.xp6(2),n.Q6J("ngIf",R.metadataTemplateRef),n.xp6(1),n.Q6J("ngTemplateOutlet",R.metadataTemplateRef||null)("ngTemplateOutletContext",n.VKq(10,e,r))}}function O(a,l){1&a&&n._uU(0," User has not provided a biography. ")}function B(a,l){1&a&&(n.TgZ(0,"span",19),n._uU(1,"--"),n.qZA())}let W=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(null==this.userId)throw new Error("Must pass an id into user hovercard");this.user$=this.gql.watch({userId:this.userId}).valueChanges.pipe((0,p.U)(({data:r})=>r?.user),(0,d.h)(o.ep))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(m.cEv))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-user-popover"]],contentQueries:function(r,h,L){if(1&r&&n.Suo(L,z,5),2&r){let R;n.iGM(R=n.CRH())&&(h.metadataTemplateRef=R.first)}},inputs:{userId:"userId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noBio",""],["noOrganizations",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Organizations"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],["nz-icon","","nzType","civic-admin"],[3,"enablePopover","org",4,"ngFor","ngForOf"],[3,"enablePopover","org"],["nz-typography","","nzStyle","secondary"]],template:function(r,h){1&r&&(n.TgZ(0,"div",0),n.YNc(1,M,19,12,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,O,1,0,"ng-template",null,2,n.W1O),n.YNc(5,B,2,0,"ng-template",null,3,n.W1O)),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,h.user$)))},dependencies:[g.sg,g.O5,g.tP,E.t3,E.SK,v.bd,u.R7,u.uj,s.g,C.$,i.m,f.L,g.rS,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}[_nghost-%COMP%]{display:block}.display-name[_ngcontent-%COMP%]{margin-left:8px;font-weight:400}"]}),a})()},4086:(U,P,t)=>{t.d(P,{J:()=>C});var o=t(6814),p=t(6067),d=t(8125),n=t(2962),m=t(366),g=t(1106),E=t(1022),v=t(6987),u=t(95),s=t(5879);let C=(()=>{class i{}return i.\u0275fac=function(D){return new(D||i)},i.\u0275mod=s.oAB({type:i}),i.\u0275inj=s.cJS({imports:[o.ez,u.Jb,n.vh,d.q6,v.S,p.X,m.$,g.L,E.H]}),i})()},356:(U,P,t)=>{t.d(P,{I:()=>x});var o=t(5879),p=t(6814),d=t(4190),n=t(7417),m=t(5695),g=t(551),E=t(4821),v=t(2616);function u(_,c){}function s(_,c){if(1&_&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,u,0,0,"ng-template",6),o.qZA(),o.BQk()),2&_){const e=o.oxw(),M=o.MAs(2);o.xp6(1),o.MGl("routerLink","/users/",e.user.id,""),o.xp6(1),o.Q6J("ngTemplateOutlet",M)}}function C(_,c){}function i(_,c){if(1&_&&o._UZ(0,"cvc-user-popover",9),2&_){const e=o.oxw(2);o.Q6J("userId",e.user.id)}}function f(_,c){if(1&_&&(o.TgZ(0,"nz-tag",7),o.YNc(1,C,0,0,"ng-template",6),o.qZA(),o.YNc(2,i,1,1,"ng-template",null,8,o.W1O)),2&_){const e=o.MAs(3),M=o.oxw(),O=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",e)("nzPopoverTrigger",M.enablePopover?"hover":null),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function D(_,c){}function z(_,c){if(1&_&&(o.TgZ(0,"nz-tag"),o.YNc(1,D,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const e=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",e)}}function A(_,c){}function I(_,c){if(1&_&&o.YNc(0,A,0,0,"ng-template",6),2&_){o.oxw();const e=o.MAs(2);o.Q6J("ngTemplateOutlet",e)}}function T(_,c){if(1&_&&(o._UZ(0,"i",10),o.ALo(1,"entityColor"),o.ALo(2,"titlecase"),o._uU(3)),2&_){const e=o.oxw();o.Q6J("nzType",e.icon)("nzTwotoneColor",o.lcZ(1,3,o.lcZ(2,5,e.user.role))),o.xp6(3),o.hij(" ",e.user.displayName,"\n")}}let x=(()=>{class _{constructor(){this.linked=!0,this.enablePopover=!0}set user(e){if(!e)throw new Error("user-tag User input requires TagLinkableUser.");switch(this._user=e,e.role){case"ADMIN":this.icon="civic-admin";break;case"EDITOR":this.icon="civic-editor";break;default:this.icon="civic-curator"}}get user(){return this._user}}return _.\u0275fac=function(e){return new(e||_)},_.\u0275cmp=o.Xpm({type:_,selectors:[["cvc-user-tag"]],inputs:{user:"user",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["userPopover",""],[3,"userId"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"]],template:function(e,M){if(1&e&&(o.YNc(0,s,3,2,"ng-container",0),o.YNc(1,f,4,4,"ng-template",null,1,o.W1O),o.YNc(3,z,2,1,"ng-template",null,2,o.W1O),o.YNc(5,I,1,1,"ng-template",null,3,o.W1O),o.YNc(7,T,4,7,"ng-template",null,4,o.W1O)),2&e){const O=o.MAs(6);o.Q6J("ngIf",M.linked)("ngIfElse",O)}},dependencies:[p.O5,p.tP,d.rH,n.lU,m.j,g.Ls,E.q,p.rS,v.a],encapsulation:2,changeDetection:0}),_})()},8706:(U,P,t)=>{t.d(P,{W:()=>u});var o=t(6814),p=t(4190),d=t(7417),n=t(5695),m=t(551),g=t(4086),E=t(2524),v=t(5879);let u=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[o.ez,p.Bz,d.$6,n.X,m.PV,E.s,g.J]}),s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5556],{29:(U,P,t)=>{t.d(P,{C:()=>u});var o=t(6814),p=t(2962),d=t(6976),n=t(95),m=t(2574),g=t(5695),E=t(2524),v=t(5879);let u=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[o.ez,p.vh,d.Ph,n.Jb,g.X,m.zf,E.s]}),s})()},9755:(U,P,t)=>{t.d(P,{y:()=>c});var o=t(6814),p=t(5695),d=t(551),n=t(4190),m=t(2524),g=t(8706),E=t(6165),v=t(1218),u=t(7528),s=t(2962),C=t(95),i=t(5956),f=t(3641),D=t(2655),z=t(2574),A=t(8125),I=t(29),T=t(5879);let x=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=T.oAB({type:e}),e.\u0275inj=T.cJS({imports:[o.ez,s.vh,C.Jb,d.PV,z.zf,A.q6,m.s,i.U,g.W,E.W,v.i,u.Q,f.G,D.x,I.C]}),e})();var _=t(7417);let c=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=T.oAB({type:e}),e.\u0275inj=T.cJS({imports:[o.ez,n.Bz,m.s,x,p.X,d.PV,_.$6]}),e})()},4821:(U,P,t)=>{t.d(P,{q:()=>W});var o=t(5676),p=t(7398),d=t(2181),n=t(5879),m=t(313),g=t(6814),E=t(95),v=t(2962),u=t(8125),s=t(6987),C=t(1887),i=t(215),f=t(7458),D=t(8091);const z=["additionalMetadata"];function A(a,l){if(1&a&&(n._UZ(0,"cvc-user-avatar",14),n.TgZ(1,"span",15),n._uU(2),n.qZA()),2&a){const r=n.oxw().ngIf;n.Q6J("user",r),n.xp6(2),n.Oqu(r.displayName)}}function I(a,l){if(1&a&&(n._UZ(0,"i",16),n._uU(1),n.ALo(2,"titlecase")),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,r.role)," ")}}function T(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const r=l.ngIf;n.xp6(1),n.Oqu(r)}}function x(a,l){if(1&a&&n._UZ(0,"cvc-organization-tag",18),2&a){const r=l.$implicit;n.Q6J("enablePopover",!1)("org",r)}}function _(a,l){if(1&a&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,x,1,2,"cvc-organization-tag",17),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.organizations)}}function c(a,l){1&a&&n._UZ(0,"nz-divider")}const e=function(a){return{$implicit:a}};function M(a,l){if(1&a&&(n.ynx(0),n._UZ(1,"nz-card",4),n.YNc(2,A,3,2,"ng-template",null,5,n.W1O),n.YNc(4,I,3,3,"ng-template",null,6,n.W1O),n.TgZ(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),n.YNc(10,T,2,1,"span",10),n.qZA()()()(),n.TgZ(11,"nz-row")(12,"nz-col",7)(13,"nz-descriptions",11)(14,"nz-descriptions-item",12),n.YNc(15,_,2,1,"cvc-tag-list",10),n.qZA()()()(),n.TgZ(16,"nz-row"),n.YNc(17,c,1,0,"nz-divider",1),n.GkF(18,13),n.qZA(),n.BQk()),2&a){const r=l.ngIf,h=n.MAs(3),L=n.MAs(5),R=n.oxw(),K=n.MAs(4),y=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",h)("nzExtra",L),n.xp6(9),n.Q6J("ngIf",r.bio)("ngIfElse",K),n.xp6(3),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",r.organizations.length>0)("ngIfElse",y),n.xp6(2),n.Q6J("ngIf",R.metadataTemplateRef),n.xp6(1),n.Q6J("ngTemplateOutlet",R.metadataTemplateRef||null)("ngTemplateOutletContext",n.VKq(10,e,r))}}function O(a,l){1&a&&n._uU(0," User has not provided a biography. ")}function B(a,l){1&a&&(n.TgZ(0,"span",19),n._uU(1,"--"),n.qZA())}let W=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(null==this.userId)throw new Error("Must pass an id into user hovercard");this.user$=this.gql.watch({userId:this.userId}).valueChanges.pipe((0,p.U)(({data:r})=>r?.user),(0,d.h)(o.ep))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(m.cEv))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-user-popover"]],contentQueries:function(r,h,L){if(1&r&&n.Suo(L,z,5),2&r){let R;n.iGM(R=n.CRH())&&(h.metadataTemplateRef=R.first)}},inputs:{userId:"userId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noBio",""],["noOrganizations",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Organizations"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],["nz-icon","","nzType","civic-admin"],[3,"enablePopover","org",4,"ngFor","ngForOf"],[3,"enablePopover","org"],["nz-typography","","nzStyle","secondary"]],template:function(r,h){1&r&&(n.TgZ(0,"div",0),n.YNc(1,M,19,12,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,O,1,0,"ng-template",null,2,n.W1O),n.YNc(5,B,2,0,"ng-template",null,3,n.W1O)),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,h.user$)))},dependencies:[g.sg,g.O5,g.tP,E.t3,E.SK,v.bd,u.R7,u.uj,s.g,C.$,i.m,f.L,g.rS,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}[_nghost-%COMP%]{display:block}.display-name[_ngcontent-%COMP%]{margin-left:8px;font-weight:400}"]}),a})()},4086:(U,P,t)=>{t.d(P,{J:()=>C});var o=t(6814),p=t(6067),d=t(8125),n=t(2962),m=t(366),g=t(1106),E=t(4293),v=t(6987),u=t(95),s=t(5879);let C=(()=>{class i{}return i.\u0275fac=function(D){return new(D||i)},i.\u0275mod=s.oAB({type:i}),i.\u0275inj=s.cJS({imports:[o.ez,u.Jb,n.vh,d.q6,v.S,p.X,m.$,g.L,E.H]}),i})()},356:(U,P,t)=>{t.d(P,{I:()=>x});var o=t(5879),p=t(6814),d=t(4190),n=t(7417),m=t(5695),g=t(551),E=t(4821),v=t(2616);function u(_,c){}function s(_,c){if(1&_&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,u,0,0,"ng-template",6),o.qZA(),o.BQk()),2&_){const e=o.oxw(),M=o.MAs(2);o.xp6(1),o.MGl("routerLink","/users/",e.user.id,""),o.xp6(1),o.Q6J("ngTemplateOutlet",M)}}function C(_,c){}function i(_,c){if(1&_&&o._UZ(0,"cvc-user-popover",9),2&_){const e=o.oxw(2);o.Q6J("userId",e.user.id)}}function f(_,c){if(1&_&&(o.TgZ(0,"nz-tag",7),o.YNc(1,C,0,0,"ng-template",6),o.qZA(),o.YNc(2,i,1,1,"ng-template",null,8,o.W1O)),2&_){const e=o.MAs(3),M=o.oxw(),O=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",e)("nzPopoverTrigger",M.enablePopover?"hover":null),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function D(_,c){}function z(_,c){if(1&_&&(o.TgZ(0,"nz-tag"),o.YNc(1,D,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const e=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",e)}}function A(_,c){}function I(_,c){if(1&_&&o.YNc(0,A,0,0,"ng-template",6),2&_){o.oxw();const e=o.MAs(2);o.Q6J("ngTemplateOutlet",e)}}function T(_,c){if(1&_&&(o._UZ(0,"i",10),o.ALo(1,"entityColor"),o.ALo(2,"titlecase"),o._uU(3)),2&_){const e=o.oxw();o.Q6J("nzType",e.icon)("nzTwotoneColor",o.lcZ(1,3,o.lcZ(2,5,e.user.role))),o.xp6(3),o.hij(" ",e.user.displayName,"\n")}}let x=(()=>{class _{constructor(){this.linked=!0,this.enablePopover=!0}set user(e){if(!e)throw new Error("user-tag User input requires TagLinkableUser.");switch(this._user=e,e.role){case"ADMIN":this.icon="civic-admin";break;case"EDITOR":this.icon="civic-editor";break;default:this.icon="civic-curator"}}get user(){return this._user}}return _.\u0275fac=function(e){return new(e||_)},_.\u0275cmp=o.Xpm({type:_,selectors:[["cvc-user-tag"]],inputs:{user:"user",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["userPopover",""],[3,"userId"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"]],template:function(e,M){if(1&e&&(o.YNc(0,s,3,2,"ng-container",0),o.YNc(1,f,4,4,"ng-template",null,1,o.W1O),o.YNc(3,z,2,1,"ng-template",null,2,o.W1O),o.YNc(5,I,1,1,"ng-template",null,3,o.W1O),o.YNc(7,T,4,7,"ng-template",null,4,o.W1O)),2&e){const O=o.MAs(6);o.Q6J("ngIf",M.linked)("ngIfElse",O)}},dependencies:[p.O5,p.tP,d.rH,n.lU,m.j,g.Ls,E.q,p.rS,v.a],encapsulation:2,changeDetection:0}),_})()},8706:(U,P,t)=>{t.d(P,{W:()=>u});var o=t(6814),p=t(4190),d=t(7417),n=t(5695),m=t(551),g=t(4086),E=t(2524),v=t(5879);let u=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[o.ez,p.Bz,d.$6,n.X,m.PV,E.s,g.J]}),s})()}}]); \ No newline at end of file diff --git a/server/public/5584.bac3e266d54d4ffc.js b/server/public/5584.53c696b917778710.js similarity index 97% rename from server/public/5584.bac3e266d54d4ffc.js rename to server/public/5584.53c696b917778710.js index 0fd313ae3..a51b438e3 100644 --- a/server/public/5584.bac3e266d54d4ffc.js +++ b/server/public/5584.53c696b917778710.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5584],{1106:(E,f,e)=>{e.d(f,{L:()=>l});var n=e(6814),m=e(4190),t=e(5695),O=e(551),x=e(95),T=e(6067),_=e(8125),P=e(2962),C=e(1022),z=e(5879);let A=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[n.ez,P.vh,x.Jb,_.q6,T.X,C.H]}),g})();var M=e(7417);let l=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[n.ez,m.Bz,t.X,O.PV,M.$6,A]}),g})()},1835:(E,f,e)=>{e.d(f,{l:()=>M});var n=e(5879),m=e(6814),t=e(5695),O=e(7417),x=e(1887);const T=function(l){return{"matched-tag":l}};function _(l,g){if(1&l&&(n.TgZ(0,"span",2)(1,"nz-tag"),n._uU(2),n.qZA()()),2&l){const r=g.$implicit,p=n.oxw();n.Q6J("ngClass",n.VKq(2,T,p.matchingText&&r.toLowerCase().includes(p.matchingText))),n.xp6(2),n.Oqu(r)}}function P(l,g){if(1&l&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&l){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.matchedHiddenCount," of ")}}function C(l,g){if(1&l&&(n.TgZ(0,"nz-tag",5),n._uU(1," +"),n.YNc(2,P,2,1,"span",6),n._uU(3),n.qZA()),2&l){const r=n.oxw(),p=n.MAs(5);n.Q6J("nzPopoverMouseEnterDelay",0)("nzPopoverContent",p),n.xp6(2),n.Q6J("ngIf",r.matchedHiddenCount>0),n.xp6(1),n.hij("",r.hiddenCount," ")}}function z(l,g){if(1&l&&(n.TgZ(0,"div",2)(1,"nz-tag"),n._uU(2),n.qZA()()),2&l){const r=g.$implicit,p=n.oxw(2);n.Q6J("ngClass",n.VKq(2,T,p.matchingText&&r.toLowerCase().includes(p.matchingText))),n.xp6(2),n.Oqu(r)}}function A(l,g){if(1&l&&(n.TgZ(0,"div",7)(1,"cvc-tag-list",0),n.YNc(2,z,3,4,"div",1),n.qZA()()),2&l){const r=n.oxw();n.xp6(2),n.Q6J("ngForOf",r.hiddenTags)}}let M=(()=>{class l{constructor(r){this.cdr=r,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(r){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let r=this.matchingText.toLowerCase();this.hiddenTags.forEach(p=>{p.toLowerCase().includes(r)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}}return l.\u0275fac=function(r){return new(r||l)(n.Y36(n.sBO))},l.\u0275cmp=n.Xpm({type:l,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.TTD],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",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(r,p){1&r&&(n.TgZ(0,"cvc-tag-list",0),n.YNc(1,_,3,4,"span",1),n.TgZ(2,"span",2),n.YNc(3,C,4,4,"nz-tag",3),n.qZA(),n.YNc(4,A,3,1,"ng-template",null,4,n.W1O),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngForOf",p.displayedTags),n.xp6(1),n.Q6J("ngClass",n.VKq(3,T,p.matchedHiddenCount>0)),n.xp6(1),n.Q6J("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[m.mk,m.sg,m.O5,t.j,O.lU,x.$],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),l})()},2966:(E,f,e)=>{e.d(f,{T:()=>T});var n=e(6814),m=e(366),t=e(5695),O=e(7417),x=e(5879);let T=(()=>{class _{}return _.\u0275fac=function(C){return new(C||_)},_.\u0275mod=x.oAB({type:_}),_.\u0275inj=x.cJS({imports:[n.ez,t.X,O.$6,m.$]}),_})()},4527:(E,f,e)=>{e.d(f,{T:()=>F});var n=e(5879),m=e(6814),t=e(5695),O=e(7417),x=e(1887),T=e(4770),_=e(9775),P=e(215),C=e(4121),z=e(9408),A=e(7938);const M=function(c){return{"matched-tag":c}},l=function(c,d){return{tagType:c,tag:d}};function g(c,d){if(1&c&&(n.TgZ(0,"div",2),n.GkF(1,6),n.qZA()),2&c){const s=d.$implicit,u=n.oxw(),U=n.MAs(7);n.Q6J("ngClass",n.VKq(3,M,u.matchingText&&s.name.toLowerCase().includes(u.matchingText))),n.xp6(1),n.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",n.WLB(5,l,u.tagType,s))}}function r(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const s=n.oxw(2);n.xp6(1),n.hij(" ",s.matchedHiddenCount," of ")}}function p(c,d){if(1&c&&(n.TgZ(0,"nz-tag",7),n._uU(1," +"),n.YNc(2,r,2,1,"span",8),n._uU(3),n.qZA()),2&c){const s=n.oxw(),u=n.MAs(5);n.Q6J("nzPopoverContent",u),n.xp6(2),n.Q6J("ngIf",s.matchedHiddenCount>0),n.xp6(1),n.hij("",s.hiddenCount," ")}}function B(c,d){if(1&c&&(n.TgZ(0,"div",2),n.ynx(1,10),n.GkF(2,6),n.BQk(),n.qZA()),2&c){const s=d.$implicit,u=n.oxw(2),U=n.MAs(7);n.Q6J("ngClass",n.VKq(4,M,u.matchingText&&s.name.toLowerCase().includes(u.matchingText))),n.xp6(1),n.Q6J("ngSwitch",u.tagType),n.xp6(1),n.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",n.WLB(6,l,u.tagType,s))}}function $(c,d){if(1&c&&(n.TgZ(0,"div",9)(1,"cvc-tag-list",0),n.YNc(2,B,3,9,"div",1),n.qZA()()),2&c){const s=n.oxw();n.xp6(2),n.Q6J("ngForOf",s.hiddenTags)}}function D(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-therapy-tag",12),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("therapy",s)("truncateLongName",!0)}}function N(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",13),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("disease",s)("truncateLongName",!0)}}function y(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-gene-tag",14),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("gene",s)("truncateLongName",!0)}}function w(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-organization-tag",15),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("org",s)}}function G(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-variant-tag",16),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("variant",s)}}function S(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-variant-type-tag",17),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("variantType",s)}}function W(c,d){1&c&&(n.ynx(0,10),n.YNc(1,D,2,2,"ng-container",11),n.YNc(2,N,2,2,"ng-container",11),n.YNc(3,y,2,2,"ng-container",11),n.YNc(4,w,2,1,"ng-container",11),n.YNc(5,G,2,1,"ng-container",11),n.YNc(6,S,2,1,"ng-container",11),n.BQk()),2&c&&(n.Q6J("ngSwitch",d.tagType),n.xp6(1),n.Q6J("ngSwitchCase","therapy"),n.xp6(1),n.Q6J("ngSwitchCase","disease"),n.xp6(1),n.Q6J("ngSwitchCase","gene"),n.xp6(1),n.Q6J("ngSwitchCase","organization"),n.xp6(1),n.Q6J("ngSwitchCase","variant"),n.xp6(1),n.Q6J("ngSwitchCase","variant-type"))}let F=(()=>{class c{constructor(s){this.cdr=s,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(s){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let s=this.matchingText.toLowerCase();this.hiddenTags.forEach(u=>{u.name.toLowerCase().includes(s)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}}return c.\u0275fac=function(s){return new(s||c)(n.Y36(n.sBO))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-tag-overflow"]],inputs:{tags:"tags",maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.TTD],decls:8,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],["additionalTagPopover",""],["tagTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"gene","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"]],template:function(s,u){1&s&&(n.TgZ(0,"cvc-tag-list",0),n.YNc(1,g,2,8,"div",1),n.TgZ(2,"div",2),n.YNc(3,p,4,3,"nz-tag",3),n.qZA(),n.YNc(4,$,3,1,"ng-template",null,4,n.W1O),n.qZA(),n.YNc(6,W,7,7,"ng-template",null,5,n.W1O)),2&s&&(n.xp6(1),n.Q6J("ngForOf",u.displayedTags),n.xp6(1),n.Q6J("ngClass",n.VKq(3,M,u.matchedHiddenCount>0)),n.xp6(1),n.Q6J("ngIf",u.hiddenCount&&u.hiddenCount>0))},dependencies:[m.mk,m.sg,m.O5,m.tP,m.RF,m.n9,t.j,O.lU,x.$,T.T,_.n,P.m,C.H,z.I,A.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),c})()},7950:(E,f,e)=>{e.d(f,{x:()=>M});var n=e(6814),m=e(366),t=e(5695),O=e(7417),x=e(3396),T=e(1106),_=e(5956),P=e(7528),C=e(6061),z=e(3717),A=e(5879);let M=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=A.oAB({type:l}),l.\u0275inj=A.cJS({imports:[n.ez,t.X,O.$6,m.$,C.N,x.Q,T.L,_.U,P.Q,z.M]}),l})()},3717:(E,f,e)=>{e.d(f,{M:()=>M});var n=e(6814),m=e(4190),t=e(5695),O=e(2962),x=e(6067),T=e(8125),_=e(551),P=e(2524),C=e(5879);let z=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[n.ez,_.PV,O.vh,T.q6,P.s,x.X]}),l})();var A=e(7417);let M=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[n.ez,m.Bz,_.PV,t.X,A.$6,z]}),l})()},5584:(E,f,e)=>{e.r(f),e.d(f,{GenesModule:()=>Qt});var n=e(6814),m=e(4190),t=e(5879);let O=(()=>{class o{constructor(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-genes"]],decls:1,vars:0,template:function(a,v){1&a&&t._UZ(0,"router-outlet")},dependencies:[m.lC],encapsulation:2}),o})();var x=e(6223),T=e(5956),_=e(7856),P=e(9154),C=e(2966),z=e(2989),A=e(7950),M=e(2524),l=e(9175),g=e(4742),r=e(9312),p=e(2840),B=e(2962),$=e(3599),D=e(551),N=e(824),y=e(3740),w=e(5695),G=e(6109),S=e(2392);let W=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,x.u5,p.sL,B.vh,$.U5,D.PV,N.o7,y.HQ,w.X,G.cg,S.ZJ,l.n,g.c,_.k,T.U,P.y,C.T,M.s,z.T,r.w,A.x]}),o})();var F=e(2419),c=e(95),d=e(6254),s=e(2574);let u=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,p.sL,D.PV,s.zf,S.ZJ,d.KJ,c.Jb,M.s,F.D,W]}),o})();var I,U=e(855),q=e(3145),k=e(655),tt=e(4632),V=e(313),J=e(1791),L=e(8645),X=e(5619),H=e(5676),b=e(3997),nt=e(812),et=e(836),K=e(2181),Y=e(7398),ot=e(3620),at=e(2460),Q=e(4223),it=e(6753),lt=e(4764),ct=e(8516),st=e(4121),rt=e(3489),gt=e(1835),pt=e(9857),dt=e(4997),ht=e(4527),mt=e(8091);function vt(o,i){}function _t(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,vt,0,0,"ng-template",6),t.qZA(),t.BQk()),2&o){t.oxw();const a=t.MAs(6),v=t.MAs(8),h=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",v),t.xp6(1),t.Q6J("ngTemplateOutlet",h)}}function ut(o,i){}const Ct=function(o){return{height:o}};function Tt(o,i){if(1&o&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,ut,0,0,"ng-template",6),t.qZA()()),2&o){const a=t.oxw(),v=t.MAs(6),h=t.MAs(8),Z=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,Ct,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",h),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function ft(o,i){if(1&o&&(t.TgZ(0,"tr",30)(1,"td",26),t._UZ(2,"cvc-gene-tag",31),t.qZA(),t.TgZ(3,"td",26),t._UZ(4,"cvc-plain-tag-overflow",32),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"cvc-tag-overflow",33),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",34),t.qZA(),t.TgZ(9,"td",35),t._uU(10),t.qZA(),t.TgZ(11,"td",35),t._uU(12),t.qZA(),t.TgZ(13,"td",35),t._uU(14),t.qZA(),t.TgZ(15,"td",35),t._uU(16),t.qZA()()),2&o){const a=i.$implicit,v=t.oxw(2);t.xp6(2),t.Q6J("gene",a),t.xp6(2),t.Q6J("tags",a.geneAliases)("matchingText",v.aliasInput),t.xp6(2),t.Q6J("maxDisplayCount",1)("tags",a.diseases)("matchingText",v.diseaseInput),t.xp6(2),t.Q6J("maxDisplayCount",1)("tags",a.therapies)("matchingText",v.therapyInput),t.xp6(2),t.hij(" ",a.molecularProfileCount," "),t.xp6(2),t.hij(" ",a.variantCount," "),t.xp6(2),t.hij(" ",a.evidenceItemCount," "),t.xp6(2),t.hij(" ",a.assertionCount," ")}}const xt=function(){return[]},zt=function(){return{x:"680px",y:"800px"}},R=function(){return["descend","ascend",null]};function Mt(o,i){if(1&o){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.scrollEvent$.next(h))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.sortChange$.next(h))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," Aliases "),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Diseases"),t.qZA(),t.TgZ(14,"th",16),t._uU(15,"Therapies"),t.qZA(),t.TgZ(16,"th",17),t._UZ(17,"i",18),t._uU(18," Count "),t.qZA(),t.TgZ(19,"th",19),t._UZ(20,"i",20),t._uU(21," Count "),t.qZA(),t.TgZ(22,"th",21),t._UZ(23,"i",22),t._uU(24," Count "),t.qZA(),t.TgZ(25,"th",23),t._UZ(26,"i",24),t._uU(27," Count "),t.qZA()(),t.TgZ(28,"tr",25)(29,"th",26)(30,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.nameInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(31,"th",26)(32,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.aliasInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(33,"th")(34,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.diseaseInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(35,"th")(36,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.therapyInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t._UZ(37,"th",28)(38,"th",28)(39,"th",28)(40,"th",28),t.qZA()(),t.TgZ(41,"tbody"),t.YNc(42,ft,17,13,"ng-template",29),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,29,a.row$)||t.DdM(37,xt))("nzLoading",!t.lcZ(3,31,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,33,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,35,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(38,zt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.EntrezSymbol)("nzSortFn",!0),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.DdM(39,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(40,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(41,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.DdM(42,R)),t.xp6(5),t.Q6J("inputModel",a.nameInput),t.xp6(2),t.Q6J("inputModel",a.aliasInput),t.xp6(2),t.Q6J("inputModel",a.diseaseInput),t.xp6(2),t.Q6J("inputModel",a.therapyInput)}}function Ot(o,i){}function Pt(o,i){if(1&o&&(t.ynx(0),t.YNc(1,Ot,0,0,"ng-template",6),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,i){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function Zt(o,i){if(1&o&&(t.YNc(0,Pt,2,1,"ng-container",36),t.YNc(1,yt,2,1,"ng-container",36),t.TgZ(2,"span",37),t._UZ(3,"cvc-table-counts",38),t.qZA()),2&o){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function At(o,i){1&o&&(t.TgZ(0,"nz-tag",41),t._UZ(1,"i",42),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function Et(o,i){if(1&o&&(t.YNc(0,At,4,0,"nz-tag",39),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",40),t.ALo(3,"ngrxPush")),2&o){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let j=((I=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,a){this.query=i,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=V.Fvz,this.debouncedQuery=new L.x,this.noMoreRows$=new X.X(!1),this.scrollEvent$=new X.X("stop"),this.sortChange$=new L.x,this.filterChange$=new L.x,this.scrollIndex$=new L.x}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,Q.j)("loading"),(0,b.x)(),(0,nt.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,Q.j)("loading"),(0,b.x)(),(0,et.T)(2)),this.connection$=this.result$.pipe((0,Q.j)("data","browseGenes"),(0,K.h)(H.ep)),this.row$=this.connection$.pipe((0,Q.j)("edges"),(0,K.h)(H.ep),(0,Y.U)(i=>i.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,Q.j)("pageInfo"),(0,K.h)(H.ep)),this.sortChange$.pipe((0,J.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,tt._)(i)})}),this.filterChange$.pipe((0,ot.b)(500),(0,J.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Y.U)(i=>"stop"!==i),(0,b.x)(),(0,J.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,K.h)(i=>"bottom"===i),(0,at.M)(this.pageInfo$),(0,Y.U)(([i,a])=>a),(0,J.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(i){this.debouncedQuery.next()}trackByIndex(i,a){return a?.id}}).\u0275fac=function(i){return new(i||I)(t.Y36(V.q8c),t.Y36(t.sBO))},I.\u0275cmp=t.Xpm({type:I,selectors:[["cvc-genes-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzLeft","","nzWidth","200px"],["nzWidth","250px"],["nzWidth","225px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Molecular Profile Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-molecularprofile"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"maxDisplayCount","tags","matchingText"],["tagType","therapy",3,"maxDisplayCount","tags","matchingText"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,a){if(1&i&&(t.YNc(0,_t,3,3,"ng-container",0),t.YNc(1,Tt,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Mt,43,43,"ng-template",null,2,t.W1O),t.YNc(5,Zt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,Et,4,6,"ng-template",null,4,t.W1O)),2&i){const v=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",v)}},dependencies:[n.O5,n.tP,n.PC,U.w,B.bd,D.Ls,y.N8,y.qD,y.Uo,y._C,y.Om,y.p0,y.$Z,y.zu,y.qn,y.UX,w.j,G.SY,it.D,lt.q,ct.p,st.H,rt.H,gt.l,pt.B,dt.y,ht.T,mt.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0}),I);j=(0,k.gn)([(0,J.c)()],j);var Dt=e(2616);function Ut(o,i){1&o&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Gene Model Docs "),t.qZA())}function It(o,i){1&o&&(t.TgZ(0,"a",15),t._UZ(1,"i",14),t._uU(2," View Gene Curation Docs "),t.qZA())}const St=[{path:"",component:O,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-genes-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nzFlex","0 1 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(a,v){1&a&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Genes"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Ut,3,0,"a",8),t.YNc(15,It,3,0,"a",9),t.qZA()()(),t.TgZ(16,"nz-row")(17,"nz-col",10)(18,"div",11),t._UZ(19,"cvc-genes-table",12),t.qZA()()()()()),2&a&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Gene")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[p.ix,U.w,D.Ls,s.NU,s.$1,S.ZU,d.$O,d.u5,c.t3,c.SK,q.I,j,Dt.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{flex-wrap:nowrap;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:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(4872),e.e(5556),e.e(2602),e.e(7889),e.e(7856),e.e(8245),e.e(4503),e.e(5990),e.e(1107)]).then(e.bind(e,4601)).then(o=>o.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(7903)]).then(e.bind(e,8109)).then(o=>o.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Jt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[m.Bz.forChild(St),u,m.Bz]}),o})(),Qt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,Jt]}),o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5584],{1106:(E,f,e)=>{e.d(f,{L:()=>l});var n=e(6814),m=e(4190),t=e(5695),O=e(551),x=e(95),T=e(6067),_=e(8125),P=e(2962),C=e(4293),z=e(5879);let A=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[n.ez,P.vh,x.Jb,_.q6,T.X,C.H]}),g})();var M=e(7417);let l=(()=>{class g{}return g.\u0275fac=function(p){return new(p||g)},g.\u0275mod=z.oAB({type:g}),g.\u0275inj=z.cJS({imports:[n.ez,m.Bz,t.X,O.PV,M.$6,A]}),g})()},1835:(E,f,e)=>{e.d(f,{l:()=>M});var n=e(5879),m=e(6814),t=e(5695),O=e(7417),x=e(1887);const T=function(l){return{"matched-tag":l}};function _(l,g){if(1&l&&(n.TgZ(0,"span",2)(1,"nz-tag"),n._uU(2),n.qZA()()),2&l){const r=g.$implicit,p=n.oxw();n.Q6J("ngClass",n.VKq(2,T,p.matchingText&&r.toLowerCase().includes(p.matchingText))),n.xp6(2),n.Oqu(r)}}function P(l,g){if(1&l&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&l){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.matchedHiddenCount," of ")}}function C(l,g){if(1&l&&(n.TgZ(0,"nz-tag",5),n._uU(1," +"),n.YNc(2,P,2,1,"span",6),n._uU(3),n.qZA()),2&l){const r=n.oxw(),p=n.MAs(5);n.Q6J("nzPopoverMouseEnterDelay",0)("nzPopoverContent",p),n.xp6(2),n.Q6J("ngIf",r.matchedHiddenCount>0),n.xp6(1),n.hij("",r.hiddenCount," ")}}function z(l,g){if(1&l&&(n.TgZ(0,"div",2)(1,"nz-tag"),n._uU(2),n.qZA()()),2&l){const r=g.$implicit,p=n.oxw(2);n.Q6J("ngClass",n.VKq(2,T,p.matchingText&&r.toLowerCase().includes(p.matchingText))),n.xp6(2),n.Oqu(r)}}function A(l,g){if(1&l&&(n.TgZ(0,"div",7)(1,"cvc-tag-list",0),n.YNc(2,z,3,4,"div",1),n.qZA()()),2&l){const r=n.oxw();n.xp6(2),n.Q6J("ngForOf",r.hiddenTags)}}let M=(()=>{class l{constructor(r){this.cdr=r,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(r){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let r=this.matchingText.toLowerCase();this.hiddenTags.forEach(p=>{p.toLowerCase().includes(r)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}}return l.\u0275fac=function(r){return new(r||l)(n.Y36(n.sBO))},l.\u0275cmp=n.Xpm({type:l,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.TTD],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",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(r,p){1&r&&(n.TgZ(0,"cvc-tag-list",0),n.YNc(1,_,3,4,"span",1),n.TgZ(2,"span",2),n.YNc(3,C,4,4,"nz-tag",3),n.qZA(),n.YNc(4,A,3,1,"ng-template",null,4,n.W1O),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngForOf",p.displayedTags),n.xp6(1),n.Q6J("ngClass",n.VKq(3,T,p.matchedHiddenCount>0)),n.xp6(1),n.Q6J("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[m.mk,m.sg,m.O5,t.j,O.lU,x.$],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),l})()},2966:(E,f,e)=>{e.d(f,{T:()=>T});var n=e(6814),m=e(366),t=e(5695),O=e(7417),x=e(5879);let T=(()=>{class _{}return _.\u0275fac=function(C){return new(C||_)},_.\u0275mod=x.oAB({type:_}),_.\u0275inj=x.cJS({imports:[n.ez,t.X,O.$6,m.$]}),_})()},4527:(E,f,e)=>{e.d(f,{T:()=>F});var n=e(5879),m=e(6814),t=e(5695),O=e(7417),x=e(1887),T=e(4770),_=e(9775),P=e(215),C=e(4121),z=e(9408),A=e(7938);const M=function(c){return{"matched-tag":c}},l=function(c,d){return{tagType:c,tag:d}};function g(c,d){if(1&c&&(n.TgZ(0,"div",2),n.GkF(1,6),n.qZA()),2&c){const s=d.$implicit,u=n.oxw(),U=n.MAs(7);n.Q6J("ngClass",n.VKq(3,M,u.matchingText&&s.name.toLowerCase().includes(u.matchingText))),n.xp6(1),n.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",n.WLB(5,l,u.tagType,s))}}function r(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const s=n.oxw(2);n.xp6(1),n.hij(" ",s.matchedHiddenCount," of ")}}function p(c,d){if(1&c&&(n.TgZ(0,"nz-tag",7),n._uU(1," +"),n.YNc(2,r,2,1,"span",8),n._uU(3),n.qZA()),2&c){const s=n.oxw(),u=n.MAs(5);n.Q6J("nzPopoverContent",u),n.xp6(2),n.Q6J("ngIf",s.matchedHiddenCount>0),n.xp6(1),n.hij("",s.hiddenCount," ")}}function B(c,d){if(1&c&&(n.TgZ(0,"div",2),n.ynx(1,10),n.GkF(2,6),n.BQk(),n.qZA()),2&c){const s=d.$implicit,u=n.oxw(2),U=n.MAs(7);n.Q6J("ngClass",n.VKq(4,M,u.matchingText&&s.name.toLowerCase().includes(u.matchingText))),n.xp6(1),n.Q6J("ngSwitch",u.tagType),n.xp6(1),n.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",n.WLB(6,l,u.tagType,s))}}function $(c,d){if(1&c&&(n.TgZ(0,"div",9)(1,"cvc-tag-list",0),n.YNc(2,B,3,9,"div",1),n.qZA()()),2&c){const s=n.oxw();n.xp6(2),n.Q6J("ngForOf",s.hiddenTags)}}function D(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-therapy-tag",12),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("therapy",s)("truncateLongName",!0)}}function N(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",13),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("disease",s)("truncateLongName",!0)}}function y(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-gene-tag",14),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("gene",s)("truncateLongName",!0)}}function w(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-organization-tag",15),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("org",s)}}function G(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-variant-tag",16),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("variant",s)}}function S(c,d){if(1&c&&(n.ynx(0),n._UZ(1,"cvc-variant-type-tag",17),n.BQk()),2&c){const s=n.oxw().tag;n.xp6(1),n.Q6J("variantType",s)}}function W(c,d){1&c&&(n.ynx(0,10),n.YNc(1,D,2,2,"ng-container",11),n.YNc(2,N,2,2,"ng-container",11),n.YNc(3,y,2,2,"ng-container",11),n.YNc(4,w,2,1,"ng-container",11),n.YNc(5,G,2,1,"ng-container",11),n.YNc(6,S,2,1,"ng-container",11),n.BQk()),2&c&&(n.Q6J("ngSwitch",d.tagType),n.xp6(1),n.Q6J("ngSwitchCase","therapy"),n.xp6(1),n.Q6J("ngSwitchCase","disease"),n.xp6(1),n.Q6J("ngSwitchCase","gene"),n.xp6(1),n.Q6J("ngSwitchCase","organization"),n.xp6(1),n.Q6J("ngSwitchCase","variant"),n.xp6(1),n.Q6J("ngSwitchCase","variant-type"))}let F=(()=>{class c{constructor(s){this.cdr=s,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(s){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let s=this.matchingText.toLowerCase();this.hiddenTags.forEach(u=>{u.name.toLowerCase().includes(s)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}}return c.\u0275fac=function(s){return new(s||c)(n.Y36(n.sBO))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-tag-overflow"]],inputs:{tags:"tags",maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.TTD],decls:8,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],["additionalTagPopover",""],["tagTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"gene","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"]],template:function(s,u){1&s&&(n.TgZ(0,"cvc-tag-list",0),n.YNc(1,g,2,8,"div",1),n.TgZ(2,"div",2),n.YNc(3,p,4,3,"nz-tag",3),n.qZA(),n.YNc(4,$,3,1,"ng-template",null,4,n.W1O),n.qZA(),n.YNc(6,W,7,7,"ng-template",null,5,n.W1O)),2&s&&(n.xp6(1),n.Q6J("ngForOf",u.displayedTags),n.xp6(1),n.Q6J("ngClass",n.VKq(3,M,u.matchedHiddenCount>0)),n.xp6(1),n.Q6J("ngIf",u.hiddenCount&&u.hiddenCount>0))},dependencies:[m.mk,m.sg,m.O5,m.tP,m.RF,m.n9,t.j,O.lU,x.$,T.T,_.n,P.m,C.H,z.I,A.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0}),c})()},7950:(E,f,e)=>{e.d(f,{x:()=>M});var n=e(6814),m=e(366),t=e(5695),O=e(7417),x=e(3396),T=e(1106),_=e(5956),P=e(7528),C=e(6061),z=e(3717),A=e(5879);let M=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=A.oAB({type:l}),l.\u0275inj=A.cJS({imports:[n.ez,t.X,O.$6,m.$,C.N,x.Q,T.L,_.U,P.Q,z.M]}),l})()},3717:(E,f,e)=>{e.d(f,{M:()=>M});var n=e(6814),m=e(4190),t=e(5695),O=e(2962),x=e(6067),T=e(8125),_=e(551),P=e(2524),C=e(5879);let z=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[n.ez,_.PV,O.vh,T.q6,P.s,x.X]}),l})();var A=e(7417);let M=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[n.ez,m.Bz,_.PV,t.X,A.$6,z]}),l})()},5584:(E,f,e)=>{e.r(f),e.d(f,{GenesModule:()=>Qt});var n=e(6814),m=e(4190),t=e(5879);let O=(()=>{class o{constructor(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-genes"]],decls:1,vars:0,template:function(a,v){1&a&&t._UZ(0,"router-outlet")},dependencies:[m.lC],encapsulation:2}),o})();var x=e(6223),T=e(5956),_=e(7856),P=e(9154),C=e(2966),z=e(2989),A=e(7950),M=e(2524),l=e(9175),g=e(4742),r=e(9312),p=e(2840),B=e(2962),$=e(3599),D=e(551),N=e(824),y=e(3740),w=e(5695),G=e(6109),S=e(2392);let W=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,x.u5,p.sL,B.vh,$.U5,D.PV,N.o7,y.HQ,w.X,G.cg,S.ZJ,l.n,g.c,_.k,T.U,P.y,C.T,M.s,z.T,r.w,A.x]}),o})();var F=e(2419),c=e(95),d=e(6254),s=e(2574);let u=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,p.sL,D.PV,s.zf,S.ZJ,d.KJ,c.Jb,M.s,F.D,W]}),o})();var I,U=e(855),q=e(3145),k=e(655),tt=e(4632),V=e(313),J=e(1791),L=e(8645),X=e(5619),H=e(5676),b=e(3997),nt=e(812),et=e(836),K=e(2181),Y=e(7398),ot=e(3620),at=e(2460),Q=e(4223),it=e(6753),lt=e(4764),ct=e(8516),st=e(4121),rt=e(3489),gt=e(1835),pt=e(9857),dt=e(4997),ht=e(4527),mt=e(8091);function vt(o,i){}function _t(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,vt,0,0,"ng-template",6),t.qZA(),t.BQk()),2&o){t.oxw();const a=t.MAs(6),v=t.MAs(8),h=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",v),t.xp6(1),t.Q6J("ngTemplateOutlet",h)}}function ut(o,i){}const Ct=function(o){return{height:o}};function Tt(o,i){if(1&o&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,ut,0,0,"ng-template",6),t.qZA()()),2&o){const a=t.oxw(),v=t.MAs(6),h=t.MAs(8),Z=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,Ct,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",h),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function ft(o,i){if(1&o&&(t.TgZ(0,"tr",30)(1,"td",26),t._UZ(2,"cvc-gene-tag",31),t.qZA(),t.TgZ(3,"td",26),t._UZ(4,"cvc-plain-tag-overflow",32),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"cvc-tag-overflow",33),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",34),t.qZA(),t.TgZ(9,"td",35),t._uU(10),t.qZA(),t.TgZ(11,"td",35),t._uU(12),t.qZA(),t.TgZ(13,"td",35),t._uU(14),t.qZA(),t.TgZ(15,"td",35),t._uU(16),t.qZA()()),2&o){const a=i.$implicit,v=t.oxw(2);t.xp6(2),t.Q6J("gene",a),t.xp6(2),t.Q6J("tags",a.geneAliases)("matchingText",v.aliasInput),t.xp6(2),t.Q6J("maxDisplayCount",1)("tags",a.diseases)("matchingText",v.diseaseInput),t.xp6(2),t.Q6J("maxDisplayCount",1)("tags",a.therapies)("matchingText",v.therapyInput),t.xp6(2),t.hij(" ",a.molecularProfileCount," "),t.xp6(2),t.hij(" ",a.variantCount," "),t.xp6(2),t.hij(" ",a.evidenceItemCount," "),t.xp6(2),t.hij(" ",a.assertionCount," ")}}const xt=function(){return[]},zt=function(){return{x:"680px",y:"800px"}},R=function(){return["descend","ascend",null]};function Mt(o,i){if(1&o){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.scrollEvent$.next(h))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.sortChange$.next(h))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Name "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," Aliases "),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Diseases"),t.qZA(),t.TgZ(14,"th",16),t._uU(15,"Therapies"),t.qZA(),t.TgZ(16,"th",17),t._UZ(17,"i",18),t._uU(18," Count "),t.qZA(),t.TgZ(19,"th",19),t._UZ(20,"i",20),t._uU(21," Count "),t.qZA(),t.TgZ(22,"th",21),t._UZ(23,"i",22),t._uU(24," Count "),t.qZA(),t.TgZ(25,"th",23),t._UZ(26,"i",24),t._uU(27," Count "),t.qZA()(),t.TgZ(28,"tr",25)(29,"th",26)(30,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.nameInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(31,"th",26)(32,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.aliasInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(33,"th")(34,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.diseaseInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t.TgZ(35,"th")(36,"cvc-clearable-input-filter",27),t.NdJ("inputModelChange",function(h){t.CHM(a);const Z=t.oxw();return t.KtG(Z.therapyInput=h)})("inputModelChange",function(){t.CHM(a);const h=t.oxw();return t.KtG(h.filterChange$.next())}),t.qZA()(),t._UZ(37,"th",28)(38,"th",28)(39,"th",28)(40,"th",28),t.qZA()(),t.TgZ(41,"tbody"),t.YNc(42,ft,17,13,"ng-template",29),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,29,a.row$)||t.DdM(37,xt))("nzLoading",!t.lcZ(3,31,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,33,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,35,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(38,zt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.EntrezSymbol)("nzSortFn",!0),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.DdM(39,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(40,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(41,R)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.DdM(42,R)),t.xp6(5),t.Q6J("inputModel",a.nameInput),t.xp6(2),t.Q6J("inputModel",a.aliasInput),t.xp6(2),t.Q6J("inputModel",a.diseaseInput),t.xp6(2),t.Q6J("inputModel",a.therapyInput)}}function Ot(o,i){}function Pt(o,i){if(1&o&&(t.ynx(0),t.YNc(1,Ot,0,0,"ng-template",6),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,i){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function Zt(o,i){if(1&o&&(t.YNc(0,Pt,2,1,"ng-container",36),t.YNc(1,yt,2,1,"ng-container",36),t.TgZ(2,"span",37),t._UZ(3,"cvc-table-counts",38),t.qZA()),2&o){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function At(o,i){1&o&&(t.TgZ(0,"nz-tag",41),t._UZ(1,"i",42),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function Et(o,i){if(1&o&&(t.YNc(0,At,4,0,"nz-tag",39),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",40),t.ALo(3,"ngrxPush")),2&o){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let j=((I=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,a){this.query=i,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=V.Fvz,this.debouncedQuery=new L.x,this.noMoreRows$=new X.X(!1),this.scrollEvent$=new X.X("stop"),this.sortChange$=new L.x,this.filterChange$=new L.x,this.scrollIndex$=new L.x}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,Q.j)("loading"),(0,b.x)(),(0,nt.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,Q.j)("loading"),(0,b.x)(),(0,et.T)(2)),this.connection$=this.result$.pipe((0,Q.j)("data","browseGenes"),(0,K.h)(H.ep)),this.row$=this.connection$.pipe((0,Q.j)("edges"),(0,K.h)(H.ep),(0,Y.U)(i=>i.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,Q.j)("pageInfo"),(0,K.h)(H.ep)),this.sortChange$.pipe((0,J.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,tt._)(i)})}),this.filterChange$.pipe((0,ot.b)(500),(0,J.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Y.U)(i=>"stop"!==i),(0,b.x)(),(0,J.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,K.h)(i=>"bottom"===i),(0,at.M)(this.pageInfo$),(0,Y.U)(([i,a])=>a),(0,J.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(i){this.debouncedQuery.next()}trackByIndex(i,a){return a?.id}}).\u0275fac=function(i){return new(i||I)(t.Y36(V.q8c),t.Y36(t.sBO))},I.\u0275cmp=t.Xpm({type:I,selectors:[["cvc-genes-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzLeft","","nzWidth","200px"],["nzWidth","250px"],["nzWidth","225px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Molecular Profile Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-molecularprofile"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"maxDisplayCount","tags","matchingText"],["tagType","therapy",3,"maxDisplayCount","tags","matchingText"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,a){if(1&i&&(t.YNc(0,_t,3,3,"ng-container",0),t.YNc(1,Tt,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Mt,43,43,"ng-template",null,2,t.W1O),t.YNc(5,Zt,4,3,"ng-template",null,3,t.W1O),t.YNc(7,Et,4,6,"ng-template",null,4,t.W1O)),2&i){const v=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",v)}},dependencies:[n.O5,n.tP,n.PC,U.w,B.bd,D.Ls,y.N8,y.qD,y.Uo,y._C,y.Om,y.p0,y.$Z,y.zu,y.qn,y.UX,w.j,G.SY,it.D,lt.q,ct.p,st.H,rt.H,gt.l,pt.B,dt.y,ht.T,mt.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0}),I);j=(0,k.gn)([(0,J.c)()],j);var Dt=e(2616);function Ut(o,i){1&o&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Gene Model Docs "),t.qZA())}function It(o,i){1&o&&(t.TgZ(0,"a",15),t._UZ(1,"i",14),t._uU(2," View Gene Curation Docs "),t.qZA())}const St=[{path:"",component:O,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-genes-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nzFlex","0 1 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(a,v){1&a&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Genes"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,Ut,3,0,"a",8),t.YNc(15,It,3,0,"a",9),t.qZA()()(),t.TgZ(16,"nz-row")(17,"nz-col",10)(18,"div",11),t._UZ(19,"cvc-genes-table",12),t.qZA()()()()()),2&a&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"Gene")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},dependencies:[p.ix,U.w,D.Ls,s.NU,s.$1,S.ZU,d.$O,d.u5,c.t3,c.SK,q.I,j,Dt.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{flex-wrap:nowrap;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:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(4872),e.e(5556),e.e(2602),e.e(9949),e.e(7856),e.e(3575),e.e(4280),e.e(4840),e.e(1107)]).then(e.bind(e,4601)).then(o=>o.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(726)]).then(e.bind(e,8109)).then(o=>o.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Jt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[m.Bz.forChild(St),u,m.Bz]}),o})(),Qt=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[n.ez,Jt]}),o})()}}]); \ No newline at end of file diff --git a/server/public/5756.74732a34d6188e8e.js b/server/public/5756.74732a34d6188e8e.js deleted file mode 100644 index 43c60486d..000000000 --- a/server/public/5756.74732a34d6188e8e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5756],{8923:(I,y,o)=>{o.d(y,{z:()=>g});var t=o(5879),n=o(5695),s=o(551),f=o(6967);let g=(()=>{class c{constructor(){this.cvcShowLabel=!0,this.cvcShowTooltip=!0,this.showIcon=!0}}return c.\u0275fac=function(_){return new(_||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-attribute-tag"]],inputs:{cvcAttrValue:"cvcAttrValue",iconPropertyType:"iconPropertyType",cvcShowLabel:"cvcShowLabel",cvcShowTooltip:"cvcShowTooltip",showIcon:"showIcon"},decls:5,vars:7,consts:[["nz-icon","",3,"nzType"]],template:function(_,m){1&_&&(t.TgZ(0,"nz-tag"),t._UZ(1,"i",0),t.ALo(2,"evidenceEnumDisplay"),t._uU(3),t.ALo(4,"evidenceEnumDisplay"),t.qZA()),2&_&&(t.xp6(1),t.Q6J("nzType",t.xi3(2,2,m.cvcAttrValue,"icon-name")),t.xp6(2),t.hij(" ",t.lcZ(4,5,m.cvcAttrValue),"\n"))},dependencies:[n.j,s.Ls,f.Do],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),c})()},7364:(I,y,o)=>{o.d(y,{_:()=>v});var t=o(6814),n=o(5695),s=o(2524),f=o(551),g=o(6109),c=o(5879);let v=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[t.ez,n.X,f.PV,g.cg,s.s]}),_})()},9183:(I,y,o)=>{o.d(y,{P:()=>D});var t=o(5879),n=o(6814),s=o(6109);function f(r,T){1&r&&(t.ynx(0),t._uU(1," N/A "),t.BQk())}function g(r,T){1&r&&(t.ynx(0),t._uU(1," Not applicable "),t.BQk())}function c(r,T){if(1&r&&(t.TgZ(0,"span",4),t.ynx(1,0),t.YNc(2,f,2,0,"ng-container",5),t.YNc(3,g,2,0,"ng-container",6),t.BQk(),t.qZA()),2&r){const a=t.oxw();t.xp6(1),t.Q6J("ngSwitch",a.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function v(r,T){1&r&&(t.ynx(0),t._uU(1," \u2013\xa0\u2013 "),t.BQk())}function _(r,T){1&r&&(t.ynx(0),t._uU(1,"Not specified"),t.BQk())}function m(r,T){if(1&r&&(t.TgZ(0,"span",7),t.ynx(1,0),t.YNc(2,v,2,0,"ng-container",5),t.YNc(3,_,2,0,"ng-container",6),t.BQk(),t.qZA()),2&r){const a=t.oxw();t.xp6(1),t.Q6J("ngSwitch",a.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function P(r,T){1&r&&(t.ynx(0),t._uU(1,"!?"),t.BQk())}function O(r,T){1&r&&(t.ynx(0),t._uU(1,"Unspecified"),t.BQk())}function d(r,T){if(1&r&&(t.TgZ(0,"span",8),t.ynx(1,0),t.YNc(2,P,2,0,"ng-container",5),t.YNc(3,O,2,0,"ng-container",6),t.BQk(),t.qZA()),2&r){const a=t.oxw();t.xp6(1),t.Q6J("ngSwitch",a.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}let D=(()=>{class r{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(a,A){1&a&&(t.ynx(0,0),t.YNc(1,c,4,2,"span",1),t.YNc(2,m,4,2,"span",2),t.YNc(3,d,4,2,"span",3),t.BQk()),2&a&&(t.Q6J("ngSwitch",A.cvcEmptyCategory),t.xp6(1),t.Q6J("ngSwitchCase","not-applicable"),t.xp6(1),t.Q6J("ngSwitchCase","unspecified"),t.xp6(1),t.Q6J("ngSwitchCase","invalid"))},dependencies:[n.RF,n.n9,n.ED,s.SY],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]}),r})()},8916:(I,y,o)=>{o.d(y,{M:()=>g});var t=o(6814),n=o(551),s=o(6109),f=o(5879);let g=(()=>{class c{}return c.\u0275fac=function(_){return new(_||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[t.ez,s.cg,n.PV]}),c})()},8380:(I,y,o)=>{o.d(y,{P:()=>P});var t=o(6814),n=o(2840),s=o(6109),f=o(2669),g=o(6294),c=o(6223),v=o(95),_=o(2574),m=o(5879);let P=(()=>{class O{}return O.\u0275fac=function(D){return new(D||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[t.ez,c.u5,c.UX,n.sL,s.cg,f.j,_.zf,v.Jb,g.A]}),O})()},5162:(I,y,o)=>{o.d(y,{m:()=>T});var t=o(5879),n=o(2024),s=o(313),f=o(8645),g=o(9773),c=o(7473),v=o(6814),_=o(2840),m=o(855),P=o(1958),O=o(2669),d=o(5805),D=o(2257);function r(a,A){if(1&a){const p=t.EpF();t.TgZ(0,"cvc-org-selector-btn-group",5),t.NdJ("selectedOrgChange",function(E){t.CHM(p);const R=t.oxw();return t.KtG(R.mostRecentOrg=E)}),t.TgZ(1,"button",6),t.NdJ("click",function(){t.CHM(p);const E=t.oxw();return t.KtG(E.moderate(E.evidenceStatuses.Accepted))}),t._uU(2),t.qZA()()}if(2&a){const p=t.oxw();t.Q6J("selectedOrg",p.mostRecentOrg),t.xp6(2),t.hij(" Accept ",p.entityType," ")}}let T=(()=>{class a{constructor(p,C,E){this.revertEvidenceGQL=p,this.revertAssertionGQL=C,this.networkErrorService=E,this.rejectOnly=!1,this.onModerated=new t.vpe,this.evidenceStatuses=s.RTy,this.isSubmitting=!1,this.showConfirm=!1,this.destroy$=new f.x,this.moderateAssertionMutator=new n.U(E),this.moderateEvidenceMutator=new n.U(E)}moderate(p){let C;this.isSubmitting=!0,C="EvidenceItem"===this.entityType?this.moderateEvidenceMutator.mutate(this.revertEvidenceGQL,{input:{evidenceItemId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:p}}):this.moderateAssertionMutator.mutate(this.revertAssertionGQL,{input:{assertionId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:p}}),C.submitSuccess$.pipe((0,g.R)(this.destroy$)).subscribe(E=>{E&&(this.isSubmitting=!1,this.showConfirm=!1,this.onModerated.emit(p))}),C.submitError$.pipe((0,g.R)(this.destroy$)).subscribe(E=>{E&&(this.isSubmitting=!1,this.showConfirm=!1,this.onModerated.emit(E))}),C.isSubmitting$.pipe((0,g.R)(this.destroy$)).subscribe(E=>{this.isSubmitting=E})}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityId)throw new Error("Must pass in an id to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityType)throw new Error("Must pass in an entityType to the CvcEntitySubscriptionButtonComponent");this.mostRecentOrg=this.viewer.mostRecentOrg}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(p){return new(p||a)(t.Y36(s.MYm),t.Y36(s._jb),t.Y36(c.Y))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-moderate-entity-buttons"]],inputs:{viewer:"viewer",entityType:"entityType",entityId:"entityId",rejectOnly:"rejectOnly"},outputs:{onModerated:"onModerated"},decls:7,vars:4,consts:[[1,"center"],[3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange",4,"ngIf"],["nzDanger","","nzType","primary",3,"selectedOrg","selectedOrgChange"],["cvcOrgSelectorBtn","","nzDanger","","nzType","primary","nzSize","large","nz-button","",3,"click"],[3,"selectedOrg","selectedOrgChange"],["cvcOrgSelectorBtn","","nzType","primary","nzSize","large","nz-button","",3,"click"]],template:function(p,C){1&p&&(t.TgZ(0,"div",0)(1,"nz-spin",1),t.YNc(2,r,3,2,"cvc-org-selector-btn-group",2),t._uU(3," \xa0 "),t.TgZ(4,"cvc-org-selector-btn-group",3),t.NdJ("selectedOrgChange",function(R){return C.mostRecentOrg=R}),t.TgZ(5,"button",4),t.NdJ("click",function(){return C.moderate(C.evidenceStatuses.Rejected)}),t._uU(6),t.qZA()()()()),2&p&&(t.xp6(1),t.Q6J("nzSpinning",C.isSubmitting),t.xp6(1),t.Q6J("ngIf",!C.rejectOnly),t.xp6(2),t.Q6J("selectedOrg",C.mostRecentOrg),t.xp6(2),t.hij(" Reject ",C.entityType," "))},dependencies:[v.O5,_.ix,m.w,P.dQ,O.W,d.m,D.q],styles:["[_nghost-%COMP%]{display:block}.center[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),a})()},4794:(I,y,o)=>{o.d(y,{e:()=>R});var t=o(5879),n=o(2024),s=o(313),f=o(8645),g=o(9773),c=o(7473),v=o(2840),_=o(855),m=o(1958),P=o(551),O=o(6109),d=o(67),D=o(2669),r=o(2574),T=o(5805),a=o(2257);function A(h,B){if(1&h&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&h){const l=t.oxw();t.xp6(1),t.hij("Revert this ",l.entityType," to Submitted?")}}function p(h,B){if(1&h){const l=t.EpF();t.TgZ(0,"span")(1,"cvc-org-selector-btn-group",8),t.NdJ("selectedOrgChange",function(z){t.CHM(l);const U=t.oxw(2);return t.KtG(U.mostRecentOrg=z)}),t.TgZ(2,"button",9),t.NdJ("click",function(){t.CHM(l);const z=t.oxw(2);return t.KtG(z.revert())}),t._uU(3," Revert "),t.qZA()()()}if(2&h){const l=t.oxw(2);t.xp6(1),t.Q6J("selectedOrg",l.mostRecentOrg)}}function C(h,B){if(1&h){const l=t.EpF();t.TgZ(0,"span")(1,"button",10),t.NdJ("click",function(){t.CHM(l);const z=t.oxw(2);return t.KtG(z.showConfirm=!1)}),t._uU(2," Cancel "),t.qZA()()}}function E(h,B){if(1&h&&(t.TgZ(0,"nz-spin",5)(1,"nz-space",6),t.YNc(2,p,4,1,"span",7),t.YNc(3,C,3,0,"span",7),t.qZA()()),2&h){const l=t.oxw();t.Q6J("nzSpinning",l.isSubmitting)}}let R=(()=>{class h{constructor(l,M,z){this.revertEvidenceGQL=l,this.revertAssertionGQL=M,this.networkErrorService=z,this.onReverted=new t.vpe,this.isSubmitting=!1,this.showConfirm=!1,this.destroy$=new f.x,this.revertAssertionMutator=new n.U(z),this.revertEvidenceMutator=new n.U(z)}revert(){let l;this.isSubmitting=!0,l="EvidenceItem"===this.entityType?this.revertEvidenceMutator.mutate(this.revertEvidenceGQL,{input:{evidenceItemId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:s.RTy.Submitted}}):this.revertAssertionMutator.mutate(this.revertAssertionGQL,{input:{assertionId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:s.RTy.Submitted}}),l.submitSuccess$.pipe((0,g.R)(this.destroy$)).subscribe(M=>{M&&(this.isSubmitting=!1,this.showConfirm=!1,this.onReverted.emit(!0))}),l.submitError$.pipe((0,g.R)(this.destroy$)).subscribe(M=>{M&&(this.isSubmitting=!1,this.showConfirm=!1,this.onReverted.emit(M))}),l.isSubmitting$.pipe((0,g.R)(this.destroy$)).subscribe(M=>{this.isSubmitting=M})}handleConfirmModalCancel(){this.showConfirm=!1}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityId)throw new Error("Must pass in an id to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityType)throw new Error("Must pass in an entityType to the CvcEntitySubscriptionButtonComponent");this.mostRecentOrg=this.viewer.mostRecentOrg}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return h.\u0275fac=function(l){return new(l||h)(t.Y36(s.MYm),t.Y36(s._jb),t.Y36(c.Y))},h.\u0275cmp=t.Xpm({type:h,selectors:[["cvc-revert-entity-button"]],inputs:{viewer:"viewer",entityType:"entityType",entityId:"entityId"},outputs:{onReverted:"onReverted"},decls:7,vars:5,consts:[["nz-button","","nz-tooltip","Revert to Submitted","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","undo"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["confirmModalTitle",""],["confirmModalContent",""],[3,"nzSpinning"],["nzDirection","horizontal"],[4,"nzSpaceItem"],[3,"selectedOrg","selectedOrgChange"],["cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-button","",3,"click"],["nz-button","","nzSize","small",3,"click"]],template:function(l,M){if(1&l&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return M.showConfirm=!0}),t._UZ(1,"i",1),t.qZA(),t.TgZ(2,"nz-modal",2),t.NdJ("nzVisibleChange",function(U){return M.showConfirm=U})("nzOnCancel",function(){return M.handleConfirmModalCancel()}),t.YNc(3,A,2,1,"ng-template",null,3,t.W1O),t.YNc(5,E,4,1,"ng-template",null,4,t.W1O),t.qZA()),2&l){const z=t.MAs(4),U=t.MAs(6);t.Q6J("nzLoading",M.isSubmitting),t.xp6(2),t.Q6J("nzVisible",M.showConfirm)("nzContent",U)("nzTitle",z)("nzFooter",null)}},dependencies:[v.ix,_.w,m.dQ,P.Ls,O.SY,d.du,D.W,r.NU,r.$1,T.m,a.q],styles:["[_nghost-%COMP%]{display:block}"]}),h})()},3786:(I,y,o)=>{o.d(y,{G:()=>O});var t=o(6814),n=o(2840),s=o(551),f=o(6109),g=o(67),c=o(2669),v=o(2574),_=o(6294),m=o(6223),P=o(5879);let O=(()=>{class d{}return d.\u0275fac=function(r){return new(r||d)},d.\u0275mod=P.oAB({type:d}),d.\u0275inj=P.cJS({imports:[t.ez,m.u5,m.UX,n.sL,s.PV,f.cg,g.Qp,c.j,v.zf,_.A]}),d})()},5959:(I,y,o)=>{o.d(y,{u:()=>Z});var t=o(2023),n=o(5879),s=o(6814),f=o(4190),g=o(7417),c=o(5695),v=o(551),_=o(5676),m=o(7398),P=o(2181),O=o(313),d=o(2962),D=o(8125),r=o(4138),T=o(9408),a=o(1887),A=o(8091),p=o(2616);function C(e,u){if(1&e&&(n._UZ(0,"i",7),n.ALo(1,"entityColor"),n._uU(2)),2&e){const i=n.oxw().ngIf;n.Q6J("nzTwotoneColor",n.lcZ(1,2,"VariantGroup")),n.xp6(2),n.hij(" ",i.name," ")}}function E(e,u){if(1&e&&n._UZ(0,"cvc-variant-tag",10),2&e){const i=u.$implicit;n.Q6J("enablePopover",!1)("variant",i.node)}}function R(e,u){if(1&e&&(n.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),n.YNc(2,E,1,2,"cvc-variant-tag",9),n.qZA()()),2&e){const i=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",i.variants.edges)}}function h(e,u){if(1&e&&n._UZ(0,"cvc-source-tag",13),2&e){const i=u.$implicit;n.Q6J("enablePopover",!1)("source",i)}}function B(e,u){if(1&e&&(n.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),n.YNc(2,h,1,2,"cvc-source-tag",12),n.qZA()()),2&e){const i=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",i.sources)}}function l(e,u){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,C,3,4,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,R,3,1,"nz-descriptions-item",5),n.YNc(7,B,3,1,"nz-descriptions-item",6),n.qZA()(),n.BQk()),2&e){const i=u.ngIf,x=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",x),n.xp6(3),n.hij(" ",i.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",i.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",i.sources.length>0)}}let M=(()=>{class e{constructor(i){this.gql=i}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,m.U)(({data:i})=>i?.variantGroup),(0,P.h)(_.ep))}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(O.Zo2))},e.\u0275cmp=n.Xpm({type:e,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(i,x){1&i&&(n.TgZ(0,"div",0),n.YNc(1,l,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,x.variantGroup$)))},dependencies:[s.sg,s.O5,d.bd,D.R7,D.uj,v.Ls,r.T,T.I,a.$,A.fM,p.a],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}"]}),e})();var z=o(3103);function U(e,u){}function S(e,u){if(1&e&&(n.ynx(0),n.TgZ(1,"a",4),n.YNc(2,U,0,0,"ng-template",5),n.qZA(),n.BQk()),2&e){const i=n.oxw(),x=n.MAs(2);n.xp6(1),n.Q6J("routerLink",i.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",x)}}function W(e,u){}function V(e,u){if(1&e&&n._UZ(0,"cvc-variant-group-popover",9),2&e){const i=n.oxw(3);n.Q6J("variantGroupId",i.variantgroup.id)}}function K(e,u){if(1&e&&n.YNc(0,V,1,1,"cvc-variant-group-popover",8),2&e){const i=n.oxw(2);n.Q6J("ngIf",i.enablePopover)}}function b(e,u){if(1&e&&(n.TgZ(0,"nz-tag",6),n.YNc(1,W,0,0,"ng-template",5),n.qZA(),n.YNc(2,K,1,1,"ng-template",null,7,n.W1O)),2&e){const i=n.MAs(3),x=n.oxw(),L=n.MAs(6);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",i)("nzPopoverTrigger",x.enablePopover?"hover":null),n.xp6(1),n.Q6J("ngTemplateOutlet",L)}}function Q(e,u){}function G(e,u){if(1&e&&n.YNc(0,Q,0,0,"ng-template",5),2&e){n.oxw();const i=n.MAs(2);n.Q6J("ngTemplateOutlet",i)}}function J(e,u){if(1&e&&(n.TgZ(0,"cvc-icon-badges",10),n._UZ(1,"i",11),n.ALo(2,"entityColor"),n.qZA(),n._uU(3)),2&e){const i=n.oxw();n.Q6J("flagged",i.variantgroup.flagged)("entityColor",i.iconColor),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,4,"VariantGroup")),n.xp6(2),n.hij(" ",i.variantgroup.name,"\n")}}let Z=(()=>{class e{set variantgroup(i){if(!i)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=i}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,t.f)("VariantGroup")}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(i,x){if(1&i&&(n.YNc(0,S,3,2,"ng-container",0),n.YNc(1,b,4,4,"ng-template",null,1,n.W1O),n.YNc(3,G,1,1,"ng-template",null,2,n.W1O),n.YNc(5,J,4,6,"ng-template",null,3,n.W1O)),2&i){const L=n.MAs(4);n.Q6J("ngIf",x.linked)("ngIfElse",L)}},dependencies:[s.O5,s.tP,f.rH,g.lU,c.j,v.Ls,M,z.b,p.a],encapsulation:2,changeDetection:0}),e})()},3641:(I,y,o)=>{o.d(y,{G:()=>T});var t=o(6814),n=o(4190),s=o(7417),f=o(5695),g=o(551),c=o(366),v=o(8641),_=o(7528),m=o(2524),P=o(2962),O=o(8125),d=o(5879);let D=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=d.oAB({type:a}),a.\u0275inj=d.cJS({imports:[t.ez,P.vh,O.q6,g.PV,v.s,_.Q,c.$,m.s]}),a})();var r=o(3146);let T=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275mod=d.oAB({type:a}),a.\u0275inj=d.cJS({imports:[t.ez,n.Bz,s.$6,f.X,g.PV,D,m.s,r.C]}),a})()}}]); \ No newline at end of file diff --git a/server/public/5802.ededce0cdae9ebce.js b/server/public/5802.cf03cc24c77b8c17.js similarity index 99% rename from server/public/5802.ededce0cdae9ebce.js rename to server/public/5802.cf03cc24c77b8c17.js index 75a88c988..20d77a1a3 100644 --- a/server/public/5802.ededce0cdae9ebce.js +++ b/server/public/5802.cf03cc24c77b8c17.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5802],{1218:(b,T,n)=>{n.d(T,{i:()=>z});var s=n(6814),h=n(4190),_=n(5695),o=n(7417),t=n(551),d=n(1855),g=n(2524),C=n(3640),v=n(3146),f=n(5879);let z=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[s.ez,h.Bz,C.mS,_.X,o.$6,t.PV,d.f,g.s,v.C]}),m})()},1106:(b,T,n)=>{n.d(T,{L:()=>l});var s=n(6814),h=n(4190),_=n(5695),o=n(551),t=n(95),d=n(6067),g=n(8125),C=n(2962),v=n(1022),f=n(5879);let z=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[s.ez,C.vh,t.Jb,g.q6,d.X,v.H]}),c})();var m=n(7417);let l=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[s.ez,h.Bz,_.X,o.PV,m.$6,z]}),c})()},7950:(b,T,n)=>{n.d(T,{x:()=>m});var s=n(6814),h=n(366),_=n(5695),o=n(7417),t=n(3396),d=n(1106),g=n(5956),C=n(7528),v=n(6061),f=n(3717),z=n(5879);let m=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[s.ez,_.X,o.$6,h.$,v.N,t.Q,d.L,g.U,C.Q,f.M]}),l})()},3717:(b,T,n)=>{n.d(T,{M:()=>m});var s=n(6814),h=n(4190),_=n(5695),o=n(2962),t=n(6067),d=n(8125),g=n(551),C=n(2524),v=n(5879);let f=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=v.oAB({type:l}),l.\u0275inj=v.cJS({imports:[s.ez,g.PV,o.vh,d.q6,C.s,t.X]}),l})();var z=n(7417);let m=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=v.oAB({type:l}),l.\u0275inj=v.cJS({imports:[s.ez,h.Bz,g.PV,_.X,z.$6,f]}),l})()},4010:(b,T,n)=>{n.d(T,{F:()=>_});var h=n(5879);let _=(()=>{class o{transform(d,g="display-string"){return void 0===d?"":"display-string"===g?function s(o){switch(o){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return o}}(d):`civic-${d.replace(/_/g,"").toLowerCase()}`}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275pipe=h.Yjl({name:"therapyInteractionEnumDisplay",type:o,pure:!0}),o})()},6738:(b,T,n)=>{n.r(T),n.d(T,{ClinicalTrialsModule:()=>Kt});var s=n(6814),h=n(4190),_=n(7921),o=n(4223),t=n(5879),d=n(313),g=n(6254),C=n(551),v=n(3317),f=n(3145),z=n(8091),m=n(2616);function l(e,i){if(1&e&&(t.TgZ(0,"cvc-link-tag",5),t._uU(1),t.qZA()),2&e){const a=t.oxw().ngIf;t.Q6J("href",a.url),t.xp6(1),t.hij(" ",a.nctId," ")}}function c(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-extra"),t.YNc(8,l,2,2,"cvc-link-tag",4),t.qZA(),t.TgZ(9,"nz-page-header-content"),t._UZ(10,"router-outlet"),t.qZA()(),t.BQk()),2&e){const a=i.ngIf;t.xp6(1),t.Q6J("displayName",a.nctId),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,4,"ClinicalTrial")),t.xp6(2),t.hij(" ",a.nctId," "),t.xp6(2),t.Q6J("ngIf",a.url)}}let M=(()=>{class e{constructor(a,r){this.route=a,this.gql=r,this.routeSub=this.route.params.subscribe(p=>{this.clinicalTrialId=+p.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let u=this.queryRef.valueChanges;this.loading$=u.pipe((0,o.j)("loading"),(0,_.O)(!0)),this.clinicalTrial$=u.pipe((0,o.j)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(h.gz),t.Y36(d.cMj))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["tooltip","View on clinicaltrials.gov",3,"href",4,"ngIf"],["tooltip","View on clinicaltrials.gov",3,"href"]],template:function(a,r){1&a&&(t.YNc(0,c,11,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,r.clinicalTrial$))},dependencies:[s.O5,h.lC,g.$O,g.u9,g.u5,g.Jp,C.Ls,v.l,f.I,z.fM,m.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{flex-wrap:nowrap;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 O,y=n(95),E=n(2840),Q=n(855),A=n(2392),Z=n(2574),W=n(655),H=n(4632),I=n(1791),R=n(5619),D=n(8645),S=n(5676),U=n(3997),Y=n(812),V=n(836),P=n(2181),J=n(7398),X=n(3620),G=n(2460),F=n(2962),x=n(3740),K=n(5695),j=n(6109),q=n(6753),k=n(4764),tt=n(8516),nt=n(3369),et=n(3489),at=n(9857),it=n(4997);function ot(e,i){}function lt(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,ot,0,0,"ng-template",6),t.qZA(),t.BQk()),2&e){t.oxw();const a=t.MAs(6),r=t.MAs(8),p=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function rt(e,i){}const ct=function(e){return{height:e}};function st(e,i){if(1&e&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,rt,0,0,"ng-template",6),t.qZA()()),2&e){const a=t.oxw(),r=t.MAs(6),p=t.MAs(8),u=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,ct,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",r)("nzExtra",p),t.xp6(1),t.Q6J("ngTemplateOutlet",u)}}function gt(e,i){if(1&e&&(t.TgZ(0,"tr",24)(1,"td",20),t._UZ(2,"cvc-clinical-trial-tag",25),t.qZA(),t.TgZ(3,"td",26),t._uU(4),t.qZA(),t.TgZ(5,"td",27),t._uU(6),t.qZA(),t.TgZ(7,"td",27),t._uU(8),t.qZA()()),2&e){const a=i.$implicit,r=t.oxw(2);t.xp6(2),t.Q6J("clinicalTrial",a),t.xp6(1),t.Q6J("nzTooltipTitle",r.isScrolling?"":a.name),t.xp6(1),t.hij(" ",a.name," "),t.xp6(2),t.hij(" ",a.sourceCount," "),t.xp6(2),t.hij(" ",a.evidenceCount," ")}}const pt=function(){return[]},dt=function(){return{x:"680px",y:"800px"}},N=function(){return["descend","ascend",null]};function ht(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.scrollEvent$.next(p))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.sortChange$.next(p))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," NCT ID "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," Name "),t.qZA(),t.TgZ(12,"th",15),t._UZ(13,"i",16),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",17),t._UZ(16,"i",18),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.nctIdFilter=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.nameFilter=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",22)(24,"th",22),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,gt,9,5,"ng-template",23),t.qZA()()}if(2&e){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,23,a.row$)||t.DdM(31,pt))("nzLoading",!t.lcZ(3,25,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(32,dt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.NctId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",a.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,N)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(34,N)),t.xp6(5),t.Q6J("inputModel",a.nctIdFilter),t.xp6(2),t.Q6J("inputModel",a.nameFilter)}}function mt(e,i){}function ut(e,i){if(1&e&&(t.ynx(0),t.YNc(1,mt,0,0,"ng-template",6),t.BQk()),2&e){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function Ct(e,i){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function ft(e,i){if(1&e&&(t.YNc(0,ut,2,1,"ng-container",28),t.YNc(1,Ct,2,1,"ng-container",28),t.TgZ(2,"span",29),t._UZ(3,"cvc-table-counts",30),t.qZA()),2&e){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function Tt(e,i){1&e&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function vt(e,i){if(1&e&&(t.YNc(0,Tt,4,0,"nz-tag",31),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",32),t.ALo(3,"ngrxPush")),2&e){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let B=((O=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,a){this.gql=i,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=d.E8d,this.noMoreRows$=new R.X(!1),this.scrollEvent$=new R.X("stop"),this.sortChange$=new D.x,this.filterChange$=new D.x,this.scrollIndex$=new D.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,o.j)("loading"),(0,U.x)(),(0,Y.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,o.j)("loading"),(0,U.x)(),(0,V.T)(2)),this.connection$=this.result$.pipe((0,o.j)("data","clinicalTrials"),(0,P.h)(S.ep)),this.row$=this.connection$.pipe((0,o.j)("edges"),(0,P.h)(S.ep),(0,J.U)(i=>i.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,o.j)("pageInfo"),(0,P.h)(S.ep)),this.sortChange$.pipe((0,I.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,H._)(i)})}),this.filterChange$.pipe((0,X.b)(500),(0,I.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,J.U)(i=>"stop"!==i),(0,U.x)(),(0,I.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,P.h)(i=>"bottom"===i),(0,G.M)(this.pageInfo$),(0,J.U)(([i,a])=>a),(0,I.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,a){return a?.id}}).\u0275fac=function(i){return new(i||O)(t.Y36(d.P_b),t.Y36(t.sBO))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-source"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"clinicalTrial"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,a){if(1&i&&(t.YNc(0,lt,3,3,"ng-container",0),t.YNc(1,st,3,6,"ng-template",null,1,t.W1O),t.YNc(3,ht,27,35,"ng-template",null,2,t.W1O),t.YNc(5,ft,4,3,"ng-template",null,3,t.W1O),t.YNc(7,vt,4,6,"ng-template",null,4,t.W1O)),2&i){const r=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",r)}},dependencies:[s.O5,s.tP,s.PC,Q.w,F.bd,C.Ls,x.N8,x.qD,x.Uo,x._C,x.Om,x.p0,x.$Z,x.zu,x.qn,x.UX,K.j,j.SY,q.D,k.q,tt.p,nt.G,et.H,at.B,it.y,z.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),O);function zt(e,i){1&e&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Clinical Trial Docs "),t.qZA())}B=(0,W.gn)([(0,I.c)()],B);let _t=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["clinical-trials-home"]],decls:19,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["nzFlex","0 1 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/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(a,r){1&a&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Clinical Trials"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,zt,3,0,"a",8),t.qZA()()(),t.TgZ(15,"div",9)(16,"div",10)(17,"div",11),t._UZ(18,"cvc-clinical-trials-table",12),t.qZA()()()()()),2&a&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"ClinicalTrial")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("nzSpan",24))},dependencies:[y.t3,y.SK,g.$O,g.u5,C.Ls,E.ix,Q.w,A.ZU,Z.NU,Z.$1,B,f.I,m.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{flex-wrap:nowrap;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 L=n(8125),Mt=n(6822),xt=n(6473);const yt=function(){return[8,16]};function Pt(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4),t._uU(5),t.qZA()()(),t.TgZ(6,"nz-col",2),t._UZ(7,"cvc-sources-table",5),t.qZA(),t.TgZ(8,"nz-col",2),t._UZ(9,"cvc-evidence-table",6),t.qZA()(),t.BQk()),2&e){const a=i.ngIf,r=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(11,yt)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzBordered",!0),t.xp6(2),t.hij(" ",a.description," "),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","",a.nctId," Sources"),t.Q6J("clinicalTrialId",r.clinicalTrialId)("cvcHeight",400),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","",a.nctId," Evidence"),t.Q6J("clinicalTrialId",r.clinicalTrialId)}}const Ot=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(a,r){1&a&&t._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:_t,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:M,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(a,r){this.route=a,this.gql=r,this.routeSub=this.route.params.subscribe(p=>{this.clinicalTrialId=+p.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let u=this.queryRef.valueChanges;this.loading$=u.pipe((0,o.j)("loading"),(0,P.h)(S.ep)),this.clinicalTrial$=u.pipe((0,o.j)("data","clinicalTrial"),(0,P.h)(S.ep))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(h.gz),t.Y36(d.z8D))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small",3,"nzBordered"],["nzTitle","Description"],[3,"clinicalTrialId","cvcTitle","cvcHeight"],[3,"clinicalTrialId","cvcTitle"]],template:function(a,r){1&a&&(t.YNc(0,Pt,10,12,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,r.clinicalTrial$))},dependencies:[s.O5,L.R7,L.uj,y.t3,y.SK,Mt.a,xt.d,z.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}"],changeDetection:0}),e})(),data:{breadcrumb:"Summary"}}]}]}];let bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[h.Bz.forChild(Ot),h.Bz]}),e})();var It=n(7856),St=n(9154),Et=n(2989),$=n(2524),At=n(9175),Zt=n(4742),Dt=n(9312),Ut=n(4605);let Jt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,E.sL,F.vh,C.PV,x.HQ,K.X,j.cg,A.ZJ,$.s,At.n,Zt.c,It.k,Ut.N,St.y,Et.T,Dt.w]}),e})();var w=n(2419);let Bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,y.Jb,g.KJ,C.PV,E.sL,A.ZJ,Z.zf,Jt,w.D,$.s]}),e})();var Lt=n(6067);let $t=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,h.Bz,g.KJ,C.PV,Lt.X,w.D,$.s]}),e})();var Qt=n(1403),Rt=n(6078);let Ft=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,L.q6,y.Jb,Qt.Q,Rt.h]}),e})(),Kt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,bt,Bt,$t,Ft]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5802],{1218:(b,T,n)=>{n.d(T,{i:()=>z});var s=n(6814),h=n(4190),_=n(5695),o=n(7417),t=n(551),d=n(1855),g=n(2524),C=n(3640),v=n(3146),f=n(5879);let z=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[s.ez,h.Bz,C.mS,_.X,o.$6,t.PV,d.f,g.s,v.C]}),m})()},1106:(b,T,n)=>{n.d(T,{L:()=>l});var s=n(6814),h=n(4190),_=n(5695),o=n(551),t=n(95),d=n(6067),g=n(8125),C=n(2962),v=n(4293),f=n(5879);let z=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[s.ez,C.vh,t.Jb,g.q6,d.X,v.H]}),c})();var m=n(7417);let l=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[s.ez,h.Bz,_.X,o.PV,m.$6,z]}),c})()},7950:(b,T,n)=>{n.d(T,{x:()=>m});var s=n(6814),h=n(366),_=n(5695),o=n(7417),t=n(3396),d=n(1106),g=n(5956),C=n(7528),v=n(6061),f=n(3717),z=n(5879);let m=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[s.ez,_.X,o.$6,h.$,v.N,t.Q,d.L,g.U,C.Q,f.M]}),l})()},3717:(b,T,n)=>{n.d(T,{M:()=>m});var s=n(6814),h=n(4190),_=n(5695),o=n(2962),t=n(6067),d=n(8125),g=n(551),C=n(2524),v=n(5879);let f=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=v.oAB({type:l}),l.\u0275inj=v.cJS({imports:[s.ez,g.PV,o.vh,d.q6,C.s,t.X]}),l})();var z=n(7417);let m=(()=>{class l{}return l.\u0275fac=function(M){return new(M||l)},l.\u0275mod=v.oAB({type:l}),l.\u0275inj=v.cJS({imports:[s.ez,h.Bz,g.PV,_.X,z.$6,f]}),l})()},4010:(b,T,n)=>{n.d(T,{F:()=>_});var h=n(5879);let _=(()=>{class o{transform(d,g="display-string"){return void 0===d?"":"display-string"===g?function s(o){switch(o){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return o}}(d):`civic-${d.replace(/_/g,"").toLowerCase()}`}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275pipe=h.Yjl({name:"therapyInteractionEnumDisplay",type:o,pure:!0}),o})()},6738:(b,T,n)=>{n.r(T),n.d(T,{ClinicalTrialsModule:()=>Kt});var s=n(6814),h=n(4190),_=n(7921),o=n(4223),t=n(5879),d=n(313),g=n(6254),C=n(551),v=n(3317),f=n(3145),z=n(8091),m=n(2616);function l(e,i){if(1&e&&(t.TgZ(0,"cvc-link-tag",5),t._uU(1),t.qZA()),2&e){const a=t.oxw().ngIf;t.Q6J("href",a.url),t.xp6(1),t.hij(" ",a.nctId," ")}}function c(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title"),t._UZ(4,"i",3),t.ALo(5,"entityColor"),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-extra"),t.YNc(8,l,2,2,"cvc-link-tag",4),t.qZA(),t.TgZ(9,"nz-page-header-content"),t._UZ(10,"router-outlet"),t.qZA()(),t.BQk()),2&e){const a=i.ngIf;t.xp6(1),t.Q6J("displayName",a.nctId),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(5,4,"ClinicalTrial")),t.xp6(2),t.hij(" ",a.nctId," "),t.xp6(2),t.Q6J("ngIf",a.url)}}let M=(()=>{class e{constructor(a,r){this.route=a,this.gql=r,this.routeSub=this.route.params.subscribe(p=>{this.clinicalTrialId=+p.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let u=this.queryRef.valueChanges;this.loading$=u.pipe((0,o.j)("loading"),(0,_.O)(!0)),this.clinicalTrial$=u.pipe((0,o.j)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(h.gz),t.Y36(d.cMj))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["tooltip","View on clinicaltrials.gov",3,"href",4,"ngIf"],["tooltip","View on clinicaltrials.gov",3,"href"]],template:function(a,r){1&a&&(t.YNc(0,c,11,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,r.clinicalTrial$))},dependencies:[s.O5,h.lC,g.$O,g.u9,g.u5,g.Jp,C.Ls,v.l,f.I,z.fM,m.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{flex-wrap:nowrap;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 O,y=n(95),E=n(2840),Q=n(855),A=n(2392),Z=n(2574),W=n(655),H=n(4632),I=n(1791),R=n(5619),D=n(8645),S=n(5676),U=n(3997),Y=n(812),V=n(836),P=n(2181),J=n(7398),X=n(3620),G=n(2460),F=n(2962),x=n(3740),K=n(5695),j=n(6109),q=n(6753),k=n(4764),tt=n(8516),nt=n(3369),et=n(3489),at=n(9857),it=n(4997);function ot(e,i){}function lt(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,ot,0,0,"ng-template",6),t.qZA(),t.BQk()),2&e){t.oxw();const a=t.MAs(6),r=t.MAs(8),p=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",a)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function rt(e,i){}const ct=function(e){return{height:e}};function st(e,i){if(1&e&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,rt,0,0,"ng-template",6),t.qZA()()),2&e){const a=t.oxw(),r=t.MAs(6),p=t.MAs(8),u=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,ct,a.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",r)("nzExtra",p),t.xp6(1),t.Q6J("ngTemplateOutlet",u)}}function gt(e,i){if(1&e&&(t.TgZ(0,"tr",24)(1,"td",20),t._UZ(2,"cvc-clinical-trial-tag",25),t.qZA(),t.TgZ(3,"td",26),t._uU(4),t.qZA(),t.TgZ(5,"td",27),t._uU(6),t.qZA(),t.TgZ(7,"td",27),t._uU(8),t.qZA()()),2&e){const a=i.$implicit,r=t.oxw(2);t.xp6(2),t.Q6J("clinicalTrial",a),t.xp6(1),t.Q6J("nzTooltipTitle",r.isScrolling?"":a.name),t.xp6(1),t.hij(" ",a.name," "),t.xp6(2),t.hij(" ",a.sourceCount," "),t.xp6(2),t.hij(" ",a.evidenceCount," ")}}const pt=function(){return[]},dt=function(){return{x:"680px",y:"800px"}},N=function(){return["descend","ascend",null]};function ht(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.scrollEvent$.next(p))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.sortChange$.next(p))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," NCT ID "),t.qZA(),t.TgZ(10,"th",14),t._uU(11," Name "),t.qZA(),t.TgZ(12,"th",15),t._UZ(13,"i",16),t._uU(14," Count "),t.qZA(),t.TgZ(15,"th",17),t._UZ(16,"i",18),t._uU(17," Count "),t.qZA()(),t.TgZ(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.nctIdFilter=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t.TgZ(21,"th")(22,"cvc-clearable-input-filter",21),t.NdJ("inputModelChange",function(p){t.CHM(a);const u=t.oxw();return t.KtG(u.nameFilter=p)})("inputModelChange",function(){t.CHM(a);const p=t.oxw();return t.KtG(p.filterChange$.next())}),t.qZA()(),t._UZ(23,"th",22)(24,"th",22),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,gt,9,5,"ng-template",23),t.qZA()()}if(2&e){const a=t.oxw();t.Q6J("nzData",t.lcZ(2,23,a.row$)||t.DdM(31,pt))("nzLoading",!t.lcZ(3,25,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,27,a.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,29,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.DdM(32,dt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",a.sortColumns.NctId)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",a.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",t.DdM(33,N)),t.xp6(3),t.Q6J("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.DdM(34,N)),t.xp6(5),t.Q6J("inputModel",a.nctIdFilter),t.xp6(2),t.Q6J("inputModel",a.nameFilter)}}function mt(e,i){}function ut(e,i){if(1&e&&(t.ynx(0),t.YNc(1,mt,0,0,"ng-template",6),t.BQk()),2&e){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function Ct(e,i){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function ft(e,i){if(1&e&&(t.YNc(0,ut,2,1,"ng-container",28),t.YNc(1,Ct,2,1,"ng-container",28),t.TgZ(2,"span",29),t._UZ(3,"cvc-table-counts",30),t.qZA()),2&e){const a=t.oxw();t.Q6J("ngIf",a.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",a.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",a.connection$)}}function Tt(e,i){1&e&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function vt(e,i){if(1&e&&(t.YNc(0,Tt,4,0,"nz-tag",31),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",32),t.ALo(3,"ngrxPush")),2&e){const a=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,a.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,a.noMoreRows$))}}let B=((O=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,a){this.gql=i,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=d.E8d,this.noMoreRows$=new R.X(!1),this.scrollEvent$=new R.X("stop"),this.sortChange$=new D.x,this.filterChange$=new D.x,this.scrollIndex$=new D.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,o.j)("loading"),(0,U.x)(),(0,Y.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,o.j)("loading"),(0,U.x)(),(0,V.T)(2)),this.connection$=this.result$.pipe((0,o.j)("data","clinicalTrials"),(0,P.h)(S.ep)),this.row$=this.connection$.pipe((0,o.j)("edges"),(0,P.h)(S.ep),(0,J.U)(i=>i.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,o.j)("pageInfo"),(0,P.h)(S.ep)),this.sortChange$.pipe((0,I.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,H._)(i)})}),this.filterChange$.pipe((0,X.b)(500),(0,I.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,J.U)(i=>"stop"!==i),(0,U.x)(),(0,I.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,P.h)(i=>"bottom"===i),(0,G.M)(this.pageInfo$),(0,J.U)(([i,a])=>a),(0,I.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,a){return a?.id}}).\u0275fac=function(i){return new(i||O)(t.Y36(d.P_b),t.Y36(t.sBO))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-source"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"clinicalTrial"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,a){if(1&i&&(t.YNc(0,lt,3,3,"ng-container",0),t.YNc(1,st,3,6,"ng-template",null,1,t.W1O),t.YNc(3,ht,27,35,"ng-template",null,2,t.W1O),t.YNc(5,ft,4,3,"ng-template",null,3,t.W1O),t.YNc(7,vt,4,6,"ng-template",null,4,t.W1O)),2&i){const r=t.MAs(2);t.Q6J("ngIf",!a.cvcHeight)("ngIfElse",r)}},dependencies:[s.O5,s.tP,s.PC,Q.w,F.bd,C.Ls,x.N8,x.qD,x.Uo,x._C,x.Om,x.p0,x.$Z,x.zu,x.qn,x.UX,K.j,j.SY,q.D,k.q,tt.p,nt.G,et.H,at.B,it.y,z.fM],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),O);function zt(e,i){1&e&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Clinical Trial Docs "),t.qZA())}B=(0,W.gn)([(0,I.c)()],B);let _t=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["clinical-trials-home"]],decls:19,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["nzFlex","0 1 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/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(a,r){1&a&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Clinical Trials"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,zt,3,0,"a",8),t.qZA()()(),t.TgZ(15,"div",9)(16,"div",10)(17,"div",11),t._UZ(18,"cvc-clinical-trials-table",12),t.qZA()()()()()),2&a&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,3,"ClinicalTrial")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("nzSpan",24))},dependencies:[y.t3,y.SK,g.$O,g.u5,C.Ls,E.ix,Q.w,A.ZU,Z.NU,Z.$1,B,f.I,m.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{flex-wrap:nowrap;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 L=n(8125),Mt=n(6822),xt=n(6473);const yt=function(){return[8,16]};function Pt(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4),t._uU(5),t.qZA()()(),t.TgZ(6,"nz-col",2),t._UZ(7,"cvc-sources-table",5),t.qZA(),t.TgZ(8,"nz-col",2),t._UZ(9,"cvc-evidence-table",6),t.qZA()(),t.BQk()),2&e){const a=i.ngIf,r=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(11,yt)),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("nzBordered",!0),t.xp6(2),t.hij(" ",a.description," "),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","",a.nctId," Sources"),t.Q6J("clinicalTrialId",r.clinicalTrialId)("cvcHeight",400),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.MGl("cvcTitle","",a.nctId," Evidence"),t.Q6J("clinicalTrialId",r.clinicalTrialId)}}const Ot=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(a,r){1&a&&t._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:_t,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:M,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(a,r){this.route=a,this.gql=r,this.routeSub=this.route.params.subscribe(p=>{this.clinicalTrialId=+p.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let u=this.queryRef.valueChanges;this.loading$=u.pipe((0,o.j)("loading"),(0,P.h)(S.ep)),this.clinicalTrial$=u.pipe((0,o.j)("data","clinicalTrial"),(0,P.h)(S.ep))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(h.gz),t.Y36(d.z8D))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-clinical-trials-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small",3,"nzBordered"],["nzTitle","Description"],[3,"clinicalTrialId","cvcTitle","cvcHeight"],[3,"clinicalTrialId","cvcTitle"]],template:function(a,r){1&a&&(t.YNc(0,Pt,10,12,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,r.clinicalTrial$))},dependencies:[s.O5,L.R7,L.uj,y.t3,y.SK,Mt.a,xt.d,z.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}"],changeDetection:0}),e})(),data:{breadcrumb:"Summary"}}]}]}];let bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[h.Bz.forChild(Ot),h.Bz]}),e})();var It=n(7856),St=n(9154),Et=n(2989),$=n(2524),At=n(9175),Zt=n(4742),Dt=n(9312),Ut=n(4605);let Jt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,E.sL,F.vh,C.PV,x.HQ,K.X,j.cg,A.ZJ,$.s,At.n,Zt.c,It.k,Ut.N,St.y,Et.T,Dt.w]}),e})();var w=n(2419);let Bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,y.Jb,g.KJ,C.PV,E.sL,A.ZJ,Z.zf,Jt,w.D,$.s]}),e})();var Lt=n(6067);let $t=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,h.Bz,g.KJ,C.PV,Lt.X,w.D,$.s]}),e})();var Qt=n(1403),Rt=n(6078);let Ft=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,L.q6,y.Jb,Qt.Q,Rt.h]}),e})(),Kt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,bt,Bt,$t,Ft]}),e})()}}]); \ No newline at end of file diff --git a/server/public/5978.9b7310e248ee76a4.js b/server/public/5978.d006a4e4d655c3e0.js similarity index 95% rename from server/public/5978.9b7310e248ee76a4.js rename to server/public/5978.d006a4e4d655c3e0.js index 6a68e4616..6fb882b42 100644 --- a/server/public/5978.9b7310e248ee76a4.js +++ b/server/public/5978.d006a4e4d655c3e0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5978],{5978:(D,c,a)=>{a.r(c),a.d(c,{VariantsModule:()=>Q});var r=a(6814),i=a(4190),t=a(5879);let f=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-variants"]],decls:1,vars:0,template:function(e,R){1&e&&t._UZ(0,"router-outlet")},dependencies:[i.lC],encapsulation:2}),n})();var g=a(2419),s=a(6254),d=a(95),p=a(551),v=a(6506),u=a(5956),h=a(2392),m=a(2840),l=a(2574),x=a(9333),z=a(7417),P=a(2731),V=a(2524);let y=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,i.Bz,s.KJ,d.Jb,p.PV,h.ZJ,m.sL,l.zf,z.$6,V.s,g.D,u.U,v.H,x.h,g.D,P.e]}),n})();var M=a(951),C=a(8091),T=a(855),Z=a(1958),O=a(3145),b=a(806),A=a(7501),S=a(2616);function H(n,o){1&n&&(t.TgZ(0,"div",20),t._UZ(1,"cvc-variant-submit-form"),t.qZA())}function U(n,o){if(1&n&&(t.TgZ(0,"button",17),t._UZ(1,"i",18),t._uU(2," Submit New Variant "),t.YNc(3,H,2,0,"ng-template",null,19,t.W1O),t.qZA()),2&n){const e=t.MAs(4);t.Q6J("nzPopoverContent",e)}}function J(n,o){if(1&n&&(t.ynx(0),t.YNc(1,U,5,1,"button",16),t.BQk()),2&n){const e=o.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.isEditor)}}function B(n,o){if(1&n&&t.YNc(0,J,2,1,"ng-container",15),2&n){const e=t.oxw();t.Q6J("ngrxLet",e.viewer$)}}function N(n,o){1&n&&(t.TgZ(0,"a",21),t._UZ(1,"i",22),t._uU(2," View Variant Model Docs "),t.qZA())}function F(n,o){1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",22),t._uU(2," View Variant Curation Docs "),t.qZA())}const I=[{path:"",component:f,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(e){this.viewerService=e,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["variants-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["variantActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nzFlex","0 1 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"],[4,"ngrxLet"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent",4,"ngIf"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent"],["nz-icon","","nzType","plus-circle"],["addVariantForm",""],[1,"addVariant"],["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(e,R){if(1&e&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,B,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Variants"),t.qZA(),t.TgZ(12,"p",7),t._uU(13,' 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. '),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,N,3,0,"a",10),t.YNc(17,F,3,0,"a",11),t.qZA()()(),t.TgZ(18,"nz-row")(19,"nz-col",12)(20,"div",13),t._UZ(21,"cvc-variants-table",14),t.qZA()()()()()),2&e){const Y=t.MAs(2);t.Q6J("actionsTpl",Y),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"Variant")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[r.O5,i.rH,C.eJ,s.$O,s.u5,d.t3,d.SK,p.Ls,h.ZU,m.ix,T.w,Z.dQ,l.NU,l.$1,z.lU,O.I,b.S,A.G,S.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{flex-wrap:nowrap;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}.addVariant[_ngcontent-%COMP%]{width:500px}"]}),n})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([a.e(4872),a.e(5556),a.e(2602),a.e(7889),a.e(7856),a.e(8245),a.e(4503),a.e(5990),a.e(8421),a.e(3407),a.e(6068)]).then(a.bind(a,3006)).then(n=>n.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([a.e(8592),a.e(3505)]).then(a.bind(a,9846)).then(n=>n.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let L=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[i.Bz.forChild(I),y,i.Bz]}),n})(),Q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,L]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5978],{5978:(D,c,a)=>{a.r(c),a.d(c,{VariantsModule:()=>Q});var r=a(6814),i=a(4190),t=a(5879);let f=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-variants"]],decls:1,vars:0,template:function(e,R){1&e&&t._UZ(0,"router-outlet")},dependencies:[i.lC],encapsulation:2}),n})();var g=a(2419),s=a(6254),d=a(95),p=a(551),v=a(6506),u=a(5956),h=a(2392),m=a(2840),l=a(2574),x=a(9333),z=a(7417),P=a(4057),V=a(2524);let y=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,i.Bz,s.KJ,d.Jb,p.PV,h.ZJ,m.sL,l.zf,z.$6,V.s,g.D,u.U,v.H,x.h,g.D,P.e]}),n})();var M=a(951),C=a(8091),T=a(855),Z=a(1958),O=a(3145),b=a(806),A=a(2299),S=a(2616);function H(n,o){1&n&&(t.TgZ(0,"div",20),t._UZ(1,"cvc-variant-submit-form"),t.qZA())}function U(n,o){if(1&n&&(t.TgZ(0,"button",17),t._UZ(1,"i",18),t._uU(2," Submit New Variant "),t.YNc(3,H,2,0,"ng-template",null,19,t.W1O),t.qZA()),2&n){const e=t.MAs(4);t.Q6J("nzPopoverContent",e)}}function J(n,o){if(1&n&&(t.ynx(0),t.YNc(1,U,5,1,"button",16),t.BQk()),2&n){const e=o.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.isEditor)}}function B(n,o){if(1&n&&t.YNc(0,J,2,1,"ng-container",15),2&n){const e=t.oxw();t.Q6J("ngrxLet",e.viewer$)}}function N(n,o){1&n&&(t.TgZ(0,"a",21),t._UZ(1,"i",22),t._uU(2," View Variant Model Docs "),t.qZA())}function F(n,o){1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",22),t._uU(2," View Variant Curation Docs "),t.qZA())}const I=[{path:"",component:f,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(e){this.viewerService=e,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["variants-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["variantActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nzFlex","0 1 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"],[4,"ngrxLet"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent",4,"ngIf"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent"],["nz-icon","","nzType","plus-circle"],["addVariantForm",""],[1,"addVariant"],["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(e,R){if(1&e&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,B,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t.qZA(),t.TgZ(9,"nz-col",6)(10,"h2"),t._uU(11,"Variants"),t.qZA(),t.TgZ(12,"p",7),t._uU(13,' 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. '),t.qZA()(),t.TgZ(14,"nz-col",8)(15,"nz-space",9),t.YNc(16,N,3,0,"a",10),t.YNc(17,F,3,0,"a",11),t.qZA()()(),t.TgZ(18,"nz-row")(19,"nz-col",12)(20,"div",13),t._UZ(21,"cvc-variants-table",14),t.qZA()()()()()),2&e){const Y=t.MAs(2);t.Q6J("actionsTpl",Y),t.xp6(7),t.Q6J("nzTwotoneColor",t.lcZ(8,4,"Variant")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},dependencies:[r.O5,i.rH,C.eJ,s.$O,s.u5,d.t3,d.SK,p.Ls,h.ZU,m.ix,T.w,Z.dQ,l.NU,l.$1,z.lU,O.I,b.S,A.G,S.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{flex-wrap:nowrap;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}.addVariant[_ngcontent-%COMP%]{width:500px}"]}),n})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([a.e(4872),a.e(5556),a.e(2602),a.e(9949),a.e(7856),a.e(3575),a.e(4280),a.e(4840),a.e(8421),a.e(3407),a.e(2807)]).then(a.bind(a,7707)).then(n=>n.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([a.e(8592),a.e(6917)]).then(a.bind(a,9846)).then(n=>n.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let L=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[i.Bz.forChild(I),y,i.Bz]}),n})(),Q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.ez,L]}),n})()}}]); \ No newline at end of file diff --git a/server/public/5990.b2b8123b2d6c43ee.js b/server/public/5990.b2b8123b2d6c43ee.js deleted file mode 100644 index 67164fa90..000000000 --- a/server/public/5990.b2b8123b2d6c43ee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5990],{1218:(k,v,e)=>{e.d(v,{i:()=>r});var a=e(6814),d=e(4190),t=e(5695),z=e(7417),E=e(551),_=e(1855),g=e(2524),C=e(3640),S=e(3146),p=e(5879);let r=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[a.ez,d.Bz,C.mS,t.X,z.$6,E.PV,_.f,g.s,S.C]}),c})()},3493:(k,v,e)=>{e.d(v,{J:()=>S});var a=e(5879),d=e(6814),t=e(804),z=e(551);function E(p,r){if(1&p&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&p){const c=a.oxw(2);a.xp6(1),a.Oqu(c.notification)}}function _(p,r){1&p&&a._uU(0," Not specified ")}function g(p,r){if(1&p&&(a.YNc(0,E,2,1,"span",3),a.YNc(1,_,1,0,"ng-template",null,4,a.W1O)),2&p){const c=a.MAs(2),h=a.oxw();a.Q6J("ngIf",h.notification)("ngIfElse",c)}}function C(p,r){1&p&&a._UZ(0,"i",6)}let S=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275cmp=a.Xpm({type:p,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(c,h){if(1&c&&(a._UZ(0,"nz-empty",0),a.YNc(1,g,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,0,"ng-template",null,2,a.W1O)),2&c){const u=a.MAs(2),D=a.MAs(4);a.Q6J("nzNotFoundContent",u)("nzNotFoundImage",D)}},dependencies:[d.O5,t.p9,z.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%}"]}),p})()},3511:(k,v,e)=>{e.d(v,{o:()=>E});var a=e(6814),d=e(804),t=e(551),z=e(5879);let E=(()=>{class _{}return _.\u0275fac=function(C){return new(C||_)},_.\u0275mod=z.oAB({type:_}),_.\u0275inj=z.cJS({imports:[a.ez,d.Xo,t.PV]}),_})()},9560:(k,v,e)=>{e.d(v,{K:()=>p});var a=e(6814),d=e(5545),t=e(5879),z=e(6223),E=e(824);const g={name:"comment-textarea",component:(()=>{class r extends d.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,u)=>`Comments must be at least ${u.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return r.\u0275fac=function(){let c;return function(u){return(c||(c=t.n5z(r)))(u||r)}}(),r.\u0275cmp=t.Xpm({type:r,selectors:[["comment-textarea-type"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(h,u){1&h&&t._UZ(0,"textarea",0),2&h&&t.Q6J("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[z.Fj,z.JJ,z.oH,d.JD,E.Zp],encapsulation:2,changeDetection:0}),r})(),wrappers:["form-field"]};var C=e(3599),S=e(7459);let p=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[a.ez,z.UX,d.X0.forChild({types:[g]}),S.u,C.U5,E.o7]}),r})()},4139:(k,v,e)=>{e.d(v,{H0:()=>M});var a=e(5879),d=e(6814),t=e(9388);let M=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[t.vT,d.ez]}),s})()},6494:(k,v,e)=>{e.d(v,{i:()=>l,m:()=>o});var a=e(655),d=e(6028),t=e(5879),z=e(6223),E=e(8645),_=e(2438),g=e(9773),C=e(874),S=e(7754),p=e(4300),r=e(9388),c=e(6814),h=e(1958),u=e(551),D=e(8324);const T=["switchElement"];function P(n,f){1&n&&t._UZ(0,"span",8)}function N(n,f){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const i=t.oxw(2);t.xp6(1),t.Oqu(i.nzCheckedChildren)}}function O(n,f){if(1&n&&(t.ynx(0),t.YNc(1,N,2,1,"ng-container",9),t.BQk()),2&n){const i=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzCheckedChildren)}}function x(n,f){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const i=t.oxw(2);t.xp6(1),t.Oqu(i.nzUnCheckedChildren)}}function M(n,f){if(1&n&&t.YNc(0,x,2,1,"ng-container",9),2&n){const i=t.oxw();t.Q6J("nzStringTemplateOutlet",i.nzUnCheckedChildren)}}let l=(()=>{class n{updateValue(i){this.isChecked!==i&&(this.isChecked=i,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(i,m,y,A,I,w){this.nzConfigService=i,this.host=m,this.ngZone=y,this.cdr=A,this.focusMonitor=I,this.directionality=w,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.nzId=null,this.dir="ltr",this.destroy$=new E.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,g.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,_.R)(this.host.nativeElement,"click").pipe((0,g.R)(this.destroy$)).subscribe(i=>{i.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,g.R)(this.destroy$)).subscribe(i=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=i;m!==d.oh&&m!==d.SV&&m!==d.L_&&m!==d.K5||(i.preventDefault(),this.ngZone.run(()=>{m===d.oh?this.updateValue(!1):m===d.SV?this.updateValue(!0):(m===d.L_||m===d.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,g.R)(this.destroy$)).subscribe(i=>{i||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(i){this.isChecked=i,this.cdr.markForCheck()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return n.\u0275fac=function(i){return new(i||n)(t.Y36(C.jY),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(p.tE),t.Y36(r.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-switch"]],viewQuery:function(i,m){if(1&i&&t.Gf(T,7),2&i){let y;t.iGM(y=t.CRH())&&(m.switchElement=y.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[t._Bn([{provide:z.JU,useExisting:(0,t.Gpc)(()=>n),multi:!0}])],decls:9,vars:16,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(i,m){if(1&i&&(t.TgZ(0,"button",0,1)(2,"span",2),t.YNc(3,P,1,0,"span",3),t.qZA(),t.TgZ(4,"span",4),t.YNc(5,O,2,1,"ng-container",5),t.YNc(6,M,1,1,"ng-template",null,6,t.W1O),t.qZA(),t._UZ(8,"div",7),t.qZA()),2&i){const y=t.MAs(7);t.ekj("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),t.Q6J("disabled",m.nzDisabled)("nzWaveExtraNode",!0),t.uIk("id",m.nzId),t.xp6(3),t.Q6J("ngIf",m.nzLoading),t.xp6(2),t.Q6J("ngIf",m.isChecked)("ngIfElse",y)}},dependencies:[c.O5,h.dQ,u.Ls,D.f],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,S.yF)()],n.prototype,"nzLoading",void 0),(0,a.gn)([(0,S.yF)()],n.prototype,"nzDisabled",void 0),(0,a.gn)([(0,S.yF)()],n.prototype,"nzControl",void 0),(0,a.gn)([(0,C.oS)()],n.prototype,"nzSize",void 0),n})(),o=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[r.vT,c.ez,h.vG,u.PV,D.T]}),n})()}}]); \ No newline at end of file diff --git a/server/public/6068.41e3b7fa5712dfb0.js b/server/public/6068.41e3b7fa5712dfb0.js deleted file mode 100644 index 57fc3318b..000000000 --- a/server/public/6068.41e3b7fa5712dfb0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6068],{4786:(Nn,k,a)=>{a.d(k,{O:()=>_n});var _=a(8130),K=a(2023),c=a(5879),N=a(6814),nn=a(4190),tn=a(5695),en=a(7417),on=a(551),B=a(8213),j=a(3103),an=a(2616);function f(p,d){}function y(p,d){if(1&p&&(c.ynx(0),c.TgZ(1,"a",4),c.YNc(2,f,0,0,"ng-template",5),c.qZA(),c.BQk()),2&p){const l=c.oxw(),I=c.MAs(2);c.xp6(1),c.Q6J("routerLink",l.evidence.link),c.xp6(1),c.Q6J("ngTemplateOutlet",I)}}function J(p,d){}function m(p,d){if(1&p&&c._UZ(0,"cvc-evidence-popover",9),2&p){const l=c.oxw(3);c.Q6J("evidenceId",l.evidence.id)}}function b(p,d){if(1&p&&c.YNc(0,m,1,1,"cvc-evidence-popover",8),2&p){const l=c.oxw(2);c.Q6J("ngIf",l.enablePopover)}}const $=function(p,d,l){return{rejected:p,submitted:d,accepted:l}};function n(p,d){if(1&p&&(c.TgZ(0,"nz-tag",6),c.YNc(1,J,0,0,"ng-template",5),c.qZA(),c.YNc(2,b,1,1,"ng-template",null,7,c.W1O)),2&p){const l=c.MAs(3),I=c.oxw(),S=c.MAs(6);c.Q6J("ngClass",c.kEZ(5,$,"REJECTED"===I.evidence.status,"SUBMITTED"===I.evidence.status,"ACCEPTED"===I.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",I.enablePopover?"hover":null),c.xp6(1),c.Q6J("ngTemplateOutlet",S)}}function rn(p,d){}function cn(p,d){if(1&p&&c.YNc(0,rn,0,0,"ng-template",5),2&p){c.oxw();const l=c.MAs(2);c.Q6J("ngTemplateOutlet",l)}}function Y(p,d){if(1&p&&(c.TgZ(0,"cvc-icon-badges",10),c._UZ(1,"i",11),c.ALo(2,"entityColor"),c.ALo(3,"entityColor"),c.qZA(),c._uU(4)),2&p){const l=c.oxw();c.Q6J("flagged",l.evidence.flagged)("entityColor",l.iconColor),c.xp6(1),c.Q6J("nzTwotoneColor","REJECTED"===l.evidence.status?c.lcZ(2,4,"Rejected"):c.lcZ(3,6,"EvidenceItem")),c.xp6(3),c.hij(" ",l.evidence.name,"\n")}}let _n=(()=>{class p extends _.a{set evidence(l){if(!l)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=l}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,K.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return p.\u0275fac=function(l){return new(l||p)},p.\u0275cmp=c.Xpm({type:p,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(l,I){if(1&l&&(c.YNc(0,y,3,2,"ng-container",0),c.YNc(1,n,4,9,"ng-template",null,1,c.W1O),c.YNc(3,cn,1,1,"ng-template",null,2,c.W1O),c.YNc(5,Y,5,8,"ng-template",null,3,c.W1O)),2&l){const S=c.MAs(4);c.Q6J("ngIf",I.linked)("ngIfElse",S)}},dependencies:[N.mk,N.O5,N.tP,nn.rH,tn.j,en.lU,on.Ls,B._,j.b,an.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),p})()},3006:(Nn,k,a)=>{a.r(k),a.d(k,{VariantsDetailModule:()=>ya});var _=a(6814),K=a(4758),c=a(5725),N=a(5956),nn=a(936),tn=a(7129),en=a(2419),on=a(4059),B=a(2524),j=a(845),an=a(3394),f=a(5545),y=a(2962),J=a(565),m=a(95),b=a(279),$=a(655),n=a(5879),rn=a(7394),cn=a(7328),Y=a(8645),_n=a(3019),p=a(2438),d=a(9773),l=a(7398),I=a(8753),S=a(874),U=a(7754),Un=a(9087),mn=a(2831),Pn=a(8802),dn=a(9388);const En=["fixedEl"],Fn=["*"];var T=(()=>((T=T||{}).resize="resize",T.scroll="scroll",T.touchstart="touchstart",T.touchmove="touchmove",T.touchend="touchend",T.pageshow="pageshow",T.load="LOAD",T))();function un(t){return function wn(t){return typeof window<"u"&&t===window}(t)?{top:0,left:0,bottom:0}:t.getBoundingClientRect()}const P="ant-affix";let Dn=(()=>{class t{get target(){const e=this.nzTarget;return("string"==typeof e?this.document.querySelector(e):e)||window}constructor(e,o,r,s,g,v,h,C,A,fn){this.nzConfigService=r,this.scrollSrv=s,this.ngZone=g,this.platform=v,this.renderer=h,this.nzResizeObserver=C,this.cdr=A,this.directionality=fn,this._nzModuleName="affix",this.nzChange=new n.vpe,this.dir="ltr",this.positionChangeSubscription=rn.w0.EMPTY,this.offsetChanged$=new cn.t(1),this.destroy$=new Y.x,this.placeholderNode=e.nativeElement,this.document=o}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzOffsetBottom:o,nzOffsetTop:r,nzTarget:s}=e;(o||r)&&this.offsetChanged$.next(),s&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const e=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,_n.T)(...Object.keys(T).map(o=>(0,p.R)(this.target,o)),this.offsetChanged$.pipe((0,l.U)(()=>({}))),this.nzResizeObserver.observe(e)).pipe((0,I.p)(20,void 0,{trailing:!0}),(0,d.R)(this.destroy$)).subscribe(o=>this.updatePosition(o))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}getOffset(e,o){const r=e.getBoundingClientRect(),s=un(o),g=this.scrollSrv.getScroll(o,!0),v=this.scrollSrv.getScroll(o,!1),h=this.document.body;return{top:r.top-s.top+g-(h.clientTop||0),left:r.left-s.left+v-(h.clientLeft||0),width:r.width,height:r.height}}setAffixStyle(e,o){const r=this.affixStyle,s=this.target===window;if("scroll"===e.type&&r&&o&&s||(0,U.wU)(r,o))return;const g=!!o,v=this.fixedEl.nativeElement;this.renderer.setStyle(v,"cssText",(0,U.GM)(o)),this.affixStyle=o,g?v.classList.add(P):v.classList.remove(P),this.updateRtlClass(),(o&&!r||!o&&r)&&this.nzChange.emit(g)}setPlaceholderStyle(e){(0,U.wU)(e,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,U.GM)(e)),this.placeholderStyle=e)}syncPlaceholderStyle(e){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const o={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(e,{...this.affixStyle,...o}),this.setPlaceholderStyle(o)}updatePosition(e){if(!this.platform.isBrowser)return;const o=this.target;let r=this.nzOffsetTop;const s=this.scrollSrv.getScroll(o,!0),g=this.getOffset(this.placeholderNode,o),v=this.fixedEl.nativeElement,h={width:v.offsetWidth,height:v.offsetHeight},C={top:!1,bottom:!1};"number"!=typeof r&&"number"!=typeof this.nzOffsetBottom?(C.top=!0,r=0):(C.top="number"==typeof r,C.bottom="number"==typeof this.nzOffsetBottom);const A=un(o),fn=o.innerHeight||o.clientHeight;if(s>=g.top-r&&C.top){const W=g.width;this.setAffixStyle(e,{position:"fixed",top:A.top+r,left:A.left+g.left,width:W}),this.setPlaceholderStyle({width:W,height:h.height})}else if(s<=g.top+h.height+this.nzOffsetBottom-fn&&C.bottom){const W=o===window?0:window.innerHeight-A.bottom,X=g.width;this.setAffixStyle(e,{position:"fixed",bottom:W+this.nzOffsetBottom,left:A.left+g.left,width:X}),this.setPlaceholderStyle({width:X,height:g.height})}else e.type===T.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(e,{...this.affixStyle,width:this.placeholderNode.offsetWidth}):this.setAffixStyle(e),this.setPlaceholderStyle();"resize"===e.type&&this.syncPlaceholderStyle(e)}updateRtlClass(){const e=this.fixedEl.nativeElement;"rtl"===this.dir&&e.classList.contains(P)?e.classList.add(`${P}-rtl`):e.classList.remove(`${P}-rtl`)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(_.K0),n.Y36(S.jY),n.Y36(Un.MF),n.Y36(n.R0b),n.Y36(mn.t4),n.Y36(n.Qsj),n.Y36(Pn.D3),n.Y36(n.sBO),n.Y36(dn.Is,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["nz-affix"]],viewQuery:function(e,o){if(1&e&&n.Gf(En,7),2&e){let r;n.iGM(r=n.CRH())&&(o.fixedEl=r.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[n.TTD],ngContentSelectors:Fn,decls:3,vars:0,consts:[["fixedEl",""]],template:function(e,o){1&e&&(n.F$t(),n.TgZ(0,"div",null,0),n.Hsn(2),n.qZA())},encapsulation:2,changeDetection:0}),(0,$.gn)([(0,S.oS)(),(0,U.Rn)(void 0)],t.prototype,"nzOffsetTop",void 0),(0,$.gn)([(0,S.oS)(),(0,U.Rn)(void 0)],t.prototype,"nzOffsetBottom",void 0),t})(),vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[dn.vT,_.ez,mn.ud]}),t})();var Q=a(551),D=a(6109);let Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,f.X0,vn,J.cD,Q.PV,D.cg,b.s]}),t})(),qn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,f.X0,y.vh,vn,J.cD,Q.PV,D.cg,Ln,b.s]}),t})();var E=a(8091);function kn(t,i){1&t&&n._UZ(0,"div",9),2&t&&n.Q6J("innerHtml",i.ngIf,n.oJD)}function jn(t,i){1&t&&(n.TgZ(0,"div",10),n._uU(1,"Help not available for this field."),n.qZA())}function $n(t,i){if(1&t&&(n.TgZ(0,"nz-collapse-panel",6),n.YNc(1,kn,1,1,"div",7),n.YNc(2,jn,2,0,"ng-template",null,8,n.W1O),n.qZA()),2&t){const e=i.ngIf,o=n.MAs(3),r=n.oxw().$implicit,s=n.MAs(3);n.Q6J("nzHeader",e)("nzActive",r.templateOptions.hasFocus)("nzExtra",s),n.xp6(1),n.Q6J("ngIf",null==r.templateOptions?null:r.templateOptions.helpText)("ngIfElse",o)}}function Rn(t,i){if(1&t&&n._UZ(0,"formly-validation-message",14),2&t){const e=n.oxw(4).$implicit;n.Q6J("field",e)}}function Gn(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"i",12),n.YNc(2,Rn,1,1,"ng-template",null,13,n.W1O),n.BQk()),2&t){const e=n.MAs(3);n.xp6(1),n.Q6J("nzTooltipTitle",e)}}function Hn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Gn,4,1,"ng-container",11),n.BQk()),2&t){const e=i.ngIf;n.xp6(1),n.Q6J("ngIf","INVALID"===e)}}function Wn(t,i){if(1&t&&(n.YNc(0,Hn,2,1,"ng-container",11),n.ALo(1,"ngrxPush")),2&t){const e=n.oxw().$implicit;n.Q6J("ngIf",n.lcZ(1,1,e.formControl.statusChanges))}}function Xn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,$n,4,5,"nz-collapse-panel",4),n.YNc(2,Wn,2,3,"ng-template",null,5,n.W1O),n.BQk()),2&t){const e=i.$implicit;n.xp6(1),n.Q6J("ngIf",null==e.templateOptions?null:e.templateOptions.label)}}let Kn=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(e,o){1&e&&(n.TgZ(0,"nz-affix",0)(1,"nz-card",1)(2,"nz-collapse",2),n.YNc(3,Xn,4,1,"ng-container",3),n.qZA()()()),2&e&&(n.Q6J("nzOffsetTop",0)("nzTarget",o.affixTo),n.xp6(2),n.Q6J("nzBordered",!1),n.xp6(1),n.Q6J("ngForOf",o.fieldGroup))},dependencies:[_.sg,_.O5,f.M2,y.bd,Dn,J.Zv,J.yH,Q.Ls,D.SY,E.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}"]}),t})();const nt={name:"form-info",component:(()=>{class t extends f.n2{}return t.\u0275fac=function(){let i;return function(o){return(i||(i=n.n5z(t)))(o||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-form-info-wrapper"]],features:[n.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(e,o){if(1&e&&(n.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"nz-card",2),n.GkF(3,null,3),n.qZA()(),n.TgZ(5,"nz-col",1)(6,"div",null,4),n._UZ(8,"cvc-form-info-card",5),n.qZA()()()),2&e){const r=n.MAs(7);n.xp6(1),n.Q6J("nzSpan",16),n.xp6(1),n.Q6J("nzTitle",o.to.label),n.xp6(3),n.Q6J("nzSpan",8),n.xp6(3),n.Q6J("fieldGroup",o.field.fieldGroup)("affixTo",r)}},dependencies:[m.t3,m.SK,y.bd,Kn],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})()};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,f.X0.forChild({wrappers:[nt]}),m.Jb,y.vh,J.cD,qn,b.s]}),t})();var u=a(6223),M=a(3599),R=a(824),Z=a(2840),L=a(855),q=a(1958),G=a(5695);function et(t,i){if(1&t){const e=n.EpF();n.TgZ(0,"nz-form-item")(1,"nz-form-control",3)(2,"nz-tag",4),n.NdJ("click",function(r){n.CHM(e);const s=n.oxw();return n.KtG(s.addField(r))}),n._UZ(3,"i",5),n._uU(4),n.qZA()()()}if(2&t){const e=n.oxw();n.xp6(1),n.Q6J("nzValidateStatus",e.errorState),n.xp6(3),n.hij(" ",e.to.addText," ")}}function it(t,i){if(1&t){const e=n.EpF();n.TgZ(0,"nz-tag",4),n.NdJ("click",function(r){n.CHM(e);const s=n.oxw(4);return n.KtG(s.addField(r))}),n._UZ(1,"i",5),n._uU(2),n.qZA()}if(2&t){const e=n.oxw(4);n.xp6(2),n.hij(" ",e.to.addText," ")}}function ot(t,i){if(1&t&&(n.TgZ(0,"div",11),n.YNc(1,it,3,1,"nz-tag",12),n.qZA()),2&t){const e=n.oxw(2).$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngIf",0==o.to.maxCount||o.to.maxCount>e.model.length)}}function at(t,i){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-tag",8)(2,"i",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().index,s=n.oxw();return n.KtG(s.remove(r))}),n.qZA()(),n.YNc(3,ot,2,1,"div",10),n.BQk()}if(2&t){const e=n.oxw().last;n.xp6(3),n.Q6J("ngIf",e)}}function rt(t,i){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"div",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().index,s=n.oxw();return n.KtG(s.remove(r))}),n._UZ(3,"i",15),n.qZA()(),n.BQk()}}function ct(t,i){if(1&t&&(n.TgZ(0,"nz-form-item")(1,"div",6)(2,"div",0),n._UZ(3,"formly-field",7),n.qZA(),n.YNc(4,at,4,1,"ng-container",1),n.YNc(5,rt,4,0,"ng-container",1),n.qZA()()),2&t){const e=i.$implicit,o=i.index;n.xp6(2),n.Q6J("ngClass",e.model[o]?"selected-field-col":"default-field-col"),n.xp6(1),n.Q6J("field",e),n.xp6(1),n.Q6J("ngIf",e.model[o]),n.xp6(1),n.Q6J("ngIf",!e.model[o])}}const _t=function(t){return{hidden:t}},st={name:"multi-field",component:(()=>{class t extends f.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(e){e&&e.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-multi-field-type"]],features:[n.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(e,o){1&e&&(n.TgZ(0,"div",0),n.YNc(1,et,5,2,"nz-form-item",1),n.YNc(2,ct,6,4,"nz-form-item",2),n.qZA()),2&e&&(n.Q6J("ngClass",n.VKq(3,_t,!0===o.to.hidden)),n.xp6(1),n.Q6J("ngIf",0===(null==o.field.fieldGroup?null:o.field.fieldGroup.length)),n.xp6(1),n.Q6J("ngForOf",o.field.fieldGroup))},dependencies:[_.mk,_.sg,_.O5,f.cw,m.t3,m.SK,M.Nx,M.Fd,Q.Ls,Z.ix,L.w,q.dQ,G.j],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)}"]}),t})()};function lt(t,i){if(1&t&&n._UZ(0,"formly-validation-message",3),2&t){const e=n.oxw();n.Q6J("field",e.field)}}const pt={name:"cvc-field-errors",component:(()=>{class t extends f.n2{get errorState(){return this.showError?"error":""}}return t.\u0275fac=function(){let i;return function(o){return(i||(i=n.n5z(t)))(o||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-field-errors-wrapper"]],features:[n.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(e,o){if(1&e&&(n.TgZ(0,"nz-form-control",0)(1,"p"),n._uU(2),n.qZA(),n.GkF(3,null,1),n.YNc(5,lt,1,1,"ng-template",null,2,n.W1O),n.qZA()),2&e){const r=n.MAs(6);n.Q6J("nzValidateStatus",o.errorState)("nzErrorTip",r),n.xp6(2),n.hij("errorState: ",o.errorState,"")}},dependencies:[m.t3,M.Fd,f.M2],encapsulation:2,changeDetection:0}),t})()};let gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,u.UX,M.U5,f.X0.forChild({wrappers:[pt]})]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,u.u5,f.X0.forChild({types:[st]}),u.UX,gt,M.U5,R.o7,Q.PV,Z.sL,b.s,G.X]}),t})();const mt={name:"cvc-textarea",component:(()=>{class t extends f.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let i;return function(o){return(i||(i=n.n5z(t)))(o||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[n.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(e,o){1&e&&n._UZ(0,"textarea",0),2&e&&n.Q6J("formControl",o.formControl)("formlyAttributes",o.field)("nzAutosize",o.to.autosize)("placeholder",o.to.placeholder)},dependencies:[u.Fj,u.JJ,u.oH,f.JD,R.Zp,R.rh],encapsulation:2,changeDetection:0}),t})(),wrappers:["form-field"]};let dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,u.u5,u.UX,f.X0.forChild({types:[mt]}),R.o7]}),t})();var H=a(3903),x=a(4190),xn=a(2669),ut=a(7248);function vt(t,i){if(1&t){const e=n.EpF();n.TgZ(0,"button",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.callOnClick())}),n._uU(1," Cancel\n"),n.qZA()}}function xt(t,i){if(1&t&&(n.TgZ(0,"button",3),n._uU(1," Cancel "),n.qZA()),2&t){const e=n.oxw();n.Q6J("routerLink",e.redirectPath)}}const ht={name:"cancel-button",component:(()=>{class t extends f.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){this.field.templateOptions?.onClick?this.callOnClick=this.field.templateOptions?.onClick:this.field.templateOptions?.redirectPath&&(this.redirectPath=this.field.templateOptions?.redirectPath)}}return t.\u0275fac=function(){let i;return function(o){return(i||(i=n.n5z(t)))(o||t)}}(),t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-cancel-button"]],features:[n.qOj],decls:3,vars:2,consts:[["class","cancel-button","nz-button","","type","button","nzType","default","nzSize","large",3,"click",4,"ngIf","ngIfElse"],["redirect",""],["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"click"],["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(e,o){if(1&e&&(n.YNc(0,vt,2,0,"button",0),n.YNc(1,xt,2,1,"ng-template",null,1,n.W1O)),2&e){const r=n.MAs(2);n.Q6J("ngIf",o.callOnClick)("ngIfElse",r)}},dependencies:[_.O5,Z.ix,L.w,q.dQ,x.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),t})()};let yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,u.u5,u.UX,Z.sL,x.Bz,ut.F,f.X0.forChild({types:[ht]})]}),t})();var V=a(2574),sn=a(2392),hn=a(3764),yn=a(5805);const Tt={name:"submit-button",component:(()=>{class t extends f.fS{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-submit-button-type"]],features:[n.qOj],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(e,o){1&e&&(n.TgZ(0,"cvc-form-buttons")(1,"button",0),n._uU(2),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("disabled",!o.form.valid),n.xp6(1),n.hij(" ",o.to.submitLabel," "))},dependencies:[Z.ix,L.w,q.dQ,hn.Z,yn.m],encapsulation:2,changeDetection:0}),t})()};var Tn=a(6294);let zt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,u.UX,f.X0.forChild({types:[Tt]}),Z.sL,j.R,Tn.A]}),t})();var Ct=a(3378),ln=a(9691),It=a(8527);let Zt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,x.Bz,u.u5,u.UX,b.s,M.U5,H.L,m.Jb,Z.sL,xn.j,y.vh,V.zf,sn.ZJ,D.cg,ln.LV,an.B,j.R,tt,ft,dt,yt,zt,Ct.w,Tn.A,It.u]}),t})();var F=a(6254),zn=a(7417),z=a(313),Cn=a(7921),w=a(4223),In=a(5619),Zn=a(951),At=a(1520),Qt=a(5098),Mt=a(327),Vt=a(1801),An=a(4121),Jt=a(3145),bt=a(8295),St=a(1834),Ot=a(2024),Qn=a(2181),Mn=a(5676),Nt=a(7473),Ut=a(1889),Pt=a(2257),Et=a(2606);function Ft(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-molecular-profile-tag",19),n.BQk()),2&t){const e=i.$implicit;n.xp6(1),n.Q6J("molecularProfile",e)}}function wt(t,i){if(1&t&&n.YNc(0,Ft,2,1,"ng-container",18),2&t){const e=n.oxw(3).ngrxLet;n.Q6J("ngForOf",e)}}function Bt(t,i){if(1&t&&(n.TgZ(0,"nz-alert",16),n.YNc(1,wt,1,1,"ng-template",null,17,n.W1O),n.qZA()),2&t){const e=n.MAs(2);n.Q6J("nzDescription",e)}}function Yt(t,i){1&t&&(n.ynx(0),n.YNc(1,Bt,3,1,"nz-alert",15),n.BQk())}function Dt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Yt,2,0,"ng-container",14),n.BQk()),2&t){const e=i.ngrxLet;n.xp6(1),n.Q6J("ngIf",e&&e.length>0)}}function Lt(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-molecular-profile-tag",19),n.BQk()),2&t){const e=i.$implicit;n.xp6(1),n.Q6J("molecularProfile",e)}}function qt(t,i){if(1&t&&n.YNc(0,Lt,2,1,"ng-container",18),2&t){const e=n.oxw(3).ngrxLet;n.Q6J("ngForOf",e)}}function kt(t,i){if(1&t&&(n.TgZ(0,"nz-alert",21),n.YNc(1,qt,1,1,"ng-template",null,22,n.W1O),n.qZA()),2&t){const e=n.MAs(2);n.Q6J("nzDescription",e)}}function jt(t,i){1&t&&(n.ynx(0),n.YNc(1,kt,3,1,"nz-alert",20),n.BQk())}function $t(t,i){if(1&t&&(n.ynx(0),n.YNc(1,jt,2,0,"ng-container",14),n.BQk()),2&t){const e=i.ngrxLet;n.xp6(1),n.Q6J("ngIf",e&&e.length>0)}}function Rt(t,i){if(1&t){const e=n.EpF();n.TgZ(0,"nz-alert",23),n.NdJ("nzOnClose",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSuccessBannerClose())}),n.qZA()}}function Gt(t,i){if(1&t&&n._UZ(0,"nz-alert",24),2&t){n.oxw();const e=n.MAs(9);n.Q6J("nzDescription",e)}}function Ht(t,i){if(1&t&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&t){const e=i.$implicit;n.xp6(1),n.Oqu(e)}}function Wt(t,i){if(1&t&&(n.TgZ(0,"ul"),n.YNc(1,Ht,2,1,"li",18),n.qZA()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.errorMessages)}}function Xt(t,i){}function Kt(t,i){1&t&&n.YNc(0,Xt,0,0,"ng-template")}function ne(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Kt,1,0,null,29),n.BQk()),2&t){n.oxw();const e=n.MAs(7);n.xp6(1),n.Q6J("ngTemplateOutlet",e)}}function te(t,i){}function ee(t,i){1&t&&n.YNc(0,te,0,0,"ng-template")}function ie(t,i){if(1&t&&(n.TgZ(0,"span",30),n.YNc(1,ee,1,0,null,29),n.qZA()),2&t){n.oxw();const e=n.MAs(7);n.xp6(1),n.Q6J("ngTemplateOutlet",e)}}function oe(t,i){if(1&t&&(n.TgZ(0,"button",31),n._uU(1," Deprecate Variant "),n.qZA()),2&t){const e=n.oxw().ngrxLet,o=n.oxw();n.Q6J("disabled",!(void 0!==o.comment&&o.comment.length>=10&&e.signedIn&&e.isEditor&&o.reason))}}function ae(t,i){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"cvc-form-buttons")(2,"cvc-org-selector-btn-group",25),n.NdJ("selectedOrgChange",function(r){n.CHM(e);const s=n.oxw();return n.KtG(s.onOrgSelected(r))}),n.YNc(3,ne,2,1,"ng-container",26),n.YNc(4,ie,2,1,"ng-template",null,27,n.W1O),n.YNc(6,oe,2,1,"ng-template",null,28,n.W1O),n.qZA()(),n.BQk()}if(2&t){const e=i.ngrxLet,o=n.MAs(5);n.xp6(3),n.Q6J("ngIf",e.signedIn&&e.isEditor)("ngIfElse",o)}}let re=(()=>{class t{constructor(e,o,r,s,g,v){this.deprecateVariantGQL=e,this.variantDetailGQL=o,this.mpsForVariantGQL=r,this.networkErrorService=s,this.route=g,this.viewerService=v,this.destroy$=new Y.x,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new Ot.U(s),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.subscribe(o=>{this.selectedOrg=o.mostRecentOrg}),void 0===this.variantId)throw new Error("Must pass a variant id into deprecate variant component");let e=this.mpsForVariantGQL.fetch({variantId:this.variantId});this.mpsToDeprecate$=e.pipe((0,l.U)(({data:o})=>o.molecularProfiles.nodes),(0,Qn.h)(Mn.ep),(0,l.U)(o=>o.filter(r=>r.evidenceCountsByStatus.submittedCount+r.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=e.pipe((0,l.U)(({data:o})=>o.molecularProfiles.nodes),(0,Qn.h)(Mn.ep),(0,l.U)(o=>o.filter(r=>r.evidenceCountsByStatus.submittedCount+r.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=e.pipe((0,l.U)(({loading:o})=>o))}onOrgSelected(e){this.selectedOrg=e}deprecateVariant(){if(this.errorMessages=[],this.reason&&this.comment&&this.variantId){let o=this.deprecateVariantMutator.mutate(this.deprecateVariantGQL,{deprecationReason:this.reason,comment:this.comment,variantId:this.variantId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.variantDetailGQL.document,variables:{variantId:this.variantId}}]});o.submitSuccess$.pipe((0,d.R)(this.destroy$)).subscribe(r=>{r&&(this.success=!0,this.comment="")}),o.submitError$.pipe((0,d.R)(this.destroy$)).subscribe(r=>{r.length>0&&(this.errorMessages=r)}),o.isSubmitting$.pipe((0,d.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z.vv6),n.Y36(z.iJT),n.Y36(z.E1C),n.Y36(Nt.Y),n.Y36(x.gz),n.Y36(Zn.a))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModel","ngModelChange"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription"],["mpsToDeprecateTpl",""],[4,"ngFor","ngForOf"],[3,"molecularProfile"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription"],["mpsWithEvidenceTpl",""],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate variant."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(e,o){1&e&&(n.TgZ(0,"nz-spin",0),n.ALo(1,"ngrxPush"),n.TgZ(2,"nz-space",1),n.YNc(3,Dt,2,1,"ng-container",2),n.YNc(4,$t,2,1,"ng-container",2),n.qZA()(),n.TgZ(5,"nz-card",3),n.YNc(6,Rt,1,0,"nz-alert",4),n.YNc(7,Gt,1,1,"nz-alert",5),n.YNc(8,Wt,2,1,"ng-template",null,6,n.W1O),n.TgZ(10,"nz-form-item")(11,"nz-select",7),n.NdJ("ngModelChange",function(s){return o.reason=s}),n._UZ(12,"nz-option",8)(13,"nz-option",9)(14,"nz-option",10),n.qZA()(),n.TgZ(15,"form",11),n.NdJ("ngSubmit",function(){return o.deprecateVariant()}),n.TgZ(16,"cvc-comment-input-form",12),n.NdJ("commentChange",function(s){return o.comment=s}),n.qZA(),n.TgZ(17,"nz-spin",13)(18,"nz-form-item")(19,"nz-form-control"),n.YNc(20,ae,8,2,"ng-container",2),n.qZA()()()()()),2&e&&(n.Q6J("nzSpinning",n.lcZ(1,9,o.mpListLoading$)),n.xp6(3),n.Q6J("ngrxLet",o.mpsToDeprecate$),n.xp6(1),n.Q6J("ngrxLet",o.mpsWithEvidence$),n.xp6(2),n.Q6J("ngIf",o.success),n.xp6(1),n.Q6J("ngIf",o.errorMessages.length>0),n.xp6(4),n.Q6J("ngModel",o.reason),n.xp6(5),n.Q6J("comment",o.comment),n.xp6(1),n.Q6J("nzSpinning",o.loading),n.xp6(3),n.Q6J("ngrxLet",o.viewer$))},dependencies:[_.sg,_.O5,_.tP,u._Y,u.JJ,u.JL,u.On,u.F,E.eJ,m.t3,m.SK,M.Lr,M.Nx,M.Fd,H.r,Z.ix,L.w,q.dQ,xn.W,y.bd,V.NU,V.$1,D.SY,ln.Ip,ln.Vq,hn.Z,Ut.b,yn.m,Pt.q,Et.p,E.fM],encapsulation:2}),t})();var ce=a(4082),_e=a(2616);function se(t,i){if(1&t&&(n.TgZ(0,"span",16)(1,"strong"),n._uU(2),n.qZA(),n._uU(3," Parent:"),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.xp6(2),n.Oqu(e.name)}}function le(t,i){if(1&t&&(n.TgZ(0,"span",17)(1,"a",18),n._UZ(2,"cvc-gene-tag",19),n.qZA()()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",e.gene.id,""),n.xp6(1),n.Q6J("gene",e.gene)}}function pe(t,i){1&t&&(n.TgZ(0,"nz-space",13),n.YNc(1,se,4,1,"span",14),n.YNc(2,le,3,2,"span",15),n.qZA())}function ge(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function fe(t,i){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,ge,2,0,"span",0),n.qZA()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function me(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-subtitle"),n.YNc(1,fe,3,2,"span",20),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.variantAliases)}}const de=function(t){return["/variants",t,"revise"]};function ue(t,i){if(1&t&&(n.TgZ(0,"button",25,26),n._uU(2," Revise "),n.qZA()),2&t){const e=n.MAs(1),o=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,de,o.id))("nzType",e.isActive?"primary":"default")}}function ve(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,ue,3,4,"button",24),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",null==e?null:e.signedIn)}}function xe(t,i){if(1&t&&(n.TgZ(0,"button",28,26),n._uU(2," Flag "),n.qZA()),2&t){const e=n.MAs(1);n.Q6J("nzType",e.isActive?"primary":"default")}}function he(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,xe,3,1,"button",27),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function ye(t,i){if(1&t&&(n.TgZ(0,"div",32),n._UZ(1,"cvc-variant-deprecate-form",33),n.qZA()),2&t){const e=n.oxw(5).ngIf;n.xp6(1),n.Q6J("variantId",e.id)}}function Te(t,i){if(1&t&&(n.TgZ(0,"button",30),n._uU(1," Deprecate "),n.YNc(2,ye,2,1,"ng-template",null,31,n.W1O),n.qZA()),2&t){const e=n.MAs(3),o=n.oxw(4).ngIf;n.Q6J("disabled",o.deprecated)("nzPopoverContent",e)}}function ze(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,Te,4,2,"button",29),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.isEditor)}}function Ce(t,i){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",35),2&t){const e=n.oxw(2).ngrxLet,o=n.oxw(3);n.Q6J("viewer",e)("subscribableId",o.subscribable.id)}}function Ie(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,Ce,1,2,"cvc-entity-subscription-button",34),n.qZA()),2&t){const e=n.oxw().ngrxLet,o=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.signedIn&&o.subscribable)}}function Ze(t,i){1&t&&(n.TgZ(0,"nz-space",22),n.YNc(1,ve,2,1,"span",23),n.YNc(2,he,2,1,"span",23),n.YNc(3,ze,2,1,"span",23),n.YNc(4,Ie,2,1,"span",23),n.qZA())}function Ae(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,Ze,5,0,"nz-space",21),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",e.viewer$)}}function Qe(t,i){if(1&t&&n._UZ(0,"nz-alert",36),2&t){n.oxw();const e=n.MAs(16);n.Q6J("nzMessage",e)}}const Me=function(){return[]};function Ve(t,i){if(1&t&&(n._uU(0),n.ALo(1,"enumToTitle"),n._UZ(2,"cvc-comment-body",37)),2&t){const e=n.oxw().ngIf;n.hij(" This Variant has been deprecated for reason: ",n.lcZ(1,2,e.deprecationReason),". "),n.xp6(2),n.Q6J("commentBodySegments",(null==e.deprecationComment?null:e.deprecationComment.parsedComment)||n.DdM(4,Me))}}function Je(t,i){if(1&t&&(n.TgZ(0,"nz-col",38),n._UZ(1,"cvc-contributor-avatars",39),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("subscribable",e.subscribable)}}const be=function(t){return{flagged:t}};function Se(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,pe,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.TgZ(6,"nz-page-header",4)(7,"nz-page-header-title",5),n._UZ(8,"i",6),n.ALo(9,"entityColor"),n._uU(10),n.qZA(),n.YNc(11,me,2,1,"nz-page-header-subtitle",0),n.YNc(12,Ae,2,1,"nz-page-header-extra",7),n.TgZ(13,"nz-page-header-content"),n.YNc(14,Qe,1,1,"nz-alert",8),n.YNc(15,Ve,3,5,"ng-template",null,9,n.W1O),n.TgZ(17,"cvc-tab-navigation",10),n.ALo(18,"ngrxPush"),n.YNc(19,Je,2,1,"ng-template",null,11,n.W1O),n.qZA(),n.TgZ(21,"div",12),n._UZ(22,"router-outlet"),n.qZA()()()(),n.BQk()),2&t){const e=i.ngIf,o=n.MAs(3),r=n.oxw();n.xp6(1),n.Q6J("displayName",e.gene.name+" "+e.name)("relationsTpl",o),n.xp6(3),n.Q6J("flags",n.lcZ(5,10,r.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(16,be,e.flags.totalCount>0)),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(9,12,"Variant")),n.xp6(2),n.hij(" ",e.name," "),n.xp6(1),n.Q6J("ngIf",e.variantAliases.length>0),n.xp6(1),n.Q6J("ngrxLet",r.viewer$),n.xp6(2),n.Q6J("ngIf",e.deprecated),n.xp6(3),n.Q6J("tabs",n.lcZ(18,14,r.tabs$))}}let Oe=(()=>{class t{constructor(e,o,r){this.gql=e,this.viewerService=o,this.route=r,this.destroy$=new Y.x,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 In.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(s=>{this.queryRef=this.gql.watch({variantId:+s.variantId});let g=this.queryRef.valueChanges;this.loading$=g.pipe((0,w.j)("loading"),(0,Cn.O)(!0)),this.variant$=g.pipe((0,w.j)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,w.j)("flags","totalCount")),this.variant$.pipe((0,d.R)(this.destroy$)).subscribe({next:v=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:v?.revisions.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:v?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+s.variantId,entityType:z.o71.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z.iJT),n.Y36(Zn.a),n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["variantRelations",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],["deprecationMessageTemplate",""],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],["deprecateVariantForm",""],[1,"deprecateVariant"],[3,"variantId"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(e,o){1&e&&(n.YNc(0,Se,23,18,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,o.variant$))},dependencies:[_.mk,_.sg,_.O5,x.lC,x.rH,x.Od,E.eJ,Z.ix,L.w,q.dQ,Q.Ls,F.$O,F.u9,F.yG,F.u5,F.Jp,V.NU,V.$1,m.t3,H.r,zn.lU,At.N,Qt.P,Mt.o,Vt.Y,An.H,Jt.I,bt.Q,St.m,re,E.fM,ce.I,_e.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{flex-wrap:nowrap;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}.deprecateVariant[_ngcontent-%COMP%]{width:700px}"]}),t})();var Ne=a(1830);let Ue=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,Ne.l]}),t})();var Pe=a(800);let Ee=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:z.OfU.Variant}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(e,o){1&e&&n._UZ(0,"cvc-comment-list",0),2&e&&n.Q6J("commentable",o.commentable)},dependencies:[Pe.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Fe=a(183),we=a(4139);let Be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,m.Jb,y.vh,V.zf,we.H0,Q.PV,Fe.M]}),t})();var Ye=a(7287);let De=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:z.sfv.Variant,id:+this.route.snapshot.params.variantId}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(e,o){1&e&&n._UZ(0,"cvc-flag-list-and-filter",0),2&e&&n.Q6J("flaggable",o.flaggable)},dependencies:[Ye.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Le=a(2534);let qe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,Le.A]}),t})();var ke=a(6126);let je=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(o=>{this.variantId=+o.variantId,this.entityType=z.oRL.Variant})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,o){1&e&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&n.Q6J("id",o.variantId)("entityType",o.entityType)},dependencies:[ke.a],encapsulation:2}),t})();var $e=a(366),Re=a(8641),pn=a(8125),Ge=a(3717),Vn=a(6067),gn=a(9382),O=a(3740);let He=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,gn.we,O.HQ,y.vh,Vn.X,m.Jb,B.s]}),t})();var We=a(3511),Jn=a(9894),Xe=a(8706),Ke=a(6055),ni=a(6610);let ti=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,V.zf,m.Jb,pn.q6,y.vh,sn.ZJ,Q.PV,G.X,Ke.z,B.s,$e.$,Xe.W,Re.s,N.U,Ge.M,Vn.X,He,We.o,Jn.t,ni.I]}),t})();var ei=a(1765),ii=a(1887),oi=a(7938),bn=a(3317),ai=a(406);function ri(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",e.variantInfo.clinvarId," ")}}function ci(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",20),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.xp6(1),n.hij(" ",e.variantInfo.dbsnpRsid," ")}}function _i(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",21),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.xp6(1),n.hij(" ",e.variantInfo.cosmicId," ")}}function si(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function li(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,si,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function pi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,li,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.snpeffSnpEffect)}}function gi(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function fi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,gi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function mi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,fi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.snpeffSnpImpact)}}function di(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," MyVariant.info ID: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.TgZ(7,"strong",17),n._uU(8,"ClinVar ID:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,ri,3,2,"ng-container",18),n.qZA()(),n.TgZ(11,"div",14)(12,"div",15),n._uU(13," dbSNP RSID: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,ci,3,2,"ng-container",18),n.TgZ(16,"strong",17),n._uU(17,"COSMIC ID (v68):"),n.qZA(),n._uU(18,"\xa0 "),n.YNc(19,_i,3,2,"ng-container",18),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," SNPEff Effect: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,pi,2,1,"ng-container",18),n.qZA()(),n.TgZ(25,"div",14)(26,"div",15),n._uU(27," SNPEff Impact: "),n.qZA(),n.TgZ(28,"div",16),n.YNc(29,mi,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),o=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",e.variantInfo.myVariantInfoId," "),n.xp6(4),n.Q6J("ngIf",e.variantInfo.clinvarId)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",o),n.xp6(4),n.Q6J("ngIf",e.variantInfo.cosmicId)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",o)}}function ui(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",e.variantInfo.clinvarId," ")}}function vi(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",23),n._uU(2),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.MGl("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.xp6(1),n.hij(" ",e.variantInfo.clinvarOmim," ")}}function xi(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function hi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,xi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function yi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,hi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function Ti(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function zi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ti,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Ci(t,i){if(1&t&&(n.ynx(0),n.YNc(1,zi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function Ii(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function Zi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ii,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Ai(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Zi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function Qi(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function Mi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Qi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Vi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Mi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function Ji(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function bi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ji,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Si(t,i){if(1&t&&(n.ynx(0),n.YNc(1,bi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function Oi(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," ClinVar ID: "),n.qZA(),n.TgZ(5,"div",16),n.YNc(6,ui,3,2,"ng-container",18),n.TgZ(7,"strong",17),n._uU(8,"OMIM:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,vi,3,2,"ng-container",18),n.qZA()(),n.TgZ(11,"div",14)(12,"div",15),n._uU(13," ClinVar Clinical Significance: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,yi,2,1,"ng-container",18),n.qZA()(),n.TgZ(16,"div",14)(17,"div",15),n._uU(18," HGVS Coding: "),n.qZA(),n.TgZ(19,"div",16),n.YNc(20,Ci,2,1,"ng-container",18),n.qZA()(),n.TgZ(21,"div",14)(22,"div",15),n._uU(23," HGVS Genomic: "),n.qZA(),n.TgZ(24,"div",16),n.YNc(25,Ai,2,1,"ng-container",18),n.qZA()(),n.TgZ(26,"div",14)(27,"div",15),n._uU(28," HGVS Non-Coding: "),n.qZA(),n.TgZ(29,"div",16),n.YNc(30,Vi,2,1,"ng-container",18),n.qZA()(),n.TgZ(31,"div",14)(32,"div",15),n._uU(33," HGVS Protein: "),n.qZA(),n.TgZ(34,"div",16),n.YNc(35,Si,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),o=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarId)("ngIfElse",o),n.xp6(4),n.Q6J("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",o),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",o)}}function Ni(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",27),n._uU(1," View this variant in the gnomAD browser "),n.qZA()),2&t){const e=n.oxw(3);n.MGl("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}const Sn=function(){return["."]};function Ui(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ni,2,1,"cvc-link-tag",24),n.TgZ(2,"nz-table",25,26)(4,"thead")(5,"tr")(6,"th"),n._uU(7,"Type"),n.qZA(),n.TgZ(8,"th"),n._uU(9,"Allele Frequency"),n.qZA(),n.TgZ(10,"th"),n._uU(11,"Allele Count"),n.qZA(),n.TgZ(12,"th"),n._uU(13,"Allele Number"),n.qZA(),n.TgZ(14,"th"),n._uU(15,"Filter"),n.qZA()()(),n.TgZ(16,"tbody")(17,"tr")(18,"td"),n._uU(19,"Total Exome"),n.qZA(),n.TgZ(20,"td"),n._uU(21),n.ALo(22,"ifEmpty"),n.qZA(),n.TgZ(23,"td"),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.TgZ(26,"td"),n._uU(27),n.ALo(28,"ifEmpty"),n.qZA(),n.TgZ(29,"td"),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA()(),n.TgZ(32,"tr")(33,"td"),n._uU(34,"Total Genome"),n.qZA(),n.TgZ(35,"td"),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.TgZ(38,"td"),n._uU(39),n.ALo(40,"ifEmpty"),n.qZA(),n.TgZ(41,"td"),n._uU(42),n.ALo(43,"ifEmpty"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA()()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.variantInfo.dbsnpRsid),n.xp6(1),n.Q6J("nzData",n.DdM(36,Sn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(19),n.hij(" ",n.xi3(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.xp6(3),n.Oqu(n.xi3(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.xp6(3),n.hij(" ",n.xi3(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.xp6(3),n.Oqu(n.xi3(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.xp6(6),n.hij(" ",n.xi3(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.xp6(3),n.hij(" ",n.xi3(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.xp6(3),n.hij(" ",n.xi3(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.xp6(3),n.Oqu(n.xi3(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Pi(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," Allele Count: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," Allele Number: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," Adjusted Allele Frequency: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function Ei(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," phyloP100way: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," phyloP30way: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," phastCons100way: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," phastCons30way: "),n.qZA(),n.TgZ(23,"div",16),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA()(),n.TgZ(26,"div",14)(27,"div",15),n._uU(28," GERP++: "),n.qZA(),n.TgZ(29,"div",16),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA()(),n.TgZ(32,"div",14)(33,"div",15),n._uU(34," SiPhy: "),n.qZA(),n.TgZ(35,"div",16),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,24,e.variantInfo.phyloP100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,27,e.variantInfo.phyloP30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,30,e.variantInfo.phastcons100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(25,33,e.variantInfo.phastcons30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(31,36,e.variantInfo.gerp,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(37,39,e.variantInfo.siphy,"--")," ")}}function Fi(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function wi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Fi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Bi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,wi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.eglHgvs)}}function Yi(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13)(2,"div",14)(3,"div",15),n._uU(4," EGL Class: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA()(),n.TgZ(8,"div",14)(9,"div",15),n._uU(10," Protein Variant Name: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA()(),n.TgZ(14,"div",14)(15,"div",15),n._uU(16," Transcript Variant Name: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA()(),n.TgZ(20,"div",14)(21,"div",15),n._uU(22," HGVS: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,Bi,2,1,"ng-container",18),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(2),o=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,17,e.variantInfo.eglClass,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,20,e.variantInfo.eglProtein,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,23,e.variantInfo.eglTranscript,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",o)}}function Di(t,i){if(1&t&&(n.TgZ(0,"td"),n._uU(1),n.ALo(2,"ifEmpty"),n.qZA()),2&t){const e=n.oxw(3);n.xp6(1),n.Oqu(n.xi3(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function Li(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function qi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Li,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function ki(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.siftPrediction)}}function ji(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function $i(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ji,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Ri(t,i){if(1&t&&(n.ynx(0),n.YNc(1,$i,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.siftScore)}}function Gi(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Hi(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Gi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Wi(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Hi,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function Xi(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ki(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Xi,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function no(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ki,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HdivScore)}}function to(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function eo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,to,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function io(t,i){if(1&t&&(n.ynx(0),n.YNc(1,eo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function oo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ao(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,oo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function ro(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ao,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.polyphen2HvarScore)}}function co(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function _o(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,co,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function so(t,i){if(1&t&&(n.ynx(0),n.YNc(1,_o,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationtasterPrediction)}}function lo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function po(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,lo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function go(t,i){if(1&t&&(n.ynx(0),n.YNc(1,po,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationtasterScore)}}function fo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function mo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,fo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function uo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,mo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationassessorPrediction)}}function vo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function xo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,vo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function ho(t,i){if(1&t&&(n.ynx(0),n.YNc(1,xo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.mutationassessorScore)}}function yo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function To(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,yo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function zo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,To,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.fathmmPrediction)}}function Co(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Io(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Co,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Zo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Io,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.fathmmScore)}}function Ao(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Qo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ao,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Mo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Qo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.proveanPrediction)}}function Vo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Jo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Vo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function bo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Jo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.proveanScore)}}function So(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Oo(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,So,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function No(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Oo,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.caddConsequence)}}function Uo(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Po(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Uo,2,0,"ng-container",0),n.BQk()),2&t){const e=i.$implicit,o=i.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!o)}}function Eo(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Po,3,2,"ng-container",22),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.variantInfo.caddDetail)}}function Fo(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",25,26)(3,"thead")(4,"tr")(5,"th"),n._uU(6,"Predictor"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Prediction"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"Score"),n.qZA()()(),n.TgZ(11,"tbody")(12,"tr")(13,"td"),n._uU(14,"REVEL"),n.qZA(),n.TgZ(15,"td"),n._uU(16,"N/A"),n.qZA(),n.YNc(17,Di,3,4,"td",0),n.qZA(),n.TgZ(18,"tr")(19,"td"),n._uU(20,"SIFT"),n.qZA(),n.TgZ(21,"td"),n.YNc(22,ki,2,1,"ng-container",18),n.qZA(),n.TgZ(23,"td"),n.YNc(24,Ri,2,1,"ng-container",18),n.qZA()(),n.TgZ(25,"tr")(26,"td"),n._uU(27,"Polyphen2 HDIV"),n.qZA(),n.TgZ(28,"td"),n.YNc(29,Wi,2,1,"ng-container",18),n.qZA(),n.TgZ(30,"td"),n.YNc(31,no,2,1,"ng-container",18),n.qZA()(),n.TgZ(32,"tr")(33,"td"),n._uU(34,"Polyphen2 HVAR"),n.qZA(),n.TgZ(35,"td"),n.YNc(36,io,2,1,"ng-container",18),n.qZA(),n.TgZ(37,"td"),n.YNc(38,ro,2,1,"ng-container",18),n.qZA()(),n.TgZ(39,"tr")(40,"td"),n._uU(41,"LRT"),n.qZA(),n.TgZ(42,"td"),n._uU(43),n.ALo(44,"ifEmpty"),n.qZA(),n.TgZ(45,"td"),n._uU(46),n.ALo(47,"ifEmpty"),n.qZA()(),n.TgZ(48,"tr")(49,"td"),n._uU(50,"MutationTaster"),n.qZA(),n.TgZ(51,"td"),n.YNc(52,so,2,1,"ng-container",18),n.qZA(),n.TgZ(53,"td"),n.YNc(54,go,2,1,"ng-container",18),n.qZA()(),n.TgZ(55,"tr")(56,"td"),n._uU(57,"MutationAssessor"),n.qZA(),n.TgZ(58,"td"),n.YNc(59,uo,2,1,"ng-container",18),n.qZA(),n.TgZ(60,"td"),n.YNc(61,ho,2,1,"ng-container",18),n.qZA()(),n.TgZ(62,"tr")(63,"td"),n._uU(64,"FATHMM"),n.qZA(),n.TgZ(65,"td"),n.YNc(66,zo,2,1,"ng-container",18),n.qZA(),n.TgZ(67,"td"),n.YNc(68,Zo,2,1,"ng-container",18),n.qZA()(),n.TgZ(69,"tr")(70,"td"),n._uU(71,"PROVEAN"),n.qZA(),n.TgZ(72,"td"),n.YNc(73,Mo,2,1,"ng-container",18),n.qZA(),n.TgZ(74,"td"),n.YNc(75,bo,2,1,"ng-container",18),n.qZA()(),n.TgZ(76,"tr")(77,"td"),n._uU(78,"MetaSVM"),n.qZA(),n.TgZ(79,"td"),n._uU(80),n.ALo(81,"ifEmpty"),n.qZA(),n.TgZ(82,"td"),n._uU(83),n.ALo(84,"ifEmpty"),n.qZA()(),n.TgZ(85,"tr")(86,"td"),n._uU(87,"MetaLR"),n.qZA(),n.TgZ(88,"td"),n._uU(89),n.ALo(90,"ifEmpty"),n.qZA(),n.TgZ(91,"td"),n._uU(92),n.ALo(93,"ifEmpty"),n.qZA()(),n.TgZ(94,"tr")(95,"td"),n._uU(96,"CADD"),n.qZA(),n.TgZ(97,"td"),n._uU(98," Consequence: "),n.YNc(99,No,2,1,"ng-container",18),n._UZ(100,"br"),n._uU(101," Consequence Detail: "),n.YNc(102,Eo,2,1,"ng-container",18),n.qZA(),n.TgZ(103,"td"),n._uU(104),n.ALo(105,"ifEmpty"),n._UZ(106,"br"),n._uU(107),n.ALo(108,"ifEmpty"),n.qZA()(),n.TgZ(109,"tr")(110,"td"),n._uU(111,"FATHMM-MKL"),n.qZA(),n.TgZ(112,"td"),n._uU(113),n.ALo(114,"ifEmpty"),n.qZA(),n.TgZ(115,"td"),n._uU(116),n.ALo(117,"ifEmpty"),n.qZA()(),n.TgZ(118,"tr")(119,"td"),n._uU(120,"fitCons"),n.qZA(),n.TgZ(121,"td"),n._uU(122,"N/A"),n.qZA(),n.TgZ(123,"td"),n._uU(124),n.ALo(125,"ifEmpty"),n.qZA()()()(),n.BQk()),2&t){const e=n.oxw(2),o=n.MAs(2);n.xp6(1),n.Q6J("nzData",n.DdM(80,Sn))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(16),n.Q6J("ngIf",e.variantInfo.revelScore),n.xp6(5),n.Q6J("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",o),n.xp6(5),n.Q6J("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",o),n.xp6(5),n.Q6J("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",o),n.xp6(5),n.Oqu(n.xi3(44,47,e.variantInfo.lrtPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(47,50,e.variantInfo.lrtScore,"--")),n.xp6(6),n.Q6J("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",o),n.xp6(5),n.Q6J("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",o),n.xp6(5),n.Q6J("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",o),n.xp6(5),n.Q6J("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",o),n.xp6(2),n.Q6J("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",o),n.xp6(5),n.Oqu(n.xi3(81,53,e.variantInfo.metasvmPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(84,56,e.variantInfo.metasvmScore,"--")),n.xp6(6),n.Oqu(n.xi3(90,59,e.variantInfo.metalrPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(93,62,e.variantInfo.metalrScore,"--")),n.xp6(7),n.Q6J("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",o),n.xp6(3),n.Q6J("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",o),n.xp6(2),n.hij(" ",n.xi3(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.xp6(3),n.hij(" ",n.xi3(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.xp6(6),n.Oqu(n.xi3(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(117,74,e.variantInfo.fathmmMklScore,"--")),n.xp6(8),n.Oqu(n.xi3(125,77,e.variantInfo.fitconsScore,"--"))}}function wo(t,i){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2)(2,"nz-card-tab")(3,"nz-tabset",3)(4,"nz-tab",4),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(0))}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(1))}),n.qZA(),n.TgZ(6,"nz-tab",6),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(2))}),n.qZA(),n.TgZ(7,"nz-tab",7),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(3))}),n.qZA(),n.TgZ(8,"nz-tab",8),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(4))}),n.qZA(),n.TgZ(9,"nz-tab",9),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(5))}),n.qZA(),n.TgZ(10,"nz-tab",10),n.NdJ("nzClick",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.tabIndex.next(6))}),n.qZA()()(),n.ynx(11,11),n.ALo(12,"async"),n.YNc(13,di,30,23,"ng-container",12),n.YNc(14,Oi,36,32,"ng-container",12),n.YNc(15,Ui,47,37,"ng-container",12),n.YNc(16,Pi,20,21,"ng-container",12),n.YNc(17,Ei,38,42,"ng-container",12),n.YNc(18,Yi,25,26,"ng-container",12),n.YNc(19,Fo,126,81,"ng-container",12),n.BQk(),n.qZA(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(8),n.Q6J("ngSwitch",n.lcZ(12,9,e.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3),n.xp6(1),n.Q6J("ngSwitchCase",4),n.xp6(1),n.Q6J("ngSwitchCase",5),n.xp6(1),n.Q6J("ngSwitchCase",6)}}function Bo(t,i){1&t&&n._uU(0,"--")}let Yo=(()=>{class t{constructor(){this.tabIndex=new In.X(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","Conservation Analysis Tools",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],["gnomadTable",""],[3,"href"]],template:function(e,o){1&e&&(n.YNc(0,wo,20,11,"ng-container",0),n.YNc(1,Bo,1,0,"ng-template",null,1,n.W1O)),2&e&&n.Q6J("ngIf",o.variantInfo)},dependencies:[_.sg,_.O5,_.RF,_.n9,gn.xH,gn.xw,O.N8,O.Uo,O._C,O.Om,O.p0,O.$Z,y.bd,y._i,bn.l,m.t3,m.SK,_.Ov,ai.D],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var Do=a(3493),Lo=a(3180);function qo(t,i){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const e=i.$implicit;n.xp6(1),n.Oqu(e)}}function ko(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,qo,2,1,"nz-tag",25),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.variantAliases)}}function jo(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function $o(t,i){1&t&&n._UZ(0,"cvc-variant-type-tag",28),2&t&&n.Q6J("variantType",i.$implicit)}function Ro(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,$o,1,1,"cvc-variant-type-tag",27),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.variantTypes)}}function Go(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Ho(t,i){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const e=i.$implicit;n.xp6(1),n.Oqu(e)}}function Wo(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Ho,2,1,"nz-tag",25),n.qZA(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",e.hgvsDescriptions)}}function Xo(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Ko(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list")(2,"nz-tag"),n._uU(3),n.qZA()(),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(3),n.Oqu(e.maneSelectTranscript)}}function na(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None found"),n.qZA())}function ta(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",29),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.Q6J("href","https://reg.genome.network/allele/"+e.alleleRegistryId+".html"),n.xp6(1),n.hij(" ",e.alleleRegistryId," ")}}function ea(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"Unregistered"),n.qZA())}function ia(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",30),n._uU(2),n.qZA(),n.BQk()),2&t){const e=i.$implicit;n.xp6(1),n.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.xp6(1),n.hij(" ",e," ")}}function oa(t,i){if(1&t&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,ia,3,2,"ng-container",25),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngForOf",e.clinvarIds)}}function aa(t,i){if(1&t&&(n.ynx(0),n.YNc(1,oa,2,1,"cvc-tag-list",6),n.BQk()),2&t){const e=n.oxw().ngIf,o=n.MAs(37);n.xp6(1),n.Q6J("ngIf","N/A"!==e.clinvarIds[0]&&"NONE FOUND"!==e.clinvarIds[0])("ngIfElse",o)}}function ra(t,i){if(1&t&&(n.TgZ(0,"span",26),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Oqu(e.clinvarIds[0])}}function ca(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function _a(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions-item",31)(1,"cvc-link-tag",32),n._uU(2," Variant Report "),n.qZA()()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("href",e.openCravatUrl)}}function sa(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-col",2),n._UZ(2,"cvc-my-variant-info",33),n.qZA(),n.BQk()),2&t){const e=i.ngIf;n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("variantInfo",e)}}function la(t,i){1&t&&(n.TgZ(0,"nz-col",2)(1,"nz-card",34),n._UZ(2,"cvc-empty-revisable",35),n.qZA()()),2&t&&n.Q6J("nzSpan",24)}const pa=function(){return[8,16]},On=function(){return[8,8]},ga=function(){return{xxl:2,xl:2,lg:1,md:1,sm:1,xs:1}};function fa(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"nz-row",1)(4,"nz-col",3)(5,"nz-descriptions",4)(6,"nz-descriptions-item",5),n.YNc(7,ko,3,1,"ng-container",6),n.YNc(8,jo,2,0,"ng-template",null,7,n.W1O),n.qZA(),n.TgZ(10,"nz-descriptions-item",8),n.YNc(11,Ro,3,1,"ng-container",6),n.YNc(12,Go,2,0,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(14,"nz-descriptions-item",8),n.YNc(15,Wo,3,1,"ng-container",6),n.YNc(16,Xo,2,0,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(18,"nz-descriptions-item",11),n.YNc(19,Ko,4,1,"ng-container",6),n.YNc(20,na,2,0,"ng-template",null,12,n.W1O),n.qZA()()(),n.TgZ(22,"nz-col",2),n._UZ(23,"cvc-coordinates-card",13),n.qZA()()(),n.TgZ(24,"nz-col",14)(25,"nz-row",1)(26,"nz-col",2)(27,"nz-descriptions",4)(28,"nz-descriptions-item",15),n._UZ(29,"cvc-gene-tag",16),n.qZA(),n.TgZ(30,"nz-descriptions-item",17),n.YNc(31,ta,2,2,"cvc-link-tag",18),n.YNc(32,ea,2,0,"ng-template",null,19,n.W1O),n.qZA(),n.TgZ(34,"nz-descriptions-item",8),n.YNc(35,aa,2,2,"ng-container",6),n.YNc(36,ra,2,1,"ng-template",null,20,n.W1O),n.YNc(38,ca,2,0,"ng-template",null,21,n.W1O),n.qZA(),n.YNc(40,_a,3,1,"nz-descriptions-item",22),n.qZA()(),n.YNc(41,sa,3,2,"ng-container",6),n.ALo(42,"ngrxPush"),n.YNc(43,la,3,1,"ng-template",null,23,n.W1O),n.qZA()(),n.TgZ(45,"nz-col",3),n._UZ(46,"cvc-molecular-profiles-table",24),n.qZA()(),n.BQk()),2&t){const e=i.ngIf,o=n.MAs(9),r=n.MAs(13),s=n.MAs(17),g=n.MAs(21),v=n.MAs(33),h=n.MAs(39),C=n.MAs(44),A=n.oxw();n.xp6(1),n.Q6J("nzGutter",n.DdM(32,pa)),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("nzGutter",n.DdM(33,On)),n.xp6(2),n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",e.variantAliases.length>0)("ngIfElse",o),n.xp6(3),n.Q6J("nzTitle",e.variantTypes.length>1?"Variant Types":"Variant Type"),n.xp6(1),n.Q6J("ngIf",e.variantTypes.length>0)("ngIfElse",r),n.xp6(3),n.Q6J("nzTitle",e.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.xp6(1),n.Q6J("ngIf",e.hgvsDescriptions.length>0)("ngIfElse",s),n.xp6(4),n.Q6J("ngIf",e.maneSelectTranscript)("ngIfElse",g),n.xp6(3),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("cvcVariantId",e.id),n.xp6(2),n.Q6J("nzGutter",n.DdM(34,On)),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzColumn",n.DdM(35,ga)),n.xp6(2),n.Q6J("gene",e.gene),n.xp6(2),n.Q6J("ngIf",e.alleleRegistryId&&"unregistered"!=e.alleleRegistryId)("ngIfElse",v),n.xp6(3),n.Q6J("nzTitle",e.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.xp6(1),n.Q6J("ngIf",e.clinvarIds.length>0)("ngIfElse",h),n.xp6(5),n.Q6J("ngIf",e.openCravatUrl),n.xp6(1),n.Q6J("ngIf",n.lcZ(42,30,A.variantInfo$))("ngIfElse",C),n.xp6(5),n.MGl("cvcTitle","",e.name," Molecular Profiles"),n.Q6J("variantId",e.id)}}let ma=(()=>{class t{constructor(e,o){var r;if(this.gql=e,this.route=o,null==(r=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:r});let s=this.queryRef.valueChanges;this.loading$=s.pipe((0,w.j)("loading"),(0,Cn.O)(!0)),this.variant$=s.pipe((0,w.j)("data","variant")),this.variantInfo$=s.pipe((0,w.j)("data","variant","myVariantInfo")),this.subscribable={entityType:z.o71.Variant,id:r}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z.Bo4),n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["noAliases",""],[3,"nzTitle"],["noTypes",""],["noDescriptions",""],["nzTitle","MANE Select Transcript"],["noMane",""],[3,"cvcVariantId"],["nzSpan","12"],["nzTitle","Gene"],[3,"gene"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["nzTitle","OpenCRAVAT",4,"ngIf"],["noVariantInfo",""],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","OpenCRAVAT"],["tooltip","View on OpenCRAVAT",3,"href"],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide Representative Variant Coordinates"]],template:function(e,o){1&e&&(n.YNc(0,fa,47,36,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,o.variant$))},dependencies:[_.sg,_.O5,m.t3,m.SK,pn.R7,pn.uj,y.bd,sn.ZU,G.j,ei.m,ii.$,An.H,oi.j,bn.l,Yo,Do.J,Lo.B,E.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})();var da=a(7441);let ua=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:z.o71.Variant}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(x.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,o){1&e&&n._UZ(0,"cvc-event-feed",0),2&e&&n.Q6J("subscribable",o.subscribable)},dependencies:[da.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),va=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,Jn.t]}),t})();const xa=[{path:"",component:Oe,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ma,data:{breadcrumb:"Summary"}},{path:"comments",component:Ee,data:{breadcrumb:"Comments"}},{path:"revisions",component:je,data:{breadcrumb:"Revisions"}},{path:"flags",component:De,data:{breadcrumb:"Flags"}},{path:"events",component:ua,data:{breadcrumb:"Events"}}]}];let ha=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[x.Bz.forChild(xa),ti,Ue,qe,Be,va,x.Bz]}),t})(),ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[_.ez,ha,Z.sL,Q.PV,F.KJ,V.zf,m.Jb,H.L,zn.$6,nn.Z,on.c,c.m,N.U,en.D,tn.g,B.s,K.m,Zt]}),t})()}}]); \ No newline at end of file diff --git a/server/public/647.7f16f6662f063a50.js b/server/public/647.7f16f6662f063a50.js new file mode 100644 index 000000000..0396814ec --- /dev/null +++ b/server/public/647.7f16f6662f063a50.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[647],{8923:(R,y,n)=>{n.d(y,{z:()=>_});var o=n(5879),t=n(5695),u=n(551),v=n(6967);let _=(()=>{class c{constructor(){this.cvcShowLabel=!0,this.cvcShowTooltip=!0,this.showIcon=!0}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275cmp=o.Xpm({type:c,selectors:[["cvc-attribute-tag"]],inputs:{cvcAttrValue:"cvcAttrValue",iconPropertyType:"iconPropertyType",cvcShowLabel:"cvcShowLabel",cvcShowTooltip:"cvcShowTooltip",showIcon:"showIcon"},decls:5,vars:7,consts:[["nz-icon","",3,"nzType"]],template:function(s,T){1&s&&(o.TgZ(0,"nz-tag"),o._UZ(1,"i",0),o.ALo(2,"evidenceEnumDisplay"),o._uU(3),o.ALo(4,"evidenceEnumDisplay"),o.qZA()),2&s&&(o.xp6(1),o.Q6J("nzType",o.xi3(2,2,T.cvcAttrValue,"icon-name")),o.xp6(2),o.hij(" ",o.lcZ(4,5,T.cvcAttrValue),"\n"))},dependencies:[t.j,u.Ls,v.Do],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),c})()},7364:(R,y,n)=>{n.d(y,{_:()=>E});var o=n(6814),t=n(5695),u=n(2524),v=n(551),_=n(6109),c=n(5879);let E=(()=>{class s{}return s.\u0275fac=function(M){return new(M||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[o.ez,t.X,v.PV,_.cg,u.s]}),s})()},9183:(R,y,n)=>{n.d(y,{P:()=>D});var o=n(5879),t=n(6814),u=n(6109);function v(a,h){1&a&&(o.ynx(0),o._uU(1," N/A "),o.BQk())}function _(a,h){1&a&&(o.ynx(0),o._uU(1," Not applicable "),o.BQk())}function c(a,h){if(1&a&&(o.TgZ(0,"span",4),o.ynx(1,0),o.YNc(2,v,2,0,"ng-container",5),o.YNc(3,_,2,0,"ng-container",6),o.BQk(),o.qZA()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("ngSwitch",r.cvcDisplayMode),o.xp6(1),o.Q6J("ngSwitchCase","small")}}function E(a,h){1&a&&(o.ynx(0),o._uU(1," \u2013\xa0\u2013 "),o.BQk())}function s(a,h){1&a&&(o.ynx(0),o._uU(1,"Not specified"),o.BQk())}function T(a,h){if(1&a&&(o.TgZ(0,"span",7),o.ynx(1,0),o.YNc(2,E,2,0,"ng-container",5),o.YNc(3,s,2,0,"ng-container",6),o.BQk(),o.qZA()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("ngSwitch",r.cvcDisplayMode),o.xp6(1),o.Q6J("ngSwitchCase","small")}}function M(a,h){1&a&&(o.ynx(0),o._uU(1,"!?"),o.BQk())}function z(a,h){1&a&&(o.ynx(0),o._uU(1,"Unspecified"),o.BQk())}function O(a,h){if(1&a&&(o.TgZ(0,"span",8),o.ynx(1,0),o.YNc(2,M,2,0,"ng-container",5),o.YNc(3,z,2,0,"ng-container",6),o.BQk(),o.qZA()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("ngSwitch",r.cvcDisplayMode),o.xp6(1),o.Q6J("ngSwitchCase","small")}}let D=(()=>{class a{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=o.Xpm({type:a,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(r,x){1&r&&(o.ynx(0,0),o.YNc(1,c,4,2,"span",1),o.YNc(2,T,4,2,"span",2),o.YNc(3,O,4,2,"span",3),o.BQk()),2&r&&(o.Q6J("ngSwitch",x.cvcEmptyCategory),o.xp6(1),o.Q6J("ngSwitchCase","not-applicable"),o.xp6(1),o.Q6J("ngSwitchCase","unspecified"),o.xp6(1),o.Q6J("ngSwitchCase","invalid"))},dependencies:[t.RF,t.n9,t.ED,u.SY],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]}),a})()},8916:(R,y,n)=>{n.d(y,{M:()=>_});var o=n(6814),t=n(551),u=n(6109),v=n(5879);let _=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=v.oAB({type:c}),c.\u0275inj=v.cJS({imports:[o.ez,u.cg,t.PV]}),c})()},9700:(R,y,n)=>{n.d(y,{m:()=>L});var r,o=n(655),t=n(5879),u=n(2024),v=n(313),_=n(1791),c=n(4223),E=n(7473),s=n(951),T=n(6814),M=n(2840),z=n(855),O=n(1958),D=n(6109),a=n(2669),h=n(8091);function x(A,d){if(1&A){const l=t.EpF();t.TgZ(0,"button",4),t.NdJ("click",function(){t.CHM(l);const g=t.oxw(2);return t.KtG(g.moderate(g.evidenceStatuses.Accepted))}),t._uU(1),t.qZA()}if(2&A){const l=t.oxw().ngrxLet,C=t.oxw();t.Q6J("nzTooltipTrigger",l.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==l.mostRecentOrg?null:l.mostRecentOrg.name)),t.xp6(1),t.hij(" Accept ",C.entityType," ")}}function P(A,d){if(1&A){const l=t.EpF();t.ynx(0),t.TgZ(1,"nz-spin",1),t.YNc(2,x,2,3,"button",2),t._uU(3," \xa0 "),t.TgZ(4,"button",3),t.NdJ("click",function(){t.CHM(l);const g=t.oxw();return t.KtG(g.moderate(g.evidenceStatuses.Rejected))}),t._uU(5),t.qZA()(),t.BQk()}if(2&A){const l=d.ngrxLet,C=t.oxw();t.xp6(1),t.Q6J("nzSpinning",C.isSubmitting),t.xp6(1),t.Q6J("ngIf",l.canModerate),t.xp6(2),t.Q6J("nzTooltipTrigger",l.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==l.mostRecentOrg?null:l.mostRecentOrg.name)),t.xp6(1),t.hij(" Reject ",C.entityType," ")}}let L=((r=class{constructor(d,l,C,g){this.revertEvidenceGQL=d,this.revertAssertionGQL=l,this.networkErrorService=C,this.viewerService=g,this.onModerated=new t.vpe,this.evidenceStatuses=v.RTy,this.isSubmitting=!1,this.showConfirm=!1,this.moderateAssertionMutator=new u.U(this.networkErrorService),this.moderateEvidenceMutator=new u.U(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.entityId)throw new Error("Must pass in an id to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityType)throw new Error("Must pass in an entityType to the CvcEntitySubscriptionButtonComponent");this.viewer$.pipe((0,c.j)("mostRecentOrg"),(0,_.t)(this)).subscribe(d=>this.mostRecentOrg=d)}ngOnChanges(d){d.viewer&&console.log("*** viewer updated ***",d.viewer.currentValue)}moderate(d){let l;this.isSubmitting=!0,l="EvidenceItem"===this.entityType?this.moderateEvidenceMutator.mutate(this.revertEvidenceGQL,{input:{evidenceItemId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:d}}):this.moderateAssertionMutator.mutate(this.revertAssertionGQL,{input:{assertionId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:d}}),l.submitSuccess$.pipe((0,_.t)(this)).subscribe(C=>{C&&(this.isSubmitting=!1,this.showConfirm=!1,this.onModerated.emit(d))}),l.submitError$.pipe((0,_.t)(this)).subscribe(C=>{C&&(this.isSubmitting=!1,this.showConfirm=!1,this.onModerated.emit(C))}),l.isSubmitting$.pipe((0,_.t)(this)).subscribe(C=>{this.isSubmitting=C})}}).\u0275fac=function(d){return new(d||r)(t.Y36(v.MYm),t.Y36(v._jb),t.Y36(E.Y),t.Y36(s.a))},r.\u0275cmp=t.Xpm({type:r,selectors:[["cvc-moderate-entity-buttons"]],inputs:{entityType:"entityType",entityId:"entityId"},outputs:{onModerated:"onModerated"},features:[t.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzSpinning"],["nzType","primary","nzSize","large","nz-button","","nz-tooltip","",3,"nzTooltipTrigger","nzTooltipTitle","click",4,"ngIf"],["nzDanger","","nzType","primary","nzSize","large","nz-button","","nz-tooltip","",3,"nzTooltipTrigger","nzTooltipTitle","click"],["nzType","primary","nzSize","large","nz-button","","nz-tooltip","",3,"nzTooltipTrigger","nzTooltipTitle","click"]],template:function(d,l){1&d&&t.YNc(0,P,6,5,"ng-container",0),2&d&&t.Q6J("ngrxLet",l.viewer$)},dependencies:[T.O5,M.ix,z.w,O.dQ,D.SY,a.W,h.eJ],styles:["[_nghost-%COMP%]{display:block}.center[_ngcontent-%COMP%]{display:flex;justify-content:center}"],changeDetection:0}),r);L=(0,o.gn)([(0,_.c)()],L)},451:(R,y,n)=>{n.d(y,{P:()=>T});var o=n(6814),t=n(6223),u=n(2840),v=n(95),_=n(2574),c=n(2669),E=n(6109),s=n(5879);let T=(()=>{class M{}return M.\u0275fac=function(O){return new(O||M)},M.\u0275mod=s.oAB({type:M}),M.\u0275inj=s.cJS({imports:[o.ez,t.u5,t.UX,u.sL,E.cg,c.j,_.zf,v.Jb]}),M})()},4794:(R,y,n)=>{n.d(y,{e:()=>C});var P,o=n(655),t=n(5879),u=n(2024),v=n(313),_=n(1791),c=n(8645),E=n(4223),s=n(7473),T=n(951),M=n(2840),z=n(855),O=n(1958),D=n(551),a=n(6109),h=n(67),r=n(2669),x=n(2574);function L(g,f){if(1&g&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&g){const p=t.oxw();t.xp6(1),t.hij("Revert this ",p.entityType," to Submitted?")}}function A(g,f){if(1&g){const p=t.EpF();t.TgZ(0,"span")(1,"button",8),t.NdJ("click",function(){t.CHM(p);const I=t.oxw(2);return t.KtG(I.revert())}),t._uU(2," Revert "),t.qZA()()}if(2&g){const p=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTrigger",p.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==p.mostRecentOrg?null:p.mostRecentOrg.name))}}function d(g,f){if(1&g){const p=t.EpF();t.TgZ(0,"span")(1,"button",9),t.NdJ("click",function(){t.CHM(p);const I=t.oxw(2);return t.KtG(I.showConfirm=!1)}),t._uU(2," Cancel "),t.qZA()()}}function l(g,f){if(1&g&&(t.TgZ(0,"nz-spin",5)(1,"nz-space",6),t.YNc(2,A,3,2,"span",7),t.YNc(3,d,3,0,"span",7),t.qZA()()),2&g){const p=t.oxw();t.Q6J("nzSpinning",p.isSubmitting)}}let C=((P=class{constructor(f,p,B,I){this.revertEvidenceGQL=f,this.revertAssertionGQL=p,this.networkErrorService=B,this.viewerService=I,this.onReverted=new t.vpe,this.isSubmitting=!1,this.showConfirm=!1,this.destroy$=new c.x,this.revertAssertionMutator=new u.U(this.networkErrorService),this.revertEvidenceMutator=new u.U(this.networkErrorService),this.viewer$=this.viewerService.viewer$}revert(){let f;this.isSubmitting=!0,f="EvidenceItem"===this.entityType?this.revertEvidenceMutator.mutate(this.revertEvidenceGQL,{input:{evidenceItemId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:v.RTy.Submitted}}):this.revertAssertionMutator.mutate(this.revertAssertionGQL,{input:{assertionId:this.entityId,organizationId:this.mostRecentOrg?.id,newStatus:v.RTy.Submitted}}),f.submitSuccess$.pipe((0,_.t)(this)).subscribe(p=>{p&&(this.isSubmitting=!1,this.showConfirm=!1,this.onReverted.emit(!0))}),f.submitError$.pipe((0,_.t)(this)).subscribe(p=>{p&&(this.isSubmitting=!1,this.showConfirm=!1,this.onReverted.emit(p))}),f.isSubmitting$.pipe((0,_.t)(this)).subscribe(p=>{this.isSubmitting=p})}handleConfirmModalCancel(){this.showConfirm=!1}ngOnInit(){if(void 0===this.entityId)throw new Error("Must pass in an id to the CvcEntitySubscriptionButtonComponent");if(void 0===this.entityType)throw new Error("Must pass in an entityType to the CvcEntitySubscriptionButtonComponent");this.viewer$.pipe((0,E.j)("mostRecentOrg"),(0,_.t)(this)).subscribe(f=>this.mostRecentOrg=f)}}).\u0275fac=function(f){return new(f||P)(t.Y36(v.MYm),t.Y36(v._jb),t.Y36(s.Y),t.Y36(T.a))},P.\u0275cmp=t.Xpm({type:P,selectors:[["cvc-revert-entity-button"]],inputs:{entityType:"entityType",entityId:"entityId"},outputs:{onReverted:"onReverted"},decls:7,vars:5,consts:[["nz-button","","nz-tooltip","Revert to Submitted","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","undo"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["confirmModalTitle",""],["confirmModalContent",""],[3,"nzSpinning"],["nzDirection","horizontal"],[4,"nzSpaceItem"],["nzType","primary","nzSize","small","nz-button","","nz-tooltip","",3,"nzTooltipTrigger","nzTooltipTitle","click"],["nz-button","","nzSize","small",3,"click"]],template:function(f,p){if(1&f&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return p.showConfirm=!0}),t._UZ(1,"i",1),t.qZA(),t.TgZ(2,"nz-modal",2),t.NdJ("nzVisibleChange",function(I){return p.showConfirm=I})("nzOnCancel",function(){return p.handleConfirmModalCancel()}),t.YNc(3,L,2,1,"ng-template",null,3,t.W1O),t.YNc(5,l,4,1,"ng-template",null,4,t.W1O),t.qZA()),2&f){const B=t.MAs(4),I=t.MAs(6);t.Q6J("nzLoading",p.isSubmitting),t.xp6(2),t.Q6J("nzVisible",p.showConfirm)("nzContent",I)("nzTitle",B)("nzFooter",null)}},dependencies:[M.ix,z.w,O.dQ,D.Ls,a.SY,h.du,r.W,x.NU,x.$1],styles:["[_nghost-%COMP%]{display:block}"]}),P);C=(0,o.gn)([(0,_.c)()],C)},3786:(R,y,n)=>{n.d(y,{G:()=>M});var o=n(6814),t=n(2840),u=n(551),v=n(6109),_=n(67),c=n(2669),E=n(2574),s=n(6223),T=n(5879);let M=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=T.oAB({type:z}),z.\u0275inj=T.cJS({imports:[o.ez,s.u5,s.UX,t.sL,u.PV,v.cg,_.Qp,c.j,E.zf]}),z})()},5959:(R,y,n)=>{n.d(y,{u:()=>Z});var o=n(2023),t=n(5879),u=n(6814),v=n(4190),_=n(7417),c=n(5695),E=n(551),s=n(5676),T=n(7398),M=n(2181),z=n(313),O=n(2962),D=n(8125),a=n(4138),h=n(9408),r=n(1887),x=n(8091),P=n(2616);function L(e,m){if(1&e&&(t._UZ(0,"i",7),t.ALo(1,"entityColor"),t._uU(2)),2&e){const i=t.oxw().ngIf;t.Q6J("nzTwotoneColor",t.lcZ(1,2,"VariantGroup")),t.xp6(2),t.hij(" ",i.name," ")}}function A(e,m){if(1&e&&t._UZ(0,"cvc-variant-tag",10),2&e){const i=m.$implicit;t.Q6J("enablePopover",!1)("variant",i.node)}}function d(e,m){if(1&e&&(t.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),t.YNc(2,A,1,2,"cvc-variant-tag",9),t.qZA()()),2&e){const i=t.oxw().ngIf;t.xp6(2),t.Q6J("ngForOf",i.variants.edges)}}function l(e,m){if(1&e&&t._UZ(0,"cvc-source-tag",13),2&e){const i=m.$implicit;t.Q6J("enablePopover",!1)("source",i)}}function C(e,m){if(1&e&&(t.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),t.YNc(2,l,1,2,"cvc-source-tag",12),t.qZA()()),2&e){const i=t.oxw().ngIf;t.xp6(2),t.Q6J("ngForOf",i.sources)}}function g(e,m){if(1&e&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,L,3,4,"ng-template",null,3,t.W1O),t._uU(4),t.TgZ(5,"nz-descriptions",4),t.YNc(6,d,3,1,"nz-descriptions-item",5),t.YNc(7,C,3,1,"nz-descriptions-item",6),t.qZA()(),t.BQk()),2&e){const i=m.ngIf,U=t.MAs(3);t.xp6(1),t.Q6J("nzTitle",U),t.xp6(3),t.hij(" ",i.description," "),t.xp6(1),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",i.variants.edges.length>0),t.xp6(1),t.Q6J("ngIf",i.sources.length>0)}}let f=(()=>{class e{constructor(i){this.gql=i}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,T.U)(({data:i})=>i?.variantGroup),(0,M.h)(s.ep))}}return e.\u0275fac=function(i){return new(i||e)(t.Y36(z.Zo2))},e.\u0275cmp=t.Xpm({type:e,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","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(i,U){1&i&&(t.TgZ(0,"div",0),t.YNc(1,g,8,5,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,U.variantGroup$)))},dependencies:[u.sg,u.O5,O.bd,D.R7,D.uj,E.Ls,a.T,h.I,r.$,x.fM,P.a],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}"]}),e})();var p=n(3103);function B(e,m){}function I(e,m){if(1&e&&(t.ynx(0),t.TgZ(1,"a",4),t.YNc(2,B,0,0,"ng-template",5),t.qZA(),t.BQk()),2&e){const i=t.oxw(),U=t.MAs(2);t.xp6(1),t.Q6J("routerLink",i.variantgroup.link),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function W(e,m){}function V(e,m){if(1&e&&t._UZ(0,"cvc-variant-group-popover",9),2&e){const i=t.oxw(3);t.Q6J("variantGroupId",i.variantgroup.id)}}function K(e,m){if(1&e&&t.YNc(0,V,1,1,"cvc-variant-group-popover",8),2&e){const i=t.oxw(2);t.Q6J("ngIf",i.enablePopover)}}function Q(e,m){if(1&e&&(t.TgZ(0,"nz-tag",6),t.YNc(1,W,0,0,"ng-template",5),t.qZA(),t.YNc(2,K,1,1,"ng-template",null,7,t.W1O)),2&e){const i=t.MAs(3),U=t.oxw(),S=t.MAs(6);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",i)("nzPopoverTrigger",U.enablePopover?"hover":null),t.xp6(1),t.Q6J("ngTemplateOutlet",S)}}function G(e,m){}function w(e,m){if(1&e&&t.YNc(0,G,0,0,"ng-template",5),2&e){t.oxw();const i=t.MAs(2);t.Q6J("ngTemplateOutlet",i)}}function J(e,m){if(1&e&&(t.TgZ(0,"cvc-icon-badges",10),t._UZ(1,"i",11),t.ALo(2,"entityColor"),t.qZA(),t._uU(3)),2&e){const i=t.oxw();t.Q6J("flagged",i.variantgroup.flagged)("entityColor",i.iconColor),t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(2,4,"VariantGroup")),t.xp6(2),t.hij(" ",i.variantgroup.name,"\n")}}let Z=(()=>{class e{set variantgroup(i){if(!i)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=i}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,o.f)("VariantGroup")}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(i,U){if(1&i&&(t.YNc(0,I,3,2,"ng-container",0),t.YNc(1,Q,4,4,"ng-template",null,1,t.W1O),t.YNc(3,w,1,1,"ng-template",null,2,t.W1O),t.YNc(5,J,4,6,"ng-template",null,3,t.W1O)),2&i){const S=t.MAs(4);t.Q6J("ngIf",U.linked)("ngIfElse",S)}},dependencies:[u.O5,u.tP,v.rH,_.lU,c.j,E.Ls,f,p.b,P.a],encapsulation:2,changeDetection:0}),e})()},3641:(R,y,n)=>{n.d(y,{G:()=>h});var o=n(6814),t=n(4190),u=n(7417),v=n(5695),_=n(551),c=n(366),E=n(8641),s=n(7528),T=n(2524),M=n(2962),z=n(8125),O=n(5879);let D=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=O.oAB({type:r}),r.\u0275inj=O.cJS({imports:[o.ez,M.vh,z.q6,_.PV,E.s,s.Q,c.$,T.s]}),r})();var a=n(3146);let h=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=O.oAB({type:r}),r.\u0275inj=O.cJS({imports:[o.ez,t.Bz,u.$6,v.X,_.PV,D,T.s,a.C]}),r})()}}]); \ No newline at end of file diff --git a/server/public/6607.5f344ae9afd6de9b.js b/server/public/6607.5f344ae9afd6de9b.js deleted file mode 100644 index 8b3118da2..000000000 --- a/server/public/6607.5f344ae9afd6de9b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6607],{1416:(_,h,i)=>{i.d(h,{Z:()=>a});var t=i(6814),m=i(4190),s=i(5106),v=i(6683),r=i(2840),n=i(279),p=i(3903),c=i(1403),u=i(5879);let a=(()=>{class o{}return o.\u0275fac=function(T){return new(T||o)},o.\u0275mod=u.oAB({type:o}),o.\u0275inj=u.cJS({imports:[t.ez,m.Bz,r.sL,p.L,v.S,s.g,c.Q,n.s]}),o})()},6278:(_,h,i)=>{i.d(h,{l:()=>S});var t=i(655),m=i(6223),s=i(2024),v=i(3684),r=i(1565),n=i(1791),p=i(1759);const a=(0,i(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Evidence Item",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"New Evidence Item"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated evidence.",watchVariantMolecularProfileId:!0}},{key:"sourceId",type:"source-select",props:{required:!0}},{key:"evidenceType",type:"type-select",props:{required:!0}},{key:"evidenceDirection",type:"direction-select",props:{required:!0}},{key:"significance",type:"significance-select",props:{required:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{required:!0}},{key:"rating",type:"rating",props:{required:!0}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"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. ",placeholder:"Enter an Evidence Statement",extraType:"description",description:'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).',label:"Evidence Statement",required:!0,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!1,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item"}}]}]}],p.C);var E,o=i(7398),g=i(2181),T=i(5676),e=i(5879),D=i(313),P=i(4190),M=i(7473),q=i(6814),L=i(3903),w=i(5545),b=i(3599),F=i(4634),$=i(6822),U=i(8091);const R=function(f){return["/evidence",f,"summary"]};function N(f,d){if(1&f&&(e._uU(0," View your new EID "),e.TgZ(1,"a",5),e._uU(2,"here"),e.qZA(),e._uU(3,". You will be redirected shortly. ")),2&f){const l=e.oxw();e.xp6(1),e.Q6J("routerLink",e.VKq(1,R,l.newEvidenceId))}}function X(f,d){if(1&f&&e._UZ(0,"nz-alert",8),2&f){e.oxw();const l=e.MAs(3);e.Q6J("nzMessage",l)}}function B(f,d){if(1&f&&(e.TgZ(0,"p")(1,"strong"),e._uU(2," Evidence for this Molecular Profile has already been curated from this Source. Please double check that your Evidence has not already been entered. "),e.qZA()(),e._UZ(3,"cvc-evidence-table",9)),2&f){const l=e.oxw(2);e.xp6(3),e.Q6J("molecularProfileId",l.selectedMpId)("sourceId",l.selectedSourceId)}}function z(f,d){if(1&f&&(e.ynx(0),e.YNc(1,X,1,1,"nz-alert",6),e.YNc(2,B,4,2,"ng-template",null,7,e.W1O),e._UZ(4,"br"),e.BQk()),2&f){const l=d.ngIf;e.xp6(1),e.Q6J("ngIf",l>0)}}function Q(f,d){if(1&f){const l=e.EpF();e.TgZ(0,"form",10),e.NdJ("ngSubmit",function(){e.CHM(l);const y=e.oxw();return e.KtG(y.onSubmit(y.model))}),e.TgZ(1,"formly-form",11),e.NdJ("modelChange",function(y){e.CHM(l);const C=e.oxw();return C.model=y,e.KtG(C.onModelChange(y))}),e.qZA()()}if(2&f){const l=e.oxw();e.Q6J("formGroup",l.form),e.xp6(1),e.Q6J("form",l.form)("fields",l.fields)("model",l.model)("options",l.options)}}function W(f,d){1&f&&e._uU(0," Loading Evidence Item... ")}let S=((E=class{constructor(d,l,I,y,C,K){this.revisableFieldsGQL=d,this.submitEvidenceGQL=l,this.existingEvidenceGQL=I,this.cdr=y,this.route=C,this.form=new m.nJ({}),this.fields=a,this.state=new v._,this.options={formState:this.state},this.submitEvidenceMutator=new s.U(K),this.routeSub=this.route.queryParams.subscribe(O=>{if(O.existingEvidenceId){this.existingEvidenceId=+O.existingEvidenceId;let A=this.getFieldConfig("direction-select");A&&(A.props.formMode="clone");let x=this.getFieldConfig("significance-select");x&&(x.props.formMode="clone")}else this.model={fields:{}}})}getFieldConfig(d){return this.fields?.[0].fieldGroup?.find(l=>"fields"===l.key)?.fieldGroup?.find(l=>l.type===d)}ngOnInit(){this.countQueryRef=this.existingEvidenceGQL.watch({molecularProfileId:0,sourceId:0}),this.existingEvidenceCount$=this.countQueryRef?.valueChanges.pipe((0,o.U)(d=>d.data?.evidenceItems?.totalCount),(0,g.h)(T.ep),(0,n.t)(this))}ngAfterViewInit(){this.existingEvidenceId?this.revisableFieldsGQL.fetch({evidenceId:this.existingEvidenceId}).pipe((0,n.t)(this)).subscribe({next:({data:{evidenceItem:d}})=>{d&&(this.model={fields:(0,r.ux)(d)},this.model.fields.description=void 0,this.cdr.detectChanges())},error:d=>{console.error("Error retrieving evidenceItem."),console.error(d)},complete:()=>{this.state.formReady$.next(!0)}}):this.state.formReady$.next(!0)}onSubmit(d){const l=(0,r.I9)(d);l&&(this.mutationState=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:l},void 0,I=>{this.newEvidenceId=I.submitEvidence?.evidenceItem.id,this.newEvidenceUrl=`/evidence/${this.newEvidenceId}/summary`}))}onModelChange(d){d.fields.sourceId&&d.fields.molecularProfileId?(d.fields.sourceId!=this.selectedSourceId||d.fields.molecularProfileId!=this.selectedMpId)&&(this.selectedSourceId=d.fields.sourceId,this.selectedMpId=d.fields.molecularProfileId,this.countQueryRef?.refetch({molecularProfileId:d.fields.molecularProfileId,sourceId:d.fields.sourceId})):this.countQueryRef?.refetch({molecularProfileId:0,sourceId:0})}ngOnDestroy(){this.options.formState.onDestroy(),this.routeSub.unsubscribe()}}).\u0275fac=function(d){return new(d||E)(e.Y36(D.h_Y),e.Y36(D.WFw),e.Y36(D.vxe),e.Y36(e.sBO),e.Y36(P.gz),e.Y36(M.Y))},E.\u0275cmp=e.Xpm({type:E,selectors:[["cvc-evidence-submit-form"]],decls:8,vars:8,consts:[["entityType","Evidence Item",3,"mutationState","redirectUrl","successMessage"],["success",""],[4,"ngIf"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"routerLink"],["nzType","warning",3,"nzMessage",4,"ngIf"],["duplicateEvidenceAlert",""],["nzType","warning",3,"nzMessage"],["cvcHeight","150",3,"molecularProfileId","sourceId"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(d,l){if(1&d&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,N,4,3,"ng-template",null,1,e.W1O),e.YNc(3,z,5,1,"ng-container",2),e.ALo(4,"ngrxPush"),e.YNc(5,Q,2,5,"form",3),e.YNc(6,W,1,0,"ng-template",null,4,e.W1O),e.qZA()),2&d){const I=e.MAs(2),y=e.MAs(7);e.Q6J("mutationState",l.mutationState)("redirectUrl",l.newEvidenceUrl)("successMessage",I),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,6,l.existingEvidenceCount$)),e.xp6(2),e.Q6J("ngIf",l.model)("ngIfElse",y)}},dependencies:[q.O5,P.rH,L.r,m._Y,m.JL,m.sg,w.T7,b.Lr,F.F,$.a,U.fM],encapsulation:2,changeDetection:0}),E);S=(0,t.gn)([(0,n.c)()],S)},1759:(_,h,i)=>{i.d(h,{C:()=>m,w:()=>t});const t={geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,therapyIds:void 0,therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:void 0,rating:void 0,sourceId:void 0,variantOrigin:void 0},m={clientMutationId:void 0,fields:t,comment:void 0,organizationId:void 0}},8475:(_,h,i)=>{i.d(h,{lG:()=>p,yQ:()=>r});var t=i(2),m=i(313),s=i(8645),v=i(3742),r=(()=>((r=r||{}).EVIDENCE="Evidence",r.ASSERTION="Assertion",r))();class p{constructor(u){this.formReady$=new s.x,this.formLayout="vertical",this.validStates=new Map,this.typeOption$=new s.x,this.requiresTherapy$=new s.x,this.requiresDisease$=new s.x,this.requiresAcmgCode$=new s.x,this.requiresAmpLevel$=new s.x,this.requiresClingenCode$=new s.x,this.allowsFdaApproval$=new s.x,this.getTypeOptions=()=>this.entityName==r.ASSERTION?(0,v.o6)(m.uBv).map(a=>a):(0,v.o6)(m.kqt).map(a=>a),this.getSignificanceOptions=a=>this.validStates.get(a)?.significance||[],this.getInteractionOptions=()=>(0,v.o6)(m.wkr).map(a=>a),this.isValidSignificanceOption=(a,o)=>{const g=this.validStates.get(a);return!g||g.significance.includes(o)},this.getDirectionOptions=a=>this.validStates.get(a)?.entityDirection||[],this.isValidDirectionOption=(a,o)=>{const g=this.validStates.get(a);return!g||g.entityDirection.includes(o)},this.requiresTherapy=a=>{const o=this.validStates.get(a);return void 0===o||o.requiresTherapy},this.requiresDisease=a=>{const o=this.validStates.get(a);return void 0===o||o.requiresDisease},this.requiresAcmgCodes=a=>{const o=this.validStates.get(a);return void 0===o||o.requiresAcmgCodes},this.requiresAmpLevel=a=>{const o=this.validStates.get(a);return void 0===o||o.requiresAmpLevel},this.requiresClingenCodes=a=>{const o=this.validStates.get(a);return void 0===o||o.requiresClingenCodes},this.allowsFdaApproval=a=>{const o=this.validStates.get(a);return void 0===o||o.allowsFdaApproval},this.getOptionsFromEnums=a=>0===a.length?[]:a.map(o=>({value:o,label:(0,t.E)(o)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=u,this.pluralNames=new Map,this.pluralNames.set(r.ASSERTION,"Assertions"),this.pluralNames.set(r.EVIDENCE,"Evidence")}onDestroy(){}}},3684:(_,h,i)=>{i.d(h,{_:()=>n});var t=i(313),m=i(1791),s=i(5619),v=i(1759),r=i(8475);class n extends r.lG{constructor(){super(r.yQ.EVIDENCE);const c=v.w;this.fields={molecularProfileId$:new s.X(c.molecularProfileId),variantId$:new s.X(c.variantId),variantMolecularProfile$:new s.X(void 0),geneId$:new s.X(c.geneId),evidenceType$:new s.X(c.evidenceType),evidenceLevel$:new s.X(c.evidenceLevel),evidenceDirection$:new s.X(c.evidenceDirection),significance$:new s.X(c.significance),variantOrigin$:new s.X(c.variantOrigin),diseaseId$:new s.X(c.diseaseId),therapyIds$:new s.X(c.therapyIds),therapyInteractionType$:new s.X(c.therapyInteractionType),rating$:new s.X(c.rating),phenotypeIds$:new s.X(c.phenotypeIds),sourceId$:new s.X(c.sourceId)},this.enums={entityType$:new s.X(this.getTypeOptions()),significance$:new s.X([]),direction$:new s.X([]),interaction$:new s.X(this.getInteractionOptions())},this.requires={requiresDisease$:new s.X(!1),requiresTherapy$:new s.X(!1),requiresTherapyInteractionType$:new s.X(!1),requiresClingenCodes$:new s.X(!1),requiresAcmgCodes$:new s.X(!1),requiresAmpLevel$:new s.X(!1),allowsFdaApproval$:new s.X(!1)},this.fields.evidenceType$.pipe((0,m.t)(this,"onDestroy")).subscribe(u=>{if(!u)return Object.entries(this.requires).forEach(([a,o])=>{o.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(u)),this.enums.direction$.next(this.getDirectionOptions(u)),this.requires.requiresDisease$.next(this.requiresDisease(u)),this.requires.requiresTherapy$.next(this.requiresTherapy(u)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(u)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(u)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(u)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(u))}),this.fields.therapyIds$.pipe((0,m.t)(this,"onDestroy")).subscribe(u=>{this.requires.requiresTherapyInteractionType$.next(!!u&&u.length>1)}),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,significance:[t.y1h.Sensitivityresponse,t.y1h.Resistance,t.y1h.AdverseResponse,t.y1h.ReducedSensitivity,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,significance:[t.y1h.Positive,t.y1h.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,significance:[t.y1h.BetterOutcome,t.y1h.PoorOutcome,t.y1h.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,significance:[t.y1h.Oncogenicity,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,significance:[t.y1h.Predisposition,t.y1h.Protectiveness],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,significance:[t.y1h.GainOfFunction,t.y1h.LossOfFunction,t.y1h.UnalteredFunction,t.y1h.Neomorphic,t.y1h.DominantNegative,t.y1h.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},7745:(_,h,i)=>{function t(m,s){const v=(n,p)=>{let c;for(let u of n)if(u.fieldGroup)c=v(u.fieldGroup,p);else if(u.key===p){c=u;break}return c},r=(n,p)=>{for(let c of Object.keys(p))if(p[c]instanceof Object&&!Array.isArray(p[c]))r(n,p[c]);else{const u=v(n,c);u&&(u.defaultValue=p[c])}return n};return r(m,s)}i.d(h,{Z:()=>t})},1565:(_,h,i)=>{i.d(h,{Ct:()=>s,I9:()=>v,ux:()=>m});var t=i(2701);function m(r){return{significance:r.significance,description:r.description,diseaseId:r.disease?.id,therapyIds:r.therapies.map(n=>n.id),therapyInteractionType:r.therapyInteractionType,evidenceDirection:r.evidenceDirection,evidenceLevel:r.evidenceLevel,evidenceType:r.evidenceType,molecularProfileId:r.molecularProfile.id,phenotypeIds:r.phenotypes.map(n=>n.id),rating:r.evidenceRating,sourceId:r.source.id,variantOrigin:r.variantOrigin}}function s(r,n){let p=v(n);if(p)return{id:r,comment:p.comment,organizationId:p.organizationId,fields:p.fields}}function v(r){const n=r.fields;if(![n.molecularProfileId,n.variantOrigin,n.sourceId,n.evidenceType,n.significance,n.evidenceLevel,n.evidenceDirection,n.rating].find(c=>void 0===c))return{fields:{molecularProfileId:n.molecularProfileId,variantOrigin:n.variantOrigin,sourceId:n.sourceId,evidenceType:n.evidenceType,significance:n.significance,evidenceLevel:n.evidenceLevel,evidenceDirection:n.evidenceDirection,rating:n.rating,description:t.xt(n.description),diseaseId:t.uP(n.diseaseId),phenotypeIds:n.phenotypeIds?n.phenotypeIds:[],therapyIds:n.therapyIds?n.therapyIds:[],therapyInteractionType:t.uP(n.therapyInteractionType)},organizationId:r.organizationId,comment:r.comment}}}}]); \ No newline at end of file diff --git a/server/public/3505.84bd5eb1b163b35e.js b/server/public/6917.9b8c9eea097740fd.js similarity index 97% rename from server/public/3505.84bd5eb1b163b35e.js rename to server/public/6917.9b8c9eea097740fd.js index 7f66aa559..45c76657a 100644 --- a/server/public/3505.84bd5eb1b163b35e.js +++ b/server/public/6917.9b8c9eea097740fd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3505],{7745:(x,f,a)=>{function p(d,u){const h=(t,g)=>{let r;for(let s of t)if(s.fieldGroup)r=h(s.fieldGroup,g);else if(s.key===g){r=s;break}return r},c=(t,g)=>{for(let r of Object.keys(g))if(g[r]instanceof Object&&!Array.isArray(g[r]))c(t,g[r]);else{const s=h(t,r);s&&(s.defaultValue=g[r])}return t};return c(d,u)}a.d(f,{Z:()=>p})},9846:(x,f,a)=>{a.r(f),a.d(f,{VariantsReviseModule:()=>F});var p=a(6814),d=a(4190),u=a(7921),h=a(7398),c=a(4223),t=a(5879),g=a(313),r=a(951),s=a(6254),m=a(551),y=a(3145),V=a(8178),v=a(95),O=a(2616),M=a(8091);function b(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function C(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,b,2,0,"span",0),t.qZA()),2&e){const n=i.$implicit,o=i.last;t.xp6(1),t.hij(" ",n,""),t.xp6(1),t.Q6J("ngIf",!o)}}function P(e,i){if(1&e&&(t.TgZ(0,"nz-page-header-subtitle"),t.YNc(1,C,3,2,"span",8),t.qZA()),2&e){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",n.variantAliases)}}function _(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function I(e,i){1&e&&(t.TgZ(0,"nz-row",9)(1,"div",10),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function T(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t.ALo(6,"entityColor"),t._uU(7),t.qZA(),t.YNc(8,P,2,1,"nz-page-header-subtitle",0),t.TgZ(9,"nz-page-header-content")(10,"div",5),t.YNc(11,_,2,0,"div",6),t.ALo(12,"ngrxPush"),t.YNc(13,I,3,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.BQk()),2&e){const n=i.ngIf,o=t.MAs(14),l=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(6,6,"Variant")),t.xp6(2),t.hij(" ",n.name," "),t.xp6(1),t.Q6J("ngIf",n.variantAliases.length>0),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,8,l.isSignedIn$))("ngIfElse",o)}}let S=(()=>{class e{constructor(n,o,l){this.gql=n,this.route=o,this.viewerService=l,this.routeSub=this.route.params.subscribe(N=>{let z=this.gql.watch({variantId:+N.variantId}).valueChanges;this.loading$=z.pipe((0,c.j)("loading"),(0,u.O)(!0)),this.variant$=z.pipe((0,c.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,c.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,c.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,c.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,h.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.iJT),t.Y36(d.gz),t.Y36(r.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){1&n&&(t.YNc(0,T,15,10,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,o.variant$))},dependencies:[p.sg,p.O5,d.lC,s.$O,s.u9,s.yG,s.u5,m.Ls,y.I,V.u,v.t3,v.SK,p.Ov,O.a,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{flex-wrap:nowrap;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 R=a(1351);let Z=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,R.K]}),e})();var A=a(9230);function w(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantId",n.variantId)}}function J(e,i){1&e&&t._uU(0,"Loading Variant...")}const $=[{path:"",component:S,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(o=>{this.variantId=+o.variantId})}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-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(n,o){if(1&n&&(t.YNc(0,w,2,1,"ng-container",0),t.YNc(1,J,1,0,"ng-template",null,1,t.W1O)),2&n){const l=t.MAs(2);t.Q6J("ngIf",o.variantId)("ngIfElse",l)}},dependencies:[p.O5,A.J],encapsulation:2}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let j=(()=>{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($),Z,d.Bz]}),e})();var Y=a(2419),Q=a(8603),U=a(2524);let F=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,j,s.KJ,m.PV,U.s,Y.D,Q.a,v.Jb]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6917],{7570:(x,f,a)=>{function p(d,u){const h=(t,g)=>{let r;for(let s of t)if(s.fieldGroup)r=h(s.fieldGroup,g);else if(s.key===g){r=s;break}return r},c=(t,g)=>{for(let r of Object.keys(g))if(g[r]instanceof Object&&!Array.isArray(g[r]))c(t,g[r]);else{const s=h(t,r);s&&(s.defaultValue=g[r])}return t};return c(d,u)}a.d(f,{Z:()=>p})},9846:(x,f,a)=>{a.r(f),a.d(f,{VariantsReviseModule:()=>F});var p=a(6814),d=a(4190),u=a(7921),h=a(7398),c=a(4223),t=a(5879),g=a(313),r=a(951),s=a(6254),m=a(551),y=a(3145),V=a(8178),v=a(95),O=a(2616),M=a(8091);function b(e,i){1&e&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function C(e,i){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,b,2,0,"span",0),t.qZA()),2&e){const n=i.$implicit,o=i.last;t.xp6(1),t.hij(" ",n,""),t.xp6(1),t.Q6J("ngIf",!o)}}function P(e,i){if(1&e&&(t.TgZ(0,"nz-page-header-subtitle"),t.YNc(1,C,3,2,"span",8),t.qZA()),2&e){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",n.variantAliases)}}function _(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function I(e,i){1&e&&(t.TgZ(0,"nz-row",9)(1,"div",10),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function T(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t.ALo(6,"entityColor"),t._uU(7),t.qZA(),t.YNc(8,P,2,1,"nz-page-header-subtitle",0),t.TgZ(9,"nz-page-header-content")(10,"div",5),t.YNc(11,_,2,0,"div",6),t.ALo(12,"ngrxPush"),t.YNc(13,I,3,0,"ng-template",null,7,t.W1O),t.qZA()()(),t.BQk()),2&e){const n=i.ngIf,o=t.MAs(14),l=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(4),t.Q6J("nzTwotoneColor",t.lcZ(6,6,"Variant")),t.xp6(2),t.hij(" ",n.name," "),t.xp6(1),t.Q6J("ngIf",n.variantAliases.length>0),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,8,l.isSignedIn$))("ngIfElse",o)}}let S=(()=>{class e{constructor(n,o,l){this.gql=n,this.route=o,this.viewerService=l,this.routeSub=this.route.params.subscribe(N=>{let z=this.gql.watch({variantId:+N.variantId}).valueChanges;this.loading$=z.pipe((0,c.j)("loading"),(0,u.O)(!0)),this.variant$=z.pipe((0,c.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,c.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,c.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,c.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,h.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.iJT),t.Y36(d.gz),t.Y36(r.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){1&n&&(t.YNc(0,T,15,10,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,o.variant$))},dependencies:[p.sg,p.O5,d.lC,s.$O,s.u9,s.yG,s.u5,m.Ls,y.I,V.u,v.t3,v.SK,p.Ov,O.a,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{flex-wrap:nowrap;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 R=a(3281);let Z=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,R.K]}),e})();var A=a(7093);function w(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantId",n.variantId)}}function J(e,i){1&e&&t._uU(0,"Loading Variant...")}const $=[{path:"",component:S,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(o=>{this.variantId=+o.variantId})}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-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(n,o){if(1&n&&(t.YNc(0,w,2,1,"ng-container",0),t.YNc(1,J,1,0,"ng-template",null,1,t.W1O)),2&n){const l=t.MAs(2);t.Q6J("ngIf",o.variantId)("ngIfElse",l)}},dependencies:[p.O5,A.J],encapsulation:2}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let j=(()=>{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($),Z,d.Bz]}),e})();var Y=a(2419),Q=a(8603),U=a(2524);let F=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.ez,j,s.KJ,m.PV,U.s,Y.D,Q.a,v.Jb]}),e})()}}]); \ No newline at end of file diff --git a/server/public/7121.d3d18ef19e6c1c66.js b/server/public/7121.d3d18ef19e6c1c66.js deleted file mode 100644 index 36f270d8c..000000000 --- a/server/public/7121.d3d18ef19e6c1c66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7121],{9560:(Z,O,e)=>{e.d(O,{K:()=>T});var u=e(6814),h=e(5545),n=e(5879),A=e(6223),M=e(824);const C={name:"comment-textarea",component:(()=>{class g extends h.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(o,E)=>`Comments must be at least ${E.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return g.\u0275fac=function(){let P;return function(E){return(P||(P=n.n5z(g)))(E||g)}}(),g.\u0275cmp=n.Xpm({type:g,selectors:[["comment-textarea-type"]],features:[n.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(o,E){1&o&&n._UZ(0,"textarea",0),2&o&&n.Q6J("formControl",E.formControl)("formlyAttributes",E.field)},dependencies:[A.Fj,A.JJ,A.oH,h.JD,M.Zp],encapsulation:2,changeDetection:0}),g})(),wrappers:["form-field"]};var v=e(3599),f=e(7459);let T=(()=>{class g{}return g.\u0275fac=function(o){return new(o||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[u.ez,A.UX,h.X0.forChild({types:[C]}),f.u,v.U5,M.o7]}),g})()},7745:(Z,O,e)=>{function u(h,n){const A=(t,C)=>{let v;for(let f of t)if(f.fieldGroup)v=A(f.fieldGroup,C);else if(f.key===C){v=f;break}return v},M=(t,C)=>{for(let v of Object.keys(C))if(C[v]instanceof Object&&!Array.isArray(C[v]))M(t,C[v]);else{const f=A(t,v);f&&(f.defaultValue=C[v])}return t};return M(h,n)}e.d(O,{Z:()=>u})},9350:(Z,O,e)=>{e.r(O),e.d(O,{AssertionsReviseModule:()=>H});var u=e(6814),h=e(4190),n=e(7921),A=e(7398),M=e(4223),t=e(5879),C=e(313),v=e(951),f=e(6254),T=e(2574),g=e(551),P=e(2392),o=e(2606),E=e(3145),N=e(95),k=e(8178),w=e(2616),b=e(8091);function B(s,y){if(1&s&&(t.TgZ(0,"span",12)(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&s){const p=t.oxw(2).ngIf;t.xp6(2),t.Oqu(p.name)}}function L(s,y){if(1&s&&(t.TgZ(0,"span",13),t._UZ(1,"cvc-molecular-profile-tag",14),t.qZA()),2&s){const p=t.oxw(2).ngIf;t.xp6(1),t.Q6J("molecularProfile",p.molecularProfile)("enablePopover",!1)}}function I(s,y){1&s&&(t.TgZ(0,"nz-space",9),t.YNc(1,B,4,1,"span",10),t.YNc(2,L,2,2,"span",11),t.qZA())}function c(s,y){1&s&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function d(s,y){1&s&&(t.TgZ(0,"nz-row",15)(1,"div",16),t._UZ(2,"cvc-login-prompt"),t.qZA()())}function r(s,y){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,I,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3)(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t.ALo(8,"entityColor"),t._uU(9),t.qZA(),t.TgZ(10,"nz-page-header-content")(11,"div",6),t.YNc(12,c,2,0,"div",7),t.ALo(13,"ngrxPush"),t.YNc(14,d,3,0,"ng-template",null,8,t.W1O),t.qZA()()(),t.BQk()),2&s){const p=y.ngIf,D=t.MAs(3),J=t.MAs(15),Q=t.oxw();t.xp6(1),t.Q6J("displayName",p.name)("relationsTpl",D),t.xp6(6),t.Q6J("nzTwotoneColor",t.lcZ(8,6,"Assertion")),t.xp6(2),t.hij(" ",p.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(13,8,Q.isSignedIn$))("ngIfElse",J)}}let a=(()=>{class s{constructor(p,D,J){this.gql=p,this.route=D,this.viewerService=J,this.routeSub=this.route.params.subscribe(Q=>{let W=this.gql.watch({assertionId:+Q.assertionId}).valueChanges;this.loading$=W.pipe((0,M.j)("loading"),(0,n.O)(!0)),this.assertion$=W.pipe((0,M.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(p=>p.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return s.\u0275fac=function(p){return new(p||s)(t.Y36(C.A94),t.Y36(h.gz),t.Y36(v.a))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[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,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(p,D){1&p&&(t.YNc(0,r,16,10,"ng-container",0),t.ALo(1,"async")),2&p&&t.Q6J("ngIf",t.lcZ(1,1,D.assertion$))},dependencies:[u.O5,h.lC,f.$O,f.u9,f.u5,T.NU,T.$1,g.Ls,P.ZU,o.p,E.I,N.t3,N.SK,k.u,u.Ov,w.a,b.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{flex-wrap:nowrap;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})();var x=e(2962),l=e(4139),m=e(6902);let _=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[u.ez,N.Jb,x.vh,l.H0,T.zf,m.P]}),s})();var R=e(4263);function U(s,y){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-assertion-revise-form",2),t.BQk()),2&s){const p=t.oxw();t.xp6(1),t.Q6J("assertionId",p.assertionId)}}function F(s,y){1&s&&t._uU(0,"Loading Assertion...")}const S=[{path:"",component:a,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class s{constructor(p){this.route=p,this.routeParams$=this.route.params.subscribe(D=>{this.assertionId=+D.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return s.\u0275fac=function(p){return new(p||s)(t.Y36(h.gz))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-assertions-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingAssertion",""],[3,"assertionId"]],template:function(p,D){if(1&p&&(t.YNc(0,U,2,1,"ng-container",0),t.YNc(1,F,1,0,"ng-template",null,1,t.W1O)),2&p){const J=t.MAs(2);t.Q6J("ngIf",D.assertionId)("ngIfElse",J)}},dependencies:[u.O5,R.G],encapsulation:2}),s})(),data:{breadcrumb:"Suggest Revision"}}]}];let z=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[h.Bz.forChild(S),_,h.Bz]}),s})();var V=e(2419),Y=e(9560),K=e(8603),j=e(8527),$=e(2524);let H=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[u.ez,z,f.KJ,T.zf,g.PV,P.ZJ,T.zf,$.s,j.u,V.D,Y.K,N.Jb,K.a]}),s})()},9337:(Z,O,e)=>{e.r(O),e.d(O,{AssertionsModule:()=>F});var u=e(6814),h=e(4190),n=e(2392),A=e(6254),M=e(95),t=e(6494),C=e(5895),v=e(551),f=e(2419),T=e(2840),g=e(2574),P=e(2524),o=e(5879);let E=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[u.ez,h.Bz,v.PV,n.ZJ,A.KJ,M.Jb,t.m,T.sL,g.zf,P.s,C.s,f.D]}),i})();var N=e(951),k=e(8091),w=e(855),b=e(1958),B=e(1826),L=e(3145),I=e(2616);function c(i,S){1&i&&(o.TgZ(0,"button",17),o._UZ(1,"i",18),o._uU(2," Submit New Assertion "),o.qZA())}function d(i,S){if(1&i&&(o.ynx(0),o.YNc(1,c,3,0,"button",16),o.BQk()),2&i){const z=S.ngrxLet;o.xp6(1),o.Q6J("ngIf",z.signedIn)}}function r(i,S){if(1&i&&o.YNc(0,d,2,1,"ng-container",15),2&i){const z=o.oxw();o.Q6J("ngrxLet",z.viewer$)}}function a(i,S){1&i&&(o.TgZ(0,"a",19),o._UZ(1,"i",20),o._uU(2," View Assertion Model Docs "),o.qZA())}function x(i,S){1&i&&(o.TgZ(0,"a",21),o._UZ(1,"i",20),o._uU(2," View Assertion Curation Docs "),o.qZA())}const _=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(z){return new(z||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["app-assertions"]],decls:1,vars:0,template:function(z,V){1&z&&o._UZ(0,"router-outlet")},dependencies:[h.lC],encapsulation:2}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(z){this.viewerService=z,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(z){return new(z||i)(o.Y36(N.a))},i.\u0275cmp=o.Xpm({type:i,selectors:[["assertions-home"]],decls:22,vars:6,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzFlex","0 1 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(z,V){if(1&z&&(o._UZ(0,"cvc-section-navigation",0),o.YNc(1,r,1,1,"ng-template",null,1,o.W1O),o.TgZ(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),o._UZ(7,"i",5),o.ALo(8,"entityColor"),o.qZA(),o.TgZ(9,"nz-col",6)(10,"h2"),o._uU(11,"Assertions"),o.qZA(),o.TgZ(12,"p",7),o._uU(13," 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. "),o.qZA()(),o.TgZ(14,"nz-col",8)(15,"nz-space",9),o.YNc(16,a,3,0,"a",10),o.YNc(17,x,3,0,"a",11),o.qZA()()(),o.TgZ(18,"nz-row")(19,"nz-col",12)(20,"div",13),o._UZ(21,"cvc-assertions-table",14),o.qZA()()()()()),2&z){const Y=o.MAs(2);o.Q6J("actionsTpl",Y),o.xp6(7),o.Q6J("nzTwotoneColor",o.lcZ(8,4,"Assertion")),o.xp6(5),o.Q6J("nzEllipsisRows",2),o.xp6(7),o.Q6J("nzSpan",24)}},dependencies:[u.O5,k.eJ,h.rH,v.Ls,n.ZU,A.$O,A.u5,M.t3,M.SK,T.ix,w.w,b.dQ,g.NU,g.$1,B.x,L.I,I.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{flex-wrap:nowrap;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:"add",loadChildren:()=>Promise.all([e.e(8592),e.e(9939)]).then(e.bind(e,9939)).then(i=>i.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2212),e.e(5556),e.e(2602),e.e(7889),e.e(7856),e.e(1364),e.e(8245),e.e(4503),e.e(5756),e.e(2927)]).then(e.bind(e,2927)).then(i=>i.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,9350)).then(i=>i.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>Promise.all([e.e(8592),e.e(9939)]).then(e.bind(e,9939)).then(i=>i.AssertionAddModule)}];let R=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[h.Bz.forChild(_),E,h.Bz]}),i})();var U=e(9350);let F=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[u.ez,R,U.AssertionsReviseModule]}),i})()},4139:(Z,O,e)=>{e.d(O,{H0:()=>I});var u=e(5879),h=e(6814),n=e(9388);let I=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=u.oAB({type:c}),c.\u0275inj=u.cJS({imports:[n.vT,h.ez]}),c})()},6494:(Z,O,e)=>{e.d(O,{i:()=>d,m:()=>r});var u=e(655),h=e(6028),n=e(5879),A=e(6223),M=e(8645),t=e(2438),C=e(9773),v=e(874),f=e(7754),T=e(4300),g=e(9388),P=e(6814),o=e(1958),E=e(551),N=e(8324);const k=["switchElement"];function w(a,x){1&a&&n._UZ(0,"span",8)}function b(a,x){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const l=n.oxw(2);n.xp6(1),n.Oqu(l.nzCheckedChildren)}}function B(a,x){if(1&a&&(n.ynx(0),n.YNc(1,b,2,1,"ng-container",9),n.BQk()),2&a){const l=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",l.nzCheckedChildren)}}function L(a,x){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const l=n.oxw(2);n.xp6(1),n.Oqu(l.nzUnCheckedChildren)}}function I(a,x){if(1&a&&n.YNc(0,L,2,1,"ng-container",9),2&a){const l=n.oxw();n.Q6J("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let d=(()=>{class a{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()}constructor(l,m,_,R,U,F){this.nzConfigService=l,this.host=m,this.ngZone=_,this.cdr=R,this.focusMonitor=U,this.directionality=F,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.nzId=null,this.dir="ltr",this.destroy$=new M.x,this.isNzDisableFirstChange=!0}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,t.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,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=l;m!==h.oh&&m!==h.SV&&m!==h.L_&&m!==h.K5||(l.preventDefault(),this.ngZone.run(()=>{m===h.oh?this.updateValue(!1):m===h.SV?this.updateValue(!0):(m===h.L_||m===h.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=this.isNzDisableFirstChange&&this.nzDisabled||l,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return a.\u0275fac=function(l){return new(l||a)(n.Y36(v.jY),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(T.tE),n.Y36(g.Is,8))},a.\u0275cmp=n.Xpm({type:a,selectors:[["nz-switch"]],viewQuery:function(l,m){if(1&l&&n.Gf(k,7),2&l){let _;n.iGM(_=n.CRH())&&(m.switchElement=_.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],features:[n._Bn([{provide:A.JU,useExisting:(0,n.Gpc)(()=>a),multi:!0}])],decls:9,vars:16,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,m){if(1&l&&(n.TgZ(0,"button",0,1)(2,"span",2),n.YNc(3,w,1,0,"span",3),n.qZA(),n.TgZ(4,"span",4),n.YNc(5,B,2,1,"ng-container",5),n.YNc(6,I,1,1,"ng-template",null,6,n.W1O),n.qZA(),n._UZ(8,"div",7),n.qZA()),2&l){const _=n.MAs(7);n.ekj("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),n.Q6J("disabled",m.nzDisabled)("nzWaveExtraNode",!0),n.uIk("id",m.nzId),n.xp6(3),n.Q6J("ngIf",m.nzLoading),n.xp6(2),n.Q6J("ngIf",m.isChecked)("ngIfElse",_)}},dependencies:[P.O5,o.dQ,E.Ls,N.f],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,f.yF)()],a.prototype,"nzLoading",void 0),(0,u.gn)([(0,f.yF)()],a.prototype,"nzDisabled",void 0),(0,u.gn)([(0,f.yF)()],a.prototype,"nzControl",void 0),(0,u.gn)([(0,v.oS)()],a.prototype,"nzSize",void 0),a})(),r=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[g.vT,P.ez,o.vG,E.PV,N.T]}),a})()}}]); \ No newline at end of file diff --git a/server/public/7167.780adef43a0123e1.js b/server/public/7167.780adef43a0123e1.js deleted file mode 100644 index 13599fef1..000000000 --- a/server/public/7167.780adef43a0123e1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7167],{9560:(D,C,i)=>{i.d(C,{K:()=>g});var d=i(6814),y=i(5545),u=i(5879),f=i(6223),S=i(824);const b={name:"comment-textarea",component:(()=>{class p extends y.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,_)=>`Comments must be at least ${_.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return p.\u0275fac=function(){let z;return function(_){return(z||(z=u.n5z(p)))(_||p)}}(),p.\u0275cmp=u.Xpm({type:p,selectors:[["comment-textarea-type"]],features:[u.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&u._UZ(0,"textarea",0),2&h&&u.Q6J("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[f.Fj,f.JJ,f.oH,y.JD,S.Zp],encapsulation:2,changeDetection:0}),p})(),wrappers:["form-field"]};var T=i(3599),E=i(7459);let g=(()=>{class p{}return p.\u0275fac=function(h){return new(h||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[d.ez,f.UX,y.X0.forChild({types:[b]}),E.u,T.U5,S.o7]}),p})()},9814:(D,C,i)=>{i.r(C),i.d(C,{EvidenceDetailModule:()=>et});var d=i(6814),y=i(2419),u=i(2574),f=i(2392),S=i(5725),x=i(6254),b=i(2840),T=i(5695),E=i(551),g=i(4190),p=i(313),z=i(7921),h=i(9773),_=i(4223),w=i(8645),Q=i(5619),e=i(5879),O=i(951),A=i(8091),N=i(3903),M=i(855),r=i(1958),s=i(95),c=i(6109),m=i(3145),Z=i(327),Y=i(1801),V=i(8295),j=i(5162),$=i(4794),W=i(5098),G=i(1520),L=i(2606),K=i(2616);function X(n,o){if(1&n&&(e.TgZ(0,"span",8)(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 H(n,o){if(1&n&&(e.TgZ(0,"span",9),e._UZ(1,"cvc-molecular-profile-tag",10),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function q(n,o){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,X,4,1,"span",6),e.YNc(2,H,2,2,"span",7),e.qZA())}function ee(n,o){1&n&&(e.TgZ(0,"nz-tag",25),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const ne=function(n){return["/evidence",n,"revise"]};function te(n,o){if(1&n&&(e.TgZ(0,"button",27,28),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),a=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,ne,a.id))("nzType",t.isActive?"primary":"default")}}function ie(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,te,3,4,"button",26),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function oe(n,o){if(1&n&&(e.TgZ(0,"button",30,28),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function ae(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,3,1,"button",29),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ce(n,o){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",32),2&n){const t=e.oxw(2).ngrxLet,a=e.oxw(2);e.Q6J("viewer",t)("subscribableId",a.subscribable.id)}}function se(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ce,1,2,"cvc-entity-subscription-button",31),e.qZA()),2&n){const t=e.oxw().ngrxLet,a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&a.subscribable)}}function re(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",34),e.NdJ("onReverted",function(l){e.CHM(t);const v=e.oxw(4);return e.KtG(v.onRevertCompleted(l))}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,a=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",a.id)}}function le(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,re,1,2,"cvc-revert-entity-button",33),e.qZA()),2&n){const t=e.oxw().ngrxLet,a=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=a.status)}}const pe=function(n){return{existingEvidenceId:n}};function de(n,o){if(1&n&&(e.TgZ(0,"button",36),e._UZ(1,"i",37),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.Q6J("queryParams",e.VKq(1,pe,t.id))}}function ge(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,de,2,3,"button",35),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.canCurate)}}function me(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",38),e.NdJ("nzOnClose",function(){const v=e.CHM(t).$implicit,P=e.oxw(3);return e.KtG(P.onErrorBannerClose(v))}),e.qZA()}2&n&&e.Q6J("nzMessage",o.$implicit)}function ue(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",39),e.NdJ("nzOnClose",function(){e.CHM(t);const l=e.oxw(3);return e.KtG(l.onSuccessBannerClose())}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function ve(n,o){1&n&&e._UZ(0,"nz-alert",40)}function _e(n,o){1&n&&e._UZ(0,"nz-alert",41)}function fe(n,o){if(1&n&&(e.TgZ(0,"nz-col",42),e._UZ(1,"cvc-contributor-avatars",43),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function ze(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"span")(1,"cvc-moderate-entity-buttons",45),e.NdJ("onModerated",function(l){e.CHM(t);const v=e.oxw(4);return e.KtG(v.onModerateCompleted(l))}),e.qZA()()}if(2&n){const t=e.oxw(2).ngrxLet,a=e.oxw().ngIf;e.xp6(1),e.Q6J("rejectOnly",!t.canModerate)("entityId",a.id)("viewer",t)}}function he(n,o){1&n&&e._UZ(0,"span")}function ye(n,o){1&n&&(e.TgZ(0,"nz-space",44),e.YNc(1,ze,2,3,"span",16),e.YNc(2,he,1,0,"span",16),e.qZA())}const xe=function(n){return{flagged:n}};function Te(n,o){if(1&n&&(e.TgZ(0,"nz-page-header",11)(1,"nz-page-header-title",12),e._UZ(2,"i",13),e.ALo(3,"entityColor"),e._uU(4),e.qZA(),e.TgZ(5,"nz-page-header-tags"),e.YNc(6,ee,2,1,"nz-tag",14),e.qZA(),e.TgZ(7,"nz-page-header-extra")(8,"nz-space",15),e.YNc(9,ie,2,1,"span",16),e.YNc(10,ae,2,1,"span",16),e.YNc(11,se,2,1,"span",16),e.YNc(12,le,2,1,"span",16),e.YNc(13,ge,2,1,"span",16),e.qZA()(),e.TgZ(14,"nz-page-header-content"),e.YNc(15,me,1,1,"nz-alert",17),e.YNc(16,ue,1,1,"nz-alert",18),e.YNc(17,ve,1,0,"nz-alert",19),e.YNc(18,_e,1,0,"nz-alert",20),e.TgZ(19,"cvc-tab-navigation",21),e.ALo(20,"ngrxPush"),e.YNc(21,fe,2,1,"ng-template",null,22,e.W1O),e.qZA(),e.YNc(23,ye,3,0,"nz-space",23),e.TgZ(24,"div",24),e._UZ(25,"router-outlet"),e.qZA()()()),2&n){const t=o.ngrxLet,a=e.oxw().ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(14,xe,a.flags.totalCount>0)),e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(3,10,"EvidenceItem")),e.xp6(2),e.hij(" ",a.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(9),e.Q6J("ngForOf",l.errors),e.xp6(1),e.Q6J("ngIf",l.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==a.status),e.xp6(1),e.Q6J("ngIf","REJECTED"==a.status),e.xp6(1),e.Q6J("tabs",e.lcZ(20,12,l.tabs$)),e.xp6(4),e.Q6J("ngIf",(t.canModerate||t.signedIn&&t.id==(null==a.submissionEvent||null==a.submissionEvent.originatingUser?null:a.submissionEvent.originatingUser.id))&&"SUBMITTED"==a.status)}}function Ee(n,o){if(1&n&&(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,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,Te,26,16,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=o.ngIf,a=e.MAs(3),l=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",a),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,l.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",l.viewer$)}}let Ce=(()=>{class n{constructor(t,a,l){this.gql=t,this.viewerService=a,this.route=l,this.errors=[],this.destroy$=new w.x,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 Q.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(v=>{this.queryRef=this.gql.watch({evidenceId:+v.evidenceId});let P=this.queryRef.valueChanges;this.loading$=P.pipe((0,_.j)("loading"),(0,z.O)(!0)),this.evidence$=P.pipe((0,_.j)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,_.j)("flags","totalCount")),this.evidence$.pipe((0,h.R)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(I=>"Revisions"===I.tabLabel?{badgeCount:R?.revisions.totalCount,...I}:"Comments"===I.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...I}:I))}}),this.subscribable={id:+v.evidenceId,entityType:p.o71.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,this.queryRef?.refetch())}onErrorBannerClose(t){this.errors=this.errors?.filter(a=>a!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(p.pHu),e.Y36(O.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,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[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"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical",4,"ngIf"],[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"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams"],["nz-icon","","nzType","copy"],["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"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","EvidenceItem",3,"rejectOnly","entityId","viewer","onModerated"]],template:function(t,a){1&t&&(e.YNc(0,Ee,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},dependencies:[d.mk,d.sg,d.O5,g.lC,g.rH,g.Od,A.eJ,N.r,b.ix,M.w,r.dQ,s.t3,E.Ls,T.j,x.$O,x.u9,x.u5,x.ZJ,x.Jp,u.NU,u.$1,f.ZU,c.SY,m.I,Z.o,Y.Y,V.Q,j.m,$.e,W.P,G.N,L.p,A.fM,K.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{flex-wrap:nowrap;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 Se=i(1830);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Se.l]}),n})();var Ie=i(800);let Ae=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.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,a){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",a.commentable)},dependencies:[Ie.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ze=i(2962),Pe=i(4139),Ne=i(183);let Me=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,s.Jb,Ze.vh,u.zf,Pe.H0,Ne.M]}),n})();var Je=i(7287);let De=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.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,a){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",a.flaggable)},dependencies:[Je.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var we=i(2534);let Qe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,we.A]}),n})();var Oe=i(6126);let Le=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.eid=+a.evidenceId,this.entityType=p.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,a){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",a.eid)("entityType",a.entityType)},dependencies:[Oe.a],encapsulation:2}),n})();var Ue=i(5895),ke=i(4605),Be=i(3396),Fe=i(7525),Re=i(9858),U=i(8527),Ye=i(3043),Ve=i(7364),je=i(2655),$e=i(366),We=i(8641),Ge=i(6061),Ke=i(8706),k=i(2524),J=i(8125),Xe=i(8916);let He=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,g.Bz,s.Jb,u.zf,f.ZJ,b.sL,T.X,E.PV,J.q6,c.cg,Xe.M,k.s,Fe.h,Be.Q,je.x,$e.$,Ke.W,ke.N,We.s,Ye.y,Ge.N,Ue.s,Ve._,U.u,Re.r]}),n})();var qe=i(9183);function en(n,o){1&n&&e._UZ(0,"i",4)}function nn(n,o){1&n&&e._UZ(0,"i",5)}function tn(n,o){if(1&n&&(e.ynx(0),e.YNc(1,en,1,0,"i",2),e.YNc(2,nn,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 on(n,o){1&n&&e._uU(0," -- ")}let an=(()=>{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,a){if(1&t&&(e.YNc(0,tn,3,2,"ng-container",0),e.YNc(1,on,1,0,"ng-template",null,1,e.W1O)),2&t){const l=e.MAs(2);e.Q6J("ngIf",a.starRating)("ngIfElse",l)}},dependencies:[d.sg,d.O5,E.Ls],encapsulation:2}),n})();var cn=i(9775),sn=i(2384),rn=i(1887),ln=i(356),pn=i(3369),dn=i(4138),gn=i(3897),mn=i(4770),un=i(1826),vn=i(8923),_n=i(5095),fn=i(8004),zn=i(5573);function hn(n,o){if(1&n&&(e._UZ(0,"cvc-attribute-tag",15),e.ALo(1,"enumTooltip")),2&n){const t=e.oxw().ngIf;e.Q6J("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.gM2(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function yn(n,o){if(1&n&&(e._UZ(0,"cvc-attribute-tag",15),e.ALo(1,"enumTooltip")),2&n){const t=e.oxw().ngIf;e.Q6J("cvcAttrValue",t.significance)("nzTooltipTitle",e.gM2(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function xn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",40),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function Tn(n,o){if(1&n&&(e.ynx(0),e.YNc(1,xn,2,1,"ng-container",39),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function En(n,o){if(1&n&&(e._uU(0," Submitted "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.submissionEvent.createdAt),") ")}}function Cn(n,o){if(1&n&&(e._uU(0," Accepted "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.acceptanceEvent.createdAt),") ")}}function Sn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",22),e._uU(2," by "),e._UZ(3,"cvc-user-tag",27),e.qZA(),e.YNc(4,Cn,4,3,"ng-template",null,42,e.W1O),e.BQk()),2&n){const t=e.MAs(5),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(2),e.Q6J("user",a.acceptanceEvent.originatingUser)}}function bn(n,o){if(1&n&&(e._uU(0," Rejected "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.rejectionEvent.createdAt),") ")}}function In(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",43),e._uU(2," by "),e._UZ(3,"cvc-user-tag",27),e.qZA(),e.YNc(4,bn,4,3,"ng-template",null,44,e.W1O),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(3),e.Q6J("user",t.rejectionEvent.originatingUser)}}function An(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Sn,6,2,"ng-container",0),e.YNc(2,In,6,1,"ng-container",0),e.BQk()),2&n){const t=e.oxw().ngIf,a=e.oxw();e.xp6(1),e.Q6J("ngIf",t.status==a.statusValues.Accepted&&t.acceptanceEvent),e.xp6(1),e.Q6J("ngIf",t.status==a.statusValues.Rejected&&t.rejectionEvent)}}function Zn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"a",45),e._UZ(2,"cvc-disease-tag",46),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function Pn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",47),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function Nn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,Pn,2,1,"ng-container",39),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function Mn(n,o){if(1&n&&e.GkF(0,48),2&n){e.oxw(2);const t=e.MAs(3);e.Q6J("ngTemplateOutlet",t)}}function Jn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-therapy-tag",49),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("therapy",t)}}function Dn(n,o){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Jn,2,1,"ng-container",39),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.therapies)}}function wn(n,o){if(1&n&&(e.TgZ(0,"nz-descriptions-item",50),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.therapyInteractionType)," ")}}const Qn=function(){return[8,16]},B=function(){return[8,8]},On=function(){return{xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}},F=function(){return{xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}},Ln=function(){return{xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}};function Un(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6)(7,"p",7),e._uU(8),e.qZA()()()(),e.TgZ(9,"nz-col",4)(10,"nz-descriptions",8)(11,"nz-descriptions-item",9),e._UZ(12,"cvc-attribute-tag",10),e.ALo(13,"enumTooltip"),e.qZA(),e.TgZ(14,"nz-descriptions-item",11),e.YNc(15,hn,2,7,"cvc-attribute-tag",12),e.qZA(),e.TgZ(16,"nz-descriptions-item",13),e.YNc(17,yn,2,7,"cvc-attribute-tag",12),e.qZA(),e.TgZ(18,"nz-descriptions-item",14),e._UZ(19,"cvc-attribute-tag",15),e.ALo(20,"enumTooltip"),e.qZA(),e.TgZ(21,"nz-descriptions-item",16)(22,"nz-tag",17),e.ALo(23,"enumTooltip"),e.TgZ(24,"strong"),e._uU(25),e.qZA(),e._uU(26),e.ALo(27,"enumTooltip"),e.qZA()(),e.TgZ(28,"nz-descriptions-item",18)(29,"nz-tag",17),e.ALo(30,"enumTooltip"),e._UZ(31,"cvc-evidence-rating",19),e.qZA()()()(),e.TgZ(32,"nz-col",4)(33,"nz-descriptions",8)(34,"nz-descriptions-item",20),e._UZ(35,"cvc-source-tag",21),e.qZA(),e.TgZ(36,"nz-descriptions-item",22),e.YNc(37,Tn,2,1,"ng-container",23),e.qZA()()()()(),e.TgZ(38,"nz-col",4)(39,"nz-row",3)(40,"nz-col",4)(41,"nz-descriptions",24)(42,"nz-descriptions-item",25),e._UZ(43,"cvc-status-tag",26),e.qZA(),e.TgZ(44,"nz-descriptions-item",22),e._uU(45," by "),e._UZ(46,"cvc-user-tag",27),e.qZA(),e.YNc(47,En,4,3,"ng-template",null,28,e.W1O),e.YNc(49,An,3,2,"ng-container",0),e.qZA()(),e.TgZ(50,"nz-col",4)(51,"nz-descriptions",8)(52,"nz-descriptions-item",29),e._UZ(53,"cvc-molecular-profile-tag",30),e.qZA(),e.TgZ(54,"nz-descriptions-item",31),e._UZ(55,"cvc-mp-tag-name",32),e.qZA(),e.TgZ(56,"nz-descriptions-item",33),e.YNc(57,Zn,3,2,"ng-container",23),e.qZA(),e.TgZ(58,"nz-descriptions-item",22),e.YNc(59,Nn,3,1,"ng-container",23),e.qZA(),e.TgZ(60,"nz-descriptions-item",22),e.ynx(61,34),e.YNc(62,Mn,1,1,"ng-template",35),e.YNc(63,Dn,2,1,"ng-template",36),e.BQk(),e.qZA(),e.YNc(64,wn,3,3,"nz-descriptions-item",37),e.qZA()()()(),e.TgZ(65,"nz-col",4),e._UZ(66,"cvc-assertions-table",38),e.qZA()(),e.BQk()),2&n){const t=o.ngIf,a=e.MAs(48);e.oxw();const l=e.MAs(3),v=e.MAs(5);e.xp6(1),e.Q6J("nzGutter",e.DdM(66,Qn)),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(67,B)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.hij(" ",t.description," "),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(68,On)),e.xp6(2),e.Q6J("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.xi3(13,51,t.evidenceType,"evidenceType")),e.xp6(3),e.Q6J("ngIf","NA"!==t.evidenceDirection)("ngIfElse",l),e.xp6(2),e.Q6J("ngIf","NA"!==t.significance)("ngIfElse",l),e.xp6(2),e.Q6J("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.xi3(20,54,t.variantOrigin,"variantOrigin")),e.xp6(3),e.Q6J("nzTooltipTitle",e.xi3(23,57,t.evidenceLevel,"evidenceLevel")),e.xp6(3),e.Oqu(t.evidenceLevel),e.xp6(1),e.hij(" - ",e.xi3(27,60,t.evidenceLevel,"evidenceLevelBrief")," "),e.xp6(3),e.Q6J("nzTooltipTitle",e.xi3(30,63,t.evidenceRating,"evidenceRating")),e.xp6(2),e.Q6J("starRating",t.evidenceRating),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(69,F)),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",v),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(70,B)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(71,Ln)),e.xp6(2),e.Q6J("status",t.status),e.xp6(1),e.Q6J("nzTitle",a),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(3),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(72,F)),e.xp6(2),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!0),e.xp6(2),e.Q6J("nameSegments",t.molecularProfile.parsedName),e.xp6(2),e.Q6J("ngIf",t.disease)("ngIfElse",l),e.xp6(1),e.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",t.phenotypes.length>0)("ngIfElse",v),e.xp6(1),e.Q6J("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.xp6(1),e.Q6J("ngPlural",t.therapies.length),e.xp6(3),e.Q6J("ngIf",t.therapyInteractionType),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function kn(n,o){1&n&&e._UZ(0,"cvc-empty-value",51)}function Bn(n,o){1&n&&e._UZ(0,"cvc-empty-value",52)}let Fn=(()=>{class n{constructor(t,a){var l;if(this.gql=t,this.route=a,this.statusValues=p.RTy,null==(l=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:l});let v=this.queryRef.valueChanges;this.loading$=v.pipe((0,_.j)("loading"),(0,z.O)(!0)),this.evidence$=v.pipe((0,_.j)("data","evidenceItem")),this.subscribable={entityType:p.o71.EvidenceItem,id:l}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(p.sBY),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Statement"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","evidenceType","nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle",4,"ngIf","ngIfElse"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Level"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","Rating"],[3,"starRating"],["nzTitle","Source"],[3,"source"],[3,"nzTitle"],[4,"ngIf","ngIfElse"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Status"],[3,"status"],[3,"user"],["submittedTitle",""],["nzTitle","Molecular Profile"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],[3,"evidenceId","cvcTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["acceptedTitle",""],["nzTitle","Rejected"],["rejectedTitle",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,a){1&t&&(e.YNc(0,Un,67,73,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,kn,1,0,"ng-template",null,1,e.W1O),e.YNc(4,Bn,1,0,"ng-template",null,2,e.W1O)),2&t&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},dependencies:[d.sg,d.O5,d.tP,d.iq,d.zE,g.rH,s.t3,s.SK,f.ZU,T.j,J.R7,J.uj,c.SY,qe.P,an,cn.n,sn.h,rn.$,ln.I,pn.G,dn.T,gn.i,mn.T,un.x,vn.z,L.p,_n.C,d.rS,A.fM,fn.v,zn.x],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]}),n})();var Rn=i(7441);let Yn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:p.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,a){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",a.subscribable)},dependencies:[Rn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Vn=i(9894);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Vn.t]}),n})();const $n=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Fn,data:{breadcrumb:"Summary"}},{path:"comments",component:Ae,data:{breadcrumb:"Comments"}},{path:"revisions",component:Le,data:{breadcrumb:"Revisions"}},{path:"flags",component:De,data:{breadcrumb:"Flags"}},{path:"events",component:Yn,data:{breadcrumb:"Events"}}]}];let Wn=(()=>{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($n),He,be,Qe,Me,jn,g.Bz]}),n})();var Gn=i(7129),Kn=i(3786),Xn=i(8380),Hn=i(4059),qn=i(936);let et=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Wn,N.L,b.sL,s.Jb,E.PV,T.X,x.KJ,u.zf,f.ZJ,c.cg,y.D,S.m,Gn.g,S.m,Xn.P,k.s,Kn.G,y.D,Hn.c,qn.Z,U.u]}),n})()},4139:(D,C,i)=>{i.d(C,{H0:()=>M});var d=i(5879),y=i(6814),u=i(9388);let M=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=d.oAB({type:r}),r.\u0275inj=d.cJS({imports:[u.vT,y.ez]}),r})()}}]); \ No newline at end of file diff --git a/server/public/726.5d77cc63e9369f9f.js b/server/public/726.5d77cc63e9369f9f.js new file mode 100644 index 000000000..cd855962a --- /dev/null +++ b/server/public/726.5d77cc63e9369f9f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[726],{7570:(P,u,o)=>{function h(f,S){const v=(g,c)=>{let r;for(let d of g)if(d.fieldGroup)r=v(d.fieldGroup,c);else if(d.key===c){r=d;break}return r},C=(g,c)=>{for(let r of Object.keys(c))if(c[r]instanceof Object&&!Array.isArray(c[r]))C(g,c[r]);else{const d=v(g,r);d&&(d.defaultValue=c[r])}return g};return C(f,S)}o.d(u,{Z:()=>h})},8109:(P,u,o)=>{o.r(u),o.d(u,{GenesReviseModule:()=>Z});var h=o(6814),f=o(4190),S=o(8603),v=o(2419),C=o(2524),g=o(95),c=o(551),r=o(6254),d=o(7921),k=o(7398),z=o(4223),e=o(5879),M=o(313),N=o(951),E=o(8178),w=o(3145),b=o(8091),O=o(2616);function A(t,l){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function T(t,l){1&t&&(e.TgZ(0,"nz-row",8)(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function _(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e.ALo(6,"entityColor"),e._uU(7),e.qZA(),e.TgZ(8,"nz-page-header-subtitle"),e._uU(9),e.qZA(),e.TgZ(10,"nz-page-header-content")(11,"div",5),e.YNc(12,A,2,0,"div",6),e.ALo(13,"ngrxPush"),e.YNc(14,T,3,0,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()),2&t){const s=l.ngIf,m=e.MAs(15),y=e.oxw();e.xp6(1),e.Q6J("displayName",s.name),e.xp6(4),e.Q6J("nzTwotoneColor",e.lcZ(6,6,"Gene")),e.xp6(2),e.hij(" ",s.name," "),e.xp6(2),e.hij(" ",s.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(13,8,y.isSignedIn$))("ngIfElse",m)}}let a=(()=>{class t{constructor(s,m,y){this.gql=s,this.route=m,this.viewerService=y,this.routeSub=this.route.params.subscribe(j=>{let I=this.gql.watch({geneId:+j.geneId}).valueChanges;this.loading$=I.pipe((0,z.j)("loading"),(0,d.O)(!0)),this.gene$=I.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,k.U)(s=>s.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(s){return new(s||t)(e.Y36(M.TNk),e.Y36(f.gz),e.Y36(N.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","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(s,m){1&s&&(e.YNc(0,_,16,10,"ng-container",0),e.ALo(1,"async")),2&s&&e.Q6J("ngIf",e.lcZ(1,1,m.gene$))},dependencies:[h.O5,f.lC,r.$O,r.u9,r.yG,r.u5,c.Ls,g.t3,g.SK,E.u,w.I,h.Ov,b.fM,O.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{flex-wrap:nowrap;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 i=o(2574),n=o(4139),p=o(2962),x=o(6586);let D=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[h.ez,p.vh,g.Jb,i.zf,n.H0,r.KJ,x.C,v.D]}),t})();var B=o(8454);function G(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const s=e.oxw();e.xp6(1),e.Q6J("geneId",s.geneId)}}function L(t,l){1&t&&e._uU(0,"Loading Gene...")}const R=[{path:"",component:a,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(s){this.route=s,this.routeParams$=this.route.params.subscribe(m=>{this.geneId=+m.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(s){return new(s||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(s,m){if(1&s&&(e.YNc(0,G,2,1,"ng-container",0),e.YNc(1,L,1,0,"ng-template",null,1,e.W1O)),2&s){const y=e.MAs(2);e.Q6J("ngIf",m.geneId)("ngIfElse",y)}},dependencies:[h.O5,B.$],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{flex-wrap:nowrap;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 F=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[f.Bz.forChild(R),D]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[h.ez,f.Bz,F,r.KJ,c.PV,g.Jb,S.a,v.D,C.s]}),t})()},4139:(P,u,o)=>{o.d(u,{H0:()=>_});var h=o(5879),f=o(6814),S=o(9388);let _=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=h.oAB({type:a}),a.\u0275inj=h.cJS({imports:[S.vT,f.ez]}),a})()}}]); \ No newline at end of file diff --git a/server/public/7283.c53c0ad82e9d0906.js b/server/public/7283.c53c0ad82e9d0906.js new file mode 100644 index 000000000..1029786a6 --- /dev/null +++ b/server/public/7283.c53c0ad82e9d0906.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7283],{4059:(z,u,a)=>{a.d(u,{c:()=>c});var o=a(6814),l=a(9382),e=a(95),h=a(4190),f=a(551),_=a(3640),y=a(5879);let c=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=y.oAB({type:s}),s.\u0275inj=y.cJS({imports:[o.ez,h.Bz,l.we,e.Jb,f.PV,_.mS]}),s})()},9348:(z,u,a)=>{a.d(u,{J:()=>l,i:()=>o});const o={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},l={clientMutationId:void 0,fields:o,comment:void 0,organizationId:void 0}},9182:(z,u,a)=>{a.d(u,{_:()=>_});var o=a(313),l=a(1791),e=a(5619),h=a(9348),f=a(4607);class _ extends f.lG{constructor(){super(f.yQ.ASSERTION);const c=h.i;this.fields={molecularProfileId$:new e.X(c.molecularProfileId),variantMolecularProfile$:new e.X(void 0),geneId$:new e.X(void 0),variantId$:new e.X(void 0),variantOrigin$:new e.X(c.variantOrigin),assertionType$:new e.X(c.assertionType),assertionDirection$:new e.X(c.assertionDirection),evidenceItemIds$:new e.X(c.evidenceItemIds),significance$:new e.X(c.significance),diseaseId$:new e.X(c.diseaseId),therapyIds$:new e.X(c.therapyIds),therapyInteractionType$:new e.X(c.therapyInteractionType),phenotypeIds$:new e.X(c.phenotypeIds),nccnGuidelineId$:new e.X(c.nccnGuidelineId),fdaRegulatoryApproval$:new e.X(c.fdaRegulatoryApproval),fdaCompanionTest$:new e.X(c.fdaCompanionTest),ampLevel$:new e.X(c.ampLevel),acmgCodeIds$:new e.X(c.acmgCodeIds),clingenCodeIds$:new e.X(c.clingenCodeIds),nccnGuidelineVersion$:new e.X(c.nccnGuidelineVersion)},this.enums={entityType$:new e.X(this.getTypeOptions()),significance$:new e.X([]),direction$:new e.X([]),interaction$:new e.X(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.X(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.X(void 0),significanceOption$:new e.X(void 0)},this.requires={requiresDisease$:new e.X(!1),requiresTherapy$:new e.X(!1),requiresTherapyInteractionType$:new e.X(!1),requiresClingenCodes$:new e.X(!1),requiresAcmgCodes$:new e.X(!1),requiresAmpLevel$:new e.X(!1),allowsFdaApproval$:new e.X(!1)},this.fields.assertionType$.pipe((0,l.t)(this,"onDestroy")).subscribe(s=>{if(!s)return Object.entries(this.requires).forEach(([C,T])=>{T.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(s)),this.enums.direction$.next(this.getDirectionOptions(s)),this.requires.requiresDisease$.next(this.requiresDisease(s)),this.requires.requiresTherapy$.next(this.requiresTherapy(s)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(s)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(s)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(s)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(s))}),this.fields.therapyIds$.pipe((0,l.t)(this,"onDestroy")).subscribe(s=>{this.requires.requiresTherapyInteractionType$.next(null!=s&&s.length>1)}),this.validStates.set(o.uBv.Predictive,{entityType:o.uBv.Predictive,significance:[o._3P.Sensitivityresponse,o._3P.Resistance,o._3P.AdverseResponse,o._3P.ReducedSensitivity,o._3P.Na],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(o.uBv.Diagnostic,{entityType:o.uBv.Diagnostic,significance:[o._3P.Positive,o._3P.Negative],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Prognostic,{entityType:o.uBv.Prognostic,significance:[o._3P.BetterOutcome,o._3P.PoorOutcome,o._3P.Na],entityDirection:[o.mdl.Supports,o.mdl.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Predisposing,{entityType:o.uBv.Predisposing,significance:[o._3P.Pathogenic,o._3P.LikelyPathogenic,o._3P.Benign,o._3P.LikelyBenign,o._3P.UncertainSignificance],entityDirection:[o.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(o.uBv.Oncogenic,{entityType:o.uBv.Oncogenic,significance:[o._3P.Oncogenic,o._3P.LikelyOncogenic,o._3P.Benign,o._3P.LikelyBenign,o._3P.UncertainSignificance],entityDirection:[o.mdl.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},8088:(z,u,a)=>{a.r(u),a.d(u,{TestPagesModule:()=>Xe});var o=a(6814),l=a(4190),e=a(5879),h=a(2624);let f=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,r){1&n&&e._UZ(0,"cvc-assertion-revise-form",0),2&n&&e.Q6J("assertionId",3)},dependencies:[h.G],encapsulation:2,changeDetection:0}),t})();var _=a(6288);let y=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,r){1&n&&e._UZ(0,"cvc-assertion-submit-form")},dependencies:[_.u],encapsulation:2,changeDetection:0}),t})();var c=a(75);let s=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,r){1&n&&e._UZ(0,"cvc-evidence-revise-form",0),2&n&&e.Q6J("evidenceId",7606)},dependencies:[c.r],encapsulation:2,changeDetection:0}),t})();var C=a(1679);let T=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,r){1&n&&e._UZ(0,"cvc-evidence-submit-form")},dependencies:[C.l],encapsulation:2,changeDetection:0}),t})();var d=a(6223);const x={geneId:void 0},A=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select"},{key:"geneIds",type:"gene-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"variantId",type:"variant-select",props:{requireGene:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireGene:!1}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}}]},{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}}]}];var I=a(5545),O=a(3599);let F=(()=>{class t{constructor(){this.form=new d.nJ({}),this.model=x,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Horizontal Field Layout, No State"},fieldGroup:A}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(n,r){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return r.model=p}),e.qZA()()),2&n&&(e.Q6J("nzLayout",r.formLayout)("formGroup",r.form),e.xp6(1),e.Q6J("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d._Y,d.JL,d.sg,I.T7,O.Lr],encapsulation:2,changeDetection:0}),t})();var v,E=a(655),R=a(1791),J=a(5619),D=a(2181),$=a(7398),U=a(5676),N=a(4223),q=a(1757),B=a(313),S=a(8091),L=a(2962),m=a(3740),X=a(9835);function G(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td"),e.TgZ(6,"td"),e._UZ(7,"cvc-entity-tag",11),e.qZA(),e.TgZ(8,"td")(9,"cvc-entity-tag",12),e.NdJ("cvcTagCheckedChange",function(g){e.CHM(n);const p=e.oxw(3);return e.KtG(p.tagChecked(g))}),e.qZA()(),e._UZ(10,"td")(11,"td")(12,"td"),e.qZA()}if(2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r),e.xp6(3),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function Q(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td"),e.TgZ(6,"td"),e._UZ(7,"cvc-entity-tag",11),e.qZA(),e.TgZ(8,"td")(9,"cvc-entity-tag",12),e.NdJ("cvcTagCheckedChange",function(g){e.CHM(n);const p=e.oxw(3);return e.KtG(p.tagChecked(g))}),e.qZA()(),e._UZ(10,"td")(11,"td")(12,"td"),e.qZA()}if(2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r),e.xp6(3),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function V(t,i){if(1&t&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.qZA()),2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function j(t,i){if(1&t&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.qZA()),2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function H(t,i){if(1&t&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.qZA()),2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function K(t,i){if(1&t&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.qZA()),2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function Y(t,i){if(1&t&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._UZ(4,"cvc-entity-tag",7),e.qZA(),e._UZ(5,"td")(6,"td")(7,"td")(8,"td")(9,"td"),e.qZA()),2&t){const n=e.oxw().$implicit,r=e.oxw().ngrxLet;e.xp6(2),e.Oqu(n.__typename),e.xp6(2),e.Q6J("cvcCacheId",n.__typename+":"+n.id)("cvcEmphasize",r)}}function W(t,i){if(1&t&&(e.ynx(0)(1,8),e.YNc(2,G,13,7,"tr",9),e.YNc(3,Q,13,7,"tr",9),e.YNc(4,V,11,3,"tr",9),e.YNc(5,j,11,3,"tr",9),e.YNc(6,H,11,3,"tr",9),e.YNc(7,K,11,3,"tr",9),e.YNc(8,Y,10,3,"tr",10),e.BQk()()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("ngSwitch",n.__typename),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","MolecularProfile"),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Therapy"),e.xp6(1),e.Q6J("ngSwitchCase","Disease")}}function k(t,i){if(1&t&&(e.ynx(0),e.YNc(1,W,9,7,"ng-container",6),e.TgZ(2,"tr")(3,"td"),e._uU(4,"CACHE MISS"),e.qZA(),e.TgZ(5,"td"),e._UZ(6,"cvc-entity-tag",7),e.qZA(),e._UZ(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),e.qZA(),e.BQk()),2&t){const n=i.ngrxLet;e.oxw();const r=e.MAs(2);e.xp6(1),e.Q6J("ngForOf",r.data),e.xp6(5),e.Q6J("cvcCacheId","FakeTypename:42")("cvcEmphasize",n)}}function ee(t,i){if(1&t){const n=e.EpF();e._uU(0," Emphasize: "),e.TgZ(1,"input",13,14),e.NdJ("ngModelChange",function(){e.CHM(n);const g=e.MAs(2),p=e.oxw();return e.KtG(p.emphasizeStr$.next(g.value))}),e.ALo(3,"ngrxPush"),e.qZA()}if(2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngModel",e.lcZ(3,1,n.emphasizeStr$))}}const te=function(){return[]};let Z=((v=class{constructor(i){this.entityTagsTestGQL=i,this.emphasizeStr$=new J.X(""),this.queryParams={molecularProfileId:3133,geneId:5,variantId:2,therapyId:16,diseaseId:2198,eid:123},this.entityTagsData$=this.entityTagsTestGQL.fetch(this.queryParams).pipe((0,N.j)("data"),(0,D.h)(U.ep),(0,q._)("entityTagsData$"),(0,$.U)(n=>{console.log(n);const r=Object.values(n).filter(g=>"object"==typeof g);return console.log(r),r}))}tagChecked(i){console.log(`Tag checked: ${i}`)}ngOnInit(){}}).\u0275fac=function(i){return new(i||v)(e.Y36(B.eDl))},v.\u0275cmp=e.Xpm({type:v,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["tagTable",""],["nzWidth","150px"],[4,"ngrxLet"],["cardExtra",""],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcCacheId","cvcEmphasize","cvcTagCheckedChange"],["nz-input","","nzSize","small","type","text",3,"ngModel","ngModelChange"],["emphasizeInput",""]],template:function(i,n){1&i&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.ALo(3,"ngrxPush"),e.TgZ(4,"thead")(5,"tr")(6,"th",3),e._uU(7,"Entity"),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Default"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Popover"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Closeable"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Checkable"),e.qZA(),e.TgZ(16,"th"),e._uU(17,"Trucate"),e.qZA(),e.TgZ(18,"th"),e._uU(19,"Group"),e.qZA(),e.TgZ(20,"th"),e._uU(21,"Unlinked"),e.qZA()()(),e.TgZ(22,"tbody"),e.YNc(23,k,13,3,"ng-container",4),e.qZA()()(),e.YNc(24,ee,4,3,"ng-template",null,5,e.W1O)),2&i&&(e.xp6(1),e.Q6J("nzShowPagination",!1)("nzData",e.lcZ(3,3,n.entityTagsData$)||e.DdM(5,te)),e.xp6(22),e.Q6J("ngrxLet",n.emphasizeStr$))},dependencies:[o.sg,o.RF,o.n9,o.ED,S.eJ,d.Fj,d.JJ,d.On,L.bd,m.N8,m.Uo,m._C,m.Om,m.p0,m.$Z,X.J,S.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0}),v);Z=(0,E.gn)([(0,R.c)()],Z);let ne=(()=>{class t{constructor(){this.form=new d.nJ({}),this.model=x,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:A}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[2,"width","100%",3,"form","fields","model","options","modelChange"]],template:function(n,r){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return r.model=p}),e.qZA()()),2&n&&(e.Q6J("nzLayout",r.formLayout)("formGroup",r.form),e.xp6(1),e.Q6J("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d._Y,d.JL,d.sg,I.T7,O.Lr],encapsulation:2,changeDetection:0}),t})(),ie=(()=>{class t{constructor(){this.form=new d.nJ({}),this.model=x,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Vertical Field Layout, No State"},fieldGroup:A}]}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"form","fields","model","modelChange"]],template:function(n,r){1&n&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(p){return r.model=p}),e.qZA()()),2&n&&(e.Q6J("formGroup",r.form),e.xp6(1),e.Q6J("form",r.form)("fields",r.fields)("model",r.model))},dependencies:[d._Y,d.JL,d.sg,I.T7,O.Lr],encapsulation:2,changeDetection:0}),t})();var M=a(6254),b=a(95),P=a(9382),ae=a(3145);function oe(t,i){if(1&t&&(e.TgZ(0,"a",9),e._uU(1),e.qZA()),2&t){const n=e.oxw().$implicit;e.Q6J("routerLink",n.routeName),e.xp6(1),e.hij(" ",n.tabLabel," ")}}function re(t,i){1&t&&(e.TgZ(0,"nz-tab"),e.YNc(1,oe,2,2,"a",8),e.qZA())}let se=(()=>{class t{constructor(n){this.router=n,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Evidence Submit"},{routeName:"evidence-revise-test",iconName:"",tabLabel:"Evidence Revise"},{routeName:"assertion-submit-test",iconName:"",tabLabel:"Assertion Submit"},{routeName:"assertion-revise-test",iconName:"",tabLabel:"Assertion Revise"},{routeName:"variantgroup-revise-test",iconName:"",tabLabel:"VG Revise"},{routeName:"gene-revise-test",iconName:"",tabLabel:"Gene Revise"},{routeName:"mp-revise-test",iconName:"",tabLabel:"MP Revise"},{routeName:"variant-revise-test",iconName:"",tabLabel:"Variant Revise"},{routeName:"vertical-form",iconName:"",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"",tabLabel:"Tags"}]}getActivatedRouteIndex(n){return this.tabs?.findIndex(r=>n.includes(r.routeName))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.F0))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-test-pages"]],decls:15,vars:4,consts:[[1,"site-page-header"],["cvcFlaggableOptions",""],[3,"nzSpan"],["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex"],[4,"ngFor","ngForOf"],[1,"content"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"]],template:function(n,r){1&n&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-title",1),e._uU(3," Forms2 Test Pages "),e.qZA(),e.TgZ(4,"nz-page-header-content")(5,"nz-row")(6,"nz-col",2)(7,"nz-row",3)(8,"nz-col",4)(9,"nz-tabset",5),e.YNc(10,re,2,0,"nz-tab",6),e.qZA()()()()(),e.TgZ(11,"nz-row")(12,"nz-col",2)(13,"div",7),e._UZ(14,"router-outlet"),e.qZA()()()()()),2&n&&(e.xp6(6),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzSelectedIndex",r.selectedTabIndex),e.xp6(1),e.Q6J("ngForOf",r.tabs),e.xp6(2),e.Q6J("nzSpan",24))},dependencies:[o.sg,l.lC,l.rH,M.$O,M.u9,M.u5,b.t3,b.SK,P.xH,P.xw,P.Ao,P.Fx,ae.I],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{flex-wrap:nowrap;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}"],changeDetection:0}),t})();var ce=a(2480);let de=(()=>{class t{constructor(n){this.cdr=n}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:0,template:function(n,r){1&n&&e._UZ(0,"cvc-variantgroup-revise-form")},dependencies:[ce.L],encapsulation:2}),t})();var le=a(8454);let pe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"geneId"]],template:function(n,r){1&n&&e._UZ(0,"cvc-gene-revise-form",0),2&n&&e.Q6J("geneId",6)},dependencies:[le.$],encapsulation:2,changeDetection:0}),t})();var ge=a(3821);let ue=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,r){1&n&&e._UZ(0,"cvc-mp-revise-form",0),2&n&&e.Q6J("molecularProfileId",3176)},dependencies:[ge.R],encapsulation:2,changeDetection:0}),t})();var me=a(7093);const fe=[{path:"",component:se,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:T,data:{breadcrumb:"Evidence Submit Test"}},{path:"evidence-revise-test",component:s,data:{breadcrumb:"Evidence Revise Test"}},{path:"assertion-submit-test",component:y,data:{breadcrumb:"Assertion Submit Test"}},{path:"assertion-revise-test",component:f,data:{breadcrumb:"Assertion Revise Test"}},{path:"variantgroup-revise-test",component:de,data:{breadcrumb:"Variant Group Revise Test"}},{path:"gene-revise-test",component:pe,data:{breadcrumb:"Gene Revise Test"}},{path:"mp-revise-test",component:ue,data:{breadcrumb:"MP Revise Test"}},{path:"variant-revise-test",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,r){1&n&&e._UZ(0,"cvc-variant-revise-form",0),2&n&&e.Q6J("variantId",4)},dependencies:[me.J],encapsulation:2,changeDetection:0}),t})(),data:{breadcrumb:"Variant Revise Test"}},{path:"vertical-form",component:ie,data:{breadcrumb:"Nonstate"}},{path:"inline-form",component:ne,data:{breadcrumb:"Inline"}},{path:"horizontal-form",component:F,data:{breadcrumb:"Horizontal"}},{path:"tags-test",component:Z,data:{breadcrumb:"Horizontal"}}]}];let ve=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[l.Bz.forChild(fe),l.Bz]}),t})();var he=a(2419),_e=a(4059),ye=a(551),Te=a(2392),Pe=a(2524),Ce=a(8253),Me=a(2574);let ze=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ce.Z,Me.zf]}),t})();var xe=a(1986);let Ae=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,xe.A]}),t})();var Ie=a(1810);let Oe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ie.E]}),t})();var Ze=a(1487);let be=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ze.P]}),t})();var w=a(706);let we=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})(),Se=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})(),Le=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,w.S]}),t})();var Fe=a(188);let Ee=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,d.u5,L.vh,m.HQ,Fe.x]}),t})();var Re=a(9138);let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Re.A]}),t})();var De=a(6586);let $e=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,De.C]}),t})();var Ue=a(6012);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,Ue.i]}),t})();var qe=a(3281);let Be=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,qe.K]}),t})(),Xe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[o.ez,ve,M.KJ,b.Jb,ye.PV,Te.ZJ,P.we,ze,Ae,$e,Ne,Oe,be,Be,we,Se,Le,Ee,Pe.s,_e.c,he.D,Je]}),t})()}}]); \ No newline at end of file diff --git a/server/public/7625.00be2758225dac9e.js b/server/public/7625.00be2758225dac9e.js new file mode 100644 index 000000000..231e94e3b --- /dev/null +++ b/server/public/7625.00be2758225dac9e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7625],{1218:(A,x,n)=>{n.d(x,{i:()=>p});var _=n(6814),v=n(4190),u=n(5695),i=n(7417),z=n(551),m=n(1855),T=n(2524),S=n(3640),C=n(3146),h=n(5879);let p=(()=>{class g{}return g.\u0275fac=function(s){return new(s||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[_.ez,v.Bz,S.mS,u.X,i.$6,z.PV,m.f,T.s,C.C]}),g})()},1106:(A,x,n)=>{n.d(x,{L:()=>l});var _=n(6814),v=n(4190),u=n(5695),i=n(551),z=n(95),m=n(6067),T=n(8125),S=n(2962),C=n(4293),h=n(5879);let p=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[_.ez,S.vh,z.Jb,T.q6,m.X,C.H]}),s})();var g=n(7417);let l=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[_.ez,v.Bz,u.X,i.PV,g.$6,p]}),s})()},7950:(A,x,n)=>{n.d(x,{x:()=>g});var _=n(6814),v=n(366),u=n(5695),i=n(7417),z=n(3396),m=n(1106),T=n(5956),S=n(7528),C=n(6061),h=n(3717),p=n(5879);let g=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=p.oAB({type:l}),l.\u0275inj=p.cJS({imports:[_.ez,u.X,i.$6,v.$,C.N,z.Q,m.L,T.U,S.Q,h.M]}),l})()},6282:(A,x,n)=>{n.d(x,{O:()=>j});var _=n(655),v=n(4632),u=n(313),i=n(1791),z=n(5619),m=n(8645),T=n(5676),S=n(7398),C=n(3997),h=n(812),p=n(836),g=n(2181),l=n(3620),s=n(2460),f=n(4223),t=n(5879),O=n(951),y=n(6814),P=n(6223),F=n(4190),U=n(2840),D=n(855),b=n(1958),J=n(2962),L=n(551),B=n(7417),Z=n(9691),I=n(3740),R=n(5695),K=n(6109),W=n(4997),Y=n(9857),V=n(3489),w=n(6753),H=n(4764),M=n(8516),Q=n(9775),N=n(4138),$=n(9773),X=n(2024),q=n(7473),k=n(2669),tt=n(3903),nt=n(824),G=n(2574),et=n(6943),ot=n(5883);function at(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.onSuccessBannerClose())}),t.qZA()}}function rt(o,a){if(1&o&&t._UZ(0,"cvc-form-errors-alert",7),2&o){const e=t.oxw();t.Q6J("errors",e.errorMessages)}}function ct(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"textarea",8),t.NdJ("ngModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.reason=r)}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngModel",e.reason)}}function lt(o,a){1&o&&t._UZ(0,"nz-option",13)}function st(o,a){1&o&&t._UZ(0,"nz-option",14)}function it(o,a){1&o&&t._UZ(0,"nz-option",15)}function gt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-select",9),t.NdJ("ngModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.newStatus=r)}),t.YNc(1,lt,1,0,"nz-option",10),t.YNc(2,st,1,0,"nz-option",11),t.YNc(3,it,1,0,"nz-option",12),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngModel",e.newStatus),t.xp6(1),t.Q6J("ngIf","NEW"==e.currentStatus),t.xp6(1),t.Q6J("ngIf","NEW"!=e.currentStatus),t.xp6(1),t.Q6J("ngIf","NEW"==e.currentStatus)}}function ut(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-spin",16)(1,"cvc-form-buttons")(2,"button",17),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.updateSourceSuggestionStatus())}),t._uU(3," Update Source Suggestion status "),t.qZA()()()}if(2&o){const e=t.oxw();t.Q6J("nzSpinning",e.loading),t.xp6(2),t.Q6J("disabled",e.loading)}}let pt=(()=>{class o{constructor(e,c,r){this.viewerService=e,this.networkErrorService=c,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new t.vpe,this.destroy$=new m.x,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,$.R)(this.destroy$)).subscribe(d=>{this.organizations=d.organizations,this.mostRecentOrg=d.mostRecentOrg}),this.sourceSuggestionStatusMutator=new X.U(c)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){if(this.newStatus){let e=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:this.mostRecentOrg?.id}});e.submitSuccess$.pipe((0,$.R)(this.destroy$)).subscribe(c=>{this.resetForm(),this.success=!0}),e.submitError$.pipe((0,$.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c)}),e.isSubmitting$.pipe((0,$.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(O.a),t.Y36(q.Y),t.Y36(u.wRZ))},o.\u0275cmp=t.Xpm({type:o,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"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,c){1&e&&(t.TgZ(0,"nz-card")(1,"nz-space",0),t.YNc(2,at,1,0,"nz-alert",1),t.YNc(3,rt,1,1,"cvc-form-errors-alert",2),t.YNc(4,ct,1,1,"textarea",3),t.YNc(5,gt,4,4,"nz-select",4),t.YNc(6,ut,4,2,"nz-spin",5),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("ngIf",c.success),t.xp6(1),t.Q6J("ngIf",c.errorMessages.length))},dependencies:[y.O5,P.Fj,P.JJ,P.Q7,U.ix,D.w,b.dQ,J.bd,k.W,tt.r,nt.Zp,Z.Ip,Z.Vq,G.NU,G.$1,P.On,et.V,ot.Z],encapsulation:2}),o})();var E,dt=n(356),mt=n(2606),_t=n(8091),vt=n(2616);function Ct(o,a){}function zt(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",6),t.YNc(2,Ct,0,0,"ng-template",7),t.qZA(),t.BQk()),2&o){t.oxw();const e=t.MAs(8),c=t.MAs(10),r=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",c),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function Tt(o,a){}const ft=function(o){return{height:o}};function ht(o,a){if(1&o&&(t.TgZ(0,"div",8)(1,"nz-card",9),t.YNc(2,Tt,0,0,"ng-template",7),t.qZA()()),2&o){const e=t.oxw(),c=t.MAs(8),r=t.MAs(10),d=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,ft,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",c)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",d)}}function St(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-clearable-input-filter",29),t.NdJ("inputModelChange",function(r){t.CHM(e);const d=t.oxw(2);return t.KtG(d.submitterInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.filterChange$.next())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("inputModel",e.submitterInput)}}function xt(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",51),t._uU(2),t.ALo(3,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.status)," ")}}function Mt(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",52),t._uU(2),t.ALo(3,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.status)," ")}}function yt(o,a){if(1&o&&t._UZ(0,"i",55),2&o){const e=t.oxw(2).$implicit,c=t.oxw(2);t.Q6J("nzTooltipTitle",c.isScrolling?"":e.reason)}}function It(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",53),t.YNc(2,yt,1,1,"i",54),t._uU(3),t.ALo(4,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.reason&&""!=e.reason),t.xp6(1),t.hij(" ",t.lcZ(4,2,e.status)," ")}}function Pt(o,a){if(1&o&&t._UZ(0,"cvc-source-tag",56),2&o){const e=t.oxw().$implicit;t.Q6J("source",e.source)}}function Zt(o,a){if(1&o&&t._UZ(0,"cvc-user-tag",57),2&o){const e=t.oxw().$implicit;t.Q6J("user",e.user)}}function At(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.source.displayType," ")}}function Ot(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.source.citationId," ")}}function Et(o,a){if(1&o&&t._UZ(0,"cvc-molecular-profile-tag",58),2&o){const e=t.oxw().$implicit;t.Q6J("molecularProfile",e.molecularProfile)}}function Ut(o,a){if(1&o&&t._UZ(0,"cvc-disease-tag",59),2&o){const e=t.oxw().$implicit;t.Q6J("disease",e.disease)("truncateLongName",!0)}}const Jt=function(o,a,e){return{molecularProfileId:o,sourceId:a,diseaseId:e}};function Qt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-button-group")(1,"button",60),t._UZ(2,"i",61),t.qZA(),t.TgZ(3,"button",62),t.NdJ("click",function(){t.CHM(e);const r=t.oxw().$implicit,d=t.oxw(2);return t.KtG(d.setFormInputs(r.id,r.status))}),t._UZ(4,"i",63),t.qZA()()}if(2&o){const e=t.oxw().$implicit,c=t.oxw(2),r=t.MAs(6);t.xp6(1),t.Q6J("queryParams",t.kEZ(7,Jt,null==e.molecularProfile?null:e.molecularProfile.id,null==e.source?null:e.source.id,null==e.disease?null:e.disease.id))("disabled",e.status!=c.status.New)("nzTooltipTitle",c.isScrolling?"":"Create Evidence with this Source")("nzTooltipMouseEnterDelay",1),t.xp6(2),t.Q6J("nzTooltipTitle",c.isScrolling?"":"Manage Source Suggestion")("nzTooltipMouseEnterDelay",1)("nzPopoverContent",r)}}function Nt(o,a){1&o&&(t.ynx(0),t._uU(1," -- "),t.BQk())}function Dt(o,a){if(1&o&&(t.TgZ(0,"tr",39)(1,"td",40),t.ynx(2,41),t.ALo(3,"lowercase"),t.YNc(4,xt,4,3,"ng-container",42),t.YNc(5,Mt,4,3,"ng-container",42),t.YNc(6,It,5,4,"ng-container",42),t.BQk(),t.qZA(),t.TgZ(7,"td",24),t.YNc(8,Pt,1,1,"cvc-source-tag",43),t.qZA(),t.TgZ(9,"td",44),t._UZ(10,"i",17),t.ALo(11,"entityColor"),t.qZA(),t.TgZ(12,"td"),t.YNc(13,Zt,1,1,"cvc-user-tag",45),t.qZA(),t.TgZ(14,"td"),t.YNc(15,At,2,1,"ng-container",46),t.qZA(),t.TgZ(16,"td"),t.YNc(17,Ot,2,1,"ng-container",46),t.qZA(),t.TgZ(18,"td"),t.YNc(19,Et,1,1,"cvc-molecular-profile-tag",47),t.qZA(),t.TgZ(20,"td"),t.YNc(21,Ut,1,2,"cvc-disease-tag",48),t.qZA(),t.TgZ(22,"td",49),t._uU(23),t.ALo(24,"date"),t.qZA(),t.TgZ(25,"td",50),t.YNc(26,Qt,5,11,"nz-button-group",46),t.YNc(27,Nt,2,0,"ng-container",46),t.qZA()()),2&o){const e=a.$implicit,c=t.oxw(2);t.xp6(2),t.Q6J("ngSwitch",t.lcZ(3,15,e.status)),t.xp6(2),t.Q6J("ngSwitchCase","curated"),t.xp6(1),t.Q6J("ngSwitchCase","new"),t.xp6(1),t.Q6J("ngSwitchCase","rejected"),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(1),t.Q6J("nzTooltipTitle",c.isScrolling?"":e.initialComment),t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(11,17,"Comment")),t.xp6(3),t.Q6J("ngIf",e.user),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(2),t.Q6J("ngIf",e.molecularProfile),t.xp6(2),t.Q6J("ngIf",e.disease),t.xp6(2),t.hij(" ",t.lcZ(24,19,e.createdAt)," "),t.xp6(3),t.Q6J("ngIf",c.isSignedIn),t.xp6(1),t.Q6J("ngIf",!c.isSignedIn)}}const bt=function(){return[]},$t=function(){return{x:"680px",y:"800px"}},Ft=function(){return["descend","ascend",null]};function Lt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-table",10,11),t.NdJ("cvcTableScrollOnScroll",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.scrollEvent$.next(r))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",12),t.NdJ("nzSortOrderChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.sortChange$.next(r))}),t.TgZ(7,"tr",13)(8,"th",14),t._uU(9," Status "),t.qZA(),t.TgZ(10,"th",15),t._uU(11," Citation "),t.qZA(),t.TgZ(12,"th",16),t._UZ(13,"i",17),t.ALo(14,"entityColor"),t.qZA(),t.TgZ(15,"th",18),t._uU(16," Submitter "),t.qZA(),t.TgZ(17,"th",19),t._uU(18," Type "),t.qZA(),t.TgZ(19,"th",19),t._uU(20," ID "),t.qZA(),t.TgZ(21,"th",20),t._uU(22,"Molecular Profile"),t.qZA(),t.TgZ(23,"th",18),t._uU(24," Disease "),t.qZA(),t.TgZ(25,"th",21),t._uU(26," Submitted "),t.qZA(),t.TgZ(27,"th",22),t._uU(28," Actions "),t.qZA()(),t.TgZ(29,"tr",23)(30,"th",24)(31,"nz-select",25),t.NdJ("ngModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())})("ngModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.statusInput=r)}),t._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),t.qZA()(),t.TgZ(35,"th",24)(36,"cvc-clearable-input-filter",29),t.NdJ("inputModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.citationInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t._UZ(37,"th"),t.TgZ(38,"th"),t.YNc(39,St,1,1,"cvc-clearable-input-filter",30),t.qZA(),t.TgZ(40,"th")(41,"nz-select",31),t.NdJ("ngModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())})("ngModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.sourceTypeInput=r)}),t._UZ(42,"nz-option",32)(43,"nz-option",33),t.qZA()(),t.TgZ(44,"th")(45,"cvc-clearable-input-filter",34),t.NdJ("inputModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.citationIdInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t.TgZ(46,"th")(47,"cvc-clearable-input-filter",35),t.NdJ("inputModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.molecularProfileNameInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t.TgZ(48,"th")(49,"cvc-clearable-input-filter",36),t.NdJ("inputModelChange",function(r){t.CHM(e);const d=t.oxw();return t.KtG(d.diseaseNameInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t._UZ(50,"th")(51,"th",37),t.qZA()(),t.TgZ(52,"tbody"),t.YNc(53,Dt,28,21,"ng-template",38),t.qZA()()}if(2&o){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,33,e.row$)||t.DdM(43,bt))("nzLoading",!t.lcZ(3,35,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,37,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,39,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(44,$t))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(10),t.Q6J("nzColumnKey",e.sortColumns.Citation)("nzSortFn",!0),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(14,41,"Comment")),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.Submitter)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.SourceType)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.CitationId)("nzSortFn",!0),t.xp6(4),t.Q6J("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.CreatedAt)("nzSortDirections",t.DdM(45,Ft))("nzSortFn",!0),t.xp6(6),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.statusInput),t.xp6(5),t.Q6J("inputModel",e.citationInput),t.xp6(3),t.Q6J("ngIf",!e.submitterId),t.xp6(2),t.Q6J("ngModel",e.sourceTypeInput),t.xp6(4),t.Q6J("inputModel",e.citationIdInput),t.xp6(2),t.Q6J("inputModel",e.molecularProfileNameInput),t.xp6(2),t.Q6J("inputModel",e.diseaseNameInput)}}function Bt(o,a){if(1&o&&t._UZ(0,"cvc-update-source-suggestion-form",65),2&o){const e=t.oxw(2);t.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function Rt(o,a){if(1&o&&t.YNc(0,Bt,1,2,"cvc-update-source-suggestion-form",64),2&o){const e=t.oxw();t.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Kt(o,a){}function Wt(o,a){if(1&o&&(t.ynx(0),t.YNc(1,Kt,0,0,"ng-template",7),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Yt(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function Vt(o,a){if(1&o&&(t._UZ(0,"i",66),t.ALo(1,"entityColor"),t.YNc(2,Wt,2,1,"ng-container",46),t.YNc(3,Yt,2,1,"ng-container",46),t.TgZ(4,"span",67),t._UZ(5,"cvc-table-counts",68),t.qZA()),2&o){const e=t.oxw();t.Q6J("nzTwotoneColor",t.lcZ(1,4,"Source")),t.xp6(2),t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function wt(o,a){1&o&&(t.TgZ(0,"nz-tag",71),t._UZ(1,"i",72),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function Ht(o,a){if(1&o&&(t.YNc(0,wt,4,0,"nz-tag",69),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",70),t.ALo(3,"ngrxPush")),2&o){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let j=((E=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e,c){this.gql=a,this.viewerService=e,this.cdr=c,this.initialPageSize=35,this.isScrolling=!1,this.statusInput=u.F3s.New,this.sortColumns=u.jw9,this.status=u.F3s,this.showManageForm=!1,this.noMoreRows$=new z.X(!1),this.scrollEvent$=new z.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x,this.viewerService.viewer$.pipe((0,S.U)(r=>r.signedIn),(0,i.t)(this)).subscribe(r=>this.isSignedIn=r)}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New,sortBy:{column:this.sortColumns.CreatedAt,direction:u.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,f.j)("loading"),(0,C.x)(),(0,h.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,f.j)("loading"),(0,C.x)(),(0,p.T)(2)),this.connection$=this.result$.pipe((0,f.j)("data","sourceSuggestions"),(0,g.h)(T.ep)),this.row$=this.connection$.pipe((0,f.j)("edges"),(0,g.h)(T.ep),(0,S.U)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,f.j)("pageInfo"),(0,g.h)(T.ep)),this.sortChange$.pipe((0,i.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,v._)(a)})}),this.filterChange$.pipe((0,l.b)(500),(0,i.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,S.U)(a=>"stop"!==a),(0,C.x)(),(0,i.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,g.h)(a=>"bottom"===a),(0,s.M)(this.pageInfo$),(0,S.U)(([a,e])=>e),(0,i.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,molecularProfileName:this.molecularProfileNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}setFormInputs(a,e){this.selectedSourceId=a,this.selectedStatus=e,this.showManageForm=!0}closePopover(){this.showManageForm=!1}trackByIndex(a,e){return e?.id}}).\u0275fac=function(a){return new(a||E)(t.Y36(u.WRV),t.Y36(O.a),t.Y36(t.sBO))},E.\u0275cmp=t.Xpm({type:E,selectors:[["cvc-source-suggestions-table"]],inputs:{cvcHeight:"cvcHeight",sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:11,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["manageSuggestionTemplate",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","100px","nzLeft",""],["nzWidth","425px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","24px","nzAlign","center","nz-tooltip","","nzTooltipTitle","Submitter Comment"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","290px"],["nzWidth","90px","nzSortOrder","descend",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nzWidth","70px","nzRight","","nzAlign","center"],[1,"filter-row"],["nzLeft",""],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],[3,"inputModel","inputModelChange"],[3,"inputModel","inputModelChange",4,"ngIf"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModel","ngModelChange"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","inputModelChange"],["placeholderText","Molecular Profile",3,"inputModel","inputModelChange"],["placeholderText","Disease",3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],["nzLeft","","nzAlign","center"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"source",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user",4,"ngIf"],[4,"ngIf"],[3,"molecularProfile",4,"ngIf"],[3,"disease","truncateLongName",4,"ngIf"],["nzAlign","right"],["nzRight","","nzAlign","center",1,"button-cell"],["nzColor","green",1,"status-tag"],["nzColor","orange",1,"status-tag"],["nzColor","volcano",1,"status-tag"],["nz-icon","","nz-tooltip","","nzType","civic-comment",3,"nzTooltipTitle",4,"ngIf"],["nz-icon","","nz-tooltip","","nzType","civic-comment",3,"nzTooltipTitle"],[3,"source"],[3,"user"],[3,"molecularProfile"],[3,"disease","truncateLongName"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small","nz-tooltip","",3,"queryParams","disabled","nzTooltipTitle","nzTooltipMouseEnterDelay"],["nz-icon","","nzType","civic-evidence"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle","nzTooltipMouseEnterDelay","nzPopoverContent","click"],["nz-icon","","nzType","civic-source"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,e){if(1&a&&(t.YNc(0,zt,3,3,"ng-container",0),t.YNc(1,ht,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Lt,54,46,"ng-template",null,2,t.W1O),t.YNc(5,Rt,1,1,"ng-template",null,3,t.W1O),t.YNc(7,Vt,6,6,"ng-template",null,4,t.W1O),t.YNc(9,Ht,4,6,"ng-template",null,5,t.W1O)),2&a){const c=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",c)}},dependencies:[y.O5,y.tP,y.PC,y.RF,y.n9,P.JJ,P.On,F.rH,U.ix,U.fY,D.w,b.dQ,J.bd,L.Ls,B.lU,Z.Ip,Z.Vq,I.N8,I.qD,I.Uo,I._C,I.Om,I.p0,I.$Z,I.zu,I.qn,I.UX,R.j,K.SY,W.y,Y.B,V.H,w.D,H.q,M.p,Q.n,N.T,pt,dt.I,mt.p,y.i8,y.uU,_t.fM,vt.a],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}.status-tag[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),E);j=(0,_.gn)([(0,i.c)()],j)},7240:(A,x,n)=>{n.d(x,{W:()=>H});var _=n(6814),v=n(6223),u=n(4190),i=n(3396),z=n(8527),m=n(7856),T=n(9154),S=n(2989),C=n(8641),h=n(8706),p=n(2524),g=n(9175),l=n(4742),s=n(9312),f=n(100),t=n(2962),O=n(3599),y=n(6545),P=n(2840),F=n(9382),U=n(2669),D=n(3903),b=n(824),J=n(9691),L=n(9543),B=n(2574),Z=n(5879);let I=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=Z.oAB({type:M}),M.\u0275inj=Z.cJS({imports:[_.ez,v.UX,P.sL,t.vh,F.we,O.U5,U.j,D.L,b.o7,J.LV,B.zf,v.u5,f.B,y.R,L.w]}),M})();var R=n(551),K=n(7417),W=n(3740),Y=n(5695),V=n(6109),w=n(2392);let H=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=Z.oAB({type:M}),M.\u0275inj=Z.cJS({imports:[_.ez,v.u5,u.Bz,P.sL,t.vh,R.PV,K.$6,J.LV,W.HQ,Y.X,V.cg,w.ZJ,s.w,S.T,T.y,g.n,l.c,m.k,i.Q,f.B,p.s,C.s,I,h.W,z.u]}),M})()},3641:(A,x,n)=>{n.d(x,{G:()=>f});var _=n(6814),v=n(4190),u=n(7417),i=n(5695),z=n(551),m=n(366),T=n(8641),S=n(7528),C=n(2524),h=n(2962),p=n(8125),g=n(5879);let l=(()=>{class t{}return t.\u0275fac=function(y){return new(y||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[_.ez,h.vh,p.q6,z.PV,T.s,S.Q,m.$,C.s]}),t})();var s=n(3146);let f=(()=>{class t{}return t.\u0275fac=function(y){return new(y||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[_.ez,v.Bz,u.$6,i.X,z.PV,l,C.s,s.C]}),t})()},3717:(A,x,n)=>{n.d(x,{M:()=>g});var _=n(6814),v=n(4190),u=n(5695),i=n(2962),z=n(6067),m=n(8125),T=n(551),S=n(2524),C=n(5879);let h=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[_.ez,T.PV,i.vh,m.q6,S.s,z.X]}),l})();var p=n(7417);let g=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[_.ez,v.Bz,T.PV,u.X,p.$6,h]}),l})()},4010:(A,x,n)=>{n.d(x,{F:()=>u});var v=n(5879);let u=(()=>{class i{transform(m,T="display-string"){return void 0===m?"":"display-string"===T?function _(i){switch(i){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return i}}(m):`civic-${m.replace(/_/g,"").toLowerCase()}`}}return i.\u0275fac=function(m){return new(m||i)},i.\u0275pipe=v.Yjl({name:"therapyInteractionEnumDisplay",type:i,pure:!0}),i})()},684:(A,x,n)=>{n.d(x,{K:()=>h});var _=n(6814),v=n(5545),u=n(5879),i=n(6223),z=n(824);const T={name:"comment-textarea",component:(()=>{class p extends v.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(l,s)=>`Comments must be at least ${s.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return p.\u0275fac=function(){let g;return function(s){return(g||(g=u.n5z(p)))(s||p)}}(),p.\u0275cmp=u.Xpm({type:p,selectors:[["comment-textarea-type"]],features:[u.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(l,s){1&l&&u._UZ(0,"textarea",0),2&l&&u.Q6J("formControl",s.formControl)("formlyAttributes",s.field)},dependencies:[i.Fj,i.JJ,i.oH,v.JD,z.Zp],encapsulation:2,changeDetection:0}),p})(),wrappers:["form-field"]};var S=n(3599),C=n(7459);let h=(()=>{class p{}return p.\u0275fac=function(l){return new(l||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[_.ez,i.UX,v.X0.forChild({types:[T]}),C.u,S.U5,z.o7]}),p})()}}]); \ No newline at end of file diff --git a/server/public/7774.b67b0f2d9dc8c74b.js b/server/public/7774.b67b0f2d9dc8c74b.js deleted file mode 100644 index f60a6696c..000000000 --- a/server/public/7774.b67b0f2d9dc8c74b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7774],{4786:(B,k,s)=>{s.d(k,{O:()=>u});var i=s(8130),E=s(2023),l=s(5879),t=s(6814),M=s(4190),z=s(5695),y=s(7417),w=s(551),I=s(8213),T=s(3103),P=s(2616);function x(c,p){}function N(c,p){if(1&c&&(l.ynx(0),l.TgZ(1,"a",4),l.YNc(2,x,0,0,"ng-template",5),l.qZA(),l.BQk()),2&c){const m=l.oxw(),A=l.MAs(2);l.xp6(1),l.Q6J("routerLink",m.evidence.link),l.xp6(1),l.Q6J("ngTemplateOutlet",A)}}function C(c,p){}function S(c,p){if(1&c&&l._UZ(0,"cvc-evidence-popover",9),2&c){const m=l.oxw(3);l.Q6J("evidenceId",m.evidence.id)}}function _(c,p){if(1&c&&l.YNc(0,S,1,1,"cvc-evidence-popover",8),2&c){const m=l.oxw(2);l.Q6J("ngIf",m.enablePopover)}}const Z=function(c,p,m){return{rejected:c,submitted:p,accepted:m}};function L(c,p){if(1&c&&(l.TgZ(0,"nz-tag",6),l.YNc(1,C,0,0,"ng-template",5),l.qZA(),l.YNc(2,_,1,1,"ng-template",null,7,l.W1O)),2&c){const m=l.MAs(3),A=l.oxw(),U=l.MAs(6);l.Q6J("ngClass",l.kEZ(5,Z,"REJECTED"===A.evidence.status,"SUBMITTED"===A.evidence.status,"ACCEPTED"===A.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",A.enablePopover?"hover":null),l.xp6(1),l.Q6J("ngTemplateOutlet",U)}}function W(c,p){}function Y(c,p){if(1&c&&l.YNc(0,W,0,0,"ng-template",5),2&c){l.oxw();const m=l.MAs(2);l.Q6J("ngTemplateOutlet",m)}}function J(c,p){if(1&c&&(l.TgZ(0,"cvc-icon-badges",10),l._UZ(1,"i",11),l.ALo(2,"entityColor"),l.ALo(3,"entityColor"),l.qZA(),l._uU(4)),2&c){const m=l.oxw();l.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),l.xp6(1),l.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?l.lcZ(2,4,"Rejected"):l.lcZ(3,6,"EvidenceItem")),l.xp6(3),l.hij(" ",m.evidence.name,"\n")}}let u=(()=>{class c extends i.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,E.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[l.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,A){if(1&m&&(l.YNc(0,N,3,2,"ng-container",0),l.YNc(1,L,4,9,"ng-template",null,1,l.W1O),l.YNc(3,Y,1,1,"ng-template",null,2,l.W1O),l.YNc(5,J,5,8,"ng-template",null,3,l.W1O)),2&m){const U=l.MAs(4);l.Q6J("ngIf",A.linked)("ngIfElse",U)}},dependencies:[t.mk,t.O5,t.tP,M.rH,z.j,y.lU,w.Ls,I._,T.b,P.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),c})()},1218:(B,k,s)=>{s.d(k,{i:()=>P});var i=s(6814),E=s(4190),l=s(5695),t=s(7417),M=s(551),z=s(1855),y=s(2524),w=s(3640),I=s(3146),T=s(5879);let P=(()=>{class x{}return x.\u0275fac=function(C){return new(C||x)},x.\u0275mod=T.oAB({type:x}),x.\u0275inj=T.cJS({imports:[i.ez,E.Bz,w.mS,l.X,t.$6,M.PV,z.f,y.s,I.C]}),x})()},215:(B,k,s)=>{s.d(k,{m:()=>ht});var i=s(5879),E=s(6814),l=s(4190),t=s(5695),M=s(551),z=s(7417),y=s(5676),w=s(7398),I=s(2181),T=s(313),P=s(2962),x=s(95),N=s(8125),C=s(3317),S=s(7458),_=s(8091);const Z=function(h,f){return{displayName:h,profileImagePath:f}};function L(h,f){if(1&h&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&h){const d=i.oxw().ngIf;i.Q6J("user",i.WLB(2,Z,d.name,d.profileImagePath)),i.xp6(2),i.Oqu(d.name)}}function W(h,f){if(1&h&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&h){const d=f.ngIf;i.xp6(1),i.Oqu(d)}}function Y(h,f){if(1&h&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&h){const d=i.oxw().ngIf;i.xp6(1),i.Q6J("href",d.url),i.xp6(1),i.hij(" ",d.name," ")}}function J(h,f){if(1&h&&(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")(5,"nz-col",6)(6,"div",7)(7,"p",8),i.YNc(8,W,2,1,"span",9),i.qZA()()()(),i.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),i.YNc(11,Y,3,2,"ng-container",9),i.qZA()()(),i.BQk()),2&h){const d=f.ngIf,O=i.MAs(3);i.oxw();const b=i.MAs(4),Q=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",O),i.xp6(7),i.Q6J("ngIf",d.description)("ngIfElse",b),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",d.url)("ngIfElse",Q)}}function u(h,f){1&h&&i._uU(0," Organization has not provided a description.\n")}function c(h,f){1&h&&i._uU(0," -- ")}let p=(()=>{class h{constructor(d){this.gql=d}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,w.U)(({data:d})=>d?.organization),(0,I.h)(y.ep))}}return h.\u0275fac=function(d){return new(d||h)(i.Y36(T.X5f))},h.\u0275cmp=i.Xpm({type:h,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(d,O){1&d&&(i.TgZ(0,"div",0),i.YNc(1,J,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,u,1,0,"ng-template",null,2,i.W1O),i.YNc(5,c,1,0,"ng-template",null,3,i.W1O)),2&d&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,O.org$)))},dependencies:[E.O5,P.bd,x.t3,x.SK,N.R7,N.uj,C.l,S.L,_.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}"]}),h})();function m(h,f){}function A(h,f){if(1&h&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,m,0,0,"ng-template",5),i.qZA(),i.BQk()),2&h){const d=i.oxw(),O=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",d.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",O)}}function U(h,f){}function q(h,f){if(1&h&&i._UZ(0,"cvc-organization-popover",9),2&h){const d=i.oxw(3);i.Q6J("orgId",d.org.id)}}function tt(h,f){if(1&h&&i.YNc(0,q,1,1,"cvc-organization-popover",8),2&h){const d=i.oxw(2);i.Q6J("ngIf",d.enablePopover)}}function et(h,f){if(1&h&&(i.TgZ(0,"nz-tag",6),i.YNc(1,U,0,0,"ng-template",5),i.qZA(),i.YNc(2,tt,1,1,"ng-template",null,7,i.W1O)),2&h){const d=i.MAs(3);i.oxw();const O=i.MAs(6);i.Q6J("nzPopoverContent",d),i.xp6(1),i.Q6J("ngTemplateOutlet",O)}}function nt(h,f){}function ot(h,f){if(1&h&&i.YNc(0,nt,0,0,"ng-template",5),2&h){i.oxw();const d=i.MAs(2);i.Q6J("ngTemplateOutlet",d)}}function it(h,f){if(1&h&&(i._UZ(0,"i",10),i._uU(1)),2&h){const d=i.oxw();i.xp6(1),i.hij(" ",d.org.name,"\n")}}let ht=(()=>{class h{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 h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=i.Xpm({type:h,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(d,O){if(1&d&&(i.YNc(0,A,3,2,"ng-container",0),i.YNc(1,et,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ot,1,1,"ng-template",null,2,i.W1O),i.YNc(5,it,2,1,"ng-template",null,3,i.W1O)),2&d){const b=i.MAs(4);i.Q6J("ngIf",O.linked)("ngIfElse",b)}},dependencies:[E.O5,E.tP,l.rH,t.j,M.Ls,z.lU,p],styles:["[_nghost-%COMP%]{display:inline-block}"]}),h})()},1106:(B,k,s)=>{s.d(k,{L:()=>N});var i=s(6814),E=s(4190),l=s(5695),t=s(551),M=s(95),z=s(6067),y=s(8125),w=s(2962),I=s(1022),T=s(5879);let P=(()=>{class C{}return C.\u0275fac=function(_){return new(_||C)},C.\u0275mod=T.oAB({type:C}),C.\u0275inj=T.cJS({imports:[i.ez,w.vh,M.Jb,y.q6,z.X,I.H]}),C})();var x=s(7417);let N=(()=>{class C{}return C.\u0275fac=function(_){return new(_||C)},C.\u0275mod=T.oAB({type:C}),C.\u0275inj=T.cJS({imports:[i.ez,E.Bz,l.X,t.PV,x.$6,P]}),C})()},3641:(B,k,s)=>{s.d(k,{G:()=>S});var i=s(6814),E=s(4190),l=s(7417),t=s(5695),M=s(551),z=s(366),y=s(8641),w=s(7528),I=s(2524),T=s(2962),P=s(8125),x=s(5879);let N=(()=>{class _{}return _.\u0275fac=function(L){return new(L||_)},_.\u0275mod=x.oAB({type:_}),_.\u0275inj=x.cJS({imports:[i.ez,T.vh,P.q6,M.PV,y.s,w.Q,z.$,I.s]}),_})();var C=s(3146);let S=(()=>{class _{}return _.\u0275fac=function(L){return new(L||_)},_.\u0275mod=x.oAB({type:_}),_.\u0275inj=x.cJS({imports:[i.ez,E.Bz,l.$6,t.X,M.PV,N,I.s,C.C]}),_})()},91:(B,k,s)=>{s.r(k),s.d(k,{WelcomeModule:()=>ye});var i=s(4190),E=s(313),l=s(7398),t=s(5879),M=s(9862),z=s(6814),y=s(95),w=s(9388),I=s(2831),T=s(655),P=s(6028),x=s(8645),N=s(2438),C=s(9773),S=s(874),_=s(7754),Z=s(9087);const L=["slickList"],W=["slickTrack"];function Y(n,o){}const J=function(n){return{$implicit:n}};function u(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const g=t.CHM(e).index,D=t.oxw(2);return t.KtG(D.onLiClick(g))}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&n){const e=o.index,r=t.oxw(2),a=t.MAs(8);t.ekj("slick-active",e===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||a)("ngTemplateOutletContext",t.VKq(4,J,e))}}function c(n,o){if(1&n&&(t.TgZ(0,"ul",7),t.YNc(1,u,2,6,"li",8),t.qZA()),2&n){const e=t.oxw();t.ekj("slick-dots-top","top"===e.nzDotPosition)("slick-dots-bottom","bottom"===e.nzDotPosition)("slick-dots-left","left"===e.nzDotPosition)("slick-dots-right","right"===e.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",e.carouselContents)}}function p(n,o){if(1&n&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e+1)}}const m=["*"];let A=(()=>{class n{set isActive(e){this._active=e,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(e,r){this.renderer=r,this._active=!1,this.el=e.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"]}),n})();class U{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(o,e,r,a,g){this.cdr=e,this.renderer=r,this.platform=a,this.options=g,this.carouselComponent=o}withCarouselContents(o){const e=this.carouselComponent;if(this.slickListEl=e.slickListEl,this.slickTrackEl=e.slickTrackEl,this.contents=o?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const r=e.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else o?.forEach((r,a)=>{0===a?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(o){}dispose(){}getFromToInBoundary(o,e){const r=this.maxIndex+1;return{from:(o+r)%r,to:(e+r)%r}}}class q extends U{withCarouselContents(o){super.withCarouselContents(o),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((e,r)=>{this.renderer.setStyle(e.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(e.el,"position","relative"),this.renderer.setStyle(e.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(e.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(e.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(o,e){const{to:r}=this.getFromToInBoundary(o,e),a=new x.x;return this.contents.forEach((g,D)=>{this.renderer.setStyle(g.el,"opacity",r===D?"1":"0")}),setTimeout(()=>{a.next(),a.complete()},this.carouselComponent.nzTransitionSpeed),a}dispose(){this.contents.forEach(o=>{this.renderer.setStyle(o.el,"transition",null),this.renderer.setStyle(o.el,"opacity",null),this.renderer.setStyle(o.el,"width",null),this.renderer.setStyle(o.el,"left",null)}),super.dispose()}}class tt extends U{get vertical(){return this.carouselComponent.vertical}constructor(o,e,r,a,g){super(o,e,r,a,g),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(o){super.withCarouselContents(o);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(a=>{this.renderer.setStyle(a.el,"position","relative"),this.renderer.setStyle(a.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(a.el,"height",`${this.unitHeight}px`)}))}switch(o,e){const{to:r}=this.getFromToInBoundary(o,e),a=new x.x;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(o,e):this.horizontalTransform(o,e),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(g=>{this.renderer.setStyle(g.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,a.next(),a.complete()},this.carouselComponent.nzTransitionSpeed),a.asObservable()}dragging(o){if(this.isTransitioning)return;const e=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareVerticalContext(!0):0===e&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-e*this.unitHeight+o.x}px, 0)`)):(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareHorizontalContext(!0):0===e&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-e*this.unitWidth+o.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(o,e){const{from:r,to:a}=this.getFromToInBoundary(o,e);this.length>2&&e!==a?(this.prepareVerticalContext(a2&&e!==a?(this.prepareHorizontalContext(a{class n{set nzDotPosition(e){this._dotPosition=e,this.vertical="left"===e||"right"===e}get nzDotPosition(){return this._dotPosition}constructor(e,r,a,g,D,$,V,lt,ct,pt){this.nzConfigService=r,this.ngZone=a,this.renderer=g,this.cdr=D,this.platform=$,this.resizeService=V,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.nzLoop=!0,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 x.x,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=F=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-F:F)},this.pointerDown=F=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(F).subscribe(v=>{this.pointerDelta=v,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const v=this.pointerDelta?this.pointerDelta.x:0;Math.abs(v)>this.gestureRect.width/3&&(this.nzLoop||v<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(v>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=e.nativeElement}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(e=>{this.dir=e,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,N.R)(this.slickListEl,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(e=>{const{keyCode:r}=e;r!==P.oh&&r!==P.SV||(e.preventDefault(),this.ngZone.run(()=>{r===P.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(e){const{nzEffect:r,nzDotPosition:a}=e;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),a&&!a.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(e){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||e>=0&&e{this.scheduleNextTransition(),this.nzAfterChange.emit(g),this.isTransiting=!1}),this.markContentActive(g),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const e=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=e?new e.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new tt(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(e){this.activeIndex=e,this.carouselContents&&this.carouselContents.forEach((r,a)=>{r.isActive="rtl"===this.dir?e===this.carouselContents.length-1-a:e===a}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(S.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(I.t4),t.Y36(Z.rI),t.Y36(Z.Ml),t.Y36(w.Is,8),t.Y36(et,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-carousel"]],contentQueries:function(e,r,a){if(1&e&&t.Suo(a,A,4),2&e){let g;t.iGM(g=t.CRH())&&(r.carouselContents=g)}},viewQuery:function(e,r){if(1&e&&(t.Gf(L,7),t.Gf(W,7)),2&e){let a;t.iGM(a=t.CRH())&&(r.slickList=a.first),t.iGM(a=t.CRH())&&(r.slickTrack=a.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(e,r){2&e&&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",nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:m,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(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("mousedown",function(g){return r.pointerDown(g)})("touchstart",function(g){return r.pointerDown(g)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA()(),t.YNc(6,c,2,9,"ul",5),t.qZA(),t.YNc(7,p,2,1,"ng-template",null,6,t.W1O)),2&e&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},dependencies:[z.sg,z.O5,z.tP],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,S.oS)()],n.prototype,"nzEffect",void 0),(0,T.gn)([(0,S.oS)(),(0,_.yF)()],n.prototype,"nzEnableSwipe",void 0),(0,T.gn)([(0,S.oS)(),(0,_.yF)()],n.prototype,"nzDots",void 0),(0,T.gn)([(0,S.oS)(),(0,_.yF)()],n.prototype,"nzAutoPlay",void 0),(0,T.gn)([(0,S.oS)(),(0,_.Rn)()],n.prototype,"nzAutoPlaySpeed",void 0),(0,T.gn)([(0,_.Rn)()],n.prototype,"nzTransitionSpeed",void 0),(0,T.gn)([(0,S.oS)()],n.prototype,"nzLoop",void 0),(0,T.gn)([(0,S.oS)()],n.prototype,"nzDotPosition",null),n})(),it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[w.vT,z.ez,I.ud]}),n})();var f=s(2962),d=s(2574),O=s(2392),b=s(5676),Q=s(2181),R=s(4223),H=s(6223),st=s(2996),G=s(7907),rt=s(855),j=s(551),gt=s(8091),ft=s(2616);function zt(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(a){t.CHM(e);const g=t.oxw();return t.KtG(g.statsType=a)}),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()()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.statsType)}}function _t(n,o){1&n&&(t._UZ(0,"i",31),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Assertion"))}function vt(n,o){1&n&&(t._UZ(0,"i",32),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"EvidenceItem"))}function Ct(n,o){1&n&&(t._UZ(0,"i",33),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Gene"))}function Tt(n,o){1&n&&(t._UZ(0,"i",34),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Variant"))}function xt(n,o){1&n&&(t._UZ(0,"i",35),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"MolecularProfile"))}function yt(n,o){1&n&&(t._UZ(0,"i",36),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Disease"))}function St(n,o){1&n&&(t._UZ(0,"i",37),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Therapy"))}function Et(n,o){1&n&&(t._UZ(0,"i",38),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Source"))}function At(n,o){1&n&&(t._UZ(0,"i",39),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Revision"))}function It(n,o){1&n&&(t._UZ(0,"i",40),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Curator"))}function Pt(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",9)(2,"nz-col",10)(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,_t,2,3,"ng-template",null,13,t.W1O),t.qZA()(),t.TgZ(8,"nz-col",10)(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,vt,2,3,"ng-template",null,15,t.W1O),t.qZA()(),t.TgZ(14,"nz-col",10)(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,Ct,2,3,"ng-template",null,17,t.W1O),t.qZA()(),t.TgZ(20,"nz-col",10)(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,Tt,2,3,"ng-template",null,19,t.W1O),t.qZA()(),t.TgZ(26,"nz-col",10)(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,xt,2,3,"ng-template",null,21,t.W1O),t.qZA()()(),t.TgZ(32,"nz-row",9)(33,"nz-col",10)(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,yt,2,3,"ng-template",null,23,t.W1O),t.qZA()(),t.TgZ(39,"nz-col",10)(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,St,2,3,"ng-template",null,25,t.W1O),t.qZA()(),t.TgZ(45,"nz-col",10)(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,Et,2,3,"ng-template",null,27,t.W1O),t.qZA()(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,At,2,3,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10)(57,"a",29),t._UZ(58,"nz-statistic",12),t.ALo(59,"number"),t.YNc(60,It,2,3,"ng-template",null,30,t.W1O),t.qZA()()(),t.BQk()),2&n){const e=o.ngIf,r=t.MAs(7),a=t.MAs(13),g=t.MAs(19),D=t.MAs(25),$=t.MAs(31),V=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),F=t.MAs(61),v=t.oxw();t.xp6(4),t.Q6J("nzTitle",v.label()+" Assertions")("nzValue",t.lcZ(5,30,e.assertions[v.statsType]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",v.label()+" Evidence")("nzValue",t.lcZ(11,32,e.evidenceItems[v.statsType]))("nzPrefix",a),t.xp6(6),t.Q6J("nzTitle",v.label()+" Genes")("nzValue",t.lcZ(17,34,e.genes[v.statsType]))("nzPrefix",g),t.xp6(6),t.Q6J("nzTitle",v.label()+" Variants")("nzValue",t.lcZ(23,36,e.variants[v.statsType]))("nzPrefix",D),t.xp6(6),t.Q6J("nzTitle",v.label()+" Molecular Profiles")("nzValue",t.lcZ(29,38,e.molecularProfiles[v.statsType]))("nzPrefix",$),t.xp6(7),t.Q6J("nzTitle",v.label()+" Diseases")("nzValue",t.lcZ(36,40,e.diseases[v.statsType]))("nzPrefix",V),t.xp6(6),t.Q6J("nzTitle",v.label()+" Therapies")("nzValue",t.lcZ(42,42,e.therapies[v.statsType]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",v.label()+" Sources")("nzValue",t.lcZ(48,44,e.sources[v.statsType]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",v.label()+" Revisions")("nzValue",t.lcZ(53,46,e.revisions[v.statsType]))("nzPrefix",pt),t.xp6(6),t.Q6J("nzTitle",v.label()+" Contributors")("nzValue",t.lcZ(59,48,e.users[v.statsType]))("nzPrefix",F)}}function kt(n,o){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",10),t._UZ(2,"nz-statistic",41),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",41),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",41),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",41),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",41),t.qZA()(),t.TgZ(11,"nz-row",9)(12,"nz-col",10),t._UZ(13,"nz-statistic",41),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",41),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",41),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",41),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzTitle",e.label()+" Assertions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Evidence")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Genes")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Variants")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Molecular Profiles")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",e.label()+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Therapies")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Sources")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Contributors")("nzValue","--")}}let wt=(()=>{class n{constructor(e){this.statsGql=e,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,R.j)("loading"),(0,Q.h)(b.ep)),this.stats$=this.response$.pipe((0,R.j)("data","timepointStats"),(0,Q.h)(b.ep))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(E.UWf))},n.\u0275cmp=t.Xpm({type:n,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","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/molecular-profiles"],["mpIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/therapies"],["therapyIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["routerLink","/users"],["userIcon",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(e,r){if(1&e&&(t.TgZ(0,"nz-card",0),t.YNc(1,zt,9,1,"ng-template",null,1,t.W1O),t.YNc(3,Pt,62,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,kt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&e){const a=t.MAs(2),g=t.MAs(6);t.Q6J("nzExtra",a),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",g)}},dependencies:[z.O5,H.JJ,H.On,i.rH,st.my,y.t3,y.SK,f.bd,G.Of,G.Bq,G.Dg,rt.w,j.Ls,z.JJ,gt.fM,ft.a],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),n})();var Ot=s(553),K=s(2840),Mt=s(1958),X=s(804),Nt=s(7169);function Zt(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&n){const e=t.oxw().ngIf,r=t.oxw(3);t.xp6(1),t.Q6J("events",e)("tagDisplay",r.tagDisplay)}}function Dt(n,o){1&n&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2," See Full Activity Feed "),t.qZA(),t.BQk())}function Lt(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",8),t.YNc(3,Zt,2,2,"ng-container",0),t.YNc(4,Dt,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&n){const e=o.ngIf,r=t.oxw(3),a=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.length)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,r.pageInfo$))}}function bt(n,o){if(1&n&&(t.TgZ(0,"nz-card",6),t.YNc(1,Lt,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,e.events$))}}function Ut(n,o){1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,bt,3,4,"nz-card",5),t.qZA()()(),t.BQk()),2&n&&(t.xp6(1),t.Q6J("nzGutter",16))}function Jt(n,o){1&n&&t._UZ(0,"nz-empty",11)}let Qt=(()=>{class n{constructor(e){this.gql=e,this.pageSize=15,this.mode=E.wJ2.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=Ot.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,R.j)("data"),(0,Q.h)(b.ep),(0,l.U)(({events:e})=>e.pageInfo)),this.events$=this.results$.pipe((0,R.j)("data"),(0,Q.h)(b.ep),(0,l.U)(({events:e})=>e.edges.map(r=>r.node))),this.unfilteredCount$=this.results$.pipe((0,R.j)("data"),(0,Q.h)(b.ep),(0,l.U)(({events:e})=>e.unfilteredCount))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(E.BTF))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,r){if(1&e&&(t.YNc(0,Ut,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,Jt,1,0,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,r.unfilteredCount$))("ngIfElse",a)}},dependencies:[z.O5,i.rH,K.ix,rt.w,Mt.dQ,f.bd,y.t3,y.SK,d.NU,d.$1,X.p9,Nt.r,gt.fM],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}"]}),n})();var dt=s(6987),mt=s(6192);function Bt(n,o){1&n&&t.GkF(0)}function Wt(n,o){1&n&&t.GkF(0)}function Yt(n,o){1&n&&t.GkF(0)}function $t(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw().$implicit;t.hij(" ",e.title," ")}}function Vt(n,o){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function Ft(n,o){if(1&n&&t._UZ(0,"div",14),2&n){const e=t.oxw(2).$implicit;t.Jzz("background-image: url('",e.imageUrl,"')")}}function Rt(n,o){if(1&n&&t.YNc(0,Ft,1,3,"div",13),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.imageUrl)}}function Ht(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.text," ")}}function Gt(n,o){if(1&n&&(t._UZ(0,"span",16),t.ALo(1,"nzSanitizer")),2&n){const e=t.oxw(2).$implicit;t.Q6J("innerHtml",t.xi3(1,1,e.htmlText,"html"),t.oJD)}}function jt(n,o){if(1&n&&(t.YNc(0,Ht,2,1,"ng-container",0),t.YNc(1,Gt,2,4,"ng-template",null,15,t.W1O)),2&n){const e=t.MAs(2),r=t.oxw().$implicit;t.Q6J("ngIf",r.text)("ngIfElse",e)}}function Kt(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-divider"),t.TgZ(2,"a",18),t._UZ(3,"i",19),t._uU(4),t.qZA(),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("href",e.link.url,t.LSH),t.xp6(2),t.hij(" ",e.link.label?e.link.label:"More Information"," ")}}function Xt(n,o){if(1&n&&t.YNc(0,Kt,5,2,"ng-container",17),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.link&&e.link.url)}}function qt(n,o){if(1&n&&(t.TgZ(0,"nz-col",4)(1,"nz-card",5),t.YNc(2,Bt,1,0,"ng-container",6),t.YNc(3,Wt,1,0,"ng-container",6),t.YNc(4,Yt,1,0,"ng-container",6),t.qZA(),t.YNc(5,$t,1,1,"ng-template",null,7,t.W1O),t.YNc(7,Vt,3,3,"ng-template",null,8,t.W1O),t.YNc(9,Rt,1,1,"ng-template",null,9,t.W1O),t.YNc(11,jt,3,2,"ng-template",null,10,t.W1O),t.YNc(13,Xt,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&n){const e=t.MAs(6),r=t.MAs(8),a=t.MAs(10),g=t.MAs(12),D=t.MAs(14);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngTemplateOutlet",g),t.xp6(1),t.Q6J("ngTemplateOutlet",D)}}const te=function(){return[8,16]};function ee(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.YNc(2,qt,15,5,"nz-col",3),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(2,te)),t.xp6(1),t.Q6J("ngForOf",e.cvcNewsItems)}}function ne(n,o){1&n&&t._UZ(0,"nz-empty")}let oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["newsEmpty",""],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],["htmlText",""],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,r){if(1&e&&(t.YNc(0,ee,3,3,"ng-container",0),t.YNc(1,ne,1,0,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",r.cvcNewsItems)("ngIfElse",a)}},dependencies:[z.sg,z.O5,z.tP,K.ix,rt.w,y.t3,y.SK,f.bd,O.ZU,X.p9,dt.g,j.Ls,z.uU,mt.Pr],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]}),n})();function ie(n,o){1&n&&(t.TgZ(0,"nz-carousel",6)(1,"div",7)(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.TgZ(6,"div",7)(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer. "),t.qZA()(),t.TgZ(11,"div",7)(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.TgZ(18,"div",7)(19,"h1")(20,"a",8),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA()()()())}function se(n,o){1&n&&(t.TgZ(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.YNc(3,ie,24,0,"nz-carousel",5),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("nzSpan",24))}function re(n,o){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4),t._UZ(2,"cvc-site-stats-card"),t.qZA()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function ae(n,o){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t._UZ(3,"cvc-news-item-list",11),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-card",12),t._UZ(6,"cvc-homepage-event-feed",13),t.qZA()()()),2&n){const e=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("cvcNewsItems",e.newsItems),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("pageSize",23)}}function le(n,o){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(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 therapies, 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()()()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function ce(n,o){if(1&n&&(t.TgZ(0,"nz-row",16)(1,"div",17),t._uU(2),t.ALo(3,"date"),t.TgZ(4,"a",18),t._uU(5,"Release Notes"),t.qZA(),t._uU(6," \u2022 "),t.TgZ(7,"a",19),t._uU(8,"History"),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(2),t.AsE(" CIViC ",e.name," (",t.lcZ(3,3,e.published_at),") \u2022 "),t.xp6(2),t.Q6J("href",e.html_url,t.LSH)}}function pe(n,o){1&n&&(t.ynx(0),t.YNc(1,ce,9,5,"nz-row",15),t.BQk())}const he=[{path:"",component:(()=>{class n{constructor(e){this.http=e,this.feedMode=E.wJ2.Unscoped,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,l.U)(e=>e[0]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.eN))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-welcome"]],decls:7,vars:3,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[4,"ngIf"],[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%"],[3,"cvcNewsItems"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"height","100%"],[3,"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"],["nzAlign","middle","nzJustify","center",4,"nzSpaceItem"],["nzAlign","middle","nzJustify","center"],["id","release-info","nz-typography",""],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(e,r){1&e&&(t.TgZ(0,"nz-space",0),t.YNc(1,se,4,1,"nz-row",1),t.YNc(2,re,3,2,"nz-row",2),t.YNc(3,ae,7,5,"nz-row",2),t.YNc(4,le,10,2,"nz-row",2),t.YNc(5,pe,2,0,"ng-container",3),t.ALo(6,"async"),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngIf",t.lcZ(6,1,r.release$)))},dependencies:[z.O5,y.t3,y.SK,ot,A,f.bd,d.NU,d.$1,O.ZU,wt,Qt,oe,z.Ov,z.uU],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%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]}),n})()}];let ge=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[i.Bz.forChild(he),i.Bz]}),n})();var de=s(6976),ut=s(279),me=s(4139),at=s(2524);let ue=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[z.ez,H.u5,i.Bz,st.A2,y.Jb,f.vh,G.aF,K.sL,me.H0,O.ZJ,j.PV,ut.s,at.s]}),n})();var fe=s(3599),ze=s(6494),_e=s(9691),ve=s(4416),Ce=s(1595),Te=s(6928);let xe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[z.ez,H.u5,i.Bz,K.sL,f.vh,j.PV,fe.U5,_e.LV,ze.m,y.Jb,d.zf,X.Xo,Te.Rt,ve.m,at.s,Ce.N,at.s]}),n})(),ye=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[z.ez,H.u5,K.sL,y.Jb,it,f.vh,de.Ph,G.aF,d.zf,st.A2,O.ZJ,X.Xo,mt.YS,dt.S,j.PV,ge,ue,xe,ut.s]}),n})()},4139:(B,k,s)=>{s.d(k,{H0:()=>J});var i=s(5879),E=s(6814),l=s(9388);let J=(()=>{class u{}return u.\u0275fac=function(p){return new(p||u)},u.\u0275mod=i.oAB({type:u}),u.\u0275inj=i.cJS({imports:[l.vT,E.ez]}),u})()}}]); \ No newline at end of file diff --git a/server/public/7856.7f558841cb7ecd2a.js b/server/public/7856.d432057b5c01b314.js similarity index 61% rename from server/public/7856.7f558841cb7ecd2a.js rename to server/public/7856.d432057b5c01b314.js index e128bec52..18d14f353 100644 --- a/server/public/7856.7f558841cb7ecd2a.js +++ b/server/public/7856.d432057b5c01b314.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7856],{7441:(N,I,o)=>{o.d(I,{o:()=>W});var E,n=o(655),u=o(313),M=o(8645),v=o(2181),g=o(7398),D=o(9773),z=o(2185),O=o(3997),x=o(8180),L=o(553),m=o(5676),T=o(1791),t=o(5879);function A(_,e){if(1&_&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",13),t.BQk()),2&_){const i=t.oxw().ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("events",i)("tagDisplay",s.tagDisplay)}}function P(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"div",15)(1,"button",16),t.NdJ("click",function(){t.CHM(i);const l=t.oxw().ngIf,C=t.oxw(4);return t.KtG(C.fetchMore(l.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function c(_,e){if(1&_&&(t.ynx(0),t.YNc(1,P,3,0,"div",14),t.BQk()),2&_){const i=e.ngIf;t.xp6(1),t.Q6J("ngIf",i.hasNextPage&&i.endCursor)}}function p(_,e){if(1&_&&(t.ynx(0),t.TgZ(1,"nz-row",3)(2,"nz-col",12),t.YNc(3,A,2,2,"ng-container",1),t.YNc(4,c,2,1,"ng-container",10),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&_){const i=e.ngIf,s=t.oxw(3),l=t.MAs(5);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",i.length)("ngIfElse",l),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,s.pageInfo$))}}function a(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"nz-badge",19)(1,"button",20),t.NdJ("click",function(){t.CHM(i);const l=t.oxw(6);return t.KtG(l.refresh())}),t._uU(2," New Event(s) "),t.qZA()()}if(2&_){const i=t.oxw().ngrxLet,s=t.oxw(5);t.Q6J("nzCount",i-s.originalEventCount)}}function r(_,e){if(1&_&&(t.ynx(0),t.YNc(1,a,3,1,"nz-badge",18),t.BQk()),2&_){const i=e.ngrxLet,s=t.oxw(5);t.xp6(1),t.Q6J("ngIf",i&&i>s.originalEventCount)}}function d(_,e){if(1&_&&(t.ynx(0),t.YNc(1,r,2,1,"ng-container",17),t.BQk()),2&_){const i=t.oxw(4);t.xp6(1),t.Q6J("ngrxLet",i.newEventCount$)}}function f(_,e){if(1&_&&t.YNc(0,d,2,1,"ng-container",10),2&_){const i=t.oxw(3);t.Q6J("ngIf",i.pollForNewEvents&&i.originalEventCount)}}function U(_,e){if(1&_&&(t.TgZ(0,"nz-card",9),t.YNc(1,p,6,6,"ng-container",10),t.ALo(2,"ngrxPush"),t.YNc(3,f,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&_){const i=t.MAs(4),s=t.oxw(2);t.Q6J("nzTitle",s.showFilters?"Events":void 0)("nzExtra",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,3,s.events$))}}function S(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",22),t.NdJ("ngModelChange",function(l){t.CHM(i);const C=t.oxw(3);return t.KtG(C.showChildren=l)})("ngModelChange",function(){t.CHM(i);const l=t.oxw(3);return t.KtG(l.onShowChildrenToggle())}),t.qZA()()}if(2&_){const i=t.oxw(3);t.xp6(2),t.Q6J("ngModel",i.showChildren)}}function y(_,e){1&_&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&_&&t.hij(" ",t.xi3(1,1,e.$implicit.id,"action-filter")," ")}function R(_,e){if(1&_&&t._UZ(0,"nz-avatar",30),2&_){const i=t.oxw().$implicit;t.Q6J("nzSrc",i.profileImagePath)}}function B(_,e){if(1&_&&(t._UZ(0,"nz-avatar",31),t.ALo(1,"uppercase")),2&_){const i=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,i.displayName.charAt(0)))}}function h(_,e){if(1&_&&(t.YNc(0,R,1,1,"nz-avatar",28),t.YNc(1,B,2,3,"ng-template",null,29,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&_){const i=e.$implicit,s=t.MAs(2);t.Q6J("ngIf",i.profileImagePath)("ngIfElse",s),t.xp6(4),t.Oqu(i.displayName)}}const F=function(){return[]};function K(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"cvc-participant-list",27),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(4);return t.KtG(C.onOriginatingUserSelected(l))}),t.ALo(1,"ngrxPush"),t.YNc(2,h,5,3,"ng-template",null,24,t.W1O),t.qZA()}if(2&_){const i=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,i.participants$)||t.DdM(3,F))}}function Z(_,e){if(1&_&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&_){const i=e.$implicit;t.xp6(1),t.hij(" ",i.name," ")}}function Q(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"cvc-participant-list",32),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(4);return t.KtG(C.onOrganizationSelected(l))}),t.ALo(1,"ngrxPush"),t.YNc(2,Z,2,1,"ng-template",null,24,t.W1O),t.qZA()}if(2&_){const i=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,i.organizations$)||t.DdM(3,F))}}function w(_,e){if(1&_){const i=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",23),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(3);return t.KtG(C.onActionSelected(l))}),t.ALo(2,"ngrxPush"),t.YNc(3,y,2,4,"ng-template",null,24,t.W1O),t.qZA(),t.YNc(5,K,4,4,"cvc-participant-list",25),t.YNc(6,Q,4,4,"cvc-participant-list",26),t.BQk()}if(2&_){const i=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,i.actions$)||t.DdM(5,F)),t.xp6(4),t.Q6J("ngIf",!i.userId),t.xp6(1),t.Q6J("ngIf",!i.organizationId)}}function J(_,e){1&_&&(t.TgZ(0,"nz-space",5),t.YNc(1,S,3,1,"span",21),t.YNc(2,w,7,6,"ng-container",21),t.qZA())}function $(_,e){if(1&_&&(t.ynx(0),t.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-space",5),t.YNc(4,U,5,5,"nz-card",6),t.qZA()(),t.TgZ(5,"nz-col",7),t.YNc(6,J,3,0,"nz-space",8),t.qZA()(),t.BQk()),2&_){const i=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",i.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",i.showFilters)}}function b(_,e){1&_&&t._UZ(0,"nz-empty",33)}let W=((E=class{constructor(e,i){this.gql=e,this.eventCountGql=i,this.tagDisplay="displayAll",this.mode=u.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.pollForNewEvents=!0,this.includeAutomatedEvents=!0,this.destroy$=new M.x,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:this.includeAutomatedEvents},this.queryRef=this.gql.watch(this.initialQueryVars),this.pollForNewEvents&&L.N.production&&(this.newEventCount$=this.eventCountGql.watch(this.initialQueryVars,{fetchPolicy:"no-cache",pollInterval:3e4}).valueChanges.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e?.events?.unfilteredCount),(0,D.R)(this.destroy$))),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,g.U)(({data:e})=>e.events.pageInfo)),this.events$=this.results$.pipe((0,z.j)("data","events","edges"),(0,v.h)(m.ep),(0,g.U)(e=>e.map(i=>i.node))),this.loading$=this.results$.pipe((0,g.U)(({loading:e})=>e),(0,O.x)()),this.unfilteredCount$=this.results$.pipe((0,g.U)(e=>e.data),(0,v.h)(m.ep),(0,g.U)(({events:e})=>e.unfilteredCount)),this.unfilteredCount$.pipe((0,x.q)(1),(0,T.t)(this)).subscribe(e=>this.originalEventCount=e),this.showFilters&&(this.participants$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events?.eventTypes?.map(i=>({id:i}))||[])))}fetchMore(e){this.queryRef.fetchMore({variables:{first:this.pageSize,after:e}})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id,showFilters:this.showFilters})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id,showFilters:this.showFilters})}refresh(){this.queryRef.refetch().then(({data:e})=>{this.originalEventCount=e.events.unfilteredCount})}onShowChildrenToggle(){let e;this.subscribable?(e={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):e=void 0,this.queryRef.refetch({...this.initialQueryVars,subject:e,showFilters:this.showFilters})}ngOnDestroy(){this.destroy$.next(),this.destroy$.unsubscribe()}}).\u0275fac=function(e){return new(e||E)(t.Y36(u.BTF),t.Y36(u.YMi))},E.\u0275cmp=t.Xpm({type:E,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize",pollForNewEvents:"pollForNewEvents",includeAutomatedEvents:"includeAutomatedEvents"},decls:6,vars:7,consts:[["nzTip","Loading",3,"nzSpinning"],[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle","nzExtra"],[4,"ngIf"],["refreshFeed",""],["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,"ngrxLet"],[3,"nzCount",4,"ngIf"],[3,"nzCount"],["nz-button","","nz-tooltip","Click to Refresh",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModel","ngModelChange"],["listTitle","events && 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(e,i){if(1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,$,7,3,"ng-container",1),t.ALo(3,"ngrxPush"),t.YNc(4,b,1,0,"ng-template",null,2,t.W1O),t.qZA()),2&e){const s=t.MAs(5);t.Q6J("nzSpinning",t.lcZ(1,3,i.loading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,5,i.unfilteredCount$))("ngIfElse",s)}},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}"]}),E);W=(0,n.gn)([(0,T.c)()],W)},9894:(N,I,o)=>{o.d(I,{t:()=>B});var n=o(6814),u=o(7441),M=o(8091),v=o(2962),g=o(551),D=o(3599),z=o(6223),O=o(6494),x=o(95),L=o(9691),m=o(4416),T=o(2840),t=o(2524),E=o(2574),A=o(1595),P=o(6928),c=o(804),p=o(2669),a=o(3640),r=o(6109),d=o(5879),f=o(855),U=o(1958),S=o(7169),y=o(6794),R=o(7908);let B=(()=>{class h{}return h.\u0275fac=function(K){return new(K||h)},h.\u0275mod=d.oAB({type:h}),h.\u0275inj=d.cJS({imports:[n.ez,z.u5,T.sL,v.vh,g.PV,D.U5,L.LV,O.m,x.Jb,E.zf,c.Xo,P.Rt,p.j,a.mS,r.cg,m.m,t.s,A.N,t.s]}),h})();d.B6R(u.o,[n.O5,z.JJ,z.On,M.eJ,T.ix,f.w,U.dQ,v.bd,x.t3,x.SK,O.i,E.NU,E.$1,c.p9,P.Dz,p.W,a.x7,r.SY,S.r,y.l],[n.gd,M.fM,R.R])},6794:(N,I,o)=>{o.d(I,{l:()=>P});var n=o(5879),u=o(6814),M=o(2962),v=o(6976),g=o(551),D=o(2840),z=o(855),O=o(1958);const x=["itemTemplate"],L=function(c){return{$implicit:c}};function m(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"nz-list-item",5),n.NdJ("click",function(){n.CHM(a);const d=n.oxw().$implicit,f=n.oxw(2);return n.KtG(f.onParticipantSelected(d))}),n.GkF(1,6),n.qZA()}if(2&c){const a=n.oxw().$implicit,r=n.oxw(2);n.ekj("selected-participant",a.id==(null==r.selectedItem?null:r.selectedItem.id)),n.xp6(1),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(4,L,a))}}function T(c,p){if(1&c&&(n.ynx(0),n.YNc(1,m,2,6,"nz-list-item",4),n.BQk()),2&c){const a=p.index,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",a+1<=r.defaultListSize)}}function t(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(a);const d=n.oxw(2);return n.KtG(d.onExpandClicked())}),n._UZ(1,"i",8),n._uU(2," Expand "),n.qZA()}}function E(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(a);const d=n.oxw(2);return n.KtG(d.onCollapseClicked())}),n._UZ(1,"i",9),n._uU(2," Collapse "),n.qZA()}}function A(c,p){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",1)(2,"nz-list"),n.YNc(3,T,2,1,"ng-container",2),n.qZA(),n.YNc(4,t,3,0,"button",3),n.YNc(5,E,3,0,"button",3),n.qZA(),n.BQk()),2&c){const a=n.oxw();n.xp6(1),n.Q6J("nzTitle",a.listTitle),n.xp6(2),n.Q6J("ngForOf",a.participantList),n.xp6(1),n.Q6J("ngIf",a.participantList.length>a.defaultListSize),n.xp6(1),n.Q6J("ngIf",a.isExpanded)}}let P=(()=>{class c{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new n.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(a){this.selectedItem=a.id==this.selectedItem?.id?void 0:a,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 c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-participant-list"]],contentQueries:function(a,r,d){if(1&a&&n.Suo(d,x,5),2&a){let f;n.iGM(f=n.CRH())&&(r.itemTemplateRef=f.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(a,r){1&a&&n.YNc(0,A,6,4,"ng-container",0),2&a&&n.Q6J("ngIf",r.participantList&&r.participantList.length>0)},dependencies:[u.sg,u.O5,u.tP,M.bd,v.n_,v.AA,g.Ls,D.ix,z.w,O.dQ],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}"]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7856],{7441:(N,I,o)=>{o.d(I,{o:()=>W});var E,n=o(655),u=o(313),M=o(8645),v=o(2181),g=o(7398),D=o(9773),z=o(2185),O=o(3997),x=o(8180),L=o(553),m=o(5676),T=o(1791),t=o(5879);function A(_,e){if(1&_&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",13),t.BQk()),2&_){const i=t.oxw().ngIf,s=t.oxw(3);t.xp6(1),t.Q6J("events",i)("tagDisplay",s.tagDisplay)}}function P(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"div",15)(1,"button",16),t.NdJ("click",function(){t.CHM(i);const l=t.oxw().ngIf,C=t.oxw(4);return t.KtG(C.fetchMore(l.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function c(_,e){if(1&_&&(t.ynx(0),t.YNc(1,P,3,0,"div",14),t.BQk()),2&_){const i=e.ngIf;t.xp6(1),t.Q6J("ngIf",i.hasNextPage&&i.endCursor)}}function p(_,e){if(1&_&&(t.ynx(0),t.TgZ(1,"nz-row",3)(2,"nz-col",12),t.YNc(3,A,2,2,"ng-container",1),t.YNc(4,c,2,1,"ng-container",10),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&_){const i=e.ngIf,s=t.oxw(3),l=t.MAs(5);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",i.length)("ngIfElse",l),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,s.pageInfo$))}}function a(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"nz-badge",19)(1,"button",20),t.NdJ("click",function(){t.CHM(i);const l=t.oxw(6);return t.KtG(l.refresh())}),t._uU(2," New Event(s) "),t.qZA()()}if(2&_){const i=t.oxw().ngrxLet,s=t.oxw(5);t.Q6J("nzCount",i-s.originalEventCount)}}function r(_,e){if(1&_&&(t.ynx(0),t.YNc(1,a,3,1,"nz-badge",18),t.BQk()),2&_){const i=e.ngrxLet,s=t.oxw(5);t.xp6(1),t.Q6J("ngIf",i&&i>s.originalEventCount)}}function d(_,e){if(1&_&&(t.ynx(0),t.YNc(1,r,2,1,"ng-container",17),t.BQk()),2&_){const i=t.oxw(4);t.xp6(1),t.Q6J("ngrxLet",i.newEventCount$)}}function f(_,e){if(1&_&&t.YNc(0,d,2,1,"ng-container",10),2&_){const i=t.oxw(3);t.Q6J("ngIf",i.pollForNewEvents&&i.originalEventCount)}}function U(_,e){if(1&_&&(t.TgZ(0,"nz-card",9),t.YNc(1,p,6,6,"ng-container",10),t.ALo(2,"ngrxPush"),t.YNc(3,f,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&_){const i=t.MAs(4),s=t.oxw(2);t.Q6J("nzTitle",s.showFilters?"Events":void 0)("nzExtra",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,3,s.events$))}}function S(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",22),t.NdJ("ngModelChange",function(l){t.CHM(i);const C=t.oxw(3);return t.KtG(C.showChildren=l)})("ngModelChange",function(){t.CHM(i);const l=t.oxw(3);return t.KtG(l.onShowChildrenToggle())}),t.qZA()()}if(2&_){const i=t.oxw(3);t.xp6(2),t.Q6J("ngModel",i.showChildren)}}function y(_,e){1&_&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&_&&t.hij(" ",t.xi3(1,1,e.$implicit.id,"action-filter")," ")}function R(_,e){if(1&_&&t._UZ(0,"nz-avatar",30),2&_){const i=t.oxw().$implicit;t.Q6J("nzSrc",i.profileImagePath)}}function B(_,e){if(1&_&&(t._UZ(0,"nz-avatar",31),t.ALo(1,"uppercase")),2&_){const i=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,i.displayName.charAt(0)))}}function h(_,e){if(1&_&&(t.YNc(0,R,1,1,"nz-avatar",28),t.YNc(1,B,2,3,"ng-template",null,29,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&_){const i=e.$implicit,s=t.MAs(2);t.Q6J("ngIf",i.profileImagePath)("ngIfElse",s),t.xp6(4),t.Oqu(i.displayName)}}const F=function(){return[]};function K(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"cvc-participant-list",27),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(4);return t.KtG(C.onOriginatingUserSelected(l))}),t.ALo(1,"ngrxPush"),t.YNc(2,h,5,3,"ng-template",null,24,t.W1O),t.qZA()}if(2&_){const i=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,i.participants$)||t.DdM(3,F))}}function Z(_,e){if(1&_&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&_){const i=e.$implicit;t.xp6(1),t.hij(" ",i.name," ")}}function Q(_,e){if(1&_){const i=t.EpF();t.TgZ(0,"cvc-participant-list",32),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(4);return t.KtG(C.onOrganizationSelected(l))}),t.ALo(1,"ngrxPush"),t.YNc(2,Z,2,1,"ng-template",null,24,t.W1O),t.qZA()}if(2&_){const i=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,i.organizations$)||t.DdM(3,F))}}function w(_,e){if(1&_){const i=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",23),t.NdJ("participantSelectedEvent",function(l){t.CHM(i);const C=t.oxw(3);return t.KtG(C.onActionSelected(l))}),t.ALo(2,"ngrxPush"),t.YNc(3,y,2,4,"ng-template",null,24,t.W1O),t.qZA(),t.YNc(5,K,4,4,"cvc-participant-list",25),t.YNc(6,Q,4,4,"cvc-participant-list",26),t.BQk()}if(2&_){const i=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,i.actions$)||t.DdM(5,F)),t.xp6(4),t.Q6J("ngIf",!i.userId),t.xp6(1),t.Q6J("ngIf",!i.organizationId)}}function J(_,e){1&_&&(t.TgZ(0,"nz-space",5),t.YNc(1,S,3,1,"span",21),t.YNc(2,w,7,6,"ng-container",21),t.qZA())}function $(_,e){if(1&_&&(t.ynx(0),t.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-space",5),t.YNc(4,U,5,5,"nz-card",6),t.qZA()(),t.TgZ(5,"nz-col",7),t.YNc(6,J,3,0,"nz-space",8),t.qZA()(),t.BQk()),2&_){const i=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",i.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",i.showFilters)}}function b(_,e){1&_&&t._UZ(0,"nz-empty",33)}let W=((E=class{constructor(e,i){this.gql=e,this.eventCountGql=i,this.tagDisplay="displayAll",this.mode=u.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.pollForNewEvents=!0,this.includeAutomatedEvents=!0,this.destroy$=new M.x,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:this.includeAutomatedEvents},this.queryRef=this.gql.watch(this.initialQueryVars),this.pollForNewEvents&&L.N.production&&(this.newEventCount$=this.eventCountGql.watch(this.initialQueryVars,{fetchPolicy:"no-cache",pollInterval:3e4}).valueChanges.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e?.events?.unfilteredCount),(0,D.R)(this.destroy$))),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,g.U)(({data:e})=>e.events.pageInfo)),this.events$=this.results$.pipe((0,z.j)("data","events","edges"),(0,v.h)(m.ep),(0,g.U)(e=>e.map(i=>i.node))),this.loading$=this.results$.pipe((0,g.U)(({loading:e})=>e),(0,O.x)()),this.unfilteredCount$=this.results$.pipe((0,g.U)(e=>e.data),(0,v.h)(m.ep),(0,g.U)(({events:e})=>e.unfilteredCount)),this.unfilteredCount$.pipe((0,x.q)(1),(0,T.t)(this)).subscribe(e=>this.originalEventCount=e),this.showFilters&&(this.participants$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,v.h)(m.ep),(0,g.U)(({data:e})=>e.events?.eventTypes?.map(i=>({id:i}))||[])))}fetchMore(e){this.queryRef.fetchMore({variables:{first:this.pageSize,after:e}})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id,showFilters:this.showFilters})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id,showFilters:this.showFilters})}refresh(){this.queryRef.refetch().then(({data:e})=>{this.originalEventCount=e.events.unfilteredCount})}onShowChildrenToggle(){let e;this.subscribable?(e={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):e=void 0,this.queryRef.refetch({...this.initialQueryVars,subject:e,showFilters:this.showFilters})}ngOnDestroy(){this.destroy$.next(),this.destroy$.unsubscribe()}}).\u0275fac=function(e){return new(e||E)(t.Y36(u.BTF),t.Y36(u.YMi))},E.\u0275cmp=t.Xpm({type:E,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize",pollForNewEvents:"pollForNewEvents",includeAutomatedEvents:"includeAutomatedEvents"},decls:6,vars:7,consts:[["nzTip","Loading",3,"nzSpinning"],[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle","nzExtra"],[4,"ngIf"],["refreshFeed",""],["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,"ngrxLet"],[3,"nzCount",4,"ngIf"],[3,"nzCount"],["nz-button","","nz-tooltip","Click to Refresh",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(e,i){if(1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,$,7,3,"ng-container",1),t.ALo(3,"ngrxPush"),t.YNc(4,b,1,0,"ng-template",null,2,t.W1O),t.qZA()),2&e){const s=t.MAs(5);t.Q6J("nzSpinning",t.lcZ(1,3,i.loading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,5,i.unfilteredCount$))("ngIfElse",s)}},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}"]}),E);W=(0,n.gn)([(0,T.c)()],W)},9894:(N,I,o)=>{o.d(I,{t:()=>B});var n=o(6814),u=o(7441),M=o(8091),v=o(2962),g=o(551),D=o(3599),z=o(6223),O=o(6494),x=o(95),L=o(9691),m=o(4416),T=o(2840),t=o(2524),E=o(2574),A=o(1595),P=o(6928),c=o(804),p=o(2669),a=o(3640),r=o(6109),d=o(5879),f=o(855),U=o(1958),S=o(7169),y=o(6794),R=o(7908);let B=(()=>{class h{}return h.\u0275fac=function(K){return new(K||h)},h.\u0275mod=d.oAB({type:h}),h.\u0275inj=d.cJS({imports:[n.ez,z.u5,T.sL,v.vh,g.PV,D.U5,L.LV,O.m,x.Jb,E.zf,c.Xo,P.Rt,p.j,a.mS,r.cg,m.m,t.s,A.N,t.s]}),h})();d.B6R(u.o,[n.O5,z.JJ,z.On,M.eJ,T.ix,f.w,U.dQ,v.bd,x.t3,x.SK,O.i,E.NU,E.$1,c.p9,P.Dz,p.W,a.x7,r.SY,S.r,y.l],[n.gd,M.fM,R.R])},6794:(N,I,o)=>{o.d(I,{l:()=>P});var n=o(5879),u=o(6814),M=o(2962),v=o(6976),g=o(551),D=o(2840),z=o(855),O=o(1958);const x=["itemTemplate"],L=function(c){return{$implicit:c}};function m(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"nz-list-item",5),n.NdJ("click",function(){n.CHM(a);const d=n.oxw().$implicit,f=n.oxw(2);return n.KtG(f.onParticipantSelected(d))}),n.GkF(1,6),n.qZA()}if(2&c){const a=n.oxw().$implicit,r=n.oxw(2);n.ekj("selected-participant",a.id==(null==r.selectedItem?null:r.selectedItem.id)),n.xp6(1),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(4,L,a))}}function T(c,p){if(1&c&&(n.ynx(0),n.YNc(1,m,2,6,"nz-list-item",4),n.BQk()),2&c){const a=p.index,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",a+1<=r.defaultListSize)}}function t(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(a);const d=n.oxw(2);return n.KtG(d.onExpandClicked())}),n._UZ(1,"i",8),n._uU(2," Expand "),n.qZA()}}function E(c,p){if(1&c){const a=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(a);const d=n.oxw(2);return n.KtG(d.onCollapseClicked())}),n._UZ(1,"i",9),n._uU(2," Collapse "),n.qZA()}}function A(c,p){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",1)(2,"nz-list"),n.YNc(3,T,2,1,"ng-container",2),n.qZA(),n.YNc(4,t,3,0,"button",3),n.YNc(5,E,3,0,"button",3),n.qZA(),n.BQk()),2&c){const a=n.oxw();n.xp6(1),n.Q6J("nzTitle",a.listTitle),n.xp6(2),n.Q6J("ngForOf",a.participantList),n.xp6(1),n.Q6J("ngIf",a.participantList.length>a.defaultListSize),n.xp6(1),n.Q6J("ngIf",a.isExpanded)}}let P=(()=>{class c{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new n.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(a){this.selectedItem=a.id==this.selectedItem?.id?void 0:a,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 c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-participant-list"]],contentQueries:function(a,r,d){if(1&a&&n.Suo(d,x,5),2&a){let f;n.iGM(f=n.CRH())&&(r.itemTemplateRef=f.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(a,r){1&a&&n.YNc(0,A,6,4,"ng-container",0),2&a&&n.Q6J("ngIf",r.participantList&&r.participantList.length>0)},dependencies:[u.sg,u.O5,u.tP,M.bd,v.n_,v.AA,g.Ls,D.ix,z.w,O.dQ],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}"]}),c})()}}]); \ No newline at end of file diff --git a/server/public/7889.6dbd80c7a67e3bae.js b/server/public/7889.6dbd80c7a67e3bae.js deleted file mode 100644 index 1e6915a33..000000000 --- a/server/public/7889.6dbd80c7a67e3bae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7889],{4758:(R,M,e)=>{e.d(M,{m:()=>A});var s=e(6814),o=e(9755),g=e(6165),t=e(1218),m=e(7528),d=e(3641),u=e(5956),P=e(8706),f=e(1106),D=e(5695),z=e(551),E=e(8527),T=e(5879);let A=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[s.ez,D.X,z.PV,o.y,g.W,t.i,m.Q,d.G,u.U,P.W,f.L,E.u]}),c})()},5098:(R,M,e)=>{e.d(M,{P:()=>A});var s=e(5879),o=e(4190),g=e(6814),t=e(9382),m=e(95),d=e(551),u=e(3640);const P=["tabBarExtraContent"];function f(c,O){if(1&c&&s.GkF(0,5),2&c){const l=s.oxw();s.Q6J("ngTemplateOutlet",l.tabBarExtraContent||null)}}const D=function(c){return{transform:"scale(0.75, 0.75) translate(0, -2px)",backgroundColor:c}};function z(c,O){if(1&c&&s._UZ(0,"nz-badge",10),2&c){const l=s.oxw(2).$implicit;s.hYB("nzTitle","",l.badgeCount," ",l.tabLabel,"(s)."),s.Q6J("nzCount",l.badgeCount)("nzStyle",s.VKq(4,D,l.badgeColor||"#ff4d4f"))}}function E(c,O){if(1&c&&(s.TgZ(0,"a",7),s._UZ(1,"i",8),s._uU(2),s.YNc(3,z,1,6,"nz-badge",9),s.qZA()),2&c){const l=s.oxw().$implicit;s.Q6J("routerLink",l.routeName),s.xp6(1),s.Q6J("nzType",l.iconName),s.xp6(1),s.hij(" ",l.tabLabel," "),s.xp6(1),s.Q6J("ngIf",l.badgeCount&&l.badgeCount>0)}}function T(c,O){1&c&&(s.TgZ(0,"nz-tab"),s.YNc(1,E,4,4,"a",6),s.qZA())}let A=(()=>{class c{constructor(l){this.router=l,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url)}getActivatedRouteIndex(l){return this.tabs?.findIndex(y=>l.includes(y.routeName))}}return c.\u0275fac=function(l){return new(l||c)(s.Y36(o.F0))},c.\u0275cmp=s.Xpm({type:c,selectors:[["cvc-tab-navigation"]],contentQueries:function(l,y,B){if(1&l&&s.Suo(B,P,5),2&l){let b;s.iGM(b=s.CRH())&&(y.tabBarExtraContent=b.first)}},inputs:{entity:"entity",tabs:"tabs"},decls:6,vars:3,consts:[["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex","nzTabBarExtraContent"],["extraTpl",""],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle",4,"ngIf"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle"]],template:function(l,y){if(1&l&&(s.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"nz-tabset",2),s.YNc(3,f,1,1,"ng-template",null,3,s.W1O),s.YNc(5,T,2,0,"nz-tab",4),s.qZA()()()),2&l){const B=s.MAs(4);s.xp6(2),s.Q6J("nzSelectedIndex",y.selectedTabIndex)("nzTabBarExtraContent",B),s.xp6(3),s.Q6J("ngForOf",y.tabs)}},dependencies:[g.sg,g.O5,g.tP,o.rH,t.xH,t.xw,t.Ao,t.Fx,m.t3,m.SK,d.Ls,u.x7],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},4059:(R,M,e)=>{e.d(M,{c:()=>P});var s=e(6814),o=e(9382),g=e(95),t=e(4190),m=e(551),d=e(3640),u=e(5879);let P=(()=>{class f{}return f.\u0275fac=function(z){return new(z||f)},f.\u0275mod=u.oAB({type:f}),f.\u0275inj=u.cJS({imports:[s.ez,t.Bz,o.we,g.Jb,m.PV,d.mS]}),f})()},3378:(R,M,e)=>{e.d(M,{w:()=>c});var s=e(6814),o=e(6223),g=e(2962),t=e(3599),m=e(3394),d=e(6294),u=e(845),P=e(2840),f=e(9560),D=e(9382),z=e(4758),E=e(2669),T=e(6513),A=e(5879);let c=(()=>{class O{}return O.\u0275fac=function(y){return new(y||O)},O.\u0275mod=A.oAB({type:O}),O.\u0275inj=A.cJS({imports:[s.ez,o.UX,P.sL,g.vh,D.we,t.U5,E.j,T.Gl,o.u5,m.B,d.A,u.R,z.m,f.K]}),O})()},3764:(R,M,e)=>{e.d(M,{Z:()=>g});var s=e(5879);const o=["*"];let g=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(d){return new(d||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cvc-form-buttons"]],ngContentSelectors:o,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(d,u){1&d&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),t})()},845:(R,M,e)=>{e.d(M,{R:()=>g});var s=e(6814),o=e(5879);let g=(()=>{class t{}return t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[s.ez]}),t})()},2257:(R,M,e)=>{e.d(M,{q:()=>N});var B,s=e(655),o=e(5879),g=e(1791),t=e(8645),m=e(5619),d=e(7398),u=e(9397),P=e(4223),f=e(5805),D=e(951),z=e(6814),E=e(2840),T=e(855),A=e(1958),c=e(6928),O=e(3460),l=e(2787),y=e(8091);function b(p,_){1&p&&o.Hsn(0)}function U(p,_){1&p&&o.GkF(0)}function Z(p,_){if(1&p&&(o.ynx(0),o.YNc(1,U,1,0,"ng-container",5),o.BQk()),2&p){o.oxw(2);const C=o.MAs(1);o.xp6(1),o.Q6J("ngTemplateOutlet",C)}}function S(p,_){1&p&&o.GkF(0)}function $(p,_){if(1&p&&(o.ynx(0),o.TgZ(1,"nz-button-group"),o.YNc(2,S,1,0,"ng-container",5),o.TgZ(3,"button",6),o.ALo(4,"ngrxPush"),o.ALo(5,"ngrxPush"),o.ALo(6,"ngrxPush"),o.TgZ(7,"span"),o._uU(8,"for"),o.qZA(),o._UZ(9,"nz-avatar",7)(10,"i",8),o.qZA()(),o.BQk()),2&p){o.oxw();const C=o.MAs(4),x=o.oxw(),L=o.MAs(1);o.xp6(2),o.Q6J("ngTemplateOutlet",L),o.xp6(1),o.Q6J("ngClass",o.lcZ(4,8,x.buttonClass$))("hidden",o.lcZ(5,10,x.isHidden$))("disabled",o.lcZ(6,12,x.isDisabled$))("nzDropdownMenu",C),o.xp6(6),o.Q6J("nzSrc",null==x.selectedOrg?null:x.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function w(p,_){if(1&p){const C=o.EpF();o.TgZ(0,"li",9),o.NdJ("click",function(){const G=o.CHM(C).$implicit,J=o.oxw(2);return o.KtG(J.selectOrg(G))}),o._UZ(1,"nz-avatar",10),o._uU(2),o.qZA()}if(2&p){const C=_.$implicit,x=o.oxw(2);o.Q6J("nzSelected",(null==x.selectedOrg?null:x.selectedOrg.id)===C.id),o.xp6(1),o.Q6J("nzSrc",null==C?null:C.profileImagePath)("nzSize",10)("nzShape","square"),o.xp6(1),o.hij(" ",C.name," ")}}function K(p,_){if(1&p&&(o.ynx(0),o.YNc(1,Z,2,1,"ng-container",1),o.YNc(2,$,11,14,"ng-container",1),o.TgZ(3,"nz-dropdown-menu",null,2)(5,"ul",3),o.YNc(6,w,3,5,"li",4),o.qZA()(),o.BQk()),2&p){const C=_.ngIf;o.xp6(1),o.Q6J("ngIf",C.length<=1),o.xp6(1),o.Q6J("ngIf",C.length>1),o.xp6(4),o.Q6J("ngForOf",C)}}let N=((B=class{constructor(_){this.viewerService=_,this.selectedOrgChange=new o.vpe,this.baseButtonClass="org-dropdown-btn",this.isDisabled$=new t.x,this.isHidden$=new t.x,this.buttonClass$=new m.X("")}selectOrg(_){this.selectedOrg=_,this.selectedOrgChange.emit(_)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,d.U)(_=>_.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,P.j)("mostRecentOrg"),(0,u.b)(_=>{_&&(this.selectedOrg=_,this.selectedOrgChange.emit(_))})),this.mostRecentOrg$.pipe((0,g.t)(this)).subscribe()}ngAfterViewInit(){this.button&&this.button.domChange&&this.button.domChange.pipe((0,g.t)(this)).subscribe(_=>{"class"===_.type&&"string"==typeof _.change?this.buttonClass$.next(`${this.baseButtonClass} ${_.change}`):"disabled"===_.type&&"boolean"==typeof _.change?this.isDisabled$.next(_.change):"hidden"===_.type&&"boolean"==typeof _.change&&this.isHidden$.next(_.change)})}}).\u0275fac=function(_){return new(_||B)(o.Y36(D.a))},B.\u0275cmp=o.Xpm({type:B,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(_,C,x){if(1&_&&o.Suo(x,f.m,5),2&_){let L;o.iGM(L=o.CRH())&&(C.button=L.first)}},inputs:{selectedOrg:"selectedOrg"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:["*"],decls:4,vars:3,consts:[["submitButton",""],[4,"ngIf"],["orgMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],["type","button","nz-button","","nz-dropdown","",3,"ngClass","hidden","disabled","nzDropdownMenu"],[3,"nzSrc","nzSize","nzShape"],["nz-icon","","nzType","down"],["nz-menu-item","",3,"nzSelected","click"],[2,"background-color","#f0f5ff",3,"nzSrc","nzSize","nzShape"]],template:function(_,C){1&_&&(o.F$t(),o.YNc(0,b,1,0,"ng-template",null,0,o.W1O),o.YNc(2,K,7,3,"ng-container",1),o.ALo(3,"async")),2&_&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,C.organizations$)))},dependencies:[z.mk,z.sg,z.O5,z.tP,E.ix,E.fY,T.w,A.dQ,c.Dz,O.wO,O.r9,l.cm,l.RR,l.wA,z.Ov,y.fM],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:first-child:not(:last-child){border-right-color:#ff4d4f}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:hover, [_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:focus{border-right-color:#fd7978}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}.org-dropdown-btn.ant-btn-dangerous[_ngcontent-%COMP%]:last-child:not(:first-child), .org-dropdown-btn[_ngcontent-%COMP%] .ant-btn-dangerous[_ngcontent-%COMP%] + .ant-btn-dangerous[_ngcontent-%COMP%]{border-left-color:#fd7978}"]}),B);N=(0,s.gn)([(0,g.c)()],N)},6294:(R,M,e)=>{e.d(M,{A:()=>d});var s=e(6814),o=e(2840),g=e(6928),t=e(2787),m=e(5879);let d=(()=>{class u{}return u.\u0275fac=function(f){return new(f||u)},u.\u0275mod=m.oAB({type:u}),u.\u0275inj=m.cJS({imports:[s.ez,o.sL,g.Rt,t.b1]}),u})()},5805:(R,M,e)=>{e.d(M,{m:()=>P});var u,s=e(655),o=e(5879),g=e(1791),t=e(9666),m=e(7398),d=e(6180);let P=((u=class{constructor(D){this.el=D,this.domChange=new o.vpe,this.changes=new MutationObserver(z=>{(0,t.D)(z).pipe((0,m.U)(E=>{const T=E.target;return"class"===E.attributeName?{type:"class",change:T.classList.value,key:`${E.attributeName}:${T.classList.value}`}:"disabled"===E.attributeName?{type:"disabled",change:T.disabled,key:`${E.attributeName}:${T.disabled}`}:"hidden"===E.attributeName?{type:"hidden",change:T.hidden,key:`${E.attributeName}:${T.hidden}`}:{type:E.attributeName,change:"unknown change type",key:`${E.attributeName}:unknown-change-type`}}),(0,d.g)("key"),(0,g.t)(this)).subscribe(E=>{this.domChange.emit(E)})}),this.changes.observe(this.el.nativeElement,{attributeFilter:["class","disabled","hidden"],attributes:!0,childList:!1,subtree:!1})}ngAfterViewInit(){console.log(`directive ngAfterViewInit classList.value: ${this.el.nativeElement.classList.value}`),this.initialClass=this.el.nativeElement.classList.value}ngOnDestroy(){this.changes.disconnect()}}).\u0275fac=function(D){return new(D||u)(o.Y36(o.SBq))},u.\u0275dir=o.lG2({type:u,selectors:[["button","cvcOrgSelectorBtn",""]],outputs:{domChange:"domChange"}}),u);P=(0,s.gn)([(0,g.c)()],P)},6513:(R,M,e)=>{e.d(M,{Gl:()=>et,O3:()=>j,YW:()=>X,jO:()=>H});var s=e(9388),o=e(9594),g=e(6814),t=e(5879),m=e(6223),d=e(883),u=e(804),P=e(551),f=e(8645),D=e(2438),z=e(2096),E=e(5592),T=e(3019),A=e(7394),c=e(9773),O=e(3997),l=e(2460),y=e(7398),B=e(7921),b=e(4664),U=e(9087),Z=e(655),S=e(6028),$=e(8484),w=e(5448),K=e(7754);const Q=["items"];function N(r,v){1&r&&t.GkF(0)}const p=function(r){return{$implicit:r}};function _(r,v){if(1&r&&(t.ynx(0),t.YNc(1,N,1,0,"ng-container",10),t.BQk()),2&r){const n=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",i.suggestionTemplate)("ngTemplateOutletContext",t.VKq(2,p,n))}}function C(r,v){if(1&r&&t._uU(0),2&r){const n=t.oxw().$implicit,i=t.oxw(2);t.Oqu(i.nzValueWith(n))}}function x(r,v){if(1&r){const n=t.EpF();t.TgZ(0,"li",6,7),t.NdJ("click",function(){const h=t.CHM(n).$implicit,I=t.oxw(2);return t.KtG(I.selectSuggestion(h))}),t.YNc(2,_,2,4,"ng-container",8),t.YNc(3,C,1,1,"ng-template",null,9,t.W1O),t.qZA()}if(2&r){const n=v.index,i=t.MAs(4),a=t.oxw(2);t.ekj("ant-mentions-dropdown-menu-item-active",n===a.activeIndex)("ant-mentions-dropdown-menu-item-selected",n===a.activeIndex),t.xp6(2),t.Q6J("ngIf",a.suggestionTemplate)("ngIfElse",i)}}function L(r,v){1&r&&(t.TgZ(0,"span"),t._UZ(1,"span",13),t.qZA())}function G(r,v){if(1&r&&(t.TgZ(0,"span"),t._UZ(1,"nz-embed-empty",14),t.qZA()),2&r){const n=t.oxw(3);t.xp6(1),t.Q6J("specificContent",n.nzNotFoundContent)}}function J(r,v){if(1&r&&(t.TgZ(0,"li",11),t.YNc(1,L,2,0,"span",12),t.YNc(2,G,2,1,"span",12),t.qZA()),2&r){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.nzLoading),t.xp6(1),t.Q6J("ngIf",!n.nzLoading)}}function k(r,v){if(1&r&&(t.TgZ(0,"div",2)(1,"ul",3),t.YNc(2,x,5,6,"li",4),t.YNc(3,J,3,2,"li",5),t.qZA()()),2&r){const n=t.oxw();t.xp6(2),t.Q6J("ngForOf",n.filteredSuggestions),t.xp6(1),t.Q6J("ngIf",0===n.filteredSuggestions.length)}}function q(r,v){if(1&r&&t._UZ(0,"nz-form-item-feedback-icon",15),2&r){const n=t.oxw();t.Q6J("status",n.status)}}const tt=["*"];let j=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275dir=t.lG2({type:r,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]}),r})();let V=(()=>{class r{constructor(){this.triggerChange$=new f.x}triggerChanged(){return this.triggerChange$.asObservable()}registerTrigger(n){this.trigger!==n&&(this.trigger=n,this.triggerChange$.next(n))}ngOnDestroy(){this.triggerChange$.complete()}}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),r})();const nt={provide:m.JU,useExisting:(0,t.Gpc)(()=>H),multi:!0};let H=(()=>{class r{constructor(n,i,a,h,I){this.el=n,this.ngZone=i,this.ref=a,this.destroy$=h,this.nzMentionService=I,this.onChange=()=>{},this.onTouched=()=>{},this.onFocusin=new t.vpe,this.onBlur=new t.vpe,this.onInput=new t.vpe,this.onKeydown=new t.vpe,this.onClick=new t.vpe}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(n=null){this.el.nativeElement.focus(),this.el.nativeElement.setSelectionRange(n,n)}insertMention(n){const i=this.el.nativeElement.value,a=`${n.mention} `,h=[i.slice(0,n.startPos+1),a,i.slice(n.endPos,i.length)].join("");this.el.nativeElement.value=h,this.focus(n.startPos+a.length+1),this.onChange(h),this.value=h}writeValue(n){this.value=n,this.el.nativeElement.value="string"==typeof n?n:""}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}ngAfterViewInit(){this.nzMentionService.registerTrigger(this),this.setupEventListener("blur",this.onBlur),this.setupEventListener("focusin",this.onFocusin),this.setupEventListener("input",this.onInput,!0),this.setupEventListener("click",this.onClick,!0),this.setupEventListener("keydown",this.onKeydown,!0)}ngOnDestroy(){this.completeEvents()}setupEventListener(n,i,a=!1){this.ngZone.runOutsideAngular(()=>{(0,D.R)(this.el.nativeElement,n).pipe((0,c.R)(this.destroy$)).subscribe(h=>{i.observers.length&&this.ngZone.run(()=>{i.emit(a?h:void 0),this.ref.markForCheck()})})})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(U.kn),t.Y36(V))},r.\u0275dir=t.lG2({type:r,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],outputs:{onFocusin:"onFocusin",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClick:"onClick"},exportAs:["nzMentionTrigger"],features:[t._Bn([U.kn,nt])]}),r})(),X=(()=>{class r{set suggestionChild(n){n&&(this.suggestionTemplate=n)}get triggerNativeElement(){return this.trigger.el.nativeElement}get focusItemElement(){const n=this.items?.toArray();return n&&n[this.activeIndex]?n[this.activeIndex].nativeElement:null}constructor(n,i,a,h,I,Y,F,ot,it,st,rt,at){this.ngZone=n,this.ngDocument=i,this.directionality=a,this.cdr=h,this.overlay=I,this.viewContainerRef=Y,this.elementRef=F,this.renderer=ot,this.nzMentionService=it,this.destroy$=st,this.nzFormStatusService=rt,this.nzFormNoStatusService=at,this.nzValueWith=_t=>_t,this.nzPrefix="@",this.nzLoading=!1,this.nzNotFoundContent="\u65e0\u5339\u914d\u7ed3\u679c\uff0c\u8f7b\u6572\u7a7a\u683c\u5b8c\u6210\u8f93\u5165",this.nzPlacement="bottom",this.nzSuggestions=[],this.nzStatus="",this.nzOnSelect=new t.vpe,this.nzOnSearchChange=new t.vpe,this.isOpen=!1,this.filteredSuggestions=[],this.suggestionTemplate=null,this.activeIndex=-1,this.dir="ltr",this.prefixCls="ant-mentions",this.statusCls={},this.status="",this.hasFeedback=!1,this.previousValue=null,this.cursorMention=null,this.overlayRef=null}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,O.x)((n,i)=>n.status===i.status&&n.hasFeedback===i.hasFeedback),(0,l.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,z.of)(!1)),(0,y.U)(([{status:n,hasFeedback:i},a])=>({status:a?"":n,hasFeedback:i})),(0,c.R)(this.destroy$)).subscribe(({status:n,hasFeedback:i})=>{this.setStatusStyles(n,i)}),this.nzMentionService.triggerChanged().subscribe(n=>{this.trigger=n,this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,c.R)(this.destroy$)).subscribe(n=>{this.dir=n})}ngOnChanges(n){const{nzSuggestions:i,nzStatus:a}=n;i&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1)),a&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.items.changes.pipe((0,B.O)(this.items),(0,b.w)(()=>{const n=this.items.toArray();return new E.y(i=>this.ngZone.runOutsideAngular(()=>(0,T.T)(...n.map(a=>(0,D.R)(a.nativeElement,"mousedown"))).subscribe(i)))})).subscribe(n=>{n.preventDefault()})}ngOnDestroy(){this.closeDropdown()}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger?(0,K.qR)(this.trigger.value,this.nzPrefix):[]}selectSuggestion(n){const i=this.nzValueWith(n);this.trigger.insertMention({mention:i,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(n),this.closeDropdown(),this.activeIndex=-1}handleInput(n){const i=n.target;this.trigger.onChange(i.value),this.trigger.value=i.value,this.resetDropdown()}handleKeydown(n){const i=n.keyCode;if(this.isOpen&&i===S.K5&&-1!==this.activeIndex&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),n.preventDefault();else if(i===S.oh||i===S.SV)this.resetDropdown(),n.stopPropagation();else{if(this.isOpen&&(i===S.Mf||i===S.hY))return void this.closeDropdown();this.isOpen&&i===S.LH&&(this.setPreviousItemActive(),n.preventDefault(),n.stopPropagation()),this.isOpen&&i===S.JH&&(this.setNextItemActive(),n.preventDefault(),n.stopPropagation())}}handleClick(){this.resetDropdown()}bindTriggerEvents(){this.trigger.onInput.subscribe(n=>this.handleInput(n)),this.trigger.onKeydown.subscribe(n=>this.handleKeydown(n)),this.trigger.onClick.subscribe(()=>this.handleClick())}suggestionsFilter(n,i){const a=n.substring(1);if(this.previousValue===n&&n!==this.cursorMention[0])return;this.previousValue=n,i&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});const h=a.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(I=>this.nzValueWith(I).toLowerCase().includes(h))}resetDropdown(n=!0){if(this.resetCursorMention(),"string"!=typeof this.cursorMention||!this.canOpen())return void this.closeDropdown();this.suggestionsFilter(this.cursorMention,n);const i=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=i>=0?i:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}canOpen(){const n=this.triggerNativeElement;return!n.readOnly&&!n.disabled}resetCursorMention(){const n=this.triggerNativeElement.value.replace(/[\r\n]/g," ")||"",i=this.triggerNativeElement.selectionStart,a="string"==typeof this.nzPrefix?[this.nzPrefix]:this.nzPrefix;let h=a.length;for(;h>=0;){const I=n.lastIndexOf(a[h],i),Y=n.indexOf(" ",i)>-1?n.indexOf(" ",i):n.length,F=n.substring(I,Y);if(!(I>0&&" "!==n[I-1]||I<0||F.includes(a[h],1)||F.includes(" ")))return this.cursorMention=F,this.cursorMentionStart=I,void(this.cursorMentionEnd=Y);this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1,h--}}updatePositions(){const n=(0,K.Ly)(this.triggerNativeElement,this.cursorMentionStart),i=n.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+("bottom"===this.nzPlacement?n.height-6:-6);this.positionStrategy.withDefaultOffsetX(n.left-this.triggerNativeElement.scrollLeft).withDefaultOffsetY(i),"bottom"===this.nzPlacement&&this.positionStrategy.withPositions([...w.fG]),"top"===this.nzPlacement&&this.positionStrategy.withPositions([...w.A7]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){const n=a=>{const h=a.target;return this.isOpen&&h!==this.trigger.el.nativeElement&&!this.overlayRef?.overlayElement.contains(h)},i=new A.w0;return i.add(this.overlayRef.outsidePointerEvents().subscribe(a=>n(a)&&this.closeDropdown())),i.add(this.ngZone.runOutsideAngular(()=>(0,D.R)(this.ngDocument,"touchend").subscribe(a=>n(a)&&this.ngZone.run(()=>this.closeDropdown())))),i}attachOverlay(){this.overlayRef||(this.portal=new $.UE(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayConfig(){return new o.X_({positionStrategy:this.getOverlayPosition(),scrollStrategy:this.overlay.scrollStrategies.reposition(),disposeOnNavigation:!0})}getOverlayPosition(){const n=[new o.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new o.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.trigger.el).withPositions(n).withFlexibleDimensions(!1).withPush(!1),this.positionStrategy}setStatusStyles(n,i){this.status=n,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=(0,K.Zu)(this.prefixCls,n,i),Object.keys(this.statusCls).forEach(a=>{this.statusCls[a]?this.renderer.addClass(this.elementRef.nativeElement,a):this.renderer.removeClass(this.elementRef.nativeElement,a)})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(t.R0b),t.Y36(g.K0,8),t.Y36(s.Is,8),t.Y36(t.sBO),t.Y36(o.aV),t.Y36(t.s_b),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(V),t.Y36(U.kn),t.Y36(d.kH,8),t.Y36(d.yW,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["nz-mention"]],contentQueries:function(n,i,a){if(1&n&&t.Suo(a,j,5,t.Rgc),2&n){let h;t.iGM(h=t.CRH())&&(i.suggestionChild=h.first)}},viewQuery:function(n,i){if(1&n&&(t.Gf(t.Rgc,5),t.Gf(Q,5,t.SBq)),2&n){let a;t.iGM(a=t.CRH())&&(i.suggestionsTemp=a.first),t.iGM(a=t.CRH())&&(i.items=a)}},hostAttrs:[1,"ant-mentions"],hostVars:2,hostBindings:function(n,i){2&n&&t.ekj("ant-mentions-rtl","rtl"===i.dir)},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:"nzLoading",nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions",nzStatus:"nzStatus"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange"},exportAs:["nzMention"],features:[t._Bn([V,U.kn]),t.TTD],ngContentSelectors:tt,decls:4,vars:1,consts:[["suggestions",""],["class","ant-mentions-suffix",3,"status",4,"ngIf"],[1,"ant-mentions-dropdown"],["role","menu","tabindex","0",1,"ant-mentions-dropdown-menu"],["class","ant-mentions-dropdown-menu-item","role","menuitem","tabindex","-1",3,"ant-mentions-dropdown-menu-item-active","ant-mentions-dropdown-menu-item-selected","click",4,"ngFor","ngForOf"],["class","ant-mentions-dropdown-menu-item ant-mentions-dropdown-menu-item-disabled",4,"ngIf"],["role","menuitem","tabindex","-1",1,"ant-mentions-dropdown-menu-item",3,"click"],["items",""],[4,"ngIf","ngIfElse"],["defaultSuggestion",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-mentions-dropdown-menu-item","ant-mentions-dropdown-menu-item-disabled"],[4,"ngIf"],["nz-icon","","nzType","loading"],["nzComponentName","select",3,"specificContent"],[1,"ant-mentions-suffix",3,"status"]],template:function(n,i){1&n&&(t.F$t(),t.Hsn(0),t.YNc(1,k,4,2,"ng-template",null,0,t.W1O),t.YNc(3,q,1,1,"nz-form-item-feedback-icon",1)),2&n&&(t.xp6(3),t.Q6J("ngIf",i.hasFeedback&&!!i.status))},dependencies:[g.sg,g.O5,g.tP,P.Ls,u.gB,d.w_],encapsulation:2,changeDetection:0}),(0,Z.gn)([(0,K.yF)()],r.prototype,"nzLoading",void 0),r})(),et=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[s.vT,g.ez,m.u5,o.U8,P.PV,u.Xo,d.mJ]}),r})()}}]); \ No newline at end of file diff --git a/server/public/7903.9b751d4f9560fc8e.js b/server/public/7903.9b751d4f9560fc8e.js deleted file mode 100644 index 6fe0e6e81..000000000 --- a/server/public/7903.9b751d4f9560fc8e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7903],{7745:(P,u,o)=>{function h(f,S){const v=(g,c)=>{let r;for(let d of g)if(d.fieldGroup)r=v(d.fieldGroup,c);else if(d.key===c){r=d;break}return r},C=(g,c)=>{for(let r of Object.keys(c))if(c[r]instanceof Object&&!Array.isArray(c[r]))C(g,c[r]);else{const d=v(g,r);d&&(d.defaultValue=c[r])}return g};return C(f,S)}o.d(u,{Z:()=>h})},8109:(P,u,o)=>{o.r(u),o.d(u,{GenesReviseModule:()=>Z});var h=o(6814),f=o(4190),S=o(8603),v=o(2419),C=o(2524),g=o(95),c=o(551),r=o(6254),d=o(7921),k=o(7398),z=o(4223),e=o(5879),M=o(313),N=o(951),E=o(8178),w=o(3145),b=o(8091),O=o(2616);function A(t,l){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function T(t,l){1&t&&(e.TgZ(0,"nz-row",8)(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA()())}function _(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2)(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e.ALo(6,"entityColor"),e._uU(7),e.qZA(),e.TgZ(8,"nz-page-header-subtitle"),e._uU(9),e.qZA(),e.TgZ(10,"nz-page-header-content")(11,"div",5),e.YNc(12,A,2,0,"div",6),e.ALo(13,"ngrxPush"),e.YNc(14,T,3,0,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()),2&t){const s=l.ngIf,m=e.MAs(15),y=e.oxw();e.xp6(1),e.Q6J("displayName",s.name),e.xp6(4),e.Q6J("nzTwotoneColor",e.lcZ(6,6,"Gene")),e.xp6(2),e.hij(" ",s.name," "),e.xp6(2),e.hij(" ",s.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(13,8,y.isSignedIn$))("ngIfElse",m)}}let a=(()=>{class t{constructor(s,m,y){this.gql=s,this.route=m,this.viewerService=y,this.routeSub=this.route.params.subscribe(j=>{let I=this.gql.watch({geneId:+j.geneId}).valueChanges;this.loading$=I.pipe((0,z.j)("loading"),(0,d.O)(!0)),this.gene$=I.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,k.U)(s=>s.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(s){return new(s||t)(e.Y36(M.TNk),e.Y36(f.gz),e.Y36(N.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","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(s,m){1&s&&(e.YNc(0,_,16,10,"ng-container",0),e.ALo(1,"async")),2&s&&e.Q6J("ngIf",e.lcZ(1,1,m.gene$))},dependencies:[h.O5,f.lC,r.$O,r.u9,r.yG,r.u5,c.Ls,g.t3,g.SK,E.u,w.I,h.Ov,b.fM,O.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{flex-wrap:nowrap;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 i=o(2574),n=o(4139),p=o(2962),x=o(296);let D=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[h.ez,p.vh,g.Jb,i.zf,n.H0,r.KJ,x.C,v.D]}),t})();var B=o(1858);function G(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const s=e.oxw();e.xp6(1),e.Q6J("geneId",s.geneId)}}function L(t,l){1&t&&e._uU(0,"Loading Gene...")}const R=[{path:"",component:a,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(s){this.route=s,this.routeParams$=this.route.params.subscribe(m=>{this.geneId=+m.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(s){return new(s||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(s,m){if(1&s&&(e.YNc(0,G,2,1,"ng-container",0),e.YNc(1,L,1,0,"ng-template",null,1,e.W1O)),2&s){const y=e.MAs(2);e.Q6J("ngIf",m.geneId)("ngIfElse",y)}},dependencies:[h.O5,B.$],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{flex-wrap:nowrap;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 F=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[f.Bz.forChild(R),D]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[h.ez,f.Bz,F,r.KJ,c.PV,g.Jb,S.a,v.D,C.s]}),t})()},4139:(P,u,o)=>{o.d(u,{H0:()=>_});var h=o(5879),f=o(6814),S=o(9388);let _=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=h.oAB({type:a}),a.\u0275inj=h.cJS({imports:[S.vT,f.ez]}),a})()}}]); \ No newline at end of file diff --git a/server/public/8026.60cd0a5edfa5f87e.js b/server/public/8026.60cd0a5edfa5f87e.js deleted file mode 100644 index 522765252..000000000 --- a/server/public/8026.60cd0a5edfa5f87e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8026],{4010:(F,y,o)=>{o.d(y,{F:()=>g});var b=o(5879);let g=(()=>{class p{transform(s,M="display-string"){return void 0===s?"":"display-string"===M?function r(p){switch(p){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return p}}(s):`civic-${s.replace(/_/g,"").toLowerCase()}`}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275pipe=b.Yjl({name:"therapyInteractionEnumDisplay",type:p,pure:!0}),p})()},4519:(F,y,o)=>{o.r(y),o.d(y,{MolecularProfilesDetailModule:()=>Kn});var r=o(6814),b=o(2419),g=o(2574),p=o(5725),z=o(5956),s=o(6254),M=o(2840),v=o(551),E=o(4059),u=o(95),$=o(936),R=o(7129),c=o(4190),B=o(1830),e=o(5879);let j=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,B.l]}),n})();var m=o(313),W=o(800);let G=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:m.OfU.MolecularProfile}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",i.commentable)},dependencies:[W.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var S=o(7921),X=o(9773),h=o(4223),H=o(8645),K=o(5619),q=o(951),I=o(8091),k=o(855),ee=o(1958),O=o(3903),ne=o(1520),te=o(5098),ae=o(327),oe=o(1801),ie=o(3145),re=o(8295),N=o(9408),le=o(1834),ce=o(4082);const se=function(n){return{molecularProfileId:n}};function pe(n,a){if(1&n&&(e.TgZ(0,"button",14),e._UZ(1,"i",15),e._uU(2," Add Evidence For This Molecular Profile "),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.Q6J("queryParams",e.VKq(1,se,t.id))}}function ue(n,a){if(1&n&&(e.ynx(0),e.YNc(1,pe,3,3,"button",13),e.BQk()),2&n){const t=a.ngrxLet;e.xp6(1),e.Q6J("ngIf",t.canCurate)}}function ge(n,a){if(1&n&&e.YNc(0,ue,2,1,"ng-container",7),2&n){const t=e.oxw(2);e.Q6J("ngrxLet",t.viewer$)}}function me(n,a){1&n&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function fe(n,a){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,me,2,0,"span",0),e.qZA()),2&n){const t=a.$implicit,i=a.last;e.xp6(1),e.hij(" ",t,""),e.xp6(1),e.Q6J("ngIf",!i)}}function de(n,a){if(1&n&&(e.TgZ(0,"nz-page-header-subtitle"),e.YNc(1,fe,3,2,"span",16),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.molecularProfileAliases)}}const ve=function(n){return["/molecular-profiles",n,"revise"]};function _e(n,a){if(1&n&&(e.TgZ(0,"button",21,22),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),i=e.oxw(4).ngIf;e.Q6J("routerLink",e.VKq(2,ve,i.id))("nzType",t.isActive?"primary":"default")}}function ze(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_e,3,4,"button",20),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function he(n,a){if(1&n&&(e.TgZ(0,"button",24,22),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function Pe(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,he,3,1,"button",23),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ye(n,a){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",26),2&n){const t=e.oxw(2).ngrxLet,i=e.oxw(3);e.Q6J("viewer",t)("subscribableId",i.subscribable.id)}}function Me(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ye,1,2,"cvc-entity-subscription-button",25),e.qZA()),2&n){const t=e.oxw().ngrxLet,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.signedIn&&i.subscribable)}}function xe(n,a){1&n&&(e.TgZ(0,"nz-space",18),e.YNc(1,ze,2,1,"span",19),e.YNc(2,Pe,2,1,"span",19),e.YNc(3,Me,2,1,"span",19),e.qZA())}function Te(n,a){if(1&n&&(e.TgZ(0,"nz-page-header-extra"),e.YNc(1,xe,4,0,"nz-space",17),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",t.viewer$)}}function Ce(n,a){if(1&n&&e._UZ(0,"nz-alert",27),2&n){e.oxw();const t=e.MAs(15);e.Q6J("nzMessage",t)}}function Ze(n,a){if(1&n&&e._UZ(0,"cvc-comment-body",30),2&n){const t=e.oxw().$implicit;e.Q6J("commentBodySegments",t.deprecationComment.parsedComment)}}function be(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"br")(2,"cvc-variant-tag",28),e._uU(3),e.ALo(4,"enumToTitle"),e.YNc(5,Ze,1,1,"cvc-comment-body",29),e.BQk()),2&n){const t=a.$implicit;e.xp6(2),e.Q6J("variant",t),e.xp6(1),e.hij(" ",e.lcZ(4,3,t.deprecationReason),". "),e.xp6(2),e.Q6J("ngIf",t.deprecationComment)}}function Ie(n,a){if(1&n&&(e._uU(0," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.YNc(1,be,6,5,"ng-container",16)),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.deprecatedVariants)}}function Ae(n,a){if(1&n&&(e.TgZ(0,"nz-col",31),e._UZ(1,"cvc-contributor-avatars",32),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}const Je=function(n){return{flagged:n}};function Qe(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,ge,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.TgZ(6,"nz-page-header",4)(7,"nz-page-header-title",5),e._UZ(8,"i",6),e._uU(9),e.qZA(),e.YNc(10,de,2,1,"nz-page-header-subtitle",0),e.YNc(11,Te,2,1,"nz-page-header-extra",7),e.TgZ(12,"nz-page-header-content"),e.YNc(13,Ce,1,1,"nz-alert",8),e.YNc(14,Ie,2,1,"ng-template",null,9,e.W1O),e.TgZ(16,"cvc-tab-navigation",10),e.ALo(17,"ngrxPush"),e.YNc(18,Ae,2,1,"ng-template",null,11,e.W1O),e.qZA(),e.TgZ(20,"div",12),e._UZ(21,"router-outlet"),e.qZA()()()(),e.BQk()),2&n){const t=a.ngIf,i=e.MAs(3),l=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("actionsTpl",i),e.xp6(3),e.Q6J("flags",e.lcZ(5,9,l.flagsTotal$)),e.xp6(3),e.Q6J("ngClass",e.VKq(13,Je,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("ngIf",t.molecularProfileAliases.length>0),e.xp6(1),e.Q6J("ngrxLet",l.viewer$),e.xp6(2),e.Q6J("ngIf",t.deprecated),e.xp6(3),e.Q6J("tabs",e.lcZ(17,11,l.tabs$))}}let Se=(()=>{class n{constructor(t,i,l){this.gql=t,this.viewerService=i,this.route=l,this.destroy$=new H.x,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 K.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(f=>{this.queryRef=this.gql.watch({mpId:+f.molecularProfileId});let C=this.queryRef.valueChanges;this.loading$=C.pipe((0,h.j)("loading"),(0,S.O)(!0)),this.molecularProfile$=C.pipe((0,h.j)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,h.j)("flags","totalCount")),this.molecularProfile$.pipe((0,X.R)(this.destroy$)).subscribe({next:Z=>{this.tabs$.next(this.defaultTabs.map(d=>"Revisions"===d.tabLabel?{badgeCount:Z?.revisions.totalCount,...d}:"Comments"===d.tabLabel?{badgeCount:Z?.comments.totalCount,badgeColor:"#cccccc",...d}:d))}}),this.subscribable={id:+f.molecularProfileId,entityType:m.o71.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.AMF),e.Y36(q.a),e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["mpActions",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],["deprecationMessageTemplate",""],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams"],["nz-icon","","nzType","plus-circle"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(t,i){1&t&&(e.YNc(0,Qe,22,15,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.molecularProfile$))},dependencies:[r.mk,r.sg,r.O5,c.lC,c.rH,c.Od,I.eJ,M.ix,k.w,ee.dQ,v.Ls,s.$O,s.u9,s.yG,s.u5,s.Jp,g.NU,g.$1,u.t3,O.r,ne.N,te.P,ae.o,oe.Y,ie.I,re.Q,N.I,le.m,I.fM,ce.I],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{flex-wrap:nowrap;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 Oe=o(9894);let Ne=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Oe.t]}),n})();var Ve=o(7441);let Ue=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.molecularProfileId,entityType:m.o71.MolecularProfile}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",i.subscribable)},dependencies:[Ve.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ye=o(183),we=o(4139),P=o(2962);let De=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,u.Jb,P.vh,g.zf,we.H0,v.PV,Ye.M]}),n})();var Le=o(7287);let Fe=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:m.sfv.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",i.flaggable)},dependencies:[Le.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ee=o(2534);let $e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Ee.A]}),n})();var Re=o(6126);let Be=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.molecularProfileId=+i.molecularProfileId,this.entityType=m.oRL.MolecularProfile})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,i){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",i.molecularProfileId)("entityType",i.entityType)},dependencies:[Re.a],encapsulation:2}),n})();var A=o(366),je=o(8641),_=o(8125),V=o(3717),U=o(6067),Y=o(3511),We=o(1403),Ge=o(5895),x=o(2392),J=o(2524),Xe=o(8706),T=o(5695),He=o(9858),w=o(7528),Ke=o(8527),Q=o(565),qe=o(6055);let ke=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,c.Bz,T.X,v.PV,u.Jb,_.q6,x.ZJ,P.vh,Q.cD,g.zf,J.s,w.Q,z.U,Y.o,A.$,V.M,U.X,A.$,Ke.u,qe.z]}),n})();var en=o(3517);let nn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,g.zf,u.Jb,_.q6,P.vh,x.ZJ,v.PV,T.X,en.M,J.s,We.Q,Ge.s,A.$,Xe.W,je.s,z.U,V.M,U.X,Y.o,He.r,ke]}),n})();var tn=o(7871),an=o(6822),on=o(1826),D=o(1887),rn=o(4138),ln=o(3493),cn=o(5095),sn=o(4121),pn=o(7938),un=o(3317),gn=o(2606),mn=o(1765),fn=o(2616);function dn(n,a){if(1&n&&(e._UZ(0,"i",25),e.ALo(1,"entityColor"),e._uU(2)),2&n){const t=e.oxw();e.Q6J("nzTwotoneColor",e.lcZ(1,2,"Variant")),e.xp6(2),e.hij(" ",t.variant.name," ")}}function vn(n,a){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Oqu(t)}}function _n(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,vn,2,1,"nz-tag",26),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.variant.variantAliases)}}function zn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None specified"),e.qZA())}function hn(n,a){1&n&&e._UZ(0,"cvc-variant-type-tag",29),2&n&&e.Q6J("variantType",a.$implicit)}function Pn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,hn,1,1,"cvc-variant-type-tag",28),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.variant.variantTypes)}}function yn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None specified"),e.qZA())}function Mn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",30),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.xp6(1),e.hij(" ",t.variant.alleleRegistryId," ")}}function xn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None provided"),e.qZA())}function Tn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",31),e._uU(2),e.qZA(),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.xp6(1),e.hij(" ",t," ")}}function Cn(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Tn,3,2,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.variant.clinvarIds)}}function Zn(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Cn,2,1,"cvc-tag-list",11),e.BQk()),2&n){const t=e.oxw(),i=e.MAs(27);e.xp6(1),e.Q6J("ngIf","N/A"!==t.variant.clinvarIds[0])("ngIfElse",i)}}function bn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"N/A"),e.qZA())}function In(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None provided"),e.qZA())}function An(n,a){if(1&n&&(e.TgZ(0,"cvc-link-tag",32),e._uU(1," Variant Report "),e.qZA()),2&n){const t=e.oxw();e.Q6J("href",t.variant.openCravatUrl)}}function Jn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"Allele Registry ID required."),e.qZA())}function Qn(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-molecular-profile-tag",35),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("molecularProfile",t)("truncateLongName",!0)}}function Sn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"a",36),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,"/summary"),e.xp6(1),e.hij(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function On(n,a){if(1&n&&(e.TgZ(0,"nz-descriptions-item",33)(1,"cvc-tag-list"),e.YNc(2,Qn,2,2,"ng-container",26),e.YNc(3,Sn,3,2,"ng-container",34),e.qZA()()),2&n){const t=e.oxw();e.Q6J("nzSpan",4),e.xp6(2),e.Q6J("ngForOf",t.displayMps),e.xp6(1),e.Q6J("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}const Nn=function(){return[8,16]},Vn=function(){return[8,8]};let Un=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-mp-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:39,vars:32,consts:[["nzType","inner","nzSize","small",3,"nzTitle"],["cardTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Gene",3,"nzSpan"],[3,"gene"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noAliases",""],[3,"nzSpan","nzTitle"],["noTypes",""],["nzTitle","Allele Registry ID",3,"nzSpan"],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["noCravat",""],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on OpenCRAVAT",3,"href"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(t,i){if(1&t&&(e.TgZ(0,"nz-card",0),e.YNc(1,dn,3,4,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-row",2)(4,"nz-col",3)(5,"nz-row",2)(6,"nz-col",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),e._UZ(9,"cvc-variant-tag",7),e.qZA(),e.TgZ(10,"nz-descriptions-item",8),e._UZ(11,"cvc-gene-tag",9),e.qZA(),e.TgZ(12,"nz-descriptions-item",10),e.YNc(13,_n,3,1,"ng-container",11),e.YNc(14,zn,2,0,"ng-template",null,12,e.W1O),e.qZA(),e.TgZ(16,"nz-descriptions-item",13),e.YNc(17,Pn,3,1,"ng-container",11),e.YNc(18,yn,2,0,"ng-template",null,14,e.W1O),e.qZA(),e.TgZ(20,"nz-descriptions-item",15),e.YNc(21,Mn,3,2,"ng-container",11),e.YNc(22,xn,2,0,"ng-template",null,16,e.W1O),e.qZA(),e.TgZ(24,"nz-descriptions-item",13),e.YNc(25,Zn,2,2,"ng-container",11),e.YNc(26,bn,2,0,"ng-template",null,17,e.W1O),e.YNc(28,In,2,0,"ng-template",null,18,e.W1O),e.qZA(),e.TgZ(30,"nz-descriptions-item",19),e.YNc(31,An,2,1,"cvc-link-tag",20),e.YNc(32,Jn,2,0,"ng-template",null,21,e.W1O),e.qZA(),e.YNc(34,On,4,3,"nz-descriptions-item",22),e.qZA()(),e.TgZ(35,"nz-col",3)(36,"nz-collapse")(37,"nz-collapse-panel",23),e._UZ(38,"cvc-coordinates-card",24),e.qZA()()()()()()()),2&t){const l=e.MAs(2),f=e.MAs(15),C=e.MAs(19),Z=e.MAs(23),d=e.MAs(29),qn=e.MAs(33);e.Q6J("nzTitle",l),e.xp6(3),e.Q6J("nzGutter",e.DdM(30,Nn)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzGutter",e.DdM(31,Vn)),e.xp6(2),e.Q6J("nzColumn",4),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("variant",i.variant),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("gene",i.variant.gene),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.variantAliases.length>0)("ngIfElse",f),e.xp6(3),e.Q6J("nzSpan",2)("nzTitle",i.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.xp6(1),e.Q6J("ngIf",i.variant.variantTypes.length>0)("ngIfElse",C),e.xp6(3),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.alleleRegistryId)("ngIfElse",Z),e.xp6(3),e.Q6J("nzSpan",2)("nzTitle",i.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.xp6(1),e.Q6J("ngIf",i.variant.clinvarIds.length>0)("ngIfElse",d),e.xp6(5),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.openCravatUrl)("ngIfElse",qn),e.xp6(3),e.Q6J("ngIf",i.displayMps.length>0),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("displayTitle",!1)("cvcCoordinates",i.variant)}},dependencies:[r.sg,r.O5,c.rH,T.j,v.Ls,u.t3,u.SK,_.R7,_.uj,x.ZU,P.bd,Q.Zv,Q.yH,N.I,sn.H,D.$,pn.j,un.l,gn.p,mn.m,fn.a],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]}),n})();function Yn(n,a){if(1&n&&(e.TgZ(0,"p",21),e._uU(1),e.qZA()),2&n){const t=e.oxw().ngIf;e.Q6J("nzEllipsisRows",14),e.xp6(1),e.hij(" ",t.description," ")}}function wn(n,a){1&n&&e._UZ(0,"cvc-empty-revisable",22)}function Dn(n,a){1&n&&e._UZ(0,"cvc-source-tag",24),2&n&&e.Q6J("source",a.$implicit)}function Ln(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Dn,1,1,"cvc-source-tag",23),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.sources)}}function Fn(n,a){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Oqu(t)}}function En(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Fn,2,1,"nz-tag",25),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.molecularProfileAliases)}}function $n(n,a){if(1&n&&(e.TgZ(0,"nz-col",16),e._UZ(1,"cvc-mp-variant-card",26),e.qZA()),2&n){const t=a.$implicit,i=e.oxw().ngIf;e.xp6(1),e.Q6J("variant",t)("currentMolecularProfileId",i.id)}}const Rn=function(){return[8,16]},L=function(){return[8,8]};function Bn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6),e._UZ(7,"cvc-mp-tag-name",7),e.qZA()()(),e.TgZ(8,"nz-col",4)(9,"nz-descriptions",5)(10,"nz-descriptions-item",8),e.YNc(11,Yn,2,2,"p",9),e.YNc(12,wn,1,0,"ng-template",null,10,e.W1O),e.qZA(),e.TgZ(14,"nz-descriptions-item",11),e.YNc(15,Ln,2,1,"cvc-tag-list",12),e.qZA(),e.TgZ(16,"nz-descriptions-item",13)(17,"span",14),e._uU(18),e.ALo(19,"number"),e.qZA()(),e.TgZ(20,"nz-descriptions-item",15),e.YNc(21,En,2,1,"cvc-tag-list",12),e.qZA()()()()(),e.TgZ(22,"nz-col",16)(23,"nz-card",17)(24,"nz-row",3),e.YNc(25,$n,2,2,"nz-col",18),e.qZA()()(),e.TgZ(26,"nz-col",16),e._UZ(27,"cvc-evidence-table",19),e.qZA(),e.TgZ(28,"nz-col",16),e._UZ(29,"cvc-assertions-table",20),e.qZA()(),e.BQk()),2&n){const t=a.ngIf,i=e.MAs(13);e.oxw();const l=e.MAs(5);e.xp6(1),e.Q6J("nzGutter",e.DdM(24,Rn)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzGutter",e.DdM(25,L)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",1),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.Q6J("nameSegments",t.parsedName),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",t.description)("ngIfElse",i),e.xp6(4),e.Q6J("ngIf",t.sources.length>0)("ngIfElse",l),e.xp6(3),e.Oqu(e.lcZ(19,22,t.molecularProfileScore)),e.xp6(3),e.Q6J("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",l),e.xp6(3),e.Q6J("nzGutter",e.DdM(26,L)),e.xp6(1),e.Q6J("ngForOf",t.variants),e.xp6(2),e.Q6J("molecularProfileId",t.id)("displayMolecularProfile",!1),e.xp6(2),e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("molecularProfileId",t.id)}}function jn(n,a){1&n&&e._UZ(0,"cvc-empty-value",27)}function Wn(n,a){1&n&&e._UZ(0,"cvc-empty-value",28)}const Gn=[{path:"",component:Se,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,i){var l;if(this.gql=t,this.route=i,null==(l=this.molecularProfileId?this.molecularProfileId:+this.route.snapshot.params.molecularProfileId))throw new Error("Must pass in a molecular profile ID as an input or via the route.");this.queryRef=this.gql.watch({mpId:l});let f=this.queryRef.valueChanges;this.loading$=f.pipe((0,h.j)("loading"),(0,S.O)(!0)),this.molecularProfile$=f.pipe((0,h.j)("data","molecularProfile")),this.subscribable={entityType:m.o71.MolecularProfile,id:l}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.Tg0),e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression",3,"nzSpan"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Molecular Profile Score"],["nz-typography",""],["nzTitle","Aliases"],["nzSpan","24"],["nzTitle","MP Variants"],["nzSpan","24",4,"ngFor","ngForOf"],["cvcHeight","300px","cvcTitle","Evidence",3,"molecularProfileId","displayMolecularProfile"],["cvcHeight","200px",3,"molecularProfileId","cvcTitle"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],[4,"ngFor","ngForOf"],[3,"variant","currentMolecularProfileId"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,i){1&t&&(e.YNc(0,Bn,30,27,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,jn,1,0,"ng-template",null,1,e.W1O),e.YNc(4,Wn,1,0,"ng-template",null,2,e.W1O)),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.molecularProfile$))},dependencies:[r.sg,r.O5,u.t3,u.SK,_.R7,_.uj,P.bd,x.ZU,T.j,tn.P,an.a,on.x,D.$,rn.T,ln.J,cn.C,Un,r.JJ,I.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:G,data:{breadcrumb:"Comments"}},{path:"revisions",component:Be,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fe,data:{breadcrumb:"Flags"}},{path:"events",component:Ue,data:{breadcrumb:"Events"}}]}];let Xn=(()=>{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(Gn),nn,$e,j,De,Ne,c.Bz]}),n})();var Hn=o(4758);let Kn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Xn,M.sL,v.PV,s.KJ,g.zf,u.Jb,O.L,$.Z,E.c,p.m,z.U,b.D,R.g,w.Q,J.s,Hn.m]}),n})()}}]); \ No newline at end of file diff --git a/server/public/8026.bdbf2592fa09c3bc.js b/server/public/8026.bdbf2592fa09c3bc.js new file mode 100644 index 000000000..382eb903c --- /dev/null +++ b/server/public/8026.bdbf2592fa09c3bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8026],{4010:(F,y,o)=>{o.d(y,{F:()=>g});var b=o(5879);let g=(()=>{class p{transform(s,M="display-string"){return void 0===s?"":"display-string"===M?function r(p){switch(p){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return p}}(s):`civic-${s.replace(/_/g,"").toLowerCase()}`}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275pipe=b.Yjl({name:"therapyInteractionEnumDisplay",type:p,pure:!0}),p})()},4519:(F,y,o)=>{o.r(y),o.d(y,{MolecularProfilesDetailModule:()=>Kn});var r=o(6814),b=o(2419),g=o(2574),p=o(5725),z=o(5956),s=o(6254),M=o(2840),v=o(551),E=o(4059),u=o(95),$=o(936),R=o(7129),c=o(4190),B=o(1260),e=o(5879);let j=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,B.l]}),n})();var m=o(313),W=o(5565);let G=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:m.OfU.MolecularProfile}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",i.commentable)},dependencies:[W.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var S=o(7921),X=o(9773),h=o(4223),H=o(8645),K=o(5619),q=o(951),I=o(8091),k=o(855),ee=o(1958),O=o(3903),ne=o(1520),te=o(5098),ae=o(327),oe=o(1801),ie=o(3145),re=o(8295),N=o(9408),le=o(1834),ce=o(4082);const se=function(n){return{molecularProfileId:n}};function pe(n,a){if(1&n&&(e.TgZ(0,"button",14),e._UZ(1,"i",15),e._uU(2," Add Evidence For This Molecular Profile "),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.Q6J("queryParams",e.VKq(1,se,t.id))}}function ue(n,a){if(1&n&&(e.ynx(0),e.YNc(1,pe,3,3,"button",13),e.BQk()),2&n){const t=a.ngrxLet;e.xp6(1),e.Q6J("ngIf",t.canCurate)}}function ge(n,a){if(1&n&&e.YNc(0,ue,2,1,"ng-container",7),2&n){const t=e.oxw(2);e.Q6J("ngrxLet",t.viewer$)}}function me(n,a){1&n&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function fe(n,a){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,me,2,0,"span",0),e.qZA()),2&n){const t=a.$implicit,i=a.last;e.xp6(1),e.hij(" ",t,""),e.xp6(1),e.Q6J("ngIf",!i)}}function de(n,a){if(1&n&&(e.TgZ(0,"nz-page-header-subtitle"),e.YNc(1,fe,3,2,"span",16),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.molecularProfileAliases)}}const ve=function(n){return["/molecular-profiles",n,"revise"]};function _e(n,a){if(1&n&&(e.TgZ(0,"button",21,22),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),i=e.oxw(4).ngIf;e.Q6J("routerLink",e.VKq(2,ve,i.id))("nzType",t.isActive?"primary":"default")}}function ze(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,_e,3,4,"button",20),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function he(n,a){if(1&n&&(e.TgZ(0,"button",24,22),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function Pe(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,he,3,1,"button",23),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ye(n,a){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",26),2&n){const t=e.oxw(2).ngrxLet,i=e.oxw(3);e.Q6J("viewer",t)("subscribableId",i.subscribable.id)}}function Me(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ye,1,2,"cvc-entity-subscription-button",25),e.qZA()),2&n){const t=e.oxw().ngrxLet,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.signedIn&&i.subscribable)}}function xe(n,a){1&n&&(e.TgZ(0,"nz-space",18),e.YNc(1,ze,2,1,"span",19),e.YNc(2,Pe,2,1,"span",19),e.YNc(3,Me,2,1,"span",19),e.qZA())}function Te(n,a){if(1&n&&(e.TgZ(0,"nz-page-header-extra"),e.YNc(1,xe,4,0,"nz-space",17),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",t.viewer$)}}function Ce(n,a){if(1&n&&e._UZ(0,"nz-alert",27),2&n){e.oxw();const t=e.MAs(15);e.Q6J("nzMessage",t)}}function Ze(n,a){if(1&n&&e._UZ(0,"cvc-comment-body",30),2&n){const t=e.oxw().$implicit;e.Q6J("commentBodySegments",t.deprecationComment.parsedComment)}}function be(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"br")(2,"cvc-variant-tag",28),e._uU(3),e.ALo(4,"enumToTitle"),e.YNc(5,Ze,1,1,"cvc-comment-body",29),e.BQk()),2&n){const t=a.$implicit;e.xp6(2),e.Q6J("variant",t),e.xp6(1),e.hij(" ",e.lcZ(4,3,t.deprecationReason),". "),e.xp6(2),e.Q6J("ngIf",t.deprecationComment)}}function Ie(n,a){if(1&n&&(e._uU(0," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.YNc(1,be,6,5,"ng-container",16)),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.deprecatedVariants)}}function Ae(n,a){if(1&n&&(e.TgZ(0,"nz-col",31),e._UZ(1,"cvc-contributor-avatars",32),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}const Je=function(n){return{flagged:n}};function Qe(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,ge,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.TgZ(6,"nz-page-header",4)(7,"nz-page-header-title",5),e._UZ(8,"i",6),e._uU(9),e.qZA(),e.YNc(10,de,2,1,"nz-page-header-subtitle",0),e.YNc(11,Te,2,1,"nz-page-header-extra",7),e.TgZ(12,"nz-page-header-content"),e.YNc(13,Ce,1,1,"nz-alert",8),e.YNc(14,Ie,2,1,"ng-template",null,9,e.W1O),e.TgZ(16,"cvc-tab-navigation",10),e.ALo(17,"ngrxPush"),e.YNc(18,Ae,2,1,"ng-template",null,11,e.W1O),e.qZA(),e.TgZ(20,"div",12),e._UZ(21,"router-outlet"),e.qZA()()()(),e.BQk()),2&n){const t=a.ngIf,i=e.MAs(3),l=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("actionsTpl",i),e.xp6(3),e.Q6J("flags",e.lcZ(5,9,l.flagsTotal$)),e.xp6(3),e.Q6J("ngClass",e.VKq(13,Je,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("ngIf",t.molecularProfileAliases.length>0),e.xp6(1),e.Q6J("ngrxLet",l.viewer$),e.xp6(2),e.Q6J("ngIf",t.deprecated),e.xp6(3),e.Q6J("tabs",e.lcZ(17,11,l.tabs$))}}let Se=(()=>{class n{constructor(t,i,l){this.gql=t,this.viewerService=i,this.route=l,this.destroy$=new H.x,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 K.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(f=>{this.queryRef=this.gql.watch({mpId:+f.molecularProfileId});let C=this.queryRef.valueChanges;this.loading$=C.pipe((0,h.j)("loading"),(0,S.O)(!0)),this.molecularProfile$=C.pipe((0,h.j)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,h.j)("flags","totalCount")),this.molecularProfile$.pipe((0,X.R)(this.destroy$)).subscribe({next:Z=>{this.tabs$.next(this.defaultTabs.map(d=>"Revisions"===d.tabLabel?{badgeCount:Z?.revisions.totalCount,...d}:"Comments"===d.tabLabel?{badgeCount:Z?.comments.totalCount,badgeColor:"#cccccc",...d}:d))}}),this.subscribable={id:+f.molecularProfileId,entityType:m.o71.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.AMF),e.Y36(q.a),e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["mpActions",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],["deprecationMessageTemplate",""],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams"],["nz-icon","","nzType","plus-circle"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(t,i){1&t&&(e.YNc(0,Qe,22,15,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.molecularProfile$))},dependencies:[r.mk,r.sg,r.O5,c.lC,c.rH,c.Od,I.eJ,M.ix,k.w,ee.dQ,v.Ls,s.$O,s.u9,s.yG,s.u5,s.Jp,g.NU,g.$1,u.t3,O.r,ne.N,te.P,ae.o,oe.Y,ie.I,re.Q,N.I,le.m,I.fM,ce.I],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{flex-wrap:nowrap;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 Oe=o(9894);let Ne=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Oe.t]}),n})();var Ve=o(7441);let Ue=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.molecularProfileId,entityType:m.o71.MolecularProfile}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",i.subscribable)},dependencies:[Ve.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ye=o(7937),we=o(4139),P=o(2962);let De=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,u.Jb,P.vh,g.zf,we.H0,v.PV,Ye.M]}),n})();var Le=o(4385);let Fe=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:m.sfv.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,i){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",i.flaggable)},dependencies:[Le.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ee=o(2534);let $e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Ee.A]}),n})();var Re=o(6126);let Be=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.molecularProfileId=+i.molecularProfileId,this.entityType=m.oRL.MolecularProfile})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,i){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",i.molecularProfileId)("entityType",i.entityType)},dependencies:[Re.a],encapsulation:2}),n})();var A=o(366),je=o(8641),_=o(8125),V=o(3717),U=o(6067),Y=o(3511),We=o(1403),Ge=o(5895),x=o(2392),J=o(2524),Xe=o(8706),T=o(5695),He=o(9858),w=o(7528),Ke=o(8527),Q=o(565),qe=o(6055);let ke=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,c.Bz,T.X,v.PV,u.Jb,_.q6,x.ZJ,P.vh,Q.cD,g.zf,J.s,w.Q,z.U,Y.o,A.$,V.M,U.X,A.$,Ke.u,qe.z]}),n})();var en=o(821);let nn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,g.zf,u.Jb,_.q6,P.vh,x.ZJ,v.PV,T.X,en.M,J.s,We.Q,Ge.s,A.$,Xe.W,je.s,z.U,V.M,U.X,Y.o,He.r,ke]}),n})();var tn=o(8656),an=o(6822),on=o(1826),D=o(1887),rn=o(4138),ln=o(3493),cn=o(5095),sn=o(4121),pn=o(7938),un=o(3317),gn=o(2606),mn=o(1765),fn=o(2616);function dn(n,a){if(1&n&&(e._UZ(0,"i",25),e.ALo(1,"entityColor"),e._uU(2)),2&n){const t=e.oxw();e.Q6J("nzTwotoneColor",e.lcZ(1,2,"Variant")),e.xp6(2),e.hij(" ",t.variant.name," ")}}function vn(n,a){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Oqu(t)}}function _n(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,vn,2,1,"nz-tag",26),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.variant.variantAliases)}}function zn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None specified"),e.qZA())}function hn(n,a){1&n&&e._UZ(0,"cvc-variant-type-tag",29),2&n&&e.Q6J("variantType",a.$implicit)}function Pn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,hn,1,1,"cvc-variant-type-tag",28),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.variant.variantTypes)}}function yn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None specified"),e.qZA())}function Mn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",30),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.xp6(1),e.hij(" ",t.variant.alleleRegistryId," ")}}function xn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None provided"),e.qZA())}function Tn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",31),e._uU(2),e.qZA(),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.xp6(1),e.hij(" ",t," ")}}function Cn(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Tn,3,2,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.variant.clinvarIds)}}function Zn(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Cn,2,1,"cvc-tag-list",11),e.BQk()),2&n){const t=e.oxw(),i=e.MAs(27);e.xp6(1),e.Q6J("ngIf","N/A"!==t.variant.clinvarIds[0])("ngIfElse",i)}}function bn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"N/A"),e.qZA())}function In(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"None provided"),e.qZA())}function An(n,a){if(1&n&&(e.TgZ(0,"cvc-link-tag",32),e._uU(1," Variant Report "),e.qZA()),2&n){const t=e.oxw();e.Q6J("href",t.variant.openCravatUrl)}}function Jn(n,a){1&n&&(e.TgZ(0,"span",27),e._uU(1,"Allele Registry ID required."),e.qZA())}function Qn(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-molecular-profile-tag",35),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("molecularProfile",t)("truncateLongName",!0)}}function Sn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"a",36),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,"/summary"),e.xp6(1),e.hij(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function On(n,a){if(1&n&&(e.TgZ(0,"nz-descriptions-item",33)(1,"cvc-tag-list"),e.YNc(2,Qn,2,2,"ng-container",26),e.YNc(3,Sn,3,2,"ng-container",34),e.qZA()()),2&n){const t=e.oxw();e.Q6J("nzSpan",4),e.xp6(2),e.Q6J("ngForOf",t.displayMps),e.xp6(1),e.Q6J("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}const Nn=function(){return[8,16]},Vn=function(){return[8,8]};let Un=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-mp-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:39,vars:32,consts:[["nzType","inner","nzSize","small",3,"nzTitle"],["cardTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Gene",3,"nzSpan"],[3,"gene"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noAliases",""],[3,"nzSpan","nzTitle"],["noTypes",""],["nzTitle","Allele Registry ID",3,"nzSpan"],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["noCravat",""],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on OpenCRAVAT",3,"href"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(t,i){if(1&t&&(e.TgZ(0,"nz-card",0),e.YNc(1,dn,3,4,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-row",2)(4,"nz-col",3)(5,"nz-row",2)(6,"nz-col",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),e._UZ(9,"cvc-variant-tag",7),e.qZA(),e.TgZ(10,"nz-descriptions-item",8),e._UZ(11,"cvc-gene-tag",9),e.qZA(),e.TgZ(12,"nz-descriptions-item",10),e.YNc(13,_n,3,1,"ng-container",11),e.YNc(14,zn,2,0,"ng-template",null,12,e.W1O),e.qZA(),e.TgZ(16,"nz-descriptions-item",13),e.YNc(17,Pn,3,1,"ng-container",11),e.YNc(18,yn,2,0,"ng-template",null,14,e.W1O),e.qZA(),e.TgZ(20,"nz-descriptions-item",15),e.YNc(21,Mn,3,2,"ng-container",11),e.YNc(22,xn,2,0,"ng-template",null,16,e.W1O),e.qZA(),e.TgZ(24,"nz-descriptions-item",13),e.YNc(25,Zn,2,2,"ng-container",11),e.YNc(26,bn,2,0,"ng-template",null,17,e.W1O),e.YNc(28,In,2,0,"ng-template",null,18,e.W1O),e.qZA(),e.TgZ(30,"nz-descriptions-item",19),e.YNc(31,An,2,1,"cvc-link-tag",20),e.YNc(32,Jn,2,0,"ng-template",null,21,e.W1O),e.qZA(),e.YNc(34,On,4,3,"nz-descriptions-item",22),e.qZA()(),e.TgZ(35,"nz-col",3)(36,"nz-collapse")(37,"nz-collapse-panel",23),e._UZ(38,"cvc-coordinates-card",24),e.qZA()()()()()()()),2&t){const l=e.MAs(2),f=e.MAs(15),C=e.MAs(19),Z=e.MAs(23),d=e.MAs(29),qn=e.MAs(33);e.Q6J("nzTitle",l),e.xp6(3),e.Q6J("nzGutter",e.DdM(30,Nn)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzGutter",e.DdM(31,Vn)),e.xp6(2),e.Q6J("nzColumn",4),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("variant",i.variant),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("gene",i.variant.gene),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.variantAliases.length>0)("ngIfElse",f),e.xp6(3),e.Q6J("nzSpan",2)("nzTitle",i.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.xp6(1),e.Q6J("ngIf",i.variant.variantTypes.length>0)("ngIfElse",C),e.xp6(3),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.alleleRegistryId)("ngIfElse",Z),e.xp6(3),e.Q6J("nzSpan",2)("nzTitle",i.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.xp6(1),e.Q6J("ngIf",i.variant.clinvarIds.length>0)("ngIfElse",d),e.xp6(5),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",i.variant.openCravatUrl)("ngIfElse",qn),e.xp6(3),e.Q6J("ngIf",i.displayMps.length>0),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("displayTitle",!1)("cvcCoordinates",i.variant)}},dependencies:[r.sg,r.O5,c.rH,T.j,v.Ls,u.t3,u.SK,_.R7,_.uj,x.ZU,P.bd,Q.Zv,Q.yH,N.I,sn.H,D.$,pn.j,un.l,gn.p,mn.m,fn.a],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]}),n})();function Yn(n,a){if(1&n&&(e.TgZ(0,"p",21),e._uU(1),e.qZA()),2&n){const t=e.oxw().ngIf;e.Q6J("nzEllipsisRows",14),e.xp6(1),e.hij(" ",t.description," ")}}function wn(n,a){1&n&&e._UZ(0,"cvc-empty-revisable",22)}function Dn(n,a){1&n&&e._UZ(0,"cvc-source-tag",24),2&n&&e.Q6J("source",a.$implicit)}function Ln(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Dn,1,1,"cvc-source-tag",23),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.sources)}}function Fn(n,a){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Oqu(t)}}function En(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Fn,2,1,"nz-tag",25),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.molecularProfileAliases)}}function $n(n,a){if(1&n&&(e.TgZ(0,"nz-col",16),e._UZ(1,"cvc-mp-variant-card",26),e.qZA()),2&n){const t=a.$implicit,i=e.oxw().ngIf;e.xp6(1),e.Q6J("variant",t)("currentMolecularProfileId",i.id)}}const Rn=function(){return[8,16]},L=function(){return[8,8]};function Bn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6),e._UZ(7,"cvc-mp-tag-name",7),e.qZA()()(),e.TgZ(8,"nz-col",4)(9,"nz-descriptions",5)(10,"nz-descriptions-item",8),e.YNc(11,Yn,2,2,"p",9),e.YNc(12,wn,1,0,"ng-template",null,10,e.W1O),e.qZA(),e.TgZ(14,"nz-descriptions-item",11),e.YNc(15,Ln,2,1,"cvc-tag-list",12),e.qZA(),e.TgZ(16,"nz-descriptions-item",13)(17,"span",14),e._uU(18),e.ALo(19,"number"),e.qZA()(),e.TgZ(20,"nz-descriptions-item",15),e.YNc(21,En,2,1,"cvc-tag-list",12),e.qZA()()()()(),e.TgZ(22,"nz-col",16)(23,"nz-card",17)(24,"nz-row",3),e.YNc(25,$n,2,2,"nz-col",18),e.qZA()()(),e.TgZ(26,"nz-col",16),e._UZ(27,"cvc-evidence-table",19),e.qZA(),e.TgZ(28,"nz-col",16),e._UZ(29,"cvc-assertions-table",20),e.qZA()(),e.BQk()),2&n){const t=a.ngIf,i=e.MAs(13);e.oxw();const l=e.MAs(5);e.xp6(1),e.Q6J("nzGutter",e.DdM(24,Rn)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzGutter",e.DdM(25,L)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",1),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.Q6J("nameSegments",t.parsedName),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",t.description)("ngIfElse",i),e.xp6(4),e.Q6J("ngIf",t.sources.length>0)("ngIfElse",l),e.xp6(3),e.Oqu(e.lcZ(19,22,t.molecularProfileScore)),e.xp6(3),e.Q6J("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",l),e.xp6(3),e.Q6J("nzGutter",e.DdM(26,L)),e.xp6(1),e.Q6J("ngForOf",t.variants),e.xp6(2),e.Q6J("molecularProfileId",t.id)("displayMolecularProfile",!1),e.xp6(2),e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("molecularProfileId",t.id)}}function jn(n,a){1&n&&e._UZ(0,"cvc-empty-value",27)}function Wn(n,a){1&n&&e._UZ(0,"cvc-empty-value",28)}const Gn=[{path:"",component:Se,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,i){var l;if(this.gql=t,this.route=i,null==(l=this.molecularProfileId?this.molecularProfileId:+this.route.snapshot.params.molecularProfileId))throw new Error("Must pass in a molecular profile ID as an input or via the route.");this.queryRef=this.gql.watch({mpId:l});let f=this.queryRef.valueChanges;this.loading$=f.pipe((0,h.j)("loading"),(0,S.O)(!0)),this.molecularProfile$=f.pipe((0,h.j)("data","molecularProfile")),this.subscribable={entityType:m.o71.MolecularProfile,id:l}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(m.Tg0),e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression",3,"nzSpan"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Molecular Profile Score"],["nz-typography",""],["nzTitle","Aliases"],["nzSpan","24"],["nzTitle","MP Variants"],["nzSpan","24",4,"ngFor","ngForOf"],["cvcHeight","300px","cvcTitle","Evidence",3,"molecularProfileId","displayMolecularProfile"],["cvcHeight","200px",3,"molecularProfileId","cvcTitle"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],[4,"ngFor","ngForOf"],[3,"variant","currentMolecularProfileId"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,i){1&t&&(e.YNc(0,Bn,30,27,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,jn,1,0,"ng-template",null,1,e.W1O),e.YNc(4,Wn,1,0,"ng-template",null,2,e.W1O)),2&t&&e.Q6J("ngIf",e.lcZ(1,1,i.molecularProfile$))},dependencies:[r.sg,r.O5,u.t3,u.SK,_.R7,_.uj,P.bd,x.ZU,T.j,tn.P,an.a,on.x,D.$,rn.T,ln.J,cn.C,Un,r.JJ,I.fM],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:G,data:{breadcrumb:"Comments"}},{path:"revisions",component:Be,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fe,data:{breadcrumb:"Flags"}},{path:"events",component:Ue,data:{breadcrumb:"Events"}}]}];let Xn=(()=>{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(Gn),nn,$e,j,De,Ne,c.Bz]}),n})();var Hn=o(4758);let Kn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[r.ez,Xn,M.sL,v.PV,s.KJ,g.zf,u.Jb,O.L,$.Z,E.c,p.m,z.U,b.D,R.g,w.Q,J.s,Hn.m]}),n})()}}]); \ No newline at end of file diff --git a/server/public/8245.2f882b4f5fd8d87b.js b/server/public/8245.2f882b4f5fd8d87b.js deleted file mode 100644 index d45d4bf9a..000000000 --- a/server/public/8245.2f882b4f5fd8d87b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8245],{1834:(K,Q,e)=>{e.d(Q,{m:()=>Y});var t=e(5879),f=e(6814),o=e(5695),n=e(551),T=e(3488),S=e(270),B=e(4786),x=e(9408),A=e(5959),E=e(4121),$=e(356),z=e(215),Z=e(2606);function L(_,u){if(1&_&&(t.ynx(0),t._UZ(1,"span",2),t.BQk()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("innerHtml",r.text,t.oJD)}}function M(_,u){if(1&_&&(t.ynx(0),t._UZ(1,"cvc-user-tag",3),t.BQk()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("user",r)}}const P=function(_,u,r,W){return{id:_,name:u,link:r,revisionSetId:W}};function F(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-revision-tag",6),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("revision",t.l5B(1,P,r.entityId,r.displayName,r.link,r.revisionSetId))}}const R=function(_,u,r){return{id:_,name:u,link:r}};function O(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-gene-tag",7),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("gene",t.kEZ(1,R,r.entityId,r.displayName,r.link))}}const I=function(_,u,r,W){return{id:_,name:u,link:r,deprecated:W}};function D(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-tag",8),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variant",t.l5B(1,I,r.entityId,r.displayName,r.link,r.deprecated))}}function U(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-group-tag",9),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variantgroup",t.kEZ(1,R,r.entityId,r.displayName,r.link))}}const J=function(_,u,r,W){return{id:_,name:u,status:r,link:W}};function v(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-evidence-tag",10),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("evidence",t.l5B(1,J,r.entityId,r.displayName,r.status,r.link))}}function h(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-assertion-tag",11),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("assertion",t.l5B(1,J,r.entityId,r.displayName,r.status,r.link))}}const i=function(_,u){return{id:_,name:u}};function a(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-organization-tag",12),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("org",t.WLB(1,i,r.entityId,r.displayName))}}function s(_,u){if(1&_&&(t.TgZ(0,"span"),t._UZ(1,"cvc-molecular-profile-tag",13),t.qZA()),2&_){const r=t.oxw(2).$implicit;t.xp6(1),t.Q6J("molecularProfile",t.l5B(1,I,r.entityId,r.displayName,r.link,r.deprecated))}}function g(_,u){if(1&_&&(t.TgZ(0,"span")(1,"nz-tag"),t._UZ(2,"i",14),t._uU(3),t.qZA()()),2&_){const r=t.oxw(2).$implicit;t.xp6(2),t.MGl("nzType","civic-",r.displayName.slice(0,-1),""),t.xp6(1),t.hij(" ",r.displayName,"")}}function C(_,u){if(1&_&&(t.ynx(0)(1,4),t.YNc(2,F,2,6,"span",5),t.YNc(3,O,2,5,"span",5),t.YNc(4,D,2,6,"span",5),t.YNc(5,U,2,5,"span",5),t.YNc(6,v,2,6,"span",5),t.YNc(7,h,2,6,"span",5),t.YNc(8,a,2,4,"span",5),t.YNc(9,s,2,6,"span",5),t.YNc(10,g,4,2,"span",5),t.BQk()()),2&_){const r=t.oxw().$implicit;t.xp6(1),t.Q6J("ngSwitch",r.tagType),t.xp6(1),t.Q6J("ngSwitchCase","REVISION"),t.xp6(1),t.Q6J("ngSwitchCase","GENE"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT_GROUP"),t.xp6(1),t.Q6J("ngSwitchCase","EVIDENCE_ITEM"),t.xp6(1),t.Q6J("ngSwitchCase","ASSERTION"),t.xp6(1),t.Q6J("ngSwitchCase","ORGANIZATION"),t.xp6(1),t.Q6J("ngSwitchCase","MOLECULAR_PROFILE"),t.xp6(1),t.Q6J("ngSwitchCase","ROLE")}}function N(_,u){if(1&_&&(t.ynx(0),t.YNc(1,L,2,1,"ng-container",1),t.YNc(2,M,2,1,"ng-container",1),t.YNc(3,C,11,10,"ng-container",1),t.BQk()),2&_){const r=u.$implicit;t.xp6(1),t.Q6J("ngIf","CommentTextSegment"==r.__typename),t.xp6(1),t.Q6J("ngIf","User"==r.__typename),t.xp6(1),t.Q6J("ngIf","CommentTagSegment"==r.__typename)}}let Y=(()=>{class _{ngOnInit(){if(void 0===this.commentBodySegments)throw new Error("Must pass a list of comment body segments into comment body component.")}}return _.\u0275fac=function(r){return new(r||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["cvc-comment-body"]],inputs:{commentBodySegments:"commentBodySegments"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"innerHtml"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision"],[3,"gene"],[3,"variant"],[3,"variantgroup"],[3,"evidence"],[3,"assertion"],[3,"org"],[3,"molecularProfile"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(r,W){1&r&&t.YNc(0,N,4,3,"ng-container",0),2&r&&t.Q6J("ngForOf",W.commentBodySegments)},dependencies:[f.sg,f.O5,f.RF,f.n9,o.j,n.Ls,T.p,S.w,B.O,x.I,A.u,E.H,$.I,z.m,Z.p],encapsulation:2}),_})()},800:(K,Q,e)=>{e.d(Q,{D:()=>pn});var t=e(313),f=e(7398),o=e(4223),n=e(5879),T=e(6814),S=e(2840),B=e(855),x=e(95),A=e(2962),E=e(6976),$=e(551),z=e(6928),Z=e(2574),L=e(8645),M=e(9773),P=e(2024),F=e(951),R=e(7473),O=e(6223),I=e(1958),D=e(3599),U=e(2669),J=e(3903),v=e(4755),h=e(5805),i=e(2257),a=e(3764),s=e(1889);function g(c,d){if(1&c){const m=n.EpF();n.TgZ(0,"nz-alert",7),n.NdJ("nzOnClose",function(){n.CHM(m);const p=n.oxw();return n.KtG(p.onSuccessBannerClose())}),n.qZA()}}function C(c,d){if(1&c&&(n.TgZ(0,"nz-form-item"),n._UZ(1,"cvc-form-errors-alert",8),n.qZA()),2&c){const m=n.oxw();n.xp6(1),n.Q6J("errors",m.errorMessages)}}let N=(()=>{class c{constructor(m,l,p){this.viewerService=m,this.addCommentGql=l,this.networkErrorService=p,this.commentAddedEvent=new n.vpe,this.destroy$=new L.x,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,M.R)(this.destroy$)).subscribe(y=>{this.organizations=y.organizations,this.mostRecentOrg=y.mostRecentOrg}),this.addCommentMutator=new P.U(p)}selectOrg(m){this.mostRecentOrg=m}submitComment(){if(this.commentText){this.errorMessages=[];let l=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});l.submitSuccess$.pipe((0,M.R)(this.destroy$)).subscribe(p=>{p&&(this.resetForm(),this.success=!0)}),l.submitError$.pipe((0,M.R)(this.destroy$)).subscribe(p=>{p&&(this.errorMessages=p,this.success=!1)}),l.isSubmitting$.pipe((0,M.R)(this.destroy$)).subscribe(p=>{this.loading=p})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(m){return new(m||c)(n.Y36(F.a),n.Y36(t.iGM),n.Y36(R.Y))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:12,vars:6,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(m,l){1&m&&(n.TgZ(0,"nz-card"),n.YNc(1,g,1,0,"nz-alert",0),n.TgZ(2,"form",1),n.NdJ("ngSubmit",function(){return l.submitComment()}),n.YNc(3,C,2,1,"nz-form-item",2),n.TgZ(4,"cvc-comment-input-form",3),n.NdJ("commentChange",function(y){return l.commentText=y}),n.qZA(),n.TgZ(5,"nz-spin",4)(6,"nz-form-item")(7,"nz-form-control")(8,"cvc-form-buttons")(9,"cvc-org-selector-btn-group",5),n.NdJ("selectedOrgChange",function(y){return l.mostRecentOrg=y}),n.TgZ(10,"button",6),n._uU(11," Add Comment "),n.qZA()()()()()()()()),2&m&&(n.xp6(1),n.Q6J("ngIf",l.success),n.xp6(2),n.Q6J("ngIf",l.errorMessages.length>0),n.xp6(1),n.Q6J("comment",l.commentText),n.xp6(1),n.Q6J("nzSpinning",l.loading),n.xp6(4),n.Q6J("selectedOrg",l.mostRecentOrg),n.xp6(1),n.Q6J("disabled",l.loading||!(void 0!==l.commentText&&l.commentText.length>=10)))},dependencies:[T.O5,O._Y,O.JL,S.ix,B.w,I.dQ,A.bd,x.t3,x.SK,D.Lr,D.Nx,D.Fd,U.W,J.r,O.F,v.V,h.m,i.q,a.Z,s.b],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),c})();var Y=e(6794),_=e(1320),u=e(1834),r=e(5573);function W(c,d){if(1&c&&n._UZ(0,"nz-avatar",4),2&c){const m=n.oxw();n.Q6J("nzSrc",m.comment.commenter.profileImagePath)}}function G(c,d){1&c&&n._UZ(0,"nz-avatar",5)}let j=(()=>{class c{ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-display"]],inputs:{comment:"comment"},decls:7,vars:7,consts:[[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"commentBodySegments"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"]],template:function(m,l){if(1&m&&(n.TgZ(0,"nz-comment",0),n.ALo(1,"timeAgo"),n.YNc(2,W,1,1,"nz-avatar",1),n.YNc(3,G,1,0,"ng-template",null,2,n.W1O),n.TgZ(5,"nz-comment-content"),n._UZ(6,"cvc-comment-body",3),n.qZA()()),2&m){const p=n.MAs(4);n.Q6J("nzAuthor",l.comment.commenter.displayName)("nzDatetime",n.lcZ(1,5,l.comment.createdAt)),n.xp6(2),n.Q6J("ngIf",l.comment.commenter.profileImagePath)("ngIfElse",p),n.xp6(4),n.Q6J("commentBodySegments",l.comment.parsedComment)}},dependencies:[T.O5,_.WE,_.DA,_.Y4,z.Dz,u.m,r.x],encapsulation:2}),c})();var H=e(8091),V=e(6116);function b(c,d){if(1&c){const m=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){n.CHM(m);const p=n.oxw().ngIf,y=n.oxw(3);return n.KtG(y.onLoadMore(p.startCursor))}),n._uU(2," Load older comments "),n.qZA()()}}function X(c,d){if(1&c&&(n.TgZ(0,"nz-list-header"),n.YNc(1,b,3,0,"div",17),n.qZA()),2&c){const m=d.ngIf;n.xp6(1),n.Q6J("ngIf",m.hasPreviousPage)}}function q(c,d){if(1&c&&(n.TgZ(0,"nz-list-item"),n._UZ(1,"cvc-comment-display",20),n.qZA()),2&c){const m=d.$implicit;n.xp6(1),n.Q6J("comment",m)}}function k(c,d){if(1&c&&(n.TgZ(0,"nz-card",13)(1,"nz-list",14),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.YNc(4,X,2,1,"nz-list-header",15),n.ALo(5,"ngrxPush"),n.YNc(6,q,2,1,"ng-template",null,16,n.W1O),n.qZA()()),2&c){const m=n.MAs(7),l=n.oxw(2);n.xp6(1),n.Q6J("nzDataSource",n.lcZ(2,4,l.comments$))("nzLoading",n.lcZ(3,6,l.loading$))("nzRenderItem",m),n.xp6(3),n.Q6J("ngIf",n.lcZ(5,8,l.pageInfo$))}}function nn(c,d){if(1&c){const m=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){n.CHM(m);const p=n.oxw(2);return n.KtG(p.refreshList())}),n.qZA()}if(2&c){const m=n.oxw(2);n.Q6J("subject",m.commentable)}}function tn(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const m=n.oxw().$implicit;n.Q6J("nzSrc",m.profileImagePath)}}function en(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const m=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,m.displayName.charAt(0)))}}function on(c,d){if(1&c&&(n.YNc(0,tn,1,1,"nz-avatar",22),n.YNc(1,en,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const m=d.$implicit,l=n.MAs(2);n.Q6J("ngIf",m.profileImagePath)("ngIfElse",l),n.xp6(4),n.Oqu(m.displayName)}}function mn(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const m=n.oxw().$implicit;n.Q6J("nzSrc",m.profileImagePath)}}function cn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const m=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,m.displayName.charAt(0)))}}function an(c,d){if(1&c&&(n.YNc(0,mn,1,1,"nz-avatar",22),n.YNc(1,cn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const m=d.$implicit,l=n.MAs(2);n.Q6J("ngIf",m.profileImagePath)("ngIfElse",l),n.xp6(4),n.Oqu(m.displayName)}}function sn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",26),n.TgZ(1,"span"),n._uU(2),n.qZA()),2&c){const m=d.$implicit;n.MGl("nzIcon","civic-",m.tag.displayName,""),n.xp6(2),n.hij("",m.tag.displayName,"s")}}function rn(c,d){if(1&c&&(n._UZ(0,"i",27),n.ALo(1,"iconNameForSubscribableEntity"),n.TgZ(2,"span"),n._uU(3),n.qZA()),2&c){const m=d.$implicit;n.Q6J("nzType",n.lcZ(1,2,m.tag.tagType)),n.xp6(3),n.Oqu(m.tag.displayName)}}const w=function(){return[]};function _n(c,d){if(1&c){const m=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),n.YNc(4,k,8,10,"nz-card",5),n.YNc(5,nn,1,1,"cvc-comment-add-form",6),n.qZA()(),n.TgZ(6,"nz-col",7)(7,"cvc-participant-list",8),n.NdJ("participantSelectedEvent",function(p){n.CHM(m);const y=n.oxw();return n.KtG(y.onCommenterSelected(p))}),n.ALo(8,"ngrxPush"),n.YNc(9,on,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",10),n.NdJ("participantSelectedEvent",function(p){n.CHM(m);const y=n.oxw();return n.KtG(y.onMentionedUserSelected(p))}),n.ALo(12,"ngrxPush"),n.YNc(13,an,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(p){n.CHM(m);const y=n.oxw();return n.KtG(y.onMentionedRoleSelected(p))}),n.ALo(16,"ngrxPush"),n.YNc(17,sn,3,2,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(p){n.CHM(m);const y=n.oxw();return n.KtG(y.onMentionedEntitySelected(p))}),n.ALo(20,"ngrxPush"),n.YNc(21,rn,4,4,"ng-template",null,9,n.W1O),n.qZA()()(),n.BQk()}if(2&c){const m=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(6),n.Q6J("participantList",n.lcZ(8,5,m.commenters$)||n.DdM(13,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(12,7,m.mentionedUsers$)||n.DdM(14,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,9,m.mentionedRoles$)||n.DdM(15,w)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,11,m.mentionedEntities$)||n.DdM(16,w))}}function ln(c,d){if(1&c){const m=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){n.CHM(m);const p=n.oxw();return n.KtG(p.refreshList())}),n.qZA()}if(2&c){const m=n.oxw();n.Q6J("subject",m.commentable)}}let pn=(()=>{class c{constructor(m){this.gql=m,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:t.h01.Created,direction:t.SrV.Asc}});let m=this.queryRef$.valueChanges;this.pageInfo$=m.pipe((0,f.U)(({data:l})=>l.comments.pageInfo)),this.loading$=m.pipe((0,f.U)(({loading:l})=>l)),this.comments$=m.pipe((0,f.U)(({data:l})=>l.comments.edges.map(p=>p.node))),this.commenters$=m.pipe((0,f.U)(({data:l})=>l.comments.uniqueCommenters)),this.mentionedUsers$=m.pipe((0,f.U)(({data:l})=>l.comments.mentionedUsers)),this.mentionedRoles$=m.pipe((0,f.U)(({data:l})=>l.comments.mentionedRoles.map(p=>({id:`${p.entityId}-${p.tagType}`,tag:p})))),this.mentionedEntities$=m.pipe((0,f.U)(({data:l})=>l.comments.mentionedEntities.map(p=>({id:`${p.entityId}-${p.tagType}`,tag:p})))),this.unfilteredCount$=m.pipe((0,o.j)("data","comments","unfilteredCountForSubject"))}onLoadMore(m){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:m}})}onCommenterSelected(m){this.queryRef$.refetch({originatingUserId:m?.id})}onMentionedUserSelected(m){this.queryRef$.refetch({mentionedUserId:m?.id})}onMentionedRoleSelected(m){if(m){let l=t.i44[m.tag.displayName[0].toUpperCase()+m.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:l})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(m){this.queryRef$.refetch(m?{mentionedEntity:{entityType:m.tag.tagType,id:m.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}}return c.\u0275fac=function(m){return new(m||c)(n.Y36(t.iST))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noComments",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Commenters",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],[4,"ngIf"],["comment",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],[3,"comment"],["id","addComment",3,"subject","commentAddedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],[3,"nzIcon"],["nz-icon","",3,"nzType"]],template:function(m,l){if(1&m&&(n.YNc(0,_n,23,17,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,ln,1,1,"ng-template",null,1,n.W1O)),2&m){const p=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,l.unfilteredCount$))("ngIfElse",p)}},dependencies:[T.O5,S.ix,B.w,x.t3,x.SK,A.bd,E.n_,E.t4,E.AA,$.Ls,z.Dz,Z.NU,Z.$1,N,Y.l,j,T.gd,H.fM,V.j],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]}),c})()},1830:(K,Q,e)=>{e.d(Q,{l:()=>g});var t=e(6814),f=e(95),o=e(2962),n=e(6976),T=e(6928),S=e(2574),B=e(4139),x=e(1595),A=e(1320),E=e(4758),$=e(2524),z=e(5879);let Z=(()=>{class C{}return C.\u0275fac=function(Y){return new(Y||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,A.YM,T.Rt,E.m,$.s]}),C})();var L=e(6223),M=e(5545),P=e(3599),F=e(3394),R=e(6294),O=e(845),I=e(2840),D=e(9560),U=e(9382),J=e(2669),v=e(6513),h=e(3378),i=e(3903);let a=(()=>{class C{}return C.\u0275fac=function(Y){return new(Y||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,L.UX,I.sL,o.vh,U.we,P.U5,J.j,v.Gl,i.L,L.u5,M.X0,F.B,R.A,O.R,E.m,D.K,h.w]}),C})();var s=e(551);let g=(()=>{class C{}return C.\u0275fac=function(Y){return new(Y||C)},C.\u0275mod=z.oAB({type:C}),C.\u0275inj=z.cJS({imports:[t.ez,I.sL,f.Jb,o.vh,n.Ph,s.PV,$.s,T.Rt,S.zf,B.H0,a,x.N,Z]}),C})()},1889:(K,Q,e)=>{e.d(Q,{b:()=>J});var t=e(5879),f=e(8645),o=e(313),n=e(2181),T=e(9773),S=e(7398),B=e(7921),x=e(4223),A=e(5676),E=e(951),$=e(6814),z=e(6223),Z=e(8091),L=e(9382),M=e(2669),P=e(6513),F=e(1834);function R(v,h){if(1&v&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.BQk()),2&v){const i=h.$implicit;t.xp6(2),t.Oqu(i.displayName)}}function O(v,h){1&v&&(t.ynx(0),t._UZ(1,"nz-spin",8),t.BQk())}function I(v,h){if(1&v&&(t.ynx(0),t._UZ(1,"cvc-comment-body",9),t.BQk()),2&v){const i=h.ngIf;t.xp6(1),t.Q6J("commentBodySegments",i)}}const D=function(){return["#","@","$"]};function U(v,h){if(1&v){const i=t.EpF();t.ynx(0),t.TgZ(1,"nz-tabset",1)(2,"nz-tab",2)(3,"nz-mention",3),t.NdJ("nzOnSearchChange",function(s){t.CHM(i);const g=t.oxw();return t.KtG(g.onSearchChange(s))})("nzOnSelect",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.suggestions=[])}),t.TgZ(4,"textarea",4),t.NdJ("ngModelChange",function(s){t.CHM(i);const g=t.oxw();return t.KtG(g.commentText=s)})("ngModelChange",function(s){t.CHM(i);const g=t.oxw();return t.KtG(g.onCommentChanged(s))}),t.qZA(),t.YNc(5,R,3,1,"ng-container",5),t.qZA()(),t.TgZ(6,"nz-tab",6),t.NdJ("nzClick",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.onPreviewButtonClicked())}),t.YNc(7,O,2,0,"ng-container",7),t.ALo(8,"ngrxPush"),t.YNc(9,I,2,1,"ng-container",7),t.ALo(10,"ngrxPush"),t.qZA()(),t.BQk()}if(2&v){const i=h.ngrxLet,a=t.oxw();t.xp6(1),t.Q6J("nzAnimated",!1),t.xp6(2),t.Q6J("nzSuggestions",a.suggestions)("nzPrefix",t.DdM(13,D))("nzValueWith",a.autoCompleteValueFor),t.xp6(1),t.Q6J("placeholder",i&&i.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("ngModel",a.commentText),t.uIk("disabled",!i||!i.canCurate||null),t.xp6(3),t.Q6J("ngIf",t.lcZ(8,9,a.previewLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(10,11,a.previewComment$))}}let J=(()=>{class v{constructor(i,a,s,g){this.previewCommentGql=i,this.userTypeaheadGql=a,this.entityTypeaheadGql=s,this.viewerService=g,this.commentChange=new t.vpe,this.destroy$=new f.x,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,x.j)("data","userTypeahead"),(0,n.h)(A.ep),(0,T.R)(this.destroy$)).subscribe(i=>this.suggestions=i.map(a=>({displayName:a.username,value:a.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,x.j)("data","entityTypeahead"),(0,n.h)(A.ep),(0,T.R)(this.destroy$)).subscribe(i=>this.suggestions=i.map(a=>({displayName:a.displayName,value:this.tagForEntityTypeAndId(a.tagType,a.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(i){return i.value}tagForEntityTypeAndId(i,a){switch(i){case o.mpB.Gene:return`GID${a}`;case o.mpB.Variant:return`VID${a}`;case o.mpB.VariantGroup:return`VGID${a}`;case o.mpB.EvidenceItem:return`EID${a}`;case o.mpB.Assertion:return`AID${a}`;case o.mpB.Revision:return`RID${a}`;case o.mpB.MolecularProfile:return`MPID${a}`;case o.mpB.Role:return Object.keys(o.i44)[a]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,x.j)("data","previewCommentText"),(0,n.h)(A.ep)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,S.U)(({loading:i})=>i),(0,B.O)(!0)))}onSearchChange({value:i,prefix:a}){"@"===a?this.userTypeaheadQueryRef$.refetch({queryTerm:i}):"$"==a?this.suggestions=this.roleSuggestions.filter(s=>s.value.startsWith(i)):this.entityTypeaheadQueryRef$.refetch({queryTerm:i})}onCommentChanged(i){this.commentChange.emit(i)}}return v.\u0275fac=function(i){return new(i||v)(t.Y36(o.mII),t.Y36(o.vMt),t.Y36(o.GYx),t.Y36(E.a))},v.\u0275cmp=t.Xpm({type:v,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[t.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzSuggestions","nzPrefix","nzValueWith","nzOnSearchChange","nzOnSelect"],["nzMentionTrigger","","nz-input","","rows","4",2,"width","100%",3,"placeholder","ngModel","ngModelChange"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(i,a){1&i&&t.YNc(0,U,11,14,"ng-container",0),2&i&&t.Q6J("ngrxLet",a.viewer$)},dependencies:[$.O5,z.Fj,z.JJ,Z.eJ,L.xH,L.xw,M.W,P.YW,P.jO,P.O3,z.On,F.m,Z.fM],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),v})()},1320:(K,Q,e)=>{e.d(Q,{DA:()=>O,WE:()=>J,Y4:()=>I,YM:()=>h});var t=e(9388),f=e(6814),o=e(5879),n=e(8324),T=e(8484),S=e(8645),B=e(9773);function x(i,a){1&i&&o.Hsn(0)}const A=["*"];function E(i,a){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const s=o.oxw(2);o.xp6(1),o.Oqu(s.nzAuthor)}}function $(i,a){if(1&i&&(o.TgZ(0,"span",8),o.YNc(1,E,2,1,"ng-container",9),o.qZA()),2&i){const s=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",s.nzAuthor)}}function z(i,a){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const s=o.oxw(2);o.xp6(1),o.Oqu(s.nzDatetime)}}function Z(i,a){if(1&i&&(o.TgZ(0,"span",10),o.YNc(1,z,2,1,"ng-container",9),o.qZA()),2&i){const s=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",s.nzDatetime)}}function L(i,a){}function M(i,a){if(1&i&&(o.TgZ(0,"li")(1,"span"),o.YNc(2,L,0,0,"ng-template",13),o.qZA()()),2&i){const s=a.$implicit;o.xp6(2),o.Q6J("nzCommentActionHost",s.content)}}function P(i,a){if(1&i&&(o.TgZ(0,"ul",11),o.YNc(1,M,3,1,"li",12),o.qZA()),2&i){const s=o.oxw();o.xp6(1),o.Q6J("ngForOf",s.actions)}}const F=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],R=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];let O=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275dir=o.lG2({type:i,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]}),i})(),I=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275dir=o.lG2({type:i,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]}),i})(),D=(()=>{class i extends T.Pl{constructor(s,g){super(s,g)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}}return i.\u0275fac=function(s){return new(s||i)(o.Y36(o._Vd),o.Y36(o.s_b))},i.\u0275dir=o.lG2({type:i,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[o.qOj]}),i})(),U=(()=>{class i{get content(){return this.contentPortal}constructor(s){this.viewContainerRef=s,this.contentPortal=null}ngOnInit(){this.contentPortal=new T.UE(this.implicitContent,this.viewContainerRef)}}return i.\u0275fac=function(s){return new(s||i)(o.Y36(o.s_b))},i.\u0275cmp=o.Xpm({type:i,selectors:[["nz-comment-action"]],viewQuery:function(s,g){if(1&s&&o.Gf(o.Rgc,7),2&s){let C;o.iGM(C=o.CRH())&&(g.implicitContent=C.first)}},exportAs:["nzCommentAction"],ngContentSelectors:A,decls:1,vars:0,template:function(s,g){1&s&&(o.F$t(),o.YNc(0,x,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),i})(),J=(()=>{class i{constructor(s,g){this.cdr=s,this.directionality=g,this.dir="ltr",this.destroy$=new S.x}ngOnInit(){this.directionality.change?.pipe((0,B.R)(this.destroy$)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(s){return new(s||i)(o.Y36(o.sBO),o.Y36(t.Is,8))},i.\u0275cmp=o.Xpm({type:i,selectors:[["nz-comment"]],contentQueries:function(s,g,C){if(1&s&&o.Suo(C,U,4),2&s){let N;o.iGM(N=o.CRH())&&(g.actions=N)}},hostVars:4,hostBindings:function(s,g){2&s&&o.ekj("ant-comment",!0)("ant-comment-rtl","rtl"===g.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:R,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],["class","ant-comment-content-author-name",4,"ngIf"],["class","ant-comment-content-author-time",4,"ngIf"],["class","ant-comment-actions",4,"ngIf"],[1,"ant-comment-nested"],[1,"ant-comment-content-author-name"],[4,"nzStringTemplateOutlet"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[4,"ngFor","ngForOf"],[3,"nzCommentActionHost"]],template:function(s,g){1&s&&(o.F$t(F),o.TgZ(0,"div",0)(1,"div",1),o.Hsn(2),o.qZA(),o.TgZ(3,"div",2)(4,"div",3),o.YNc(5,$,2,1,"span",4),o.YNc(6,Z,2,1,"span",5),o.qZA(),o.Hsn(7,1),o.YNc(8,P,2,1,"ul",6),o.qZA()(),o.TgZ(9,"div",7),o.Hsn(10,2),o.qZA()),2&s&&(o.xp6(5),o.Q6J("ngIf",g.nzAuthor),o.xp6(1),o.Q6J("ngIf",g.nzDatetime),o.xp6(2),o.Q6J("ngIf",null==g.actions?null:g.actions.length))},dependencies:[f.sg,f.O5,n.f,D],encapsulation:2,changeDetection:0}),i})(),h=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[t.vT,f.ez,n.T]}),i})()}}]); \ No newline at end of file diff --git a/server/public/8479.bc64bfa439005be1.js b/server/public/8479.f4087bbc1be9f88a.js similarity index 99% rename from server/public/8479.bc64bfa439005be1.js rename to server/public/8479.f4087bbc1be9f88a.js index 0130d9936..d1a3d3298 100644 --- a/server/public/8479.bc64bfa439005be1.js +++ b/server/public/8479.f4087bbc1be9f88a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8479],{215:(U,m,o)=>{o.d(m,{m:()=>Y});var n=o(5879),l=o(6814),t=o(4190),h=o(5695),z=o(551),C=o(7417),f=o(5676),x=o(7398),y=o(2181),v=o(313),O=o(2962),g=o(95),M=o(8125),T=o(3317),b=o(7458),Z=o(8091);const A=function(a,p){return{displayName:a,profileImagePath:p}};function J(a,p){if(1&a&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&a){const i=n.oxw().ngIf;n.Q6J("user",n.WLB(2,A,i.name,i.profileImagePath)),n.xp6(2),n.Oqu(i.name)}}function Q(a,p){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const i=p.ngIf;n.xp6(1),n.Oqu(i)}}function w(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&a){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("href",i.url),n.xp6(1),n.hij(" ",i.name," ")}}function I(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",4),n.YNc(2,J,3,5,"ng-template",null,5,n.W1O),n.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),n.YNc(8,Q,2,1,"span",9),n.qZA()()()(),n.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),n.YNc(11,w,3,2,"ng-container",9),n.qZA()()(),n.BQk()),2&a){const i=p.ngIf,u=n.MAs(3);n.oxw();const S=n.MAs(4),L=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",u),n.xp6(7),n.Q6J("ngIf",i.description)("ngIfElse",S),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",i.url)("ngIfElse",L)}}function r(a,p){1&a&&n._uU(0," Organization has not provided a description.\n")}function d(a,p){1&a&&n._uU(0," -- ")}let e=(()=>{class a{constructor(i){this.gql=i}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:i})=>i?.organization),(0,y.h)(f.ep))}}return a.\u0275fac=function(i){return new(i||a)(n.Y36(v.X5f))},a.\u0275cmp=n.Xpm({type:a,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(i,u){1&i&&(n.TgZ(0,"div",0),n.YNc(1,I,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,r,1,0,"ng-template",null,2,n.W1O),n.YNc(5,d,1,0,"ng-template",null,3,n.W1O)),2&i&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,u.org$)))},dependencies:[l.O5,O.bd,g.t3,g.SK,M.R7,M.uj,T.l,b.L,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}"]}),a})();function s(a,p){}function c(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"a",4),n.YNc(2,s,0,0,"ng-template",5),n.qZA(),n.BQk()),2&a){const i=n.oxw(),u=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",i.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function P(a,p){}function E(a,p){if(1&a&&n._UZ(0,"cvc-organization-popover",9),2&a){const i=n.oxw(3);n.Q6J("orgId",i.org.id)}}function N(a,p){if(1&a&&n.YNc(0,E,1,1,"cvc-organization-popover",8),2&a){const i=n.oxw(2);n.Q6J("ngIf",i.enablePopover)}}function F(a,p){if(1&a&&(n.TgZ(0,"nz-tag",6),n.YNc(1,P,0,0,"ng-template",5),n.qZA(),n.YNc(2,N,1,1,"ng-template",null,7,n.W1O)),2&a){const i=n.MAs(3);n.oxw();const u=n.MAs(6);n.Q6J("nzPopoverContent",i),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function B(a,p){}function V(a,p){if(1&a&&n.YNc(0,B,0,0,"ng-template",5),2&a){n.oxw();const i=n.MAs(2);n.Q6J("ngTemplateOutlet",i)}}function _(a,p){if(1&a&&(n._UZ(0,"i",10),n._uU(1)),2&a){const i=n.oxw();n.xp6(1),n.hij(" ",i.org.name,"\n")}}let Y=(()=>{class a{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 a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(i,u){if(1&i&&(n.YNc(0,c,3,2,"ng-container",0),n.YNc(1,F,4,2,"ng-template",null,1,n.W1O),n.YNc(3,V,1,1,"ng-template",null,2,n.W1O),n.YNc(5,_,2,1,"ng-template",null,3,n.W1O)),2&i){const S=n.MAs(4);n.Q6J("ngIf",u.linked)("ngIfElse",S)}},dependencies:[l.O5,l.tP,t.rH,h.j,z.Ls,C.lU,e],styles:["[_nghost-%COMP%]{display:inline-block}"]}),a})()},3167:(U,m,o)=>{o.r(m),o.d(m,{CurationQueuesModule:()=>I});var n=o(6814),l=o(2419),t=o(4059),h=o(2524),z=o(95),C=o(551),f=o(6254),x=o(2574),y=o(2392),v=o(4190),O=o(313),g=o(5879),M=o(1826);let T=(()=>{class r{constructor(){this.status=O.m55.Submitted}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(e,s){1&e&&g._UZ(0,"cvc-assertions-table",0),2&e&&g.Q6J("status",s.status)},dependencies:[M.x],encapsulation:2}),r})();var b=o(6822);let Z=(()=>{class r{constructor(){this.status=O.m55.Submitted}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(e,s){1&e&&g._UZ(0,"cvc-evidence-table",0),2&e&&g.Q6J("status",s.status)},dependencies:[b.a],encapsulation:2}),r})();var A=o(4106);const Q=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(e,s){1&e&&g._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[A.O],encapsulation:2}),r})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:Z,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:T,data:{breadcrumb:"Pending Assertions"}}];let w=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=g.oAB({type:r}),r.\u0275inj=g.cJS({imports:[v.Bz.forChild(Q),v.Bz]}),r})(),I=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=g.oAB({type:r}),r.\u0275inj=g.cJS({imports:[n.ez,w,f.KJ,C.PV,x.zf,y.ZJ,z.Jb,l.D,t.c,h.s]}),r})()},6536:(U,m,o)=>{o.r(m),o.d(m,{CurationModule:()=>d});var n=o(6814),l=o(4190),t=o(5879),h=o(6254),z=o(551),C=o(2392),f=o(95),x=o(3145),y=o(5098),v=o(2616);const T=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(c,P){1&c&&t._UZ(0,"router-outlet")},dependencies:[l.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class e{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-activity-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-event",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(c,P){1&c&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Curation Event Timeline"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators. "),t.qZA()(),t._UZ(12,"nz-col",6),t.qZA(),t.TgZ(13,"nz-row")(14,"nz-col",7),t._UZ(15,"cvc-tab-navigation",8),t.qZA()(),t.TgZ(16,"nz-row")(17,"nz-col",7)(18,"div",9),t._UZ(19,"router-outlet"),t.qZA()()()()()),2&c&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"Event")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",P.tabs),t.xp6(2),t.Q6J("nzSpan",24))},dependencies:[l.lC,h.$O,h.u5,z.Ls,C.ZU,f.t3,f.SK,x.I,y.P,v.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{flex-wrap:nowrap;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})(),loadChildren:()=>Promise.all([o.e(2602),o.e(7856),o.e(1084)]).then(o.bind(o,5419)).then(e=>e.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class e{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-queues-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-queue",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(c,P){1&c&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Curation Queues"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation. "),t.qZA()(),t._UZ(12,"nz-col",6),t.qZA(),t.TgZ(13,"nz-row")(14,"nz-col",7),t._UZ(15,"cvc-tab-navigation",8),t.qZA()(),t.TgZ(16,"nz-row")(17,"nz-col",7)(18,"div",9),t._UZ(19,"router-outlet"),t.qZA()()()()()),2&c&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"Queue")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",P.tabs),t.xp6(2),t.Q6J("nzSpan",24))},dependencies:[l.lC,h.$O,h.u5,z.Ls,C.ZU,f.t3,f.SK,x.I,y.P,v.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{flex-wrap:nowrap;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})(),loadChildren:()=>Promise.resolve().then(o.bind(o,3167)).then(e=>e.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let b=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[l.Bz.forChild(T),l.Bz]}),e})();var Z=o(3167),A=o(5843);let J=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,A.W]}),e})();var Q=o(1403);let w=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,Q.Q]}),e})();var I=o(5895);let r=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,I.s]}),e})(),d=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,b,Z.CurationQueuesModule,J,w,r]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8479],{215:(U,m,o)=>{o.d(m,{m:()=>Y});var n=o(5879),l=o(6814),t=o(4190),h=o(5695),z=o(551),C=o(7417),f=o(5676),x=o(7398),y=o(2181),v=o(313),O=o(2962),g=o(95),M=o(8125),T=o(3317),b=o(7458),Z=o(8091);const A=function(a,p){return{displayName:a,profileImagePath:p}};function J(a,p){if(1&a&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&a){const i=n.oxw().ngIf;n.Q6J("user",n.WLB(2,A,i.name,i.profileImagePath)),n.xp6(2),n.Oqu(i.name)}}function Q(a,p){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const i=p.ngIf;n.xp6(1),n.Oqu(i)}}function w(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&a){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("href",i.url),n.xp6(1),n.hij(" ",i.name," ")}}function I(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",4),n.YNc(2,J,3,5,"ng-template",null,5,n.W1O),n.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),n.YNc(8,Q,2,1,"span",9),n.qZA()()()(),n.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),n.YNc(11,w,3,2,"ng-container",9),n.qZA()()(),n.BQk()),2&a){const i=p.ngIf,u=n.MAs(3);n.oxw();const S=n.MAs(4),L=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",u),n.xp6(7),n.Q6J("ngIf",i.description)("ngIfElse",S),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",i.url)("ngIfElse",L)}}function r(a,p){1&a&&n._uU(0," Organization has not provided a description.\n")}function d(a,p){1&a&&n._uU(0," -- ")}let e=(()=>{class a{constructor(i){this.gql=i}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:i})=>i?.organization),(0,y.h)(f.ep))}}return a.\u0275fac=function(i){return new(i||a)(n.Y36(v.X5f))},a.\u0275cmp=n.Xpm({type:a,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(i,u){1&i&&(n.TgZ(0,"div",0),n.YNc(1,I,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,r,1,0,"ng-template",null,2,n.W1O),n.YNc(5,d,1,0,"ng-template",null,3,n.W1O)),2&i&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,u.org$)))},dependencies:[l.O5,O.bd,g.t3,g.SK,M.R7,M.uj,T.l,b.L,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}"]}),a})();function s(a,p){}function c(a,p){if(1&a&&(n.ynx(0),n.TgZ(1,"a",4),n.YNc(2,s,0,0,"ng-template",5),n.qZA(),n.BQk()),2&a){const i=n.oxw(),u=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",i.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function P(a,p){}function E(a,p){if(1&a&&n._UZ(0,"cvc-organization-popover",9),2&a){const i=n.oxw(3);n.Q6J("orgId",i.org.id)}}function N(a,p){if(1&a&&n.YNc(0,E,1,1,"cvc-organization-popover",8),2&a){const i=n.oxw(2);n.Q6J("ngIf",i.enablePopover)}}function F(a,p){if(1&a&&(n.TgZ(0,"nz-tag",6),n.YNc(1,P,0,0,"ng-template",5),n.qZA(),n.YNc(2,N,1,1,"ng-template",null,7,n.W1O)),2&a){const i=n.MAs(3);n.oxw();const u=n.MAs(6);n.Q6J("nzPopoverContent",i),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function B(a,p){}function V(a,p){if(1&a&&n.YNc(0,B,0,0,"ng-template",5),2&a){n.oxw();const i=n.MAs(2);n.Q6J("ngTemplateOutlet",i)}}function _(a,p){if(1&a&&(n._UZ(0,"i",10),n._uU(1)),2&a){const i=n.oxw();n.xp6(1),n.hij(" ",i.org.name,"\n")}}let Y=(()=>{class a{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 a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["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(i,u){if(1&i&&(n.YNc(0,c,3,2,"ng-container",0),n.YNc(1,F,4,2,"ng-template",null,1,n.W1O),n.YNc(3,V,1,1,"ng-template",null,2,n.W1O),n.YNc(5,_,2,1,"ng-template",null,3,n.W1O)),2&i){const S=n.MAs(4);n.Q6J("ngIf",u.linked)("ngIfElse",S)}},dependencies:[l.O5,l.tP,t.rH,h.j,z.Ls,C.lU,e],styles:["[_nghost-%COMP%]{display:inline-block}"]}),a})()},3167:(U,m,o)=>{o.r(m),o.d(m,{CurationQueuesModule:()=>I});var n=o(6814),l=o(2419),t=o(4059),h=o(2524),z=o(95),C=o(551),f=o(6254),x=o(2574),y=o(2392),v=o(4190),O=o(313),g=o(5879),M=o(1826);let T=(()=>{class r{constructor(){this.status=O.m55.Submitted}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(e,s){1&e&&g._UZ(0,"cvc-assertions-table",0),2&e&&g.Q6J("status",s.status)},dependencies:[M.x],encapsulation:2}),r})();var b=o(6822);let Z=(()=>{class r{constructor(){this.status=O.m55.Submitted}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(e,s){1&e&&g._UZ(0,"cvc-evidence-table",0),2&e&&g.Q6J("status",s.status)},dependencies:[b.a],encapsulation:2}),r})();var A=o(6282);const Q=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=g.Xpm({type:r,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(e,s){1&e&&g._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[A.O],encapsulation:2}),r})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:Z,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:T,data:{breadcrumb:"Pending Assertions"}}];let w=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=g.oAB({type:r}),r.\u0275inj=g.cJS({imports:[v.Bz.forChild(Q),v.Bz]}),r})(),I=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=g.oAB({type:r}),r.\u0275inj=g.cJS({imports:[n.ez,w,f.KJ,C.PV,x.zf,y.ZJ,z.Jb,l.D,t.c,h.s]}),r})()},6536:(U,m,o)=>{o.r(m),o.d(m,{CurationModule:()=>d});var n=o(6814),l=o(4190),t=o(5879),h=o(6254),z=o(551),C=o(2392),f=o(95),x=o(3145),y=o(5098),v=o(2616);const T=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(c,P){1&c&&t._UZ(0,"router-outlet")},dependencies:[l.lC],encapsulation:2}),e})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class e{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-activity-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-event",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(c,P){1&c&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Curation Event Timeline"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators. "),t.qZA()(),t._UZ(12,"nz-col",6),t.qZA(),t.TgZ(13,"nz-row")(14,"nz-col",7),t._UZ(15,"cvc-tab-navigation",8),t.qZA()(),t.TgZ(16,"nz-row")(17,"nz-col",7)(18,"div",9),t._UZ(19,"router-outlet"),t.qZA()()()()()),2&c&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"Event")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",P.tabs),t.xp6(2),t.Q6J("nzSpan",24))},dependencies:[l.lC,h.$O,h.u5,z.Ls,C.ZU,f.t3,f.SK,x.I,y.P,v.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{flex-wrap:nowrap;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})(),loadChildren:()=>Promise.all([o.e(2602),o.e(7856),o.e(1084)]).then(o.bind(o,5419)).then(e=>e.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class e{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}}return e.\u0275fac=function(c){return new(c||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-curation-queues-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-queue",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(c,P){1&c&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Curation Queues"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation. "),t.qZA()(),t._UZ(12,"nz-col",6),t.qZA(),t.TgZ(13,"nz-row")(14,"nz-col",7),t._UZ(15,"cvc-tab-navigation",8),t.qZA()(),t.TgZ(16,"nz-row")(17,"nz-col",7)(18,"div",9),t._UZ(19,"router-outlet"),t.qZA()()()()()),2&c&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,5,"Queue")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",P.tabs),t.xp6(2),t.Q6J("nzSpan",24))},dependencies:[l.lC,h.$O,h.u5,z.Ls,C.ZU,f.t3,f.SK,x.I,y.P,v.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{flex-wrap:nowrap;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})(),loadChildren:()=>Promise.resolve().then(o.bind(o,3167)).then(e=>e.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let b=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[l.Bz.forChild(T),l.Bz]}),e})();var Z=o(3167),A=o(7240);let J=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,A.W]}),e})();var Q=o(1403);let w=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,Q.Q]}),e})();var I=o(5895);let r=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,I.s]}),e})(),d=(()=>{class e{}return e.\u0275fac=function(c){return new(c||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[n.ez,b,Z.CurationQueuesModule,J,w,r]}),e})()}}]); \ No newline at end of file diff --git a/server/public/8723.08c3d4e2c0590744.js b/server/public/8723.08c3d4e2c0590744.js new file mode 100644 index 000000000..ecf2c8698 --- /dev/null +++ b/server/public/8723.08c3d4e2c0590744.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8723],{684:(D,C,i)=>{i.d(C,{K:()=>g});var d=i(6814),y=i(5545),u=i(5879),f=i(6223),S=i(824);const b={name:"comment-textarea",component:(()=>{class p extends y.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,_)=>`Comments must be at least ${_.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return p.\u0275fac=function(){let z;return function(_){return(z||(z=u.n5z(p)))(_||p)}}(),p.\u0275cmp=u.Xpm({type:p,selectors:[["comment-textarea-type"]],features:[u.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&u._UZ(0,"textarea",0),2&h&&u.Q6J("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[f.Fj,f.JJ,f.oH,y.JD,S.Zp],encapsulation:2,changeDetection:0}),p})(),wrappers:["form-field"]};var T=i(3599),E=i(7459);let g=(()=>{class p{}return p.\u0275fac=function(h){return new(h||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[d.ez,f.UX,y.X0.forChild({types:[b]}),E.u,T.U5,S.o7]}),p})()},9814:(D,C,i)=>{i.r(C),i.d(C,{EvidenceDetailModule:()=>et});var d=i(6814),y=i(2419),u=i(2574),f=i(2392),S=i(5725),x=i(6254),b=i(2840),T=i(5695),E=i(551),g=i(4190),p=i(313),z=i(7921),h=i(9773),_=i(4223),Q=i(8645),w=i(5619),e=i(5879),O=i(951),A=i(8091),N=i(3903),M=i(855),r=i(1958),s=i(95),c=i(6109),m=i(3145),Z=i(327),Y=i(1801),V=i(8295),j=i(9700),$=i(4794),W=i(5098),G=i(1520),L=i(2606),K=i(2616);function X(n,o){if(1&n&&(e.TgZ(0,"span",8)(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 H(n,o){if(1&n&&(e.TgZ(0,"span",9),e._UZ(1,"cvc-molecular-profile-tag",10),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function q(n,o){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,X,4,1,"span",6),e.YNc(2,H,2,2,"span",7),e.qZA())}function ee(n,o){1&n&&(e.TgZ(0,"nz-tag",25),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const ne=function(n){return["/evidence",n,"revise"]};function te(n,o){if(1&n&&(e.TgZ(0,"button",27,28),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),a=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,ne,a.id))("nzType",t.isActive?"primary":"default")}}function ie(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,te,3,4,"button",26),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function oe(n,o){if(1&n&&(e.TgZ(0,"button",30,28),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function ae(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,3,1,"button",29),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ce(n,o){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",32),2&n){const t=e.oxw(2).ngrxLet,a=e.oxw(2);e.Q6J("viewer",t)("subscribableId",a.subscribable.id)}}function se(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ce,1,2,"cvc-entity-subscription-button",31),e.qZA()),2&n){const t=e.oxw().ngrxLet,a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&a.subscribable)}}function re(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",34),e.NdJ("onReverted",function(l){e.CHM(t);const v=e.oxw(4);return e.KtG(v.onRevertCompleted(l))}),e.qZA()}if(2&n){const t=e.oxw(3).ngIf;e.Q6J("entityId",t.id)}}function le(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,re,1,1,"cvc-revert-entity-button",33),e.qZA()),2&n){const t=e.oxw().ngrxLet,a=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=a.status)}}const pe=function(n){return{existingEvidenceId:n}};function de(n,o){if(1&n&&(e.TgZ(0,"button",36),e._UZ(1,"i",37),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.Q6J("queryParams",e.VKq(1,pe,t.id))}}function ge(n,o){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,de,2,3,"button",35),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.canCurate)}}function me(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",38),e.NdJ("nzOnClose",function(){const v=e.CHM(t).$implicit,P=e.oxw(3);return e.KtG(P.onErrorBannerClose(v))}),e.qZA()}2&n&&e.Q6J("nzMessage",o.$implicit)}function ue(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",39),e.NdJ("nzOnClose",function(){e.CHM(t);const l=e.oxw(3);return e.KtG(l.onSuccessBannerClose())}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function ve(n,o){1&n&&e._UZ(0,"nz-alert",40)}function _e(n,o){1&n&&e._UZ(0,"nz-alert",41)}function fe(n,o){if(1&n&&(e.TgZ(0,"nz-col",42),e._UZ(1,"cvc-contributor-avatars",43),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function ze(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"span")(1,"cvc-moderate-entity-buttons",45),e.NdJ("onModerated",function(l){e.CHM(t);const v=e.oxw(4);return e.KtG(v.onModerateCompleted(l))}),e.qZA()()}if(2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("entityId",t.id)}}function he(n,o){1&n&&e._UZ(0,"span")}function ye(n,o){1&n&&(e.TgZ(0,"nz-space",44),e.YNc(1,ze,2,1,"span",16),e.YNc(2,he,1,0,"span",16),e.qZA())}const xe=function(n){return{flagged:n}};function Te(n,o){if(1&n&&(e.TgZ(0,"nz-page-header",11)(1,"nz-page-header-title",12),e._UZ(2,"i",13),e.ALo(3,"entityColor"),e._uU(4),e.qZA(),e.TgZ(5,"nz-page-header-tags"),e.YNc(6,ee,2,1,"nz-tag",14),e.qZA(),e.TgZ(7,"nz-page-header-extra")(8,"nz-space",15),e.YNc(9,ie,2,1,"span",16),e.YNc(10,ae,2,1,"span",16),e.YNc(11,se,2,1,"span",16),e.YNc(12,le,2,1,"span",16),e.YNc(13,ge,2,1,"span",16),e.qZA()(),e.TgZ(14,"nz-page-header-content"),e.YNc(15,me,1,1,"nz-alert",17),e.YNc(16,ue,1,1,"nz-alert",18),e.YNc(17,ve,1,0,"nz-alert",19),e.YNc(18,_e,1,0,"nz-alert",20),e.TgZ(19,"cvc-tab-navigation",21),e.ALo(20,"ngrxPush"),e.YNc(21,fe,2,1,"ng-template",null,22,e.W1O),e.qZA(),e.YNc(23,ye,3,0,"nz-space",23),e.TgZ(24,"div",24),e._UZ(25,"router-outlet"),e.qZA()()()),2&n){const t=o.ngrxLet,a=e.oxw().ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(14,xe,a.flags.totalCount>0)),e.xp6(1),e.Q6J("nzTwotoneColor",e.lcZ(3,10,"EvidenceItem")),e.xp6(2),e.hij(" ",a.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(9),e.Q6J("ngForOf",l.errors),e.xp6(1),e.Q6J("ngIf",l.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==a.status),e.xp6(1),e.Q6J("ngIf","REJECTED"==a.status),e.xp6(1),e.Q6J("tabs",e.lcZ(20,12,l.tabs$)),e.xp6(4),e.Q6J("ngIf",(t.canModerate||t.signedIn&&t.id==(null==a.submissionEvent||null==a.submissionEvent.originatingUser?null:a.submissionEvent.originatingUser.id))&&"SUBMITTED"==a.status)}}function Ee(n,o){if(1&n&&(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,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,Te,26,16,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=o.ngIf,a=e.MAs(3),l=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",a),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,l.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",l.viewer$)}}let Ce=(()=>{class n{constructor(t,a,l){this.gql=t,this.viewerService=a,this.route=l,this.errors=[],this.destroy$=new Q.x,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 w.X(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(v=>{this.queryRef=this.gql.watch({evidenceId:+v.evidenceId});let P=this.queryRef.valueChanges;this.loading$=P.pipe((0,_.j)("loading"),(0,z.O)(!0)),this.evidence$=P.pipe((0,_.j)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,_.j)("flags","totalCount")),this.evidence$.pipe((0,h.R)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(I=>"Revisions"===I.tabLabel?{badgeCount:R?.revisions.totalCount,...I}:"Comments"===I.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...I}:I))}}),this.subscribable={id:+v.evidenceId,entityType:p.o71.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,this.queryRef?.refetch())}onErrorBannerClose(t){this.errors=this.errors?.filter(a=>a!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(p.pHu),e.Y36(O.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,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[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"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical",4,"ngIf"],[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,"entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","onReverted"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams"],["nz-icon","","nzType","copy"],["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"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","EvidenceItem",3,"entityId","onModerated"]],template:function(t,a){1&t&&(e.YNc(0,Ee,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},dependencies:[d.mk,d.sg,d.O5,g.lC,g.rH,g.Od,A.eJ,N.r,b.ix,M.w,r.dQ,s.t3,E.Ls,T.j,x.$O,x.u9,x.u5,x.ZJ,x.Jp,u.NU,u.$1,f.ZU,c.SY,m.I,Z.o,Y.Y,V.Q,j.m,$.e,W.P,G.N,L.p,A.fM,K.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{flex-wrap:nowrap;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 Se=i(1260);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Se.l]}),n})();var Ie=i(5565);let Ae=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.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,a){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",a.commentable)},dependencies:[Ie.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ze=i(2962),Pe=i(4139),Ne=i(7937);let Me=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,s.Jb,Ze.vh,u.zf,Pe.H0,Ne.M]}),n})();var Je=i(4385);let De=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.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,a){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",a.flaggable)},dependencies:[Je.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Qe=i(2534);let we=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Qe.A]}),n})();var Oe=i(6126);let Le=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.eid=+a.evidenceId,this.entityType=p.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,a){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",a.eid)("entityType",a.entityType)},dependencies:[Oe.a],encapsulation:2}),n})();var Ue=i(5895),ke=i(4605),Be=i(3396),Fe=i(7525),Re=i(9858),U=i(8527),Ye=i(3043),Ve=i(7364),je=i(2655),$e=i(366),We=i(8641),Ge=i(6061),Ke=i(8706),k=i(2524),J=i(8125),Xe=i(8916);let He=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,g.Bz,s.Jb,u.zf,f.ZJ,b.sL,T.X,E.PV,J.q6,c.cg,Xe.M,k.s,Fe.h,Be.Q,je.x,$e.$,Ke.W,ke.N,We.s,Ye.y,Ge.N,Ue.s,Ve._,U.u,Re.r]}),n})();var qe=i(9183);function en(n,o){1&n&&e._UZ(0,"i",4)}function nn(n,o){1&n&&e._UZ(0,"i",5)}function tn(n,o){if(1&n&&(e.ynx(0),e.YNc(1,en,1,0,"i",2),e.YNc(2,nn,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 on(n,o){1&n&&e._uU(0," -- ")}let an=(()=>{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,a){if(1&t&&(e.YNc(0,tn,3,2,"ng-container",0),e.YNc(1,on,1,0,"ng-template",null,1,e.W1O)),2&t){const l=e.MAs(2);e.Q6J("ngIf",a.starRating)("ngIfElse",l)}},dependencies:[d.sg,d.O5,E.Ls],encapsulation:2}),n})();var cn=i(9775),sn=i(2384),rn=i(1887),ln=i(356),pn=i(3369),dn=i(4138),gn=i(3897),mn=i(4770),un=i(1826),vn=i(8923),_n=i(5095),fn=i(8004),zn=i(5573);function hn(n,o){if(1&n&&(e._UZ(0,"cvc-attribute-tag",15),e.ALo(1,"enumTooltip")),2&n){const t=e.oxw().ngIf;e.Q6J("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.gM2(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function yn(n,o){if(1&n&&(e._UZ(0,"cvc-attribute-tag",15),e.ALo(1,"enumTooltip")),2&n){const t=e.oxw().ngIf;e.Q6J("cvcAttrValue",t.significance)("nzTooltipTitle",e.gM2(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function xn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",40),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function Tn(n,o){if(1&n&&(e.ynx(0),e.YNc(1,xn,2,1,"ng-container",39),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function En(n,o){if(1&n&&(e._uU(0," Submitted "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.submissionEvent.createdAt),") ")}}function Cn(n,o){if(1&n&&(e._uU(0," Accepted "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.acceptanceEvent.createdAt),") ")}}function Sn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",22),e._uU(2," by "),e._UZ(3,"cvc-user-tag",27),e.qZA(),e.YNc(4,Cn,4,3,"ng-template",null,42,e.W1O),e.BQk()),2&n){const t=e.MAs(5),a=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(2),e.Q6J("user",a.acceptanceEvent.originatingUser)}}function bn(n,o){if(1&n&&(e._uU(0," Rejected "),e.TgZ(1,"span",41),e._uU(2),e.ALo(3,"timeAgo"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.hij(" (",e.lcZ(3,1,t.rejectionEvent.createdAt),") ")}}function In(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",43),e._uU(2," by "),e._UZ(3,"cvc-user-tag",27),e.qZA(),e.YNc(4,bn,4,3,"ng-template",null,44,e.W1O),e.BQk()),2&n){const t=e.oxw(2).ngIf;e.xp6(3),e.Q6J("user",t.rejectionEvent.originatingUser)}}function An(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Sn,6,2,"ng-container",0),e.YNc(2,In,6,1,"ng-container",0),e.BQk()),2&n){const t=e.oxw().ngIf,a=e.oxw();e.xp6(1),e.Q6J("ngIf",t.status==a.statusValues.Accepted&&t.acceptanceEvent),e.xp6(1),e.Q6J("ngIf",t.status==a.statusValues.Rejected&&t.rejectionEvent)}}function Zn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"a",45),e._UZ(2,"cvc-disease-tag",46),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function Pn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",47),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function Nn(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,Pn,2,1,"ng-container",39),e.qZA(),e.BQk()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function Mn(n,o){if(1&n&&e.GkF(0,48),2&n){e.oxw(2);const t=e.MAs(3);e.Q6J("ngTemplateOutlet",t)}}function Jn(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-therapy-tag",49),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("therapy",t)}}function Dn(n,o){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Jn,2,1,"ng-container",39),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.therapies)}}function Qn(n,o){if(1&n&&(e.TgZ(0,"nz-descriptions-item",50),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.therapyInteractionType)," ")}}const wn=function(){return[8,16]},B=function(){return[8,8]},On=function(){return{xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}},F=function(){return{xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}},Ln=function(){return{xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}};function Un(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-row",3)(2,"nz-col",4)(3,"nz-row",3)(4,"nz-col",4)(5,"nz-descriptions",5)(6,"nz-descriptions-item",6)(7,"p",7),e._uU(8),e.qZA()()()(),e.TgZ(9,"nz-col",4)(10,"nz-descriptions",8)(11,"nz-descriptions-item",9),e._UZ(12,"cvc-attribute-tag",10),e.ALo(13,"enumTooltip"),e.qZA(),e.TgZ(14,"nz-descriptions-item",11),e.YNc(15,hn,2,7,"cvc-attribute-tag",12),e.qZA(),e.TgZ(16,"nz-descriptions-item",13),e.YNc(17,yn,2,7,"cvc-attribute-tag",12),e.qZA(),e.TgZ(18,"nz-descriptions-item",14),e._UZ(19,"cvc-attribute-tag",15),e.ALo(20,"enumTooltip"),e.qZA(),e.TgZ(21,"nz-descriptions-item",16)(22,"nz-tag",17),e.ALo(23,"enumTooltip"),e.TgZ(24,"strong"),e._uU(25),e.qZA(),e._uU(26),e.ALo(27,"enumTooltip"),e.qZA()(),e.TgZ(28,"nz-descriptions-item",18)(29,"nz-tag",17),e.ALo(30,"enumTooltip"),e._UZ(31,"cvc-evidence-rating",19),e.qZA()()()(),e.TgZ(32,"nz-col",4)(33,"nz-descriptions",8)(34,"nz-descriptions-item",20),e._UZ(35,"cvc-source-tag",21),e.qZA(),e.TgZ(36,"nz-descriptions-item",22),e.YNc(37,Tn,2,1,"ng-container",23),e.qZA()()()()(),e.TgZ(38,"nz-col",4)(39,"nz-row",3)(40,"nz-col",4)(41,"nz-descriptions",24)(42,"nz-descriptions-item",25),e._UZ(43,"cvc-status-tag",26),e.qZA(),e.TgZ(44,"nz-descriptions-item",22),e._uU(45," by "),e._UZ(46,"cvc-user-tag",27),e.qZA(),e.YNc(47,En,4,3,"ng-template",null,28,e.W1O),e.YNc(49,An,3,2,"ng-container",0),e.qZA()(),e.TgZ(50,"nz-col",4)(51,"nz-descriptions",8)(52,"nz-descriptions-item",29),e._UZ(53,"cvc-molecular-profile-tag",30),e.qZA(),e.TgZ(54,"nz-descriptions-item",31),e._UZ(55,"cvc-mp-tag-name",32),e.qZA(),e.TgZ(56,"nz-descriptions-item",33),e.YNc(57,Zn,3,2,"ng-container",23),e.qZA(),e.TgZ(58,"nz-descriptions-item",22),e.YNc(59,Nn,3,1,"ng-container",23),e.qZA(),e.TgZ(60,"nz-descriptions-item",22),e.ynx(61,34),e.YNc(62,Mn,1,1,"ng-template",35),e.YNc(63,Dn,2,1,"ng-template",36),e.BQk(),e.qZA(),e.YNc(64,Qn,3,3,"nz-descriptions-item",37),e.qZA()()()(),e.TgZ(65,"nz-col",4),e._UZ(66,"cvc-assertions-table",38),e.qZA()(),e.BQk()),2&n){const t=o.ngIf,a=e.MAs(48);e.oxw();const l=e.MAs(3),v=e.MAs(5);e.xp6(1),e.Q6J("nzGutter",e.DdM(66,wn)),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(67,B)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.hij(" ",t.description," "),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(68,On)),e.xp6(2),e.Q6J("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.xi3(13,51,t.evidenceType,"evidenceType")),e.xp6(3),e.Q6J("ngIf","NA"!==t.evidenceDirection)("ngIfElse",l),e.xp6(2),e.Q6J("ngIf","NA"!==t.significance)("ngIfElse",l),e.xp6(2),e.Q6J("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.xi3(20,54,t.variantOrigin,"variantOrigin")),e.xp6(3),e.Q6J("nzTooltipTitle",e.xi3(23,57,t.evidenceLevel,"evidenceLevel")),e.xp6(3),e.Oqu(t.evidenceLevel),e.xp6(1),e.hij(" - ",e.xi3(27,60,t.evidenceLevel,"evidenceLevelBrief")," "),e.xp6(3),e.Q6J("nzTooltipTitle",e.xi3(30,63,t.evidenceRating,"evidenceRating")),e.xp6(2),e.Q6J("starRating",t.evidenceRating),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(69,F)),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",v),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(1),e.Q6J("nzGutter",e.DdM(70,B)),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(71,Ln)),e.xp6(2),e.Q6J("status",t.status),e.xp6(1),e.Q6J("nzTitle",a),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(3),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.Q6J("nzColumn",e.DdM(72,F)),e.xp6(2),e.Q6J("molecularProfile",t.molecularProfile)("enablePopover",!0),e.xp6(2),e.Q6J("nameSegments",t.molecularProfile.parsedName),e.xp6(2),e.Q6J("ngIf",t.disease)("ngIfElse",l),e.xp6(1),e.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",t.phenotypes.length>0)("ngIfElse",v),e.xp6(1),e.Q6J("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.xp6(1),e.Q6J("ngPlural",t.therapies.length),e.xp6(3),e.Q6J("ngIf",t.therapyInteractionType),e.xp6(1),e.Q6J("nzSpan",24),e.xp6(1),e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function kn(n,o){1&n&&e._UZ(0,"cvc-empty-value",51)}function Bn(n,o){1&n&&e._UZ(0,"cvc-empty-value",52)}let Fn=(()=>{class n{constructor(t,a){var l;if(this.gql=t,this.route=a,this.statusValues=p.RTy,null==(l=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:l});let v=this.queryRef.valueChanges;this.loading$=v.pipe((0,_.j)("loading"),(0,z.O)(!0)),this.evidence$=v.pipe((0,_.j)("data","evidenceItem")),this.subscribable={entityType:p.o71.EvidenceItem,id:l}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(p.sBY),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[[4,"ngIf"],["valueNotApplicable",""],["valueUnspecified",""],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Statement"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","evidenceType","nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle",4,"ngIf","ngIfElse"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Level"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","Rating"],[3,"starRating"],["nzTitle","Source"],[3,"source"],[3,"nzTitle"],[4,"ngIf","ngIfElse"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Status"],[3,"status"],[3,"user"],["submittedTitle",""],["nzTitle","Molecular Profile"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],[3,"evidenceId","cvcTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["acceptedTitle",""],["nzTitle","Rejected"],["rejectedTitle",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(t,a){1&t&&(e.YNc(0,Un,67,73,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,kn,1,0,"ng-template",null,1,e.W1O),e.YNc(4,Bn,1,0,"ng-template",null,2,e.W1O)),2&t&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},dependencies:[d.sg,d.O5,d.tP,d.iq,d.zE,g.rH,s.t3,s.SK,f.ZU,T.j,J.R7,J.uj,c.SY,qe.P,an,cn.n,sn.h,rn.$,ln.I,pn.G,dn.T,gn.i,mn.T,un.x,vn.z,L.p,_n.C,d.rS,A.fM,fn.v,zn.x],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]}),n})();var Rn=i(7441);let Yn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:p.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,a){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",a.subscribable)},dependencies:[Rn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Vn=i(9894);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Vn.t]}),n})();const $n=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Fn,data:{breadcrumb:"Summary"}},{path:"comments",component:Ae,data:{breadcrumb:"Comments"}},{path:"revisions",component:Le,data:{breadcrumb:"Revisions"}},{path:"flags",component:De,data:{breadcrumb:"Flags"}},{path:"events",component:Yn,data:{breadcrumb:"Events"}}]}];let Wn=(()=>{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($n),He,be,we,Me,jn,g.Bz]}),n})();var Gn=i(7129),Kn=i(3786),Xn=i(451),Hn=i(4059),qn=i(936);let et=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[d.ez,Wn,N.L,b.sL,s.Jb,E.PV,T.X,x.KJ,u.zf,f.ZJ,c.cg,y.D,S.m,Gn.g,S.m,Xn.P,k.s,Kn.G,y.D,Hn.c,qn.Z,U.u]}),n})()},4139:(D,C,i)=>{i.d(C,{H0:()=>M});var d=i(5879),y=i(6814),u=i(9388);let M=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=d.oAB({type:r}),r.\u0275inj=d.cJS({imports:[u.vT,y.ez]}),r})()}}]); \ No newline at end of file diff --git a/server/public/7129.d41870c75dd1c100.js b/server/public/8894.88971826d90f8e5c.js similarity index 74% rename from server/public/7129.d41870c75dd1c100.js rename to server/public/8894.88971826d90f8e5c.js index 86673622e..d19b1706f 100644 --- a/server/public/7129.d41870c75dd1c100.js +++ b/server/public/8894.88971826d90f8e5c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7129],{1218:(M,v,e)=>{e.d(v,{i:()=>_});var s=e(6814),c=e(4190),u=e(5695),a=e(7417),o=e(551),t=e(1855),d=e(2524),p=e(3640),g=e(3146),f=e(5879);let _=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=f.oAB({type:n}),n.\u0275inj=f.cJS({imports:[s.ez,c.Bz,p.mS,u.X,a.$6,o.PV,t.f,d.s,g.C]}),n})()},1106:(M,v,e)=>{e.d(v,{L:()=>i});var s=e(6814),c=e(4190),u=e(5695),a=e(551),o=e(95),t=e(6067),d=e(8125),p=e(2962),g=e(1022),f=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[s.ez,p.vh,o.Jb,d.q6,t.X,g.H]}),r})();var n=e(7417);let i=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[s.ez,c.Bz,u.X,a.PV,n.$6,_]}),r})()},7950:(M,v,e)=>{e.d(v,{x:()=>n});var s=e(6814),c=e(366),u=e(5695),a=e(7417),o=e(3396),t=e(1106),d=e(5956),p=e(7528),g=e(6061),f=e(3717),_=e(5879);let n=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[s.ez,u.X,a.$6,c.$,g.N,o.Q,t.L,d.U,p.Q,f.M]}),i})()},3717:(M,v,e)=>{e.d(v,{M:()=>n});var s=e(6814),c=e(4190),u=e(5695),a=e(2962),o=e(6067),t=e(8125),d=e(551),p=e(2524),g=e(5879);let f=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=g.oAB({type:i}),i.\u0275inj=g.cJS({imports:[s.ez,d.PV,a.vh,t.q6,p.s,o.X]}),i})();var _=e(7417);let n=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=g.oAB({type:i}),i.\u0275inj=g.cJS({imports:[s.ez,c.Bz,d.PV,u.X,_.$6,f]}),i})()},4010:(M,v,e)=>{e.d(v,{F:()=>u});var c=e(5879);let u=(()=>{class a{transform(t,d="display-string"){return void 0===t?"":"display-string"===d?function s(a){switch(a){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return a}}(t):`civic-${t.replace(/_/g,"").toLowerCase()}`}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275pipe=c.Yjl({name:"therapyInteractionEnumDisplay",type:a,pure:!0}),a})()},4263:(M,v,e)=>{e.d(v,{G:()=>h});var s=e(655),c=e(6223),u=e(2024),a=e(5710),o=e(1791);const f=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Revisions",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Assertion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}},{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",type:"direction-select",props:{required:!0,colSpan:8,formMode:"revise"}},{key:"significance",type:"significance-select",props:{required:!0,colSpan:8,formMode:"revise"}},{key:"diseaseId",type:"disease-select",props:{colSpan:8}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{colSpan:8}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{colSpan:8}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{colSpan:8}},{key:"nccnGuidelineId",type:"nccn-guideline-select",props:{}},{key:"nccnGuidelineVersion",type:"nccn-guideline-version-input",props:{}},{key:"fdaRegulatoryApproval",type:"fda-regulatory-approval-checkbox",props:{}},{key:"fdaCompanionTest",type:"fda-companion-test-checkbox",props:{}},{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0,colSpan:24}},{key:"summary",type:"textarea",wrappers:["form-field"],props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"A complete, original description of this Assertion. Limited to one paragraph.",placeholder:"Enter an Assertion Statement",label:"Assertion Statement",required:!0,rows:5,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},comment:void 0,organizationId:void 0});var C,_=e(5234),n=e(5879),i=e(313),r=e(7473),y=e(6814),P=e(3599),O=e(5545),A=e(4634);function D(I,m){if(1&I&&(n._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),n.TgZ(1,"a",4),n._uU(2,"here."),n.qZA()),2&I){const l=n.oxw();n.xp6(1),n.s9C("href",l.url,n.LSH)}}function R(I,m){if(1&I){const l=n.EpF();n.TgZ(0,"form",5),n.NdJ("ngSubmit",function(){n.CHM(l);const E=n.oxw();return n.KtG(E.onSubmit(E.model))}),n.TgZ(1,"formly-form",6),n.NdJ("modelChange",function(E){n.CHM(l);const z=n.oxw();return n.KtG(z.model=E)}),n.qZA()()}if(2&I){const l=n.oxw();n.Q6J("formGroup",l.form),n.xp6(1),n.Q6J("form",l.form)("fields",l.fields)("model",l.model)("options",l.options)}}function L(I,m){1&I&&n._uU(0," Loading Assertion... ")}let h=((C=class{constructor(m,l,T,E){this.revisableFieldsGQL=m,this.submitRevisionsGQL=l,this.networkErrorService=T,this.cdr=E,this.form=new c.nJ({}),this.fields=f,this.state=new a._,this.options={formState:this.state},this.reviseAssertionMutator=new u.U(T)}onSubmit(m){if(!this.assertionId)return;let l=(0,_.lf)(this.assertionId,m);l&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:l}))}ngOnInit(){this.url=`/assertions/${this.assertionId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).pipe((0,o.t)(this)).subscribe({next:({data:{assertion:m}})=>{m&&(this.model={id:m.id,fields:(0,_.FX)(m)},this.cdr.detectChanges())},error:m=>{console.log("Error retrieving Assertion"),console.log(m)},complete:()=>{this.state.formReady$.next(!0)}})}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(m){return new(m||C)(n.Y36(i.bgg),n.Y36(i.c$m),n.Y36(r.Y),n.Y36(n.sBO))},C.\u0275cmp=n.Xpm({type:C,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:6,vars:5,consts:[["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(m,l){if(1&m&&(n.TgZ(0,"cvc-form-submission-status-display",0),n.YNc(1,D,3,1,"ng-template",null,1,n.W1O),n.YNc(3,R,2,5,"form",2),n.YNc(4,L,1,0,"ng-template",null,3,n.W1O),n.qZA()),2&m){const T=n.MAs(2),E=n.MAs(5);n.Q6J("mutationState",l.mutationState)("successMessage",T)("redirectUrl",l.url),n.xp6(3),n.Q6J("ngIf",l.model)("ngIfElse",E)}},dependencies:[y.O5,P.Lr,c._Y,c.JL,c.sg,O.T7,A.F],encapsulation:2,changeDetection:0}),C);h=(0,s.gn)([(0,o.c)()],h)},6902:(M,v,e)=>{e.d(v,{P:()=>d});var s=e(6814),c=e(3599),u=e(2840),a=e(6683),o=e(5106),t=e(5879);let d=(()=>{class p{}return p.\u0275fac=function(f){return new(f||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[s.ez,c.U5,u.sL,a.S,o.g]}),p})()},5234:(M,v,e)=>{e.d(v,{FX:()=>c,XU:()=>u,lf:()=>a});var s=e(2701);function c(o){return{acmgCodeIds:o.acmgCodes.map(t=>t.id),ampLevel:o.ampLevel,assertionDirection:o.assertionDirection,assertionType:o.assertionType,clingenCodeIds:o.clingenCodes.map(t=>t.id),significance:o.significance,description:o.description,diseaseId:o.disease?.id,therapyIds:o.therapies.map(t=>t.id),therapyInteractionType:o.therapyInteractionType,evidenceItemIds:o.evidenceItems.map(t=>t.id),fdaCompanionTest:o.fdaCompanionTest,fdaRegulatoryApproval:o.regulatoryApproval,molecularProfileId:o.molecularProfile.id,nccnGuidelineId:o.nccnGuideline?.id,nccnGuidelineVersion:o.nccnGuidelineVersion,phenotypeIds:o.phenotypes.map(t=>t.id),summary:o.summary,variantOrigin:o.variantOrigin}}function u(o){const t=o.fields;if(![t.assertionDirection,t.assertionType,t.significance,t.variantOrigin,t.molecularProfileId,o.comment].find(p=>void 0===p))return{fields:{acmgCodeIds:t.acmgCodeIds||[],ampLevel:s.uP(t.ampLevel),assertionDirection:t.assertionDirection,assertionType:t.assertionType,clingenCodeIds:t.clingenCodeIds||[],significance:t.significance,description:s.xt(t.description),diseaseId:s.uP(t.diseaseId),therapyIds:t.therapyIds||[],therapyInteractionType:s.uP(t.therapyInteractionType),evidenceItemIds:t.evidenceItemIds||[],fdaCompanionTest:s.uP(t.fdaCompanionTest),fdaRegulatoryApproval:s.uP(t.fdaRegulatoryApproval),molecularProfileId:t.molecularProfileId,nccnGuidelineId:s.uP(t.nccnGuidelineId),nccnGuidelineVersion:s.xt(t.nccnGuidelineVersion),phenotypeIds:t.phenotypeIds||[],summary:s.xt(t.summary),variantOrigin:t.variantOrigin},organizationId:o.organizationId,comment:o.comment}}function a(o,t){let d=u(t);if(d)return{id:o,comment:d.comment,organizationId:d.organizationId,fields:d.fields}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8894],{1218:(M,v,e)=>{e.d(v,{i:()=>_});var s=e(6814),c=e(4190),u=e(5695),a=e(7417),o=e(551),t=e(1855),d=e(2524),p=e(3640),g=e(3146),f=e(5879);let _=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=f.oAB({type:n}),n.\u0275inj=f.cJS({imports:[s.ez,c.Bz,p.mS,u.X,a.$6,o.PV,t.f,d.s,g.C]}),n})()},1106:(M,v,e)=>{e.d(v,{L:()=>i});var s=e(6814),c=e(4190),u=e(5695),a=e(551),o=e(95),t=e(6067),d=e(8125),p=e(2962),g=e(4293),f=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[s.ez,p.vh,o.Jb,d.q6,t.X,g.H]}),r})();var n=e(7417);let i=(()=>{class r{}return r.\u0275fac=function(P){return new(P||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[s.ez,c.Bz,u.X,a.PV,n.$6,_]}),r})()},7950:(M,v,e)=>{e.d(v,{x:()=>n});var s=e(6814),c=e(366),u=e(5695),a=e(7417),o=e(3396),t=e(1106),d=e(5956),p=e(7528),g=e(6061),f=e(3717),_=e(5879);let n=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[s.ez,u.X,a.$6,c.$,g.N,o.Q,t.L,d.U,p.Q,f.M]}),i})()},3717:(M,v,e)=>{e.d(v,{M:()=>n});var s=e(6814),c=e(4190),u=e(5695),a=e(2962),o=e(6067),t=e(8125),d=e(551),p=e(2524),g=e(5879);let f=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=g.oAB({type:i}),i.\u0275inj=g.cJS({imports:[s.ez,d.PV,a.vh,t.q6,p.s,o.X]}),i})();var _=e(7417);let n=(()=>{class i{}return i.\u0275fac=function(y){return new(y||i)},i.\u0275mod=g.oAB({type:i}),i.\u0275inj=g.cJS({imports:[s.ez,c.Bz,d.PV,u.X,_.$6,f]}),i})()},4010:(M,v,e)=>{e.d(v,{F:()=>u});var c=e(5879);let u=(()=>{class a{transform(t,d="display-string"){return void 0===t?"":"display-string"===d?function s(a){switch(a){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return a}}(t):`civic-${t.replace(/_/g,"").toLowerCase()}`}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275pipe=c.Yjl({name:"therapyInteractionEnumDisplay",type:a,pure:!0}),a})()},2624:(M,v,e)=>{e.d(v,{G:()=>h});var s=e(655),c=e(6223),u=e(2024),a=e(9182),o=e(1791);const f=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Revisions",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Assertion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}},{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",type:"direction-select",props:{required:!0,colSpan:8,formMode:"revise"}},{key:"significance",type:"significance-select",props:{required:!0,colSpan:8,formMode:"revise"}},{key:"diseaseId",type:"disease-select",props:{colSpan:8}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{colSpan:8}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{colSpan:8}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{colSpan:8}},{key:"nccnGuidelineId",type:"nccn-guideline-select",props:{}},{key:"nccnGuidelineVersion",type:"nccn-guideline-version-input",props:{}},{key:"fdaRegulatoryApproval",type:"fda-regulatory-approval-checkbox",props:{}},{key:"fdaCompanionTest",type:"fda-companion-test-checkbox",props:{}},{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0,colSpan:24}},{key:"summary",type:"textarea",wrappers:["form-field"],props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"A complete, original description of this Assertion. Limited to one paragraph.",placeholder:"Enter an Assertion Statement",label:"Assertion Statement",required:!0,rows:5,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},comment:void 0,organizationId:void 0});var C,_=e(2190),n=e(5879),i=e(313),r=e(7473),y=e(6814),P=e(3599),O=e(5545),A=e(9928);function D(I,m){if(1&I&&(n._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),n.TgZ(1,"a",4),n._uU(2,"here."),n.qZA()),2&I){const l=n.oxw();n.xp6(1),n.s9C("href",l.url,n.LSH)}}function R(I,m){if(1&I){const l=n.EpF();n.TgZ(0,"form",5),n.NdJ("ngSubmit",function(){n.CHM(l);const E=n.oxw();return n.KtG(E.onSubmit(E.model))}),n.TgZ(1,"formly-form",6),n.NdJ("modelChange",function(E){n.CHM(l);const z=n.oxw();return n.KtG(z.model=E)}),n.qZA()()}if(2&I){const l=n.oxw();n.Q6J("formGroup",l.form),n.xp6(1),n.Q6J("form",l.form)("fields",l.fields)("model",l.model)("options",l.options)}}function L(I,m){1&I&&n._uU(0," Loading Assertion... ")}let h=((C=class{constructor(m,l,T,E){this.revisableFieldsGQL=m,this.submitRevisionsGQL=l,this.networkErrorService=T,this.cdr=E,this.form=new c.nJ({}),this.fields=f,this.state=new a._,this.options={formState:this.state},this.reviseAssertionMutator=new u.U(T)}onSubmit(m){if(!this.assertionId)return;let l=(0,_.lf)(this.assertionId,m);l&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:l}))}ngOnInit(){this.url=`/assertions/${this.assertionId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).pipe((0,o.t)(this)).subscribe({next:({data:{assertion:m}})=>{m&&(this.model={id:m.id,fields:(0,_.FX)(m)},this.cdr.detectChanges())},error:m=>{console.log("Error retrieving Assertion"),console.log(m)},complete:()=>{this.state.formReady$.next(!0)}})}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(m){return new(m||C)(n.Y36(i.bgg),n.Y36(i.c$m),n.Y36(r.Y),n.Y36(n.sBO))},C.\u0275cmp=n.Xpm({type:C,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:6,vars:5,consts:[["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(m,l){if(1&m&&(n.TgZ(0,"cvc-form-submission-status-display",0),n.YNc(1,D,3,1,"ng-template",null,1,n.W1O),n.YNc(3,R,2,5,"form",2),n.YNc(4,L,1,0,"ng-template",null,3,n.W1O),n.qZA()),2&m){const T=n.MAs(2),E=n.MAs(5);n.Q6J("mutationState",l.mutationState)("successMessage",T)("redirectUrl",l.url),n.xp6(3),n.Q6J("ngIf",l.model)("ngIfElse",E)}},dependencies:[y.O5,P.Lr,c._Y,c.JL,c.sg,O.T7,A.F],encapsulation:2,changeDetection:0}),C);h=(0,s.gn)([(0,o.c)()],h)},1487:(M,v,e)=>{e.d(v,{P:()=>d});var s=e(6814),c=e(3599),u=e(2840),a=e(706),o=e(1227),t=e(5879);let d=(()=>{class p{}return p.\u0275fac=function(f){return new(f||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[s.ez,c.U5,u.sL,a.S,o.g]}),p})()},2190:(M,v,e)=>{e.d(v,{FX:()=>c,XU:()=>u,lf:()=>a});var s=e(1022);function c(o){return{acmgCodeIds:o.acmgCodes.map(t=>t.id),ampLevel:o.ampLevel,assertionDirection:o.assertionDirection,assertionType:o.assertionType,clingenCodeIds:o.clingenCodes.map(t=>t.id),significance:o.significance,description:o.description,diseaseId:o.disease?.id,therapyIds:o.therapies.map(t=>t.id),therapyInteractionType:o.therapyInteractionType,evidenceItemIds:o.evidenceItems.map(t=>t.id),fdaCompanionTest:o.fdaCompanionTest,fdaRegulatoryApproval:o.regulatoryApproval,molecularProfileId:o.molecularProfile.id,nccnGuidelineId:o.nccnGuideline?.id,nccnGuidelineVersion:o.nccnGuidelineVersion,phenotypeIds:o.phenotypes.map(t=>t.id),summary:o.summary,variantOrigin:o.variantOrigin}}function u(o){const t=o.fields;if(![t.assertionDirection,t.assertionType,t.significance,t.variantOrigin,t.molecularProfileId,o.comment].find(p=>void 0===p))return{fields:{acmgCodeIds:t.acmgCodeIds||[],ampLevel:s.uP(t.ampLevel),assertionDirection:t.assertionDirection,assertionType:t.assertionType,clingenCodeIds:t.clingenCodeIds||[],significance:t.significance,description:s.xt(t.description),diseaseId:s.uP(t.diseaseId),therapyIds:t.therapyIds||[],therapyInteractionType:s.uP(t.therapyInteractionType),evidenceItemIds:t.evidenceItemIds||[],fdaCompanionTest:s.uP(t.fdaCompanionTest),fdaRegulatoryApproval:s.uP(t.fdaRegulatoryApproval),molecularProfileId:t.molecularProfileId,nccnGuidelineId:s.uP(t.nccnGuidelineId),nccnGuidelineVersion:s.xt(t.nccnGuidelineVersion),phenotypeIds:t.phenotypeIds||[],summary:s.xt(t.summary),variantOrigin:t.variantOrigin},organizationId:o.organizationId,comment:o.comment}}function a(o,t){let d=u(t);if(d)return{id:o,comment:d.comment,organizationId:d.organizationId,fields:d.fields}}}}]); \ No newline at end of file diff --git a/server/public/8961.b80760a24bcab348.js b/server/public/8961.b80760a24bcab348.js deleted file mode 100644 index d0978e83e..000000000 --- a/server/public/8961.b80760a24bcab348.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8961],{1218:(O,x,n)=>{n.d(x,{i:()=>d});var _=n(6814),v=n(4190),p=n(5695),i=n(7417),z=n(551),m=n(1855),T=n(2524),S=n(3640),C=n(3146),h=n(5879);let d=(()=>{class g{}return g.\u0275fac=function(s){return new(s||g)},g.\u0275mod=h.oAB({type:g}),g.\u0275inj=h.cJS({imports:[_.ez,v.Bz,S.mS,p.X,i.$6,z.PV,m.f,T.s,C.C]}),g})()},1106:(O,x,n)=>{n.d(x,{L:()=>l});var _=n(6814),v=n(4190),p=n(5695),i=n(551),z=n(95),m=n(6067),T=n(8125),S=n(2962),C=n(1022),h=n(5879);let d=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[_.ez,S.vh,z.Jb,T.q6,m.X,C.H]}),s})();var g=n(7417);let l=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[_.ez,v.Bz,p.X,i.PV,g.$6,d]}),s})()},7950:(O,x,n)=>{n.d(x,{x:()=>g});var _=n(6814),v=n(366),p=n(5695),i=n(7417),z=n(3396),m=n(1106),T=n(5956),S=n(7528),C=n(6061),h=n(3717),d=n(5879);let g=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=d.oAB({type:l}),l.\u0275inj=d.cJS({imports:[_.ez,p.X,i.$6,v.$,C.N,z.Q,m.L,T.U,S.Q,h.M]}),l})()},4106:(O,x,n)=>{n.d(x,{O:()=>G});var _=n(655),v=n(4632),p=n(313),i=n(1791),z=n(5619),m=n(8645),T=n(5676),S=n(7398),C=n(3997),h=n(812),d=n(836),g=n(2181),l=n(3620),s=n(2460),f=n(4223),t=n(5879),P=n(951),y=n(6814),Z=n(6223),L=n(4190),E=n(2840),b=n(855),D=n(1958),$=n(2962),B=n(551),F=n(7417),U=n(9691),I=n(3740),J=n(5695),R=n(6109),K=n(4997),W=n(9857),Y=n(3489),V=n(6753),H=n(4764),w=n(8516),j=n(9775),M=n(4138),A=n(9773),N=n(2024),q=n(7473),k=n(2669),tt=n(3903),nt=n(824),X=n(2574),et=n(4755),ot=n(5805),at=n(2257),rt=n(3764);function ct(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.onSuccessBannerClose())}),t.qZA()}}function lt(o,a){if(1&o&&t._UZ(0,"cvc-form-errors-alert",7),2&o){const e=t.oxw();t.Q6J("errors",e.errorMessages)}}function st(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"textarea",8),t.NdJ("ngModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.reason=r)}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngModel",e.reason)}}function it(o,a){1&o&&t._UZ(0,"nz-option",13)}function gt(o,a){1&o&&t._UZ(0,"nz-option",14)}function ut(o,a){1&o&&t._UZ(0,"nz-option",15)}function pt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-select",9),t.NdJ("ngModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.newStatus=r)}),t.YNc(1,it,1,0,"nz-option",10),t.YNc(2,gt,1,0,"nz-option",11),t.YNc(3,ut,1,0,"nz-option",12),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngModel",e.newStatus),t.xp6(1),t.Q6J("ngIf","NEW"==e.currentStatus),t.xp6(1),t.Q6J("ngIf","NEW"!=e.currentStatus),t.xp6(1),t.Q6J("ngIf","NEW"==e.currentStatus)}}function dt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-spin",16)(1,"cvc-form-buttons")(2,"cvc-org-selector-btn-group",17),t.NdJ("selectedOrgChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.mostRecentOrg=r)}),t.TgZ(3,"button",18),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.updateSourceSuggestionStatus())}),t._uU(4," Update Source Suggestion status "),t.qZA()()()()}if(2&o){const e=t.oxw();t.Q6J("nzSpinning",e.loading),t.xp6(2),t.Q6J("selectedOrg",e.mostRecentOrg),t.xp6(1),t.Q6J("disabled",e.loading)}}let mt=(()=>{class o{constructor(e,c,r){this.viewerService=e,this.networkErrorService=c,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new t.vpe,this.destroy$=new m.x,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,A.R)(this.destroy$)).subscribe(u=>{this.organizations=u.organizations,this.mostRecentOrg=u.mostRecentOrg}),this.sourceSuggestionStatusMutator=new N.U(c)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){if(this.newStatus){let e=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:this.mostRecentOrg?.id}});e.submitSuccess$.pipe((0,A.R)(this.destroy$)).subscribe(c=>{this.resetForm(),this.success=!0}),e.submitError$.pipe((0,A.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c)}),e.isSubmitting$.pipe((0,A.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(P.a),t.Y36(q.Y),t.Y36(p.wRZ))},o.\u0275cmp=t.Xpm({type:o,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,c){1&e&&(t.TgZ(0,"nz-card")(1,"nz-space",0),t.YNc(2,ct,1,0,"nz-alert",1),t.YNc(3,lt,1,1,"cvc-form-errors-alert",2),t.YNc(4,st,1,1,"textarea",3),t.YNc(5,pt,4,4,"nz-select",4),t.YNc(6,dt,5,3,"nz-spin",5),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("ngIf",c.success),t.xp6(1),t.Q6J("ngIf",c.errorMessages.length))},dependencies:[y.O5,Z.Fj,Z.JJ,Z.Q7,E.ix,b.w,D.dQ,$.bd,k.W,tt.r,nt.Zp,U.Ip,U.Vq,X.NU,X.$1,Z.On,et.V,ot.m,at.q,rt.Z],encapsulation:2}),o})();var Q,_t=n(356),vt=n(2606),Ct=n(8091),zt=n(2616);function Tt(o,a){}function ft(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",6),t.YNc(2,Tt,0,0,"ng-template",7),t.qZA(),t.BQk()),2&o){t.oxw();const e=t.MAs(8),c=t.MAs(10),r=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",c),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function ht(o,a){}const St=function(o){return{height:o}};function xt(o,a){if(1&o&&(t.TgZ(0,"div",8)(1,"nz-card",9),t.YNc(2,ht,0,0,"ng-template",7),t.qZA()()),2&o){const e=t.oxw(),c=t.MAs(8),r=t.MAs(10),u=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,St,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",c)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",u)}}function Mt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-clearable-input-filter",29),t.NdJ("inputModelChange",function(r){t.CHM(e);const u=t.oxw(2);return t.KtG(u.submitterInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw(2);return t.KtG(r.filterChange$.next())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("inputModel",e.submitterInput)}}function yt(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",51),t._uU(2),t.ALo(3,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.status)," ")}}function It(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",52),t._uU(2),t.ALo(3,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.status)," ")}}function Pt(o,a){if(1&o&&t._UZ(0,"i",55),2&o){const e=t.oxw(2).$implicit,c=t.oxw(2);t.Q6J("nzTooltipTitle",c.isScrolling?"":e.reason)}}function Ot(o,a){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-tag",53),t.YNc(2,Pt,1,1,"i",54),t._uU(3),t.ALo(4,"lowercase"),t.qZA(),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",e.reason&&""!=e.reason),t.xp6(1),t.hij(" ",t.lcZ(4,2,e.status)," ")}}function Zt(o,a){if(1&o&&t._UZ(0,"cvc-source-tag",56),2&o){const e=t.oxw().$implicit;t.Q6J("source",e.source)}}function At(o,a){if(1&o&&t._UZ(0,"cvc-user-tag",57),2&o){const e=t.oxw().$implicit;t.Q6J("user",e.user)}}function Et(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.source.displayType," ")}}function Ut(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.source.citationId," ")}}function Jt(o,a){if(1&o&&t._UZ(0,"cvc-molecular-profile-tag",58),2&o){const e=t.oxw().$implicit;t.Q6J("molecularProfile",e.molecularProfile)}}function Qt(o,a){if(1&o&&t._UZ(0,"cvc-disease-tag",59),2&o){const e=t.oxw().$implicit;t.Q6J("disease",e.disease)("truncateLongName",!0)}}const Nt=function(o,a,e){return{molecularProfileId:o,sourceId:a,diseaseId:e}};function bt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-button-group")(1,"button",60),t._UZ(2,"i",61),t.qZA(),t.TgZ(3,"button",62),t.NdJ("click",function(){t.CHM(e);const r=t.oxw().$implicit,u=t.oxw(2);return t.KtG(u.setFormInputs(r.id,r.status))}),t._UZ(4,"i",63),t.qZA()()}if(2&o){const e=t.oxw().$implicit,c=t.oxw(2),r=t.MAs(6);t.xp6(1),t.Q6J("queryParams",t.kEZ(7,Nt,null==e.molecularProfile?null:e.molecularProfile.id,null==e.source?null:e.source.id,null==e.disease?null:e.disease.id))("disabled",e.status!=c.status.New)("nzTooltipTitle",c.isScrolling?"":"Create Evidence with this Source")("nzTooltipMouseEnterDelay",1),t.xp6(2),t.Q6J("nzTooltipTitle",c.isScrolling?"":"Manage Source Suggestion")("nzTooltipMouseEnterDelay",1)("nzPopoverContent",r)}}function Dt(o,a){1&o&&(t.ynx(0),t._uU(1," -- "),t.BQk())}function $t(o,a){if(1&o&&(t.TgZ(0,"tr",39)(1,"td",40),t.ynx(2,41),t.ALo(3,"lowercase"),t.YNc(4,yt,4,3,"ng-container",42),t.YNc(5,It,4,3,"ng-container",42),t.YNc(6,Ot,5,4,"ng-container",42),t.BQk(),t.qZA(),t.TgZ(7,"td",24),t.YNc(8,Zt,1,1,"cvc-source-tag",43),t.qZA(),t.TgZ(9,"td",44),t._UZ(10,"i",17),t.ALo(11,"entityColor"),t.qZA(),t.TgZ(12,"td"),t.YNc(13,At,1,1,"cvc-user-tag",45),t.qZA(),t.TgZ(14,"td"),t.YNc(15,Et,2,1,"ng-container",46),t.qZA(),t.TgZ(16,"td"),t.YNc(17,Ut,2,1,"ng-container",46),t.qZA(),t.TgZ(18,"td"),t.YNc(19,Jt,1,1,"cvc-molecular-profile-tag",47),t.qZA(),t.TgZ(20,"td"),t.YNc(21,Qt,1,2,"cvc-disease-tag",48),t.qZA(),t.TgZ(22,"td",49),t._uU(23),t.ALo(24,"date"),t.qZA(),t.TgZ(25,"td",50),t.YNc(26,bt,5,11,"nz-button-group",46),t.YNc(27,Dt,2,0,"ng-container",46),t.qZA()()),2&o){const e=a.$implicit,c=t.oxw(2);t.xp6(2),t.Q6J("ngSwitch",t.lcZ(3,15,e.status)),t.xp6(2),t.Q6J("ngSwitchCase","curated"),t.xp6(1),t.Q6J("ngSwitchCase","new"),t.xp6(1),t.Q6J("ngSwitchCase","rejected"),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(1),t.Q6J("nzTooltipTitle",c.isScrolling?"":e.initialComment),t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(11,17,"Comment")),t.xp6(3),t.Q6J("ngIf",e.user),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(2),t.Q6J("ngIf",e.source),t.xp6(2),t.Q6J("ngIf",e.molecularProfile),t.xp6(2),t.Q6J("ngIf",e.disease),t.xp6(2),t.hij(" ",t.lcZ(24,19,e.createdAt)," "),t.xp6(3),t.Q6J("ngIf",c.isSignedIn),t.xp6(1),t.Q6J("ngIf",!c.isSignedIn)}}const Ft=function(){return[]},Lt=function(){return{x:"680px",y:"800px"}},Bt=function(){return["descend","ascend",null]};function Rt(o,a){if(1&o){const e=t.EpF();t.TgZ(0,"nz-table",10,11),t.NdJ("cvcTableScrollOnScroll",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.scrollEvent$.next(r))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",12),t.NdJ("nzSortOrderChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.sortChange$.next(r))}),t.TgZ(7,"tr",13)(8,"th",14),t._uU(9," Status "),t.qZA(),t.TgZ(10,"th",15),t._uU(11," Citation "),t.qZA(),t.TgZ(12,"th",16),t._UZ(13,"i",17),t.ALo(14,"entityColor"),t.qZA(),t.TgZ(15,"th",18),t._uU(16," Submitter "),t.qZA(),t.TgZ(17,"th",19),t._uU(18," Type "),t.qZA(),t.TgZ(19,"th",19),t._uU(20," ID "),t.qZA(),t.TgZ(21,"th",20),t._uU(22,"Molecular Profile"),t.qZA(),t.TgZ(23,"th",18),t._uU(24," Disease "),t.qZA(),t.TgZ(25,"th",21),t._uU(26," Submitted "),t.qZA(),t.TgZ(27,"th",22),t._uU(28," Actions "),t.qZA()(),t.TgZ(29,"tr",23)(30,"th",24)(31,"nz-select",25),t.NdJ("ngModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())})("ngModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.statusInput=r)}),t._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),t.qZA()(),t.TgZ(35,"th",24)(36,"cvc-clearable-input-filter",29),t.NdJ("inputModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.citationInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t._UZ(37,"th"),t.TgZ(38,"th"),t.YNc(39,Mt,1,1,"cvc-clearable-input-filter",30),t.qZA(),t.TgZ(40,"th")(41,"nz-select",31),t.NdJ("ngModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())})("ngModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.sourceTypeInput=r)}),t._UZ(42,"nz-option",32)(43,"nz-option",33),t.qZA()(),t.TgZ(44,"th")(45,"cvc-clearable-input-filter",34),t.NdJ("inputModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.citationIdInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t.TgZ(46,"th")(47,"cvc-clearable-input-filter",35),t.NdJ("inputModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.molecularProfileNameInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t.TgZ(48,"th")(49,"cvc-clearable-input-filter",36),t.NdJ("inputModelChange",function(r){t.CHM(e);const u=t.oxw();return t.KtG(u.diseaseNameInput=r)})("inputModelChange",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.filterChange$.next())}),t.qZA()(),t._UZ(50,"th")(51,"th",37),t.qZA()(),t.TgZ(52,"tbody"),t.YNc(53,$t,28,21,"ng-template",38),t.qZA()()}if(2&o){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,33,e.row$)||t.DdM(43,Ft))("nzLoading",!t.lcZ(3,35,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,37,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,39,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(44,Lt))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(10),t.Q6J("nzColumnKey",e.sortColumns.Citation)("nzSortFn",!0),t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(14,41,"Comment")),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.Submitter)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.SourceType)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.CitationId)("nzSortFn",!0),t.xp6(4),t.Q6J("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",e.sortColumns.CreatedAt)("nzSortDirections",t.DdM(45,Bt))("nzSortFn",!0),t.xp6(6),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.statusInput),t.xp6(5),t.Q6J("inputModel",e.citationInput),t.xp6(3),t.Q6J("ngIf",!e.submitterId),t.xp6(2),t.Q6J("ngModel",e.sourceTypeInput),t.xp6(4),t.Q6J("inputModel",e.citationIdInput),t.xp6(2),t.Q6J("inputModel",e.molecularProfileNameInput),t.xp6(2),t.Q6J("inputModel",e.diseaseNameInput)}}function Kt(o,a){if(1&o&&t._UZ(0,"cvc-update-source-suggestion-form",65),2&o){const e=t.oxw(2);t.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function Wt(o,a){if(1&o&&t.YNc(0,Kt,1,2,"cvc-update-source-suggestion-form",64),2&o){const e=t.oxw();t.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Yt(o,a){}function Vt(o,a){if(1&o&&(t.ynx(0),t.YNc(1,Yt,0,0,"ng-template",7),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Ht(o,a){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function wt(o,a){if(1&o&&(t._UZ(0,"i",66),t.ALo(1,"entityColor"),t.YNc(2,Vt,2,1,"ng-container",46),t.YNc(3,Ht,2,1,"ng-container",46),t.TgZ(4,"span",67),t._UZ(5,"cvc-table-counts",68),t.qZA()),2&o){const e=t.oxw();t.Q6J("nzTwotoneColor",t.lcZ(1,4,"Source")),t.xp6(2),t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function jt(o,a){1&o&&(t.TgZ(0,"nz-tag",71),t._UZ(1,"i",72),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function Gt(o,a){if(1&o&&(t.YNc(0,jt,4,0,"nz-tag",69),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",70),t.ALo(3,"ngrxPush")),2&o){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let G=((Q=class{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e,c){this.gql=a,this.viewerService=e,this.cdr=c,this.initialPageSize=35,this.isScrolling=!1,this.statusInput=p.F3s.New,this.sortColumns=p.jw9,this.status=p.F3s,this.showManageForm=!1,this.noMoreRows$=new z.X(!1),this.scrollEvent$=new z.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x,this.viewerService.viewer$.pipe((0,S.U)(r=>r.signedIn),(0,i.t)(this)).subscribe(r=>this.isSignedIn=r)}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New,sortBy:{column:this.sortColumns.CreatedAt,direction:p.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,f.j)("loading"),(0,C.x)(),(0,h.o)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,f.j)("loading"),(0,C.x)(),(0,d.T)(2)),this.connection$=this.result$.pipe((0,f.j)("data","sourceSuggestions"),(0,g.h)(T.ep)),this.row$=this.connection$.pipe((0,f.j)("edges"),(0,g.h)(T.ep),(0,S.U)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,f.j)("pageInfo"),(0,g.h)(T.ep)),this.sortChange$.pipe((0,i.t)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,v._)(a)})}),this.filterChange$.pipe((0,l.b)(500),(0,i.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,S.U)(a=>"stop"!==a),(0,C.x)(),(0,i.t)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,g.h)(a=>"bottom"===a),(0,s.M)(this.pageInfo$),(0,S.U)(([a,e])=>e),(0,i.t)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,molecularProfileName:this.molecularProfileNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}setFormInputs(a,e){this.selectedSourceId=a,this.selectedStatus=e,this.showManageForm=!0}closePopover(){this.showManageForm=!1}trackByIndex(a,e){return e?.id}}).\u0275fac=function(a){return new(a||Q)(t.Y36(p.WRV),t.Y36(P.a),t.Y36(t.sBO))},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["cvc-source-suggestions-table"]],inputs:{cvcHeight:"cvcHeight",sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:11,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["manageSuggestionTemplate",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","100px","nzLeft",""],["nzWidth","425px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","24px","nzAlign","center","nz-tooltip","","nzTooltipTitle","Submitter Comment"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","290px"],["nzWidth","90px","nzSortOrder","descend",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nzWidth","70px","nzRight","","nzAlign","center"],[1,"filter-row"],["nzLeft",""],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],[3,"inputModel","inputModelChange"],[3,"inputModel","inputModelChange",4,"ngIf"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModel","ngModelChange"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","inputModelChange"],["placeholderText","Molecular Profile",3,"inputModel","inputModelChange"],["placeholderText","Disease",3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],["nzLeft","","nzAlign","center"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"source",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user",4,"ngIf"],[4,"ngIf"],[3,"molecularProfile",4,"ngIf"],[3,"disease","truncateLongName",4,"ngIf"],["nzAlign","right"],["nzRight","","nzAlign","center",1,"button-cell"],["nzColor","green",1,"status-tag"],["nzColor","orange",1,"status-tag"],["nzColor","volcano",1,"status-tag"],["nz-icon","","nz-tooltip","","nzType","civic-comment",3,"nzTooltipTitle",4,"ngIf"],["nz-icon","","nz-tooltip","","nzType","civic-comment",3,"nzTooltipTitle"],[3,"source"],[3,"user"],[3,"molecularProfile"],[3,"disease","truncateLongName"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small","nz-tooltip","",3,"queryParams","disabled","nzTooltipTitle","nzTooltipMouseEnterDelay"],["nz-icon","","nzType","civic-evidence"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle","nzTooltipMouseEnterDelay","nzPopoverContent","click"],["nz-icon","","nzType","civic-source"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,e){if(1&a&&(t.YNc(0,ft,3,3,"ng-container",0),t.YNc(1,xt,3,6,"ng-template",null,1,t.W1O),t.YNc(3,Rt,54,46,"ng-template",null,2,t.W1O),t.YNc(5,Wt,1,1,"ng-template",null,3,t.W1O),t.YNc(7,wt,6,6,"ng-template",null,4,t.W1O),t.YNc(9,Gt,4,6,"ng-template",null,5,t.W1O)),2&a){const c=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",c)}},dependencies:[y.O5,y.tP,y.PC,y.RF,y.n9,Z.JJ,Z.On,L.rH,E.ix,E.fY,b.w,D.dQ,$.bd,B.Ls,F.lU,U.Ip,U.Vq,I.N8,I.qD,I.Uo,I._C,I.Om,I.p0,I.$Z,I.zu,I.qn,I.UX,J.j,R.SY,K.y,W.B,Y.H,V.D,H.q,w.p,j.n,M.T,mt,_t.I,vt.p,y.i8,y.uU,Ct.fM,zt.a],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}.status-tag[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),Q);G=(0,_.gn)([(0,i.c)()],G)},5843:(O,x,n)=>{n.d(x,{W:()=>j});var _=n(6814),v=n(6223),p=n(4190),i=n(3396),z=n(8527),m=n(7856),T=n(9154),S=n(2989),C=n(8641),h=n(8706),d=n(2524),g=n(9175),l=n(4742),s=n(9312),f=n(3394),t=n(5545),P=n(2962),y=n(3599),Z=n(6294),L=n(845),E=n(2840),b=n(9382),D=n(2669),$=n(3903),B=n(824),F=n(9691),U=n(3378),I=n(2574),J=n(5879);let R=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=J.oAB({type:M}),M.\u0275inj=J.cJS({imports:[_.ez,v.UX,E.sL,P.vh,b.we,y.U5,D.j,$.L,B.o7,F.LV,I.zf,v.u5,t.X0,f.B,Z.A,L.R,U.w]}),M})();var K=n(551),W=n(7417),Y=n(3740),V=n(5695),H=n(6109),w=n(2392);let j=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=J.oAB({type:M}),M.\u0275inj=J.cJS({imports:[_.ez,v.u5,p.Bz,E.sL,P.vh,K.PV,W.$6,F.LV,Y.HQ,V.X,H.cg,w.ZJ,s.w,S.T,T.y,g.n,l.c,m.k,i.Q,f.B,d.s,C.s,R,h.W,z.u]}),M})()},3641:(O,x,n)=>{n.d(x,{G:()=>f});var _=n(6814),v=n(4190),p=n(7417),i=n(5695),z=n(551),m=n(366),T=n(8641),S=n(7528),C=n(2524),h=n(2962),d=n(8125),g=n(5879);let l=(()=>{class t{}return t.\u0275fac=function(y){return new(y||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[_.ez,h.vh,d.q6,z.PV,T.s,S.Q,m.$,C.s]}),t})();var s=n(3146);let f=(()=>{class t{}return t.\u0275fac=function(y){return new(y||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[_.ez,v.Bz,p.$6,i.X,z.PV,l,C.s,s.C]}),t})()},3717:(O,x,n)=>{n.d(x,{M:()=>g});var _=n(6814),v=n(4190),p=n(5695),i=n(2962),z=n(6067),m=n(8125),T=n(551),S=n(2524),C=n(5879);let h=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[_.ez,T.PV,i.vh,m.q6,S.s,z.X]}),l})();var d=n(7417);let g=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[_.ez,v.Bz,T.PV,p.X,d.$6,h]}),l})()},4010:(O,x,n)=>{n.d(x,{F:()=>p});var v=n(5879);let p=(()=>{class i{transform(m,T="display-string"){return void 0===m?"":"display-string"===T?function _(i){switch(i){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return i}}(m):`civic-${m.replace(/_/g,"").toLowerCase()}`}}return i.\u0275fac=function(m){return new(m||i)},i.\u0275pipe=v.Yjl({name:"therapyInteractionEnumDisplay",type:i,pure:!0}),i})()},9560:(O,x,n)=>{n.d(x,{K:()=>h});var _=n(6814),v=n(5545),p=n(5879),i=n(6223),z=n(824);const T={name:"comment-textarea",component:(()=>{class d extends v.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(l,s)=>`Comments must be at least ${s.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}}return d.\u0275fac=function(){let g;return function(s){return(g||(g=p.n5z(d)))(s||d)}}(),d.\u0275cmp=p.Xpm({type:d,selectors:[["comment-textarea-type"]],features:[p.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(l,s){1&l&&p._UZ(0,"textarea",0),2&l&&p.Q6J("formControl",s.formControl)("formlyAttributes",s.field)},dependencies:[i.Fj,i.JJ,i.oH,v.JD,z.Zp],encapsulation:2,changeDetection:0}),d})(),wrappers:["form-field"]};var S=n(3599),C=n(7459);let h=(()=>{class d{}return d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=p.oAB({type:d}),d.\u0275inj=p.cJS({imports:[_.ez,i.UX,v.X0.forChild({types:[T]}),C.u,S.U5,z.o7]}),d})()}}]); \ No newline at end of file diff --git a/server/public/9641.3f08c704039dfe2d.js b/server/public/9641.3f08c704039dfe2d.js new file mode 100644 index 000000000..8b2bd5abe --- /dev/null +++ b/server/public/9641.3f08c704039dfe2d.js @@ -0,0 +1,19 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9641],{9512:(S,T,t)=>{t.d(T,{s:()=>B});var e=t(5879),p=t(2840),n=t(855),z=t(1958),c=t(67),d=t(459),v=t(551),r=t(6976);let l=(()=>{class O{constructor(P){this.cookies=P,this.location=function h(O){return encodeURIComponent(O).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return O.\u0275fac=function(P){return new(P||O)(e.Y36(d.N))},O.\u0275cmp=e.Xpm({type:O,selectors:[["cvc-auth-options-list"]],decls:19,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"],["src","assets/images/orcid-logo.svg","alt","ORCID Logo",1,"orcid-logo"],["nz-icon","","nzType","github"]],template:function(P,m){1&P&&(e.TgZ(0,"nz-list",0)(1,"nz-list-item")(2,"form",1),e._UZ(3,"input",2),e.TgZ(4,"button",3),e._UZ(5,"i",4),e._uU(6," Sign In with a Google Account "),e.qZA()()(),e.TgZ(7,"nz-list-item")(8,"form",1),e._UZ(9,"input",2),e.TgZ(10,"button",3),e._UZ(11,"img",5),e._uU(12," Sign In with an ORCID Account "),e.qZA()()(),e.TgZ(13,"nz-list-item")(14,"form",1),e._UZ(15,"input",2),e.TgZ(16,"button",3),e._UZ(17,"i",6),e._uU(18," Sign In with a Github Account "),e.qZA()()()()),2&P&&(e.xp6(2),e.MGl("action","/api/auth/google_oauth2?origin=",m.location,"",e.LSH),e.xp6(1),e.s9C("value",m.xsrfToken),e.xp6(5),e.MGl("action","/api/auth/orcid?origin=",m.location,"",e.LSH),e.xp6(1),e.s9C("value",m.xsrfToken),e.xp6(5),e.MGl("action","/api/auth/github?origin=",m.location,"",e.LSH),e.xp6(1),e.s9C("value",m.xsrfToken))},dependencies:[v.Ls,r.n_,r.AA,p.ix,n.w,z.dQ],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}.orcid-logo[_ngcontent-%COMP%]{width:16px;margin-right:4px;line-height:1}i[_ngcontent-%COMP%]{font-size:16px}"]}),O})();function g(O,E){1&O&&(e.ynx(0),e.TgZ(1,"p",5),e._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. "),e.qZA(),e._UZ(3,"cvc-auth-options-list"),e.BQk())}function C(O,E){1&O&&e._uU(0," Sign In / Sign Up ")}function _(O,E){if(1&O){const P=e.EpF();e.TgZ(0,"button",0),e.NdJ("click",function(){e.CHM(P);const A=e.oxw();return e.KtG(A.handleCancel())}),e._uU(1," Cancel "),e.qZA()}}let B=(()=>{class O{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return O.\u0275fac=function(P){return new(P||O)},O.\u0275cmp=e.Xpm({type:O,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(P,m){if(1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return m.showAuth()}),e.TgZ(1,"span"),e._uU(2,"Sign In / Sign Up"),e.qZA()(),e.TgZ(3,"nz-modal",1),e.NdJ("nzVisibleChange",function(f){return m.authVisible=f})("nzOnCancel",function(){return m.handleCancel()}),e.YNc(4,g,4,0,"ng-container",2),e.qZA(),e.YNc(5,C,1,0,"ng-template",null,3,e.W1O),e.YNc(7,_,2,0,"ng-template",null,4,e.W1O)),2&P){const A=e.MAs(6),f=e.MAs(8);e.xp6(3),e.Q6J("nzVisible",m.authVisible)("nzTitle",A)("nzFooter",f)}},dependencies:[p.ix,n.w,z.dQ,c.du,c.Hf,l],styles:["[_nghost-%COMP%]{display:inline-block}"]}),O})()},5163:(S,T,t)=>{t.d(T,{B:()=>v});var e=t(6814),p=t(2840),n=t(67),z=t(6976),c=t(551),h=t(5879);let d=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[e.ez,c.PV,z.Ph,p.sL]}),r})(),v=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[e.ez,p.sL,n.Qp,d]}),r})()},3217:(S,T,t)=>{t.d(T,{M:()=>h});var e=t(5879),p=t(6814),n=t(6928);function z(d,v){if(1&d&&e._UZ(0,"nz-avatar",2),2&d){const r=e.oxw();e.Q6J("nzSrc",r.organization.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function c(d,v){if(1&d&&e._UZ(0,"nz-avatar",3),2&d){const r=e.oxw();e.Q6J("nzShape",r.shape?r.shape:"circle")("nzText",r.organization.name)("nzSize",r.size)}}let h=(()=>{class d{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}}return d.\u0275fac=function(r){return new(r||d)},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",size:"size",shape:"shape"},decls:3,vars:2,consts:[[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzText","nzSize"]],template:function(r,l){if(1&r&&(e.YNc(0,z,1,3,"nz-avatar",0),e.YNc(1,c,1,3,"ng-template",null,1,e.W1O)),2&r){const g=e.MAs(2);e.Q6J("ngIf",l.organization.profileImagePath)("ngIfElse",g)}},dependencies:[p.O5,n.Dz],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),d})()},126:(S,T,t)=>{t.d(T,{K:()=>z});var e=t(6814),p=t(6928),n=t(5879);let z=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[e.ez,p.Rt]}),c})()},7458:(S,T,t)=>{t.d(T,{L:()=>h});var e=t(5879),p=t(6814),n=t(6928);function z(d,v){if(1&d&&e._UZ(0,"nz-avatar",2),2&d){const r=e.oxw();e.Q6J("nzSrc",r.user.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function c(d,v){if(1&d&&(e._UZ(0,"nz-avatar",3),e.ALo(1,"uppercase")),2&d){const r=e.oxw();e.Q6J("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)("nzText",e.lcZ(1,3,r.user.displayName.charAt(0)))}}let h=(()=>{class d{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 d.\u0275fac=function(r){return new(r||d)},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzSize","nzText"]],template:function(r,l){if(1&r&&(e.YNc(0,z,1,3,"nz-avatar",0),e.YNc(1,c,2,5,"ng-template",null,1,e.W1O)),2&r){const g=e.MAs(2);e.Q6J("ngIf",l.user.profileImagePath)("ngIfElse",g)}},dependencies:[p.O5,n.Dz,p.gd],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),d})()},4293:(S,T,t)=>{t.d(T,{H:()=>z});var e=t(6814),p=t(6928),n=t(5879);let z=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[e.ez,p.Rt]}),c})()},6116:(S,T,t)=>{t.d(T,{j:()=>n});var e=t(313),p=t(5879);let n=(()=>{class z{transform(h){switch(h){case"ASSERTION":case"Assertion":case e.o71.Assertion:return"civic-assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case e.o71.EvidenceItem:return"civic-evidence";case"GENE":case"Gene":case e.o71.Gene:return"civic-gene";case e.o71.Revision:case"REVISION":case"Revision":return"civic-revision";case e.o71.Variant:case"VARIANT":case"Variant":return"civic-variant";case e.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic-variant-group";case e.o71.MolecularProfile:case"MOLECULAR_PROFILE":case"MolecularProfile":return"civic-molecularprofile";default:return console.log("String No icon name found for "+h),"border-outer"}}}return z.\u0275fac=function(h){return new(h||z)},z.\u0275pipe=p.Yjl({name:"iconNameForSubscribableEntity",type:z,pure:!0}),z})()},6943:(S,T,t)=>{t.d(T,{V:()=>v});var e=t(5879),p=t(6814),n=t(3903);function z(r,l){if(1&r&&e._UZ(0,"nz-alert",4),2&r){const g=e.oxw();e.Q6J("nzDescription",g.errors[0])}}function c(r,l){if(1&r&&e._UZ(0,"nz-alert",5),2&r){e.oxw();const g=e.MAs(3);e.Q6J("nzDescription",g)}}function h(r,l){if(1&r&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&r){const g=l.$implicit;e.xp6(1),e.Oqu(g)}}function d(r,l){if(1&r&&(e.TgZ(0,"ul",6),e.YNc(1,h,2,1,"li",7),e.qZA()),2&r){const g=e.oxw();e.xp6(1),e.Q6J("ngForOf",g.errors)}}let v=(()=>{class r{constructor(){}ngOnInit(){1==this.errors.length&&(this.errors=this.errors[0].split("|"))}}return r.\u0275fac=function(g){return new(g||r)},r.\u0275cmp=e.Xpm({type:r,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,C){1&g&&(e.YNc(0,z,1,1,"nz-alert",0),e.YNc(1,c,1,1,"nz-alert",1),e.YNc(2,d,2,1,"ng-template",2,3,e.W1O)),2&g&&(e.Q6J("ngIf",1===C.errors.length),e.xp6(1),e.Q6J("ngIf",C.errors.length>1))},dependencies:[p.sg,p.O5,n.r],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),r})()},100:(S,T,t)=>{t.d(T,{B:()=>z});var e=t(6814),p=t(3903),n=t(5879);let z=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[e.ez,p.L]}),c})()},2610:(S,T,t)=>{t.d(T,{t:()=>L});var e=t(5879),p=t(2024),n=t(8645),z=t(9773),c=t(313),h=t(7473),d=t(6814),v=t(6223),r=t(95),l=t(3599),g=t(2962),C=t(3903),_=t(7907),B=t(2840),O=t(855),E=t(1958),P=t(2669),m=t(6943);function A(x,V){1&x&&e._UZ(0,"nz-alert",7)}function f(x,V){if(1&x&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",8),e.qZA()),2&x){const Z=e.oxw();e.xp6(1),e.Q6J("errors",Z.errorMessages)}}function I(x,V){if(1&x){const Z=e.EpF();e.TgZ(0,"nz-form-item")(1,"textarea",9),e.NdJ("ngModelChange",function(D){e.CHM(Z);const F=e.oxw();return e.KtG(F.coiText=D)}),e.qZA()()}if(2&x){const Z=e.oxw();e.xp6(1),e.Q6J("ngModel",Z.coiText)}}let L=(()=>{class x{constructor(Z,y){this.updateCoiGql=Z,this.coiUpdatedEvent=new e.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new n.x,this.updateCoiMutator=new p.U(y)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let y=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});y.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{D&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),y.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{D&&(this.errorMessages=D,this.success=!1)}),y.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{this.loading=D})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(Z){return new(Z||x)(e.Y36(c.IP1),e.Y36(h.Y))},x.\u0275cmp=e.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(Z,y){1&Z&&(e.TgZ(0,"nz-card"),e.YNc(1,A,1,0,"nz-alert",0),e.YNc(2,f,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-radio-group",3),e.NdJ("ngModelChange",function(F){return y.coiStatus=F}),e.TgZ(6,"label",4),e._uU(7,"I do not have any potential conflicts of interest."),e.qZA(),e.TgZ(8,"label",5),e._uU(9,"I do have a potential conflict of interest."),e.qZA()()(),e.YNc(10,I,2,1,"nz-form-item",1),e.TgZ(11,"nz-form-item")(12,"button",6),e.NdJ("click",function(){return y.updateCoi()}),e._uU(13," Save Conflict of Interest Statement "),e.qZA()()()()),2&Z&&(e.xp6(1),e.Q6J("ngIf",y.success),e.xp6(1),e.Q6J("ngIf",y.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",y.loading),e.xp6(2),e.Q6J("ngModel",y.coiStatus),e.xp6(5),e.Q6J("ngIf","coiPresent"===y.coiStatus),e.xp6(2),e.Q6J("disabled",y.loading||"coiPresent"===y.coiStatus&&(void 0===y.coiText||y.coiText.length<10)))},dependencies:[d.O5,v.Fj,v.JJ,v.On,r.SK,l.Nx,g.bd,C.r,_.Of,_.Dg,B.ix,O.w,E.dQ,P.W,m.V],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),x})()},2637:(S,T,t)=>{t.d(T,{e:()=>g});var e=t(6814),p=t(6223),n=t(2962),z=t(3903),c=t(3599),h=t(100),d=t(7907),v=t(2669),r=t(2840),l=t(5879);let g=(()=>{class C{}return C.\u0275fac=function(B){return new(B||C)},C.\u0275mod=l.oAB({type:C}),C.\u0275inj=l.cJS({imports:[e.ez,p.u5,c.U5,p.UX,n.vh,z.L,d.aF,r.sL,v.j,h.B]}),C})()},2299:(S,T,t)=>{t.d(T,{G:()=>P});var e=t(5879),p=t(6223),n=t(5619),z=t(9111),c=t(6814),h=t(3599),d=t(3903),v=t(4190),r=t(5545),l=t(8091);function g(m,A){if(1&m){const f=e.EpF();e.ynx(0),e.TgZ(1,"form",2)(2,"formly-form",3),e.NdJ("modelChange",function(L){e.CHM(f);const x=e.oxw();return e.KtG(x.modelChange(L))}),e.qZA()(),e.BQk()}if(2&m){const f=e.oxw();e.xp6(1),e.Q6J("nzLayout",f.layout)("formGroup",f.form),e.xp6(1),e.Q6J("form",f.form)("fields",f.config)("model",f.model)("options",f.options)}}function C(m,A){if(1&m&&e._uU(0),2&m){const f=e.oxw().ngIf;e.hij(" New Variant ",f.name," added. ")}}const _=function(m){return["/variants",m,"summary"]};function B(m,A){if(1&m&&(e._uU(0," View its "),e.TgZ(1,"a",8),e._uU(2,"details here"),e.qZA(),e._uU(3,". ")),2&m){const f=e.oxw().ngIf;e.xp6(1),e.Q6J("routerLink",e.VKq(1,_,f.id))}}function O(m,A){if(1&m&&(e.ynx(0),e._UZ(1,"nz-alert",5),e.YNc(2,C,1,1,"ng-template",null,6,e.W1O),e.YNc(4,B,4,3,"ng-template",null,7,e.W1O),e.BQk()),2&m){const f=e.MAs(3),I=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",f)("nzDescription",I)}}function E(m,A){if(1&m&&(e.YNc(0,O,6,2,"ng-container",4),e.ALo(1,"ngrxPush")),2&m){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.newVariant$))}}let P=(()=>{class m{constructor(f){this.apollo=f,this.onVariantSelected=new e.vpe,this.newVariant$=new n.X(void 0),this.modelChange$=new n.X(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{geneId$:new n.X(void 0),variantId$:new n.X(void 0)}},this.form=new p.nJ({}),this.model={geneId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select",props:{placeholder:"Select New Variant's Gene",layout:{showExtra:!1},hideLabel:!0}},{key:"variantId",type:"variant-select",props:{placeholder:"Enter New Variant Name",requireGene:!0,layout:{showExtra:!1},hideLabel:!0}}]}]}modelChange(f){if(!f?.variantId)return;const I=this.getSelectedVariant(f.variantId);I&&(this.model={geneId:void 0,variantId:void 0},this.onVariantSelected.next(I),this.newVariant$.next(I))}getSelectedVariant(f){if(!f)return;const I={id:`Variant:${f}`,fragment:z.Ps` + fragment VariantSelectQuery on Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } + } + `};let L;try{L=this.apollo.client.readFragment(I)}catch(x){console.error(x)}if(L)return L;console.error("MpFinderForm could not resolve its Variant from the cache")}}return m.\u0275fac=function(f){return new(f||m)(e.Y36(z._M))},m.\u0275cmp=e.Xpm({type:m,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["variantCreated",""],["nz-form","",3,"nzLayout","formGroup"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],["successMessage",""],["successDescription",""],[3,"routerLink"]],template:function(f,I){if(1&f&&(e.YNc(0,g,3,6,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,E,2,3,"ng-template",null,1,e.W1O)),2&f){const L=e.MAs(3);e.Q6J("ngIf",!e.lcZ(1,2,I.newVariant$))("ngIfElse",L)}},dependencies:[c.O5,h.Lr,d.r,v.rH,p._Y,p.JL,p.sg,r.T7,l.fM],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0}),m})()},4057:(S,T,t)=>{t.d(T,{e:()=>r});var e=t(6814),p=t(3599),n=t(2840),z=t(706),c=t(1227),h=t(4190),d=t(3903),v=t(5879);let r=(()=>{class l{}return l.\u0275fac=function(C){return new(C||l)},l.\u0275mod=v.oAB({type:l}),l.\u0275inj=v.cJS({imports:[e.ez,p.U5,n.sL,d.L,h.Bz,z.S,c.g]}),l})()},9641:(S,T,t)=>{t.r(T),t.d(T,{LayoutModule:()=>Et});var e=t(6814),p=t(4190),n=t(5879),z=t(951),c=t(551),h=t(95),d=t(8645),v=t(9773),r=t(655),l=t(9087),g=t(7754),C=t(3460),_=t(2831),B=t(9388),O=t(1088);const E=["*"],P=["nz-sider-trigger",""];function m(o,s){}function A(o,s){if(1&o&&(n.ynx(0),n.YNc(1,m,0,0,"ng-template",3),n.BQk()),2&o){const i=n.oxw(),a=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i.nzZeroTrigger||a)}}function f(o,s){}function I(o,s){if(1&o&&(n.ynx(0),n.YNc(1,f,0,0,"ng-template",3),n.BQk()),2&o){const i=n.oxw(),a=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",i.nzTrigger||a)}}function L(o,s){if(1&o&&n._UZ(0,"span",5),2&o){const i=n.oxw(2);n.Q6J("nzType",i.nzCollapsed?"right":"left")}}function x(o,s){if(1&o&&n._UZ(0,"span",5),2&o){const i=n.oxw(2);n.Q6J("nzType",i.nzCollapsed?"left":"right")}}function V(o,s){if(1&o&&(n.YNc(0,L,1,1,"span",4),n.YNc(1,x,1,1,"span",4)),2&o){const i=n.oxw();n.Q6J("ngIf",!i.nzReverseArrow),n.xp6(1),n.Q6J("ngIf",i.nzReverseArrow)}}function Z(o,s){1&o&&n._UZ(0,"span",6)}function y(o,s){if(1&o){const i=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(i);const u=n.oxw();return n.KtG(u.setCollapsed(!u.nzCollapsed))}),n.qZA()}if(2&o){const i=n.oxw();n.Q6J("matchBreakPoint",i.matchBreakPoint)("nzCollapsedWidth",i.nzCollapsedWidth)("nzCollapsed",i.nzCollapsed)("nzBreakpoint",i.nzBreakpoint)("nzReverseArrow",i.nzReverseArrow)("nzTrigger",i.nzTrigger)("nzZeroTrigger",i.nzZeroTrigger)("siderWidth",i.widthSetting)}}let D=(()=>{class o{constructor(i,a){this.elementRef=i,this.renderer=a,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(n.SBq),n.Y36(n.Qsj))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),sn=(()=>{class o{constructor(i,a){this.elementRef=i,this.renderer=a,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(n.SBq),n.Y36(n.Qsj))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),ln=(()=>{class o{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 o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(i,a){2&i&&(n.Udp("width",a.isNormalTrigger?a.siderWidth:null),n.ekj("ant-layout-sider-trigger",a.isNormalTrigger)("ant-layout-sider-zero-width-trigger",a.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",a.isZeroTrigger&&a.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",a.isZeroTrigger&&!a.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[n.TTD],attrs:P,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(i,a){1&i&&(n.YNc(0,A,2,1,"ng-container",0),n.YNc(1,I,2,1,"ng-container",0),n.YNc(2,V,2,2,"ng-template",null,1,n.W1O),n.YNc(4,Z,1,0,"ng-template",null,2,n.W1O)),2&i&&(n.Q6J("ngIf",a.isZeroTrigger),n.xp6(1),n.Q6J("ngIf",a.isNormalTrigger))},dependencies:[e.O5,e.tP,c.Ls],encapsulation:2,changeDetection:0}),o})(),j=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,g.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(i){i!==this.nzCollapsed&&(this.nzCollapsed=i,this.nzCollapsedChange.emit(i),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}constructor(i,a,u){this.platform=i,this.cdr=a,this.breakpointService=u,this.destroy$=new d.x,this.nzMenuDirective=null,this.nzCollapsedChange=new n.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}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(l.ow,!0).pipe((0,v.R)(this.destroy$)).subscribe(i=>{const a=this.nzBreakpoint;a&&(0,g.ov)().subscribe(()=>{this.matchBreakPoint=!i[a],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:a,nzCollapsedWidth:u,nzWidth:M}=i;(a||u||M)&&this.updateStyleMap(),a&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(_.t4),n.Y36(n.sBO),n.Y36(l.r3))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-sider"]],contentQueries:function(i,a,u){if(1&i&&n.Suo(u,C.wO,5),2&i){let M;n.iGM(M=n.CRH())&&(a.nzMenuDirective=M.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(i,a){2&i&&(n.Udp("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.ekj("ant-layout-sider-zero-width",a.nzCollapsed&&0===a.nzCollapsedWidth)("ant-layout-sider-light","light"===a.nzTheme)("ant-layout-sider-dark","dark"===a.nzTheme)("ant-layout-sider-collapsed",a.nzCollapsed)("ant-layout-sider-has-trigger",a.nzCollapsible&&null!==a.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:[n.TTD],ngContentSelectors:E,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(i,a){1&i&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA(),n.YNc(2,y,1,8,"div",1)),2&i&&(n.xp6(2),n.Q6J("ngIf",a.nzCollapsible&&null!==a.nzTrigger))},dependencies:[e.O5,ln],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,g.yF)()],o.prototype,"nzReverseArrow",void 0),(0,r.gn)([(0,g.yF)()],o.prototype,"nzCollapsible",void 0),(0,r.gn)([(0,g.yF)()],o.prototype,"nzCollapsed",void 0),o})(),cn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new d.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(B.Is,8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-layout"]],contentQueries:function(i,a,u){if(1&i&&n.Suo(u,j,4),2&i){let M;n.iGM(M=n.CRH())&&(a.listOfNzSiderComponent=M)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(i,a){2&i&&n.ekj("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),dn=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[B.vT,e.ez,c.PV,O.xu,_.ud]}),o})();var b=t(6109),gn=t(9512),X=t(9111),pn=t(553),un=t(5619),mn=t(1757),N=t(7398),k=t(7921),zn=t(2460),R=t(313),G=t(8091),W=t(2787),q=t(2840),Cn=t(855),hn=t(1958),w=t(2574),nn=t(3640),tn=t(67),J=t(2392),en=t(6928),fn=t(7458),vn=t(2610),Tn=t(3217),Mn=t(2299);function On(o,s){if(1&o&&(n.TgZ(0,"button",27),n._uU(1," Add "),n._UZ(2,"i",28),n.qZA()),2&o){n.oxw(2);const i=n.MAs(16);n.Q6J("nzDropdownMenu",i)}}const yn=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function Pn(o,s){if(1&o&&(n.TgZ(0,"nz-badge",29)(1,"button",30),n._UZ(2,"i",31),n.qZA()()),2&o){const i=n.oxw().ngrxLet,a=n.oxw().ngIf;n.Q6J("nzCount",i)("nzOverflowCount",999)("nzStyle",n.DdM(4,yn)),n.xp6(1),n.MGl("routerLink","/users/",a.id,"/notifications")}}const xn=function(o){return{"update-coi":o}};function An(o,s){if(1&o&&n._UZ(0,"cvc-user-avatar",36),2&o){const i=n.oxw(3).ngIf;n.Q6J("user",i)("size",22)("ngClass",n.VKq(3,xn,i.invalidCoi))}}function En(o,s){if(1&o&&(n.TgZ(0,"div",38),n._uU(1),n.qZA()),2&o){const i=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",i.username," ")}}function Zn(o,s){1&o&&(n.ynx(0),n.YNc(1,En,2,1,"div",37),n.BQk())}function Un(o,s){1&o&&(n.TgZ(0,"span",41),n._uU(1," for "),n.qZA())}function Sn(o,s){if(1&o&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-avatar",42),n.qZA()),2&o){const i=n.oxw(4).ngIf;n.xp6(1),n.Q6J("size",18)("organization",i.mostRecentOrg)}}function In(o,s){1&o&&(n.ynx(0),n.YNc(1,Un,2,0,"span",39),n.YNc(2,Sn,2,2,"span",40),n.BQk())}function Dn(o,s){1&o&&n._UZ(0,"i",28)}function _n(o,s){if(1&o&&(n.TgZ(0,"button",32)(1,"nz-space",33),n.YNc(2,An,1,5,"cvc-user-avatar",34),n.YNc(3,Zn,2,0,"ng-container",0),n.YNc(4,In,3,0,"ng-container",0),n.YNc(5,Dn,1,0,"i",35),n.qZA()()),2&o){const i=n.oxw(2).ngIf,a=n.MAs(3),u=n.oxw();n.Q6J("nzDropdownMenu",a),n.xp6(3),n.Q6J("ngIf",!u.cvcCollapsed),n.xp6(1),n.Q6J("ngIf",i.mostRecentOrg)}}function Ln(o,s){1&o&&(n.TgZ(0,"nz-space",23),n.YNc(1,On,3,1,"button",24),n.YNc(2,Pn,3,5,"nz-badge",25),n.YNc(3,_n,6,3,"button",26),n.qZA())}function Bn(o,s){1&o&&(n.TgZ(0,"span",47),n._UZ(1,"i",48),n._uU(2," Conflict of Interest Invalid "),n.qZA())}function Vn(o,s){if(1&o){const i=n.EpF();n.TgZ(0,"button",49),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(3);return n.KtG(u.coiUpdateModalVisible=!0)}),n._uU(1," Please Update COI statement "),n.qZA()}}function Nn(o,s){if(1&o&&(n.TgZ(0,"li",43),n.YNc(1,Bn,3,0,"ng-template",null,44,n.W1O),n.TgZ(3,"ul")(4,"li",45),n.YNc(5,Vn,2,0,"button",46),n.qZA()()()),2&o){const i=n.MAs(2),a=n.oxw().ngIf;n.Q6J("nzTitle",i),n.xp6(5),n.Q6J("ngIf",a.invalidCoi)}}function Rn(o,s){if(1&o){const i=n.EpF();n.TgZ(0,"li",52),n.NdJ("click",function(){const M=n.CHM(i).$implicit,U=n.oxw(3);return n.KtG(U.menuSelection$.next(M.id))}),n._UZ(1,"nz-avatar",53),n.TgZ(2,"span",54),n._uU(3),n.qZA()()}if(2&o){const i=s.$implicit,a=n.oxw(2).ngIf;n.Q6J("nzSelected",(null==a.mostRecentOrg?null:a.mostRecentOrg.id)===i.id),n.xp6(1),n.Q6J("nzSrc",null==i?null:i.profileImagePath)("nzSize",14)("nzShape","square"),n.xp6(2),n.Oqu(i.name)}}function Jn(o,s){if(1&o&&(n.TgZ(0,"li",50)(1,"ul"),n.YNc(2,Rn,4,5,"li",51),n.qZA()()),2&o){const i=n.oxw().ngIf;n.xp6(2),n.Q6J("ngForOf",i.organizations)}}function Qn(o,s){1&o&&(n.TgZ(0,"li",55)(1,"ul")(2,"li",56)(3,"a",57),n._uU(4," Admin Console "),n.qZA()(),n.TgZ(5,"li",58)(6,"a",59),n._uU(7," Background Workers "),n.qZA()()()())}function Fn(o,s){if(1&o){const i=n.EpF();n.TgZ(0,"li",16),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(2);return n.KtG(u.addVariantModalVisible$.next(!0))}),n._uU(1," Variant "),n.qZA()}}const Wn=function(o){return["/users",o]};function Kn(o,s){if(1&o){const i=n.EpF();n.ynx(0),n.YNc(1,Ln,4,0,"nz-space",7),n.TgZ(2,"nz-dropdown-menu",null,8)(4,"ul",9),n.YNc(5,Nn,6,2,"li",10),n.TgZ(6,"li",11)(7,"ul")(8,"li",12),n._uU(9," View Profile "),n.qZA(),n.YNc(10,Jn,3,1,"li",13),n.qZA()(),n.YNc(11,Qn,8,0,"li",14),n._UZ(12,"li",15),n.TgZ(13,"li",16),n.NdJ("click",function(){n.CHM(i);const u=n.oxw();return n.KtG(u.signOut())}),n._uU(14," Sign Out "),n.qZA()()(),n.TgZ(15,"nz-dropdown-menu",null,17)(17,"ul",9)(18,"li",18),n._uU(19," Evidence Item "),n.qZA(),n.TgZ(20,"li",19),n._uU(21," Assertion "),n.qZA(),n.TgZ(22,"li",20),n._uU(23," Source Suggestion "),n.qZA(),n.YNc(24,Fn,2,0,"li",21),n.TgZ(25,"li",22),n._uU(26," Variant Group "),n.qZA()()(),n.BQk()}if(2&o){const i=s.ngIf,a=n.oxw();n.xp6(1),n.Q6J("ngrxLet",a.unreadCount$),n.xp6(4),n.Q6J("ngIf",i.invalidCoi),n.xp6(3),n.Q6J("routerLink",n.VKq(6,Wn,i.id)),n.xp6(2),n.Q6J("ngIf",i.organizations.length>1),n.xp6(1),n.Q6J("ngIf",i.isAdmin),n.xp6(13),n.Q6J("ngIf",i.isEditor)}}function $n(o,s){1&o&&(n.TgZ(0,"span"),n._uU(1,"Update your Conflict of Interest Statement"),n.qZA())}function Yn(o,s){if(1&o){const i=n.EpF();n.TgZ(0,"cvc-user-coi-form",60),n.NdJ("coiUpdatedEvent",function(){n.CHM(i);const u=n.oxw();return n.KtG(u.coiUpdated())}),n.qZA()}}function bn(o,s){1&o&&(n.TgZ(0,"span"),n._uU(1,"Add New Variant"),n.qZA())}function Gn(o,s){1&o&&n._UZ(0,"cvc-variant-submit-form")}let wn=(()=>{class o{constructor(i,a,u){this.queryService=i,this.unreadCountGql=a,this.apollo=u,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.menuSelection$=new d.x,this.unreadCount$=pn.N.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,N.U)(({data:M})=>M.notifications.unreadCount),(0,k.O)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,N.U)(({data:M})=>M.notifications.unreadCount),(0,k.O)(0)),this.addVariantModalVisible$=new un.X(!1),this.addVariantModalVisible$.pipe((0,mn._)("addVariantModalVisible$")).subscribe()}ngOnInit(){this.menuSelection$.pipe((0,zn.M)(this.viewer$)).subscribe(([i,a])=>{const u={id:`User:${a.id}`,fragment:X.Ps` + fragment UserMostRecentOrgId on User { + mostRecentOrganizationId + } + `,data:{mostRecentOrganizationId:i}};this.apollo.client.writeFragment(u)})}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(z.a),n.Y36(R.Kmw),n.Y36(X._M))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:13,vars:13,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzOnCancel"],["variantModalTitle",""],["variantModalContent",""],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["userMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-group","",3,"nzTitle",4,"ngIf"],["nz-menu-group","","nzTitle","Curation"],["nz-menu-item","","nzMatchRouter","",3,"routerLink"],["nz-menu-group","","nzTitle","Change Organization",4,"ngIf"],["nz-menu-group","","nzTitle","Administration",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item","","routerLink","/evidence/add/submit"],["nz-menu-item","","routerLink","/assertions/add/submit"],["nz-menu-item","","routerLink","/sources/add"],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","","routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","small","nzType","link","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","small","nzType","link","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"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],["class","viewer-name",4,"nzSpaceItem"],[1,"viewer-name"],["class","org-label",4,"nzSpaceItem"],[4,"nzSpaceItem"],[1,"org-label"],["shape","square",3,"size","organization"],["nz-menu-group","",3,"nzTitle"],["coiGroupTitle",""],["nz-menu-item",""],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click",4,"ngIf"],["nz-typography","","nzType","danger"],["nz-icon","","nzType","exclamation-circle"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-menu-group","","nzTitle","Change Organization"],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"nzSelected","click"],[3,"nzSrc","nzSize","nzShape"],[1,"org-name"],["nz-menu-group","","nzTitle","Administration"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"coiUpdatedEvent"]],template:function(i,a){if(1&i&&(n.YNc(0,Kn,27,8,"ng-container",0),n.ALo(1,"ngrxPush"),n.TgZ(2,"nz-modal",1),n.NdJ("nzVisibleChange",function(M){return a.coiUpdateModalVisible=M})("nzOnCancel",function(){return a.handleCoiModalCancel()}),n.YNc(3,$n,2,0,"ng-template",null,2,n.W1O),n.YNc(5,Yn,1,0,"ng-template",null,3,n.W1O),n.qZA(),n.TgZ(7,"nz-modal",4),n.NdJ("nzOnCancel",function(){return a.addVariantModalVisible$.next(!1)}),n.ALo(8,"ngrxPush"),n.YNc(9,bn,2,0,"ng-template",null,5,n.W1O),n.YNc(11,Gn,1,0,"ng-template",null,6,n.W1O),n.qZA()),2&i){const u=n.MAs(4),M=n.MAs(6),U=n.MAs(10),$=n.MAs(12);n.Q6J("ngIf",n.lcZ(1,9,a.viewer$)),n.xp6(2),n.Q6J("nzVisible",a.coiUpdateModalVisible)("nzContent",M)("nzTitle",u)("nzFooter",null),n.xp6(5),n.Q6J("nzVisible",n.lcZ(8,11,a.addVariantModalVisible$))("nzContent",$)("nzTitle",U)("nzFooter",null)}},dependencies:[e.mk,e.sg,e.O5,G.eJ,C.wO,C.r9,C.YV,C.uA,W.cm,W.RR,W.wA,p.rH,q.ix,Cn.w,hn.dQ,w.NU,w.$1,c.Ls,nn.x7,tn.du,J.ZU,en.Dz,fn.L,vn.t,Tn.M,Mn.G,G.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:#ffffffa6}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}li[_ngcontent-%COMP%] .org-name[_ngcontent-%COMP%]{margin-left:4px}.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%], .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] nz-avatar, .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%] nz-avatar{border-width:1.5px;border-style:solid;border-color:#096dd9}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] nz-avatar{border-color:#f5222d}.viewer-btn[_ngcontent-%COMP%] .org-label[_ngcontent-%COMP%]{margin:0 -4px 0 0;color:#aab}"],changeDetection:0}),o})();function Hn(o){return o.toLowerCase().split("_").map(s=>s[0].toUpperCase()+s.substring(1)).join("")}var K=t(9691),jn=t(6321),Xn=t(2428),on=t(4911),kn=t(9666),an=t(5676),qn=t(836),nt=t(8753),tt=t(4664),rn=t(2181),et=t(3997),H=t(6223),ot=t(6116),it=t(2616);function at(o,s){if(1&o&&(n.TgZ(0,"span",7),n._uU(1," \u2014 "),n._UZ(2,"span",5),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(2),n.s9C("innerHTML",i.result.matchingText,n.oJD)}}function rt(o,s){if(1&o&&(n.TgZ(0,"nz-option",3),n._UZ(1,"i",4),n.ALo(2,"entityColor"),n.ALo(3,"iconNameForSubscribableEntity"),n._UZ(4,"span",5),n.YNc(5,at,3,1,"span",6),n.qZA()),2&o){const i=s.$implicit,a=n.oxw();n.Q6J("nzValue",i.result),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,5,a.converter(i.result.resultType)))("nzType",n.lcZ(3,7,i.result.resultType)),n.xp6(3),n.s9C("innerHTML",i.result.name,n.oJD),n.xp6(1),n.Q6J("ngIf",i.result.matchingText)}}function st(o,s){1&o&&(n.TgZ(0,"nz-option",8),n._UZ(1,"i",9),n._uU(2," Loading Data... "),n.qZA())}let lt=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,a){this.gql=i,this.router=a,this.converter=Hn,this.onSearch$=new d.x,this.onSelect$=new d.x,this.response$=this.onSearch$.pipe((0,qn.T)(1),(0,nt.p)(300,jn.z,{leading:!1,trailing:!0}),(0,tt.w)(U=>(0,Xn.s)(()=>void 0===this.queryRef,(0,on.P)(()=>u(U)),(0,on.P)(()=>M(U))))),this.isLoading$=this.response$.pipe((0,N.U)(U=>U.loading),(0,rn.h)(an.ep),(0,et.x)()),this.result$=this.response$.pipe((0,N.U)(U=>U.data?.search),(0,rn.h)(an.ep)),this.option$=this.result$.pipe((0,N.U)(U=>{const $=[];return U.forEach(Y=>{Y&&$.push({text:Y.name,value:Y.id.toString(),result:Y})}),$})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const u=U=>(this.queryRef=this.gql.watch({query:U,highlightMatches:!0}),this.queryRef.valueChanges),M=U=>(0,kn.D)(this.queryRef.refetch({query:U}))}urlForResult(i){let a;switch(i.resultType){case R.rZD.VariantGroup:a="variant-groups";break;case R.rZD.EvidenceItem:a="evidence";break;case R.rZD.MolecularProfile:a="molecular-profiles";break;default:a=`${i.resultType.toLowerCase()}s`}return`/${a}/${i.id}/summary`}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(R.ghc),n.Y36(p.F0))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(i,a){if(1&i&&n.Gf(K.Vq,7),2&i){let u;n.iGM(u=n.CRH())&&(a.selectNode=u.first)}},decls:5,vars:10,consts:[["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownMatchSelectWidth","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["nzDisabled","","nzCustomContent","",4,"ngIf"],["nzCustomContent","",3,"nzValue"],["nz-icon","","nzTheme","twotone",2,"margin-right","0.5em",3,"nzTwotoneColor","nzType"],[3,"innerHTML"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary"],["nzDisabled","","nzCustomContent",""],["nz-icon","","nzType","loading",1,"loading-icon"]],template:function(i,a){1&i&&(n.TgZ(0,"nz-select",0),n.NdJ("ngModelChange",function(M){return a.selectedOpt=M})("ngModelChange",function(M){return a.onSelect$.next(M)})("nzOnSearch",function(M){return a.onSearch$.next(M)}),n.YNc(1,rt,6,9,"nz-option",1),n.ALo(2,"ngrxPush"),n.YNc(3,st,3,0,"nz-option",2),n.ALo(4,"ngrxPush"),n.qZA()),2&i&&(n.Q6J("ngModel",a.selectedOpt)("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownMatchSelectWidth",!1),n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,6,a.option$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(4,8,a.isLoading$)))},dependencies:[e.sg,e.O5,H.JJ,H.On,J.ZU,K.Ip,K.Vq,c.Ls,G.fM,ot.j,it.a],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}"]}),o})();function ct(o,s){1&o&&n._UZ(0,"img",64)}function dt(o,s){1&o&&n._UZ(0,"img",65)}function gt(o,s){1&o&&n._UZ(0,"cvc-login-button")}function pt(o,s){if(1&o&&n._UZ(0,"cvc-viewer-button",66),2&o){const i=n.oxw();n.Q6J("cvcCollapsed",i.isCollapsed)}}const Q=function(o){return{"is-collapsed":o}},ut=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class o{constructor(i){this.viewerService=i,this.isCollapsed=!1}ngOnInit(){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 o.\u0275fac=function(i){return new(i||o)(n.Y36(z.a))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,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-molecularprofile"],["routerLink","/molecular-profiles"],["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","civic-clinicaltrial"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-therapy"],["routerLink","/therapies"],["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","civic-queue"],["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"],[3,"ngClass"],["nz-row","","id","header-row"],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","id","header-search",3,"nzFlex"],["nz-col","","nzFlex","1 0 auto","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["target","_blank","href","https://docs.civicdb.org/"],["nz-icon","","nzType","link"],["nz-col","","nzFlex","1 0 auto","id","header-viewer"],[4,"ngIf"],[3,"cvcCollapsed",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"],[3,"cvcCollapsed"]],template:function(i,a){1&i&&(n.TgZ(0,"nz-layout",0)(1,"nz-sider",1),n.NdJ("nzCollapsedChange",function(M){return a.isCollapsed=M}),n.TgZ(2,"a",2)(3,"div",3),n.YNc(4,ct,1,0,"img",4),n.YNc(5,dt,1,0,"img",5),n.qZA()(),n.TgZ(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n._UZ(10,"i",9),n.TgZ(11,"span")(12,"a",10),n._uU(13,"Assertions"),n.qZA()()(),n.TgZ(14,"li",8),n._UZ(15,"i",11),n.TgZ(16,"span")(17,"a",12),n._uU(18,"Evidence"),n.qZA()()(),n.TgZ(19,"li",8),n._UZ(20,"i",13),n.TgZ(21,"span")(22,"a",14),n._uU(23,"Molecular Profiles"),n.qZA()()(),n.TgZ(24,"li",8),n._UZ(25,"i",15),n.TgZ(26,"span")(27,"a",16),n._uU(28,"Genes"),n.qZA()()(),n.TgZ(29,"li",8),n._UZ(30,"i",17),n.TgZ(31,"span")(32,"a",18),n._uU(33,"Variants"),n.qZA()()(),n.TgZ(34,"li",8),n._UZ(35,"i",19),n.TgZ(36,"span")(37,"a",20),n._uU(38,"Variant Groups"),n.qZA()()()()(),n.TgZ(39,"li",8),n._UZ(40,"i",21),n.TgZ(41,"span")(42,"a",22),n._uU(43,"Clinical Trials"),n.qZA()()(),n.TgZ(44,"li",8),n._UZ(45,"i",23),n.TgZ(46,"span")(47,"a",24),n._uU(48,"Diseases"),n.qZA()()(),n.TgZ(49,"li",8),n._UZ(50,"i",25),n.TgZ(51,"span")(52,"a",26),n._uU(53,"Therapies"),n.qZA()()(),n.TgZ(54,"li",8),n._UZ(55,"i",27),n.TgZ(56,"span")(57,"a",28),n._uU(58,"Phenotypes"),n.qZA()()(),n.TgZ(59,"li",8),n._UZ(60,"i",29),n.TgZ(61,"span")(62,"a",30),n._uU(63,"Sources"),n.qZA()()(),n.TgZ(64,"li",8),n._UZ(65,"i",31),n.TgZ(66,"span")(67,"a",32),n._uU(68,"Variant Types"),n.qZA()()(),n.TgZ(69,"li",7)(70,"ul")(71,"li",8),n._UZ(72,"i",33),n.TgZ(73,"span")(74,"a",34),n._uU(75," Activity "),n.qZA()()(),n.TgZ(76,"li",8),n._UZ(77,"i",35),n.TgZ(78,"span")(79,"a",36),n._uU(80,"Queues"),n.qZA()()()()(),n.TgZ(81,"li",7)(82,"ul")(83,"li",8),n._UZ(84,"i",37),n.TgZ(85,"span")(86,"a",38),n._uU(87,"Contributors"),n.qZA()()(),n.TgZ(88,"li",8),n._UZ(89,"i",39),n.TgZ(90,"span")(91,"a",40),n._uU(92,"Organizations"),n.qZA()()()()(),n.TgZ(93,"li",7)(94,"ul")(95,"li",8),n._UZ(96,"i",41),n.TgZ(97,"span")(98,"a",42),n._uU(99," Data Releases "),n.qZA()()()()()(),n.TgZ(100,"div",43),n._UZ(101,"img",44)(102,"img",45),n.qZA()(),n.TgZ(103,"nz-layout",46)(104,"nz-header",47)(105,"div",48)(106,"div",49)(107,"span",50),n.NdJ("click",function(){return a.isCollapsed=!a.isCollapsed}),n._UZ(108,"i",51),n.qZA()(),n.TgZ(109,"div",52),n._UZ(110,"cvc-quicksearch"),n.qZA(),n.TgZ(111,"div",53)(112,"ul",54)(113,"li",55)(114,"a",56),n._uU(115,"Home"),n.qZA()(),n.TgZ(116,"li",55)(117,"a",57),n._uU(118),n.qZA()(),n.TgZ(119,"li",55)(120,"a",58),n._uU(121,"Help"),n.qZA()(),n.TgZ(122,"li",55)(123,"a",59),n._uU(124),n._UZ(125,"i",60),n.qZA()()()(),n.TgZ(126,"div",61),n.YNc(127,gt,1,0,"cvc-login-button",62),n.ALo(128,"async"),n.YNc(129,pt,1,1,"cvc-viewer-button",63),n.ALo(130,"async"),n.qZA()()(),n.TgZ(131,"nz-content"),n._UZ(132,"router-outlet"),n.qZA()()()),2&i&&(n.xp6(1),n.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",a.isCollapsed)("nzTrigger",null),n.xp6(2),n.Q6J("ngClass",n.VKq(43,Q,a.isCollapsed)),n.xp6(1),n.Q6J("ngIf",!a.isCollapsed),n.xp6(1),n.Q6J("ngIf",a.isCollapsed),n.xp6(1),n.Q6J("ngClass",n.VKq(45,Q,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.xp6(1),n.Q6J("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Genes":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variants":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Sources":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Activity":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Users":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.xp6(5),n.Q6J("ngClass",n.VKq(47,Q,a.isCollapsed)),n.xp6(3),n.Q6J("ngClass",n.VKq(49,Q,a.isCollapsed)),n.xp6(1),n.Q6J("ngClass",n.VKq(51,Q,a.isCollapsed)),n.xp6(4),n.Q6J("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.xp6(1),n.Q6J("nzFlex",a.isCollapsed?"90px":"150px"),n.xp6(9),n.Oqu(a.isCollapsed?"About":"About CIViC"),n.xp6(6),n.hij(" ",a.isCollapsed?"Docs":"Documentation"," "),n.xp6(3),n.Q6J("ngIf",n.lcZ(128,39,a.signedOut$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(130,41,a.signedIn$)))},dependencies:[e.mk,e.O5,p.lC,p.rH,c.Ls,h.t3,h.SK,cn,sn,D,j,C.wO,C.r9,C.uA,b.SY,gn.s,wn,lt,e.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(100vw - 170px);z-index:10;color:#d6e4ff;transition:all .2s}.ant-layout-header.is-collapsed[_ngcontent-%COMP%]{transition:all .2s;width:calc(100vw - 80px)}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-row[_ngcontent-%COMP%]{flex-wrap:nowrap}#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}"],changeDetection:0}),o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(3577),t.e(8894),t.e(8592),t.e(2287)]).then(t.bind(t,9337)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(3407),t.e(3759)]).then(t.bind(t,3759)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(6735),t.e(5802)]).then(t.bind(t,6738)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(4449)]).then(t.bind(t,6444)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(2907)]).then(t.bind(t,2057)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(3180)]).then(t.bind(t,6534)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(5584)]).then(t.bind(t,5584)).then(o=>o.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(2602),t.e(9949),t.e(3577),t.e(7856),t.e(1364),t.e(7625),t.e(5604),t.e(7394),t.e(8592),t.e(3806)]).then(t.bind(t,3806)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(5369)]).then(t.bind(t,1112)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(9949),t.e(3575),t.e(7625),t.e(6735),t.e(5130)]).then(t.bind(t,534)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(9949),t.e(3577),t.e(7625),t.e(8479)]).then(t.bind(t,6536)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(2602),t.e(9949),t.e(3577),t.e(7856),t.e(1364),t.e(7625),t.e(5604),t.e(7394),t.e(5167)]).then(t.bind(t,5167)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1703)]).then(t.bind(t,1703)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(5683),t.e(5978)]).then(t.bind(t,5978)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(5683),t.e(4294)]).then(t.bind(t,4294)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(4872),t.e(5556),t.e(2602),t.e(5604),t.e(1863)]).then(t.bind(t,91)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(3290),t.e(5358)]).then(t.bind(t,5358)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(3517).then(t.bind(t,3517)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(5302),t.e(8894),t.e(8592),t.e(7283)]).then(t.bind(t,8088)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms2"}}]}];let mt=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[p.Bz.forChild(ut),p.Bz]}),o})();var zt=t(279),Ct=t(824),ht=t(3599),ft=t(5717),vt=t(2524);let Tt=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,H.u5,p.Bz,vt.s,J.ZJ,K.LV,Ct.o7,ht.U5,c.PV,ft.ic]}),o})();var Mt=t(5163),Ot=t(4293),yt=t(2637),Pt=t(4057),xt=t(126);let At=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,W.b1,p.Bz,q.sL,w.zf,c.PV,nn.mS,b.cg,tn.Qp,J.ZJ,en.Rt,Ot.H,yt.e,xt.K,Pt.e]}),o})(),Et=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,mt,c.PV,h.Jb,dn,C.ip,b.cg,J.ZJ,zt.s,Mt.B,At,Tt]}),o})()},1757:(S,T,t)=>{function p(r,l){for(var g=0;gd});var v=function(){function r(l){(function e(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")})(this,r),function z(r,l,g){l in r?Object.defineProperty(r,l,{value:g,enumerable:!0,configurable:!0,writable:!0}):r[l]=g}(this,"tag",void 0),this.tag=l}return function n(r,l,g){l&&p(r.prototype,l),g&&p(r,g)}(r,[{key:"call",value:function(g,C){return C.subscribe(g)}}]),r}()}}]); \ No newline at end of file diff --git a/server/public/9641.4603bfbeb3e08f99.js b/server/public/9641.4603bfbeb3e08f99.js deleted file mode 100644 index 791d2d032..000000000 --- a/server/public/9641.4603bfbeb3e08f99.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9641],{9512:(L,T,t)=>{t.d(T,{s:()=>V});var e=t(5879),g=t(2840),n=t(855),z=t(1958),l=t(67),m=t(459),M=t(551),s=t(6976);let C=(()=>{class v{constructor(P){this.cookies=P,this.location=function h(v){return encodeURIComponent(v).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return v.\u0275fac=function(P){return new(P||v)(e.Y36(m.N))},v.\u0275cmp=e.Xpm({type:v,selectors:[["cvc-auth-options-list"]],decls:19,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"],["src","assets/images/orcid-logo.svg","alt","ORCID Logo",1,"orcid-logo"],["nz-icon","","nzType","github"]],template:function(P,d){1&P&&(e.TgZ(0,"nz-list",0)(1,"nz-list-item")(2,"form",1),e._UZ(3,"input",2),e.TgZ(4,"button",3),e._UZ(5,"i",4),e._uU(6," Sign In with a Google Account "),e.qZA()()(),e.TgZ(7,"nz-list-item")(8,"form",1),e._UZ(9,"input",2),e.TgZ(10,"button",3),e._UZ(11,"img",5),e._uU(12," Sign In with an ORCID Account "),e.qZA()()(),e.TgZ(13,"nz-list-item")(14,"form",1),e._UZ(15,"input",2),e.TgZ(16,"button",3),e._UZ(17,"i",6),e._uU(18," Sign In with a Github Account "),e.qZA()()()()),2&P&&(e.xp6(2),e.MGl("action","/api/auth/google_oauth2?origin=",d.location,"",e.LSH),e.xp6(1),e.s9C("value",d.xsrfToken),e.xp6(5),e.MGl("action","/api/auth/orcid?origin=",d.location,"",e.LSH),e.xp6(1),e.s9C("value",d.xsrfToken),e.xp6(5),e.MGl("action","/api/auth/github?origin=",d.location,"",e.LSH),e.xp6(1),e.s9C("value",d.xsrfToken))},dependencies:[M.Ls,s.n_,s.AA,g.ix,n.w,z.dQ],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}.orcid-logo[_ngcontent-%COMP%]{width:16px;margin-right:4px;line-height:1}i[_ngcontent-%COMP%]{font-size:16px}"]}),v})();function c(v,E){1&v&&(e.ynx(0),e.TgZ(1,"p",5),e._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. "),e.qZA(),e._UZ(3,"cvc-auth-options-list"),e.BQk())}function f(v,E){1&v&&e._uU(0," Sign In / Sign Up ")}function I(v,E){if(1&v){const P=e.EpF();e.TgZ(0,"button",0),e.NdJ("click",function(){e.CHM(P);const x=e.oxw();return e.KtG(x.handleCancel())}),e._uU(1," Cancel "),e.qZA()}}let V=(()=>{class v{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return v.\u0275fac=function(P){return new(P||v)},v.\u0275cmp=e.Xpm({type:v,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(P,d){if(1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return d.showAuth()}),e.TgZ(1,"span"),e._uU(2,"Sign In / Sign Up"),e.qZA()(),e.TgZ(3,"nz-modal",1),e.NdJ("nzVisibleChange",function(u){return d.authVisible=u})("nzOnCancel",function(){return d.handleCancel()}),e.YNc(4,c,4,0,"ng-container",2),e.qZA(),e.YNc(5,f,1,0,"ng-template",null,3,e.W1O),e.YNc(7,I,2,0,"ng-template",null,4,e.W1O)),2&P){const x=e.MAs(6),u=e.MAs(8);e.xp6(3),e.Q6J("nzVisible",d.authVisible)("nzTitle",x)("nzFooter",u)}},dependencies:[g.ix,n.w,z.dQ,l.du,l.Hf,C],styles:["[_nghost-%COMP%]{display:inline-block}"]}),v})()},5163:(L,T,t)=>{t.d(T,{B:()=>M});var e=t(6814),g=t(2840),n=t(67),z=t(6976),l=t(551),h=t(5879);let m=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[e.ez,l.PV,z.Ph,g.sL]}),s})(),M=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[e.ez,g.sL,n.Qp,m]}),s})()},7458:(L,T,t)=>{t.d(T,{L:()=>h});var e=t(5879),g=t(6814),n=t(6928);function z(m,M){if(1&m&&e._UZ(0,"nz-avatar",2),2&m){const s=e.oxw();e.Q6J("nzSrc",s.user.profileImagePath)("nzShape",s.shape?s.shape:"circle")("nzSize",s.size)}}function l(m,M){if(1&m&&(e._UZ(0,"nz-avatar",3),e.ALo(1,"uppercase")),2&m){const s=e.oxw();e.Q6J("nzShape",s.shape?s.shape:"circle")("nzSize",s.size)("nzText",e.lcZ(1,3,s.user.displayName.charAt(0)))}}let h=(()=>{class m{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 m.\u0275fac=function(s){return new(s||m)},m.\u0275cmp=e.Xpm({type:m,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,"nzShape","nzSize","nzText"]],template:function(s,C){if(1&s&&(e.YNc(0,z,1,3,"nz-avatar",0),e.YNc(1,l,2,5,"ng-template",null,1,e.W1O)),2&s){const c=e.MAs(2);e.Q6J("ngIf",C.user.profileImagePath)("ngIfElse",c)}},dependencies:[g.O5,n.Dz,g.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),m})()},1022:(L,T,t)=>{t.d(T,{H:()=>z});var e=t(6814),g=t(6928),n=t(5879);let z=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=n.oAB({type:l}),l.\u0275inj=n.cJS({imports:[e.ez,g.Rt]}),l})()},6116:(L,T,t)=>{t.d(T,{j:()=>n});var e=t(313),g=t(5879);let n=(()=>{class z{transform(h){switch(h){case"ASSERTION":case"Assertion":case e.o71.Assertion:return"civic-assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case e.o71.EvidenceItem:return"civic-evidence";case"GENE":case"Gene":case e.o71.Gene:return"civic-gene";case e.o71.Revision:case"REVISION":case"Revision":return"civic-revision";case e.o71.Variant:case"VARIANT":case"Variant":return"civic-variant";case e.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic-variant-group";case e.o71.MolecularProfile:case"MOLECULAR_PROFILE":case"MolecularProfile":return"civic-molecularprofile";default:return console.log("String No icon name found for "+h),"border-outer"}}}return z.\u0275fac=function(h){return new(h||z)},z.\u0275pipe=g.Yjl({name:"iconNameForSubscribableEntity",type:z,pure:!0}),z})()},4755:(L,T,t)=>{t.d(T,{V:()=>M});var e=t(5879),g=t(6814),n=t(3903);function z(s,C){if(1&s&&e._UZ(0,"nz-alert",4),2&s){const c=e.oxw();e.Q6J("nzDescription",c.errors[0])}}function l(s,C){if(1&s&&e._UZ(0,"nz-alert",5),2&s){e.oxw();const c=e.MAs(3);e.Q6J("nzDescription",c)}}function h(s,C){if(1&s&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&s){const c=C.$implicit;e.xp6(1),e.Oqu(c)}}function m(s,C){if(1&s&&(e.TgZ(0,"ul",6),e.YNc(1,h,2,1,"li",7),e.qZA()),2&s){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",c.errors)}}let M=(()=>{class s{constructor(){}ngOnInit(){1==this.errors.length&&(this.errors=this.errors[0].split("|"))}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275cmp=e.Xpm({type:s,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(c,f){1&c&&(e.YNc(0,z,1,1,"nz-alert",0),e.YNc(1,l,1,1,"nz-alert",1),e.YNc(2,m,2,1,"ng-template",2,3,e.W1O)),2&c&&(e.Q6J("ngIf",1===f.errors.length),e.xp6(1),e.Q6J("ngIf",f.errors.length>1))},dependencies:[g.sg,g.O5,n.r],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),s})()},3394:(L,T,t)=>{t.d(T,{B:()=>z});var e=t(6814),g=t(3903),n=t(5879);let z=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=n.oAB({type:l}),l.\u0275inj=n.cJS({imports:[e.ez,g.L]}),l})()},4989:(L,T,t)=>{t.d(T,{t:()=>B});var e=t(5879),g=t(2024),n=t(8645),z=t(9773),l=t(313),h=t(7473),m=t(6814),M=t(6223),s=t(95),C=t(3599),c=t(2962),f=t(3903),I=t(7907),V=t(2840),v=t(855),E=t(1958),P=t(2669),d=t(4755);function x(A,N){1&A&&e._UZ(0,"nz-alert",7)}function u(A,N){if(1&A&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",8),e.qZA()),2&A){const Z=e.oxw();e.xp6(1),e.Q6J("errors",Z.errorMessages)}}function U(A,N){if(1&A){const Z=e.EpF();e.TgZ(0,"nz-form-item")(1,"textarea",9),e.NdJ("ngModelChange",function(D){e.CHM(Z);const F=e.oxw();return e.KtG(F.coiText=D)}),e.qZA()()}if(2&A){const Z=e.oxw();e.xp6(1),e.Q6J("ngModel",Z.coiText)}}let B=(()=>{class A{constructor(Z,O){this.updateCoiGql=Z,this.coiUpdatedEvent=new e.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new n.x,this.updateCoiMutator=new g.U(O)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let O=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});O.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{D&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),O.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{D&&(this.errorMessages=D,this.success=!1)}),O.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(D=>{this.loading=D})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return A.\u0275fac=function(Z){return new(Z||A)(e.Y36(l.IP1),e.Y36(h.Y))},A.\u0275cmp=e.Xpm({type:A,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(Z,O){1&Z&&(e.TgZ(0,"nz-card"),e.YNc(1,x,1,0,"nz-alert",0),e.YNc(2,u,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-radio-group",3),e.NdJ("ngModelChange",function(F){return O.coiStatus=F}),e.TgZ(6,"label",4),e._uU(7,"I do not have any potential conflicts of interest."),e.qZA(),e.TgZ(8,"label",5),e._uU(9,"I do have a potential conflict of interest."),e.qZA()()(),e.YNc(10,U,2,1,"nz-form-item",1),e.TgZ(11,"nz-form-item")(12,"button",6),e.NdJ("click",function(){return O.updateCoi()}),e._uU(13," Save Conflict of Interest Statement "),e.qZA()()()()),2&Z&&(e.xp6(1),e.Q6J("ngIf",O.success),e.xp6(1),e.Q6J("ngIf",O.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",O.loading),e.xp6(2),e.Q6J("ngModel",O.coiStatus),e.xp6(5),e.Q6J("ngIf","coiPresent"===O.coiStatus),e.xp6(2),e.Q6J("disabled",O.loading||"coiPresent"===O.coiStatus&&(void 0===O.coiText||O.coiText.length<10)))},dependencies:[m.O5,M.Fj,M.JJ,M.On,s.SK,C.Nx,c.bd,f.r,I.Of,I.Dg,V.ix,v.w,E.dQ,P.W,d.V],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),A})()},8788:(L,T,t)=>{t.d(T,{e:()=>c});var e=t(6814),g=t(6223),n=t(2962),z=t(3903),l=t(3599),h=t(3394),m=t(7907),M=t(2669),s=t(2840),C=t(5879);let c=(()=>{class f{}return f.\u0275fac=function(V){return new(V||f)},f.\u0275mod=C.oAB({type:f}),f.\u0275inj=C.cJS({imports:[e.ez,g.u5,l.U5,g.UX,n.vh,z.L,m.aF,s.sL,M.j,h.B]}),f})()},7501:(L,T,t)=>{t.d(T,{G:()=>P});var e=t(5879),g=t(6223),n=t(5619),z=t(9111),l=t(6814),h=t(3599),m=t(3903),M=t(4190),s=t(5545),C=t(8091);function c(d,x){if(1&d){const u=e.EpF();e.ynx(0),e.TgZ(1,"form",2)(2,"formly-form",3),e.NdJ("modelChange",function(B){e.CHM(u);const A=e.oxw();return e.KtG(A.modelChange(B))}),e.qZA()(),e.BQk()}if(2&d){const u=e.oxw();e.xp6(1),e.Q6J("nzLayout",u.layout)("formGroup",u.form),e.xp6(1),e.Q6J("form",u.form)("fields",u.config)("model",u.model)("options",u.options)}}function f(d,x){if(1&d&&e._uU(0),2&d){const u=e.oxw().ngIf;e.hij(" New Variant ",u.name," added. ")}}const I=function(d){return["/variants",d,"summary"]};function V(d,x){if(1&d&&(e._uU(0," View its "),e.TgZ(1,"a",8),e._uU(2,"details here"),e.qZA(),e._uU(3,". ")),2&d){const u=e.oxw().ngIf;e.xp6(1),e.Q6J("routerLink",e.VKq(1,I,u.id))}}function v(d,x){if(1&d&&(e.ynx(0),e._UZ(1,"nz-alert",5),e.YNc(2,f,1,1,"ng-template",null,6,e.W1O),e.YNc(4,V,4,3,"ng-template",null,7,e.W1O),e.BQk()),2&d){const u=e.MAs(3),U=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",u)("nzDescription",U)}}function E(d,x){if(1&d&&(e.YNc(0,v,6,2,"ng-container",4),e.ALo(1,"ngrxPush")),2&d){const u=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,u.newVariant$))}}let P=(()=>{class d{constructor(u){this.apollo=u,this.onVariantSelected=new e.vpe,this.newVariant$=new n.X(void 0),this.modelChange$=new n.X(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{geneId$:new n.X(void 0),variantId$:new n.X(void 0)}},this.form=new g.nJ({}),this.model={geneId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select",props:{placeholder:"Select New Variant's Gene",layout:{showExtra:!1},hideLabel:!0}},{key:"variantId",type:"variant-select",props:{placeholder:"Enter New Variant Name",requireGene:!0,layout:{showExtra:!1},hideLabel:!0}}]}]}modelChange(u){if(!u?.variantId)return;const U=this.getSelectedVariant(u.variantId);U&&(this.model={geneId:void 0,variantId:void 0},this.onVariantSelected.next(U),this.newVariant$.next(U))}getSelectedVariant(u){if(!u)return;const U={id:`Variant:${u}`,fragment:z.Ps` - fragment VariantSelectQuery on Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } - } - `};let B;try{B=this.apollo.client.readFragment(U)}catch(A){console.error(A)}if(B)return B;console.error("MpFinderForm could not resolve its Variant from the cache")}}return d.\u0275fac=function(u){return new(u||d)(e.Y36(z._M))},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["variantCreated",""],["nz-form","",3,"nzLayout","formGroup"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],["successMessage",""],["successDescription",""],[3,"routerLink"]],template:function(u,U){if(1&u&&(e.YNc(0,c,3,6,"ng-container",0),e.ALo(1,"ngrxPush"),e.YNc(2,E,2,3,"ng-template",null,1,e.W1O)),2&u){const B=e.MAs(3);e.Q6J("ngIf",!e.lcZ(1,2,U.newVariant$))("ngIfElse",B)}},dependencies:[l.O5,h.Lr,m.r,M.rH,g._Y,g.JL,g.sg,s.T7,C.fM],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0}),d})()},2731:(L,T,t)=>{t.d(T,{e:()=>C});var e=t(6814),g=t(3599),n=t(2840),z=t(6683),l=t(279),h=t(5106),m=t(4190),M=t(3903),s=t(5879);let C=(()=>{class c{}return c.\u0275fac=function(I){return new(I||c)},c.\u0275mod=s.oAB({type:c}),c.\u0275inj=s.cJS({imports:[e.ez,g.U5,n.sL,M.L,m.Bz,z.S,h.g,l.s]}),c})()},9641:(L,T,t)=>{t.r(T),t.d(T,{LayoutModule:()=>zt});var e=t(6814),g=t(4190),n=t(5879),z=t(951),l=t(551),h=t(95),m=t(8645),M=t(9773),s=t(655),C=t(9087),c=t(7754),f=t(3460),I=t(2831),V=t(9388),v=t(1088);const E=["*"],P=["nz-sider-trigger",""];function d(o,r){}function x(o,r){if(1&o&&(n.ynx(0),n.YNc(1,d,0,0,"ng-template",3),n.BQk()),2&o){const i=n.oxw(),a=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",i.nzZeroTrigger||a)}}function u(o,r){}function U(o,r){if(1&o&&(n.ynx(0),n.YNc(1,u,0,0,"ng-template",3),n.BQk()),2&o){const i=n.oxw(),a=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",i.nzTrigger||a)}}function B(o,r){if(1&o&&n._UZ(0,"span",5),2&o){const i=n.oxw(2);n.Q6J("nzType",i.nzCollapsed?"right":"left")}}function A(o,r){if(1&o&&n._UZ(0,"span",5),2&o){const i=n.oxw(2);n.Q6J("nzType",i.nzCollapsed?"left":"right")}}function N(o,r){if(1&o&&(n.YNc(0,B,1,1,"span",4),n.YNc(1,A,1,1,"span",4)),2&o){const i=n.oxw();n.Q6J("ngIf",!i.nzReverseArrow),n.xp6(1),n.Q6J("ngIf",i.nzReverseArrow)}}function Z(o,r){1&o&&n._UZ(0,"span",6)}function O(o,r){if(1&o){const i=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(i);const p=n.oxw();return n.KtG(p.setCollapsed(!p.nzCollapsed))}),n.qZA()}if(2&o){const i=n.oxw();n.Q6J("matchBreakPoint",i.matchBreakPoint)("nzCollapsedWidth",i.nzCollapsedWidth)("nzCollapsed",i.nzCollapsed)("nzBreakpoint",i.nzBreakpoint)("nzReverseArrow",i.nzReverseArrow)("nzTrigger",i.nzTrigger)("nzZeroTrigger",i.nzZeroTrigger)("siderWidth",i.widthSetting)}}let D=(()=>{class o{constructor(i,a){this.elementRef=i,this.renderer=a,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(n.SBq),n.Y36(n.Qsj))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),an=(()=>{class o{constructor(i,a){this.elementRef=i,this.renderer=a,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(n.SBq),n.Y36(n.Qsj))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),rn=(()=>{class o{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 o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(i,a){2&i&&(n.Udp("width",a.isNormalTrigger?a.siderWidth:null),n.ekj("ant-layout-sider-trigger",a.isNormalTrigger)("ant-layout-sider-zero-width-trigger",a.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",a.isZeroTrigger&&a.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",a.isZeroTrigger&&!a.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[n.TTD],attrs:P,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(i,a){1&i&&(n.YNc(0,x,2,1,"ng-container",0),n.YNc(1,U,2,1,"ng-container",0),n.YNc(2,N,2,2,"ng-template",null,1,n.W1O),n.YNc(4,Z,1,0,"ng-template",null,2,n.W1O)),2&i&&(n.Q6J("ngIf",a.isZeroTrigger),n.xp6(1),n.Q6J("ngIf",a.isNormalTrigger))},dependencies:[e.O5,e.tP,l.Ls],encapsulation:2,changeDetection:0}),o})(),X=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,c.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(i){i!==this.nzCollapsed&&(this.nzCollapsed=i,this.nzCollapsedChange.emit(i),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}constructor(i,a,p){this.platform=i,this.cdr=a,this.breakpointService=p,this.destroy$=new m.x,this.nzMenuDirective=null,this.nzCollapsedChange=new n.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}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(C.ow,!0).pipe((0,M.R)(this.destroy$)).subscribe(i=>{const a=this.nzBreakpoint;a&&(0,c.ov)().subscribe(()=>{this.matchBreakPoint=!i[a],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:a,nzCollapsedWidth:p,nzWidth:y}=i;(a||p||y)&&this.updateStyleMap(),a&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(I.t4),n.Y36(n.sBO),n.Y36(C.r3))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-sider"]],contentQueries:function(i,a,p){if(1&i&&n.Suo(p,f.wO,5),2&i){let y;n.iGM(y=n.CRH())&&(a.nzMenuDirective=y.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(i,a){2&i&&(n.Udp("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.ekj("ant-layout-sider-zero-width",a.nzCollapsed&&0===a.nzCollapsedWidth)("ant-layout-sider-light","light"===a.nzTheme)("ant-layout-sider-dark","dark"===a.nzTheme)("ant-layout-sider-collapsed",a.nzCollapsed)("ant-layout-sider-has-trigger",a.nzCollapsible&&null!==a.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:[n.TTD],ngContentSelectors:E,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(i,a){1&i&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA(),n.YNc(2,O,1,8,"div",1)),2&i&&(n.xp6(2),n.Q6J("ngIf",a.nzCollapsible&&null!==a.nzTrigger))},dependencies:[e.O5,rn],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,c.yF)()],o.prototype,"nzReverseArrow",void 0),(0,s.gn)([(0,c.yF)()],o.prototype,"nzCollapsible",void 0),(0,s.gn)([(0,c.yF)()],o.prototype,"nzCollapsed",void 0),o})(),sn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new m.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(V.Is,8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-layout"]],contentQueries:function(i,a,p){if(1&i&&n.Suo(p,X,4),2&i){let y;n.iGM(y=n.CRH())&&(a.listOfNzSiderComponent=y)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(i,a){2&i&&n.ekj("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:E,decls:1,vars:0,template:function(i,a){1&i&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),o})(),ln=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[V.vT,e.ez,l.PV,v.xu,I.ud]}),o})();var $=t(6109),cn=t(9512),R=t(7398),w=t(7921),dn=t(553),J=t(313),G=t(8091),W=t(2787),k=t(2840),gn=t(855),pn=t(1958),H=t(2574),q=t(3640),nn=t(67),un=t(7458),mn=t(4989),zn=t(7501);function hn(o,r){if(1&o&&(n.TgZ(0,"button",25),n._uU(1," Add "),n._UZ(2,"i",26),n.qZA()),2&o){n.oxw(2);const i=n.MAs(15);n.Q6J("nzDropdownMenu",i)}}const Cn=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function fn(o,r){if(1&o&&(n.TgZ(0,"nz-badge",27)(1,"button",28),n._UZ(2,"i",29),n.qZA()()),2&o){const i=n.oxw().ngrxLet,a=n.oxw().ngIf;n.Q6J("nzCount",i)("nzOverflowCount",999)("nzStyle",n.DdM(4,Cn)),n.xp6(1),n.MGl("routerLink","/users/",a.id,"/notifications")}}const vn=function(o){return{"update-coi":o}};function Tn(o,r){if(1&o&&n._UZ(0,"cvc-user-avatar",34),2&o){const i=n.oxw(3).ngIf;n.Q6J("user",i)("size",22)("ngClass",n.VKq(3,vn,i.invalidCoi))}}function Mn(o,r){if(1&o&&(n.TgZ(0,"div",36),n._uU(1),n.qZA()),2&o){const i=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",i.username," ")}}function yn(o,r){1&o&&(n.ynx(0),n.YNc(1,Mn,2,1,"div",35),n.BQk())}function On(o,r){1&o&&n._UZ(0,"i",26)}function Pn(o,r){if(1&o&&(n.TgZ(0,"button",30)(1,"nz-space",31),n.YNc(2,Tn,1,5,"cvc-user-avatar",32),n.YNc(3,yn,2,0,"ng-container",0),n.YNc(4,On,1,0,"i",33),n.qZA()()),2&o){n.oxw(2);const i=n.MAs(3),a=n.oxw();n.Q6J("nzDropdownMenu",i),n.xp6(3),n.Q6J("ngIf",!a.cvcCollapsed)}}function An(o,r){1&o&&(n.TgZ(0,"nz-space",21),n.YNc(1,hn,3,1,"button",22),n.YNc(2,fn,3,5,"nz-badge",23),n.YNc(3,Pn,5,2,"button",24),n.qZA())}function xn(o,r){if(1&o){const i=n.EpF();n.TgZ(0,"li",37)(1,"button",38),n.NdJ("click",function(){n.CHM(i);const p=n.oxw(2);return n.KtG(p.coiUpdateModalVisible=!0)}),n._UZ(2,"i",39),n._uU(3," Please update COI statement "),n.qZA()()}}function En(o,r){1&o&&n._UZ(0,"li",14)}function Zn(o,r){1&o&&(n.TgZ(0,"li",40)(1,"a",41),n._uU(2," Admin Console "),n.qZA()())}function Un(o,r){1&o&&(n.TgZ(0,"li",42)(1,"a",43),n._uU(2," Background Workers "),n.qZA()())}function Sn(o,r){if(1&o){const i=n.EpF();n.TgZ(0,"li",37)(1,"a",44),n.NdJ("click",function(){n.CHM(i);const p=n.oxw(2);return n.KtG(p.addVariantModalVisible=!0)}),n._uU(2," Variant "),n.qZA()()}}const In=function(o){return["/users",o]};function Dn(o,r){if(1&o){const i=n.EpF();n.ynx(0),n.YNc(1,An,4,0,"nz-space",6),n.TgZ(2,"nz-dropdown-menu",null,7)(4,"ul",8),n.YNc(5,xn,4,0,"li",9),n.YNc(6,En,1,0,"li",10),n.TgZ(7,"li",11),n._uU(8," Your Profile "),n.qZA(),n.YNc(9,Zn,3,0,"li",12),n.YNc(10,Un,3,0,"li",13),n._UZ(11,"li",14),n.TgZ(12,"li",15),n.NdJ("click",function(){n.CHM(i);const p=n.oxw();return n.KtG(p.signOut())}),n._uU(13," Sign Out "),n.qZA()()(),n.TgZ(14,"nz-dropdown-menu",null,16)(16,"ul",8)(17,"li",17)(18,"a"),n._uU(19," Evidence Item "),n.qZA()(),n.TgZ(20,"li",18)(21,"a"),n._uU(22," Assertion "),n.qZA()(),n.TgZ(23,"li",19)(24,"a"),n._uU(25," Source Suggestion "),n.qZA()(),n.YNc(26,Sn,3,0,"li",9),n.TgZ(27,"li",20)(28,"a"),n._uU(29," Variant Group "),n.qZA()()()(),n.BQk()}if(2&o){const i=r.ngIf,a=n.oxw();n.xp6(1),n.Q6J("ngrxLet",a.unreadCount$),n.xp6(4),n.Q6J("ngIf",i.invalidCoi),n.xp6(1),n.Q6J("ngIf",i.invalidCoi),n.xp6(1),n.Q6J("routerLink",n.VKq(7,In,i.id)),n.xp6(2),n.Q6J("ngIf",i.isAdmin),n.xp6(1),n.Q6J("ngIf",i.isAdmin),n.xp6(16),n.Q6J("ngIf",i.isEditor)}}function Ln(o,r){1&o&&(n.TgZ(0,"span"),n._uU(1,"Update your Conflict of Interest Statement"),n.qZA())}function Bn(o,r){if(1&o){const i=n.EpF();n.TgZ(0,"cvc-user-coi-form",45),n.NdJ("coiUpdatedEvent",function(){n.CHM(i);const p=n.oxw();return n.KtG(p.coiUpdated())}),n.qZA()}}function Vn(o,r){1&o&&(n.TgZ(0,"span"),n._uU(1,"Add New Variant"),n.qZA())}function Nn(o,r){1&o&&n._UZ(0,"cvc-variant-submit-form")}let Rn=(()=>{class o{constructor(i,a){this.queryService=i,this.unreadCountGql=a,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.addVariantModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=dn.N.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,R.U)(({data:p})=>p.notifications.unreadCount),(0,w.O)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,R.U)(({data:p})=>p.notifications.unreadCount),(0,w.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(z.a),n.Y36(J.Kmw))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:12,vars:11,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["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-item","","href","/jobs",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item","","routerLink","/evidence/add/submit"],["nz-menu-item","","routerLink","/assertions/add/submit"],["nz-menu-item","","routerLink","/sources/add"],["nz-menu-item","","routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","small","nzType","link","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","small","nzType","link","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"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],["class","viewer-name",4,"nzSpaceItem"],[1,"viewer-name"],["nz-menu-item",""],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-icon","","nzType","exclamation-circle"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"click"],[3,"coiUpdatedEvent"]],template:function(i,a){if(1&i&&(n.YNc(0,Dn,30,9,"ng-container",0),n.ALo(1,"ngrxPush"),n.TgZ(2,"nz-modal",1),n.NdJ("nzVisibleChange",function(y){return a.coiUpdateModalVisible=y})("nzOnCancel",function(){return a.handleCoiModalCancel()}),n.YNc(3,Ln,2,0,"ng-template",null,2,n.W1O),n.YNc(5,Bn,1,0,"ng-template",null,3,n.W1O),n.qZA(),n.TgZ(7,"nz-modal",1),n.NdJ("nzVisibleChange",function(y){return a.addVariantModalVisible=y})("nzOnCancel",function(){return a.addVariantModalVisible=!1}),n.YNc(8,Vn,2,0,"ng-template",null,4,n.W1O),n.YNc(10,Nn,1,0,"ng-template",null,5,n.W1O),n.qZA()),2&i){const p=n.MAs(4),y=n.MAs(6),S=n.MAs(9),K=n.MAs(11);n.Q6J("ngIf",n.lcZ(1,9,a.viewer$)),n.xp6(2),n.Q6J("nzVisible",a.coiUpdateModalVisible)("nzContent",y)("nzTitle",p)("nzFooter",null),n.xp6(5),n.Q6J("nzVisible",a.addVariantModalVisible)("nzContent",K)("nzTitle",S)("nzFooter",null)}},dependencies:[e.mk,e.O5,G.eJ,f.wO,f.r9,f.YV,W.cm,W.RR,W.wA,g.rH,k.ix,gn.w,pn.dQ,H.NU,H.$1,l.Ls,q.x7,nn.du,un.L,mn.t,zn.G,G.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:#ffffffa6}.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}"]}),o})();function Jn(o){return o.toLowerCase().split("_").map(r=>r[0].toUpperCase()+r.substring(1)).join("")}var _=t(9691),Qn=t(6321),Fn=t(2428),tn=t(4911),Wn=t(9666),en=t(5676),_n=t(836),Kn=t(8753),Yn=t(4664),on=t(2181),$n=t(3997),j=t(6223),b=t(2392),Gn=t(6116),Hn=t(2616);function jn(o,r){if(1&o&&(n.TgZ(0,"span",7),n._uU(1," \u2014 "),n._UZ(2,"span",5),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(2),n.s9C("innerHTML",i.result.matchingText,n.oJD)}}function bn(o,r){if(1&o&&(n.TgZ(0,"nz-option",3),n._UZ(1,"i",4),n.ALo(2,"entityColor"),n.ALo(3,"iconNameForSubscribableEntity"),n._UZ(4,"span",5),n.YNc(5,jn,3,1,"span",6),n.qZA()),2&o){const i=r.$implicit,a=n.oxw();n.Q6J("nzValue",i.result),n.xp6(1),n.Q6J("nzTwotoneColor",n.lcZ(2,5,a.converter(i.result.resultType)))("nzType",n.lcZ(3,7,i.result.resultType)),n.xp6(3),n.s9C("innerHTML",i.result.name,n.oJD),n.xp6(1),n.Q6J("ngIf",i.result.matchingText)}}function Xn(o,r){1&o&&(n.TgZ(0,"nz-option",8),n._UZ(1,"i",9),n._uU(2," Loading Data... "),n.qZA())}let wn=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,a){this.gql=i,this.router=a,this.converter=Jn,this.onSearch$=new m.x,this.onSelect$=new m.x,this.response$=this.onSearch$.pipe((0,_n.T)(1),(0,Kn.p)(300,Qn.z,{leading:!1,trailing:!0}),(0,Yn.w)(S=>(0,Fn.s)(()=>void 0===this.queryRef,(0,tn.P)(()=>p(S)),(0,tn.P)(()=>y(S))))),this.isLoading$=this.response$.pipe((0,R.U)(S=>S.loading),(0,on.h)(en.ep),(0,$n.x)()),this.result$=this.response$.pipe((0,R.U)(S=>S.data?.search),(0,on.h)(en.ep)),this.option$=this.result$.pipe((0,R.U)(S=>{const K=[];return S.forEach(Y=>{Y&&K.push({text:Y.name,value:Y.id.toString(),result:Y})}),K})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const p=S=>(this.queryRef=this.gql.watch({query:S,highlightMatches:!0}),this.queryRef.valueChanges),y=S=>(0,Wn.D)(this.queryRef.refetch({query:S}))}urlForResult(i){let a;switch(i.resultType){case J.rZD.VariantGroup:a="variant-groups";break;case J.rZD.EvidenceItem:a="evidence";break;case J.rZD.MolecularProfile:a="molecular-profiles";break;default:a=`${i.resultType.toLowerCase()}s`}return`/${a}/${i.id}/summary`}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(J.ghc),n.Y36(g.F0))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(i,a){if(1&i&&n.Gf(_.Vq,7),2&i){let p;n.iGM(p=n.CRH())&&(a.selectNode=p.first)}},decls:5,vars:10,consts:[["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownMatchSelectWidth","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["nzDisabled","","nzCustomContent","",4,"ngIf"],["nzCustomContent","",3,"nzValue"],["nz-icon","","nzTheme","twotone",2,"margin-right","0.5em",3,"nzTwotoneColor","nzType"],[3,"innerHTML"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary"],["nzDisabled","","nzCustomContent",""],["nz-icon","","nzType","loading",1,"loading-icon"]],template:function(i,a){1&i&&(n.TgZ(0,"nz-select",0),n.NdJ("ngModelChange",function(y){return a.selectedOpt=y})("ngModelChange",function(y){return a.onSelect$.next(y)})("nzOnSearch",function(y){return a.onSearch$.next(y)}),n.YNc(1,bn,6,9,"nz-option",1),n.ALo(2,"ngrxPush"),n.YNc(3,Xn,3,0,"nz-option",2),n.ALo(4,"ngrxPush"),n.qZA()),2&i&&(n.Q6J("ngModel",a.selectedOpt)("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownMatchSelectWidth",!1),n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,6,a.option$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(4,8,a.isLoading$)))},dependencies:[e.sg,e.O5,j.JJ,j.On,b.ZU,_.Ip,_.Vq,l.Ls,G.fM,Gn.j,Hn.a],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}"]}),o})();function kn(o,r){1&o&&n._UZ(0,"img",64)}function qn(o,r){1&o&&n._UZ(0,"img",65)}function nt(o,r){1&o&&n._UZ(0,"cvc-login-button")}function tt(o,r){if(1&o&&n._UZ(0,"cvc-viewer-button",66),2&o){const i=n.oxw();n.Q6J("cvcCollapsed",i.isCollapsed)}}const Q=function(o){return{"is-collapsed":o}},et=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class o{constructor(i){this.viewerService=i,this.isCollapsed=!1}ngOnInit(){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 o.\u0275fac=function(i){return new(i||o)(n.Y36(z.a))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,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-molecularprofile"],["routerLink","/molecular-profiles"],["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","civic-clinicaltrial"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-therapy"],["routerLink","/therapies"],["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","civic-queue"],["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"],[3,"ngClass"],["nz-row","","id","header-row"],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","id","header-search",3,"nzFlex"],["nz-col","","nzFlex","1 0 auto","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["target","_blank","href","https://docs.civicdb.org/"],["nz-icon","","nzType","link"],["nz-col","","nzFlex","1 0 auto","id","header-viewer"],[4,"ngIf"],[3,"cvcCollapsed",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"],[3,"cvcCollapsed"]],template:function(i,a){1&i&&(n.TgZ(0,"nz-layout",0)(1,"nz-sider",1),n.NdJ("nzCollapsedChange",function(y){return a.isCollapsed=y}),n.TgZ(2,"a",2)(3,"div",3),n.YNc(4,kn,1,0,"img",4),n.YNc(5,qn,1,0,"img",5),n.qZA()(),n.TgZ(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n._UZ(10,"i",9),n.TgZ(11,"span")(12,"a",10),n._uU(13,"Assertions"),n.qZA()()(),n.TgZ(14,"li",8),n._UZ(15,"i",11),n.TgZ(16,"span")(17,"a",12),n._uU(18,"Evidence"),n.qZA()()(),n.TgZ(19,"li",8),n._UZ(20,"i",13),n.TgZ(21,"span")(22,"a",14),n._uU(23,"Molecular Profiles"),n.qZA()()(),n.TgZ(24,"li",8),n._UZ(25,"i",15),n.TgZ(26,"span")(27,"a",16),n._uU(28,"Genes"),n.qZA()()(),n.TgZ(29,"li",8),n._UZ(30,"i",17),n.TgZ(31,"span")(32,"a",18),n._uU(33,"Variants"),n.qZA()()(),n.TgZ(34,"li",8),n._UZ(35,"i",19),n.TgZ(36,"span")(37,"a",20),n._uU(38,"Variant Groups"),n.qZA()()()()(),n.TgZ(39,"li",8),n._UZ(40,"i",21),n.TgZ(41,"span")(42,"a",22),n._uU(43,"Clinical Trials"),n.qZA()()(),n.TgZ(44,"li",8),n._UZ(45,"i",23),n.TgZ(46,"span")(47,"a",24),n._uU(48,"Diseases"),n.qZA()()(),n.TgZ(49,"li",8),n._UZ(50,"i",25),n.TgZ(51,"span")(52,"a",26),n._uU(53,"Therapies"),n.qZA()()(),n.TgZ(54,"li",8),n._UZ(55,"i",27),n.TgZ(56,"span")(57,"a",28),n._uU(58,"Phenotypes"),n.qZA()()(),n.TgZ(59,"li",8),n._UZ(60,"i",29),n.TgZ(61,"span")(62,"a",30),n._uU(63,"Sources"),n.qZA()()(),n.TgZ(64,"li",8),n._UZ(65,"i",31),n.TgZ(66,"span")(67,"a",32),n._uU(68,"Variant Types"),n.qZA()()(),n.TgZ(69,"li",7)(70,"ul")(71,"li",8),n._UZ(72,"i",33),n.TgZ(73,"span")(74,"a",34),n._uU(75," Activity "),n.qZA()()(),n.TgZ(76,"li",8),n._UZ(77,"i",35),n.TgZ(78,"span")(79,"a",36),n._uU(80,"Queues"),n.qZA()()()()(),n.TgZ(81,"li",7)(82,"ul")(83,"li",8),n._UZ(84,"i",37),n.TgZ(85,"span")(86,"a",38),n._uU(87,"Contributors"),n.qZA()()(),n.TgZ(88,"li",8),n._UZ(89,"i",39),n.TgZ(90,"span")(91,"a",40),n._uU(92,"Organizations"),n.qZA()()()()(),n.TgZ(93,"li",7)(94,"ul")(95,"li",8),n._UZ(96,"i",41),n.TgZ(97,"span")(98,"a",42),n._uU(99," Data Releases "),n.qZA()()()()()(),n.TgZ(100,"div",43),n._UZ(101,"img",44)(102,"img",45),n.qZA()(),n.TgZ(103,"nz-layout",46)(104,"nz-header",47)(105,"div",48)(106,"div",49)(107,"span",50),n.NdJ("click",function(){return a.isCollapsed=!a.isCollapsed}),n._UZ(108,"i",51),n.qZA()(),n.TgZ(109,"div",52),n._UZ(110,"cvc-quicksearch"),n.qZA(),n.TgZ(111,"div",53)(112,"ul",54)(113,"li",55)(114,"a",56),n._uU(115,"Home"),n.qZA()(),n.TgZ(116,"li",55)(117,"a",57),n._uU(118),n.qZA()(),n.TgZ(119,"li",55)(120,"a",58),n._uU(121,"Help"),n.qZA()(),n.TgZ(122,"li",55)(123,"a",59),n._uU(124),n._UZ(125,"i",60),n.qZA()()()(),n.TgZ(126,"div",61),n.YNc(127,nt,1,0,"cvc-login-button",62),n.ALo(128,"async"),n.YNc(129,tt,1,1,"cvc-viewer-button",63),n.ALo(130,"async"),n.qZA()()(),n.TgZ(131,"nz-content"),n._UZ(132,"router-outlet"),n.qZA()()()),2&i&&(n.xp6(1),n.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",a.isCollapsed)("nzTrigger",null),n.xp6(2),n.Q6J("ngClass",n.VKq(43,Q,a.isCollapsed)),n.xp6(1),n.Q6J("ngIf",!a.isCollapsed),n.xp6(1),n.Q6J("ngIf",a.isCollapsed),n.xp6(1),n.Q6J("ngClass",n.VKq(45,Q,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.xp6(1),n.Q6J("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Genes":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variants":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Sources":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Activity":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Users":""),n.xp6(5),n.Q6J("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.xp6(5),n.Q6J("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.xp6(2),n.Q6J("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.xp6(5),n.Q6J("ngClass",n.VKq(47,Q,a.isCollapsed)),n.xp6(3),n.Q6J("ngClass",n.VKq(49,Q,a.isCollapsed)),n.xp6(1),n.Q6J("ngClass",n.VKq(51,Q,a.isCollapsed)),n.xp6(4),n.Q6J("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.xp6(1),n.Q6J("nzFlex",a.isCollapsed?"90px":"150px"),n.xp6(9),n.Oqu(a.isCollapsed?"About":"About CIViC"),n.xp6(6),n.hij(" ",a.isCollapsed?"Docs":"Documentation"," "),n.xp6(3),n.Q6J("ngIf",n.lcZ(128,39,a.signedOut$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(130,41,a.signedIn$)))},dependencies:[e.mk,e.O5,g.lC,g.rH,l.Ls,h.t3,h.SK,sn,an,D,X,f.wO,f.r9,f.uA,$.SY,cn.s,Rn,wn,e.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(100vw - 170px);z-index:10;color:#d6e4ff;transition:all .2s}.ant-layout-header.is-collapsed[_ngcontent-%COMP%]{transition:all .2s;width:calc(100vw - 80px)}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-row[_ngcontent-%COMP%]{flex-wrap:nowrap}#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}"],changeDetection:0}),o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(3577),t.e(7129),t.e(8592),t.e(7121)]).then(t.bind(t,9337)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(3407),t.e(3759)]).then(t.bind(t,3759)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(6735),t.e(5802)]).then(t.bind(t,6738)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(4449)]).then(t.bind(t,6444)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(2907)]).then(t.bind(t,2057)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(3180)]).then(t.bind(t,6534)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(5584)]).then(t.bind(t,5584)).then(o=>o.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(2602),t.e(7889),t.e(3577),t.e(7856),t.e(1364),t.e(8961),t.e(5604),t.e(7394),t.e(8592),t.e(1586)]).then(t.bind(t,1586)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(3577),t.e(5369)]).then(t.bind(t,1112)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(7889),t.e(8245),t.e(8961),t.e(6735),t.e(3241)]).then(t.bind(t,4710)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(7889),t.e(3577),t.e(8961),t.e(8479)]).then(t.bind(t,6536)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(4872),t.e(2212),t.e(5556),t.e(2602),t.e(7889),t.e(3577),t.e(7856),t.e(1364),t.e(8961),t.e(5604),t.e(7394),t.e(5167)]).then(t.bind(t,5167)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1703)]).then(t.bind(t,1703)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(5683),t.e(5978)]).then(t.bind(t,5978)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(1364),t.e(10),t.e(5683),t.e(4294)]).then(t.bind(t,4294)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(4872),t.e(5556),t.e(2602),t.e(5604),t.e(7774)]).then(t.bind(t,91)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(3290),t.e(5358)]).then(t.bind(t,5358)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(3517).then(t.bind(t,6602)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms2",loadChildren:()=>Promise.all([t.e(3290),t.e(3385),t.e(2212),t.e(6607),t.e(7129),t.e(8592),t.e(1914)]).then(t.bind(t,5910)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms2"}}]}];let ot=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[g.Bz.forChild(et),g.Bz]}),o})();var it=t(279),at=t(824),rt=t(3599),st=t(5717),lt=t(2524);let ct=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,j.u5,g.Bz,lt.s,b.ZJ,_.LV,at.o7,rt.U5,l.PV,st.ic]}),o})();var dt=t(5163),gt=t(1022),pt=t(8788),ut=t(2731);let mt=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,W.b1,g.Bz,k.sL,H.zf,l.PV,q.mS,$.cg,nn.Qp,gt.H,pt.e,ut.e]}),o})(),zt=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[e.ez,ot,l.PV,h.Jb,ln,f.ip,$.cg,b.ZJ,it.s,dt.B,mt,ct]}),o})()}}]); \ No newline at end of file diff --git a/server/public/9803.cc8d47b9b43faece.js b/server/public/9803.86a8ca138fe4b46c.js similarity index 97% rename from server/public/9803.cc8d47b9b43faece.js rename to server/public/9803.86a8ca138fe4b46c.js index b93875680..02c00ed54 100644 --- a/server/public/9803.cc8d47b9b43faece.js +++ b/server/public/9803.86a8ca138fe4b46c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9803],{9803:(I,h,o)=>{o.r(h),o.d(h,{EvidenceAddModule:()=>L});var c=o(6814),u=o(8603),v=o(2419),y=o(2524),p=o(95),g=o(551),m=o(6254),d=o(4190),S=o(7398),t=o(5879),C=o(951),E=o(8178),x=o(3145),N=o(8091),P=o(2616);function A(n,l){1&n&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function M(n,l){1&n&&(t.TgZ(0,"nz-row",7)(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA()())}let _=(()=>{class n{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,S.U)(r=>r.signedIn))}}return n.\u0275fac=function(r){return new(r||n)(t.Y36(C.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["evidence-add"]],decls:12,vars:7,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,f){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),t._UZ(3,"i",3),t.ALo(4,"entityColor"),t._uU(5," Add New Evidence "),t.qZA(),t.TgZ(6,"nz-page-header-content")(7,"div",4),t.YNc(8,A,2,0,"div",5),t.ALo(9,"ngrxPush"),t.YNc(10,M,3,0,"ng-template",null,6,t.W1O),t.qZA()()()),2&r){const F=t.MAs(11);t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,3,"EvidenceItem")),t.xp6(5),t.Q6J("ngIf",t.lcZ(9,5,f.isSignedIn$))("ngIfElse",F)}},dependencies:[c.O5,d.lC,p.t3,p.SK,g.Ls,m.$O,m.u9,m.u5,E.u,x.I,N.fM,P.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{flex-wrap:nowrap;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 w=o(2574),T=o(4139),k=o(2962),a=o(2840),i=o(6494),e=o(6223),s=o(7907),z=o(1416);let b=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[c.ez,e.u5,p.Jb,w.zf,k.vh,T.H0,z.Z,i.m,s.aF,p.Jb,g.PV,a.sL]}),n})();var D=o(6278);const O=[{path:"",component:_,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class n{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(f=>{this.evidenceId=+f.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(r){return new(r||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(r,f){1&r&&t._UZ(0,"cvc-evidence-submit-form")},dependencies:[D.l],encapsulation:2}),n})(),data:{breadcrumb:"Submit New Evidence"}}]}];let B=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[d.Bz.forChild(O),b,d.Bz]}),n})(),L=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[c.ez,B,p.Jb,g.PV,m.KJ,u.a,v.D,y.s]}),n})()},4139:(I,h,o)=>{o.d(h,{H0:()=>k});var c=o(5879),u=o(6814),v=o(9388);let k=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({imports:[v.vT,u.ez]}),a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9803],{9803:(I,h,o)=>{o.r(h),o.d(h,{EvidenceAddModule:()=>L});var c=o(6814),u=o(8603),v=o(2419),y=o(2524),p=o(95),g=o(551),m=o(6254),d=o(4190),S=o(7398),t=o(5879),C=o(951),E=o(8178),x=o(3145),N=o(8091),P=o(2616);function A(n,l){1&n&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function M(n,l){1&n&&(t.TgZ(0,"nz-row",7)(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA()())}let _=(()=>{class n{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,S.U)(r=>r.signedIn))}}return n.\u0275fac=function(r){return new(r||n)(t.Y36(C.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["evidence-add"]],decls:12,vars:7,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,f){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),t._UZ(3,"i",3),t.ALo(4,"entityColor"),t._uU(5," Add New Evidence "),t.qZA(),t.TgZ(6,"nz-page-header-content")(7,"div",4),t.YNc(8,A,2,0,"div",5),t.ALo(9,"ngrxPush"),t.YNc(10,M,3,0,"ng-template",null,6,t.W1O),t.qZA()()()),2&r){const F=t.MAs(11);t.xp6(3),t.Q6J("nzTwotoneColor",t.lcZ(4,3,"EvidenceItem")),t.xp6(5),t.Q6J("ngIf",t.lcZ(9,5,f.isSignedIn$))("ngIfElse",F)}},dependencies:[c.O5,d.lC,p.t3,p.SK,g.Ls,m.$O,m.u9,m.u5,E.u,x.I,N.fM,P.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{flex-wrap:nowrap;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 w=o(2574),T=o(4139),k=o(2962),a=o(2840),i=o(6494),e=o(6223),s=o(7907),z=o(8253);let b=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[c.ez,e.u5,p.Jb,w.zf,k.vh,T.H0,z.Z,i.m,s.aF,p.Jb,g.PV,a.sL]}),n})();var D=o(1679);const O=[{path:"",component:_,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class n{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(f=>{this.evidenceId=+f.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(r){return new(r||n)(t.Y36(d.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(r,f){1&r&&t._UZ(0,"cvc-evidence-submit-form")},dependencies:[D.l],encapsulation:2}),n})(),data:{breadcrumb:"Submit New Evidence"}}]}];let B=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[d.Bz.forChild(O),b,d.Bz]}),n})(),L=(()=>{class n{}return n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[c.ez,B,p.Jb,g.PV,m.KJ,u.a,v.D,y.s]}),n})()},4139:(I,h,o)=>{o.d(h,{H0:()=>k});var c=o(5879),u=o(6814),v=o(9388);let k=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({imports:[v.vT,u.ez]}),a})()}}]); \ No newline at end of file diff --git a/server/public/9939.11664881162fd2af.js b/server/public/9939.761484c53b695820.js similarity index 96% rename from server/public/9939.11664881162fd2af.js rename to server/public/9939.761484c53b695820.js index b578069e7..bfc277dd9 100644 --- a/server/public/9939.11664881162fd2af.js +++ b/server/public/9939.761484c53b695820.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9939],{9939:(x,i,o)=>{o.r(i),o.d(i,{AssertionAddModule:()=>b});var d=o(6814),s=o(4190),e=o(5879),r=o(6254),p=o(551),c=o(3145),g=o(2616);let h=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-add"]],decls:9,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[1,"content"]],template:function(n,M){1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),e._UZ(3,"i",3),e.ALo(4,"entityColor"),e._uU(5," Submit New Assertion "),e.qZA(),e.TgZ(6,"nz-page-header-content")(7,"div",4),e._UZ(8,"router-outlet"),e.qZA()()()),2&n&&(e.xp6(3),e.Q6J("nzTwotoneColor",e.lcZ(4,1,"Assertion")))},dependencies:[s.lC,r.$O,r.u9,r.u5,p.Ls,c.I,g.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{flex-wrap:nowrap;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 f=o(4975);let l=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.ez,f.E]}),t})();var u=o(1689);const m=[{path:"",component:h,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-submit"]],decls:1,vars:0,template:function(n,M){1&n&&e._UZ(0,"cvc-assertion-submit-form")},dependencies:[u.u],encapsulation:2}),t})(),data:{breadcrumb:"Submit New Assertion"}}]}];let A=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.Bz.forChild(m),l,s.Bz]}),t})();var z=o(2419),y=o(2524);let b=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.ez,A,r.KJ,p.PV,z.D,y.s]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9939],{9939:(x,i,o)=>{o.r(i),o.d(i,{AssertionAddModule:()=>b});var d=o(6814),s=o(4190),e=o(5879),r=o(6254),p=o(551),c=o(3145),g=o(2616);let h=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-add"]],decls:9,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[1,"content"]],template:function(n,M){1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1)(2,"nz-page-header-title",2),e._UZ(3,"i",3),e.ALo(4,"entityColor"),e._uU(5," Submit New Assertion "),e.qZA(),e.TgZ(6,"nz-page-header-content")(7,"div",4),e._UZ(8,"router-outlet"),e.qZA()()()),2&n&&(e.xp6(3),e.Q6J("nzTwotoneColor",e.lcZ(4,1,"Assertion")))},dependencies:[s.lC,r.$O,r.u9,r.u5,p.Ls,c.I,g.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{flex-wrap:nowrap;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 f=o(1810);let l=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.ez,f.E]}),t})();var u=o(6288);const m=[{path:"",component:h,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-assertion-submit"]],decls:1,vars:0,template:function(n,M){1&n&&e._UZ(0,"cvc-assertion-submit-form")},dependencies:[u.u],encapsulation:2}),t})(),data:{breadcrumb:"Submit New Assertion"}}]}];let A=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[s.Bz.forChild(m),l,s.Bz]}),t})();var z=o(2419),y=o(2524);let b=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.ez,A,r.KJ,p.PV,z.D,y.s]}),t})()}}]); \ No newline at end of file diff --git a/server/public/9949.0431d4cc1891ed4c.js b/server/public/9949.0431d4cc1891ed4c.js new file mode 100644 index 000000000..9e3f8f73d --- /dev/null +++ b/server/public/9949.0431d4cc1891ed4c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9949],{4758:(x,p,e)=>{e.d(p,{m:()=>T});var s=e(6814),g=e(9755),u=e(6165),t=e(1218),d=e(7528),h=e(3641),f=e(5956),C=e(8706),m=e(1106),M=e(5695),O=e(551),z=e(8527),D=e(5879);let T=(()=>{class a{}return a.\u0275fac=function(_){return new(_||a)},a.\u0275mod=D.oAB({type:a}),a.\u0275inj=D.cJS({imports:[s.ez,M.X,O.PV,g.y,u.W,t.i,d.Q,h.G,f.U,C.W,m.L,z.u]}),a})()},5098:(x,p,e)=>{e.d(p,{P:()=>T});var s=e(5879),g=e(4190),u=e(6814),t=e(9382),d=e(95),h=e(551),f=e(3640);const C=["tabBarExtraContent"];function m(a,v){if(1&a&&s.GkF(0,5),2&a){const _=s.oxw();s.Q6J("ngTemplateOutlet",_.tabBarExtraContent||null)}}const M=function(a){return{transform:"scale(0.75, 0.75) translate(0, -2px)",backgroundColor:a}};function O(a,v){if(1&a&&s._UZ(0,"nz-badge",10),2&a){const _=s.oxw(2).$implicit;s.hYB("nzTitle","",_.badgeCount," ",_.tabLabel,"(s)."),s.Q6J("nzCount",_.badgeCount)("nzStyle",s.VKq(4,M,_.badgeColor||"#ff4d4f"))}}function z(a,v){if(1&a&&(s.TgZ(0,"a",7),s._UZ(1,"i",8),s._uU(2),s.YNc(3,O,1,6,"nz-badge",9),s.qZA()),2&a){const _=s.oxw().$implicit;s.Q6J("routerLink",_.routeName),s.xp6(1),s.Q6J("nzType",_.iconName),s.xp6(1),s.hij(" ",_.tabLabel," "),s.xp6(1),s.Q6J("ngIf",_.badgeCount&&_.badgeCount>0)}}function D(a,v){1&a&&(s.TgZ(0,"nz-tab"),s.YNc(1,z,4,4,"a",6),s.qZA())}let T=(()=>{class a{constructor(_){this.router=_,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url)}getActivatedRouteIndex(_){return this.tabs?.findIndex(P=>_.includes(P.routeName))}}return a.\u0275fac=function(_){return new(_||a)(s.Y36(g.F0))},a.\u0275cmp=s.Xpm({type:a,selectors:[["cvc-tab-navigation"]],contentQueries:function(_,P,R){if(1&_&&s.Suo(R,C,5),2&_){let B;s.iGM(B=s.CRH())&&(P.tabBarExtraContent=B.first)}},inputs:{entity:"entity",tabs:"tabs"},decls:6,vars:3,consts:[["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex","nzTabBarExtraContent"],["extraTpl",""],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle",4,"ngIf"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle"]],template:function(_,P){if(1&_&&(s.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"nz-tabset",2),s.YNc(3,m,1,1,"ng-template",null,3,s.W1O),s.YNc(5,D,2,0,"nz-tab",4),s.qZA()()()),2&_){const R=s.MAs(4);s.xp6(2),s.Q6J("nzSelectedIndex",P.selectedTabIndex)("nzTabBarExtraContent",R),s.xp6(3),s.Q6J("ngForOf",P.tabs)}},dependencies:[u.sg,u.O5,u.tP,g.rH,t.xH,t.xw,t.Ao,t.Fx,d.t3,d.SK,h.Ls,f.x7],styles:["[_nghost-%COMP%]{display:block}"]}),a})()},4059:(x,p,e)=>{e.d(p,{c:()=>C});var s=e(6814),g=e(9382),u=e(95),t=e(4190),d=e(551),h=e(3640),f=e(5879);let C=(()=>{class m{}return m.\u0275fac=function(O){return new(O||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[s.ez,t.Bz,g.we,u.Jb,d.PV,h.mS]}),m})()},9543:(x,p,e)=>{e.d(p,{w:()=>T});var s=e(6814),g=e(6223),u=e(2962),t=e(3599),d=e(100),h=e(6545),f=e(2840),C=e(684),m=e(9382),M=e(4758),O=e(2669),z=e(6513),D=e(5879);let T=(()=>{class a{}return a.\u0275fac=function(_){return new(_||a)},a.\u0275mod=D.oAB({type:a}),a.\u0275inj=D.cJS({imports:[s.ez,g.UX,f.sL,u.vh,m.we,t.U5,O.j,z.Gl,g.u5,d.B,h.R,M.m,C.K]}),a})()},5883:(x,p,e)=>{e.d(p,{Z:()=>u});var s=e(5879);const g=["*"];let u=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(h){return new(h||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cvc-form-buttons"]],ngContentSelectors:g,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(h,f){1&h&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),t})()},6545:(x,p,e)=>{e.d(p,{R:()=>u});var s=e(6814),g=e(5879);let u=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=g.oAB({type:t}),t.\u0275inj=g.cJS({imports:[s.ez]}),t})()},6513:(x,p,e)=>{e.d(p,{Gl:()=>et,O3:()=>K,YW:()=>F,jO:()=>W});var s=e(9388),g=e(9594),u=e(6814),t=e(5879),d=e(6223),h=e(883),f=e(804),C=e(551),m=e(8645),M=e(2438),O=e(2096),z=e(5592),D=e(3019),T=e(7394),a=e(9773),v=e(3997),_=e(2460),P=e(7398),R=e(7921),B=e(4664),S=e(9087),w=e(655),I=e(6028),Y=e(8484),b=e(5448),L=e(7754);const Z=["items"];function J(i,c){1&i&&t.GkF(0)}const j=function(i){return{$implicit:i}};function Q(i,c){if(1&i&&(t.ynx(0),t.YNc(1,J,1,0,"ng-container",10),t.BQk()),2&i){const n=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",o.suggestionTemplate)("ngTemplateOutletContext",t.VKq(2,j,n))}}function V(i,c){if(1&i&&t._uU(0),2&i){const n=t.oxw().$implicit,o=t.oxw(2);t.Oqu(o.nzValueWith(n))}}function G(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"li",6,7),t.NdJ("click",function(){const l=t.CHM(n).$implicit,E=t.oxw(2);return t.KtG(E.selectSuggestion(l))}),t.YNc(2,Q,2,4,"ng-container",8),t.YNc(3,V,1,1,"ng-template",null,9,t.W1O),t.qZA()}if(2&i){const n=c.index,o=t.MAs(4),r=t.oxw(2);t.ekj("ant-mentions-dropdown-menu-item-active",n===r.activeIndex)("ant-mentions-dropdown-menu-item-selected",n===r.activeIndex),t.xp6(2),t.Q6J("ngIf",r.suggestionTemplate)("ngIfElse",o)}}function $(i,c){1&i&&(t.TgZ(0,"span"),t._UZ(1,"span",13),t.qZA())}function H(i,c){if(1&i&&(t.TgZ(0,"span"),t._UZ(1,"nz-embed-empty",14),t.qZA()),2&i){const n=t.oxw(3);t.xp6(1),t.Q6J("specificContent",n.nzNotFoundContent)}}function k(i,c){if(1&i&&(t.TgZ(0,"li",11),t.YNc(1,$,2,0,"span",12),t.YNc(2,H,2,1,"span",12),t.qZA()),2&i){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.nzLoading),t.xp6(1),t.Q6J("ngIf",!n.nzLoading)}}function X(i,c){if(1&i&&(t.TgZ(0,"div",2)(1,"ul",3),t.YNc(2,G,5,6,"li",4),t.YNc(3,k,3,2,"li",5),t.qZA()()),2&i){const n=t.oxw();t.xp6(2),t.Q6J("ngForOf",n.filteredSuggestions),t.xp6(1),t.Q6J("ngIf",0===n.filteredSuggestions.length)}}function q(i,c){if(1&i&&t._UZ(0,"nz-form-item-feedback-icon",15),2&i){const n=t.oxw();t.Q6J("status",n.status)}}const tt=["*"];let K=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275dir=t.lG2({type:i,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]}),i})();let U=(()=>{class i{constructor(){this.triggerChange$=new m.x}triggerChanged(){return this.triggerChange$.asObservable()}registerTrigger(n){this.trigger!==n&&(this.trigger=n,this.triggerChange$.next(n))}ngOnDestroy(){this.triggerChange$.complete()}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const nt={provide:d.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};let W=(()=>{class i{constructor(n,o,r,l,E){this.el=n,this.ngZone=o,this.ref=r,this.destroy$=l,this.nzMentionService=E,this.onChange=()=>{},this.onTouched=()=>{},this.onFocusin=new t.vpe,this.onBlur=new t.vpe,this.onInput=new t.vpe,this.onKeydown=new t.vpe,this.onClick=new t.vpe}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(n=null){this.el.nativeElement.focus(),this.el.nativeElement.setSelectionRange(n,n)}insertMention(n){const o=this.el.nativeElement.value,r=`${n.mention} `,l=[o.slice(0,n.startPos+1),r,o.slice(n.endPos,o.length)].join("");this.el.nativeElement.value=l,this.focus(n.startPos+r.length+1),this.onChange(l),this.value=l}writeValue(n){this.value=n,this.el.nativeElement.value="string"==typeof n?n:""}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}ngAfterViewInit(){this.nzMentionService.registerTrigger(this),this.setupEventListener("blur",this.onBlur),this.setupEventListener("focusin",this.onFocusin),this.setupEventListener("input",this.onInput,!0),this.setupEventListener("click",this.onClick,!0),this.setupEventListener("keydown",this.onKeydown,!0)}ngOnDestroy(){this.completeEvents()}setupEventListener(n,o,r=!1){this.ngZone.runOutsideAngular(()=>{(0,M.R)(this.el.nativeElement,n).pipe((0,a.R)(this.destroy$)).subscribe(l=>{o.observers.length&&this.ngZone.run(()=>{o.emit(r?l:void 0),this.ref.markForCheck()})})})}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(S.kn),t.Y36(U))},i.\u0275dir=t.lG2({type:i,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],outputs:{onFocusin:"onFocusin",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClick:"onClick"},exportAs:["nzMentionTrigger"],features:[t._Bn([S.kn,nt])]}),i})(),F=(()=>{class i{set suggestionChild(n){n&&(this.suggestionTemplate=n)}get triggerNativeElement(){return this.trigger.el.nativeElement}get focusItemElement(){const n=this.items?.toArray();return n&&n[this.activeIndex]?n[this.activeIndex].nativeElement:null}constructor(n,o,r,l,E,N,A,ot,it,st,rt,at){this.ngZone=n,this.ngDocument=o,this.directionality=r,this.cdr=l,this.overlay=E,this.viewContainerRef=N,this.elementRef=A,this.renderer=ot,this.nzMentionService=it,this.destroy$=st,this.nzFormStatusService=rt,this.nzFormNoStatusService=at,this.nzValueWith=_t=>_t,this.nzPrefix="@",this.nzLoading=!1,this.nzNotFoundContent="\u65e0\u5339\u914d\u7ed3\u679c\uff0c\u8f7b\u6572\u7a7a\u683c\u5b8c\u6210\u8f93\u5165",this.nzPlacement="bottom",this.nzSuggestions=[],this.nzStatus="",this.nzOnSelect=new t.vpe,this.nzOnSearchChange=new t.vpe,this.isOpen=!1,this.filteredSuggestions=[],this.suggestionTemplate=null,this.activeIndex=-1,this.dir="ltr",this.prefixCls="ant-mentions",this.statusCls={},this.status="",this.hasFeedback=!1,this.previousValue=null,this.cursorMention=null,this.overlayRef=null}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,v.x)((n,o)=>n.status===o.status&&n.hasFeedback===o.hasFeedback),(0,_.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,O.of)(!1)),(0,P.U)(([{status:n,hasFeedback:o},r])=>({status:r?"":n,hasFeedback:o})),(0,a.R)(this.destroy$)).subscribe(({status:n,hasFeedback:o})=>{this.setStatusStyles(n,o)}),this.nzMentionService.triggerChanged().subscribe(n=>{this.trigger=n,this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,a.R)(this.destroy$)).subscribe(n=>{this.dir=n})}ngOnChanges(n){const{nzSuggestions:o,nzStatus:r}=n;o&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1)),r&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.items.changes.pipe((0,R.O)(this.items),(0,B.w)(()=>{const n=this.items.toArray();return new z.y(o=>this.ngZone.runOutsideAngular(()=>(0,D.T)(...n.map(r=>(0,M.R)(r.nativeElement,"mousedown"))).subscribe(o)))})).subscribe(n=>{n.preventDefault()})}ngOnDestroy(){this.closeDropdown()}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger?(0,L.qR)(this.trigger.value,this.nzPrefix):[]}selectSuggestion(n){const o=this.nzValueWith(n);this.trigger.insertMention({mention:o,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(n),this.closeDropdown(),this.activeIndex=-1}handleInput(n){const o=n.target;this.trigger.onChange(o.value),this.trigger.value=o.value,this.resetDropdown()}handleKeydown(n){const o=n.keyCode;if(this.isOpen&&o===I.K5&&-1!==this.activeIndex&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),n.preventDefault();else if(o===I.oh||o===I.SV)this.resetDropdown(),n.stopPropagation();else{if(this.isOpen&&(o===I.Mf||o===I.hY))return void this.closeDropdown();this.isOpen&&o===I.LH&&(this.setPreviousItemActive(),n.preventDefault(),n.stopPropagation()),this.isOpen&&o===I.JH&&(this.setNextItemActive(),n.preventDefault(),n.stopPropagation())}}handleClick(){this.resetDropdown()}bindTriggerEvents(){this.trigger.onInput.subscribe(n=>this.handleInput(n)),this.trigger.onKeydown.subscribe(n=>this.handleKeydown(n)),this.trigger.onClick.subscribe(()=>this.handleClick())}suggestionsFilter(n,o){const r=n.substring(1);if(this.previousValue===n&&n!==this.cursorMention[0])return;this.previousValue=n,o&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});const l=r.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(E=>this.nzValueWith(E).toLowerCase().includes(l))}resetDropdown(n=!0){if(this.resetCursorMention(),"string"!=typeof this.cursorMention||!this.canOpen())return void this.closeDropdown();this.suggestionsFilter(this.cursorMention,n);const o=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=o>=0?o:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}canOpen(){const n=this.triggerNativeElement;return!n.readOnly&&!n.disabled}resetCursorMention(){const n=this.triggerNativeElement.value.replace(/[\r\n]/g," ")||"",o=this.triggerNativeElement.selectionStart,r="string"==typeof this.nzPrefix?[this.nzPrefix]:this.nzPrefix;let l=r.length;for(;l>=0;){const E=n.lastIndexOf(r[l],o),N=n.indexOf(" ",o)>-1?n.indexOf(" ",o):n.length,A=n.substring(E,N);if(!(E>0&&" "!==n[E-1]||E<0||A.includes(r[l],1)||A.includes(" ")))return this.cursorMention=A,this.cursorMentionStart=E,void(this.cursorMentionEnd=N);this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1,l--}}updatePositions(){const n=(0,L.Ly)(this.triggerNativeElement,this.cursorMentionStart),o=n.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+("bottom"===this.nzPlacement?n.height-6:-6);this.positionStrategy.withDefaultOffsetX(n.left-this.triggerNativeElement.scrollLeft).withDefaultOffsetY(o),"bottom"===this.nzPlacement&&this.positionStrategy.withPositions([...b.fG]),"top"===this.nzPlacement&&this.positionStrategy.withPositions([...b.A7]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){const n=r=>{const l=r.target;return this.isOpen&&l!==this.trigger.el.nativeElement&&!this.overlayRef?.overlayElement.contains(l)},o=new T.w0;return o.add(this.overlayRef.outsidePointerEvents().subscribe(r=>n(r)&&this.closeDropdown())),o.add(this.ngZone.runOutsideAngular(()=>(0,M.R)(this.ngDocument,"touchend").subscribe(r=>n(r)&&this.ngZone.run(()=>this.closeDropdown())))),o}attachOverlay(){this.overlayRef||(this.portal=new Y.UE(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayConfig(){return new g.X_({positionStrategy:this.getOverlayPosition(),scrollStrategy:this.overlay.scrollStrategies.reposition(),disposeOnNavigation:!0})}getOverlayPosition(){const n=[new g.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new g.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.trigger.el).withPositions(n).withFlexibleDimensions(!1).withPush(!1),this.positionStrategy}setStatusStyles(n,o){this.status=n,this.hasFeedback=o,this.cdr.markForCheck(),this.statusCls=(0,L.Zu)(this.prefixCls,n,o),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.elementRef.nativeElement,r):this.renderer.removeClass(this.elementRef.nativeElement,r)})}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(t.R0b),t.Y36(u.K0,8),t.Y36(s.Is,8),t.Y36(t.sBO),t.Y36(g.aV),t.Y36(t.s_b),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(U),t.Y36(S.kn),t.Y36(h.kH,8),t.Y36(h.yW,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-mention"]],contentQueries:function(n,o,r){if(1&n&&t.Suo(r,K,5,t.Rgc),2&n){let l;t.iGM(l=t.CRH())&&(o.suggestionChild=l.first)}},viewQuery:function(n,o){if(1&n&&(t.Gf(t.Rgc,5),t.Gf(Z,5,t.SBq)),2&n){let r;t.iGM(r=t.CRH())&&(o.suggestionsTemp=r.first),t.iGM(r=t.CRH())&&(o.items=r)}},hostAttrs:[1,"ant-mentions"],hostVars:2,hostBindings:function(n,o){2&n&&t.ekj("ant-mentions-rtl","rtl"===o.dir)},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:"nzLoading",nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions",nzStatus:"nzStatus"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange"},exportAs:["nzMention"],features:[t._Bn([U,S.kn]),t.TTD],ngContentSelectors:tt,decls:4,vars:1,consts:[["suggestions",""],["class","ant-mentions-suffix",3,"status",4,"ngIf"],[1,"ant-mentions-dropdown"],["role","menu","tabindex","0",1,"ant-mentions-dropdown-menu"],["class","ant-mentions-dropdown-menu-item","role","menuitem","tabindex","-1",3,"ant-mentions-dropdown-menu-item-active","ant-mentions-dropdown-menu-item-selected","click",4,"ngFor","ngForOf"],["class","ant-mentions-dropdown-menu-item ant-mentions-dropdown-menu-item-disabled",4,"ngIf"],["role","menuitem","tabindex","-1",1,"ant-mentions-dropdown-menu-item",3,"click"],["items",""],[4,"ngIf","ngIfElse"],["defaultSuggestion",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-mentions-dropdown-menu-item","ant-mentions-dropdown-menu-item-disabled"],[4,"ngIf"],["nz-icon","","nzType","loading"],["nzComponentName","select",3,"specificContent"],[1,"ant-mentions-suffix",3,"status"]],template:function(n,o){1&n&&(t.F$t(),t.Hsn(0),t.YNc(1,X,4,2,"ng-template",null,0,t.W1O),t.YNc(3,q,1,1,"nz-form-item-feedback-icon",1)),2&n&&(t.xp6(3),t.Q6J("ngIf",o.hasFeedback&&!!o.status))},dependencies:[u.sg,u.O5,u.tP,C.Ls,f.gB,h.w_],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,L.yF)()],i.prototype,"nzLoading",void 0),i})(),et=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[s.vT,u.ez,d.u5,g.U8,C.PV,f.Xo,h.mJ]}),i})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-ad6e3ee185a4a498864b64bd8f8060ec.json b/server/public/assets/.sprockets-manifest-91e2ba279c4581bb24482d6d19084510.json similarity index 83% rename from server/public/assets/.sprockets-manifest-ad6e3ee185a4a498864b64bd8f8060ec.json rename to server/public/assets/.sprockets-manifest-91e2ba279c4581bb24482d6d19084510.json index c3be5a3e9..8011dfcf8 100644 --- a/server/public/assets/.sprockets-manifest-ad6e3ee185a4a498864b64bd8f8060ec.json +++ b/server/public/assets/.sprockets-manifest-91e2ba279c4581bb24482d6d19084510.json @@ -1 +1 @@ -{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2023-10-20T15:37:32+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2023-10-20T15:37:32+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2023-10-20T15:37:32+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2023-10-20T15:37:32+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2023-10-20T15:37:32+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2023-10-20T15:37:32+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2023-10-20T15:37:32+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2023-10-20T15:37:32+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2023-10-20T15:37:32+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2023-10-20T15:37:32+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2023-10-20T15:37:32+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2023-10-20T15:37:32+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2023-10-20T15:37:32+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2023-10-20T15:37:32+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2023-10-20T15:37:32+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2023-10-20T15:37:32+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js":{"logical_path":"trestle/admin.js","mtime":"2023-10-20T15:37:32+00:00","size":384495,"digest":"693af0bd16d1ebd9399c4df171bae5cf01c963c86bae45c57af432d54dfd003e","integrity":"sha256-aTrwvRbR69k5nE3xcbrlzwHJY8hrrkXFevQy1U39AD4="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2023-10-20T15:37:32+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2023-10-20T15:37:32+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2023-10-20T15:37:32+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2023-10-20T15:37:32+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2023-10-20T15:37:32+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2023-10-20T15:37:32+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css":{"logical_path":"trestle/theme.css","mtime":"2023-10-20T15:37:32+00:00","size":18638,"digest":"6fc27e1defe878adad3537b7b479493c658ddc74fea8cb576116de88ee9354ea","integrity":"sha256-b8J+He/oeK2tNTe3tHlJPGWN3HT+qMtXYRbeiO6TVOo="}},"assets":{"trestle/admin.css":"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.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-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css"}} \ No newline at end of file +{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2023-11-08T20:44:58+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2023-11-08T20:44:58+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2023-11-08T20:44:58+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2023-11-08T20:44:58+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2023-11-08T20:44:58+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2023-11-08T20:44:58+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2023-11-08T20:44:58+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2023-11-08T20:44:58+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2023-11-08T20:44:58+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2023-11-08T20:44:58+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2023-11-08T20:44:58+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2023-11-08T20:44:58+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2023-11-08T20:44:58+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2023-11-08T20:44:58+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2023-11-08T20:44:58+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2023-11-08T20:44:58+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js":{"logical_path":"trestle/admin.js","mtime":"2023-11-08T20:44:58+00:00","size":384495,"digest":"693af0bd16d1ebd9399c4df171bae5cf01c963c86bae45c57af432d54dfd003e","integrity":"sha256-aTrwvRbR69k5nE3xcbrlzwHJY8hrrkXFevQy1U39AD4="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2023-11-08T20:44:58+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2023-11-08T20:44:58+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2023-11-08T20:44:58+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2023-11-08T20:44:58+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2023-11-08T20:44:58+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2023-11-08T20:44:58+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css":{"logical_path":"trestle/theme.css","mtime":"2023-11-08T20:44:58+00:00","size":18638,"digest":"6fc27e1defe878adad3537b7b479493c658ddc74fea8cb576116de88ee9354ea","integrity":"sha256-b8J+He/oeK2tNTe3tHlJPGWN3HT+qMtXYRbeiO6TVOo="}},"assets":{"trestle/admin.css":"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.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-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.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 8c5bd953c..60ba57276 100644 Binary files a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz and b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz differ diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz index 2863f56ef..3f19796ba 100644 Binary files a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz and b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz differ diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz index 574cac86a..a13344b29 100644 Binary files a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz and b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz differ diff --git a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz index 6b08f8567..44ce548d8 100644 Binary files a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz and b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz differ diff --git a/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz b/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz index 60145b16f..3f01257de 100644 Binary files a/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz and b/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz differ diff --git a/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz b/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz index 8be25d83e..13fdf901c 100644 Binary files a/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz and b/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz differ diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index ad34cede9..dbed3dcaa 100644 Binary files a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz and b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz index 8fe3a801c..ab6202da7 100644 Binary files a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz and b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz index c458e15ff..cbfdc3257 100644 Binary files a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz and b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz index 7ee68c2a3..1eab1fd2b 100644 Binary files a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz and b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz index 44db489cd..df04a7799 100644 Binary files a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz and b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz index f2288160b..22dea9576 100644 Binary files a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz and b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz index 708e30bc4..6ab0e28f9 100644 Binary files a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz and b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz index 09db8f21c..2a653403a 100644 Binary files a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz and b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz index 93a19c150..1f700d266 100644 Binary files a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz and b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz index bd36bbf92..262816fcf 100644 Binary files a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz and b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz differ diff --git a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz index 9e1454bbd..977823053 100644 Binary files a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz and b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz differ diff --git a/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz b/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz index 228d047de..ea6049f25 100644 Binary files a/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz and b/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz differ diff --git a/server/public/common.a735324db7b1af7f.js b/server/public/common.a735324db7b1af7f.js deleted file mode 100644 index 532092e78..000000000 --- a/server/public/common.a735324db7b1af7f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{7525:(A,C,e)=>{e.d(C,{h:()=>E});var p=e(6814),u=e(551),M=e(5879);let E=(()=>{class m{}return m.\u0275fac=function(y){return new(y||m)},m.\u0275mod=M.oAB({type:m}),m.\u0275inj=M.cJS({imports:[p.ez,u.PV]}),m})()},8178:(A,C,e)=>{e.d(C,{u:()=>r});var p=e(5879),u=e(9512),M=e(804),E=e(551),m=e(2392);function f(g,c){1&g&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function y(g,c){1&g&&p._UZ(0,"cvc-login-button")}function _(g,c){1&g&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let r=(()=>{class g{}return g.\u0275fac=function(a){return new(a||g)},g.\u0275cmp=p.Xpm({type:g,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(a,o){if(1&a&&(p.TgZ(0,"nz-empty",0),p.YNc(1,f,2,0,"ng-template",null,1,p.W1O),p.YNc(3,y,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,_,2,0,"ng-template",null,3,p.W1O)),2&a){const l=p.MAs(2),O=p.MAs(4),S=p.MAs(6);p.Q6J("nzNotFoundImage",S)("nzNotFoundContent",l)("nzNotFoundFooter",O)}},dependencies:[u.s,M.p9,E.Ls,m.ZU],styles:["[_nghost-%COMP%]{display:inline-block}"]}),g})()},8603:(A,C,e)=>{e.d(C,{a:()=>y});var p=e(6814),u=e(5163),M=e(804),E=e(551),m=e(2392),f=e(5879);let y=(()=>{class _{}return _.\u0275fac=function(g){return new(g||_)},_.\u0275mod=f.oAB({type:_}),_.\u0275inj=f.cJS({imports:[p.ez,u.B,M.Xo,E.PV,m.ZJ]}),_})()},1689:(A,C,e)=>{e.d(C,{u:()=>T});var p=e(655),u=e(6223),M=e(2024),E=e(5884),m=e(5710),f=e(5234),y=e(1791);const g=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Assertion",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"New Assertion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",watchVariantMolecularProfileId:!0,colSpan:16}},{key:"assertionType",type:"type-select",props:{required:!0,colSpan:8}},{key:"assertionDirection",type:"direction-select",props:{required:!0,colSpan:8}},{key:"significance",type:"significance-select",props:{required:!0,colSpan:8}},{key:"diseaseId",type:"disease-select",props:{colSpan:8}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{colSpan:8}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{colSpan:8}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{colSpan:8}},{key:"nccnGuidelineId",type:"nccn-guideline-select",props:{}},{key:"nccnGuidelineVersion",type:"nccn-guideline-version-input",props:{}},{key:"fdaRegulatoryApproval",type:"fda-regulatory-approval-checkbox",props:{}},{key:"fdaCompanionTest",type:"fda-companion-test-checkbox",props:{}},{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0,colSpan:24}},{key:"summary",type:"textarea",wrappers:["form-field"],props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"A complete, original description of this Assertion. Limited to one paragraph.",placeholder:"Enter an Assertion Statement",label:"Assertion Statement",required:!0,rows:5,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment"}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Assertion"}}]}]}],E.J);var b,c=e(5879),a=e(313),o=e(7473),l=e(3599),O=e(4190),S=e(5545),F=e(4634);const D=function(I){return["/assertions",I,"summary"]};function P(I,h){if(1&I&&(c._uU(0," View your submitted Assertion "),c.TgZ(1,"a",4),c._uU(2,"here"),c.qZA(),c._uU(3,". You will be redirected shortly. ")),2&I){const v=c.oxw();c.xp6(1),c.Q6J("routerLink",c.VKq(1,D,v.newAssertionId))}}let T=((b=class{constructor(h,v){this.submitAssertionGQL=h,this.networkErrorService=v,this.form=new u.nJ({}),this.model=E.J,this.fields=g,this.state=new m._,this.options={formState:this.state},this.submitAssertionMutator=new M.U(v)}onSubmit(h){let v=(0,f.XU)(h);v&&(this.mutationState=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:v},void 0,d=>{this.newAssertionId=d.submitAssertion?.assertion.id,this.newAssertionUrl=`/assertions/${this.newAssertionId}/summary`}))}ngAfterViewInit(){this.state.formReady$.next(!0)}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(h){return new(h||b)(c.Y36(a.LLl),c.Y36(o.Y))},b.\u0275cmp=c.Xpm({type:b,selectors:[["cvc-assertion-submit-form"]],decls:5,vars:8,consts:[["entityType","Assertion",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"],[3,"routerLink"]],template:function(h,v){if(1&h&&(c.TgZ(0,"cvc-form-submission-status-display",0),c.YNc(1,P,4,3,"ng-template",null,1,c.W1O),c.TgZ(3,"form",2),c.NdJ("ngSubmit",function(){return v.onSubmit(v.model)}),c.TgZ(4,"formly-form",3),c.NdJ("modelChange",function(s){return v.model=s}),c.qZA()()()),2&h){const d=c.MAs(2);c.Q6J("mutationState",v.mutationState)("redirectUrl",v.newAssertionUrl)("successMessage",d),c.xp6(3),c.Q6J("formGroup",v.form),c.xp6(1),c.Q6J("form",v.form)("fields",v.fields)("model",v.model)("options",v.options)}},dependencies:[l.Lr,O.rH,u._Y,u.JL,u.sg,S.T7,F.F],encapsulation:2,changeDetection:0}),b);T=(0,p.gn)([(0,y.c)()],T)},4975:(A,C,e)=>{e.d(C,{E:()=>r});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(279),f=e(5106),y=e(4190),_=e(5879);let r=(()=>{class g{}return g.\u0275fac=function(a){return new(a||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[p.ez,u.U5,M.sL,y.Bz,E.S,f.g,m.s]}),g})()},7471:(A,C,e)=>{e.d(C,{A:()=>_});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(279),f=e(5106),y=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},9958:(A,C,e)=>{e.d(C,{r:()=>h});var p=e(655),u=e(6223),M=e(2024),E=e(3684),m=e(1565),f=e(1791);const c=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Evidence Item",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0}},{key:"sourceId",type:"source-select",props:{required:!0}},{key:"evidenceType",type:"type-select",props:{required:!0}},{key:"evidenceDirection",type:"direction-select",props:{required:!0,formMode:"revise"}},{key:"significance",type:"significance-select",props:{required:!0,formMode:"revise"}},{key:"diseaseId",type:"disease-select",props:{}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{required:!0}},{key:"rating",type:"rating",props:{required:!0}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"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. ",placeholder:"Enter an Evidence Statement",extraType:"description",description:'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).',label:"Evidence Statement",required:!0,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,drugIds:[],therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:[],rating:void 0,sourceId:void 0,variantOrigin:void 0},comment:void 0,organizationId:void 0});var D,a=e(5879),o=e(313),l=e(7473),O=e(6814),S=e(3599),F=e(5545),b=e(4634);function P(v,d){if(1&v&&(a._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or you can view them "),a.TgZ(1,"a",4),a._uU(2,"here."),a.qZA()),2&v){const s=a.oxw();a.xp6(1),a.s9C("href",s.url,a.LSH)}}function T(v,d){if(1&v){const s=a.EpF();a.TgZ(0,"form",5),a.NdJ("ngSubmit",function(){a.CHM(s);const n=a.oxw();return a.KtG(n.onSubmit(n.model))}),a.TgZ(1,"formly-form",6),a.NdJ("modelChange",function(n){a.CHM(s);const i=a.oxw();return a.KtG(i.model=n)}),a.qZA()()}if(2&v){const s=a.oxw();a.Q6J("formGroup",s.form),a.xp6(1),a.Q6J("form",s.form)("fields",s.fields)("model",s.model)("options",s.options)}}function I(v,d){1&v&&a._uU(0," Loading Evidence Item... ")}let h=((D=class{constructor(d,s,t,n){this.revisableFieldsGQL=d,this.submitRevisionsGQL=s,this.networkErrorService=t,this.cdr=n,this.form=new u.nJ({}),this.fields=c,this.state=new E._,this.options={formState:this.state},this.reviseEvidenceMutator=new M.U(t)}ngOnInit(){this.url=`/evidence/${this.evidenceId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).pipe((0,f.t)(this)).subscribe({next:({data:{evidenceItem:d}})=>{d&&(this.model={id:d.id,fields:(0,m.ux)(d)},this.cdr.detectChanges())},error:d=>{console.error("Error retrieving evidenceItem."),console.error(d)},complete:()=>{this.state.formReady$.next(!0),console.log("evidence item retrieved.")}})}onSubmit(d){if(!this.evidenceId)return;let s=(0,m.Ct)(this.evidenceId,d);s&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:s}))}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(d){return new(d||D)(a.Y36(o.h_Y),a.Y36(o.F1Y),a.Y36(l.Y),a.Y36(a.sBO))},D.\u0275cmp=a.Xpm({type:D,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:5,consts:[["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(d,s){if(1&d&&(a.TgZ(0,"cvc-form-submission-status-display",0),a.YNc(1,P,3,1,"ng-template",null,1,a.W1O),a.YNc(3,T,2,5,"form",2),a.YNc(4,I,1,0,"ng-template",null,3,a.W1O),a.qZA()),2&d){const t=a.MAs(2),n=a.MAs(5);a.Q6J("mutationState",s.mutationState)("successMessage",t)("redirectUrl",s.url),a.xp6(3),a.Q6J("ngIf",s.model)("ngIfElse",n)}},dependencies:[O.O5,S.Lr,u._Y,u.JL,u.sg,F.T7,b.F],encapsulation:2,changeDetection:0}),D);h=(0,p.gn)([(0,f.c)()],h)},296:(A,C,e)=>{e.d(C,{C:()=>_});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(279),f=e(5106),y=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},1858:(A,C,e)=>{e.d(C,{$:()=>d});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(2701);const a=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Gene",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Gene.",placeholder:"Enter a Gene Summary",label:"Gene Summary",required:!1,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Gene Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var P,o=e(5879),l=e(313),O=e(7473),S=e(6814),F=e(3599),b=e(5545),D=e(4634);function T(s,t){if(1&s&&(o._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.TgZ(1,"a",4),o._uU(2,"here."),o.qZA()),2&s){const n=o.oxw();o.xp6(1),o.s9C("href",n.url,o.LSH)}}const I=function(){return{}};function h(s,t){if(1&s){const n=o.EpF();o.TgZ(0,"form",5),o.NdJ("ngSubmit",function(){o.CHM(n);const R=o.oxw();return o.KtG(R.onSubmit(R.model))}),o.TgZ(1,"formly-form",6),o.NdJ("modelChange",function(R){o.CHM(n);const L=o.oxw();return o.KtG(L.model=R)}),o.qZA()()}if(2&s){const n=o.oxw();o.Q6J("formGroup",n.form),o.xp6(1),o.Q6J("form",n.form)("fields",n.fields)("model",n.model)("options",o.DdM(5,I))}}function v(s,t){1&s&&o._uU(0," Loading Gene... ")}let d=((P=class{constructor(t,n,i,R){this.revisableFieldsGQL=t,this.submitRevisionsGQL=n,this.networkErrorService=i,this.cdr=R,this.form=new u.nJ({}),this.fields=a,this.reviseEvidenceMutator=new E.U(i)}ngOnInit(){this.url=`/genes/${this.geneId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId}).pipe((0,M.t)(this)).subscribe({next:({data:{gene:t}})=>{var s;t&&(this.model={id:t.id,fields:(s=t,{description:s.description,sourceIds:s.sources.map(t=>t.id)})},this.cdr.detectChanges())},error:t=>{console.error("Error retrieving Gene."),console.error(t)},complete:()=>{}})}onSubmit(t){if(!this.geneId)return;let n=function y(s,t){const n=t.fields;if(t.comment)return{id:s,fields:{description:m.xt(n.description),sourceIds:n.sourceIds||[]},organizationId:t.organizationId,comment:t.comment}}(this.geneId,t);n&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:n}))}}).\u0275fac=function(t){return new(t||P)(o.Y36(l.FOU),o.Y36(l.D9L),o.Y36(O.Y),o.Y36(o.sBO))},P.\u0275cmp=o.Xpm({type:P,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:6,vars:5,consts:[["entityType","Gene",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(t,n){if(1&t&&(o.TgZ(0,"cvc-form-submission-status-display",0),o.YNc(1,T,3,1,"ng-template",null,1,o.W1O),o.YNc(3,h,2,6,"form",2),o.YNc(4,v,1,0,"ng-template",null,3,o.W1O),o.qZA()),2&t){const i=o.MAs(2),R=o.MAs(5);o.Q6J("redirectUrl",n.url)("mutationState",n.mutationState)("successMessage",i),o.xp6(3),o.Q6J("ngIf",n.model)("ngIfElse",R)}},dependencies:[S.O5,F.Lr,u._Y,u.JL,u.sg,b.T7,D.F],encapsulation:2,changeDetection:0}),P);d=(0,p.gn)([(0,M.c)()],d)},9934:(A,C,e)=>{e.d(C,{i:()=>_});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(279),f=e(5106),y=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},3610:(A,C,e)=>{e.d(C,{R:()=>v});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(2701);const a=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Molecular Profile",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"description",type:"textarea",wrappers:["form-field"],props:{placeholder:"Enter a Molecular Profile Description",label:"Molecular Profile Description",description:"Provide a summary of the clinical relevance of this Molecular Profile. The Molecular Profile Summary should be a synthesis of the existing Evidence Statements for this profile. Basic information on recurrence rates and biological/functional impact of the variants may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance).",extraType:"prompt",required:!1,rows:5,colSpan:24}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases",description:"List any aliases commonly used to refer to this Molecular Profile",extraType:"prompt"}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Molecular Profile Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0,aliases:void 0},comment:void 0,organizationId:void 0});var P,o=e(5879),l=e(313),O=e(7473),S=e(6814),F=e(3599),b=e(5545),D=e(4634);function T(d,s){if(1&d&&(o._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.TgZ(1,"a",4),o._uU(2,"here."),o.qZA()),2&d){const t=o.oxw();o.xp6(1),o.s9C("href",t.url,o.LSH)}}function I(d,s){if(1&d){const t=o.EpF();o.TgZ(0,"form",5),o.NdJ("ngSubmit",function(){o.CHM(t);const i=o.oxw();return o.KtG(i.onSubmit(i.model))}),o.TgZ(1,"formly-form",6),o.NdJ("modelChange",function(i){o.CHM(t);const R=o.oxw();return o.KtG(R.model=i)}),o.qZA()()}if(2&d){const t=o.oxw();o.Q6J("formGroup",t.form),o.xp6(1),o.Q6J("form",t.form)("fields",t.fields)("model",t.model)("options",t.options)}}function h(d,s){1&d&&o._uU(0," Loading Molecular Profile... ")}let v=((P=class{constructor(s,t,n,i){this.revisableFieldsGQL=s,this.submitRevisionsGQL=t,this.cdr=n,this.form=new u.nJ({}),this.options={formState:{isSimpleMp:void 0}};const R=a[0]?.fieldGroup?.find(L=>"fields"==L.key)?.fieldGroup?.find(L=>"aliases"==L.key);if(R){const L=R.props?.description;R.expressions={"props.disabled":x=>x.options?.formState.isSimpleMp,"props.description":x=>x.options?.formState.isSimpleMp?"Simple Molecular Profiles inherit their Aliases from the corresponding Variant.":L}}this.fields=a,this.reviseEvidenceMutator=new E.U(i)}ngOnInit(){this.url=`/molecular-profiles/${this.molecularProfileId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({molecularProfileId:this.molecularProfileId}).pipe((0,M.t)(this)).subscribe({next:({data:{molecularProfile:s}})=>{var d;s&&(this.options.formState.isSimpleMp=!s.isComplex,this.model={id:s.id,fields:(d=s,{description:d.description,sourceIds:d.sources.map(s=>s.id),aliases:d.molecularProfileAliases})},this.cdr.detectChanges())},error:s=>{console.error("Error retrieving MolecularProfile."),console.error(s)},complete:()=>{}})}onSubmit(s){if(!this.molecularProfileId)return;let t=function y(d,s){const t=s.fields;if(s.comment)return{id:d,fields:{description:m.xt(t.description),sourceIds:t.sourceIds||[],aliases:t.aliases||[]},organizationId:s.organizationId,comment:s.comment}}(this.molecularProfileId,s);t&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:t}))}}).\u0275fac=function(s){return new(s||P)(o.Y36(l.pR8),o.Y36(l.T1I),o.Y36(o.sBO),o.Y36(O.Y))},P.\u0275cmp=o.Xpm({type:P,selectors:[["cvc-mp-revise-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:5,consts:[["entityType","Molecular Profile",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(s,t){if(1&s&&(o.TgZ(0,"cvc-form-submission-status-display",0),o.YNc(1,T,3,1,"ng-template",null,1,o.W1O),o.YNc(3,I,2,5,"form",2),o.YNc(4,h,1,0,"ng-template",null,3,o.W1O),o.qZA()),2&s){const n=o.MAs(2),i=o.MAs(5);o.Q6J("redirectUrl",t.url)("mutationState",t.mutationState)("successMessage",n),o.xp6(3),o.Q6J("ngIf",t.model)("ngIfElse",i)}},dependencies:[S.O5,F.Lr,u._Y,u.JL,u.sg,b.T7,D.F],encapsulation:2,changeDetection:0}),P);v=(0,p.gn)([(0,M.c)()],v)},1351:(A,C,e)=>{e.d(C,{K:()=>_});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(279),f=e(5106),y=e(5879);let _=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},9230:(A,C,e)=>{e.d(C,{J:()=>s});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(2701);const g=(0,e(7745).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Variant",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Variant"},fieldGroup:[{key:"geneId",type:"gene-select",props:{description:"Enter an Entrez Gene for this Variant"}},{key:"name",type:"input",wrappers:["form-field"],props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",extraType:"prompt",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",extraType:"prompt",placeholder:"Enter Alias and hit return"}},{key:"hgvsDescriptions",type:"tag-multi-input",wrappers:["form-field"],props:{label:"HGVS Descriptions",description:"HGVS Descriptions",extraType:"prompt",placeholder:"Enter HGVS and hit return"}},{key:"clinvarIds",type:"clinvar-multi-input",wrappers:["form-field"],props:{label:"ClinVar IDs",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},{key:"variantTypeIds",type:"variant-type-multi-select",wrappers:["form-field"]},{template:"

Primary (5') Coordinates

",props:{colSpan:24}},{key:"referenceBuild",type:"reference-build-select"},{key:"ensemblVersion",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^\d{2,3}$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" does not appear to be an Ensembl version number`}},props:{label:"Ensembl Version",description:"Enter a valid Ensembl database version (e.g. 75)"}},{key:"referenceBases",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^[ACTG\\]+$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" contains invalid characters.`}},props:{label:"Reference Bases",description:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank)"}},{key:"variantBases",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^[ACTG\\]+$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" contains invalid characters.`}},props:{label:"Variant Bases",description:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank)"}},{key:"chromosome",type:"select",wrappers:["form-field"],props:{label:"Chromosome",options:m.aP,description:"Specify the chromosome in which this variant occurs (e.g. 17)."}},{key:"start",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Start coordinate must be numeric"}},props:{label:"Start",description:"Enter the left/first coordinate of this variant. Must be \u2264 the Stop coordinate. Coordinate must be compatible with the selected reference build."}},{key:"stop",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Stop coordinate must be numeric"}},props:{label:"Stop",description:"Provide the right/second coordinate of this variant. Must be \u2265 the Start coordinate. Coordinate must be compatible with the selected reference build."}},{key:"representativeTranscript",type:"input",wrappers:["form-field"],props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

Secondary (3') Coordinates

",props:{colSpan:24}},{key:"chromosome2",type:"select",wrappers:["form-field"],props:{label:"Chromosome",options:m.aP,description:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"start2",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Start coordinate must be numeric"}},props:{label:"Start",description:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be \u2264 the Stop coordinate. Coordinate must be compatible with the selected reference build."}},{key:"stop2",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Stop coordinate must be numeric"}},props:{label:"Stop",description:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be \u2265 the Start coordinate. Coordinate must be compatible with the selected reference build."}},{key:"representativeTranscript2",type:"input",wrappers:["form-field"],props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{name:void 0,aliases:void 0,hgvsDescriptions:void 0,clinvarIds:void 0,variantTypeIds:void 0,referenceBuild:void 0,ensemblVersion:void 0,chromosome:void 0,start:void 0,stop:void 0,representativeTranscript:void 0,chromosome2:void 0,start2:void 0,stop2:void 0,representativeTranscript2:void 0,geneId:void 0,referenceBases:void 0,variantBases:void 0},comment:void 0,organizationId:void 0});let o=t=>"NONE FOUND"==t[0]?{noneFound:!0}:"NA"==t[0]?{notApplicable:!0}:{ids:t.map(n=>+n)};var T,l=e(5879),O=e(313),S=e(7473),F=e(6814),b=e(3599),D=e(5545),P=e(4634);function I(t,n){if(1&t&&(l._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),l.TgZ(1,"a",4),l._uU(2,"here."),l.qZA()),2&t){const i=l.oxw();l.xp6(1),l.s9C("href",i.url,l.LSH)}}const h=function(){return{}};function v(t,n){if(1&t){const i=l.EpF();l.TgZ(0,"form",5),l.NdJ("ngSubmit",function(){l.CHM(i);const L=l.oxw();return l.KtG(L.onSubmit(L.model))}),l.TgZ(1,"formly-form",6),l.NdJ("modelChange",function(L){l.CHM(i);const x=l.oxw();return l.KtG(x.model=L)}),l.qZA()()}if(2&t){const i=l.oxw();l.Q6J("formGroup",i.form),l.xp6(1),l.Q6J("form",i.form)("fields",i.fields)("model",i.model)("options",l.DdM(5,h))}}function d(t,n){1&t&&l._uU(0," Loading Variant... ")}let s=((T=class{constructor(n,i,R,L){this.revisableFieldsGQL=n,this.submitRevisionsGQL=i,this.networkErrorService=R,this.cdr=L,this.form=new u.nJ({}),this.fields=g,this.reviseVariantMutator=new E.U(R)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,M.t)(this)).subscribe({next:({data:{variant:n}})=>{var t;n&&(this.model={id:n.id,fields:(t=n,{name:t.name,aliases:t.variantAliases,hgvsDescriptions:t.hgvsDescriptions,clinvarIds:t.clinvarIds,variantTypeIds:t.variantTypes.map(n=>n.id),referenceBuild:t.referenceBuild,ensemblVersion:t.ensemblVersion,chromosome:t.primaryCoordinates?.chromosome,start:t.primaryCoordinates?.start,stop:t.primaryCoordinates?.stop,representativeTranscript:t.primaryCoordinates?.representativeTranscript,chromosome2:t.secondaryCoordinates?.chromosome,start2:t.secondaryCoordinates?.start,stop2:t.secondaryCoordinates?.stop,representativeTranscript2:t.secondaryCoordinates?.representativeTranscript,geneId:t.gene.id,referenceBases:t.referenceBases,variantBases:t.variantBases})},this.cdr.detectChanges())},error:n=>{console.error("Error retrieving Variant."),console.error(n)},complete:()=>{}})}onSubmit(n){if(!this.variantId)return;let i=function a(t,n){const i=n.fields;if(n.comment&&i.name&&i.geneId)return{id:t,fields:{name:i.name,aliases:i.aliases||[],hgvsDescriptions:i.hgvsDescriptions||[],clinvarIds:o(i.clinvarIds||[]),variantTypeIds:i.variantTypeIds||[],referenceBuild:m.uP(i.referenceBuild),ensemblVersion:m.uP(i.ensemblVersion?+i.ensemblVersion:void 0),primaryCoordinates:{chromosome:i.chromosome,start:i.start?+i.start:void 0,stop:i.stop?+i.stop:void 0,representativeTranscript:i.representativeTranscript},secondaryCoordinates:{chromosome:i.chromosome2,start:i.start2?+i.start2:void 0,stop:i.stop2?+i.stop2:void 0,representativeTranscript:i.representativeTranscript2},geneId:i.geneId,referenceBases:m.xt(i.referenceBases),variantBases:m.xt(i.variantBases)},organizationId:n.organizationId,comment:n.comment}}(this.variantId,n);i&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:i}))}}).\u0275fac=function(n){return new(n||T)(l.Y36(O.nnL),l.Y36(O.Xft),l.Y36(S.Y),l.Y36(l.sBO))},T.\u0275cmp=l.Xpm({type:T,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(n,i){if(1&n&&(l.TgZ(0,"cvc-form-submission-status-display",0),l.YNc(1,I,3,1,"ng-template",null,1,l.W1O),l.YNc(3,v,2,6,"form",2),l.YNc(4,d,1,0,"ng-template",null,3,l.W1O),l.qZA()),2&n){const R=l.MAs(2),L=l.MAs(5);l.Q6J("redirectUrl",i.url)("mutationState",i.mutationState)("successMessage",R),l.xp6(3),l.Q6J("ngIf",i.model)("ngIfElse",L)}},dependencies:[F.O5,b.Lr,u._Y,u.JL,u.sg,D.T7,P.F],encapsulation:2,changeDetection:0}),T);s=(0,p.gn)([(0,M.c)()],s)},4706:(A,C,e)=>{e.d(C,{A:()=>y});var p=e(6814),u=e(3599),M=e(2840),E=e(6683),m=e(5106),f=e(5879);let y=(()=>{class _{}return _.\u0275fac=function(g){return new(g||_)},_.\u0275mod=f.oAB({type:_}),_.\u0275inj=f.cJS({imports:[p.ez,u.U5,M.sL,E.S,m.g]}),_})()},9439:(A,C,e)=>{e.d(C,{L:()=>P});var p=e(655),u=e(6223),M=e(2024),E=e(2784),m=e(1791),f=e(8645);const _=[{wrappers:["form-layout"],props:{submitLabel:"Revise Variant Group",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Variant Group"},fieldGroup:[{key:"name",type:"input",props:{label:"Variant Group Name",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Variant Group.",placeholder:"Enter a Variant Group Summary",label:"Variant Group Summary",required:!0,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{required:!1}},{key:"variantIds",type:"variant-multi-select",props:{label:"Variants",required:!0,colSpan:24,requireGene:!1,showManagerBtn:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Group Revision"}}]}]}];var S,r=e(5879),g=e(313),c=e(7473),a=e(6814),o=e(3599),l=e(5545),O=e(4634);function F(T,I){if(1&T&&(r._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or you may view them "),r.TgZ(1,"a",4),r._uU(2,"here."),r.qZA()),2&T){const h=r.oxw();r.xp6(1),r.s9C("href",h.url,r.LSH)}}function b(T,I){if(1&T){const h=r.EpF();r.TgZ(0,"form",5),r.NdJ("ngSubmit",function(){r.CHM(h);const d=r.oxw();return r.KtG(d.onSubmit(d.model))}),r.TgZ(1,"formly-form",6),r.NdJ("modelChange",function(d){r.CHM(h);const s=r.oxw();return r.KtG(s.model=d)}),r.qZA()()}if(2&T){const h=r.oxw();r.Q6J("formGroup",h.form),r.xp6(1),r.Q6J("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}function D(T,I){1&T&&r._uU(0," Loading Variant Group... ")}let P=((S=class{constructor(I,h,v,d){this.revisableFieldsGQL=I,this.submitRevisionsGQL=h,this.networkErrorService=v,this.cdr=d,this.form=new u.nJ({}),this.fields=_,this.state={formReady$:new f.x},this.options={formState:this.state},this.reviseAssertionMutator=new M.U(v)}onSubmit(I){console.log("------ Variant Group Suggestion Added ------"),console.log(I)}ngOnInit(){this.url=`/variant-groups/${this.variantGroupId}/revisions`}ngOnDestroy(){}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).pipe((0,m.t)(this)).subscribe({next:({data:{variantGroup:I}})=>{I&&(this.model={id:I.id,fields:(0,E.ND)(I)},this.cdr.detectChanges())},error:I=>{console.error("Error retrieving variantgroupItem."),console.error(I)},complete:()=>{this.state.formReady$.next(!0)}})}}).\u0275fac=function(I){return new(I||S)(r.Y36(g.Y6e),r.Y36(g.eJ3),r.Y36(c.Y),r.Y36(r.sBO))},S.\u0275cmp=r.Xpm({type:S,selectors:[["cvc-variantgroup-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:6,vars:5,consts:[["entityType","Evidence Item",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(I,h){if(1&I&&(r.TgZ(0,"cvc-form-submission-status-display",0),r.YNc(1,F,3,1,"ng-template",null,1,r.W1O),r.YNc(3,b,2,5,"form",2),r.YNc(4,D,1,0,"ng-template",null,3,r.W1O),r.qZA()),2&I){const v=r.MAs(2),d=r.MAs(5);r.Q6J("mutationState",h.mutationState)("redirectUrl",h.url)("successMessage",v),r.xp6(3),r.Q6J("ngIf",h.model)("ngIfElse",d)}},dependencies:[a.O5,o.Lr,u._Y,u.JL,u.sg,l.T7,O.F]}),S);P=(0,p.gn)([(0,m.c)()],P)},2784:(A,C,e)=>{function u(m){return{description:m.description,sourceIds:m.sources.map(f=>f.id),variantIds:m.variants.nodes.map(f=>f.id),name:m.name}}function E(m){const f=m.fields;if(![f.name,m.comment].find(_=>void 0===_))return{description:f.description,sourceIds:f.sourceIds||[],name:f.name,variantIds:f.variantIds||[],organizationId:m.organizationId}}e.d(C,{ND:()=>u,t3:()=>E}),e(2701)}}]); \ No newline at end of file diff --git a/server/public/common.b1810530dc588372.js b/server/public/common.b1810530dc588372.js new file mode 100644 index 000000000..2a217bcb4 --- /dev/null +++ b/server/public/common.b1810530dc588372.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{7525:(L,C,e)=>{e.d(C,{h:()=>E});var p=e(6814),u=e(551),M=e(5879);let E=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=M.oAB({type:m}),m.\u0275inj=M.cJS({imports:[p.ez,u.PV]}),m})()},8178:(L,C,e)=>{e.d(C,{u:()=>r});var p=e(5879),u=e(9512),M=e(804),E=e(551),m=e(2392);function f(v,c){1&v&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function h(v,c){1&v&&p._UZ(0,"cvc-login-button")}function y(v,c){1&v&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let r=(()=>{class v{}return v.\u0275fac=function(a){return new(a||v)},v.\u0275cmp=p.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(a,o){if(1&a&&(p.TgZ(0,"nz-empty",0),p.YNc(1,f,2,0,"ng-template",null,1,p.W1O),p.YNc(3,h,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,y,2,0,"ng-template",null,3,p.W1O)),2&a){const l=p.MAs(2),O=p.MAs(4),S=p.MAs(6);p.Q6J("nzNotFoundImage",S)("nzNotFoundContent",l)("nzNotFoundFooter",O)}},dependencies:[u.s,M.p9,E.Ls,m.ZU],styles:["[_nghost-%COMP%]{display:inline-block}"]}),v})()},8603:(L,C,e)=>{e.d(C,{a:()=>h});var p=e(6814),u=e(5163),M=e(804),E=e(551),m=e(2392),f=e(5879);let h=(()=>{class y{}return y.\u0275fac=function(v){return new(v||y)},y.\u0275mod=f.oAB({type:y}),y.\u0275inj=f.cJS({imports:[p.ez,u.B,M.Xo,E.PV,m.ZJ]}),y})()},6288:(L,C,e)=>{e.d(C,{u:()=>T});var p=e(655),u=e(6223),M=e(2024),E=e(9348),m=e(9182),f=e(2190),h=e(1791);const v=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Submit Assertion",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"New Assertion"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",watchVariantMolecularProfileId:!0,colSpan:16}},{key:"assertionType",type:"type-select",props:{required:!0,colSpan:8}},{key:"assertionDirection",type:"direction-select",props:{required:!0,colSpan:8}},{key:"significance",type:"significance-select",props:{required:!0,colSpan:8}},{key:"diseaseId",type:"disease-select",props:{colSpan:8}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{colSpan:8}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{colSpan:8}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{colSpan:8}},{key:"nccnGuidelineId",type:"nccn-guideline-select",props:{}},{key:"nccnGuidelineVersion",type:"nccn-guideline-version-input",props:{}},{key:"fdaRegulatoryApproval",type:"fda-regulatory-approval-checkbox",props:{}},{key:"fdaCompanionTest",type:"fda-companion-test-checkbox",props:{}},{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0,colSpan:24}},{key:"summary",type:"textarea",wrappers:["form-field"],props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"A complete, original description of this Assertion. Limited to one paragraph.",placeholder:"Enter an Assertion Statement",label:"Assertion Statement",required:!0,rows:5,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment"}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Assertion"}}]}]}],E.J);var b,c=e(5879),a=e(313),o=e(7473),l=e(3599),O=e(4190),S=e(5545),F=e(9928);const D=function(I){return["/assertions",I,"summary"]};function P(I,_){if(1&I&&(c._uU(0," View your submitted Assertion "),c.TgZ(1,"a",4),c._uU(2,"here"),c.qZA(),c._uU(3,". You will be redirected shortly. ")),2&I){const g=c.oxw();c.xp6(1),c.Q6J("routerLink",c.VKq(1,D,g.newAssertionId))}}let T=((b=class{constructor(_,g){this.submitAssertionGQL=_,this.networkErrorService=g,this.form=new u.nJ({}),this.model=E.J,this.fields=v,this.state=new m._,this.options={formState:this.state},this.submitAssertionMutator=new M.U(g)}onSubmit(_){let g=(0,f.XU)(_);g&&(this.mutationState=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:g},void 0,d=>{this.newAssertionId=d.submitAssertion?.assertion.id,this.newAssertionUrl=`/assertions/${this.newAssertionId}/summary`}))}ngAfterViewInit(){this.state.formReady$.next(!0)}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(_){return new(_||b)(c.Y36(a.LLl),c.Y36(o.Y))},b.\u0275cmp=c.Xpm({type:b,selectors:[["cvc-assertion-submit-form"]],decls:5,vars:8,consts:[["entityType","Assertion",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"],[3,"routerLink"]],template:function(_,g){if(1&_&&(c.TgZ(0,"cvc-form-submission-status-display",0),c.YNc(1,P,4,3,"ng-template",null,1,c.W1O),c.TgZ(3,"form",2),c.NdJ("ngSubmit",function(){return g.onSubmit(g.model)}),c.TgZ(4,"formly-form",3),c.NdJ("modelChange",function(s){return g.model=s}),c.qZA()()()),2&_){const d=c.MAs(2);c.Q6J("mutationState",g.mutationState)("redirectUrl",g.newAssertionUrl)("successMessage",d),c.xp6(3),c.Q6J("formGroup",g.form),c.xp6(1),c.Q6J("form",g.form)("fields",g.fields)("model",g.model)("options",g.options)}},dependencies:[l.Lr,O.rH,u._Y,u.JL,u.sg,S.T7,F.F],encapsulation:2,changeDetection:0}),b);T=(0,p.gn)([(0,h.c)()],T)},1810:(L,C,e)=>{e.d(C,{E:()=>r});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(279),f=e(1227),h=e(4190),y=e(5879);let r=(()=>{class v{}return v.\u0275fac=function(a){return new(a||v)},v.\u0275mod=y.oAB({type:v}),v.\u0275inj=y.cJS({imports:[p.ez,u.U5,M.sL,h.Bz,E.S,f.g,m.s]}),v})()},1986:(L,C,e)=>{e.d(C,{A:()=>y});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(279),f=e(1227),h=e(5879);let y=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},75:(L,C,e)=>{e.d(C,{r:()=>_});var p=e(655),u=e(6223),M=e(2024),E=e(7382),m=e(2114),f=e(1791);const c=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Evidence Item",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0}},{key:"sourceId",type:"source-select",props:{required:!0}},{key:"evidenceType",type:"type-select",props:{required:!0}},{key:"evidenceDirection",type:"direction-select",props:{required:!0,formMode:"revise"}},{key:"significance",type:"significance-select",props:{required:!0,formMode:"revise"}},{key:"diseaseId",type:"disease-select",props:{}},{key:"therapyIds",type:"therapy-multi-select",props:{}},{key:"therapyInteractionType",type:"interaction-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{required:!0}},{key:"rating",type:"rating",props:{required:!0}},{key:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"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. ",placeholder:"Enter an Evidence Statement",extraType:"description",description:'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).',label:"Evidence Statement",required:!0,colSpan:24}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{geneId:void 0,variantId:void 0,significance:void 0,description:void 0,diseaseId:void 0,drugIds:[],therapyInteractionType:void 0,evidenceDirection:void 0,evidenceLevel:void 0,evidenceType:void 0,molecularProfileId:void 0,phenotypeIds:[],rating:void 0,sourceId:void 0,variantOrigin:void 0},comment:void 0,organizationId:void 0});var D,a=e(5879),o=e(313),l=e(7473),O=e(6814),S=e(3599),F=e(5545),b=e(9928);function P(g,d){if(1&g&&(a._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or you can view them "),a.TgZ(1,"a",4),a._uU(2,"here."),a.qZA()),2&g){const s=a.oxw();a.xp6(1),a.s9C("href",s.url,a.LSH)}}function T(g,d){if(1&g){const s=a.EpF();a.TgZ(0,"form",5),a.NdJ("ngSubmit",function(){a.CHM(s);const n=a.oxw();return a.KtG(n.onSubmit(n.model))}),a.TgZ(1,"formly-form",6),a.NdJ("modelChange",function(n){a.CHM(s);const i=a.oxw();return a.KtG(i.model=n)}),a.qZA()()}if(2&g){const s=a.oxw();a.Q6J("formGroup",s.form),a.xp6(1),a.Q6J("form",s.form)("fields",s.fields)("model",s.model)("options",s.options)}}function I(g,d){1&g&&a._uU(0," Loading Evidence Item... ")}let _=((D=class{constructor(d,s,t,n){this.revisableFieldsGQL=d,this.submitRevisionsGQL=s,this.networkErrorService=t,this.cdr=n,this.form=new u.nJ({}),this.fields=c,this.state=new E._,this.options={formState:this.state},this.reviseEvidenceMutator=new M.U(t)}ngOnInit(){this.url=`/evidence/${this.evidenceId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).pipe((0,f.t)(this)).subscribe({next:({data:{evidenceItem:d}})=>{d&&(this.model={id:d.id,fields:(0,m.ux)(d)},this.cdr.detectChanges())},error:d=>{console.error("Error retrieving evidenceItem."),console.error(d)},complete:()=>{this.state.formReady$.next(!0),console.log("evidence item retrieved.")}})}onSubmit(d){if(!this.evidenceId)return;let s=(0,m.Ct)(this.evidenceId,d);s&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:s}))}ngOnDestroy(){this.options.formState.onDestroy()}}).\u0275fac=function(d){return new(d||D)(a.Y36(o.Q_P),a.Y36(o.Vj7),a.Y36(l.Y),a.Y36(a.sBO))},D.\u0275cmp=a.Xpm({type:D,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:5,consts:[["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(d,s){if(1&d&&(a.TgZ(0,"cvc-form-submission-status-display",0),a.YNc(1,P,3,1,"ng-template",null,1,a.W1O),a.YNc(3,T,2,5,"form",2),a.YNc(4,I,1,0,"ng-template",null,3,a.W1O),a.qZA()),2&d){const t=a.MAs(2),n=a.MAs(5);a.Q6J("mutationState",s.mutationState)("successMessage",t)("redirectUrl",s.url),a.xp6(3),a.Q6J("ngIf",s.model)("ngIfElse",n)}},dependencies:[O.O5,S.Lr,u._Y,u.JL,u.sg,F.T7,b.F],encapsulation:2,changeDetection:0}),D);_=(0,p.gn)([(0,f.c)()],_)},6586:(L,C,e)=>{e.d(C,{C:()=>y});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(279),f=e(1227),h=e(5879);let y=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},8454:(L,C,e)=>{e.d(C,{$:()=>d});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(1022);const a=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Gene",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Gene.",placeholder:"Enter a Gene Summary",label:"Gene Summary",required:!1,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Gene Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var P,o=e(5879),l=e(313),O=e(7473),S=e(6814),F=e(3599),b=e(5545),D=e(9928);function T(s,t){if(1&s&&(o._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.TgZ(1,"a",4),o._uU(2,"here."),o.qZA()),2&s){const n=o.oxw();o.xp6(1),o.s9C("href",n.url,o.LSH)}}const I=function(){return{}};function _(s,t){if(1&s){const n=o.EpF();o.TgZ(0,"form",5),o.NdJ("ngSubmit",function(){o.CHM(n);const R=o.oxw();return o.KtG(R.onSubmit(R.model))}),o.TgZ(1,"formly-form",6),o.NdJ("modelChange",function(R){o.CHM(n);const A=o.oxw();return o.KtG(A.model=R)}),o.qZA()()}if(2&s){const n=o.oxw();o.Q6J("formGroup",n.form),o.xp6(1),o.Q6J("form",n.form)("fields",n.fields)("model",n.model)("options",o.DdM(5,I))}}function g(s,t){1&s&&o._uU(0," Loading Gene... ")}let d=((P=class{constructor(t,n,i,R){this.revisableFieldsGQL=t,this.submitRevisionsGQL=n,this.networkErrorService=i,this.cdr=R,this.form=new u.nJ({}),this.fields=a,this.reviseEvidenceMutator=new E.U(i)}ngOnInit(){this.url=`/genes/${this.geneId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId}).pipe((0,M.t)(this)).subscribe({next:({data:{gene:t}})=>{var s;t&&(this.model={id:t.id,fields:(s=t,{description:s.description,sourceIds:s.sources.map(t=>t.id)})},this.cdr.detectChanges())},error:t=>{console.error("Error retrieving Gene."),console.error(t)},complete:()=>{}})}onSubmit(t){if(!this.geneId)return;let n=function h(s,t){const n=t.fields;if(t.comment)return{id:s,fields:{description:m.xt(n.description),sourceIds:n.sourceIds||[]},organizationId:t.organizationId,comment:t.comment}}(this.geneId,t);n&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:n}))}}).\u0275fac=function(t){return new(t||P)(o.Y36(l.FOU),o.Y36(l.D9L),o.Y36(O.Y),o.Y36(o.sBO))},P.\u0275cmp=o.Xpm({type:P,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:6,vars:5,consts:[["entityType","Gene",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(t,n){if(1&t&&(o.TgZ(0,"cvc-form-submission-status-display",0),o.YNc(1,T,3,1,"ng-template",null,1,o.W1O),o.YNc(3,_,2,6,"form",2),o.YNc(4,g,1,0,"ng-template",null,3,o.W1O),o.qZA()),2&t){const i=o.MAs(2),R=o.MAs(5);o.Q6J("redirectUrl",n.url)("mutationState",n.mutationState)("successMessage",i),o.xp6(3),o.Q6J("ngIf",n.model)("ngIfElse",R)}},dependencies:[S.O5,F.Lr,u._Y,u.JL,u.sg,b.T7,D.F],encapsulation:2,changeDetection:0}),P);d=(0,p.gn)([(0,M.c)()],d)},6012:(L,C,e)=>{e.d(C,{i:()=>y});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(279),f=e(1227),h=e(5879);let y=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},3821:(L,C,e)=>{e.d(C,{R:()=>g});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(1022);const a=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Molecular Profile",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Evidence Item"},fieldGroup:[{key:"description",type:"textarea",wrappers:["form-field"],props:{placeholder:"Enter a Molecular Profile Description",label:"Molecular Profile Description",description:"Provide a summary of the clinical relevance of this Molecular Profile. The Molecular Profile Summary should be a synthesis of the existing Evidence Statements for this profile. Basic information on recurrence rates and biological/functional impact of the variants may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance).",extraType:"prompt",required:!1,rows:5,colSpan:24}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases",description:"List any aliases commonly used to refer to this Molecular Profile",extraType:"prompt"}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Molecular Profile Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0,aliases:void 0},comment:void 0,organizationId:void 0});var P,o=e(5879),l=e(313),O=e(7473),S=e(6814),F=e(3599),b=e(5545),D=e(9928);function T(d,s){if(1&d&&(o._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.TgZ(1,"a",4),o._uU(2,"here."),o.qZA()),2&d){const t=o.oxw();o.xp6(1),o.s9C("href",t.url,o.LSH)}}function I(d,s){if(1&d){const t=o.EpF();o.TgZ(0,"form",5),o.NdJ("ngSubmit",function(){o.CHM(t);const i=o.oxw();return o.KtG(i.onSubmit(i.model))}),o.TgZ(1,"formly-form",6),o.NdJ("modelChange",function(i){o.CHM(t);const R=o.oxw();return o.KtG(R.model=i)}),o.qZA()()}if(2&d){const t=o.oxw();o.Q6J("formGroup",t.form),o.xp6(1),o.Q6J("form",t.form)("fields",t.fields)("model",t.model)("options",t.options)}}function _(d,s){1&d&&o._uU(0," Loading Molecular Profile... ")}let g=((P=class{constructor(s,t,n,i){this.revisableFieldsGQL=s,this.submitRevisionsGQL=t,this.cdr=n,this.form=new u.nJ({}),this.options={formState:{isSimpleMp:void 0}};const R=a[0]?.fieldGroup?.find(A=>"fields"==A.key)?.fieldGroup?.find(A=>"aliases"==A.key);if(R){const A=R.props?.description;R.expressions={"props.disabled":x=>x.options?.formState.isSimpleMp,"props.description":x=>x.options?.formState.isSimpleMp?"Simple Molecular Profiles inherit their Aliases from the corresponding Variant.":A}}this.fields=a,this.reviseEvidenceMutator=new E.U(i)}ngOnInit(){this.url=`/molecular-profiles/${this.molecularProfileId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({molecularProfileId:this.molecularProfileId}).pipe((0,M.t)(this)).subscribe({next:({data:{molecularProfile:s}})=>{var d;s&&(this.options.formState.isSimpleMp=!s.isComplex,this.model={id:s.id,fields:(d=s,{description:d.description,sourceIds:d.sources.map(s=>s.id),aliases:d.molecularProfileAliases})},this.cdr.detectChanges())},error:s=>{console.error("Error retrieving MolecularProfile."),console.error(s)},complete:()=>{}})}onSubmit(s){if(!this.molecularProfileId)return;let t=function h(d,s){const t=s.fields;if(s.comment)return{id:d,fields:{description:m.xt(t.description),sourceIds:t.sourceIds||[],aliases:t.aliases||[]},organizationId:s.organizationId,comment:s.comment}}(this.molecularProfileId,s);t&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:t}))}}).\u0275fac=function(s){return new(s||P)(o.Y36(l.pR8),o.Y36(l.T1I),o.Y36(o.sBO),o.Y36(O.Y))},P.\u0275cmp=o.Xpm({type:P,selectors:[["cvc-mp-revise-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:5,consts:[["entityType","Molecular Profile",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(s,t){if(1&s&&(o.TgZ(0,"cvc-form-submission-status-display",0),o.YNc(1,T,3,1,"ng-template",null,1,o.W1O),o.YNc(3,I,2,5,"form",2),o.YNc(4,_,1,0,"ng-template",null,3,o.W1O),o.qZA()),2&s){const n=o.MAs(2),i=o.MAs(5);o.Q6J("redirectUrl",t.url)("mutationState",t.mutationState)("successMessage",n),o.xp6(3),o.Q6J("ngIf",t.model)("ngIfElse",i)}},dependencies:[S.O5,F.Lr,u._Y,u.JL,u.sg,b.T7,D.F],encapsulation:2,changeDetection:0}),P);g=(0,p.gn)([(0,M.c)()],g)},3281:(L,C,e)=>{e.d(C,{K:()=>y});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(279),f=e(1227),h=e(5879);let y=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[p.ez,u.U5,M.sL,E.S,f.g,m.s]}),r})()},7093:(L,C,e)=>{e.d(C,{J:()=>s});var p=e(655),u=e(6223),M=e(1791),E=e(2024),m=e(1022);const v=(0,e(7570).Z)([{wrappers:["form-layout"],props:{submitLabel:"Revise Variant",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Variant"},fieldGroup:[{key:"geneId",type:"gene-select",props:{description:"Enter an Entrez Gene for this Variant"}},{key:"name",type:"input",wrappers:["form-field"],props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",extraType:"prompt",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",extraType:"prompt",placeholder:"Enter Alias and hit return"}},{key:"hgvsDescriptions",type:"tag-multi-input",wrappers:["form-field"],props:{label:"HGVS Descriptions",description:"HGVS Descriptions",extraType:"prompt",placeholder:"Enter HGVS and hit return"}},{key:"clinvarIds",type:"clinvar-multi-input",wrappers:["form-field"],props:{label:"ClinVar IDs",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},{key:"variantTypeIds",type:"variant-type-multi-select",wrappers:["form-field"]},{template:"

Primary (5') Coordinates

",props:{colSpan:24}},{key:"referenceBuild",type:"reference-build-select"},{key:"ensemblVersion",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^\d{2,3}$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" does not appear to be an Ensembl version number`}},props:{label:"Ensembl Version",description:"Enter a valid Ensembl database version (e.g. 75)"}},{key:"referenceBases",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^[ACTG\\]+$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" contains invalid characters.`}},props:{label:"Reference Bases",description:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank)"}},{key:"variantBases",type:"input",wrappers:["form-field"],validators:{nccnVersionNumber:{expression:t=>!t.value||/^[ACTG\\]+$/.test(t.value),message:(t,n)=>`"${n.formControl?.value}" contains invalid characters.`}},props:{label:"Variant Bases",description:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank)"}},{key:"chromosome",type:"select",wrappers:["form-field"],props:{label:"Chromosome",options:m.aP,description:"Specify the chromosome in which this variant occurs (e.g. 17)."}},{key:"start",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Start coordinate must be numeric"}},props:{label:"Start",description:"Enter the left/first coordinate of this variant. Must be \u2264 the Stop coordinate. Coordinate must be compatible with the selected reference build."}},{key:"stop",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Stop coordinate must be numeric"}},props:{label:"Stop",description:"Provide the right/second coordinate of this variant. Must be \u2265 the Start coordinate. Coordinate must be compatible with the selected reference build."}},{key:"representativeTranscript",type:"input",wrappers:["form-field"],props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

Secondary (3') Coordinates

",props:{colSpan:24}},{key:"chromosome2",type:"select",wrappers:["form-field"],props:{label:"Chromosome",options:m.aP,description:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"start2",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Start coordinate must be numeric"}},props:{label:"Start",description:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be \u2264 the Stop coordinate. Coordinate must be compatible with the selected reference build."}},{key:"stop2",type:"input",wrappers:["form-field"],validators:{isNumeric:{expression:t=>!t.value||/^\d+$/.test(t.value),message:(t,n)=>"Stop coordinate must be numeric"}},props:{label:"Stop",description:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be \u2265 the Start coordinate. Coordinate must be compatible with the selected reference build."}},{key:"representativeTranscript2",type:"input",wrappers:["form-field"],props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",placeholder:"Please enter a comment describing your revisions.",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Revisions"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{name:void 0,aliases:void 0,hgvsDescriptions:void 0,clinvarIds:void 0,variantTypeIds:void 0,referenceBuild:void 0,ensemblVersion:void 0,chromosome:void 0,start:void 0,stop:void 0,representativeTranscript:void 0,chromosome2:void 0,start2:void 0,stop2:void 0,representativeTranscript2:void 0,geneId:void 0,referenceBases:void 0,variantBases:void 0},comment:void 0,organizationId:void 0});let o=t=>"NONE FOUND"==t[0]?{noneFound:!0}:"NA"==t[0]?{notApplicable:!0}:{ids:t.map(n=>+n)};var T,l=e(5879),O=e(313),S=e(7473),F=e(6814),b=e(3599),D=e(5545),P=e(9928);function I(t,n){if(1&t&&(l._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),l.TgZ(1,"a",4),l._uU(2,"here."),l.qZA()),2&t){const i=l.oxw();l.xp6(1),l.s9C("href",i.url,l.LSH)}}const _=function(){return{}};function g(t,n){if(1&t){const i=l.EpF();l.TgZ(0,"form",5),l.NdJ("ngSubmit",function(){l.CHM(i);const A=l.oxw();return l.KtG(A.onSubmit(A.model))}),l.TgZ(1,"formly-form",6),l.NdJ("modelChange",function(A){l.CHM(i);const x=l.oxw();return l.KtG(x.model=A)}),l.qZA()()}if(2&t){const i=l.oxw();l.Q6J("formGroup",i.form),l.xp6(1),l.Q6J("form",i.form)("fields",i.fields)("model",i.model)("options",l.DdM(5,_))}}function d(t,n){1&t&&l._uU(0," Loading Variant... ")}let s=((T=class{constructor(n,i,R,A){this.revisableFieldsGQL=n,this.submitRevisionsGQL=i,this.networkErrorService=R,this.cdr=A,this.form=new u.nJ({}),this.fields=v,this.reviseVariantMutator=new E.U(R)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,M.t)(this)).subscribe({next:({data:{variant:n}})=>{var t;n&&(this.model={id:n.id,fields:(t=n,{name:t.name,aliases:t.variantAliases,hgvsDescriptions:t.hgvsDescriptions,clinvarIds:t.clinvarIds,variantTypeIds:t.variantTypes.map(n=>n.id),referenceBuild:t.referenceBuild,ensemblVersion:t.ensemblVersion,chromosome:t.primaryCoordinates?.chromosome,start:t.primaryCoordinates?.start,stop:t.primaryCoordinates?.stop,representativeTranscript:t.primaryCoordinates?.representativeTranscript,chromosome2:t.secondaryCoordinates?.chromosome,start2:t.secondaryCoordinates?.start,stop2:t.secondaryCoordinates?.stop,representativeTranscript2:t.secondaryCoordinates?.representativeTranscript,geneId:t.gene.id,referenceBases:t.referenceBases,variantBases:t.variantBases})},this.cdr.detectChanges())},error:n=>{console.error("Error retrieving Variant."),console.error(n)},complete:()=>{}})}onSubmit(n){if(!this.variantId)return;let i=function a(t,n){const i=n.fields;if(n.comment&&i.name&&i.geneId)return{id:t,fields:{name:i.name,aliases:i.aliases||[],hgvsDescriptions:i.hgvsDescriptions||[],clinvarIds:o(i.clinvarIds||[]),variantTypeIds:i.variantTypeIds||[],referenceBuild:m.uP(i.referenceBuild),ensemblVersion:m.uP(i.ensemblVersion?+i.ensemblVersion:void 0),primaryCoordinates:{chromosome:i.chromosome,start:i.start?+i.start:void 0,stop:i.stop?+i.stop:void 0,representativeTranscript:i.representativeTranscript},secondaryCoordinates:{chromosome:i.chromosome2,start:i.start2?+i.start2:void 0,stop:i.stop2?+i.stop2:void 0,representativeTranscript:i.representativeTranscript2},geneId:i.geneId,referenceBases:m.xt(i.referenceBases),variantBases:m.xt(i.variantBases)},organizationId:n.organizationId,comment:n.comment}}(this.variantId,n);i&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:i}))}}).\u0275fac=function(n){return new(n||T)(l.Y36(O.nnL),l.Y36(O.Xft),l.Y36(S.Y),l.Y36(l.sBO))},T.\u0275cmp=l.Xpm({type:T,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(n,i){if(1&n&&(l.TgZ(0,"cvc-form-submission-status-display",0),l.YNc(1,I,3,1,"ng-template",null,1,l.W1O),l.YNc(3,g,2,6,"form",2),l.YNc(4,d,1,0,"ng-template",null,3,l.W1O),l.qZA()),2&n){const R=l.MAs(2),A=l.MAs(5);l.Q6J("redirectUrl",i.url)("mutationState",i.mutationState)("successMessage",R),l.xp6(3),l.Q6J("ngIf",i.model)("ngIfElse",A)}},dependencies:[F.O5,b.Lr,u._Y,u.JL,u.sg,D.T7,P.F],encapsulation:2,changeDetection:0}),T);s=(0,p.gn)([(0,M.c)()],s)},9138:(L,C,e)=>{e.d(C,{A:()=>h});var p=e(6814),u=e(3599),M=e(2840),E=e(706),m=e(1227),f=e(5879);let h=(()=>{class y{}return y.\u0275fac=function(v){return new(v||y)},y.\u0275mod=f.oAB({type:y}),y.\u0275inj=f.cJS({imports:[p.ez,u.U5,M.sL,E.S,m.g]}),y})()},2480:(L,C,e)=>{e.d(C,{L:()=>P});var p=e(655),u=e(6223),M=e(2024),E=e(8597),m=e(1791),f=e(8645);const y=[{wrappers:["form-layout"],props:{submitLabel:"Revise Variant Group",showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{title:"Revise Variant Group"},fieldGroup:[{key:"name",type:"input",props:{label:"Variant Group Name",required:!0,colSpan:24}},{key:"description",type:"textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Variant Group.",placeholder:"Enter a Variant Group Summary",label:"Variant Group Summary",required:!0,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{required:!1}},{key:"variantIds",type:"variant-multi-select",props:{label:"Variants",required:!0,colSpan:24,requireGene:!1,showManagerBtn:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Variant Group Revision"}}]}]}];var S,r=e(5879),v=e(313),c=e(7473),a=e(6814),o=e(3599),l=e(5545),O=e(9928);function F(T,I){if(1&T&&(r._uU(0," Revision(s) submitted! You will be redirected to the Revisions page or you may view them "),r.TgZ(1,"a",4),r._uU(2,"here."),r.qZA()),2&T){const _=r.oxw();r.xp6(1),r.s9C("href",_.url,r.LSH)}}function b(T,I){if(1&T){const _=r.EpF();r.TgZ(0,"form",5),r.NdJ("ngSubmit",function(){r.CHM(_);const d=r.oxw();return r.KtG(d.onSubmit(d.model))}),r.TgZ(1,"formly-form",6),r.NdJ("modelChange",function(d){r.CHM(_);const s=r.oxw();return r.KtG(s.model=d)}),r.qZA()()}if(2&T){const _=r.oxw();r.Q6J("formGroup",_.form),r.xp6(1),r.Q6J("form",_.form)("fields",_.fields)("model",_.model)("options",_.options)}}function D(T,I){1&T&&r._uU(0," Loading Variant Group... ")}let P=((S=class{constructor(I,_,g,d){this.revisableFieldsGQL=I,this.submitRevisionsGQL=_,this.networkErrorService=g,this.cdr=d,this.form=new u.nJ({}),this.fields=y,this.state={formReady$:new f.x},this.options={formState:this.state},this.reviseAssertionMutator=new M.U(this.networkErrorService)}onSubmit(I){if(console.log("------ Variant Group Suggestion Added ------"),console.log(I),!this.variantGroupId)return;let _=(0,E.Vk)(this.variantGroupId,I);_&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:_}))}ngOnInit(){this.url=`/variant-groups/${this.variantGroupId}/revisions`}ngOnDestroy(){}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).pipe((0,m.t)(this)).subscribe({next:({data:{variantGroup:I}})=>{I&&(this.model={id:I.id,fields:(0,E.ND)(I)},this.cdr.detectChanges())},error:I=>{console.error("Error retrieving variantgroupItem."),console.error(I)},complete:()=>{this.state.formReady$.next(!0)}})}}).\u0275fac=function(I){return new(I||S)(r.Y36(v.q2A),r.Y36(v.aw3),r.Y36(c.Y),r.Y36(r.sBO))},S.\u0275cmp=r.Xpm({type:S,selectors:[["cvc-variantgroup-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:6,vars:5,consts:[["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["success",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["loadingModel",""],[3,"href"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[3,"form","fields","model","options","modelChange"]],template:function(I,_){if(1&I&&(r.TgZ(0,"cvc-form-submission-status-display",0),r.YNc(1,F,3,1,"ng-template",null,1,r.W1O),r.YNc(3,b,2,5,"form",2),r.YNc(4,D,1,0,"ng-template",null,3,r.W1O),r.qZA()),2&I){const g=r.MAs(2),d=r.MAs(5);r.Q6J("mutationState",_.mutationState)("redirectUrl",_.url)("successMessage",g),r.xp6(3),r.Q6J("ngIf",_.model)("ngIfElse",d)}},dependencies:[a.O5,o.Lr,u._Y,u.JL,u.sg,l.T7,O.F]}),S);P=(0,p.gn)([(0,m.c)()],P)},8597:(L,C,e)=>{e.d(C,{ND:()=>u,Vk:()=>M,t3:()=>E});var p=e(1022);function u(m){return{description:m.description,sourceIds:m.sources.map(f=>f.id),variantIds:m.variants.nodes.map(f=>f.id),name:m.name}}function M(m,f){let h=E(f);if(h)return delete h.organizationId,{id:m,fields:{...h,description:p.xt(h.description)},organizationId:f.organizationId,comment:f.comment}}function E(m){const f=m.fields;if(![f.name,m.comment].find(y=>void 0===y))return{description:f.description,sourceIds:f.sourceIds||[],name:f.name,variantIds:f.variantIds||[],organizationId:m.organizationId}}}}]); \ No newline at end of file diff --git a/server/public/index.html b/server/public/index.html index f74ed3b60..3788a1f59 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -21,5 +21,5 @@ - + diff --git a/server/public/main.79561af41c4100fc.js b/server/public/main.79561af41c4100fc.js new file mode 100644 index 000000000..e64cf2243 --- /dev/null +++ b/server/public/main.79561af41c4100fc.js @@ -0,0 +1,4715 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[179],{4265:(It,be,a)=>{a.d(be,{T6:()=>k,VD:()=>U,WE:()=>j,Yt:()=>w,lC:()=>v,py:()=>L,rW:()=>i,s:()=>I,ve:()=>s,vq:()=>$});var t=a(6337);function i(M,e,R){return{r:255*(0,t.sh)(M,255),g:255*(0,t.sh)(e,255),b:255*(0,t.sh)(R,255)}}function v(M,e,R){M=(0,t.sh)(M,255),e=(0,t.sh)(e,255),R=(0,t.sh)(R,255);var pe=Math.max(M,e,R),me=Math.min(M,e,R),Z=0,A=0,V=(pe+me)/2;if(pe===me)A=0,Z=0;else{var O=pe-me;switch(A=V>.5?O/(2-pe-me):O/(pe+me),pe){case M:Z=(e-R)/O+(e1&&(R-=1),R<1/6?M+6*R*(e-M):R<.5?e:R<2/3?M+(e-M)*(2/3-R)*6:M}function s(M,e,R){var pe,me,Z;if(M=(0,t.sh)(M,360),e=(0,t.sh)(e,100),R=(0,t.sh)(R,100),0===e)me=R,Z=R,pe=R;else{var A=R<.5?R*(1+e):R+e-R*e,V=2*R-A;pe=d(V,A,M+1/3),me=d(V,A,M),Z=d(V,A,M-1/3)}return{r:255*pe,g:255*me,b:255*Z}}function L(M,e,R){M=(0,t.sh)(M,255),e=(0,t.sh)(e,255),R=(0,t.sh)(R,255);var pe=Math.max(M,e,R),me=Math.min(M,e,R),Z=0,A=pe,V=pe-me,O=0===pe?0:V/pe;if(pe===me)Z=0;else{switch(pe){case M:Z=(e-R)/V+(e>16,g:(65280&M)>>8,b:255&M}}},1309:(It,be,a)=>{a.d(be,{R:()=>t});var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6379:(It,be,a)=>{a.d(be,{uA:()=>d});var t=a(4265),i=a(1309),v=a(6337);function d(U){var w={r:0,g:0,b:0},M=1,e=null,R=null,pe=null,me=!1,Z=!1;return"string"==typeof U&&(U=function F(U){if(0===(U=U.trim().toLowerCase()).length)return!1;var w=!1;if(i.R[U])U=i.R[U],w=!0;else if("transparent"===U)return{r:0,g:0,b:0,a:0,format:"name"};var M=S.rgb.exec(U);return M?{r:M[1],g:M[2],b:M[3]}:(M=S.rgba.exec(U))?{r:M[1],g:M[2],b:M[3],a:M[4]}:(M=S.hsl.exec(U))?{h:M[1],s:M[2],l:M[3]}:(M=S.hsla.exec(U))?{h:M[1],s:M[2],l:M[3],a:M[4]}:(M=S.hsv.exec(U))?{h:M[1],s:M[2],v:M[3]}:(M=S.hsva.exec(U))?{h:M[1],s:M[2],v:M[3],a:M[4]}:(M=S.hex8.exec(U))?{r:(0,t.VD)(M[1]),g:(0,t.VD)(M[2]),b:(0,t.VD)(M[3]),a:(0,t.T6)(M[4]),format:w?"name":"hex8"}:(M=S.hex6.exec(U))?{r:(0,t.VD)(M[1]),g:(0,t.VD)(M[2]),b:(0,t.VD)(M[3]),format:w?"name":"hex"}:(M=S.hex4.exec(U))?{r:(0,t.VD)(M[1]+M[1]),g:(0,t.VD)(M[2]+M[2]),b:(0,t.VD)(M[3]+M[3]),a:(0,t.T6)(M[4]+M[4]),format:w?"name":"hex8"}:!!(M=S.hex3.exec(U))&&{r:(0,t.VD)(M[1]+M[1]),g:(0,t.VD)(M[2]+M[2]),b:(0,t.VD)(M[3]+M[3]),format:w?"name":"hex"}}(U)),"object"==typeof U&&(k(U.r)&&k(U.g)&&k(U.b)?(w=(0,t.rW)(U.r,U.g,U.b),me=!0,Z="%"===String(U.r).substr(-1)?"prgb":"rgb"):k(U.h)&&k(U.s)&&k(U.v)?(e=(0,v.JX)(U.s),R=(0,v.JX)(U.v),w=(0,t.WE)(U.h,e,R),me=!0,Z="hsv"):k(U.h)&&k(U.s)&&k(U.l)&&(e=(0,v.JX)(U.s),pe=(0,v.JX)(U.l),w=(0,t.ve)(U.h,e,pe),me=!0,Z="hsl"),Object.prototype.hasOwnProperty.call(U,"a")&&(M=U.a)),M=(0,v.Yq)(M),{ok:me,format:U.format||Z,r:Math.min(255,Math.max(w.r,0)),g:Math.min(255,Math.max(w.g,0)),b:Math.min(255,Math.max(w.b,0)),a:M}}var j="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),$="[\\s|\\(]+(".concat(j,")[,|\\s]+(").concat(j,")[,|\\s]+(").concat(j,")\\s*\\)?"),I="[\\s|\\(]+(".concat(j,")[,|\\s]+(").concat(j,")[,|\\s]+(").concat(j,")[,|\\s]+(").concat(j,")\\s*\\)?"),S={CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function k(U){return!!S.CSS_UNIT.exec(String(U))}},6337:(It,be,a)=>{function t($,I){(function v($){return"string"==typeof $&&-1!==$.indexOf(".")&&1===parseFloat($)})($)&&($="100%");var S=function d($){return"string"==typeof $&&-1!==$.indexOf("%")}($);return $=360===I?$:Math.min(I,Math.max(0,parseFloat($))),S&&($=parseInt(String($*I),10)/100),Math.abs($-I)<1e-6?1:$=360===I?($<0?$%I+I:$%I)/parseFloat(String(I)):$%I/parseFloat(String(I))}function i($){return Math.min(1,Math.max(0,$))}function s($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function L($){return $<=1?"".concat(100*Number($),"%"):$}function j($){return 1===$.length?"0"+$:String($)}a.d(be,{FZ:()=>j,JX:()=>L,V2:()=>i,Yq:()=>s,sh:()=>t})},3369:(It,be,a)=>{a.d(be,{G:()=>Q});var t=a(5879),i=a(6814),v=a(4190),d=a(551),s=a(5695),L=a(7417),j=a(5676),$=a(7398),I=a(2181),S=a(313),F=a(2962),k=a(8125),U=a(3317),w=a(8091),M=a(2616);function e(fe,ue){if(1&fe&&(t._UZ(0,"i",9),t.ALo(1,"entityColor"),t._uU(2)),2&fe){const ge=t.oxw().ngIf;t.Q6J("nzTwotoneColor",t.lcZ(1,2,"ClinicalTrial")),t.xp6(2),t.hij(" ",ge.nctId," ")}}function R(fe,ue){if(1&fe&&(t.TgZ(0,"cvc-link-tag",10),t._uU(1," View on clinicaltrials.gov "),t.qZA()),2&fe){const ge=t.oxw().ngIf;t.Q6J("href",ge.url)}}function pe(fe,ue){if(1&fe&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,e,3,4,"ng-template",null,3,t.W1O),t.YNc(4,R,2,1,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t._uU(8),t.qZA(),t.TgZ(9,"nz-descriptions-item",7),t._uU(10),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t._uU(12),t.qZA()()(),t.BQk()),2&fe){const ge=ue.ngIf,Se=t.MAs(3),ke=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",Se)("nzExtra",ke),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(2),t.hij(" ",ge.name," "),t.xp6(2),t.hij(" ",ge.sourceCount," "),t.xp6(2),t.hij(" ",ge.evidenceCount," ")}}let me=(()=>{class fe{constructor(ge){this.gql=ge}ngOnInit(){if(null==this.clinicalTrialId)throw new Error("cvc-clinical-trial-popover requires valid clinicalTrialId input.");this.clinicalTrial$=this.gql.watch({clinicalTrialId:this.clinicalTrialId}).valueChanges.pipe((0,$.U)(({data:ge})=>ge?.clinicalTrials.edges[0]?.node),(0,I.h)(j.ep))}}return fe.\u0275fac=function(ge){return new(ge||fe)(t.Y36(S.UIR))},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},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","Name","nzSpan","2"],["nzTitle","Sources","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],[3,"href"]],template:function(ge,Se){1&ge&&(t.TgZ(0,"div",0),t.YNc(1,pe,13,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&ge&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,Se.clinicalTrial$)))},dependencies:[i.O5,F.bd,d.Ls,k.R7,k.uj,U.l,w.fM,M.a],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}"]}),fe})();function Z(fe,ue){}function A(fe,ue){if(1&fe&&(t.ynx(0),t.TgZ(1,"a",4),t.YNc(2,Z,0,0,"ng-template",5),t.qZA(),t.BQk()),2&fe){const ge=t.oxw(),Se=t.MAs(2);t.xp6(1),t.Q6J("routerLink",ge.clinicalTrial.link),t.xp6(1),t.Q6J("ngTemplateOutlet",Se)}}function V(fe,ue){}function O(fe,ue){if(1&fe&&t._UZ(0,"cvc-clinical-trial-popover",8),2&fe){const ge=t.oxw(2);t.Q6J("clinicalTrialId",ge.clinicalTrial.id)}}function P(fe,ue){if(1&fe&&(t.TgZ(0,"nz-tag",6),t.YNc(1,V,0,0,"ng-template",5),t.qZA(),t.YNc(2,O,1,1,"ng-template",null,7,t.W1O)),2&fe){const ge=t.MAs(3),Se=t.oxw(),ke=t.MAs(6);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",ge)("nzPopoverTrigger",Se.enablePopover?"hover":null),t.xp6(1),t.Q6J("ngTemplateOutlet",ke)}}function D(fe,ue){}function re(fe,ue){if(1&fe&&t.YNc(0,D,0,0,"ng-template",5),2&fe){t.oxw();const ge=t.MAs(2);t.Q6J("ngTemplateOutlet",ge)}}function ae(fe,ue){if(1&fe&&(t._UZ(0,"i",9),t.ALo(1,"entityColor"),t._uU(2)),2&fe){const ge=t.oxw();t.Q6J("nzTwotoneColor",t.lcZ(1,2,"ClinicalTrial")),t.xp6(2),t.hij(" ",ge.clinicalTrial.nctId,"\n")}}let Q=(()=>{class fe{set clinicalTrial(ge){if(!ge)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=ge}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}}return fe.\u0275fac=function(ge){return new(ge||fe)},fe.\u0275cmp=t.Xpm({type:fe,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["clinicalTrialPopover",""],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(ge,Se){if(1&ge&&(t.YNc(0,A,3,2,"ng-container",0),t.YNc(1,P,4,4,"ng-template",null,1,t.W1O),t.YNc(3,re,1,1,"ng-template",null,2,t.W1O),t.YNc(5,ae,3,4,"ng-template",null,3,t.W1O)),2&ge){const ke=t.MAs(4);t.Q6J("ngIf",Se.linked)("ngIfElse",ke)}},dependencies:[i.O5,i.tP,v.rH,d.Ls,s.j,L.lU,me,M.a],styles:["[_nghost-%COMP%]{display:block}"]}),fe})()},4605:(It,be,a)=>{a.d(be,{N:()=>k});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(6067),L=a(2524),j=a(2962),$=a(8125),I=a(551),S=a(5879);let F=(()=>{class U{}return U.\u0275fac=function(M){return new(M||U)},U.\u0275mod=S.oAB({type:U}),U.\u0275inj=S.cJS({imports:[t.ez,j.vh,I.PV,$.q6,s.X,L.s]}),U})(),k=(()=>{class U{}return U.\u0275fac=function(M){return new(M||U)},U.\u0275mod=S.oAB({type:U}),U.\u0275inj=S.cJS({imports:[t.ez,i.Bz,I.PV,v.X,d.$6,F,L.s]}),U})()},2851:(It,be,a)=>{a.d(be,{I:()=>A});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(2962),$=a(8125),I=a(551),S=a(2392),F=a(3317),k=a(8091),U=a(5869);function w(V,O){if(1&V&&(d._UZ(0,"i",12),d._uU(1),d.ALo(2,"truncate")),2&V){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",d.xi3(2,1,P.name,50)," ")}}function M(V,O){if(1&V&&(d.TgZ(0,"cvc-link-tag",14),d._uU(1),d.qZA()),2&V){const P=d.oxw(2).ngIf;d.Q6J("href",P.diseaseUrl),d.xp6(1),d.hij(" DOID: ",P.doid," ")}}function e(V,O){if(1&V&&d.YNc(0,M,2,2,"cvc-link-tag",13),2&V){const P=d.oxw().ngIf,D=d.MAs(7);d.Q6J("ngIf",P.doid)("ngIfElse",D)}}function R(V,O){1&V&&(d.TgZ(0,"span",15),d._uU(1,"No DOID"),d.qZA())}function pe(V,O){if(1&V&&(d.TgZ(0,"nz-descriptions-item",16),d._uU(1),d.qZA()),2&V){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",P.name," ")}}function me(V,O){if(1&V&&(d.TgZ(0,"nz-descriptions-item",17),d._uU(1),d.qZA()),2&V){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",P.diseaseAliases.join(", ")," ")}}function Z(V,O){if(1&V&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,w,3,4,"ng-template",null,3,d.W1O),d.YNc(4,e,1,2,"ng-template",null,4,d.W1O),d.YNc(6,R,2,0,"ng-template",null,5,d.W1O),d.TgZ(8,"nz-descriptions",6),d.YNc(9,pe,2,1,"nz-descriptions-item",7),d.YNc(10,me,2,1,"nz-descriptions-item",8),d.TgZ(11,"nz-descriptions-item",9),d._uU(12),d.qZA(),d.TgZ(13,"nz-descriptions-item",10),d._uU(14),d.qZA(),d.TgZ(15,"nz-descriptions-item",11),d._uU(16),d.qZA()()(),d.BQk()),2&V){const P=O.ngIf,D=d.MAs(3),re=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",D)("nzExtra",re),d.xp6(7),d.Q6J("nzColumn",1),d.xp6(1),d.Q6J("ngIf",P.name.length>50),d.xp6(1),d.Q6J("ngIf",P.diseaseAliases.length>0),d.xp6(2),d.hij(" ",P.assertionCount," "),d.xp6(2),d.hij(" ",P.evidenceItemCount," "),d.xp6(2),d.hij(" ",P.molecularProfileCount," ")}}let A=(()=>{class V{constructor(P){this.gql=P}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,i.U)(({data:P})=>P?.diseasePopover),(0,v.h)(t.ep))}}return V.\u0275fac=function(P){return new(P||V)(d.Y36(s.k7O))},V.\u0275cmp=d.Xpm({type:V,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noDoid",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Molecular Profiles","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(P,D){1&P&&(d.TgZ(0,"div",0),d.YNc(1,Z,17,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&P&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,D.disease$)))},dependencies:[L.O5,j.bd,$.R7,$.uj,I.Ls,S.ZU,F.l,k.fM,U.W],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}"]}),V})()},5687:(It,be,a)=>{a.d(be,{t:()=>I});var t=a(6814),i=a(2962),v=a(8125),d=a(551),s=a(6067),L=a(2392),j=a(2524),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,i.vh,v.q6,d.PV,L.ZJ,j.s,s.X]}),S})()},9775:(It,be,a)=>{a.d(be,{n:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),j=a(551),$=a(2851),I=a(5869);function S(A,V){}function F(A,V){if(1&A&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,S,0,0,"ng-template",5),i.qZA(),i.BQk()),2&A){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.disease.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function k(A,V){}function U(A,V){if(1&A&&i._UZ(0,"cvc-disease-popover",8),2&A){const O=i.oxw(2);i.Q6J("diseaseId",O.disease.id)}}function w(A,V){if(1&A){const O=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzOnClose",function(D){i.CHM(O);const re=i.oxw();return i.KtG(re.itemClosed(D))}),i.YNc(1,k,0,0,"ng-template",5),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,7,i.W1O)}if(2&A){const O=i.MAs(3),P=i.oxw(),D=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function M(A,V){}function e(A,V){if(1&A&&i.YNc(0,M,0,0,"ng-template",5),2&A){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function R(A,V){if(1&A&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&A){const O=i.oxw(2);i.xp6(1),i.hij(" ",i.xi3(2,1,O.disease.name,27)," ")}}function pe(A,V){if(1&A&&i._uU(0),2&A){const O=i.oxw(2);i.hij(" ",O.disease.name," ")}}function me(A,V){if(1&A&&(i._UZ(0,"i",9),i.YNc(1,R,3,4,"ng-container",0),i.YNc(2,pe,1,1,"ng-template",null,10,i.W1O)),2&A){const O=i.MAs(3),P=i.oxw();i.xp6(1),i.Q6J("ngIf",P.truncateLongName)("ngIfElse",O)}}let Z=(()=>{class A extends t.a{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(O){if(!O)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=O}get disease(){return this._disease}idFunction(){return this.disease.id}}return A.\u0275fac=function(){let V;return function(P){return(V||(V=i.n5z(A)))(P||A)}}(),A.\u0275cmp=i.Xpm({type:A,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["diseasePopover",""],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["fullName",""]],template:function(O,P){if(1&O&&(i.YNc(0,F,3,2,"ng-container",0),i.YNc(1,w,4,5,"ng-template",null,1,i.W1O),i.YNc(3,e,1,1,"ng-template",null,2,i.W1O),i.YNc(5,me,4,2,"ng-template",null,3,i.W1O)),2&O){const D=i.MAs(4);i.Q6J("ngIf",P.linked)("ngIfElse",D)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,j.Ls,$.I,I.W],encapsulation:2,changeDetection:0}),A})()},3396:(It,be,a)=>{a.d(be,{Q:()=>I});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(551),L=a(5687),j=a(2524),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,i.Bz,v.X,d.$6,s.PV,j.s,L.t]}),S})()},8213:(It,be,a)=>{a.d(be,{_:()=>st});var t=a(7398),i=a(2181),v=a(5676),d=a(5879),s=a(313),L=a(6814),j=a(4190),$=a(551),I=a(2962),S=a(95),F=a(8125),k=a(5695),U=a(2574),w=a(2392),M=a(4770),e=a(9775),R=a(3897),pe=a(4138),me=a(2384),Z=a(2606),A=a(5095),V=a(8091),O=a(6967),P=a(2616);function D(Ze,Bt){if(1&Ze&&(d.ynx(0),d._UZ(1,"i",17),d.ALo(2,"entityColor"),d._uU(3),d.BQk()),2&Ze){const Jt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("nzTwotoneColor",d.lcZ(2,2,"EvidenceItem")),d.xp6(2),d.hij(" ",Jt.name," ")}}function re(Ze,Bt){if(1&Ze&&d._UZ(0,"cvc-status-tag",18),2&Ze){const Jt=d.oxw(2).ngIf;d.Q6J("status",Jt.status)}}function ae(Ze,Bt){1&Ze&&(d.TgZ(0,"nz-space"),d.YNc(1,D,4,4,"ng-container",15),d.YNc(2,re,1,1,"cvc-status-tag",16),d.qZA())}function Q(Ze,Bt){if(1&Ze&&d._UZ(0,"cvc-molecular-profile-tag",19),2&Ze){const Jt=d.oxw().ngIf;d.Q6J("molecularProfile",Jt.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function fe(Ze,Bt){if(1&Ze&&(d.ynx(0),d._uU(1),d.BQk()),2&Ze){const Jt=Bt.ngIf;d.xp6(1),d.hij(" ",Jt," ")}}function ue(Ze,Bt){if(1&Ze&&(d.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",21),d._UZ(2,"cvc-mp-tag-name",22),d.qZA(),d.TgZ(3,"nz-descriptions-item",23),d._UZ(4,"cvc-source-tag",24),d.qZA()()),2&Ze){const Jt=d.oxw().ngIf;d.Q6J("nzColumn",1),d.xp6(2),d.Q6J("nameSegments",Jt.molecularProfile.parsedName)("enablePopover",!1),d.xp6(2),d.Q6J("source",Jt.source)("enablePopover",!1)}}function ge(Ze,Bt){if(1&Ze&&(d.ynx(0),d._UZ(1,"cvc-disease-tag",35),d.BQk()),2&Ze){const Jt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("enablePopover",!1)("disease",Jt.disease)("truncateLongName",!0)}}function Se(Ze,Bt){1&Ze&&d._uU(0," N/A ")}function ke(Ze,Bt){if(1&Ze&&(d.TgZ(0,"span"),d._UZ(1,"cvc-therapy-tag",38),d.qZA()),2&Ze){const Jt=Bt.$implicit;d.xp6(1),d.Q6J("enablePopover",!1)("therapy",Jt)("truncateLongName",!0)}}function Rt(Ze,Bt){if(1&Ze&&(d.ynx(0),d._uU(1),d.ALo(2,"titlecase"),d.BQk()),2&Ze){const Jt=d.oxw(3).ngIf;d.xp6(1),d.hij(" ",d.lcZ(2,1,Jt.therapyInteractionType)," ")}}function Ft(Ze,Bt){if(1&Ze&&(d.TgZ(0,"nz-descriptions-item",36),d.YNc(1,ke,2,3,"span",37),d.YNc(2,Rt,3,3,"ng-container",1),d.qZA()),2&Ze){const Jt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("ngForOf",Jt.therapies),d.xp6(1),d.Q6J("ngIf",Jt.therapies.length>1)}}function Mt(Ze,Bt){if(1&Ze&&(d.TgZ(0,"span"),d._UZ(1,"cvc-phenotype-tag",40),d.qZA()),2&Ze){const Jt=Bt.$implicit;d.xp6(1),d.Q6J("enablePopover",!1)("phenotype",Jt)}}function yt(Ze,Bt){if(1&Ze&&(d.TgZ(0,"nz-descriptions-item",39),d.YNc(1,Mt,2,2,"span",37),d.qZA()),2&Ze){const Jt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("ngForOf",Jt.phenotypes)}}function Ct(Ze,Bt){if(1&Ze&&(d.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",25),d._uU(2),d.qZA(),d.TgZ(3,"nz-descriptions-item",26),d._uU(4),d.ALo(5,"evidenceEnumDisplay"),d.qZA(),d.TgZ(6,"nz-descriptions-item",27),d._uU(7),d.ALo(8,"evidenceEnumDisplay"),d.qZA(),d.TgZ(9,"nz-descriptions-item",28),d._uU(10),d.ALo(11,"evidenceEnumDisplay"),d.qZA(),d.TgZ(12,"nz-descriptions-item",29),d._uU(13),d._UZ(14,"i",30),d.qZA(),d.TgZ(15,"nz-descriptions-item",31),d.YNc(16,ge,2,3,"ng-container",9),d.YNc(17,Se,1,0,"ng-template",null,32,d.W1O),d.qZA(),d.YNc(19,Ft,3,2,"nz-descriptions-item",33),d.YNc(20,yt,2,1,"nz-descriptions-item",34),d.qZA()),2&Ze){const Jt=d.MAs(18),_n=d.oxw().ngIf;d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",_n.evidenceLevel," "),d.xp6(2),d.hij(" ",d.lcZ(5,10,_n.evidenceType)," "),d.xp6(3),d.hij(" ",d.lcZ(8,12,_n.evidenceDirection)," "),d.xp6(3),d.hij(" ",d.lcZ(11,14,_n.significance)," "),d.xp6(3),d.hij(" ",_n.evidenceRating,""),d.xp6(3),d.Q6J("ngIf",_n.disease)("ngIfElse",Jt),d.xp6(3),d.Q6J("ngIf",_n.therapies.length>0),d.xp6(1),d.Q6J("ngIf",_n.phenotypes.length>0)}}function Lt(Ze,Bt){if(1&Ze&&(d.TgZ(0,"a",41)(1,"nz-tag",42),d._UZ(2,"i",43),d._uU(3),d.qZA()()),2&Ze){const Jt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Jt.id,"/flags"),d.xp6(3),d.hij(" Flags (",Jt.flags.totalCount,") ")}}function rn(Ze,Bt){if(1&Ze&&(d.TgZ(0,"a",41)(1,"nz-tag",44),d._UZ(2,"i",45),d._uU(3),d.qZA()()),2&Ze){const Jt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Jt.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",Jt.revisions.totalCount,") ")}}function Sn(Ze,Bt){if(1&Ze&&(d.TgZ(0,"a",41)(1,"nz-tag",46),d._UZ(2,"i",47),d._uU(3),d.qZA()()),2&Ze){const Jt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Jt.id,"/comments"),d.xp6(3),d.hij(" Comments (",Jt.comments.totalCount,") ")}}function rt(Ze,Bt){if(1&Ze&&(d.ynx(0),d.TgZ(1,"nz-card",3),d.YNc(2,ae,3,0,"ng-template",null,4,d.W1O),d.YNc(4,Q,1,3,"ng-template",null,5,d.W1O),d.TgZ(6,"nz-row")(7,"nz-col",6)(8,"div",7)(9,"p",8),d.YNc(10,fe,2,1,"ng-container",9),d.qZA()()()(),d.TgZ(11,"nz-space",10),d.YNc(12,ue,5,5,"nz-descriptions",11),d.YNc(13,Ct,21,16,"nz-descriptions",11),d.qZA(),d.TgZ(14,"nz-row",12)(15,"nz-col",6)(16,"nz-space",13),d.YNc(17,Lt,4,2,"a",14),d.YNc(18,rn,4,2,"a",14),d.YNc(19,Sn,4,2,"a",14),d.qZA()()()(),d.BQk()),2&Ze){const Jt=Bt.ngIf,_n=d.MAs(3),On=d.MAs(5);d.oxw();const cn=d.MAs(4);d.xp6(1),d.Q6J("nzTitle",_n)("nzExtra",On),d.xp6(8),d.Q6J("nzEllipsisRows",4),d.xp6(1),d.Q6J("ngIf",Jt.description)("ngIfElse",cn)}}function Ye(Ze,Bt){1&Ze&&d._uU(0," Evidence item has not been provided a description.\n")}let st=(()=>{class Ze{constructor(Jt){this.gql=Jt}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,t.U)(({data:Jt})=>Jt?.evidenceItem),(0,i.h)(v.ep))}}return Ze.\u0275fac=function(Jt){return new(Jt||Ze)(d.Y36(s.Ybm))},Ze.\u0275cmp=d.Xpm({type:Ze,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDescription",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["molecularProfile",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["noDisease",""],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(Jt,_n){1&Jt&&(d.TgZ(0,"div",0),d.YNc(1,rt,20,5,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA(),d.YNc(3,Ye,1,0,"ng-template",null,2,d.W1O)),2&Jt&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,_n.evidence$)))},dependencies:[L.sg,L.O5,j.rH,$.Ls,I.bd,S.t3,S.SK,F.R7,F.uj,k.j,U.NU,U.$1,w.ZU,M.T,e.n,R.i,pe.T,me.h,Z.p,A.C,L.rS,V.fM,O.Do,P.a],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}"]}),Ze})()},1855:(It,be,a)=>{a.d(be,{f:()=>me});var t=a(6814),i=a(2962),v=a(95),d=a(8125),s=a(4190),L=a(5695),j=a(3396),$=a(3043),I=a(2574),S=a(551),F=a(2524),k=a(8641),U=a(2655),w=a(2392),M=a(9858),e=a(8527),R=a(6061),pe=a(5879);let me=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=pe.oAB({type:Z}),Z.\u0275inj=pe.cJS({imports:[t.ez,s.Bz,S.PV,i.vh,v.Jb,d.q6,L.X,I.zf,w.ZJ,F.s,R.N,j.Q,$.y,k.s,U.x,e.u,M.r]}),Z})()},1598:(It,be,a)=>{a.d(be,{Q:()=>O});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(4190),$=a(2962),I=a(95),S=a(8125),F=a(5695),k=a(551),U=a(2574),w=a(8091),M=a(2616);function e(P,D){if(1&P&&(d._UZ(0,"i",11),d.ALo(1,"entityColor"),d._uU(2)),2&P){const re=d.oxw().ngIf;d.Q6J("nzTwotoneColor",d.lcZ(1,2,"Gene")),d.xp6(2),d.hij(" ",re.officialName," ")}}function R(P,D){if(1&P&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&P){const re=D.$implicit;d.xp6(1),d.Oqu(re)}}function pe(P,D){if(1&P&&(d.TgZ(0,"nz-descriptions-item",12),d.YNc(1,R,2,1,"nz-tag",13),d.qZA()),2&P){const re=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",re.geneAliases)}}function me(P,D){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",15),d._UZ(2,"i",16),d._uU(3),d.qZA()()),2&P){const re=d.oxw().ngIf;d.MGl("routerLink","/genes/",re.id,"/flags"),d.xp6(3),d.hij(" Flags (",re.flags.totalCount,") ")}}function Z(P,D){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",17),d._UZ(2,"i",18),d._uU(3),d.qZA()()),2&P){const re=d.oxw().ngIf;d.MGl("routerLink","/genes/",re.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",re.revisions.totalCount,") ")}}function A(P,D){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",19),d._UZ(2,"i",20),d._uU(3),d.qZA()()),2&P){const re=d.oxw().ngIf;d.MGl("routerLink","/genes/",re.id,"/comments"),d.xp6(3),d.hij(" Comments (",re.comments.totalCount,") ")}}function V(P,D){if(1&P&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,e,3,4,"ng-template",null,3,d.W1O),d.TgZ(4,"nz-descriptions",4),d.YNc(5,pe,2,1,"nz-descriptions-item",5),d.TgZ(6,"nz-descriptions-item",6),d._uU(7),d.qZA()(),d.TgZ(8,"nz-row",7)(9,"nz-col",8)(10,"nz-space",9),d.YNc(11,me,4,2,"a",10),d.YNc(12,Z,4,2,"a",10),d.YNc(13,A,4,2,"a",10),d.qZA()()()(),d.BQk()),2&P){const re=D.ngIf,ae=d.MAs(3);d.xp6(1),d.Q6J("nzTitle",ae),d.xp6(3),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",re.geneAliases.length>0),d.xp6(2),d.hij(" ",re.variants.totalCount," ")}}let O=(()=>{class P{constructor(re){this.gql=re}ngOnInit(){if(null==this.geneId)throw new Error("cvc-gene-popover requires valid geneId input.");this.gene$=this.gql.watch({geneId:this.geneId}).valueChanges.pipe((0,i.U)(({data:re})=>re?.gene),(0,v.h)(t.ep))}}return P.\u0275fac=function(re){return new(re||P)(d.Y36(s.rJ8))},P.\u0275cmp=d.Xpm({type:P,selectors:[["cvc-gene-popover"]],inputs:{geneId:"geneId"},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","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[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(re,ae){1&re&&(d.TgZ(0,"div",0),d.YNc(1,V,14,4,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&re&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,ae.gene$)))},dependencies:[L.sg,L.O5,j.rH,$.bd,I.t3,I.SK,S.R7,S.uj,F.j,k.Ls,U.NU,U.$1,w.fM,M.a],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}"]}),P})()},9021:(It,be,a)=>{a.d(be,{w:()=>F});var t=a(6814),i=a(4190),v=a(2524),d=a(2962),s=a(8125),L=a(95),j=a(551),$=a(2574),I=a(5695),S=a(5879);let F=(()=>{class k{}return k.\u0275fac=function(w){return new(w||k)},k.\u0275mod=S.oAB({type:k}),k.\u0275inj=S.cJS({imports:[t.ez,i.Bz,d.vh,L.Jb,s.q6,I.X,j.PV,$.zf,v.s]}),k})()},4121:(It,be,a)=>{a.d(be,{H:()=>O});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),j=a(7417),$=a(551),I=a(1598),S=a(3103),F=a(5869),k=a(2616);function U(P,D){}function w(P,D){if(1&P&&(v.ynx(0),v.TgZ(1,"a",4),v.YNc(2,U,0,0,"ng-template",5),v.qZA(),v.BQk()),2&P){const re=v.oxw(),ae=v.MAs(2);v.xp6(1),v.Q6J("routerLink",re.gene.link),v.xp6(1),v.Q6J("ngTemplateOutlet",ae)}}function M(P,D){}function e(P,D){if(1&P&&v._UZ(0,"cvc-gene-popover",8),2&P){const re=v.oxw(2);v.Q6J("geneId",re.gene.id)}}function R(P,D){if(1&P){const re=v.EpF();v.TgZ(0,"nz-tag",6),v.NdJ("nzOnClose",function(Q){v.CHM(re);const fe=v.oxw();return v.KtG(fe.itemClosed(Q))}),v.YNc(1,M,0,0,"ng-template",5),v.qZA(),v.YNc(2,e,1,1,"ng-template",null,7,v.W1O)}if(2&P){const re=v.MAs(3),ae=v.oxw(),Q=v.MAs(6);v.Q6J("nzPopoverMouseEnterDelay",ae.onCloseClicked?0:.5)("nzPopoverContent",re)("nzPopoverTrigger",ae.enablePopover?"hover":null)("nzMode",ae.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",Q)}}function pe(P,D){}function me(P,D){if(1&P&&v.YNc(0,pe,0,0,"ng-template",5),2&P){v.oxw();const re=v.MAs(2);v.Q6J("ngTemplateOutlet",re)}}function Z(P,D){if(1&P&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&P){const re=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,re.gene.name,12)," ")}}function A(P,D){if(1&P&&v._uU(0),2&P){const re=v.oxw(2);v.hij(" ",re.gene.name," ")}}function V(P,D){if(1&P&&(v.TgZ(0,"cvc-icon-badges",9),v._UZ(1,"i",10),v.ALo(2,"entityColor"),v.qZA(),v.YNc(3,Z,3,4,"ng-container",0),v.YNc(4,A,1,1,"ng-template",null,11,v.W1O)),2&P){const re=v.MAs(5),ae=v.oxw();v.Q6J("flagged",ae.gene.flagged)("entityColor",ae.iconColor),v.xp6(1),v.Q6J("nzTwotoneColor",v.lcZ(2,5,"Gene")),v.xp6(2),v.Q6J("ngIf",ae.truncateLongName)("ngIfElse",re)}}let O=(()=>{class P extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,i.f)("Gene")}idFunction(){return this.gene.id}ngOnInit(){if(super.ngOnInit(),void 0===this.gene)throw new Error("cvc-gene-tag requires LinkableGene input, none supplied.")}}return P.\u0275fac=function(re){return new(re||P)},P.\u0275cmp=v.Xpm({type:P,selectors:[["cvc-gene-tag"]],inputs:{gene:"gene",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["genePopover",""],[3,"geneId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-gene","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(re,ae){if(1&re&&(v.YNc(0,w,3,2,"ng-container",0),v.YNc(1,R,4,5,"ng-template",null,1,v.W1O),v.YNc(3,me,1,1,"ng-template",null,2,v.W1O),v.YNc(5,V,6,7,"ng-template",null,3,v.W1O)),2&re){const Q=v.MAs(4);v.Q6J("ngIf",ae.linked)("ngIfElse",Q)}},dependencies:[d.O5,d.tP,s.rH,L.j,j.lU,$.Ls,I.Q,S.b,F.W,k.a],encapsulation:2,changeDetection:0}),P})()},5956:(It,be,a)=>{a.d(be,{U:()=>F});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(9021),j=a(2524),$=a(3640),I=a(3146),S=a(5879);let F=(()=>{class k{}return k.\u0275fac=function(w){return new(w||k)},k.\u0275mod=S.oAB({type:k}),k.\u0275inj=S.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,$.mS,j.s,L.w,I.C]}),k})()},156:(It,be,a)=>{a.d(be,{_:()=>ae});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(4190),$=a(2962),I=a(95),S=a(8125),F=a(5695),k=a(551),U=a(2574),w=a(1887),M=a(5095),e=a(8091);function R(Q,fe){if(1&Q&&(d._UZ(0,"i",16),d._uU(1)),2&Q){const ue=d.oxw().ngIf;d.xp6(1),d.hij(" ",ue.name," ")}}function pe(Q,fe){if(1&Q&&(d.TgZ(0,"nz-descriptions-item",17),d._uU(1),d.qZA()),2&Q){const ue=d.oxw().ngIf;d.xp6(1),d.hij(" ",ue.evidenceItems.totalCount," ")}}function me(Q,fe){if(1&Q&&(d.TgZ(0,"nz-descriptions-item",18),d._uU(1),d.qZA()),2&Q){const ue=d.oxw().ngIf;d.xp6(1),d.hij(" ",ue.assertions.totalCount," ")}}function Z(Q,fe){if(1&Q&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&Q){const ue=fe.$implicit;d.xp6(1),d.Oqu(ue)}}function A(Q,fe){if(1&Q&&(d.ynx(0),d.TgZ(1,"cvc-tag-list"),d.YNc(2,Z,2,1,"nz-tag",19),d.qZA(),d.BQk()),2&Q){const ue=d.oxw().ngIf;d.xp6(2),d.Q6J("ngForOf",ue.molecularProfileAliases)}}function V(Q,fe){1&Q&&(d.TgZ(0,"span",20),d._uU(1,"None specified"),d.qZA())}function O(Q,fe){if(1&Q&&(d.TgZ(0,"a",21)(1,"nz-tag",22),d._UZ(2,"i",23),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",ue.id,"/flags"),d.xp6(3),d.hij(" Flags (",ue.flags.totalCount,") ")}}function P(Q,fe){if(1&Q&&(d.TgZ(0,"a",21)(1,"nz-tag",24),d._UZ(2,"i",25),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",ue.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",ue.revisions.totalCount,") ")}}function D(Q,fe){if(1&Q&&(d.TgZ(0,"a",21)(1,"nz-tag",26),d._UZ(2,"i",27),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",ue.id,"/comments"),d.xp6(3),d.hij(" Comments (",ue.comments.totalCount,") ")}}function re(Q,fe){if(1&Q&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,R,2,1,"ng-template",null,3,d.W1O),d.TgZ(4,"nz-descriptions",4)(5,"nz-descriptions-item",5),d._UZ(6,"cvc-mp-tag-name",6),d.qZA(),d.YNc(7,pe,2,1,"nz-descriptions-item",7),d.YNc(8,me,2,1,"nz-descriptions-item",8),d.TgZ(9,"nz-descriptions-item",9),d.YNc(10,A,3,1,"ng-container",10),d.YNc(11,V,2,0,"ng-template",null,11,d.W1O),d.qZA()(),d.TgZ(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),d.YNc(16,O,4,2,"a",15),d.YNc(17,P,4,2,"a",15),d.YNc(18,D,4,2,"a",15),d.qZA()()()(),d.BQk()),2&Q){const ue=fe.ngIf,ge=d.MAs(3),Se=d.MAs(12);d.xp6(1),d.Q6J("nzTitle",ge),d.xp6(3),d.Q6J("nzColumn",2),d.xp6(2),d.Q6J("nameSegments",ue.parsedName)("enablePopover",!1),d.xp6(1),d.Q6J("ngIf",ue.evidenceItems.totalCount>0),d.xp6(1),d.Q6J("ngIf",ue.assertions.totalCount>0),d.xp6(2),d.Q6J("ngIf",ue.molecularProfileAliases.length>0)("ngIfElse",Se)}}let ae=(()=>{class Q{constructor(ue){this.gql=ue}ngOnInit(){if(void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile ID into the molecular profile popover component.");this.molecularProfile$=this.gql.watch({molecularProfileId:this.molecularProfileId}).valueChanges.pipe((0,i.U)(({data:ue})=>ue?.molecularProfile),(0,v.h)(t.ep))}}return Q.\u0275fac=function(ue){return new(ue||Q)(d.Y36(s.DkJ))},Q.\u0275cmp=d.Xpm({type:Q,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},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","MP Expression","nzSpan","2"],[3,"nameSegments","enablePopover"],["nzTitle","Evidence Items","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2",4,"ngIf"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["noAliases",""],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:molecularprofile"],["nzTitle","Evidence Items","nzSpan","2"],["nzTitle","Assertions","nzSpan","2"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[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(ue,ge){1&ue&&(d.TgZ(0,"div",0),d.YNc(1,re,19,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&ue&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,ge.molecularProfile$)))},dependencies:[L.sg,L.O5,j.rH,$.bd,I.t3,I.SK,S.R7,S.uj,F.j,k.Ls,U.NU,U.$1,w.$,M.C,e.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}"]}),Q})()},2064:(It,be,a)=>{a.d(be,{_:()=>w});var t=a(6814),i=a(4190),v=a(2962),d=a(95),s=a(8125),L=a(5695),j=a(551),$=a(2574),I=a(5956),S=a(6067),F=a(9858),k=a(366),U=a(5879);let w=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=U.oAB({type:M}),M.\u0275inj=U.cJS({imports:[t.ez,i.Bz,v.vh,d.Jb,s.q6,L.X,j.PV,$.zf,I.U,S.X,k.$,F.r]}),M})()},5095:(It,be,a)=>{a.d(be,{C:()=>U});var t=a(5879),i=a(6814),v=a(9408),d=a(4121);const s=["*"];let L=(()=>{class w{constructor(){}}return w.\u0275fac=function(e){return new(e||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["cvc-tag-group"]],ngContentSelectors:s,decls:1,vars:0,template:function(e,R){1&e&&(t.F$t(),t.Hsn(0))},styles:["[_nghost-%COMP%] >*:first-child nz-tag{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}[_nghost-%COMP%] >*:last-child nz-tag{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px;border-left-color:#e9e9e9}"]}),w})();function j(w,M){if(1&w&&t._UZ(0,"span",3),2&w){const e=t.oxw().$implicit;t.Q6J("innerHtml",e.text,t.oJD)}}function $(w,M){if(1&w&&t._UZ(0,"cvc-gene-tag",6),2&w){const e=t.oxw().$implicit,R=t.oxw(3);t.Q6J("gene",e)("enablePopover",R.enablePopover)}}function I(w,M){if(1&w&&(t.ynx(0),t.YNc(1,$,1,2,"cvc-gene-tag",5),t.BQk()),2&w){const e=M.$implicit;t.xp6(1),t.Q6J("ngIf","Gene"==e.__typename)}}const S=function(w){return[w]};function F(w,M){if(1&w&&(t.ynx(0),t.TgZ(1,"cvc-tag-group"),t.YNc(2,I,2,1,"ng-container",0),t._UZ(3,"cvc-variant-tag",4),t.qZA(),t.BQk()),2&w){const e=t.oxw(),R=e.index,pe=e.$implicit,me=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.VKq(3,S,me.nameSegments[R-1])),t.xp6(1),t.Q6J("variant",pe)("enablePopover",me.enablePopover)}}function k(w,M){if(1&w&&(t.ynx(0),t.YNc(1,j,1,1,"span",1),t.YNc(2,F,4,5,"ng-container",2),t.BQk()),2&w){const e=M.$implicit;t.xp6(1),t.Q6J("ngIf","MolecularProfileTextSegment"==e.__typename),t.xp6(1),t.Q6J("ngIf","Variant"==e.__typename)}}let U=(()=>{class w{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.nameSegments)throw new Error("Must pass a list of molecular profile name segments into mp name component.")}}return w.\u0275fac=function(e){return new(e||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["cvc-mp-tag-name"]],inputs:{nameSegments:"nameSegments",enablePopover:"enablePopover"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["class","text-segment",3,"innerHtml",4,"ngIf"],[4,"ngIf"],[1,"text-segment",3,"innerHtml"],[3,"variant","enablePopover"],[3,"gene","enablePopover",4,"ngIf"],[3,"gene","enablePopover"]],template:function(e,R){1&e&&t.YNc(0,k,3,2,"ng-container",0),2&e&&t.Q6J("ngForOf",R.nameSegments)},dependencies:[i.sg,i.O5,v.I,d.H,L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]}),w})()},9858:(It,be,a)=>{a.d(be,{r:()=>$});var t=a(6814),i=a(7528),v=a(5956),d=a(5695),s=a(551),L=a(5879);let j=(()=>{class I{}return I.\u0275fac=function(F){return new(F||I)},I.\u0275mod=L.oAB({type:I}),I.\u0275inj=L.cJS({imports:[t.ez]}),I})(),$=(()=>{class I{}return I.\u0275fac=function(F){return new(F||I)},I.\u0275mod=L.oAB({type:I}),I.\u0275inj=L.cJS({imports:[t.ez,d.X,s.PV,i.Q,v.U,j]}),I})()},2606:(It,be,a)=>{a.d(be,{p:()=>re});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),j=a(7417),$=a(551),I=a(156),S=a(5869);function F(ae,Q){}function k(ae,Q){if(1&ae&&(v.ynx(0),v.TgZ(1,"a",5),v.YNc(2,F,0,0,"ng-template",6),v.qZA(),v.BQk()),2&ae){const fe=v.oxw(),ue=v.MAs(2);v.xp6(1),v.Q6J("routerLink",fe.molecularProfile.link),v.xp6(1),v.Q6J("ngTemplateOutlet",ue)}}function U(ae,Q){}const w=function(ae){return{deprecated:ae}};function M(ae,Q){if(1&ae){const fe=v.EpF();v.TgZ(0,"nz-tag",9),v.NdJ("nzOnClose",function(ge){v.CHM(fe);const Se=v.oxw(2);return v.KtG(Se.itemClosed(ge))}),v.YNc(1,U,0,0,"ng-template",6),v.qZA()}if(2&ae){v.oxw();const fe=v.MAs(2),ue=v.oxw(),ge=v.MAs(8);v.Q6J("ngClass",v.VKq(5,w,ue.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",ue.onCloseClicked?0:.5)("nzPopoverContent",fe)("nzMode",ue.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",ge)}}function e(ae,Q){if(1&ae&&v._UZ(0,"cvc-molecular-profile-popover",11),2&ae){const fe=v.oxw(3);v.Q6J("molecularProfileId",fe.molecularProfile.id)}}function R(ae,Q){if(1&ae&&v.YNc(0,e,1,1,"cvc-molecular-profile-popover",10),2&ae){const fe=v.oxw(2);v.Q6J("ngIf",fe.enablePopover)}}function pe(ae,Q){if(1&ae&&(v.YNc(0,M,2,7,"nz-tag",7),v.YNc(1,R,1,1,"ng-template",null,8,v.W1O)),2&ae){const fe=v.oxw(),ue=v.MAs(4);v.Q6J("ngIf",fe.enablePopover)("ngIfElse",ue)}}function me(ae,Q){}function Z(ae,Q){if(1&ae){const fe=v.EpF();v.TgZ(0,"nz-tag",12),v.NdJ("nzOnClose",function(ge){v.CHM(fe);const Se=v.oxw();return v.KtG(Se.itemClosed(ge))}),v.YNc(1,me,0,0,"ng-template",6),v.qZA()}if(2&ae){const fe=v.oxw(),ue=v.MAs(8);v.Q6J("nzMode",fe.onCloseClicked?"closeable":"default")("ngClass",v.VKq(3,w,fe.molecularProfile.deprecated)),v.xp6(1),v.Q6J("ngTemplateOutlet",ue)}}function A(ae,Q){}function V(ae,Q){if(1&ae&&v.YNc(0,A,0,0,"ng-template",6),2&ae){v.oxw();const fe=v.MAs(2);v.Q6J("ngTemplateOutlet",fe)}}function O(ae,Q){if(1&ae&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&ae){const fe=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,fe.molecularProfile.name,fe.truncationLength)," ")}}function P(ae,Q){if(1&ae&&v._uU(0),2&ae){const fe=v.oxw(2);v.hij(" ",fe.molecularProfile.name," ")}}function D(ae,Q){if(1&ae&&(v._UZ(0,"i",13),v.YNc(1,O,3,4,"ng-container",0),v.YNc(2,P,1,1,"ng-template",null,14,v.W1O)),2&ae){const fe=v.MAs(3),ue=v.oxw();v.Q6J("nzTwotoneColor",ue.iconColor),v.xp6(1),v.Q6J("ngIf",ue.truncateLongName)("ngIfElse",fe)}}let re=(()=>{class ae extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,i.f)("MolecularProfile")}idFunction(){return this.molecularProfile.id}ngOnInit(){if(super.ngOnInit(),void 0===this.molecularProfile)throw new Error("cvc-molecular-profile-tag requires LinkableMolecularProfile input, none supplied.");"number"==typeof this.truncateLongName&&(this.truncationLength=this.truncateLongName),"segments"in this.molecularProfile&&(this.molecularProfile.name=this.molecularProfile.segments.map(fe=>"text"in fe?fe.text:fe.name).join(" "))}}return ae.\u0275fac=function(fe){return new(fe||ae)},ae.\u0275cmp=v.Xpm({type:ae,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzMode","ngClass","nzOnClose"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(fe,ue){if(1&fe&&(v.YNc(0,k,3,2,"ng-container",0),v.YNc(1,pe,3,2,"ng-template",null,1,v.W1O),v.YNc(3,Z,2,5,"ng-template",null,2,v.W1O),v.YNc(5,V,1,1,"ng-template",null,3,v.W1O),v.YNc(7,D,4,3,"ng-template",null,4,v.W1O)),2&fe){const ge=v.MAs(6);v.Q6J("ngIf",ue.linked)("ngIfElse",ge)}},dependencies:[d.mk,d.O5,d.tP,s.rH,L.j,j.lU,$.Ls,I._,S.W],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),ae})()},8527:(It,be,a)=>{a.d(be,{u:()=>I});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(2524),j=a(2064),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,L.s,j._]}),S})()},4402:(It,be,a)=>{a.d(be,{S:()=>M});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(551),$=a(2962),I=a(3317),S=a(8125),F=a(8091);function k(e,R){if(1&e&&(d._UZ(0,"i",9),d._uU(1)),2&e){const pe=d.oxw().ngIf;d.xp6(1),d.hij(" ",pe.name," ")}}function U(e,R){if(1&e&&(d.TgZ(0,"cvc-link-tag",10),d._uU(1),d.qZA()),2&e){const pe=d.oxw().ngIf;d.Q6J("href",pe.url),d.xp6(1),d.hij(" ",pe.hpoId," ")}}function w(e,R){if(1&e&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,k,2,1,"ng-template",null,3,d.W1O),d.YNc(4,U,2,2,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),d._uU(8),d.qZA(),d.TgZ(9,"nz-descriptions-item",7),d._uU(10),d.qZA(),d.TgZ(11,"nz-descriptions-item",8),d._uU(12),d.qZA()()(),d.BQk()),2&e){const pe=R.ngIf,me=d.MAs(3),Z=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",me)("nzExtra",Z),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",pe.assertionCount," "),d.xp6(2),d.hij(" ",pe.evidenceItemCount," "),d.xp6(2),d.hij(" ",pe.molecularProfileCount," ")}}let M=(()=>{class e{constructor(pe){this.gql=pe}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,i.U)(({data:pe})=>pe?.phenotypePopover),(0,v.h)(t.ep))}}return e.\u0275fac=function(pe){return new(pe||e)(d.Y36(s.OHm))},e.\u0275cmp=d.Xpm({type:e,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},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","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(pe,me){1&pe&&(d.TgZ(0,"div",0),d.YNc(1,w,13,6,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&pe&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,me.phenotype$)))},dependencies:[L.O5,j.Ls,$.bd,I.l,S.R7,S.uj,F.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}"]}),e})()},1332:(It,be,a)=>{a.d(be,{I:()=>j});var t=a(6814),i=a(2962),v=a(6067),d=a(8125),s=a(551),L=a(5879);let j=(()=>{class ${}return $.\u0275fac=function(S){return new(S||$)},$.\u0275mod=L.oAB({type:$}),$.\u0275inj=L.cJS({imports:[t.ez,s.PV,i.vh,v.X,d.q6]}),$})()},3897:(It,be,a)=>{a.d(be,{i:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),j=a(551),$=a(4402),I=a(2616);function S(A,V){}function F(A,V){if(1&A&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,S,0,0,"ng-template",6),i.qZA(),i.BQk()),2&A){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.phenotype.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function k(A,V){}function U(A,V){if(1&A&&i._UZ(0,"cvc-phenotype-popover",9),2&A){const O=i.oxw(2);i.Q6J("phenotypeId",O.phenotype.id)}}function w(A,V){if(1&A){const O=i.EpF();i.TgZ(0,"nz-tag",7),i.NdJ("nzOnClose",function(D){i.CHM(O);const re=i.oxw();return i.KtG(re.itemClosed(D))}),i.YNc(1,k,0,0,"ng-template",6),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,8,i.W1O)}if(2&A){const O=i.MAs(3),P=i.oxw(),D=i.MAs(8);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function M(A,V){}function e(A,V){if(1&A){const O=i.EpF();i.TgZ(0,"nz-tag",10),i.NdJ("nzOnClose",function(D){i.CHM(O);const re=i.oxw();return i.KtG(re.itemClosed(D))}),i.YNc(1,M,0,0,"ng-template",6),i.qZA()}if(2&A){const O=i.oxw(),P=i.MAs(8);i.Q6J("nzMode",O.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function R(A,V){}function pe(A,V){if(1&A&&i.YNc(0,R,0,0,"ng-template",6),2&A){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function me(A,V){if(1&A&&(i._UZ(0,"i",11),i.ALo(1,"entityColor"),i._uU(2)),2&A){const O=i.oxw();i.Q6J("nzTwotoneColor",i.lcZ(1,2,"Phenotype")),i.xp6(2),i.hij(" ",O.phenotype.name,"\n")}}let Z=(()=>{class A extends t.a{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(O){if(!O)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=O}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}}return A.\u0275fac=function(){let V;return function(P){return(V||(V=i.n5z(A)))(P||A)}}(),A.\u0275cmp=i.Xpm({type:A,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[i.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["phenotypePopover",""],[3,"phenotypeId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(O,P){if(1&O&&(i.YNc(0,F,3,2,"ng-container",0),i.YNc(1,w,4,5,"ng-template",null,1,i.W1O),i.YNc(3,e,2,2,"ng-template",null,2,i.W1O),i.YNc(5,pe,1,1,"ng-template",null,3,i.W1O),i.YNc(7,me,3,4,"ng-template",null,4,i.W1O)),2&O){const D=i.MAs(6);i.Q6J("ngIf",P.linked)("ngIfElse",D)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,j.Ls,$.S,I.a],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),A})()},3043:(It,be,a)=>{a.d(be,{y:()=>I});var t=a(6814),i=a(4190),v=a(2524),d=a(551),s=a(7417),L=a(5695),j=a(1332),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,i.Bz,L.X,s.$6,d.PV,j.I,v.s]}),S})()},3103:(It,be,a)=>{a.d(be,{b:()=>I});var t=a(2023),i=a(5879),v=a(6814);const d=function(S){return{background:S}};function s(S,F){if(1&S&&i._UZ(0,"div",3),2&S){const k=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,k.flagColor))}}function L(S,F){if(1&S&&i._UZ(0,"div",4),2&S){const k=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,k.entityColor))}}function j(S,F){if(1&S&&i._UZ(0,"div",5),2&S){const k=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,k.entityColor))}}const $=["*"];let I=(()=>{class S{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.f)("Flag")}}return S.\u0275fac=function(k){return new(k||S)},S.\u0275cmp=i.Xpm({type:S,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:$,decls:4,vars:3,consts:[["class","cvc-badge badge-flags",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-revisions",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-comments",3,"ngStyle",4,"ngIf"],[1,"cvc-badge","badge-flags",3,"ngStyle"],[1,"cvc-badge","badge-revisions",3,"ngStyle"],[1,"cvc-badge","badge-comments",3,"ngStyle"]],template:function(k,U){1&k&&(i.F$t(),i.Hsn(0),i.YNc(1,s,1,3,"div",0),i.YNc(2,L,1,3,"div",1),i.YNc(3,j,1,3,"div",2)),2&k&&(i.xp6(1),i.Q6J("ngIf",U.flagged),i.xp6(1),i.Q6J("ngIf",U.hasRevisions),i.xp6(1),i.Q6J("ngIf",U.hasComments))},dependencies:[v.O5,v.PC],styles:["[_nghost-%COMP%]{display:inline-block;position:relative;line-height:1}.cvc-badge[_ngcontent-%COMP%]{position:absolute;z-index:auto;width:4px;min-width:4px;height:4px;border-radius:100%;box-shadow:0 0 0 1px #fff;background:#aaa}.cvc-badge.badge-revisions[_ngcontent-%COMP%]{top:.5px;right:.5px;transform:translate(50%,-50%)}.cvc-badge.badge-flags[_ngcontent-%COMP%]{top:.5px;left:.5px;transform:translate(-50%,-50%)}.cvc-badge.badge-comments[_ngcontent-%COMP%]{bottom:.5px;right:.5px;transform:translate(50%,50%)}"],changeDetection:0}),S})()},3146:(It,be,a)=>{a.d(be,{C:()=>d});var t=a(6814),i=a(2524),v=a(5879);let d=(()=>{class s{}return s.\u0275fac=function(j){return new(j||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[t.ez,i.s]}),s})()},3317:(It,be,a)=>{a.d(be,{l:()=>L});var t=a(5879),i=a(6109),v=a(5695),d=a(551);const s=["*"];let L=(()=>{class j{set href(I){if(!I)throw new Error("link-tag link Input requires string.");this._href=I}get href(){return this._href?this._href:""}}return j.\u0275fac=function(I){return new(I||j)},j.\u0275cmp=t.Xpm({type:j,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:s,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(I,S){1&I&&(t.F$t(),t.TgZ(0,"a",0)(1,"nz-tag",1),t._UZ(2,"i",2),t.Hsn(3),t.qZA()()),2&I&&(t.Q6J("href",S.href,t.LSH),t.xp6(1),t.Q6J("nzTooltipTitle",S.tooltip)("nzTooltipTrigger",S.tooltip?"hover":null),t.xp6(1),t.Q6J("nzType",S.iconName?S.iconName:"link"))},dependencies:[i.SY,v.j,d.Ls],encapsulation:2}),j})()},6067:(It,be,a)=>{a.d(be,{X:()=>L});var t=a(6814),i=a(6109),v=a(5695),d=a(551),s=a(5879);let L=(()=>{class j{}return j.\u0275fac=function(I){return new(I||j)},j.\u0275mod=s.oAB({type:j}),j.\u0275inj=s.cJS({imports:[t.ez,i.cg,v.X,d.PV]}),j})()},9154:(It,be,a)=>{a.d(be,{y:()=>s});var t=a(6814),i=a(551),v=a(5695),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function($){return new($||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,v.X,i.PV]}),L})()},3489:(It,be,a)=>{a.d(be,{H:()=>S});var t=a(5619),i=a(1687),v=a(1374),d=a(5879),s=a(6814),L=a(5695),j=a(551),$=a(8091);function I(F,k){1&F&&(d.TgZ(0,"nz-tag",1),d._UZ(1,"i",2),d.TgZ(2,"span"),d._uU(3,"End of results reached"),d.qZA()())}let S=(()=>{class F{set cvcShowTag(U){void 0!==U&&U&&this.showTag()}constructor(U){this.cdr=U,this.showTag$=new t.X(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,i.F)(3e3).pipe((0,v.P)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}}return F.\u0275fac=function(U){return new(U||F)(d.Y36(d.sBO))},F.\u0275cmp=d.Xpm({type:F,selectors:[["cvc-no-more-rows"]],inputs:{cvcShowTag:"cvcShowTag"},decls:2,vars:3,consts:[["nzColor","warning",4,"ngIf"],["nzColor","warning"],["nz-icon","","nzType","exclamation-circle"]],template:function(U,w){1&U&&(d.YNc(0,I,4,0,"nz-tag",0),d.ALo(1,"ngrxPush")),2&U&&d.Q6J("ngIf",d.lcZ(1,1,w.showTag$))},dependencies:[s.O5,L.j,j.Ls,$.fM],encapsulation:2,changeDetection:0}),F})()},2384:(It,be,a)=>{a.d(be,{h:()=>F});var t=a(5879),i=a(6814),v=a(5695),d=a(551);function s(k,U){1&k&&t._UZ(0,"i",7)}function L(k,U){1&k&&t._UZ(0,"i",8)}function j(k,U){1&k&&t._UZ(0,"i",9)}function $(k,U){1&k&&t._UZ(0,"i",10)}function I(k,U){1&k&&t._UZ(0,"i",10)}function S(k,U){if(1&k&&(t.TgZ(0,"nz-tag",1),t.ynx(1,2),t.YNc(2,s,1,0,"i",3),t.YNc(3,L,1,0,"i",4),t.YNc(4,j,1,0,"i",5),t.YNc(5,$,1,0,"i",6),t.YNc(6,I,1,0,"i",6),t.BQk(),t._uU(7),t.ALo(8,"titlecase"),t.qZA()),2&k){const w=t.oxw();t.Q6J("nzColor",w.tagStatus),t.xp6(1),t.Q6J("ngSwitch",w.tagStatus),t.xp6(1),t.Q6J("ngSwitchCase","success"),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","warning"),t.xp6(1),t.Q6J("ngSwitchCase","processing"),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(1),t.hij(" ",t.lcZ(8,8,w.status),"\n")}}let F=(()=>{class k{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(w){this._status=w,w&&(this.tagStatus=this.statusColorMap[w])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus or RevisionStatus to cvc-status-tag component")}}return k.\u0275fac=function(w){return new(w||k)},k.\u0275cmp=t.Xpm({type:k,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(w,M){1&w&&t.YNc(0,S,9,10,"nz-tag",0),2&w&&t.Q6J("ngIf",M.tagStatus)},dependencies:[i.O5,i.RF,i.n9,v.j,d.Ls,i.rS],encapsulation:2}),k})()},2655:(It,be,a)=>{a.d(be,{x:()=>s});var t=a(6814),i=a(5695),v=a(551),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function($){return new($||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,i.X,v.PV]}),L})()},1887:(It,be,a)=>{a.d(be,{$:()=>v});var t=a(5879);const i=["*"];let v=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(L,j){2&L&&t.ekj("xs","xs"===j.size||!j.size)("sm","sm"===j.size)},inputs:{size:"size"},ngContentSelectors:i,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(L,j){1&L&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"],changeDetection:0}),d})()},366:(It,be,a)=>{a.d(be,{$:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[t.ez]}),d})()},1813:(It,be,a)=>{a.d(be,{p:()=>Z});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(551),$=a(2962),I=a(8125),S=a(3317),F=a(1887),k=a(3369),U=a(8091);function w(A,V){if(1&A&&(d._UZ(0,"i",12),d._uU(1)),2&A){const O=d.oxw().ngIf;d.xp6(1),d.AsE(" ",O.displayType,":\xa0",O.citation," ")}}function M(A,V){if(1&A&&(d.TgZ(0,"cvc-link-tag",13),d._uU(1),d.qZA()),2&A){const O=d.oxw().ngIf;d.Q6J("href",O.sourceUrl)("tooltip","View on "+O.displayType),d.xp6(1),d.hij(" ",O.displayType+":"+O.citationId," ")}}function e(A,V){1&A&&d._UZ(0,"cvc-clinical-trial-tag",15),2&A&&d.Q6J("clinicalTrial",V.$implicit)("enablePopover",!1)}function R(A,V){if(1&A&&(d.ynx(0),d.TgZ(1,"cvc-tag-list"),d.YNc(2,e,1,2,"cvc-clinical-trial-tag",14),d.qZA(),d.BQk()),2&A){const O=d.oxw().ngIf;d.xp6(2),d.Q6J("ngForOf",O.clinicalTrials)}}function pe(A,V){1&A&&d._uU(0," -- ")}function me(A,V){if(1&A&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,w,2,2,"ng-template",null,3,d.W1O),d.YNc(4,M,2,3,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),d._uU(8),d.qZA(),d.TgZ(9,"nz-descriptions-item",7),d._uU(10),d.qZA(),d.TgZ(11,"nz-descriptions-item",8),d._uU(12),d.qZA(),d.TgZ(13,"nz-descriptions-item",9),d.YNc(14,R,3,1,"ng-container",10),d.YNc(15,pe,1,0,"ng-template",null,11,d.W1O),d.qZA()()(),d.BQk()),2&A){const O=V.ngIf,P=d.MAs(3),D=d.MAs(5),re=d.MAs(16);d.xp6(1),d.Q6J("nzTitle",P)("nzExtra",D),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",O.title," "),d.xp6(2),d.hij(" ",O.fullJournalTitle," "),d.xp6(2),d.hij(" ",O.evidenceItemCount," "),d.xp6(2),d.Q6J("ngIf",O.clinicalTrials&&O.clinicalTrials.length>0)("ngIfElse",re)}}let Z=(()=>{class A{constructor(O){this.gql=O}ngOnInit(){if(null==this.sourceId)throw new Error("cvc-source-popover requires valid sourceId input.");this.source$=this.gql.watch({sourceId:this.sourceId}).valueChanges.pipe((0,i.U)(({data:O})=>O?.sourcePopover),(0,v.h)(t.ep))}}return A.\u0275fac=function(O){return new(O||A)(d.Y36(s.TiL))},A.\u0275cmp=d.Xpm({type:A,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},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","Title","nzSpan","2"],["nzTitle","Journal","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Clinical Trials:","nzSpan","2"],[4,"ngIf","ngIfElse"],["noTrials",""],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(O,P){1&O&&(d.TgZ(0,"div",0),d.YNc(1,me,17,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&O&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,P.source$)))},dependencies:[L.sg,L.O5,j.Ls,$.bd,I.R7,I.uj,S.l,F.$,k.G,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}"]}),A})()},6247:(It,be,a)=>{a.d(be,{n:()=>I});var t=a(6814),i=a(2962),v=a(6067),d=a(8125),s=a(366),L=a(4605),j=a(551),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,j.PV,i.vh,d.q6,v.X,s.$,L.N]}),S})()},4138:(It,be,a)=>{a.d(be,{T:()=>P});var t=a(8130),i=a(5879),v=a(7023),d=a(6814),s=a(4190),L=a(551),j=a(7417),$=a(5695),I=a(1813),S=a(5869),F=a(2616);function k(D,re){}function U(D,re){if(1&D&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,k,0,0,"ng-template",5),i.qZA(),i.BQk()),2&D){const ae=i.oxw(),Q=i.MAs(2);i.xp6(1),i.Q6J("routerLink",ae.source.link),i.xp6(1),i.Q6J("ngTemplateOutlet",Q)}}function w(D,re){}function M(D,re){if(1&D&&i._UZ(0,"cvc-source-popover",8),2&D){const ae=i.oxw(2);i.Q6J("sourceId",ae.source.id)}}function e(D,re){if(1&D){const ae=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzPopoverVisibleChange",function(fe){i.CHM(ae);const ue=i.oxw();return i.KtG(ue.popoverVisible=fe)})("nzOnClose",function(fe){i.CHM(ae);const ue=i.oxw();return i.KtG(ue.itemClosed(fe))}),i.YNc(1,w,0,0,"ng-template",5),i.qZA(),i.YNc(2,M,1,1,"ng-template",null,7,i.W1O)}if(2&D){const ae=i.MAs(3),Q=i.oxw(),fe=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",ae)("nzPopoverTrigger",Q.enablePopover?"hover":null)("nzPopoverVisible",Q.popoverVisible)("nzMode",Q.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",fe)}}function R(D,re){}function pe(D,re){if(1&D&&i.YNc(0,R,0,0,"ng-template",5),2&D){i.oxw();const ae=i.MAs(2);i.Q6J("ngTemplateOutlet",ae)}}function me(D,re){if(1&D&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&D){const ae=i.oxw(3);i.xp6(1),i.hij(" ",i.xi3(2,1,ae.displayName,50)," ")}}function Z(D,re){if(1&D&&(i.ynx(0),i._uU(1),i.BQk()),2&D){const ae=i.oxw(3);i.xp6(1),i.hij(" ",ae.displayName," ")}}function A(D,re){if(1&D&&(i.ynx(0),i.YNc(1,me,3,4,"ng-container",11),i.YNc(2,Z,2,1,"ng-container",11),i.BQk()),2&D){const ae=i.oxw(2);i.xp6(1),i.Q6J("ngIf",ae.truncateLongName),i.xp6(1),i.Q6J("ngIf",!ae.truncateLongName)}}function V(D,re){if(1&D&&i._uU(0),2&D){const ae=i.oxw(2);i.hij(" SID:",ae.source.id," ")}}function O(D,re){if(1&D&&(i._UZ(0,"i",9),i.ALo(1,"entityColor"),i.YNc(2,A,3,2,"ng-container",0),i.YNc(3,V,1,1,"ng-template",null,10,i.W1O)),2&D){const ae=i.MAs(4),Q=i.oxw();i.Q6J("nzTwotoneColor",i.lcZ(1,3,"Source")),i.xp6(2),i.Q6J("ngIf","normal"===Q.mode)("ngIfElse",ae)}}let P=(()=>{class D extends t.a{set source(ae){if(!ae)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=ae,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(ae){super(),this.sourceTypeDisplay=ae,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}}return D.\u0275fac=function(ae){return new(ae||D)(i.Y36(v.l))},D.\u0275cmp=i.Xpm({type:D,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode","nzPopoverVisibleChange","nzOnClose"],["sourcePopover",""],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["concise",""],[4,"ngIf"]],template:function(ae,Q){if(1&ae&&(i.YNc(0,U,3,2,"ng-container",0),i.YNc(1,e,4,6,"ng-template",null,1,i.W1O),i.YNc(3,pe,1,1,"ng-template",null,2,i.W1O),i.YNc(5,O,5,5,"ng-template",null,3,i.W1O)),2&ae){const fe=i.MAs(4);i.Q6J("ngIf",Q.linked)("ngIfElse",fe)}},dependencies:[d.O5,d.tP,s.rH,L.Ls,j.lU,$.j,I.p,S.W,F.a],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),D})()},8641:(It,be,a)=>{a.d(be,{s:()=>I});var t=a(6814),i=a(7417),v=a(4190),d=a(6247),s=a(5695),L=a(551),j=a(2524),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,v.Bz,L.PV,i.$6,s.X,d.n,j.s]}),S})()},96:(It,be,a)=>{a.d(be,{a:()=>P});var t=a(7398),i=a(2181),v=a(5676),d=a(5879),s=a(313),L=a(6814),j=a(2962),$=a(8125),I=a(551),S=a(2392),F=a(5695),k=a(6109),U=a(3317),w=a(8091),M=a(5869);function e(D,re){if(1&D&&(d._UZ(0,"i",12),d._uU(1),d.ALo(2,"truncate")),2&D){const ae=d.oxw().ngIf;d.xp6(1),d.hij(" ",d.xi3(2,1,ae.name,50)," ")}}function R(D,re){if(1&D&&(d.TgZ(0,"cvc-link-tag",14),d._uU(1),d.qZA()),2&D){const ae=d.oxw(2).ngIf;d.Q6J("href",ae.therapyUrl),d.xp6(1),d.hij(" ",ae.ncitId," ")}}function pe(D,re){if(1&D&&d.YNc(0,R,2,2,"cvc-link-tag",13),2&D){const ae=d.oxw().ngIf,Q=d.MAs(7);d.Q6J("ngIf",ae.ncitId)("ngIfElse",Q)}}function me(D,re){1&D&&(d.TgZ(0,"span",15),d._uU(1,"No NCIt ID"),d.qZA())}function Z(D,re){if(1&D&&(d.TgZ(0,"nz-descriptions-item",16),d._uU(1),d.qZA()),2&D){const ae=d.oxw().ngIf;d.xp6(1),d.hij(" ",ae.name," ")}}function A(D,re){if(1&D&&(d.TgZ(0,"nz-tag",19),d._uU(1),d.ALo(2,"truncate"),d.qZA()),2&D){const ae=re.$implicit;d.Q6J("nzTooltipTitle",ae),d.xp6(1),d.Oqu(d.lcZ(2,2,ae))}}function V(D,re){if(1&D&&(d.TgZ(0,"nz-descriptions-item",17),d.YNc(1,A,3,4,"nz-tag",18),d.qZA()),2&D){const ae=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",ae.therapyAliases)}}function O(D,re){if(1&D&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,e,3,4,"ng-template",null,3,d.W1O),d.YNc(4,pe,1,2,"ng-template",null,4,d.W1O),d.YNc(6,me,2,0,"ng-template",null,5,d.W1O),d.TgZ(8,"nz-descriptions",6),d.YNc(9,Z,2,1,"nz-descriptions-item",7),d.YNc(10,V,2,1,"nz-descriptions-item",8),d.TgZ(11,"nz-descriptions-item",9),d._uU(12),d.qZA(),d.TgZ(13,"nz-descriptions-item",10),d._uU(14),d.qZA(),d.TgZ(15,"nz-descriptions-item",11),d._uU(16),d.qZA()()(),d.BQk()),2&D){const ae=re.ngIf,Q=d.MAs(3),fe=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",Q)("nzExtra",fe),d.xp6(7),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",ae.name.length>50),d.xp6(1),d.Q6J("ngIf",ae.therapyAliases.length>0),d.xp6(2),d.hij(" ",ae.assertionCount," "),d.xp6(2),d.hij(" ",ae.evidenceItemCount," "),d.xp6(2),d.hij(" ",ae.molecularProfileCount," ")}}let P=(()=>{class D{constructor(ae){this.gql=ae}ngOnInit(){if(null==this.therapyId)throw new Error("cvc-therapy-popover requires valid therapyId input.");this.therapy$=this.gql.watch({therapyId:this.therapyId}).valueChanges.pipe((0,t.U)(({data:ae})=>ae?.therapyPopover),(0,i.h)(v.ep))}}return D.\u0275fac=function(ae){return new(ae||D)(d.Y36(s.L8L))},D.\u0275cmp=d.Xpm({type:D,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noNcitId",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(ae,Q){1&ae&&(d.TgZ(0,"div",0),d.YNc(1,O,17,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&ae&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,Q.therapy$)))},dependencies:[L.sg,L.O5,j.bd,$.R7,$.uj,I.Ls,S.ZU,F.j,k.SY,U.l,w.fM,M.W],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})()},1207:(It,be,a)=>{a.d(be,{s:()=>k});var t=a(6814),i=a(4190),v=a(2962),d=a(8125),s=a(6067),L=a(551),j=a(2392),$=a(2524),I=a(5695),S=a(6109),F=a(5879);let k=(()=>{class U{}return U.\u0275fac=function(M){return new(M||U)},U.\u0275mod=F.oAB({type:U}),U.\u0275inj=F.cJS({imports:[t.ez,i.Bz,v.vh,d.q6,L.PV,j.ZJ,I.X,S.cg,s.X,$.s]}),U})()},4770:(It,be,a)=>{a.d(be,{T:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),j=a(551),$=a(96),I=a(5869);function S(A,V){}function F(A,V){if(1&A&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,S,0,0,"ng-template",5),i.qZA(),i.BQk()),2&A){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.therapy.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function k(A,V){}function U(A,V){if(1&A&&i._UZ(0,"cvc-therapy-popover",8),2&A){const O=i.oxw(2);i.Q6J("therapyId",O.therapy.id)}}function w(A,V){if(1&A){const O=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzOnClose",function(D){i.CHM(O);const re=i.oxw();return i.KtG(re.itemClosed(D))}),i.YNc(1,k,0,0,"ng-template",5),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,7,i.W1O)}if(2&A){const O=i.MAs(3),P=i.oxw(),D=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function M(A,V){}function e(A,V){if(1&A&&i.YNc(0,M,0,0,"ng-template",5),2&A){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function R(A,V){if(1&A&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&A){const O=i.oxw(2);i.xp6(1),i.hij(" ",i.xi3(2,1,O.therapy.name,21)," ")}}function pe(A,V){if(1&A&&i._uU(0),2&A){const O=i.oxw(2);i.hij(" ",O.therapy.name," ")}}function me(A,V){if(1&A&&(i._UZ(0,"i",9),i.YNc(1,R,3,4,"ng-container",0),i.YNc(2,pe,1,1,"ng-template",null,10,i.W1O)),2&A){const O=i.MAs(3),P=i.oxw();i.xp6(1),i.Q6J("ngIf",P.truncateLongName)("ngIfElse",O)}}let Z=(()=>{class A extends t.a{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(O){if(!O)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=O}get therapy(){return this._therapy}idFunction(){return this.therapy.id}}return A.\u0275fac=function(){let V;return function(P){return(V||(V=i.n5z(A)))(P||A)}}(),A.\u0275cmp=i.Xpm({type:A,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["therapyPopover",""],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["fullName",""]],template:function(O,P){if(1&O&&(i.YNc(0,F,3,2,"ng-container",0),i.YNc(1,w,4,5,"ng-template",null,1,i.W1O),i.YNc(3,e,1,1,"ng-template",null,2,i.W1O),i.YNc(5,me,4,2,"ng-template",null,3,i.W1O)),2&O){const D=i.MAs(4);i.Q6J("ngIf",P.linked)("ngIfElse",D)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,j.Ls,$.a,I.W],encapsulation:2,changeDetection:0}),A})()},6061:(It,be,a)=>{a.d(be,{N:()=>I});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(551),L=a(2524),j=a(1207),$=a(5879);let I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=$.oAB({type:S}),S.\u0275inj=$.cJS({imports:[t.ez,i.Bz,v.X,d.$6,s.PV,L.s,j.s]}),S})()},8545:(It,be,a)=>{a.d(be,{m:()=>ae});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),j=a(4190),$=a(2962),I=a(95),S=a(8125),F=a(5695),k=a(551),U=a(2574),w=a(4121),M=a(3317),e=a(8091),R=a(2616);function pe(Q,fe){if(1&Q&&(d._UZ(0,"i",13),d.ALo(1,"entityColor"),d._uU(2)),2&Q){const ue=d.oxw().ngIf;d.Q6J("nzTwotoneColor",d.lcZ(1,2,"Variant")),d.xp6(2),d.hij(" ",ue.name," ")}}function me(Q,fe){if(1&Q&&d._UZ(0,"cvc-gene-tag",14),2&Q){const ue=d.oxw().ngIf;d.Q6J("enablePopover",!1)("gene",ue.gene)}}function Z(Q,fe){if(1&Q&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&Q){const ue=fe.$implicit;d.xp6(1),d.Oqu(ue)}}function A(Q,fe){if(1&Q&&(d.TgZ(0,"nz-descriptions-item",15),d.YNc(1,Z,2,1,"nz-tag",16),d.qZA()),2&Q){const ue=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",ue.variantAliases)}}function V(Q,fe){if(1&Q&&(d.TgZ(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),d._uU(2),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.xp6(1),d.MGl("href","https://reg.genome.network/allele/",ue.alleleRegistryId,".html"),d.xp6(1),d.hij(" ",ue.alleleRegistryId," ")}}function O(Q,fe){if(1&Q&&(d.TgZ(0,"a",19)(1,"nz-tag",20),d._UZ(2,"i",21),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/variants/",ue.id,"/flags"),d.xp6(3),d.hij(" Flags (",ue.flags.totalCount,") ")}}function P(Q,fe){if(1&Q&&(d.TgZ(0,"a",19)(1,"nz-tag",22),d._UZ(2,"i",23),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/variants/",ue.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",ue.revisions.totalCount,") ")}}function D(Q,fe){if(1&Q&&(d.TgZ(0,"a",19)(1,"nz-tag",24),d._UZ(2,"i",25),d._uU(3),d.qZA()()),2&Q){const ue=d.oxw().ngIf;d.MGl("routerLink","/variants/",ue.id,"/comments"),d.xp6(3),d.hij(" Comments (",ue.comments.totalCount,") ")}}function re(Q,fe){if(1&Q&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,pe,3,4,"ng-template",null,3,d.W1O),d.YNc(4,me,1,2,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5),d.YNc(7,A,2,1,"nz-descriptions-item",6),d.YNc(8,V,3,2,"nz-descriptions-item",7),d.TgZ(9,"nz-descriptions-item",8),d._uU(10),d.qZA()(),d.TgZ(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),d.YNc(14,O,4,2,"a",12),d.YNc(15,P,4,2,"a",12),d.YNc(16,D,4,2,"a",12),d.qZA()()()(),d.BQk()),2&Q){const ue=fe.ngIf,ge=d.MAs(3),Se=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",ge)("nzExtra",Se),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",ue.variantAliases.length>0),d.xp6(1),d.Q6J("ngIf",ue.alleleRegistryId&&"unregistered"!=ue.alleleRegistryId),d.xp6(2),d.hij(" ",ue.molecularProfiles.totalCount," ")}}let ae=(()=>{class Q{constructor(ue){this.gql=ue}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,i.U)(({data:ue})=>ue?.variant),(0,v.h)(t.ep))}}return Q.\u0275fac=function(ue){return new(ue||Q)(d.Y36(s.ZYZ))},Q.\u0275cmp=d.Xpm({type:Q,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","Molecular Profiles","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[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(ue,ge){1&ue&&(d.TgZ(0,"div",0),d.YNc(1,re,17,6,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&ue&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,ge.variant$)))},dependencies:[L.sg,L.O5,j.rH,$.bd,I.t3,I.SK,S.R7,S.uj,F.j,k.Ls,U.NU,U.$1,w.H,M.l,e.fM,R.a],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}"]}),Q})()},6446:(It,be,a)=>{a.d(be,{k:()=>U});var t=a(6814),i=a(4190),v=a(2962),d=a(95),s=a(8125),L=a(5695),j=a(551),$=a(2574),I=a(5956),S=a(6067),F=a(2524),k=a(5879);let U=(()=>{class w{}return w.\u0275fac=function(e){return new(e||w)},w.\u0275mod=k.oAB({type:w}),w.\u0275inj=k.cJS({imports:[t.ez,i.Bz,v.vh,d.Jb,s.q6,L.X,j.PV,$.zf,F.s,I.U,S.X]}),w})()},9408:(It,be,a)=>{a.d(be,{I:()=>P});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),j=a(7417),$=a(551),I=a(8545),S=a(3103),F=a(5869);function k(D,re){}function U(D,re){if(1&D&&(v.ynx(0),v.TgZ(1,"a",4),v.YNc(2,k,0,0,"ng-template",5),v.qZA(),v.BQk()),2&D){const ae=v.oxw(),Q=v.MAs(2);v.xp6(1),v.Q6J("routerLink",ae.variant.link),v.xp6(1),v.Q6J("ngTemplateOutlet",Q)}}function w(D,re){}function M(D,re){if(1&D&&v._UZ(0,"cvc-variant-popover",9),2&D){const ae=v.oxw(3);v.Q6J("variantId",ae.variant.id)}}function e(D,re){if(1&D&&v.YNc(0,M,1,1,"cvc-variant-popover",8),2&D){const ae=v.oxw(2);v.Q6J("ngIf",ae.enablePopover)}}const R=function(D){return{deprecated:D}};function pe(D,re){if(1&D){const ae=v.EpF();v.TgZ(0,"nz-tag",6),v.NdJ("nzOnClose",function(fe){v.CHM(ae);const ue=v.oxw();return v.KtG(ue.itemClosed(fe))}),v.YNc(1,w,0,0,"ng-template",5),v.qZA(),v.YNc(2,e,1,1,"ng-template",null,7,v.W1O)}if(2&D){const ae=v.MAs(3),Q=v.oxw(),fe=v.MAs(6);v.Q6J("ngClass",v.VKq(6,R,Q.variant.deprecated))("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",ae)("nzPopoverTrigger",Q.enablePopover?"hover":null)("nzMode",Q.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",fe)}}function me(D,re){}function Z(D,re){if(1&D&&v.YNc(0,me,0,0,"ng-template",5),2&D){v.oxw();const ae=v.MAs(2);v.Q6J("ngTemplateOutlet",ae)}}function A(D,re){if(1&D&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&D){const ae=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,ae.variant.name,20)," ")}}function V(D,re){if(1&D&&v._uU(0),2&D){const ae=v.oxw(2);v.hij(" ",ae.variant.name," ")}}function O(D,re){if(1&D&&(v.TgZ(0,"cvc-icon-badges",10),v._UZ(1,"i",11),v.qZA(),v.YNc(2,A,3,4,"ng-container",0),v.YNc(3,V,1,1,"ng-template",null,12,v.W1O)),2&D){const ae=v.MAs(4),Q=v.oxw();v.Q6J("flagged",Q.variant.flagged)("entityColor",Q.iconColor),v.xp6(1),v.Q6J("nzTwotoneColor",Q.iconColor),v.xp6(1),v.Q6J("ngIf",Q.truncateLongName)("ngIfElse",ae)}}let P=(()=>{class D extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,i.f)("Variant")}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 D.\u0275fac=function(ae){return new(ae||D)},D.\u0275cmp=v.Xpm({type:D,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["popoverContent",""],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(ae,Q){if(1&ae&&(v.YNc(0,U,3,2,"ng-container",0),v.YNc(1,pe,4,8,"ng-template",null,1,v.W1O),v.YNc(3,Z,1,1,"ng-template",null,2,v.W1O),v.YNc(5,O,5,5,"ng-template",null,3,v.W1O)),2&ae){const fe=v.MAs(4);v.Q6J("ngIf",Q.linked)("ngIfElse",fe)}},dependencies:[d.mk,d.O5,d.tP,s.rH,L.j,j.lU,$.Ls,I.m,S.b,F.W],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),D})()},7528:(It,be,a)=>{a.d(be,{Q:()=>S});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(6446),j=a(2524),$=a(3146),I=a(5879);let S=(()=>{class F{}return F.\u0275fac=function(U){return new(U||F)},F.\u0275mod=I.oAB({type:F}),F.\u0275inj=I.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,j.s,L.k,$.C]}),F})()},3702:(It,be,a)=>{a.d(be,{t:()=>i});var t=a(5879);let i=(()=>{class v{transform(s,L){return s?"verbose"==L?"TIER_I_LEVEL_A"===s?"Tier I - Level A":"TIER_I_LEVEL_B"===s?"Tier I - Level B":"TIER_II_LEVEL_C"===s?"Tier II - Level C":"TIER_II_LEVEL_D"===s?"Tier II - Level D":"TIER_III"===s?"Tier III":"TIER_IV"===s?"Tier IV":"Not Applicable":s.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"formatAmp",type:v,pure:!0}),v})()},2616:(It,be,a)=>{a.d(be,{a:()=>v});var t=a(2023),i=a(5879);let v=(()=>{class d{transform(L){return(0,t.f)(L)}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275pipe=i.Yjl({name:"entityColor",type:d,pure:!0}),d})()},6967:(It,be,a)=>{a.d(be,{Do:()=>L});var t=a(313),i=a(2),v=a(5879);const d=new Map([[t.Sx0.A,"Validated association"],[t.Sx0.B,"Clinical evidence"],[t.Sx0.C,"Case study"],[t.Sx0.D,"Preclinical evidence"],[t.Sx0.E,"Inferential association"]]),s=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let L=(()=>{class j{transform(I,S="display-string"){return null==I?"":"short-string"===S&&1===I.toString().length?"string"==typeof I?I:I.toString():"icon-name"===S?"number"==typeof I?`civic-rating${I}`:1===I.length?`civic-level${I.toLowerCase()}`:`civic-${I.replace(/_/g,"").toLowerCase()}`:"number"==typeof I?s.get(I)||I.toString():1===I.length?d.get(I)||I:(0,i.E)(I)}}return j.\u0275fac=function(I){return new(I||j)},j.\u0275pipe=v.Yjl({name:"evidenceEnumDisplay",type:j,pure:!0}),j})()},8004:(It,be,a)=>{a.d(be,{v:()=>L});var t=a(313);const i={evidenceType:{[t.kqt.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.kqt.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.kqt.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.kqt.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.kqt.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.kqt.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.uBv.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.uBv.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.uBv.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.uBv.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.uBv.Oncogenic]:"Assertion pertains to a somatic variant's role in driving tumor formation, growth, and other processes related to the Hallmarks of Cancer"},variantOrigin:{[t.huM.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",[t.huM.RareGermline]:"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",[t.huM.CommonGermline]:"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",[t.huM.Unknown]:"The variant origin is uncertain based on the available evidence",[t.huM.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.huM.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.Sx0.A]:"Proven/consensus association in human medicine",[t.Sx0.B]:"Clinical trial or other primary patient data supports association",[t.Sx0.C]:"Individual case reports from clinical journals",[t.Sx0.D]:"In vivo or in vitro models support association",[t.Sx0.E]:"Indirect evidence"},evidenceLevelBrief:{[t.Sx0.A]:"Validated association",[t.Sx0.B]:"Clinical evidence",[t.Sx0.C]:"Case Study",[t.Sx0.D]:"Preclinical evidence",[t.Sx0.E]:"Inferential association"},therapyInteractionType:{[t.wkr.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.wkr.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.wkr.Substitutes]:"The therapies listed are often considered to be of the same family, or behave similarly in a treatment setting"},evidenceRating:{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"}},v={significance:{PREDICTIVE:{ADVERSE_RESPONSE:{EvidenceItem:"Associated with an adverse response to theraputic treatment",Assertion:"Associated with an adverse response to theraputic treatment"},REDUCED_SENSITIVITY:{EvidenceItem:"Response to treatment is lower than seen in other treatment contexts",Assertion:"Response to treatment is lower than seen in other treatment contexts"},RESISTANCE:{EvidenceItem:"Associated with clinical or preclinical resistance to treatment",Assertion:"Associated with clinical or preclinical resistance to treatment"},SENSITIVITYRESPONSE:{EvidenceItem:"Associated with clinical or preclinical response to treatment",Assertion:"Associated with a clinical or preclinical response to treatment"},NA:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},DIAGNOSTIC:{POSITIVE:{EvidenceItem:"Associated with diagnosis of disease or subtype",Assertion:"Associated with diagnosis of disease or subtype"},NEGATIVE:{EvidenceItem:"Associated with lack of disease or subtype",Assertion:"Associated with lack of disease or subtype"}},PROGNOSTIC:{BETTER_OUTCOME:{EvidenceItem:"Demonstrates better than expected clinical outcome",Assertion:"Demonstrates better than expected clinical outcome"},POOR_OUTCOME:{EvidenceItem:"Demonstrates worse than expected clinical outcome",Assertion:"Demonstrates worse than expected clinical outcome"},Na:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},PREDISPOSING:{PATHOGENIC:{Assertion:"Very strong evidence the variant is pathogenic"},LIKELY_PATHOGENIC:{Assertion:"Strong evidence (>90% certainty) the variant is pathogenic"},BENIGN:{Assertion:"Very strong evidence the variant is benign"},LIKELY_BENIGN:{Assertion:"Not expected to have a major effect on disease"},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},Na:{EvidenceItem:"Clinical Significance is not applicable"},PREDISPOSITION:{EvidenceItem:"Germline variant has predisposing potential for cancer, and may meet ACMG/AMP criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Germline variant has properties that protect individuals from acquiring cancer."}},ONCOGENIC:{ONCOGENICITY:{EvidenceItem:"Somatic variant has oncogenic potential for driving cancer, and may meet ClinGen/CGC/VICC criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Somatic variant has a protective role and minimizes co-occuring driver variants, tumor malignancy, or other oncogenic tumor properties."},ONCOGENIC:{Assertion:"Very strong evidence the variant is oncogenic."},LIKELY_ONCOGENIC:{Assertion:"Strong evidence the variant is oncogenic."},BENIGN:{Assertion:"Very strong evidence the variant does not have oncogenic properties."},LIKELY_BENIGN:{Assertion:"Strong evidence the variant does not have oncogenic properties."},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},evidenceDirection:{PREDICTIVE:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's response to a therapy"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support a prognostic association between variant and outcome"}},PREDISPOSING:{Na:{EvidenceItem:"Evidence Direction is not applicable"},SUPPORTS:{EvidenceItem:"The evidence supports a pathogenic or a protective role for a germline variant in cancer."},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence supports a benign (if Clinical Significance is Predisposition) or lack or protective (if Clinical Significance is Protectiveness) role for a germline variant in cancer."}},FUNCTIONAL:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{NA:{EvidenceItem:"Evidence Direction is not applicable for Oncogenic Evidence Type"},SUPPORTS:{EvidenceItem:"The evidence supports an oncogenic or protective role for a somatic variant"},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence does not support an oncogenic or protective role for a somatic variant"}}},assertionDirection:{PREDICTIVE:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's response to a therapy"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"}},PREDISPOSING:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome"}},FUNCTIONAL:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's oncogenic, benign, or uncertain significance"}}}};var s=a(5879);let L=(()=>{class j{transform(I,S,F=void 0,k=void 0){return S&&I?function d(j,$,I,S){let F;return F=I&&S?v[j][I][$][S]:i[j][$],F||""}(S,I,F,k):""}}return j.\u0275fac=function(I){return new(I||j)},j.\u0275pipe=s.Yjl({name:"enumTooltip",type:j,pure:!0}),j})()},7334:(It,be,a)=>{a.d(be,{A:()=>v});var t=a(5879),i=a(6593);let v=(()=>{class d{constructor(L){this.sanitizer=L}transform(L,j){if(!j||""==j)return L;const $=new RegExp(j,"gi"),I=L.match($);if(!I)return L;let S=L.replace($,`${I[0]}`);return this.sanitizer.bypassSecurityTrustHtml(S)}}return d.\u0275fac=function(L){return new(L||d)(t.Y36(i.H7,16))},d.\u0275pipe=t.Yjl({name:"highlightTypeahead",type:d,pure:!0}),d})()},2524:(It,be,a)=>{a.d(be,{s:()=>d});var t=a(6814),i=a(7023),v=a(5879);let d=(()=>{class s{}return s.\u0275fac=function(j){return new(j||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({providers:[i.l],imports:[t.ez]}),s})()},7023:(It,be,a)=>{a.d(be,{l:()=>v});var t=a(2666),i=a(5879);let v=(()=>{class d{transform(L){return L?(0,t.c)(L):""}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275pipe=i.Yjl({name:"sourceTypeDisplay",type:d,pure:!0}),d})()},5869:(It,be,a)=>{a.d(be,{W:()=>i});var t=a(5879);let i=(()=>{class v{constructor(){}transform(s,L=25){if(s.length>L){let $=s.slice(0,L);var j=$.lastIndexOf(" ");return $.slice(0,j)+"\u2026"}return s}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"truncate",type:v,pure:!0}),v})()},1201:(It,be,a)=>{a.d(be,{Z:()=>i});var t=a(5879);let i=(()=>{class v{transform(s){return s?`civic-${s.replace(/_/g,"").toLowerCase()}`:""}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"typenameToIcon",type:v,pure:!0}),v})()},7473:(It,be,a)=>{a.d(be,{Y:()=>v});var t=a(5619),i=a(5879);let v=(()=>{class d{constructor(){this.networkError$=new t.X(void 0)}clearErrors(){this.networkError$.next(void 0)}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275prov=i.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},951:(It,be,a)=>{a.d(be,{a:()=>F});var S,t=a(655),i=a(313),v=a(1791),d=a(7398),s=a(7921),L=a(7081),j=a(4223),$=a(5879),I=a(9862);let F=((S=class{constructor(U,w){function M(A){return!(!A||A.role!==i.i44.Admin)}function e(A){return!(!A||A.role!==i.i44.Editor&&A.role!==i.i44.Admin)}function R(A){return!(!A||A.role!==i.i44.Curator)}function pe(A){return!(!A||A.role!==i.i44.Curator&&A.role!==i.i44.Editor&&A.role!==i.i44.Admin)}function me(A){return!(!A||A.role!==i.i44.Editor&&A.role!==i.i44.Admin||!A.mostRecentConflictOfInterestStatement||A.mostRecentConflictOfInterestStatement?.coiStatus!=i.Mgx.Conflict&&A.mostRecentConflictOfInterestStatement?.coiStatus!=i.Mgx.Valid)}function Z(A){if(A.mostRecentOrganizationId)return A.organizations.find(V=>V.id===A.mostRecentOrganizationId)}this.viewerBaseGQL=U,this.http=w,this.initialViewer={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0},this.queryRef=this.viewerBaseGQL.watch(void 0,{notifyOnNetworkStatusChange:!1}),this.viewer$=this.queryRef.valueChanges.pipe((0,j.j)("data","viewer"),(0,d.U)(A=>({...A,signedIn:null!=A,signedOut:null==A,canCurate:pe(A),canModerate:me(A),isAdmin:M(A),isEditor:e(A),isCurator:R(A),organizations:null==A?[]:A.organizations,mostRecentOrg:null==A?void 0:Z(A),invalidCoi:e(A)&&(!A.mostRecentConflictOfInterestStatement||A.mostRecentConflictOfInterestStatement.coiStatus===i.Mgx.Expired||A.mostRecentConflictOfInterestStatement.coiStatus===i.Mgx.Missing)})),(0,s.O)(this.initialViewer),(0,L.d)(1)),this.signedIn$=this.viewer$.pipe((0,d.U)(A=>A.signedIn)),this.signedOut$=this.viewer$.pipe((0,d.U)(A=>A.signedOut)),this.isAdmin$=this.viewer$.pipe((0,d.U)(A=>M(A))),this.isEditor$=this.viewer$.pipe((0,d.U)(A=>e(A))),this.isCurator$=this.viewer$.pipe((0,d.U)(A=>R(A))),this.canCurate$=this.viewer$.pipe((0,d.U)(A=>pe(A))),this.canModerate$=this.viewer$.pipe((0,d.U)(A=>me(A)))}signOut(){this.http.get("/api/sign_out").pipe((0,v.t)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}}).\u0275fac=function(U){return new(U||S)($.LFG(i.Tt7),$.LFG(I.eN))},S.\u0275prov=$.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S);F=(0,t.gn)([(0,v.c)()],F)},8130:(It,be,a)=>{a.d(be,{a:()=>i});var t=a(5879);let i=(()=>{class v{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(s){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275cmp=t.Xpm({type:v,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(s,L){},encapsulation:2}),v})()},2:(It,be,a)=>{function t(i){if("number"==typeof i||"boolean"==typeof i)return i;let v;if("NA"===i)v=["Not Applicable"];else if("SENSITIVITYRESPONSE"===i)v=["Sensitivity","/","Response"];else{v=i.toLowerCase().replace(/_/g," ").split(" ");for(var d=0;dt})},2666:(It,be,a)=>{function t(i){switch(i){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return i}}a.d(be,{c:()=>t})},2023:(It,be,a)=>{a.d(be,{f:()=>i});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Gene","#07aff0"],["Therapy","#ac3996"],["MolecularProfile","#33b358"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Variant","#74d34c"],["VariantGroup","#74d34c"],["VariantType","#74d34c"],["Comment","#44d8ef"],["Event","#ffdb00"],["Flag","#e24759"],["Queue","#666699"],["Revision","#f0673a"],["Curator","#a0d8f5"],["Editor","#58a0c4"],["Admin","#58a0c4"],["Organization","#3d7b99"],["Rejected","#BBBBBB"],["Greyscale","#999999"]]);function i(v){let d="#AAAAAA";if(v){const s=t.get(v);s&&(d=s)}return d}},2024:(It,be,a)=>{a.d(be,{U:()=>s});var t=a(8645),i=a(5619),v=a(9773),d=a(4716);class s{constructor(j){this.networkErrorService=j}mutate(j,$,I,S){let F=new t.x,k={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{F.next(),F.complete()}};return k.isSubmitting$.next(!0),j.mutate($,I).pipe((0,v.R)(F),(0,d.x)(()=>{k.isSubmitting$.next(!1)})).subscribe({next:U=>{U.data&&S&&S(U.data)},error:U=>{U.graphQLErrors.length>0?k.submitError$.next(U.graphQLErrors.map(w=>w.message)):U.networkError&&this.networkErrorService.networkError$.next(U.networkError),k.cleanup()},complete:()=>{k.submitError$.next([]),k.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),k.cleanup()}}),k}}},9333:(It,be,a)=>{a.d(be,{h:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[t.ez]}),d})()},8656:(It,be,a)=>{a.d(be,{P:()=>U});var t=a(5879),i=a(6814),v=a(6109);function d(w,M){1&w&&(t.ynx(0),t._uU(1," N/A "),t.BQk())}function s(w,M){1&w&&(t.ynx(0),t._uU(1," Not applicable "),t.BQk())}function L(w,M){if(1&w&&(t.TgZ(0,"span",4),t.ynx(1,0),t.YNc(2,d,2,0,"ng-container",5),t.YNc(3,s,2,0,"ng-container",6),t.BQk(),t.qZA()),2&w){const e=t.oxw();t.xp6(1),t.Q6J("ngSwitch",e.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function j(w,M){1&w&&(t.ynx(0),t._uU(1," \u2013\xa0\u2013 "),t.BQk())}function $(w,M){1&w&&(t.ynx(0),t._uU(1,"Not specified"),t.BQk())}function I(w,M){if(1&w&&(t.TgZ(0,"span",7),t.ynx(1,0),t.YNc(2,j,2,0,"ng-container",5),t.YNc(3,$,2,0,"ng-container",6),t.BQk(),t.qZA()),2&w){const e=t.oxw();t.xp6(1),t.Q6J("ngSwitch",e.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function S(w,M){1&w&&(t.ynx(0),t._uU(1,"!?"),t.BQk())}function F(w,M){1&w&&(t.ynx(0),t._uU(1,"Unspecified"),t.BQk())}function k(w,M){if(1&w&&(t.TgZ(0,"span",8),t.ynx(1,0),t.YNc(2,S,2,0,"ng-container",5),t.YNc(3,F,2,0,"ng-container",6),t.BQk(),t.qZA()),2&w){const e=t.oxw();t.xp6(1),t.Q6J("ngSwitch",e.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}let U=(()=>{class w{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}}return w.\u0275fac=function(e){return new(e||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(e,R){1&e&&(t.ynx(0,0),t.YNc(1,L,4,2,"span",1),t.YNc(2,I,4,2,"span",2),t.YNc(3,k,4,2,"span",3),t.BQk()),2&e&&(t.Q6J("ngSwitch",R.cvcEmptyCategory),t.xp6(1),t.Q6J("ngSwitchCase","not-applicable"),t.xp6(1),t.Q6J("ngSwitchCase","unspecified"),t.xp6(1),t.Q6J("ngSwitchCase","invalid"))},dependencies:[i.RF,i.n9,i.ED,v.SY],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]}),w})()},821:(It,be,a)=>{a.d(be,{M:()=>s});var t=a(6814),i=a(551),v=a(6109),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function($){return new($||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,v.cg,i.PV]}),L})()},9835:(It,be,a)=>{a.d(be,{J:()=>He});var t=a(5879),i=a(9111),v=a(6814),d=a(156),s=a(2851),L=a(1813),j=a(96),$=a(4402),I=a(8213),S=a(1598),F=a(8545);function k(je,Ne){if(1&je&&t._UZ(0,"cvc-molecular-profile-popover",9),2&je){const De=t.oxw();t.Q6J("molecularProfileId",De.entity.entityId)}}function U(je,Ne){if(1&je&&t._UZ(0,"cvc-disease-popover",10),2&je){const De=t.oxw();t.Q6J("diseaseId",De.entity.entityId)}}function w(je,Ne){if(1&je&&t._UZ(0,"cvc-therapy-popover",11),2&je){const De=t.oxw();t.Q6J("therapyId",De.entity.entityId)}}function M(je,Ne){if(1&je&&t._UZ(0,"cvc-source-popover",12),2&je){const De=t.oxw();t.Q6J("sourceId",De.entity.entityId)}}function e(je,Ne){if(1&je&&t._UZ(0,"cvc-phenotype-popover",13),2&je){const De=t.oxw();t.Q6J("phenotypeId",De.entity.entityId)}}function R(je,Ne){if(1&je&&t._UZ(0,"cvc-evidence-popover",14),2&je){const De=t.oxw();t.Q6J("evidenceId",De.entity.entityId)}}function pe(je,Ne){if(1&je&&t._UZ(0,"cvc-gene-popover",15),2&je){const De=t.oxw();t.Q6J("geneId",De.entity.entityId)}}function me(je,Ne){if(1&je&&t._UZ(0,"cvc-variant-popover",16),2&je){const De=t.oxw();t.Q6J("variantId",De.entity.entityId)}}const Z=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let A=(()=>{class je{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}}return je.\u0275fac=function(De){return new(De||je)},je.\u0275cmp=t.Xpm({type:je,selectors:[["cvc-entity-tag-popover"]],inputs:{entity:"entity"},decls:9,vars:9,consts:[[3,"ngSwitch"],[3,"molecularProfileId",4,"ngSwitchCase"],[3,"diseaseId",4,"ngSwitchCase"],[3,"therapyId",4,"ngSwitchCase"],[3,"sourceId",4,"ngSwitchCase"],[3,"phenotypeId",4,"ngSwitchCase"],[3,"evidenceId",4,"ngSwitchCase"],[3,"geneId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"geneId"],[3,"variantId"]],template:function(De,ie){1&De&&(t.ynx(0,0),t.YNc(1,k,1,1,"cvc-molecular-profile-popover",1),t.YNc(2,U,1,1,"cvc-disease-popover",2),t.YNc(3,w,1,1,"cvc-therapy-popover",3),t.YNc(4,M,1,1,"cvc-source-popover",4),t.YNc(5,e,1,1,"cvc-phenotype-popover",5),t.YNc(6,R,1,1,"cvc-evidence-popover",6),t.YNc(7,pe,1,1,"cvc-gene-popover",7),t.YNc(8,me,1,1,"cvc-variant-popover",8),t.BQk()),2&De&&(t.Q6J("ngSwitch",ie.entity.entityType),t.xp6(1),t.Q6J("ngSwitchCase","MolecularProfile"),t.xp6(1),t.Q6J("ngSwitchCase","Disease"),t.xp6(1),t.Q6J("ngSwitchCase","Therapy"),t.xp6(1),t.Q6J("ngSwitchCase","Source"),t.xp6(1),t.Q6J("ngSwitchCase","Phenotype"),t.xp6(1),t.Q6J("ngSwitchCase","EvidenceItem"),t.xp6(1),t.Q6J("ngSwitchCase","Gene"),t.xp6(1),t.Q6J("ngSwitchCase","Variant"))},dependencies:[v.RF,v.n9,d._,s.I,L.p,j.a,$.S,I._,S.Q,F.m],encapsulation:2,changeDetection:0}),je})();var V=a(4190),O=a(551),P=a(5695),D=a(6109),re=a(7417),ae=a(7334),Q=a(2616),fe=a(1201);function ue(je,Ne){}function ge(je,Ne){if(1&je){const De=t.EpF();t.TgZ(0,"span",6)(1,"nz-tag",7),t.NdJ("nzCheckedChange",function(){t.CHM(De);const Ce=t.oxw();return t.KtG(Ce.cvcTagCheckedChange)})("nzOnClose",function(Ce){t.CHM(De);const ve=t.oxw();return t.KtG(ve.cvcOnClose.next(Ce))}),t.TgZ(2,"span",8),t.YNc(3,ue,0,0,"ng-template",9),t.qZA()()()}if(2&je){const De=t.oxw(),ie=t.MAs(6),Ce=t.MAs(8);t.xp6(1),t.Q6J("nzMode",De.cvcMode)("nzChecked",De.cvcTagChecked),t.xp6(1),t.Q6J("nzPopoverContent",De.cvcShowPopover&&De.popoverInput?ie:void 0),t.xp6(1),t.Q6J("ngTemplateOutlet",Ce)}}function Se(je,Ne){}function ke(je,Ne){if(1&je&&(t.TgZ(0,"span",13),t.YNc(1,Se,0,0,"ng-template",9),t.qZA()),2&je){const De=t.oxw(2),ie=t.MAs(8);t.Q6J("nzTooltipTitle",De.entity.tooltip),t.xp6(1),t.Q6J("ngTemplateOutlet",ie)}}function Rt(je,Ne){if(1&je){const De=t.EpF();t.TgZ(0,"span",10)(1,"nz-tag",11),t.NdJ("nzOnClose",function(Ce){t.CHM(De);const ve=t.oxw();return t.KtG(ve.cvcOnClose.next(Ce))}),t.YNc(2,ke,2,2,"span",12),t.qZA()()}if(2&je){const De=t.oxw(),ie=t.MAs(4);t.xp6(1),t.Q6J("nzMode","closeable"),t.xp6(1),t.Q6J("ngIf",De.entity&&De.entity.tooltip)("ngIfElse",ie)}}function Ft(je,Ne){}function Mt(je,Ne){if(1&je&&(t.TgZ(0,"span",13),t.YNc(1,Ft,0,0,"ng-template",9),t.qZA()),2&je){const De=t.oxw(2),ie=t.MAs(8);t.Q6J("nzTooltipTitle",De.entity.tooltip),t.xp6(1),t.Q6J("ngTemplateOutlet",ie)}}function yt(je,Ne){if(1&je&&(t.TgZ(0,"span",14),t.YNc(1,Mt,2,2,"span",12),t.qZA()),2&je){const De=t.oxw(),ie=t.MAs(4);t.xp6(1),t.Q6J("ngIf",De.entity&&De.entity.tooltip)("ngIfElse",ie)}}function Ct(je,Ne){}function Lt(je,Ne){if(1&je&&(t.TgZ(0,"span",8),t.YNc(1,Ct,0,0,"ng-template",9),t.qZA()),2&je){const De=t.oxw(),ie=t.MAs(6),Ce=t.MAs(8);t.Q6J("nzPopoverContent",De.popoverInput?ie:void 0),t.xp6(1),t.Q6J("ngTemplateOutlet",Ce)}}function rn(je,Ne){if(1&je&&t._UZ(0,"cvc-entity-tag-popover",16),2&je){const De=t.oxw(2);t.Q6J("entity",De.popoverInput)}}function Sn(je,Ne){if(1&je&&t.YNc(0,rn,1,1,"cvc-entity-tag-popover",15),2&je){const De=t.oxw();t.Q6J("ngIf",De.popoverInput)}}function rt(je,Ne){if(1&je&&(t.TgZ(0,"span"),t.GkF(1,9),t.qZA()),2&je){t.oxw();const De=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",De)}}function Ye(je,Ne){if(1&je&&(t.TgZ(0,"a",23),t.GkF(1,9),t.qZA()),2&je){t.oxw();const De=t.MAs(4),ie=t.oxw(2);t.Q6J("routerLink",ie.entity.link),t.xp6(1),t.Q6J("ngTemplateOutlet",De)}}function st(je,Ne){if(1&je&&(t._UZ(0,"span",26),t.ALo(1,"typenameToIcon"),t.ALo(2,"entityColor")),2&je){const De=t.oxw(4);t.Q6J("nzType",t.lcZ(1,2,De.typename))("nzTwotoneColor",t.lcZ(2,4,De.typename))}}function Ze(je,Ne){if(1&je&&(t.YNc(0,st,3,6,"span",24),t._UZ(1,"span",25),t.ALo(2,"highlightTypeahead")),2&je){t.oxw(2);const De=t.MAs(4),ie=t.oxw();t.Q6J("ngIf",ie.typename)("ngIfElse",De),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,3,ie.entity.name,ie.cvcEmphasize),t.oJD)}}function Bt(je,Ne){if(1&je&&(t.ynx(0),t.YNc(1,rt,2,1,"span",20),t.YNc(2,Ye,2,2,"a",21),t.YNc(3,Ze,3,6,"ng-template",null,22,t.W1O),t.BQk()),2&je){const De=t.oxw(2);t.xp6(1),t.Q6J("ngIf",De.cvcDisableLink),t.xp6(1),t.Q6J("ngIf",!De.cvcDisableLink)}}function Jt(je,Ne){}function _n(je,Ne){if(1&je&&(t.YNc(0,Jt,0,0,"ng-template",9),t._uU(1)),2&je){t.oxw();const De=t.MAs(4),ie=t.oxw();t.Q6J("ngTemplateOutlet",De),t.xp6(1),t.hij(" CACHE-MISS (",ie.cvcCacheId,") ")}}function On(je,Ne){1&je&&t._UZ(0,"span",27)}function cn(je,Ne){if(1&je&&(t.YNc(0,Bt,5,2,"ng-container",17),t.YNc(1,_n,2,2,"ng-template",null,18,t.W1O),t.YNc(3,On,1,0,"ng-template",null,19,t.W1O)),2&je){const De=t.MAs(2),ie=t.oxw();t.Q6J("ngIf",ie.entity)("ngIfElse",De)}}function wt(je,Ne){if(1&je&&t._UZ(0,"cvc-entity-tag-popover",16),2&je){const De=t.oxw(2);t.Q6J("entity",De.popoverInput)}}function Ve(je,Ne){if(1&je&&t.YNc(0,wt,1,1,"cvc-entity-tag-popover",15),2&je){const De=t.oxw();t.Q6J("ngIf",De.popoverInput)}}const Be=je=>void 0!==je&&je.__typename&&je.id&&void 0!==je.name;let He=(()=>{class je{set cvcLinkableEntity(De){De&&this.setLinkableEntity(De)}set cvcCacheId(De){De&&this.setCachedLinkableEntity(De)}constructor(De){this.apollo=De,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcTagCheckedChange=new t.vpe,this.cvcOnClose=new t.vpe}hasPopover(De){return Z.includes(De)}setLinkableEntity(De){Be(De)&&(this.typename=De.__typename,this.id=De.id,this.entity=De,this.setPopoverInput(De))}setCachedLinkableEntity(De){const[ie,Ce]=De.split(":");if(this.typename=ie,this.id=+Ce,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${De}. Cache IDs must be in the format 'TYPENAME:ID'.`);let ve;ve=this.cvcDisableLink?this.cvcHasTooltip?{id:`${ie}:${Ce}`,fragment:i.Ps` + fragment Linkable${ie}Entity on ${ie} { + id + name + tooltip + } + `}:{id:`${ie}:${Ce}`,fragment:i.Ps` + fragment Linkable${ie}Entity on ${ie} { + id + name + } + `}:{id:`${ie}:${Ce}`,fragment:i.Ps` + fragment Linkable${ie}Entity on ${ie} { + id + name + link + } + `};const qe=this.apollo.client.readFragment(ve);Be(qe)?(this.setPopoverInput(qe),this.entity=qe):console.error(`entity-tag could not find cached entity ${De}`)}setPopoverInput(De){Be(De)&&this.hasPopover(De.__typename)&&(this.popoverInput={entityId:De.id,entityType:De.__typename})}ngOnChanges(De){De.cvcMode&&"checkable"===De.cvcMode.currentValue&&(this.cvcDisableLink=!0),De.cvcContext&&"default"!==De.cvcContext.currentValue&&(this.cvcDisableLink=!0)}}return je.\u0275fac=function(De){return new(De||je)(t.Y36(i._M))},je.\u0275cmp=t.Xpm({type:je,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(De,ie){2&De&&t.ekj("full-width",!0===ie.cvcFullWidth)("label-max",void 0!==ie.cvcTruncateLabel)("label-max-50","50px"===ie.cvcTruncateLabel)("label-max-75","75px"===ie.cvcTruncateLabel)("label-max-100","100px"===ie.cvcTruncateLabel)("label-max-125","125px"===ie.cvcTruncateLabel)("label-max-150","150px"===ie.cvcTruncateLabel)("label-max-175","175px"===ie.cvcTruncateLabel)("label-max-200","200px"===ie.cvcTruncateLabel)("label-max-250","250px"===ie.cvcTruncateLabel)("label-max-300","300px"===ie.cvcTruncateLabel)("label-max-350","350px"===ie.cvcTruncateLabel)("label-max-400","400px"===ie.cvcTruncateLabel)("label-max-450","450px"===ie.cvcTruncateLabel)("label-max-500","500px"===ie.cvcTruncateLabel)("rejected","REJECTED"===ie.cvcStatus)("accepted","ACCEPTED"===ie.cvcStatus)("submitted","SUBMITTED"===ie.cvcStatus)("new","NEW"===ie.cvcStatus)("superseded","SUPERSEDED"===ie.cvcStatus)},inputs:{cvcLinkableEntity:"cvcLinkableEntity",cvcCacheId:"cvcCacheId",cvcStatus:"cvcStatus",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcEmphasize:"cvcEmphasize",cvcDisableLink:"cvcDisableLink",cvcTagChecked:"cvcTagChecked",cvcHasTooltip:"cvcHasTooltip",cvcFullWidth:"cvcFullWidth",cvcShowPopover:"cvcShowPopover",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.TTD],decls:11,vars:3,consts:[["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],["noTooltip",""],["popoverContent",""],["tagContent",""],[1,"default"],[3,"nzMode","nzChecked","nzCheckedChange","nzOnClose"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzMode","nzOnClose"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],["cacheMiss",""],["noIcon",""],[4,"ngIf"],[3,"routerLink",4,"ngIf"],["tagLabel",""],[3,"routerLink"],["nz-icon","","nzTheme","twotone","class","tag-icon",3,"nzType","nzTwotoneColor",4,"ngIf","ngIfElse"],[1,"tag-label",3,"innerHtml"],["nz-icon","","nzTheme","twotone",1,"tag-icon",3,"nzType","nzTwotoneColor"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"tag-icon"]],template:function(De,ie){1&De&&(t.YNc(0,ge,4,4,"span",0),t.YNc(1,Rt,3,3,"span",1),t.YNc(2,yt,2,2,"span",2),t.YNc(3,Lt,2,2,"ng-template",null,3,t.W1O),t.YNc(5,Sn,1,1,"ng-template",null,4,t.W1O),t.YNc(7,cn,5,2,"ng-template",null,5,t.W1O),t.YNc(9,Ve,1,1,"ng-template",null,4,t.W1O)),2&De&&(t.Q6J("ngIf","default"===ie.cvcContext),t.xp6(1),t.Q6J("ngIf","select-item"===ie.cvcContext),t.xp6(1),t.Q6J("ngIf","multi-select-item"===ie.cvcContext))},dependencies:[v.O5,v.tP,V.rH,O.Ls,P.j,D.SY,re.lU,A,ae.A,Q.a,fe.Z],styles:['.label-max-50[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:50px;overflow:hidden;text-overflow:ellipsis}.label-max-75[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:75px;overflow:hidden;text-overflow:ellipsis}.label-max-100[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:100px;overflow:hidden;text-overflow:ellipsis}.label-max-125[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:125px;overflow:hidden;text-overflow:ellipsis}.label-max-150[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:150px;overflow:hidden;text-overflow:ellipsis}.label-max-175[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:175px;overflow:hidden;text-overflow:ellipsis}.label-max-200[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:200px;overflow:hidden;text-overflow:ellipsis}.label-max-250[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:250px;overflow:hidden;text-overflow:ellipsis}.label-max-300[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:300px;overflow:hidden;text-overflow:ellipsis}.label-max-350[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:350px;overflow:hidden;text-overflow:ellipsis}.label-max-400[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis}.label-max-450[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:450px;overflow:hidden;text-overflow:ellipsis}.label-max-500[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:500px;overflow:hidden;text-overflow:ellipsis}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-right-width:2px}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#e6e6e6;background-color:#fff;color:#999999d9}.submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#ffe58f}.accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#b7eb8f}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{width:100%}nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px} -checkable{background-color:transparent;cursor:pointer} -checkable:not( -checkable-checked):hover{color:#1890ff} -checkable:active, -checkable-checked{color:#fff} -checkable-checked{background-color:#1890ff} -checkable:active{background-color:#096dd9}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{padding-right:0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}a.disabled[_ngcontent-%COMP%]{pointer-events:none}'],changeDetection:0}),je})()},188:(It,be,a)=>{a.d(be,{x:()=>me});var t=a(6814),i=a(551),v=a(5695),d=a(2524),s=a(6109),L=a(4190),j=a(5879);let $=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=j.oAB({type:Z}),Z.\u0275inj=j.cJS({imports:[t.ez]}),Z})();var I=a(7417),S=a(5687),F=a(1855),k=a(9021),U=a(2064),w=a(1332),M=a(6247),e=a(1207),R=a(6446);let pe=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=j.oAB({type:Z}),Z.\u0275inj=j.cJS({imports:[t.ez,U._,S.t,M.n,e.s,w.I,F.f,k.w,R.k]}),Z})(),me=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=j.oAB({type:Z}),Z.\u0275inj=j.cJS({imports:[t.ez,L.Bz,i.PV,v.X,s.cg,I.$6,$,d.s,pe,$]}),Z})()},9928:(It,be,a)=>{a.d(be,{F:()=>R});var I,t=a(655),i=a(1791),v=a(5879),d=a(4190),s=a(6814),L=a(2669),j=a(3903),$=a(8091);function S(pe,me){if(1&pe&&v._UZ(0,"nz-alert",6),2&pe){v.oxw();const Z=v.MAs(3),A=v.oxw();v.MGl("nzMessage","Error Submitting ",A.entityType,""),v.Q6J("nzDescription",Z)}}function F(pe,me){if(1&pe&&(v.TgZ(0,"li"),v._uU(1),v.qZA()),2&pe){const Z=me.$implicit;v.xp6(1),v.hij(" ",Z," ")}}function k(pe,me){if(1&pe&&(v.TgZ(0,"ul"),v.YNc(1,F,2,1,"li",7),v.qZA()),2&pe){const Z=v.oxw().ngIf;v.xp6(1),v.Q6J("ngForOf",Z)}}function U(pe,me){if(1&pe&&(v.ynx(0),v.YNc(1,S,1,2,"nz-alert",4),v.YNc(2,k,2,1,"ng-template",null,5,v.W1O),v.BQk()),2&pe){const Z=me.ngIf;v.xp6(1),v.Q6J("ngIf",Z.length>0)}}function w(pe,me){if(1&pe&&(v.ynx(0),v._UZ(1,"nz-alert",8),v.BQk()),2&pe){const Z=v.oxw();v.xp6(1),v.MGl("nzMessage","",Z.entityType," Submitted"),v.Q6J("nzDescription",Z.successMessage?Z.successMessage:null)}}function M(pe,me){1&pe&&v.Hsn(0)}let R=((I=class{set mutationState(me){this._mutationState=me,this.currentTimer&&clearTimeout(this.currentTimer),me&&me.submitSuccess$.pipe((0,i.t)(this)).subscribe(Z=>{Z&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(me){this.router=me}ngOnInit(){}}).\u0275fac=function(me){return new(me||I)(v.Y36(d.F0))},I.\u0275cmp=v.Xpm({type:I,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:["*"],decls:8,vars:10,consts:[[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["form",""],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(me,Z){if(1&me&&(v.F$t(),v.TgZ(0,"nz-spin",0),v.ALo(1,"ngrxPush"),v.YNc(2,U,4,1,"ng-container",1),v.ALo(3,"ngrxPush"),v.YNc(4,w,2,2,"ng-container",2),v.ALo(5,"ngrxPush"),v.YNc(6,M,1,0,"ng-template",null,3,v.W1O),v.qZA()),2&me){const A=v.MAs(7);v.Q6J("nzSpinning",v.lcZ(1,4,null==Z.mutationState?null:Z.mutationState.isSubmitting$)),v.xp6(2),v.Q6J("ngIf",v.lcZ(3,6,null==Z.mutationState?null:Z.mutationState.submitError$)),v.xp6(2),v.Q6J("ngIf",v.lcZ(5,8,null==Z.mutationState?null:Z.mutationState.submitSuccess$))("ngIfElse",A)}},dependencies:[s.sg,s.O5,L.W,j.r,$.fM],encapsulation:2,changeDetection:0}),I);R=(0,t.gn)([(0,i.c)()],R)},1227:(It,be,a)=>{a.d(be,{g:()=>L});var t=a(6814),i=a(3903),v=a(2574),d=a(2669),s=a(5879);let L=(()=>{class j{}return j.\u0275fac=function(I){return new(I||j)},j.\u0275mod=s.oAB({type:j}),j.\u0275inj=s.cJS({imports:[t.ez,d.j,i.L,v.zf]}),j})()},706:(It,be,a)=>{a.d(be,{S:()=>P4});var t=a(6223),i=a(4190),v=a(5545),d=a(7459),s=a(3599),L=a(279),j=a(3997);function $(u,y){return(0,j.x)((c,m)=>y?y(c[u],m[u]):c[u]===m[u])}const I={paramKey:!0};class S{constructor(y){this.route=y}postPopulate(y){if(y.fieldGroup||y.fieldArray||!1===(y.props||{...I}).paramKey||(this.paramKey=this.getParamKey(y),!this.paramKey))return;const m=this.getRouteSub(this.route,y),G=y.hooks?.onDestroy;m&&G&&(y.hooks={...y.hooks,onDestroy:Ae=>{m.unsubscribe(),G(Ae)}})}getParamKey(y){const c=y.props;if("string"==typeof c.paramKey)return c.paramKey;if(y.key){if("string"==typeof y.key)return y.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(y.key)} of type ${typeof y.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(y,c){const m=y.queryParams.pipe($(this.paramKey)).subscribe(G=>{const Ae=c.formControl,Dt=G[this.paramKey];if(!Dt)return void m.unsubscribe();let Mn;try{Mn=JSON.parse(Dt)}catch(kn){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${c.id}: ${kn}`),console.warn("Note: Query values are parsed as JSON, therefore enum strings must be enclosed in double-quotes, and numeric entity IDs must be bare, unquoted."),void m.unsubscribe()}if(Mn){if(Object.keys(Mn).length>0&&Mn.constructor===Object)return console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(Mn)}`),void m.unsubscribe();Ae.setValue(Mn)}});return m}}function F(u){return{extensions:[{name:"observeQueryParam",extension:new S(u)}]}}const w={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,y)=>`This field has a minimum length of ${y.templateOptions?.minLength}.`},{name:"maxLength",message:(u,y)=>`This field has a maximum length of ${y.templateOptions?.maxLength}.`},{name:"min",message:(u,y)=>`This field has a minimum value of ${y.templateOptions?.min}.`},{name:"max",message:(u,y)=>`This field has a maximum value of ${y.templateOptions?.max}.`},{name:"pattern",message:(u,y)=>`This field's value must fit the pattern ${y.templateOptions?.pattern}.`},{name:"integer",message:(u,y)=>"Value must be an integer."},{name:"nucleotide",message:(u,y)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,y)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,y)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,y)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,y)=>{for(var c of u.value)if(""!==c&&null!=c&&!/^\d+$/.test(c))return{clinvar:!0};return null}}]};var M=a(6814),e=a(5879),R=a(8091),pe=a(95),me=a(2392);function Z(u,y){if(1&u&&(e.TgZ(0,"div",9),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function A(u,y){if(1&u&&(e.TgZ(0,"div",11),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function V(u,y){if(1&u&&(e.TgZ(0,"div",12),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function O(u,y){if(1&u&&(e.TgZ(0,"nz-form-label",17),e._UZ(1,"span",18),e.qZA()),2&u){const c=y.ngrxLet,m=e.oxw(3);e.Q6J("nzRequired",m.props.required)("nzFor",m.id)("nzNoColon",!0)("nzTooltipTitle",m.props.tooltip)("nzSpan",c.span?c.span:null),e.xp6(1),e.Q6J("nzContent",m.props.label)}}function P(u,y){if(1&u&&(e.ynx(0),e.YNc(1,O,2,6,"nz-form-label",16),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.label)}}function D(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",19),e.GkF(1,null,20),e.qZA()),2&u){const c=y.ngrxLet,m=e.oxw(2),G=e.MAs(11),Ae=e.MAs(13);e.Q6J("nzExtra",m.wrapper.showExtra&&!m.showError?G:void 0)("nzValidateStatus",m.errorState)("nzErrorTip",Ae)("nzSpan",m.props.hideLabel?24:c.span?c.span:null)}}const re=function(u,y,c,m){return{disabled:u,error:y,required:c,valid:m}};function ae(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",13),e.YNc(1,P,2,1,"ng-container",14),e.YNc(2,D,3,4,"nz-form-control",15),e.qZA()),2&u){const c=e.oxw();e.Q6J("nzGutter",c.wrapper.layout.item.gutter)("ngClass",e.l5B(4,re,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}const Q=function(u,y){return{disabled:u,error:y}};function fe(u,y){if(1&u&&(e.TgZ(0,"nz-form-label",24),e._UZ(1,"span",25),e.qZA()),2&u){const c=e.oxw(3);e.Q6J("ngClass",e.WLB(6,Q,c.props.disabled,c.showError))("nzRequired",c.props.required)("nzFor",c.id)("nzTooltipTitle",c.props.tooltip)("nzNoColon",!0),e.xp6(1),e.Q6J("nzContent",c.props.label)}}function ue(u,y){if(1&u&&(e.ynx(0),e.YNc(1,fe,2,9,"nz-form-label",23),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.label)}}function ge(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",26),e.GkF(1,null,20),e.qZA()),2&u){const c=e.oxw(2),m=e.MAs(11),G=e.MAs(13);e.Q6J("nzExtra",c.wrapper.showExtra&&!c.showError?m:void 0)("nzValidateStatus",c.errorState)("nzErrorTip",G)}}function Se(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",21),e.YNc(1,ue,2,1,"ng-container",14),e.YNc(2,ge,3,3,"nz-form-control",22),e.qZA()),2&u){const c=e.oxw();e.Q6J("ngClass",e.l5B(3,re,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}function ke(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-form-label",28),e._UZ(2,"span",25),e.qZA(),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("nzRequired",c.props.required)("nzTooltipTitle",c.props.tooltip)("nzFor",c.id)("nzNoColon",!0),e.xp6(1),e.Q6J("nzContent",c.props.label)}}function Rt(u,y){if(1&u&&e._UZ(0,"formly-validation-message",29),2&u){const c=e.oxw(3);e.Q6J("field",c.field)}}function Ft(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",26),e.GkF(1,null,20),e.YNc(3,Rt,1,1,"ng-template",null,8,e.W1O),e.qZA()),2&u){const c=e.MAs(4),m=e.oxw(2),G=e.MAs(11);e.Q6J("nzExtra",m.wrapper.showExtra&&!m.showError?G:void 0)("nzValidateStatus",m.errorState)("nzErrorTip",c)}}function Mt(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",27),e.YNc(1,ke,3,5,"ng-container",14),e.YNc(2,Ft,5,3,"nz-form-control",22),e.qZA()),2&u){const c=e.oxw();e.Q6J("ngClass",e.l5B(3,re,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}function yt(u,y){if(1&u&&e._UZ(0,"span",34),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function Ct(u,y){if(1&u&&e._UZ(0,"span",35),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function Lt(u,y){if(1&u&&e._UZ(0,"span",36),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function rn(u,y){if(1&u&&(e.TgZ(0,"div",30),e.ynx(1,0),e.YNc(2,yt,1,1,"span",31),e.YNc(3,Ct,1,1,"span",32),e.YNc(4,Lt,1,1,"span",33),e.BQk(),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngSwitch",c.props.extraType),e.xp6(1),e.Q6J("ngSwitchCase","prompt"),e.xp6(1),e.Q6J("ngSwitchCase","description")}}function Sn(u,y){if(1&u&&(e.TgZ(0,"div",37),e._UZ(1,"formly-validation-message",29),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("field",c.field)}}let rt=(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}constructor(){super(),this.formLayout="vertical"}ngOnInit(){try{this.wrapper={layout:{item:{gutter:[6,12],...this.props.layout?.item?this.props.layout.item:void 0},label:{span:4,...this.props.layout?.label?this.props.layout.label:void 0},control:{span:20,...this.props.layout?.control?this.props.layout?.control:void 0}},showExtra:void 0===this.props.layout?.showExtra||this.props.layout.showExtra}}catch(c){console.error(c)}this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-field-wrapper"]],features:[e.qOj],decls:14,vars:4,consts:[[3,"ngSwitch"],["class","layout-horizontal",4,"ngSwitchCase"],["class","layout-inline",4,"ngSwitchCase"],["class","layout-vertical",4,"ngSwitchCase"],["horizontalFieldWrapper",""],["verticalFieldWrapper",""],["inlineFieldWrapper",""],["descriptionTpl",""],["errorTpl",""],[1,"layout-horizontal"],[3,"ngTemplateOutlet"],[1,"layout-inline"],[1,"layout-vertical"],[1,"layout-horizontal",3,"nzGutter","ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip","nzSpan",4,"ngrxLet"],[3,"nzRequired","nzFor","nzNoColon","nzTooltipTitle","nzSpan",4,"ngrxLet"],[3,"nzRequired","nzFor","nzNoColon","nzTooltipTitle","nzSpan"],["nz-typography","","nzEllipsis","",3,"nzContent"],[3,"nzExtra","nzValidateStatus","nzErrorTip","nzSpan"],["fieldComponent",""],[1,"layout-vertical",3,"ngClass"],[3,"nzExtra","nzValidateStatus","nzErrorTip",4,"ngrxLet"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon",4,"ngrxLet"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[1,"layout-inline",3,"ngClass"],[3,"nzRequired","nzTooltipTitle","nzFor","nzNoColon"],[3,"field"],[1,"form-field-description"],["class","extra-prompt",3,"innerHTML",4,"ngSwitchCase"],["class","extra-description",3,"innerHTML",4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchDefault"],[1,"extra-prompt",3,"innerHTML"],[1,"extra-description",3,"innerHTML"],[3,"innerHTML"],[1,"cvc-form-field-validation"]],template:function(c,m){1&c&&(e.ynx(0,0),e.YNc(1,Z,2,1,"div",1),e.YNc(2,A,2,1,"div",2),e.YNc(3,V,2,1,"div",3),e.BQk(),e.YNc(4,ae,3,9,"ng-template",null,4,e.W1O),e.YNc(6,Se,3,8,"ng-template",null,5,e.W1O),e.YNc(8,Mt,3,8,"ng-template",null,6,e.W1O),e.YNc(10,rn,5,3,"ng-template",null,7,e.W1O),e.YNc(12,Sn,2,1,"ng-template",null,8,e.W1O)),2&c&&(e.Q6J("ngSwitch",m.formLayout),e.xp6(1),e.Q6J("ngSwitchCase","horizontal"),e.xp6(1),e.Q6J("ngSwitchCase","inline"),e.xp6(1),e.Q6J("ngSwitchCase","vertical"))},dependencies:[M.mk,M.O5,M.tP,M.RF,M.n9,M.ED,R.eJ,pe.t3,pe.SK,s.Nx,s.iK,s.Fd,me.ZU,v.M2],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.layout-vertical[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-wrap:nowrap;flex-direction:column}.layout-horizontal[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-direction:inherit}.layout-horizontal[_ngcontent-%COMP%] nz-form-item:first-of-type nz-form-label{text-align:right;line-height:28px;white-space:inherit;padding:inherit}.layout-inline[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-direction:inherit}.layout-inline[_ngcontent-%COMP%] nz-form-item:first-of-type nz-form-label{height:28px;line-height:28px;white-space:inherit;padding:inherit}.cvc-form-field-validation[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%]{min-height:16px;line-height:1.2;margin-top:4px}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%]{font-weight:400}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%]{font-style:oblique}.cvc-form-field-validation[_ngcontent-%COMP%]{font-weight:600}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}nz-form-item.layout-vertical[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #d9d9d9;padding:4px 8px;border-radius:6px;margin-bottom:16px}nz-form-item.layout-vertical.disabled[_ngcontent-%COMP%]{border:1px solid #f5f5f5;background-color:#f5f5f5}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type{text-align:right;margin-right:6px}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}'],changeDetection:0}),u})();var Ye=a(6109),st=a(551);const Ze={wrappers:[{name:"form-field",component:rt}]};let Bt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,s.U5,pe.Jb,st.PV,Ye.cg,me.ZJ,v.X0.forChild(Ze)]}),u})();var Jt=a(2612);const On={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends v.fS{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Jt.Ie,v.JD],changeDetection:0}),u})()}]};let cn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Jt.Wr,v.X0.forChild(On),Bt]}),u})();var wt=a(5695),Ve=a(2524);let Be=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,wt.X,st.PV,Ye.cg,Ve.s]}),u})();var He=a(7248),je=a(824),Ne=a(9691);let De=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(),He.F,st.PV,s.U5,Ne.LV,je.o7,Ve.s]}),u})();var ie=a(2),Ce=a(655),ve=a(1791),qe=a(2181),ct=a(5619),Zt=a(7398),Cn=a(4223);function at(){var u;let y=((u=class extends v.fS{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,qe.h)(m=>m.field.id===this.field.id),(0,Cn.j)("value")),this.onValueChange$=new ct.X(this.formControl.value?this.formControl.value:void 0),this.onModelChange$.pipe((0,ve.t)(this)).subscribe(m=>{this.onValueChange$.next(m)}),this.field.options?.formState&&this.field.options.formState.fields&&(this.state=this.field.options.formState,this.autoConfigureStateValueChanges())):console.error(`${this.field.id} could not find its fieldChanges Observable, ensure configureBaseField() is called in this field's AfterViewInit hook.`)}autoConfigureStateValueChanges(){!this.field.key&&"string"==typeof this.field.key&&console.warn(`${this.field.id} cannot auto-configure state value changes, as its field key is not a string. field.key: `,this.field.key);const m=`${this.field.key}$`;this.state&&this.state.fields[m]?(this.stateValueChange$=this.state.fields[m],this.onValueChange$.pipe((0,Zt.U)(G=>null===G?void 0:G),(0,ve.t)(this)).subscribe(G=>{this.stateValueChange$&&this.stateValueChange$.next(G)})):console.warn(`${this.field.id} could not find state field ${m} on form state. State: `,this.state)}}).\u0275fac=function(){let c;return function(G){return(c||(c=e.n5z(u)))(G||u)}}(),u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac}),u);return y=(0,Ce.gn)([(0,ve.c)()],y),y}var Xe=a(8645),it=a(2460);function Ot(){return function(y){return(()=>{class m extends y{configureEnumSelectField(Ae){this.selectOption$=new ct.X([]),this.onTagClose$=new Xe.x,this.optionEnum$=Ae.optionEnum$,this.changeDetectorRef=Ae.changeDetectorRef,this.optionTemplate$=Ae.optionTemplate$?Ae.optionTemplate$:new ct.X([]),this.optionTemplate$.pipe((0,it.M)(this.optionEnum$),(0,ve.t)(this)).subscribe(Dt=>{this.emitSelectOptions(Dt)}),this.onTagClose$.pipe((0,ve.t)(this)).subscribe(Dt=>{this.resetField()})}emitSelectOptions([Ae,Dt]){this.selectOption$.next(Dt.map((Mn,kn)=>({label:Ae[kn]||Mn,value:Mn}))),this.changeDetectorRef?this.changeDetectorRef.detectChanges():console.error(`${this.field.id}'s configureEnumTagField() requires valid ChangeDetectorRef option, none detected.`)}resetField(){this.formControl.setValue(this.props.isMultiSelect?[]:void 0)}}return m.\u0275fac=function(){let G;return function(Dt){return(G||(G=e.n5z(m)))(Dt||m)}}(),m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac}),m})()}}var Pt=a(836);const kt=function Wt(u){for(var y=arguments.length,c=new Array(y>1?y-1:0),m=1;m{class u{constructor(){this.cvcSelectMode="default",this.cvcPlaceholder="Select an option",this.cvcOptions=[],this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcCustomTemplate=null,this.cvcOnFocus=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-enum-select"]],inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcOptions:"cvcOptions",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcModelChange:"cvcModelChange",cvcCustomTemplate:"cvcCustomTemplate"},outputs:{cvcOnFocus:"cvcOnFocus"},decls:1,vars:12,consts:[[3,"formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear","nzFocus","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-select",0),e.NdJ("nzFocus",function(){return m.cvcOnFocus.next()})("ngModelChange",function(Ae){return m.cvcModelChange&&m.cvcModelChange(m.cvcFormlyAttributes,Ae)}),e.qZA()),2&c&&(e.ekj("ng-dirty",m.cvcShowError),e.Q6J("formControl",m.cvcFormControl)("formlyAttributes",m.cvcFormlyAttributes)("nzMode",m.cvcSelectMode)("nzPlaceHolder",m.cvcPlaceholder?m.cvcPlaceholder:"Select Value")("nzOptions",m.cvcOptions?m.cvcOptions:e.DdM(11,Je))("nzCustomTemplate",m.cvcCustomTemplate?m.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",m.cvcDisabled)("nzAllowClear",m.cvcAllowClear))},dependencies:[t.JJ,t.oH,v.JD,Ne.Vq],changeDetection:0}),u})();var N=a(6967),J=a(7334);function Me(u,y){}function zt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",5)(1,"nz-tag",6),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnClose.next(G))}),e.YNc(2,Me,0,0,"ng-template",7),e.qZA()()}if(2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode",c.cvcMode)("nzTooltipTitle",c.cvcTooltip)("nzChecked",c.cvcChecked),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function nt(u,y){}function We(u,y){if(1&u&&(e.TgZ(0,"span",8)(1,"nz-tag",9),e.YNc(2,nt,0,0,"ng-template",7),e.qZA()()),2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode","checkable")("nzChecked",c.cvcChecked),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function ot(u,y){}function Vt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",10)(1,"nz-tag",11),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnClose.next(G))}),e.YNc(2,ot,0,0,"ng-template",7),e.qZA()()}if(2&u){e.oxw();const c=e.MAs(5);e.xp6(1),e.Q6J("nzMode","closeable"),e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function St(u,y){}function mn(u,y){if(1&u&&(e.TgZ(0,"span",12)(1,"nz-tag",13),e.YNc(2,St,0,0,"ng-template",7),e.qZA()()),2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode","default")("nzTooltipTitle",c.cvcTooltip),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}const Qe=function(u){return{"tag-icon-large":u}};function dt(u,y){if(1&u&&(e._UZ(0,"i",16),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw(2);e.Q6J("nzType",!0===c.cvcShowIcon?e.xi3(1,5,c.cvcAttrValue,"icon-name"):c.cvcShowIcon)("nzTwotoneColor",c.cvcIconColor)("nzTheme",c.cvcIconTheme)("ngClass",e.VKq(8,Qe,!0===c.cvcZoomIcon)),e.uIk("style","color: "+c.cvcIconColor,e.Ckj)}}function se(u,y){if(1&u&&(e._UZ(0,"span",17),e.ALo(1,"highlightTypeahead"),e.ALo(2,"evidenceEnumDisplay")),2&u){const c=e.oxw(2);e.Q6J("innerHtml",e.xi3(1,1,e.xi3(2,4,c.cvcAttrValue,"display-string"===c.cvcShowLabel?c.cvcShowLabel:"short-string"),c.cvcEmphasize),e.oJD)}}function ze(u,y){if(1&u&&(e.YNc(0,dt,2,10,"i",14),e.YNc(1,se,3,7,"span",15)),2&u){const c=e.oxw();e.Q6J("ngIf",c.cvcAttrValue&&c.cvcShowIcon),e.xp6(1),e.Q6J("ngIf",c.cvcShowLabel)}}let mt=(()=>{class u{constructor(){this.cvcShowLabel="display-string",this.cvcShowIcon=!0,this.cvcZoomIcon=!1,this.cvcContext="default",this.cvcMode="default",this.cvcChecked=!1,this.cvcIconColor="#797979",this.cvcLabelColor="#434343",this.cvcIconTheme="outline",this.cvcFullWidth=!1,this.cvcOnClose=new e.vpe}ngOnChanges(c){c.cvcContext&&"compact"===c.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(c,m){2&c&&e.ekj("full-width",!0===m.cvcFullWidth)},inputs:{cvcAttrValue:"cvcAttrValue",cvcShowLabel:"cvcShowLabel",cvcShowIcon:"cvcShowIcon",cvcZoomIcon:"cvcZoomIcon",cvcTooltip:"cvcTooltip",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcChecked:"cvcChecked",cvcEmphasize:"cvcEmphasize",cvcIconColor:"cvcIconColor",cvcLabelColor:"cvcLabelColor",cvcIconTheme:"cvcIconTheme",cvcFullWidth:"cvcFullWidth"},outputs:{cvcOnClose:"cvcOnClose"},features:[e.TTD],decls:6,vars:4,consts:[["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],["tagContent",""],[1,"default"],["nz-tooltip","",3,"nzMode","nzTooltipTitle","nzChecked","nzOnClose"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzMode","nzOnClose"],[1,"compact"],["nz-tooltip","",3,"nzMode","nzTooltipTitle"],["nz-icon","","class","tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass",4,"ngIf"],["class","tag-label",3,"innerHtml",4,"ngIf"],["nz-icon","",1,"tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass"],[1,"tag-label",3,"innerHtml"]],template:function(c,m){1&c&&(e.YNc(0,zt,3,4,"span",0),e.YNc(1,We,3,3,"span",1),e.YNc(2,Vt,3,2,"span",2),e.YNc(3,mn,3,3,"span",3),e.YNc(4,ze,2,2,"ng-template",null,4,e.W1O)),2&c&&(e.Q6J("ngIf","default"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","menu-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","select-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","compact"===m.cvcContext))},dependencies:[M.mk,M.O5,M.tP,wt.j,st.Ls,Ye.SY,N.Do,J.A],styles:['.full-width[_nghost-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background-color:#fff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]{border:1px solid #d9d9d9}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]:active{background-color:#e6f7ff}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:not(.menu-item nz-tag.ant-tag-checkable-checked)[_ngcontent-%COMP%]:hover{color:#000000d9;border-color:#1890ff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable-checked[_ngcontent-%COMP%]{border:transparent;background-color:#fff;color:#000000d9}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #f0f0f0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}'],changeDetection:0}),u})();const Pe=["optionTemplates"];function lt(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function Yt(u,y){1&u&&(e.ynx(0),e.YNc(1,lt,1,1,"ng-template",null,3,e.W1O),e.BQk())}function un(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Nt={Evidence:{PREDICTIVE:{SUPPORTS:"Experiment or study supports the variant's response to a drug",DOES_NOT_SUPPORT:"Experiment or study does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Experiment or study does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Supports a benign (for Predisposition) or lack of protective (for Protectiveness) role for a germline variant in cancer."},FUNCTIONAL:{SUPPORTS:"Experiment or study supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Experiment or study does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Not Applicable for Oncogenic Evidence Type.",SUPPORTS:"Supports an oncogenic or protective role for a somatic variant.",DOES_NOT_SUPPORT:"Supports a benign (for Oncogenicity) or lack of protective (for Protectiveness) role for a somatic variant in cancer."}},Assertion:{PREDICTIVE:{SUPPORTS:"Support the variant's response to a drug",DOES_NOT_SUPPORT:"Does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"},FUNCTIONAL:{SUPPORTS:"Supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{SUPPORTS:"Supports an oncogenic or protective role for a somatic variant",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"}}},pt=kt(at(),Ot()),ee={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends pt{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Direction",labelFn:m=>`${m} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(m,G)=>`Select ${G?G+" ":""}${m} Direction`,requireTypePromptFn:m=>`Select ${m} Type to select its Direction`,formMode:"add"}},this.directionEnum$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.directionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new ct.X("ERROR: Form state not found"));if(this.props.label=this.props.labelFn(this.state.entityName),this.props.tooltip=`An indicator of whether the ${this.state.entityName} statement supports or refutes the clinical significance of an event.`,this.placeholder$=new ct.X(this.props.placeholderFn(this.state.entityName)),!this.state.enums.direction$)return void console.error(`${this.field.id} could not find form state's direction$ to populate select.`);this.state.enums.direction$.pipe((0,ve.t)(this)).subscribe(m=>{this.directionEnum$.next(m)}),this.optionTemplates||console.info(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(m=>m.map(G=>G)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onEntityType$=this.state.fields[c],this.onEntityType$.pipe((0,Pt.T)("add"===this.props.formMode?0:1),(0,ve.t)(this)).subscribe(m=>{m?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,ie.E)(m)))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,it.M)(this.onEntityType$),(0,ve.t)(this)).subscribe(([m,G])=>{!G||!m||!this.state||(this.props.extraType="description",this.props.description=Nt[this.state.entityName][G][m])})):console.error(`${this.field.id} could not find form state's ${c} to populate Direction options.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Pe,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,Yt,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,un,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.directionEnum$))}},dependencies:[M.sg,K,mt,R.fM],changeDetection:0}),u})()}]};let H=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ee),Bt,De,Be]}),u})();var Te=a(5717),$e=a(188),Tt=a(2574),Xt=a(3903),qt=a(6987);let Un=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(),Xt.L,st.PV,Ne.LV,je.o7,s.U5,me.ZJ,Te.ic,Tt.zf,qt.S,$e.x,Ve.s]}),u})();var zn=a(1227),Vn=a(2840),vo=a(67),Xn=a(7417),Ao=a(7328),jo=a(5592),ei=a(2096),bo=a(4664),eo=a(9666),hi=a(2428),si=a(4911),Fo=a(9397),xo=a(5676),Do=a(2572);function Ri(...u){let y=u[0],c=u[1];if(0===y.length)return(0,ei.of)(c?c([]):[]);const m=y.slice();return c&&m.push((...G)=>c(G)),Do.a.apply(null,m)}function oi(){return function(y){return(()=>{class m extends y{configureEntitySelectField(Ae){if(this.typeaheadQuery=Ae.typeaheadQuery,this.tagQuery=Ae.tagQuery,this.getTypeaheadVars=Ae.getTypeaheadVarsFn,this.getTypeahedResults=Ae.getTypeaheadResultsFn,this.getTagQueryVars=Ae.getTagQueryVarsFn,this.getTagQueryResults=Ae.getTagQueryResultsFn,this.getSelectedItemOption=Ae.getSelectedItemOptionFn,this.getSelectOptions=Ae.getSelectOptionsFn,this.typeaheadParam$=Ae.typeaheadParam$,this.typeaheadParamName$=Ae.typeaheadParamName$,this.selectOpen$=Ae.selectOpen$||new Ao.t,this.selectComponent=Ae.selectComponent,this.minSearchStrLength=Ae.minSearchStrLength||0,this.cdr=Ae.changeDetectorRef,this.onSearch$=new ct.X(void 0),this.isLoading$=new jo.y,this.result$=new ct.X([]),this.onPopulate$=new Xe.x,this.onTagClose$=new Xe.x,this.onOpenChange$=new Xe.x,this.onCreate$=new Xe.x,this.selectOption$=new ct.X(void 0),this.response$=this.onSearch$.pipe((0,Pt.T)(1),(0,qe.h)(xo.ep),(0,qe.h)(Dt=>0===this.minSearchStrLength||Dt.length>=this.minSearchStrLength),(0,it.M)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,ei.of)(void 0)),(0,bo.w)(([Dt,Mn])=>{const kn=this.getTypeaheadVars(Dt,Mn),$o=$i=>(this.queryRef=this.typeaheadQuery.watch($i),this.isLoading$=this.queryRef.valueChanges.pipe((0,Cn.j)("loading"),(0,j.x)()),this.queryRef.valueChanges),Wi=$i=>(0,eo.D)(this.queryRef.refetch($i));return(0,hi.s)(()=>void 0===this.queryRef,(0,si.P)(()=>$o(kn)),(0,si.P)(()=>Wi(kn)))})),this.onOpenChange$.subscribe(Dt=>{Dt&&this.onSearch$.next("")}),this.response$.pipe((0,qe.h)(Dt=>void 0!==Dt.data),(0,Zt.U)(Dt=>this.getTypeahedResults(Dt)),(0,ve.t)(this)).subscribe(Dt=>{this.result$.next(Dt),0===Dt.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,it.M)(this.result$),(0,ve.t)(this)).subscribe(([Dt,Mn])=>{const kn=this.getSelectOptions(Mn,Dt);this.selectOption$.next(kn),this.cdr.detectChanges()}):(console.warn(`${this.field.id} could not find reference to optionTemplates ViewChildren, options will only show entity name text.`),this.result$.pipe((0,ve.t)(this)).subscribe(Dt=>{this.selectOption$.next(Dt.map(Mn=>({label:Mn.name,value:Mn.id})))})),this.onPopulate$.pipe((0,qe.h)(xo.ep),(0,bo.w)(Dt=>Ri(this.getTagQueries(Dt))),(0,Zt.U)(Dt=>Dt.map(Mn=>this.getTagQueryResults(Mn))),(0,Fo.b)(Dt=>{this.result$.next(Dt)}),(0,ve.t)(this)).subscribe(Dt=>{let Mn;if(this.field.props&&this.field.props.isMultiSelect){const kn=[];Dt.forEach($o=>kn.push($o?.id||void 0)),Mn=kn}else Mn=Dt[0].id;this.formControl.setValue(Mn),this.selectOpen$.next(!1)}),this.formControl.value){const Dt=this.formControl.value;if(Object.keys(Dt).length>0&&Dt.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,Dt);this.onPopulate$.next(Dt)}this.onTagClose$.pipe((0,ve.t)(this)).subscribe(Dt=>{this.resetField()})}getTagQueries(Ae){return"number"==typeof Ae&&(Ae=[Ae]),Ae.map(Mn=>this.tagQuery.fetch(this.getTagQueryVars(Mn),{fetchPolicy:"cache-first"}).pipe((0,qe.h)(kn=>!!kn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}}return m.\u0275fac=function(){let G;return function(Dt){return(G||(G=e.n5z(m)))(Dt||m)}}(),m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac}),m})()}}var Ui,Ti=a(8180),Fn=a(313),Mi=a(8753),bi=a(6321),nr=a(7081);function Pr(u,y){1&u&&e._UZ(0,"span",5),2&u&&e.Q6J("nzType","loading")}function Oi(u,y){if(1&u&&(e.YNc(0,Pr,1,1,"span",4),e.ynx(1),e._uU(2),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.Q6J("ngIf",c.showSpinner),e.xp6(2),e.hij(" ",c.message," ")}}const or=function(u,y,c){return{$implicit:u,createMsg:y,model:c}};function Xi(u,y){if(1&u&&(e._UZ(0,"nz-divider"),e.TgZ(1,"div",6),e.GkF(2,7),e.qZA()),2&u){const c=e.oxw().ngrxLet,m=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",m.cvcAddEntity)("ngTemplateOutletContext",e.kEZ(2,or,c.searchStr,c.message,m.cvcAddEntityModel))}}const pr=function(){return[]};function hr(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",1),e.NdJ("nzOpenChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onOpenChange$.next(G))})("nzOnSearch",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnSearch.next(G))})("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnModelChange.next(G))}),e.qZA(),e.YNc(2,Oi,3,2,"ng-template",null,2,e.W1O),e.YNc(4,Xi,3,6,"ng-template",null,3,e.W1O),e.BQk()}if(2&u){const c=y.ngrxLet,m=e.MAs(3),G=e.MAs(5),Ae=e.oxw();e.xp6(1),e.ekj("ng-dirty",Ae.cvcShowError),e.Q6J("nzDropdownMatchSelectWidth",!0)("formControl",Ae.cvcFormControl)("formlyAttributes",Ae.cvcFormlyAttributes)("nzMode",Ae.cvcSelectMode)("nzPlaceHolder",Ae.cvcPlaceholder||"Search "+Ae.cvcEntityName.plural)("nzCustomTemplate",Ae.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",Ae.cvcDisabled)("nzLoading",Ae.cvcLoading)("nzAllowClear",Ae.cvcAllowClear)("nzBorderless",Ae.cvcBorderless)("nzSuffixIcon",Ae.cvcSuffixIcon)("nzShowArrow",Ae.cvcShowArrow)("nzAutoClearSearchValue",Ae.cvcAutoClearSearchValue)("nzOptions",Ae.cvcOptions||e.DdM(20,pr))("nzDropdownRender",c.showAddForm?G:null)("nzNotFoundContent",m)("nzOpen",Ae.cvcSelectOpen)}}const lo={search:(u,y,c)=>`Searching ${u} matching "${y}"...`,searchAll:(u,y,c)=>`Listing all ${u}...`,searchParam:(u,y,c)=>`Searching ${c} ${u} matching "${y}"...`,searchParamAll:(u,y,c)=>`Listing all ${c} ${u}...`,searchEnterQuery:(u,y,c,m)=>`Enter at least ${m} characters to search ${c} ${u}`,searchEnterQueryAll:(u,y,c,m)=>`Enter at least least ${m} characters to search ${u}`,empty:(u,y,c)=>`No ${u} found matching "${y}"`,emptyAll:(u,y,c)=>`No ${u} found.`,emptyParam:(u,y,c)=>`No ${c} ${u} found matching "${y}"`,emptyParamAll:(u,y,c)=>`No ${c} ${u} found`};let Oo=((Ui=class{constructor(){this.cvcEntityName={singular:"Entity",plural:"Entities"},this.cvcSelectMode="default",this.cvcLoading=!1,this.cvcOptions=void 0,this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcBorderless=!1,this.cvcShowArrow=!1,this.cvcAutoClearSearchValue=!0,this.cvcSuffixIcon="search",this.cvcCustomTemplate=null,this.cvcAddEntity=null,this.cvcMinSearchStrLength=0,this.cvcAddEntityBehavior=(y,c)=>y.length>this.cvcMinSearchStrLength&&0===c.length,this.cvcOnOpenChange=new e.vpe,this.cvcOnSearch=(new e.vpe).pipe((0,Mi.p)(300,bi.z,{leading:!1,trailing:!0}),(0,nr.d)(1)),this.cvcOnModelChange=new e.vpe,this.cvcSelectComponent=new e.vpe,this.messageOptions=lo,this.onParamName$=new ct.X(void 0),this.onOption$=new ct.X([]),this.onOpenChange$=new ct.X(!1),this.onLoading$=new ct.X(!1),this.notFoundDisplay$=new ct.X({searchStr:"",showSpinner:!0,showAddForm:!1,message:`Searching ${this.cvcEntityName.plural}...`}),this.previousIsOpen=!1}ngAfterViewInit(){this.cvcSelectMessages&&(this.messageOptions={...this.messageOptions,...this.cvcSelectMessages}),this.nzSelectComponent?(this.cvcSelectComponent.next(this.nzSelectComponent),this.onOpenChange$.pipe((0,ve.t)(this)).subscribe(y=>{this.cvcOnOpenChange.next(y)}),(0,Do.a)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,j.x)())]).pipe((0,Zt.U)(([y,c,m,G,Ae])=>{const Dt=this.cvcEntityName.plural,Mn=this.cvcMinSearchStrLength,kn=null!==this.cvcAddEntity,$o=!1===this.previousIsOpen&&!0===y;if(this.previousIsOpen=y,$o)return this.getSelectInitDisplay(Dt,Mn,m);if(Ae&&c.length>=Mn){const Wi=this.cvcAddEntityBehavior(c,this.cvcResults||[]);return this.getSelectSearchingDisplay(c,Dt,Mn,m,kn,Wi)}return y&&!Ae&&c.length>=Mn&&0===G.length?this.getSelectEmptyDisplay(c,Dt,m,kn):{searchStr:"",showSpinner:!1,showAddForm:kn&&this.cvcAddEntityBehavior(c,this.cvcResults||[]),message:""}}),(0,Fo.b)(y=>{this.notFoundDisplay$.next(y)}),(0,ve.t)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(y,c,m){let G=this.messageOptions.searchAll,Ae=!1;return 0==c?(Ae=!0,G=void 0===m?this.messageOptions.searchAll:this.messageOptions.searchParamAll):c>0&&(Ae=!1,G=void 0===m?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:G(y,"",m,c),showSpinner:Ae,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(y,c,m,G,Ae,Dt=!1){let Mn=this.messageOptions.searchAll;return Mn=void 0===G?y.length>0?this.messageOptions.search:this.messageOptions.searchAll:y.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:Mn(c,y,G),showSpinner:!0,showAddForm:Ae&&Dt,searchStr:y}}getSelectEmptyDisplay(y,c,m,G){let Ae=this.messageOptions.empty;return Ae=void 0===m?y.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:y.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:Ae(c,y,m),showSpinner:!1,showAddForm:G,searchStr:y}}ngOnChanges(y){if(y.cvcParamName&&this.onParamName$.next(y.cvcParamName.currentValue),y.cvcOptions){const c=y.cvcOptions.currentValue;void 0!==c&&this.onOption$.next(c)}if(y.cvcLoading){const c=y.cvcLoading.currentValue;void 0!==c&&this.onLoading$.next(c)}}}).\u0275fac=function(y){return new(y||Ui)},Ui.\u0275cmp=e.Xpm({type:Ui,selectors:[["cvc-entity-select"]],viewQuery:function(y,c){if(1&y&&e.Gf(Ne.Vq,5),2&y){let m;e.iGM(m=e.CRH())&&(c.nzSelectComponent=m.first)}},inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcEntityName:"cvcEntityName",cvcSelectMessages:"cvcSelectMessages",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcLoading:"cvcLoading",cvcOptions:"cvcOptions",cvcResults:"cvcResults",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcBorderless:"cvcBorderless",cvcShowArrow:"cvcShowArrow",cvcAutoClearSearchValue:"cvcAutoClearSearchValue",cvcSuffixIcon:"cvcSuffixIcon",cvcCustomTemplate:"cvcCustomTemplate",cvcParamName:"cvcParamName",cvcAddEntity:"cvcAddEntity",cvcAddEntityModel:"cvcAddEntityModel",cvcMinSearchStrLength:"cvcMinSearchStrLength",cvcAddEntityBehavior:"cvcAddEntityBehavior",cvcSelectOpen:"cvcSelectOpen"},outputs:{cvcOnOpenChange:"cvcOnOpenChange",cvcOnSearch:"cvcOnSearch",cvcOnModelChange:"cvcOnModelChange",cvcSelectComponent:"cvcSelectComponent"},features:[e.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen","nzOpenChange","nzOnSearch","ngModelChange"],["searchMessages",""],["addForm",""],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(y,c){1&y&&e.YNc(0,hr,6,21,"ng-container",0),2&y&&e.Q6J("ngrxLet",c.notFoundDisplay$)},dependencies:[M.O5,M.tP,t.JJ,t.oH,R.eJ,v.JD,st.Ls,Ne.Vq,qt.g],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0}),Ui);Oo=(0,Ce.gn)([(0,ve.c)({arrayName:"stateSubscriptions"})],Oo);var ji,Po=a(9835),qo=a(2024),Vo=a(7473),Zo=a(855),Ko=a(1958),_i=a(9928);function Zi(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}function Xo(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.hij(' "',c.model.name,'" ')}}const jn=function(){return[0,0]};let so=((ji=class{set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.form=new t.nJ({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new Xe.x,this.searchString$=new ct.X(void 0),this.addDiseaseMutator=new qo.U(this.errors),this.fields=[{key:"doid",type:"input",props:{label:"DOID",keydown:(m,G)=>{"Tab"===G.code&&G.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,ve.t)(this)).subscribe(m=>{m&&(this.model.name=m)}),this.onSubmit$.pipe((0,ve.t)(this)).subscribe(m=>{console.log("disease-quick-add form model submitted.",m),this.submitDisease(m)})}submitDisease(y){y.name?this.mutationState=this.addDiseaseMutator.mutate(this.query,this.model,{},c=>{console.log("disease-quick-add submit data callback",c),c.addDisease&&(this.successMessage=c.addDisease.new?`New Disease ${c.addDisease.disease.name} added.`:`Existing Disease ${c.addDisease.disease.name} with DOID ${c.addDisease.disease.doid} found. `,setTimeout(()=>{c&&c.addDisease&&this.cvcOnCreate.next(c.addDisease.disease.id)},1e3))}):console.error("disease-quick-add form submitDisease requires model with valid name.")}}).\u0275fac=function(y){return new(y||ji)(e.Y36(Fn.MPi),e.Y36(Vo.Y))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["entityType","Disease",3,"mutationState","successMessage"],["success",""],["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(y,c){if(1&y&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,Zi,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(7,"nz-col",4)(8,"button",6),e._uU(9," Add Disease\xa0 "),e.YNc(10,Xo,2,1,"ng-container",7),e.qZA()()()()()),2&y){const m=e.MAs(2);e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(10,jn)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(2),e.Q6J("ngIf",c.model.name)}},dependencies:[M.O5,t._Y,t.JL,t.sg,v.T7,Vn.ix,Zo.w,Ko.dQ,pe.t3,pe.SK,s.Lr,_i.F],encapsulation:2,changeDetection:0}),ji);so=(0,Ce.gn)([(0,ve.c)()],so);const Ue=["addDisease"],oe=["optionTemplates"];function Oe(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"DOID:"),e.qZA(),e._UZ(3,"span",9),e.ALo(4,"highlightTypeahead"),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(3),e.Q6J("innerHtml",e.xi3(4,1,c.doid,m),e.oJD)}}function Ge(u,y){if(1&u&&(e.ynx(0),e._uU(1," \xa0 "),e.TgZ(2,"strong"),e._uU(3,"Aliases: "),e.qZA(),e.TgZ(4,"em"),e._UZ(5,"span",10),e.ALo(6,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(5),e.Q6J("nzTooltipTitle",c.diseaseAliases.join(", "))("innerHtml",e.xi3(6,2,c.diseaseAliases.join(", "),m),e.oJD)}}function bt(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",6),e.TgZ(1,"span",7),e.YNc(2,Oe,5,4,"ng-container",8),e.YNc(3,Ge,7,5,"ng-container",8),e._uU(4),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.doid),e.xp6(1),e.Q6J("ngIf",c.diseaseAliases.length>0),e.xp6(1),e.hij(" ",m," ")}}function Ht(u,y){1&u&&(e.ynx(0),e.YNc(1,bt,5,6,"ng-template",null,5,e.W1O),e.BQk())}function nn(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ht,3,0,"ng-container",4),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function fn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",11)(1,"cvc-entity-tag",12),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Disease:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function en(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-disease-quick-add-form",13),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.qZA()}2&u&&e.Q6J("cvcSearchString",y.$implicit)}const vn=kt(at(),oi());let Nn=(()=>{class u extends vn{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Disease",plural:"Diseases"},tooltip:"Cancer or cancer subtype that is a result of the described variant",isMultiSelect:!1,requireType:!0,placeholder:"Search Diseases",requireTypePromptFn:(Ae,Dt)=>`Select an ${Ae} Type to select an associated Disease${Dt?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new ct.X(void 0),this.selectOpen$=new Ao.t}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField(),this.addForm&&(this.field.props.addFormContent=this.addForm)}configureField(){this.placeholder$.next(this.props.placeholder),this.configureStateConnections()}configureStateConnections(){if(this.state){if(this.state.requires.requiresDisease$?this.onRequiresDisease$=this.state.requires.requiresDisease$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresDisease$ subject to attach.`),this.props.requireType){const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}!this.onRequiresDisease$||!this.onEntityType$||(0,Do.a)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,ve.t)(this)).subscribe(([c,m,G])=>{this.onStateUpdates(c,m,G)})}}onStateUpdates(c,m,G){!c&&m&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ie.E)(m)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!m&&(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"),c&&(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0),(!c&&void 0!==G||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.diseaseTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.disease}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.RYL),e.Y36(Fn.QVn),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(c,m){if(1&c&&(e.Gf(Ue,7),e.Gf(oe,5,e.Rgc)),2&c){let G;e.iGM(G=e.CRH())&&(m.addForm=G.first),e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:12,vars:26,consts:[[3,"cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addDisease",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcSelectComponent",function(Ae){return m.selectComponent=Ae})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA(),e.YNc(7,nn,3,3,"ng-container",1),e.YNc(8,fn,2,3,"ng-template",null,2,e.W1O),e.YNc(10,en,1,1,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(9),Ae=e.MAs(11);e.Q6J("cvcAddEntity",Ae)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,14,m.placeholder$))("cvcResults",e.lcZ(2,16,m.result$))("cvcOptions",e.lcZ(3,18,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresDisease$&&!e.lcZ(4,20,m.onRequiresDisease$))("cvcLoading",e.lcZ(5,22,m.isLoading$))("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,Ye.SY,me.ZU,Oo,Po.J,so,R.fM,J.A],changeDetection:0}),u})();const bn={types:[{name:"disease-select",wrappers:["form-field"],component:Nn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Nn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let dn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(bn),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,zn.g,Bt,Un,Ve.s,$e.x]}),u})();var xn=a(9154);let Wn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,me.ZJ]}),u})();var In=a(2962),Hn=a(2787),Gn=a(8373),Zn=a(3740),to=a(6699),yo=a(3620),_o=a(9111),Jn=a(9377),No=a(3019),To=a(3742);const ko={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},Ki=u=>void 0!==u.sort,ii=u=>void 0!==u.filter,Ii={description:Fn.Cp0.Description,disease:Fn.Cp0.DiseaseName,evidenceDirection:Fn.Cp0.EvidenceDirection,evidenceLevel:Fn.Cp0.EvidenceLevel,evidenceRating:Fn.Cp0.EvidenceRating,evidenceType:Fn.Cp0.EvidenceType,id:Fn.Cp0.Id,significance:Fn.Cp0.Significance,status:Fn.Cp0.Status,therapies:Fn.Cp0.TherapyName,variantOrigin:Fn.Cp0.VariantOrigin},Ji={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},di=["selected","id"];class Le{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{hidden:!0,key:"id",label:"ID",type:"default",width:"30px"},{hidden:!0,key:"status",label:"Status",type:"default",width:"50px"},{key:"id",label:"Evidence",type:"entity-tag",width:"95px",context:"evidenceItem",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"EID",value:null}],transform:y=>y?+y.toString().replace(/EID/i,""):null}},{key:"molecularProfile",label:"Molecular Profile",type:"entity-tag",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"MolecularProfile",options:[{key:"Filter Therapy Names",value:null}]}},{key:"disease",type:"entity-tag",label:"Disease",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"Disease",options:[{key:"Filter Disease Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapyInteractionType",label:"INT",tooltip:"Therapy Interaction Type",type:"enum-tag",width:"40px",align:"center",emptyValueCategory:"not-applicable",sort:{},filter:{options:this.getAttributeFilters((0,To.o6)(Fn.wkr))}},{key:"description",label:"DSC",tooltip:"Evidence Description",type:"text-tag",width:"40px",align:"center",fixedRight:!0,emptyValueCategory:"unspecified",sort:{},filter:{inputType:"default",options:[{key:"Search Descriptions",value:null}]}},{key:"evidenceType",label:"ET",tooltip:"Evidence Type",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,To.o6)(Fn.kqt))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,To.o6)(Fn.Sx0))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,To.o6)(Fn.tI1))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,To.o6)(Fn.y1h))}},{key:"evidenceRating",label:"ER",tooltip:"Evidence Rating",type:"enum-tag",width:"45px",align:"center",fixedRight:!0,tag:{showLabel:"short-string"},sort:{},filter:{options:[1,2,3,4,5].map(y=>({value:y,text:`${y} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(y,c){return y.getValues().map(G=>({text:(0,ie.E)(G),value:G,byDefault:c===G}))}configureColumnStreams(y){return y.forEach(c=>{const m=c;if(Ki(m)&&(m.sort.changes=new ct.X({key:m.key,value:m.sort.default??null}),this.sortStreams.push(m.sort.changes)),ii(m)){const G=m.filter.options.find(Ae=>Ae.byDefault)?.value;m.filter.changes=new ct.X({key:m.key,value:G??null}),this.filterStreams.push(m.filter.changes)}}),y}}var W,Ut=a(8656);function Re(u,y){1&u&&e.GkF(0)}const jt=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function sn(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"span",1),e.YNc(2,Re,1,0,"ng-container",2),e.qZA(),e.BQk()),2&u){const c=y.$implicit,m=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",m.cvcTagTemplate)("ngTemplateOutletContext",e.kEZ(2,jt,c,m.config,null==m.config?null:m.config.emphasize))}}let Rn=((W=class{set cvcTagListConfig(y){!y||!y.tagList||!y.tag||(this.config=y,this.setEntities(y.tagList,y.tag))}constructor(){this.entities=[]}setEntities(y,c){this.entities=y&&0!==y.length&&0!==c.maxTags?y:[]}}).\u0275fac=function(y){return new(y||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["cvc-entity-tag-list"]],inputs:{cvcTagListConfig:"cvcTagListConfig",cvcTagTemplate:"cvcTagTemplate"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"tag-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(y,c){1&y&&e.YNc(0,sn,3,6,"ng-container",0),2&y&&e.Q6J("ngForOf",c.entities)},dependencies:[M.sg,M.tP],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0}),W);Rn=(0,Ce.gn)([(0,ve.c)()],Rn);var ho=a(2616),fo=a(1201);function Uo(u,y){if(1&u&&(e._UZ(0,"span",6),e.ALo(1,"typenameToIcon"),e.ALo(2,"entityColor")),2&u){const c=y.$implicit;e.Q6J("nzType",e.lcZ(1,2,c.__typename))("nzTwotoneColor",e.lcZ(2,4,c.__typename))}}function ti(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Uo,3,6,"span",5),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",c.entities)}}function uo(u,y){if(1&u&&(e.TgZ(0,"span",7)(1,"strong"),e._uU(2),e.qZA()(),e._UZ(3,"span",6),e.ALo(4,"typenameToIcon"),e.ALo(5,"entityColor")),2&u){const c=e.oxw();e.xp6(2),e.Oqu(c.entities.length),e.xp6(1),e.Q6J("nzType",e.lcZ(4,3,c.entities[0].__typename))("nzTwotoneColor",e.lcZ(5,5,c.entities[0].__typename))}}const Vi=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function Ai(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag-list",11),2&u){const c=e.oxw(2);e.Q6J("cvcTagTemplate",c.cvcTagTemplate)("cvcTagListConfig",e.qbA(2,Vi,c.entities,c.config.tag,c.config.showPopover,c.config.status,c.config.emphasize))}}function Cr(u,y){1&u&&e._uU(0," Invalid config specified for entity-tag-list. ")}function ps(u,y){if(1&u&&(e.TgZ(0,"div",8),e.YNc(1,Ai,1,8,"cvc-entity-tag-list",9),e.qZA(),e.YNc(2,Cr,1,0,"ng-template",null,10,e.W1O)),2&u){const c=e.MAs(3),m=e.oxw();e.xp6(1),e.Q6J("ngIf",m.config)("ngIfElse",c)}}let Ee=(()=>{class u{set cvcCollectionTagConfig(c){!c||!c.tagList||!c.tag||(this.setConfig(c),this.setEntities(c.tagList))}constructor(){this.cvcShowMaxIcons=5,this.cvcShowFullLabels=!0,this.entities=[]}setConfig(c){this.config=this.cvcShowFullLabels?{...c,tag:{...c.tag,truncateLabel:void 0}}:c}setEntities(c){this.entities=c&&0!==c.length?c:[]}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["showCount",""],["tagListPopover",""],["class","entity-icon","nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor",4,"ngFor","ngForOf"],["nz-icon","","nzTheme","twotone",1,"entity-icon",3,"nzType","nzTwotoneColor"],["nz-typography","","nzType","secondary",1,"entity-count"],[1,"popover-container"],[3,"cvcTagTemplate","cvcTagListConfig",4,"ngIf","ngIfElse"],["noConfig",""],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-tag",0)(1,"span",1)(2,"strong"),e._uU(3,"+"),e.qZA()(),e.YNc(4,ti,2,1,"ng-container",2),e.YNc(5,uo,6,7,"ng-template",null,3,e.W1O),e.qZA(),e.YNc(7,ps,4,2,"ng-template",null,4,e.W1O)),2&c){const G=e.MAs(6),Ae=e.MAs(8);e.Q6J("nzPopoverContent",Ae),e.xp6(4),e.Q6J("ngIf",m.entities.length<=m.cvcShowMaxIcons)("ngIfElse",G)}},dependencies:[M.sg,M.O5,wt.j,me.ZU,Xn.lU,st.Ls,Rn,ho.a,fo.Z],styles:["[_nghost-%COMP%]{display:inline-block}.popover-container[_ngcontent-%COMP%]{max-width:300px}nz-tag[_ngcontent-%COMP%]{margin:0;padding:0;margin-inline-end:4px}nz-tag[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block}nz-tag[_ngcontent-%COMP%] .plus-sign[_ngcontent-%COMP%]{padding:3px 3px 3px 4px;margin:-3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:first-child{padding-left:2px}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]{margin:-3px 1px -4px -1px;padding:3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:last-child{padding-right:3px}nz-tag[_ngcontent-%COMP%] .entity-count[_ngcontent-%COMP%]{margin-left:-2px;padding-right:4px}"],changeDetection:0}),u})();var ye=a(3489);function de(u,y){if(1&u&&(e.TgZ(0,"span",1),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&u){const c=y.ngIf;e.xp6(1),e.AsE(" ",e.lcZ(2,2,c.edgeCount)," of ",e.lcZ(3,4,c.filteredCount)," displayed\n")}}let ut=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,qe.h)(c=>null!=c.totalCount||null!=c.filteredCount),(0,Zt.U)(c=>{const m=c.filteredCount,G=c.totalCount,Ae=c.edges;return null==m&&null==G&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:Ae.length,filteredCount:m??G}}))}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-table-counts2"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"]],template:function(c,m){1&c&&(e.YNc(0,de,4,6,"span",0),e.ALo(1,"ngrxPush")),2&c&&e.Q6J("ngIf",e.lcZ(1,1,m.tableCountsInfo$))},dependencies:[M.O5,me.ZU,M.JJ,R.fM],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),u})();var pi,yn=a(1374),Qn=a(9384);let ai=((pi=class{set cvcTableScrollerToIndex(y){void 0!==y&&this.scrollToIndex(y)}set cvcTableScrollerToOffset(y){void 0!==y&&this.scrollToIndex(y)}constructor(y){this.host=y,this.cvcTableScrollerOnScroll=new e.vpe,this.cvcTableScrollerOnFetch=new e.vpe,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,yn.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Mi.p)(this.onScrollThrottleTime,bi.z,{leading:!0,trailing:!0}),(0,Fo.b)(y=>this.cvcTableScrollerOnScroll.next("scroll")),(0,yo.b)(this.onScrollDebounceTime),(0,ve.t)(this)).subscribe(y=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,Zt.U)(y=>this.viewport.measureScrollOffset("bottom")),(0,Qn.G)(),(0,qe.h)(([y,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(y){const c=this.cvcTableScrollerQueryRef;if(!y&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(y&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(y&&c){const[m,G,Ae]=[this.cvcTableScrollerFetchCount,y.hasNextPage,y.endCursor];if(!m||!Ae)throw new Error("table-scroll PageInfo invalid.");if(!G)return;this.cvcTableScrollerOnFetch.next({first:m,after:Ae})}}scrollToIndex(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");m.scrollToIndex(y)}scrollToOffset(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");m.scrollToOffset(y)}}).\u0275fac=function(y){return new(y||pi)(e.Y36(Zn.N8))},pi.\u0275dir=e.lG2({type:pi,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}}),pi);function Ir(u,y){1&u&&e._UZ(0,"span",8)}function xs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Ae=e.oxw();return G.value="",e.KtG(Ae.cvcModelChange.next(null))}),e.qZA()}}function Ma(u,y){if(1&u&&(e.YNc(0,Ir,1,0,"span",6),e.YNc(1,xs,1,0,"span",7)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function js(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",2)(2,"input",3,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcModelChange.next(G))}),e.qZA()(),e.YNc(4,Ma,2,2,"ng-template",null,5,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw();e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.cvcPlaceholder)("ngModel",m.cvcModel)}}function Gs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",10)(1,"nz-input-number",11,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcModelChange.next(""===G?null:G))}),e.qZA()()}if(2&u){const c=e.oxw();let m;e.xp6(1),e.Q6J("nzPlaceHolder",null!==(m=c.cvcPlaceholder)&&void 0!==m?m:"")("ngModel",c.cvcModel)("nzMin",1)("nzStep",1)}}ai=(0,Ce.gn)([(0,ve.c)()],ai);let hs=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.vpe,this.cvcInputType="default"}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","ngModelChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"]],template:function(c,m){if(1&c&&(e.YNc(0,js,6,3,"ng-container",0),e.YNc(1,Gs,3,4,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf","default"===m.cvcInputType)("ngIfElse",G)}},dependencies:[M.O5,t.Fj,t.JJ,t.On,Zo.w,st.Ls,je.Zp,je.gB,je.ke,Gn._V,Gn.Rb],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700} nz-input-group{border-color:#d9d9d9!important}"]}),u})();var Ds=a(3460);function Yr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",5),e.NdJ("click",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.cvcOptionChange.next({key:Dt.cvcColumnKey,value:Ae.value}))}),e._UZ(1,"cvc-attribute-tag",6),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("nzSelected",(null==m.cvcOption?null:m.cvcOption.value)===c.value),e.xp6(1),e.Q6J("cvcFullWidth",!0)("cvcChecked",(null==m.cvcOption?null:m.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let $r=(()=>{class u{constructor(){this.cvcOptionChange=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"nzSelected","click"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(c,m){1&c&&(e.TgZ(0,"ul",0),e.YNc(1,Yr,2,4,"li",1),e.TgZ(2,"li",2)(3,"button",3),e.NdJ("click",function(){return m.cvcOptionChange.next({key:m.cvcColumnKey,value:null})}),e._UZ(4,"span",4),e._uU(5," Reset "),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("ngForOf",m.cvcFilterOptions),e.xp6(2),e.Q6J("disabled",null===(null==m.cvcOption?null:m.cvcOption.value)))},dependencies:[M.sg,mt,Vn.ix,Zo.w,Ko.dQ,Ds.wO,Ds.r9,st.Ls],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0}),u})(),rr=(()=>{class u{transform(c){return null!=c&&Array.isArray(c)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.Yjl({name:"isArray",type:u,pure:!0}),u})(),Ur=(()=>{class u{transform(c,m){return m(c)?c:void 0}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.Yjl({name:"guardType",type:u,pure:!0}),u})();var ri;function fr(u,y){if(1&u&&e._UZ(0,"th",14),2&u){const c=y.ngIf;let m;e.Q6J("nzShowCheckbox",c.checkbox.th.showCheckbox||!1)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function Os(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",15),e.NdJ("nzSortOrderChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.sort.changes.next({key:Dt.key,value:G}))}),e.ALo(1,"ngrxPush"),e.TgZ(2,"span",16),e._uU(3),e.qZA()()}if(2&u){const c=y.ngIf;let m,G;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",void 0!==c.sort)("nzSortFn",!0)("nzSortOrder",(null==(G=e.lcZ(1,10,c.sort.changes))?null:G.value)||null),e.xp6(2),e.Q6J("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Ar(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Sr(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function jr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,fr,1,5,"th",11),e.ALo(2,"guardType"),e.YNc(3,Os,4,12,"th",12),e.ALo(4,"guardType"),e.YNc(5,Ar,2,7,"th",13),e.ALo(6,"guardType"),e.YNc(7,Sr,2,7,"th",13),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Qs(u,y){if(1&u&&(e.ynx(0),e.YNc(1,jr,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function Fr(u,y){if(1&u&&(e.TgZ(0,"th",22),e._uU(1," \xa0 "),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function fs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-table-filter-input",25),e.NdJ("cvcModelChange",function(G){const Dt=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Dt.changes.next(Dt.transform?{key:Mn.key,value:Dt.transform(G)}:{key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function mr(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,fs,1,3,"cvc-table-filter-input",24),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function Xa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",26,27),e.NdJ("nzSortOrderChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.sort.changes.next({key:Dt.key,value:G}))}),e.ALo(2,"ngrxPush"),e.TgZ(3,"nz-filter-trigger",28,29),e.ALo(5,"ngrxPush"),e._UZ(6,"span",30),e.qZA(),e.TgZ(7,"nz-dropdown-menu",null,31)(9,"cvc-enum-filter-menu",32),e.NdJ("cvcOptionChange",function(G){const Dt=e.CHM(c).ngIf,Mn=e.MAs(4);return Dt.filter.changes.next(G),e.KtG(Mn.nzVisible=!1)}),e.ALo(10,"ngrxPush"),e.qZA()()()}if(2&u){const c=y.ngIf,m=e.MAs(8);let G,Ae,Dt;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(Ae=e.lcZ(2,15,c.sort.changes))?null:Ae.value)||null)("nzShowFilter",void 0!==c.filter)("nzFilterFn",!0),e.xp6(3),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Dt=e.lcZ(5,17,c.filter.changes))?null:Dt.value)),e.xp6(6),e.Q6J("cvcColumnKey",c.key)("cvcFilterOptions",c.filter.options)("cvcOption",e.lcZ(10,19,c.filter.changes))}}function Er(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",33,27)(2,"nz-filter-trigger",28),e.ALo(3,"ngrxPush"),e._UZ(4,"span",34),e.qZA(),e.TgZ(5,"nz-dropdown-menu",null,35)(7,"div",36)(8,"div",37)(9,"cvc-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.filter.changes.next({key:Dt.key,value:G}))}),e.qZA()()()()()}if(2&u){const c=y.ngIf,m=e.MAs(6);let G,Ae;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzFilterFn",!0),e.xp6(2),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Ae=e.lcZ(3,10,c.filter.changes))?null:Ae.value)),e.xp6(7),e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function ba(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Fr,2,5,"th",18),e.ALo(2,"guardType"),e.YNc(3,mr,2,6,"th",19),e.ALo(4,"guardType"),e.YNc(5,Xa,11,21,"th",20),e.ALo(6,"guardType"),e.YNc(7,Er,10,12,"th",21),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Qc(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ba,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function ec(u,y){if(1&u&&(e.TgZ(0,"thead")(1,"tr",7),e.YNc(2,Qs,2,1,"ng-container",8),e.qZA(),e.TgZ(3,"tr",9),e.YNc(4,Qc,2,1,"ng-container",8),e.qZA()()),2&u){const c=y.ngrxLet;e.xp6(2),e.Q6J("ngForOf",c),e.xp6(2),e.Q6J("ngForOf",c)}}function xr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"td",43),e.NdJ("nzCheckedChange",function(G){e.CHM(c);const Ae=e.oxw(3).$implicit,Dt=e.oxw(2);return e.KtG(Dt.onRowSelected$.next({id:Ae.id,selected:G}))}),e.qZA()}if(2&u){const c=y.ngIf,m=e.oxw(3).$implicit;let G;e.Q6J("nzChecked",m.selected)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function sr(u,y){1&u&&e.GkF(0)}const Xr=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function Nr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,sr,1,0,"ng-container",49),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw().ngIf,m=e.oxw().ngIf,G=e.MAs(3),Ae=e.MAs(5),Dt=e.oxw(3).$implicit;let Mn;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,Dt[c])?G:Ae)("ngTemplateOutletContext",e.kEZ(6,Xr,Dt[c],m,null==(Mn=e.lcZ(3,4,m.filter.changes))?null:Mn.value))}}function ws(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Nr,4,10,"ng-container",48),e.BQk()),2&u){const c=y.ngIf;e.oxw();const m=e.MAs(7),G=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf",G[c])("ngIfElse",m)}}const es=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function Ws(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-collection-tag",51),e.BQk()),2&u){const c=e.oxw(2),m=c.config,G=c.$implicit,Ae=c.emphasize;e.oxw();const Dt=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcCollectionTagConfig",e.qbA(3,es,G.slice(m.tag.maxTags,G.length),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Ae))("cvcTagTemplate",Dt)("cvcShowFullLabels",!0)}}function Ps(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-tag-list",50),e.YNc(2,Ws,2,9,"ng-container",10),e.BQk()),2&u){const c=e.oxw(),m=c.config,G=c.$implicit,Ae=c.emphasize;e.oxw();const Dt=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcTagTemplate",Dt)("cvcTagListConfig",e.qbA(3,es,G.slice(0,m.tag.maxTags),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Ae)),e.xp6(1),e.Q6J("ngIf",G.slice(m.tag.maxTags,G.length).length>0)}}function Is(u,y){if(1&u&&e.YNc(0,Ps,3,9,"ng-container",48),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function Sa(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",52),2&u){const c=y.$implicit,m=y.config,G=y.emphasize,Ae=e.oxw(6);let Dt;e.Q6J("cvcTruncateLabel",null==m.tag?null:m.tag.truncateLabel)("cvcLinkableEntity",c)("cvcEmphasize",G)("cvcShowPopover",!Ae.isScrolling)("cvcStatus",!0===m.showStatus?c.status:void 0)("cvcFullWidth",null!==(Dt=null==m.tag?null:m.tag.fullWidth)&&void 0!==Dt&&Dt)}}function Zs(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",53),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"not-applicable")}}function Ks(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,ws,2,2,"ng-container",10),e.YNc(2,Is,1,2,"ng-template",null,45,e.W1O),e.YNc(4,Sa,1,6,"ng-template",null,46,e.W1O),e.YNc(6,Zs,1,1,"ng-template",null,47,e.W1O),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.context||c.key)}}function Js(u,y){if(1&u&&(e._UZ(0,"cvc-attribute-tag",56),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit,G=e.oxw(2);e.Q6J("cvcFullWidth",!0)("cvcAttrValue",m[c.key])("cvcTooltip",e.lcZ(1,3,!G.isScrolling&&m[c.key]))}}function Gi(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",57),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Fi(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,Js,2,5,"cvc-attribute-tag",54),e.YNc(2,Gi,1,1,"ng-template",null,55,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Ae;e.Q6J("nzAlign",null!==(Ae=c.align)&&void 0!==Ae?Ae:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function qs(u,y){if(1&u&&(e.TgZ(0,"nz-tag",60),e._UZ(1,"span",61),e.qZA()),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit;e.Q6J("nzTooltipTitle",m[c.key])}}function ci(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",53),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Lr(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,qs,2,1,"nz-tag",58),e.YNc(2,ci,1,1,"ng-template",null,59,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Ae;e.Q6J("nzAlign",null!==(Ae=c.align)&&void 0!==Ae?Ae:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function ne(u,y){if(1&u&&(e.ynx(0),e.YNc(1,xr,1,4,"td",41),e.ALo(2,"guardType"),e.YNc(3,Ks,8,4,"td",42),e.ALo(4,"guardType"),e.YNc(5,Fi,4,5,"td",42),e.ALo(6,"guardType"),e.YNc(7,Lr,4,5,"td",42),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(3);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Fe(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ne,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function he(u,y){if(1&u&&(e.TgZ(0,"tr",40),e.YNc(1,Fe,2,1,"ng-container",8),e.qZA()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngForOf",c)}}function et(u,y){1&u&&(e.TgZ(0,"tbody"),e.YNc(1,he,2,1,"ng-template",39),e.qZA())}function At(u,y){1&u&&e._UZ(0,"span",69)}function pn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",70),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Ae=e.oxw().filter;return G.value="",e.KtG(Ae.changes.next({key:Ae.key,value:null}))}),e.qZA()}}function Tn(u,y){if(1&u&&(e.YNc(0,At,1,0,"span",67),e.YNc(1,pn,1,0,"span",68)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function no(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",63)(2,"input",64,65),e.NdJ("nzFilterChange",function(G){e.CHM(c);const Ae=e.oxw().filter;return e.KtG(Ae.changes.next({key:Ae.key,value:G}))}),e.qZA()(),e.YNc(4,Tn,2,2,"ng-template",null,66,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw().filter;e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.placeholder)("ngModel",m.defaultValue)}}function Qo(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",71)(1,"nz-input-number",72,65),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw().filter;return e.KtG(Ae.changes.next({key:Ae.key,value:G}))}),e.qZA()()}if(2&u){const c=e.oxw().filter;e.xp6(1),e.Q6J("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function mo(u,y){if(1&u&&(e.YNc(0,no,6,3,"ng-container",48),e.YNc(1,Qo,3,4,"ng-template",null,62,e.W1O)),2&u){const c=y.filter,m=e.MAs(2);e.Q6J("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",m)}}const Bo=function(){return[6,6]};function wo(u,y){1&u&&(e.TgZ(0,"nz-row",73)(1,"nz-col")(2,"span"),e._uU(3,"Use checkboxes to select or deselect EIDs"),e.qZA()()()),2&u&&e.Q6J("nzGutter",e.DdM(1,Bo))}function gi(u,y){1&u&&(e.TgZ(0,"nz-tag",84),e._UZ(1,"i",85),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}const Wo=function(u){return{$implicit:u}};function Ci(u,y){if(1&u&&(e.TgZ(0,"nz-tag",88),e._UZ(1,"span",89),e.TgZ(2,"span",90),e._uU(3),e.qZA()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Wo,m.query)),e.xp6(1),e.hij(" Query Error",m.query.length>1?"s":""," ")}}function zi(u,y){if(1&u&&(e.TgZ(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e._uU(4),e.qZA()()()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(1),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Wo,m.network)),e.xp6(3),e.hij(" Network Error",m.query.length>1?"s":""," ")}}function co(u,y){if(1&u&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&u){const c=y.$implicit;e.xp6(1),e.hij(" ",c.message," ")}}function gr(u,y){1&u&&e.YNc(0,co,2,1,"div",8),2&u&&e.Q6J("ngForOf",y.$implicit)}function ar(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ci,4,5,"nz-tag",86),e.YNc(2,zi,5,5,"nz-tag",86),e.YNc(3,gr,1,1,"ng-template",null,87,e.W1O),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",c.query),e.xp6(1),e.Q6J("ngIf",c.network)}}function kr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ar,5,2,"ng-container",10),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c)}}function Dr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",92)(1,"nz-checkbox-group",93),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onPreferenceChange$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngModel",e.lcZ(2,1,c.setPreference$))}}function cr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-row",73)(1,"nz-col",74),e.YNc(2,gi,4,0,"nz-tag",75),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._UZ(5,"cvc-no-more-rows",76),e.ALo(6,"ngrxPush"),e.qZA(),e.TgZ(7,"nz-col",74),e.YNc(8,kr,2,1,"ng-container",3),e.qZA(),e.TgZ(9,"nz-col",74),e._UZ(10,"cvc-table-counts2",77),e.qZA(),e.TgZ(11,"nz-col",78)(12,"nz-button-group")(13,"button",79),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onResetFilter$.next())}),e._UZ(14,"span",80),e.qZA(),e.TgZ(15,"button",81),e._UZ(16,"span",82),e.qZA()(),e.YNc(17,Dr,3,3,"ng-template",null,83,e.W1O),e.qZA()()}if(2&u){const c=e.MAs(18),m=e.oxw();e.Q6J("nzGutter",8),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,7,m.loading$)&&e.lcZ(4,9,m.isFetchMore$)),e.xp6(3),e.Q6J("cvcShowTag",e.lcZ(6,11,m.noMoreRows$)),e.xp6(3),e.Q6J("ngrxLet",m.queryError$),e.xp6(2),e.Q6J("cvcTableCountsConnection",m.connection$),e.xp6(5),e.Q6J("nzPopoverContent",c)("nzPopoverTrigger","click")}}const Ea=function(){return[]},Gr=function(){return{x:"800px",y:"200px"}};let Qr=((ri=class{constructor(y,c,m){this.queryGQL=y,this.apollo=c,this.cdr=m,this.cvcSelectedIdsChange=new e.vpe,this.isScrolling=!1,this.colGuards=ko,this.onFetchMore$=new Xe.x,this.onPreferenceChange$=new ct.X([]),this.onResetFilter$=new Xe.x,this.onRowSelected$=new Xe.x,this.onScroll$=new ct.X("stop"),this.onSetSelectedRow$=new ct.X(new Set),this.queryError$=new Xe.x,this.queryRequest$=new Xe.x,this.queryResult$=new Ao.t(1),this.isFetchMore$=new ct.X(!1),this.noMoreRows$=new ct.X(!1),this.scrollToIndex$=new Xe.x,this.tableConfig=new Le;const G=(0,Do.a)(this.tableConfig.getFilterStreams()),Ae=(0,Do.a)(this.tableConfig.getSortStreams()).pipe((0,qe.h)(Dt=>Dt.filter(Mn=>null!==Mn.value).length<=1));this.refetch$=(0,Do.a)([Ae,G]).pipe((0,Zt.U)(([Dt,Mn])=>({query:"refetch",sort:Dt,filter:Mn}))),this.fetchMore$=this.onFetchMore$.pipe((0,Zt.U)(Dt=>({query:"fetchMore",fetchMore:{...Dt}}))),(0,No.T)(this.refetch$,this.fetchMore$).pipe((0,yo.b)(50),(0,ve.t)(this)).subscribe(Dt=>{const Mn=this.getQueryVars(Dt);this.queryRef?(this.queryError$.next({}),"refetch"===Dt.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(Mn).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:Mn}).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(Mn),this.queryRef.valueChanges.pipe((0,ve.t)(this)).subscribe(kn=>{this.queryResult$.next(kn),(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))}),this.loading$=this.queryResult$.pipe((0,Cn.j)("loading"),(0,j.x)()),this.connection$=this.queryResult$.pipe((0,Cn.j)("data","evidenceItems"),(0,qe.h)(xo.ep)),this.pageInfo$=this.connection$.pipe((0,Cn.j)("pageInfo"),(0,qe.h)(xo.ep)),this.row$=(0,Do.a)([this.connection$.pipe((0,Cn.j)("edges"),(0,qe.h)(xo.ep),(0,Zt.U)(Dt=>Dt.map(Mn=>Mn.node))),this.onSetSelectedRow$]).pipe((0,Zt.U)(([Dt,Mn])=>Dt.map(kn=>{if(kn)return{...kn,evidenceItem:{__typename:"EvidenceItem",id:kn.id,name:kn.name,link:kn.link,status:kn.status},selected:Mn.has(kn.id)}}))),this.col$=new ct.X(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,Zt.U)(Dt=>this.getColPrefsFromTableConfig(Dt))),this.onPreferenceChange$.pipe((0,it.M)(this.col$),(0,Zt.U)(([Dt,Mn])=>this.getTableConfigFromColPrefs(Dt,Mn)),(0,ve.t)(this)).subscribe(Dt=>{this.col$.next(Dt)}),this.onSetTableFilter$=new ct.X([]),this.onSetTableFilter$.pipe((0,ve.t)(this)).subscribe(Dt=>{const Mn=this.col$.getValue();Dt.forEach(kn=>{const $o=Mn.find(Wi=>Wi.key===kn.key);if(void 0!==$o.filter.inputType){const Wi=$o.filter.options[0];if(null===kn.value)return $o.filter.options=[{...Wi,value:null}],void $o.filter.changes.next(kn);if(Array.isArray(kn.value)&&0===kn.value.length)return $o.filter.options=[{...Wi,value:null}],void $o.filter.changes.next({...kn,value:null});let $i;Array.isArray(kn.value)?kn.value.length>0&&($i=kn.value[0]):$i=kn.value;const $s=$o.filter.typename;if(!$s||!$i)return void console.error(`evidence-manager requires column config '${$o.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Us=this.getEntityName($s,$i);if(!Us)return;$o.filter.options=[{...Wi,value:Us}],$o.filter.changes.next({...kn,value:Us})}else ii($o)&&$o.filter.changes.next(kn)})}),this.onSetTablePref$=new ct.X([]),this.onSetTablePref$.pipe((0,it.M)(this.setPreference$),(0,Zt.U)(([Dt,Mn])=>{const kn=[];return Dt.forEach($o=>{let Wi=Mn.find($i=>$i.value===$o.value);Wi?kn.push({...Wi,...$o}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${$o.value}', but a column with that key could not be found.`)}),kn}),(0,ve.t)(this)).subscribe(Dt=>{this.onPreferenceChange$.next(Dt)}),this.onRowSelected$.pipe((0,it.M)(this.onSetSelectedRow$),(0,ve.t)(this)).subscribe(([Dt,Mn])=>{Dt.selected?Mn.add(Dt.id):Mn.delete(Dt.id),this.onSetSelectedRow$.next(Mn),this.cvcSelectedIdsChange.next(Array.from(Mn))}),this.onScroll$.pipe((0,Zt.U)(Dt=>"stop"!==Dt),(0,j.x)(),(0,ve.t)(this)).subscribe(Dt=>{this.isScrolling=Dt,this.cdr.detectChanges()}),this.onScroll$.pipe((0,qe.h)(Dt=>"bottom"===Dt),(0,it.M)(this.pageInfo$),(0,Zt.U)(([Dt,Mn])=>Mn),(0,ve.t)(this)).subscribe(Dt=>{Dt.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,it.M)((0,ei.of)(this.tableConfig.get())),(0,ve.t)(this)).subscribe(([y,c])=>{const m=[];c.forEach(G=>{if(Ki(G)&&G.sort.changes&&G.sort.changes.next({key:G.key,value:G.sort.default??null}),ii(G)){const Ae=G.filter.options.find(Dt=>1==Dt.byDefault)?.value;G.filter.changes&&G.filter.changes.next({key:G.key,value:Ae||null})}m.push(G)}),this.col$.next(m)})}getQueryVars(y){const c=this.getQueryFilterParams(y);return{...this.getQuerySortParams(y),...c,...y.fetchMore}}getQuerySortParams(y){if(!y.sort)return;const m=y.sort.find(Ae=>null!==Ae.value);return m?{sortBy:{column:this.getSortColumnFromColKey(m.key),direction:"ascend"===m.value?Fn.SrV.Asc:Fn.SrV.Desc||void 0}}:void 0}getQueryFilterParams(y){let c={};return y.filter&&y.filter.forEach(m=>{c[Ji[m.key]||m.key]=null===m.value||""===m.value?void 0:m.value}),c}getRequestErrors(y){return{query:y.errors,network:y.error}}getTableConfigFromColPrefs(y,c){return c.forEach(m=>{if(di.find(Ae=>Ae===m.key))return;const G=y.find(Ae=>Ae.value===m.key);G&&(m.hidden=!G?.checked)}),[...c]}getColPrefsFromTableConfig(y){let c=[];return y.forEach(m=>{di.find(G=>G===m.key)||c.push({label:m.tooltip||m.label,value:m.key,checked:!m.hidden})}),c}getSortColumnFromColKey(y){return Ii[y]}getEntityName(y,c){const m={id:`${y}:${c}`,fragment:Jn.Ps` + fragment Linkable${y}Entity on ${y} { + id + name + link + }`},G=this.apollo.client.readFragment(m);if(G)return G.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${y}:${c} to populate input filter`)}trackByIndex(y,c){return c?.id}ngOnChanges(y){if(y.cvcTableSettings){const c=y.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(y.cvcSelectedIds){const c=y.cvcSelectedIds.currentValue,m=new Set;void 0!==c&&c.forEach(G=>m.add(G)),this.onSetSelectedRow$.next(m)}}}).\u0275fac=function(y){return new(y||ri)(e.Y36(Fn.EH_),e.Y36(_o._M),e.Y36(e.sBO))},ri.\u0275cmp=e.Xpm({type:ri,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.TTD],decls:16,vars:27,consts:[["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading","cvcTableScrollerOnScroll","cvcTableScrollerOnFetch"],["virtualTable",""],[4,"ngrxLet"],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange"],["enumTableFilter",""],[3,"nzDropdownMenu","nzActive"],["enumTagFilterTrigger",""],["nz-icon","","nzType","filter","nzTheme","fill"],["enumFilterMenu","nzDropdownMenu"],[3,"cvcColumnKey","cvcFilterOptions","cvcOption","cvcOptionChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],["textTagFilterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcPlaceholder","cvcModel","cvcModelChange"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange"],[3,"nzAlign","nzLeft","nzRight"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["emptyEnumTagCell",""],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["emptyTextTagCell",""],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","nzFilterChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["prefsPopover",""],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["queryError",""],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModel","ngModelChange"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.NdJ("cvcTableScrollerOnScroll",function(G){return c.onScroll$.next(G)})("cvcTableScrollerOnFetch",function(G){return c.onFetchMore$.next(G)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.YNc(8,ec,5,2,"thead",3),e.YNc(9,et,2,0,"tbody",3),e.qZA()(),e.YNc(10,mo,3,2,"ng-template",null,4,e.W1O),e.YNc(12,wo,4,2,"ng-template",null,5,e.W1O),e.YNc(14,cr,19,13,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(13),G=e.MAs(15);e.Q6J("nzTitle",m)("nzExtra",G),e.xp6(1),e.Q6J("nzData",e.lcZ(3,15,c.row$)||e.DdM(25,Ea))("cvcTableScrollerQueryRef",c.queryRef)("cvcTableScrollerPageInfo",e.lcZ(4,17,c.pageInfo$))("cvcTableScrollerToIndex",e.lcZ(5,19,c.scrollToIndex$))("nzScroll",e.DdM(26,Gr))("nzVirtualForTrackBy",c.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.lcZ(6,21,c.loading$)&&!e.lcZ(7,23,c.isFetchMore$)),e.xp6(7),e.Q6J("ngrxLet",c.col$),e.xp6(1),e.Q6J("ngrxLet",c.col$)}},dependencies:[M.sg,M.O5,M.tP,mt,Ut.P,Ee,Rn,Po.J,ye.H,ut,t.Fj,t.JJ,t.On,R.eJ,Vn.ix,Vn.fY,Zo.w,Ko.dQ,In.bd,Jt.ub,Hn.RR,pe.t3,pe.SK,st.Ls,je.Zp,je.gB,je.ke,Gn._V,Gn.Rb,Xn.lU,Zn.N8,Zn.qD,Zn.Uo,Zn._C,Zn.h7,Zn.Om,Zn.p0,Zn.$Z,Zn.zu,Zn.qn,Zn.Ql,Zn.UX,Zn.g6,wt.j,Ye.SY,me.ZU,ai,hs,$r,rr,N.Do,Ur,R.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0}),ri);Qr=(0,Ce.gn)([(0,ve.c)()],Qr);const tc=["optionTemplates"];function $l(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"cvc-evidence-manager",10),e.NdJ("cvcSelectedIdsChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcSelectedIds",e.lcZ(2,2,c.onEid$))("cvcTableSettings",e.lcZ(3,4,c.tableSettingsChange$))}}function nc(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",13),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m)}}function Rr(u,y){1&u&&(e.ynx(0),e.YNc(1,nc,1,3,"ng-template",null,12,e.W1O),e.BQk())}function wn(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Rr,3,0,"ng-container",11),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Ho(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",14)(1,"cvc-entity-tag",15),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","EvidenceItem:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Wc=function(){return[6,6]},Xs=function(u,y){return{show:u,hide:y}},Ei=kt(at(),oi());let ts=(()=>{class u extends Ei{constructor(c,m,G,Ae){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.apollo=Ae,this.synchronizedFields$=[],this.synchronizedRequired$=[],this.defaultOptions={props:{label:"Evidence Items",placeholder:"Select Evidence Items",isMultiSelect:!0,description:"Select Evidence by ID, or use the manager to select with filtering",entityName:{singular:"Evidence Item",plural:"Evidence Items"},minSearchStrLength:1}},this.synchronizedFieldToColMap=new Map([["molecularProfileId","molecularProfile"],["diseaseId","disease"],["therapyIds","therapies"]]),this.requiredFieldToColMap=new Map([["disease","requiresDisease$"],["therapies","requiresTherapy$"]]),this.onEid$=new Ao.t,this.onShowMgrClick$=new Xe.x,this.showMgr$=this.onShowMgrClick$.pipe((0,to.R)((Dt,Mn)=>!Dt,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.onEid$.pipe((0,ve.t)(this)).subscribe(),this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,it.M)(this.onEid$),(0,ve.t)(this)).subscribe(([c,m])=>{Array.isArray(c)&&this.onEid$.next(c)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((c,m)=>{const G=this.state.fields[`${m}$`];G&&this.synchronizedFields$.push(G.pipe((0,Zt.U)(Ae=>({key:m,value:Ae??null}))))}),this.requiredFieldToColMap.forEach((c,m)=>{const G=this.state.requires[c];G&&this.synchronizedRequired$.push(G.pipe((0,Zt.U)(Ae=>({key:m,required:Ae}))))}),this.onFieldsChange$=(0,Do.a)(this.synchronizedFields$).pipe((0,Zt.U)(c=>{const m=[];return c.forEach(G=>{const Ae=this.synchronizedFieldToColMap.get(G.key);Ae&&m.push({key:Ae,value:G.value})}),m})),this.onRequiredChange$=(0,Do.a)(this.synchronizedRequired$).pipe((0,Zt.U)(c=>{const m=[];return c.forEach(G=>{m.push({value:G.key,checked:G.required})}),m})),this.tableSettingsChange$=(0,Do.a)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,Zt.U)(([c,m])=>({filters:c,preferences:m})),(0,yo.b)(100),(0,nr.d)(1)))}getTypeaheadVarsFn(c,m){return{eid:+c.replace(/EID/i,"")}}getTypeaheadResultsFn(c){return c.data.evidenceItems.nodes}getTagQueryVarsFn(c){return{eid:c}}getTagQueryResultsFn(c){return c.data.evidenceItem}getSelectedItemOptionFn(c){return{value:c.id,label:`EID${c.id}`}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||`EID${G.id}`,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.olA),e.Y36(Fn.EFm),e.Y36(e.sBO),e.Y36(_o._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(tc,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:18,vars:36,consts:[[3,"nzGutter"],["nzFlex","auto"],[3,"cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["selectedTemplate",""],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIds","cvcTableSettings","cvcSelectedIdsChange"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"cvc-entity-select",2),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcSelectComponent",function(Ae){return m.selectComponent=Ae})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA()(),e.TgZ(7,"nz-col",3)(8,"button",4),e.NdJ("click",function(){return m.onShowMgrClick$.next()}),e._UZ(9,"span",5),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e._uU(12," Manager "),e.qZA()(),e.YNc(13,$l,4,6,"nz-col",6),e.ALo(14,"ngrxPush"),e.qZA(),e.YNc(15,wn,3,3,"ng-container",7),e.YNc(16,Ho,2,3,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(17);e.Q6J("nzGutter",e.DdM(32,Wc)),e.xp6(2),e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",m.props.placeholder)("cvcResults",e.lcZ(3,18,m.result$))("cvcOptions",e.lcZ(4,20,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled)("cvcLoading",e.lcZ(5,22,m.isLoading$))("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngClass",e.WLB(33,Xs,e.lcZ(10,26,m.showMgr$),!e.lcZ(11,28,m.showMgr$)))("nzType","caret-right"),e.xp6(4),e.Q6J("ngIf",e.lcZ(14,30,m.showMgr$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.mk,M.sg,M.O5,Oo,Po.J,R.eJ,Vn.ix,Zo.w,Ko.dQ,pe.t3,pe.SK,st.Ls,Qr,R.fM],styles:[".manager-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}.manager-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}"],changeDetection:0}),u})();var Vr=a(821);let lr=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,st.PV,wt.X,Ye.cg,me.ZJ,Ve.s,$e.x]}),u})(),ea=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,wt.X,me.ZJ,Xn.$6,st.PV,Ye.cg,Ve.s,lr]}),u})();const Zc={types:[{name:"evidence-select",wrappers:["form-field"],component:ts},{name:"evidence-multi-select",wrappers:["form-field"],component:ts,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let ta=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Be,Vr.M,ea,Un,lr,$e.x,xn.y,Ve.s,Wn,v.X0.forChild(Zc),t.u5,Vn.sL,In.vh,Jt.Wr,Hn.b1,s.U5,pe.Jb,st.PV,je.o7,Gn.Zf,Xn.$6,Zn.HQ,wt.X,Ye.cg,me.ZJ]}),u})();const Xu=["optionTemplates"];function Kc(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",9),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c.geneAliases.join(", "))("innerHtml",e.xi3(3,2,c.geneAliases.join(", "),m),e.oJD)}}function er(u,y){1&u&&e._uU(0,"--")}function Wr(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,Kc,4,5,"ng-container",7),e.YNc(3,er,1,0,"ng-template",null,8,e.W1O),e.qZA()),2&u){const c=e.MAs(4),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(2),e.Q6J("ngIf",m.geneAliases.length>0)("ngIfElse",c)}}function na(u,y){1&u&&(e.ynx(0),e.YNc(1,Wr,5,5,"ng-template",null,4,e.W1O),e.BQk())}function As(u,y){if(1&u&&(e.ynx(0),e.YNc(1,na,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Zr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",10)(1,"cvc-entity-tag",11),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Gene:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Jc=kt(at(),oi());let xa=(()=>{class u extends Jc{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{label:"Gene",placeholder:"Search Genes",isMultiSelect:!1,entityName:{singular:"Gene",plural:"Genes"},description:"Entrez Gene Symbol"}}}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent})}getTypeaheadVarsFn(c){return{entrezSymbol:c}}getTypeaheadResultsFn(c){return c.data.geneTypeahead}getTagQueryVarsFn(c){return{geneId:c}}getTagQueryResultsFn(c){return c.data.gene}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.czh),e.Y36(Fn.HwR),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-gene-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Xu,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:17,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcResults","cvcOptions","cvcShowError","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcSelectComponent",function(Ae){return m.selectComponent=Ae})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,As,3,3,"ng-container",1),e.YNc(5,Zr,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcPlaceholder",m.props.placeholder)("cvcEntityName",m.props.entityName)("cvcResults",e.lcZ(1,11,m.result$))("cvcOptions",e.lcZ(2,13,m.selectOption$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(3,15,m.isLoading$)),e.xp6(4),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,Ye.SY,me.ZU,Oo,Po.J,R.fM,J.A],changeDetection:0}),u})();const qc={types:[{name:"gene-select",wrappers:["form-field"],component:xa},{name:"gene-multi-select",wrappers:["form-field"],component:xa,defaultOptions:{props:{label:"Genes",isMultiSelect:!0}}}]};let Xc=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(qc),Xt.L,Vn.sL,Ne.LV,st.PV,je.o7,Ye.cg,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x]}),u})();const Da=["optionTemplates"];function Oa(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function wa(u,y){1&u&&(e.ynx(0),e.YNc(1,Oa,1,1,"ng-template",null,3,e.W1O),e.BQk())}function Pa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const oc={COMBINATION:"Therapies specified were used as part of a combination therapy approach",SEQUENTIAL:"Therapies specified were used at separate timepoints in the same treatment plan",SUBSTITUTES:"Therapies specified are often considered to be of the same family, or behave similarly in a treatment setting"},Ia=kt(at(),Ot()),Aa={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends Ia{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Therapy Interaction",placeholder:"Select Therapy Interaction",requireMultipleTherapies:!0,requireMultipleTherapiesPromptFn:()=>"A single associated therapy does not have an Interaction type",tooltip:"Characterizes the interaction of a multi-therapy treatment",extraType:"prompt"}},this.interactionEnum$=new ct.X([]),this.placeholder$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.interactionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void this.placeholder$.next("ERROR: Form state not found");this.placeholder$.next(this.props.placeholder),this.state.enums.interaction$?(this.state.enums.interaction$.pipe((0,ve.t)(this)).subscribe(c=>{this.interactionEnum$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m))),this.onTherapies$=this.state.fields.therapyIds$,this.optionTemplates||console.warn(`${this.field.id} could not find state's fields.therapyIds$ to handle its required & disabled states.`),this.onTherapies$.pipe((0,ve.t)(this)).subscribe(c=>{c&&0!=c.length?1==c.length?(this.props.description="A single associated therapy does not have an Interaction type",this.props.disabled=!0,this.props.required=!1,void 0!==this.formControl.value&&this.formControl.setValue(void 0)):(this.props.description="Select an Interaction Type",this.props.disabled=!1,this.props.required=!0):(this.props.disabled=!0,this.props.required=!1,this.props.description="Interaction type is not applicable when no therapies are selected.",void 0!==this.formControl.value&&this.formControl.setValue(void 0)),this.cdr.markForCheck()}),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.description=oc[c],this.props.extraType="description"):this.props.extraType="prompt"})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Da,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,wa,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,Pa,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.interactionEnum$))}},dependencies:[M.sg,K,mt,R.fM]}),u})()}]};let tl=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Aa),Bt,De,Be]}),u})();var nl=a(8004);const ol=["optionTemplates"];function ic(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"enumTooltip"),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c),e.xp6(1),e.hij(" - ",e.xi3(4,2,c,"evidenceLevelBrief")," ")}}function B(u,y){1&u&&(e.ynx(0),e.YNc(1,ic,5,5,"ng-template",null,3,e.W1O),e.BQk())}function X(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",7),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"enumTooltip"),e.qZA()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c.nzValue),e.xp6(1),e.hij(" - ",e.xi3(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function x(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.ALo(2,"enumTooltip"),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,c.nzValue,"evidenceLevelBrief")," ")}}function ce(u,y){if(1&u&&(e.TgZ(0,"div",4),e.YNc(1,X,5,5,"nz-tag",5),e.YNc(2,x,3,4,"ng-container",6),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const Ie=new Map([[Fn.Sx0.A,"Evidence shows consensus association in human medicine"],[Fn.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[Fn.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[Fn.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[Fn.Sx0.E,"Evidential association is inferential or indirect"]]),ht=kt(at(),Ot());let _t=(()=>{class u extends ht{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level"}},this.levelEnum$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.props.tooltip="Type of study performed to produce the evidence statement",this.placeholder$=new ct.X(this.props.placeholder),this.levelEnum$.next((0,To.o6)(Fn.Sx0).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m))),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{this.props.description=c?Ie.get(c):void 0})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-level-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(ol,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,B,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,ce,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.levelEnum$))}},dependencies:[M.sg,M.O5,wt.j,K,R.fM,nl.v]}),u})();const an={types:[{name:"level-select",wrappers:["form-field"],component:_t},{name:"level-multi-select",wrappers:["form-field"],component:_t,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let An=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(an),wt.X,Ve.s,Bt,De]}),u})();var ro,io=a(6928);let Yo=((ro=class{constructor(y){this.el=y,this.domChange=new e.vpe,this.changes=new MutationObserver(c=>{(0,eo.D)(c).pipe((0,Zt.U)(m=>{const G=m.target;return"class"===m.attributeName?{type:"class",change:G.classList.value,key:`${m.attributeName}:${G.classList.value}`}:"disabled"===m.attributeName?{type:"disabled",change:G.disabled,key:`${m.attributeName}:${G.disabled}`}:"hidden"===m.attributeName?{type:"hidden",change:G.hidden,key:`${m.attributeName}:${G.hidden}`}:{type:m.attributeName,change:"unknown change type",key:`${m.attributeName}:unknown-change-type`}}),$("key"),(0,ve.t)(this)).subscribe(m=>{this.domChange.emit(m)})}),this.changes.observe(this.el.nativeElement,{attributeFilter:["class","disabled","hidden"],attributes:!0,childList:!1,subtree:!1})}ngAfterViewInit(){this.initialClass=this.el.nativeElement.classList.value}ngOnDestroy(){this.changes.disconnect()}}).\u0275fac=function(y){return new(y||ro)(e.Y36(e.SBq))},ro.\u0275dir=e.lG2({type:ro,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}}),ro);Yo=(0,Ce.gn)([(0,ve.c)()],Yo);var Kr,wi=a(951);function Br(u,y){if(1&u&&(e.TgZ(0,"button",2),e._uU(1),e.qZA()),2&u){const c=y.ngrxLet,m=e.oxw();e.Q6J("disabled",!m.form.valid)("nzTooltipTrigger",c?"hover":null)("nzTooltipTitle","For "+(null==c?null:c.name)),e.xp6(1),e.hij(" ",m.props.submitLabel,"\n")}}let zr=((Kr=class extends v.fS{constructor(y,c,m){super(),this.viewerService=y,this.cdr=c,this.apollo=m,this.menuSelection$=new Xe.x,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,Cn.j)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,Cn.j)("mostRecentOrg")),this.isDisabled$=new Xe.x,this.isHidden$=new Xe.x,this.buttonClass$=new ct.X(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,it.M)(this.viewer$)).subscribe(([G,Ae])=>{const Dt={id:`User:${Ae.id}`,fragment:_o.Ps` + fragment UserMostRecentOrgId on User { + mostRecentOrganizationId + } + `,data:{mostRecentOrganizationId:G}};this.apollo.client.writeFragment(Dt)}),this.formUpdate$=new ct.X(this.form.status);const y=this.form.statusChanges.subscribe(G=>this.formUpdate$.next(G)),c=this.formUpdate$.subscribe(G=>this.cdr.detectChanges()),m=this.mostRecentOrg$.pipe((0,Cn.j)("id"),(0,qe.h)(xo.ep)).subscribe(G=>{this.formControl.setValue(G)});this.subscriptions=this.subscriptions.concat([y,c,m])}ngAfterViewInit(){if(this.button&&this.button.domChange){const y=this.button.domChange.subscribe(c=>{"class"===c.type&&"string"==typeof c.change?this.buttonClass$.next(`${this.baseButtonClass} ${c.change}`):"disabled"===c.type&&"boolean"==typeof c.change?this.isDisabled$.next(c.change):"hidden"===c.type&&"boolean"==typeof c.change&&this.isHidden$.next(c.change)});this.subscriptions.push(y)}}}).\u0275fac=function(y){return new(y||Kr)(e.Y36(wi.a),e.Y36(e.sBO),e.Y36(_o._M))},Kr.\u0275cmp=e.Xpm({type:Kr,selectors:[["cvc-org-submit-button"]],viewQuery:function(y,c){if(1&y&&e.Gf(Yo,5),2&y){let m;e.iGM(m=e.CRH())&&(c.button=m.first)}},features:[e.qOj],decls:2,vars:3,consts:[["type","hidden",3,"formControl","formlyAttributes"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle",4,"ngrxLet"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle"]],template:function(y,c){1&y&&(e._UZ(0,"input",0),e.YNc(1,Br,2,4,"button",1)),2&y&&(e.Q6J("formControl",c.formControl)("formlyAttributes",c.field),e.xp6(1),e.Q6J("ngrxLet",c.mostRecentOrg$))},dependencies:[t.Fj,t.JJ,t.oH,R.eJ,v.JD,Vn.ix,Zo.w,Ko.dQ,Ye.SY,Yo],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:first-child:not(:last-child){border-right-color:#ff4d4f}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:hover, [_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:focus{border-right-color:#fd7978}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:-2px 6px 0;border:1px solid rgba(255,255,255,.3);background-color:#ffffffe6}.org-dropdown-btn.ant-btn-dangerous[_ngcontent-%COMP%]:last-child:not(:first-child), .org-dropdown-btn[_ngcontent-%COMP%] .ant-btn-dangerous[_ngcontent-%COMP%] + .ant-btn-dangerous[_ngcontent-%COMP%]{border-left-color:#fd7978}"],changeDetection:0}),Kr);zr=(0,Ce.gn)([(0,ve.c)({arrayName:"subscriptions"})],zr);const Bi={types:[{name:"org-submit-button",component:zr}]};let Tr=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Bi),st.PV,io.Rt,Vn.sL,Hn.b1,Ye.cg]}),u})();const Ul=["optionTemplates"];function jl(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function Gl(u,y){1&u&&(e.ynx(0),e.YNc(1,jl,1,1,"ng-template",null,3,e.W1O),e.BQk())}function oa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Fs=new Map([[Fn.huM.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."],[Fn.huM.RareGermline,"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."],[Fn.huM.CommonGermline,"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."],[Fn.huM.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[Fn.huM.Unknown,"The variant origin is uncertain based on the available evidence."],[Fn.huM.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),rc=kt(at(),Ot());let e1=(()=>{class u extends rc{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Variant Origin",required:!1,isMultiSelect:!1,placeholder:"Select Variant Origin",tooltip:"Identifies whether the variant is inherited (germline mutation) or acquired (somatic mutation) in the context of the study"}},this.originEnum$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(Fs.keys()))}configureStateConnections(){this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m))),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{this.props.description=c?Fs.get(c):void 0})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Ul,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:6,vars:13,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.YNc(2,Gl,3,0,"ng-container",1),e.ALo(3,"ngrxPush"),e.YNc(4,oa,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(5);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",m.props.placeholder)("cvcCustomTemplate",G)("cvcOptions",e.lcZ(1,9,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,11,m.originEnum$))}},dependencies:[M.sg,K,mt,R.fM]}),u})();const il={types:[{name:"origin-select",wrappers:["form-field"],component:e1},{name:"origin-multi-select",wrappers:["form-field"],component:e1,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let Ql=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(il),Bt,De,Be]}),u})();const t1=["optionTemplates"];function rl(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",8),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.hpoId,m),e.oJD)}}function pd(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,rl,4,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.hpoId)}}function hd(u,y){1&u&&(e.ynx(0),e.YNc(1,pd,3,4,"ng-template",null,4,e.W1O),e.BQk())}function Wl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,hd,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function sc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",9)(1,"cvc-entity-tag",10),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Phenotype:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Zl=kt(at(),oi());let ms=(()=>{class u extends Zl{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Phenotype",plural:"Phenotypes"},isMultiSelect:!1,requireType:!0,tooltip:"Phenotype or phenotype combination which interacts with the specified variant",placeholders:{default:"Search Phenotypes",multiDefault:"Select Phenotype(s) (max MULTI_MAX)",requireTypePrompt:"Select an ENTITY_NAME Type to search Phenotypes"},description:'Please provide any HPO phenotypes, including age of onset.',extraType:"description"}},this.placeholder$=new ct.X(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.phenotypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.phenotype}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.zOE),e.Y36(Fn.z_7),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(t1,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,Wl,3,3,"ng-container",1),e.YNc(7,sc,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresPhenotype$&&!e.lcZ(4,18,m.onRequiresPhenotype$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,me.ZU,Oo,Po.J,R.fM,J.A],changeDetection:0}),u})();const ac={types:[{name:"phenotype-select",wrappers:["form-field"],component:ms,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:ms,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let cc=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ac),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x]}),u})();var Kl=a(6028),sl=a(2438),Fa=a(9773),Jl=a(874),Jr=a(9087),ia=a(7754),Na=a(9388);const lc=["nz-rate-item",""];function uc(u,y){}function dc(u,y){}function al(u,y){1&u&&e._UZ(0,"span",4)}const n1=function(u){return{$implicit:u}},o1=["ulElement"];function r1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",3)(1,"div",4),e.NdJ("itemHover",function(G){const Dt=e.CHM(c).index,Mn=e.oxw();return e.KtG(Mn.onItemHover(Dt,G))})("itemClick",function(G){const Dt=e.CHM(c).index,Mn=e.oxw();return e.KtG(Mn.onItemClick(Dt,G))}),e.qZA()()}if(2&u){const c=y.index,m=e.oxw();e.Q6J("ngClass",m.starStyleArray[c]||"")("nzTooltipTitle",m.nzTooltips[c]),e.xp6(1),e.Q6J("allowHalf",m.nzAllowHalf)("character",m.nzCharacter)("index",c)}}let ql=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.vpe,this.itemClick=new e.vpe}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:lc,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,m){if(1&c&&(e.TgZ(0,"div",0),e.NdJ("mouseover",function(Ae){return m.hoverRate(!1),Ae.stopPropagation()})("click",function(){return m.clickRate(!1)}),e.YNc(1,uc,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"div",2),e.NdJ("mouseover",function(Ae){return m.hoverRate(!0),Ae.stopPropagation()})("click",function(){return m.clickRate(!0)}),e.YNc(3,dc,0,0,"ng-template",1),e.qZA(),e.YNc(4,al,1,0,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",m.character||G)("ngTemplateOutletContext",e.VKq(4,n1,m.index)),e.xp6(2),e.Q6J("ngTemplateOutlet",m.character||G)("ngTemplateOutletContext",e.VKq(6,n1,m.index))}},dependencies:[M.tP,st.Ls],encapsulation:2,changeDetection:0}),(0,Ce.gn)([(0,ia.yF)()],u.prototype,"allowHalf",void 0),u})(),pc=(()=>{class u{get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c),this.hoverValue=Math.ceil(c))}constructor(c,m,G,Ae,Dt,Mn){this.nzConfigService=c,this.ngZone=m,this.renderer=G,this.cdr=Ae,this.directionality=Dt,this.destroy$=Mn,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.vpe,this.nzOnFocus=new e.vpe,this.nzOnHoverChange=new e.vpe,this.nzOnKeyDown=new e.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.isNzDisableFirstChange=!0,this.onChange=()=>null,this.onTouched=()=>null}ngOnChanges(c){const{nzAutoFocus:m,nzCount:G,nzValue:Ae}=c;if(m&&!m.isFirstChange()){const Dt=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(Dt,"autofocus","autofocus"):this.renderer.removeAttribute(Dt,"autofocus")}G&&this.updateStarArray(),Ae&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,Fa.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,Fa.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,sl.R)(this.ulElement.nativeElement,"focus").pipe((0,Fa.R)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,sl.R)(this.ulElement.nativeElement,"blur").pipe((0,Fa.R)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,m){if(this.nzDisabled)return;this.hoverValue=c+1;const G=m?c+.5:c+1;this.nzValue===G?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=G,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,m){this.nzDisabled||this.hoverValue===c+1&&m===this.hasHalf||(this.hoverValue=c+1,this.hasHalf=m,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 m=this.nzValue;c.keyCode===Kl.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),m!==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,m)=>m),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const m="ant-rate-star",G=c+1;return{[`${m}-full`]:Gthis.hoverValue,[`${m}-focused`]:this.hasHalf&&G===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Jl.jY),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Na.Is,8),e.Y36(Jr.kn))},u.\u0275cmp=e.Xpm({type:u,selectors:[["nz-rate"]],viewQuery:function(c,m){if(1&c&&e.Gf(o1,7),2&c){let G;e.iGM(G=e.CRH())&&(m.ulElement=G.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:[e._Bn([Jr.kn,{provide:t.JU,useExisting:(0,e.Gpc)(()=>u),multi:!0}]),e.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,m){1&c&&(e.TgZ(0,"ul",0,1),e.NdJ("keydown",function(Ae){return m.onKeyDown(Ae),Ae.preventDefault()})("mouseleave",function(Ae){return m.onRateLeave(),Ae.stopPropagation()}),e.YNc(2,r1,2,5,"li",2),e.qZA()),2&c&&(e.ekj("ant-rate-disabled",m.nzDisabled)("ant-rate-rtl","rtl"===m.dir),e.Q6J("ngClass",m.classMap)("tabindex",m.nzDisabled?-1:1),e.xp6(2),e.Q6J("ngForOf",m.starArray))},dependencies:[M.mk,M.sg,Ye.SY,ql],encapsulation:2,changeDetection:0}),(0,Ce.gn)([(0,Jl.oS)(),(0,ia.yF)()],u.prototype,"nzAllowClear",void 0),(0,Ce.gn)([(0,Jl.oS)(),(0,ia.yF)()],u.prototype,"nzAllowHalf",void 0),(0,Ce.gn)([(0,ia.yF)()],u.prototype,"nzDisabled",void 0),(0,Ce.gn)([(0,ia.yF)()],u.prototype,"nzAutoFocus",void 0),(0,Ce.gn)([(0,ia.Rn)()],u.prototype,"nzCount",void 0),u})(),La=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[Na.vT,M.ez,st.PV,Ye.cg]}),u})();const ns={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."},Xl=kt(at(),Ot()),ll={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends Xl{constructor(){super(),this.defaultOptions={props:{label:"Evidence Rating",count:5,tooltip:"A representation of the curator's confidence in the quality of the summarized evidence",hoverText:[]}},this.rating$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(ns).map(([c,m])=>{this.props.hoverText.push(m)}),this.rating$.pipe((0,ve.t)(this)).subscribe(c=>{this.formControl.setValue(c)}),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{this.props.description=c?ns[c]:void 0})}configureStateConnections(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-rating"]],features:[e.qOj],decls:2,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","nzCount","nzTooltips","ngModelChange"]],template:function(c,m){1&c&&(e._UZ(0,"input",0),e.TgZ(1,"nz-rate",1),e.NdJ("ngModelChange",function(Ae){return m.rating$.next(Ae)}),e.qZA()),2&c&&(e.Q6J("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.Q6J("ngModel",m.formControl.value)("nzCount",m.props.count)("nzTooltips",m.props.hoverText))},dependencies:[t.Fj,t.JJ,t.oH,t.On,v.JD,pc],styles:["[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0}),u})()}]};let Ns=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,t.u5,v.X0.forChild(ll),La,Ve.s,Bt,De]}),u})();const tu=["optionTemplates"];function ul(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function hc(u,y){1&u&&(e.ynx(0),e.YNc(1,ul,1,1,"ng-template",null,3,e.W1O),e.BQk())}function nu(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const dl={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:{PREDISPOSITION:"Germline variant has predisposing potential for cancer, and may meet select ACMG/AMP criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Germline variant has properties that protect individuals from acquiring cancer."},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:{ONCOGENICITY:"Somatic variant has oncogenic potential for driving cancer, and may meet select ClinGen/CGC/VICC criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Somatic variant has a protective role against cancer."}},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 meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},ONCOGENIC:{ONCOGENIC:"Very strong evidence the variant is oncogenic.",LIKELY_ONCOGENIC:"Strong evidence the variant is oncogenic.",BENIGN:"Very strong evidence the variant does not have oncogenic properties.",LIKELY_BENIGN:"Strong evidence the variant does not have oncogenic properties.",UNCERTAIN_SIGNIFICANCE:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},fc=kt(at(),Ot()),Ls={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends fc{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:m=>`Select ${m?m+" ":""} Significance`,requireTypePromptFn:m=>`Select ${m} Type to select its Significance`,tooltip:"Clinical impact of the variant",formMode:"add"}},this.significanceEnum$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.significanceEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new ct.X("ERROR: Form state not found"));if(this.placeholder$=new ct.X(this.props.placeholderFn(this.state.entityName)),!this.state.enums.significance$)return void console.error(`${this.field.id} could not find form state's enums.significance$ to populate select.`);this.state.enums.significance$.pipe((0,ve.t)(this)).subscribe(m=>{this.significanceEnum$.next(m)}),this.optionTemplates||console.warn(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(m=>m.map(G=>G)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onTypeSelect$=this.state.fields[c],this.onTypeSelect$.pipe((0,Pt.T)("add"===this.props.formMode?0:1),(0,ve.t)(this)).subscribe(m=>{m?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,it.M)(this.onTypeSelect$),(0,ve.t)(this)).subscribe(([m,G])=>{!G||!m||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=dl[this.state.entityName][G][m])})):console.error(`${this.field.id} could not find form state's ${c} to populate Significance options.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(tu,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,hc,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,nu,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.significanceEnum$))}},dependencies:[M.sg,K,mt,R.fM]}),u})()}]};let ks=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Ls),Bt,De,Be]}),u})();var aa,pl=a(7907),gs=a(2666),sa=a(7921);function ou(u,y){1&u&&e._UZ(0,"span",9),2&u&&e.Q6J("nzType","loading")}function s1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ou,1,1,"span",8),e._uU(2,"\xa0 "),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c.showSpinner),e.xp6(3),e.Oqu(c.message)}}function a1(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}function c1(u,y){1&u&&(e.TgZ(0,"button",10),e._uU(1," Add Source "),e.qZA()),2&u&&e.Q6J("disabled",null===y.ngrxLet.citation)}const l1=function(){return[0,0]};let hl=((aa=class{constructor(y,c,m,G,Ae){this.checkCitation=y,this.addRemoteCitation=c,this.errors=m,this.apollo=G,this.cdr=Ae,this.cvcOnCreate=new e.vpe,this.messageOptions={empty:(Dt,Mn)=>`No ${Mn} Source with a citation ID of "${Dt}"`,searchCitation:(Dt,Mn)=>`Searching ${Mn} for a citation ID of "${Dt}"`,foundCitation:(Dt,Mn,kn)=>`Found ${Mn} citation "${kn}" with ID ${Dt}`,noCitation:(Dt,Mn)=>`No ${Mn} Source with a citation ID of "${Dt}" was found`},this.form=new t.nJ({}),this.model={citationId:"",sourceType:Fn.yic.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new Xe.x,this.citationId$=new ct.X(""),this.sourceType$=new ct.X(Fn.yic.Pubmed),this.addSourceStubMutator=new qo.U(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,ve.t)(this)).subscribe(Dt=>{console.log("disease-quick-add form model submitted.",Dt),this.submitSourceStub()})}ngOnInit(){void 0!==this.model.citationId&&void 0!==this.model.sourceType?(this.queryRef=this.checkCitation.watch({citationId:this.model.citationId,sourceType:this.model.sourceType}),this.checkResult$=this.queryRef.valueChanges.pipe((0,Zt.U)(y=>({loading:y.loading,citation:y.data?y.data.remoteCitation:null,model:this.model})),(0,Fo.b)(y=>{this.citationString=y.citation?y.citation:void 0})),this.citationId$.pipe((0,ve.t)(this)).subscribe(y=>{this.model.sourceType&&this.queryRef.refetch({citationId:y,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,Zt.U)(y=>{const c=y.loading,m=y.citation,G=y.model;return c?{message:this.messageOptions.searchCitation(G.citationId,G.sourceType),showSpinner:!0}:c||null===m?c||null!==m?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(G.citationId,G.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(G.citationId,(0,gs.c)(G.sourceType),m),showSpinner:!1}}),(0,sa.O)({message:this.messageOptions.searchCitation(this.model.citationId,this.model.sourceType),showSpinner:!0}))):console.error("source-quick-add provided invalid initial model")}submitSourceStub(){void 0!==this.model.citationId&&void 0!==this.model.sourceType&&(this.mutationState=this.addSourceStubMutator.mutate(this.addRemoteCitation,{input:{citationId:this.model.citationId,sourceType:this.model.sourceType}},{},y=>{if(console.log("source-quick-add submit data callback",y),y.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const c=y.addRemoteCitation.newSource,m=(0,gs.c)(this.model.sourceType),G=this.citationString?this.citationString:"NO CITATION",Ae={query:_o.Ps` + query WriteLocalSource($id: Int!) { + source(id: $id) { + id + name + link + citation + citationId + sourceType + } + } + `,data:{source:{__typename:"Source",id:c.id,name:`${m}: ${G}`,link:`sources/${c.id}`,citation:G,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:c.id}};this.apollo.client.cache.writeQuery(Ae)||console.error("source-quick-add.form Source writeQuery failed.",Ae),setTimeout(()=>{const Mn={id:`Source:${c.id}`,fragment:_o.Ps` + fragment LinkableSource on Source { + id + name + link + } + `},kn=this.apollo.client.cache.readFragment(Mn);null!==kn&&this.cvcOnCreate.next(kn.id)},1e3)}}))}ngOnChanges(y){if(y.cvcSourceType){const c=y.cvcSourceType.currentValue;this.sourceType$.next(c),this.model={...this.model,sourceType:c}}if(y.cvcCitationId){const c=y.cvcCitationId.currentValue;this.citationId$.next(c),this.model={...this.model,citationId:c}}}}).\u0275fac=function(y){return new(y||aa)(e.Y36(Fn.qgP),e.Y36(Fn.LHC),e.Y36(Vo.Y),e.Y36(_o._M),e.Y36(e.sBO))},aa.\u0275cmp=e.Xpm({type:aa,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.TTD],decls:10,vars:11,consts:[[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["success",""],["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled",4,"ngrxLet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(y,c){if(1&y&&(e.YNc(0,s1,5,2,"ng-container",0),e.TgZ(1,"cvc-form-submission-status-display",1),e.YNc(2,a1,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"form",3),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(8,"nz-col",5),e.YNc(9,c1,2,1,"button",7),e.qZA()()()()),2&y){const m=e.MAs(3);e.Q6J("ngrxLet",c.formMessageDisplay$),e.xp6(1),e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(10,l1)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("ngrxLet",c.checkResult$)}},dependencies:[M.O5,t._Y,t.JL,t.sg,R.eJ,v.T7,Vn.ix,Zo.w,Ko.dQ,st.Ls,pe.t3,pe.SK,s.Lr,_i.F],changeDetection:0}),aa);hl=(0,Ce.gn)([(0,ve.c)()],hl);const u1=["optionTemplates"];function ca(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"nz-select",10),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.sourceType$.next(G))}),e.ALo(2,"ngrxPush"),e._UZ(3,"nz-option",11)(4,"nz-option",12)(5,"nz-option",13),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("nzOptionHeightPx",28)("ngModel",e.lcZ(2,2,c.sourceType$))}}function d1(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"PMID:"),e.qZA())}function p1(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"ID:"),e.qZA())}function Ni(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"doi.org/"),e.qZA())}function fl(u,y){if(1&u&&(e.TgZ(0,"nz-col",14),e.ynx(1,15),e.ALo(2,"ngrxPush"),e.YNc(3,d1,2,0,"div",16),e.YNc(4,p1,2,0,"div",16),e.YNc(5,Ni,2,0,"div",16),e.BQk(),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngSwitch",e.lcZ(2,4,c.sourceType$)),e.xp6(2),e.Q6J("ngSwitchCase","PUBMED"),e.xp6(1),e.Q6J("ngSwitchCase","ASCO"),e.xp6(1),e.Q6J("ngSwitchCase","ASH")}}function la(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",19),e.TgZ(1,"span",20),e._uU(2," ID: "),e._UZ(3,"span",21),e.ALo(4,"highlightTypeahead"),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(3),e.Q6J("innerHtml",e.xi3(4,4,c.citationId.toString(),m),e.oJD)}}function iu(u,y){1&u&&(e.ynx(0),e.YNc(1,la,5,7,"ng-template",null,18,e.W1O),e.BQk())}function Mr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,iu,3,0,"ng-container",17),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function ua(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",22)(1,"cvc-entity-tag",23),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Source:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function ml(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-source-quick-add",24),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.qZA()}if(2&u){const c=y.model;e.Q6J("cvcCitationId",c.citationId)("cvcSourceType",c.sourceType)}}function ka(u,y){1&u&&(e.TgZ(0,"button",25),e._uU(1,"Add a New Source"),e.qZA())}const da=function(){return[6,6]},f1=kt(at(),oi());let mc=(()=>{class u extends f1{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.onModel$=new jo.y,this.defaultSourceType=Fn.yic.Pubmed,this.defaultOptions={props:{entityName:{singular:"Source",plural:"Sources"},isMultiSelect:!1,minSearchStrLength:2,tooltip:"PubMed, ASCO, or ASH Abstract Source(s) that support items, statements or descriptions.",placeholders:{default:"Search PubMed, ASCO, and ASH Sources",contextualFn:Ae=>`Search ${Ae} Sources`},extraType:"prompt"}},this.sourceType$=new ct.X(this.defaultSourceType),this.sourceTypeName$=new ct.X((0,gs.c)(this.defaultSourceType)),this.placeholder$=new ct.X(this.defaultOptions.props.placeholders.contextualFn((0,gs.c)(this.defaultSourceType))),this.showTypeSelect$=new jo.y}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:this.sourceType$,typeaheadParamName$:this.sourceTypeName$||void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.showTypeSelect$=this.onValueChange$.pipe((0,Zt.U)(c=>!!(!c||c&&Array.isArray(c)))),this.sourceType$.pipe((0,ve.t)(this)).subscribe(c=>{const m=(0,gs.c)(c);this.sourceTypeName$.next(m),this.placeholder$.next(this.props.placeholders.contextualFn(m))}),this.onModel$=(0,Do.a)([this.sourceType$,this.onSearch$]).pipe((0,Zt.U)(([c,m])=>({citationId:m,sourceType:c})))}getTypeaheadVarsFn(c,m=Fn.yic.Pubmed){return{partialCitationId:c,sourceType:m}}getTypeaheadResultsFn(c){return c.data.sourceTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.source}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.aC3),e.Y36(Fn.BYO),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-source-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(u1,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:21,vars:39,consts:[[3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen","cvcOnSearch","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"nzOptionHeightPx","ngModel","ngModelChange"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcCitationId","cvcSourceType","cvcOnCreate"],["type","button"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0),e.YNc(1,ca,6,4,"nz-col",1),e.ALo(2,"ngrxPush"),e.YNc(3,fl,6,6,"nz-col",2),e.ALo(4,"ngrxPush"),e.TgZ(5,"nz-col",3)(6,"cvc-entity-select",4),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(7,"ngrxPush"),e.ALo(8,"ngrxPush"),e.ALo(9,"ngrxPush"),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e.ALo(12,"ngrxPush"),e.ALo(13,"ngrxPush"),e.qZA()()(),e.YNc(14,Mr,3,3,"ng-container",5),e.YNc(15,ua,2,3,"ng-template",null,6,e.W1O),e.YNc(17,ml,1,2,"ng-template",null,7,e.W1O),e.YNc(19,ka,2,0,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(16),Ae=e.MAs(18);e.Q6J("nzGutter",e.DdM(38,da)),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,20,m.showTypeSelect$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,22,m.showTypeSelect$)),e.xp6(3),e.Q6J("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(7,24,m.placeholder$))("cvcResults",e.lcZ(8,26,m.result$))("cvcOptions",e.lcZ(9,28,m.selectOption$))("cvcParamName",e.lcZ(10,30,m.sourceTypeName$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled)("cvcLoading",e.lcZ(11,32,m.isLoading$))("cvcAddEntity",Ae)("cvcAddEntityModel",e.lcZ(12,34,m.onModel$))("cvcSelectOpen",e.lcZ(13,36,m.selectOpen$)),e.xp6(8),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,M.RF,M.n9,t.JJ,t.On,R.eJ,Ne.Ip,Ne.Vq,pe.t3,pe.SK,me.ZU,Oo,Po.J,hl,R.fM,J.A],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}"],changeDetection:0}),u})();const m1={types:[{name:"source-select",wrappers:["form-field"],component:mc,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:mc,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let vr=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,t.UX,v.X0.forChild(m1),Xt.L,Vn.sL,pl.aF,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,qt.S,wt.X,zn.g,Bt,Un,Ve.s,$e.x]}),u})();function Ra(u){return(()=>{class c extends u{configureStringTagField(){this.onValueChange$?(this.tagLabel$=new Xe.x,this.onValueChange$.pipe((0,ve.t)(this)).subscribe(G=>{this.tagLabel$.next(G?G.toString():void 0)}),this.onTagClose$=new Xe.x,this.onTagClose$.pipe((0,ve.t)(this)).subscribe(G=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})):console.error(`${this.field.id} cannot find onValueChange$ Subject, ensure configureBaseField() has been called before configureDisplayStringTag in its AfterViewInit hook.`)}}return c.\u0275fac=function(){let m;return function(Ae){return(m||(m=e.n5z(c)))(Ae||c)}}(),c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})()}function vs(u,y){}function fd(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",4)(1,"nz-tag",5),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnClose.next(G))}),e.YNc(2,vs,0,0,"ng-template",6),e.qZA()()}if(2&u){const c=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("nzMode",c.cvcMode),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function gl(u,y){}function ru(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",7)(1,"nz-tag",5),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcOnClose.next(G))}),e.YNc(2,gl,0,0,"ng-template",6),e.qZA()()}if(2&u){e.oxw();const c=e.MAs(4);e.xp6(1),e.Q6J("nzMode","closeable"),e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function su(u,y){}function au(u,y){if(1&u&&(e.TgZ(0,"span",8),e.YNc(1,su,0,0,"ng-template",6),e.qZA()),2&u){e.oxw();const c=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function cu(u,y){1&u&&e._UZ(0,"i",11)}function lu(u,y){if(1&u&&(e.YNc(0,cu,1,0,"i",9),e._UZ(1,"span",10),e.ALo(2,"highlightTypeahead")),2&u){const c=e.oxw();e.Q6J("ngIf",!c.cvcLabel),e.xp6(1),e.Q6J("innerHtml",c.cvcLabel?e.xi3(2,2,c.cvcLabel,c.cvcEmphasize):"?STRING?",e.oJD)}}let vl=(()=>{class u{constructor(){this.cvcMode="default",this.cvcContext="default",this.cvcOnClose=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-string-tag"]],inputs:{cvcLabel:"cvcLabel",cvcEmphasize:"cvcEmphasize",cvcMode:"cvcMode",cvcContext:"cvcContext"},outputs:{cvcOnClose:"cvcOnClose"},decls:5,vars:3,consts:[["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],["tagContent",""],[1,"default"],[3,"nzMode","nzOnClose"],[3,"ngTemplateOutlet"],[1,"select-item"],[1,"multi-select-item"],["nz-icon","","nzType","question-circle","nzTheme","outline",4,"ngIf"],[3,"innerHtml"],["nz-icon","","nzType","question-circle","nzTheme","outline"]],template:function(c,m){1&c&&(e.YNc(0,fd,3,2,"span",0),e.YNc(1,ru,3,2,"span",1),e.YNc(2,au,2,1,"span",2),e.YNc(3,lu,3,5,"ng-template",null,3,e.W1O)),2&c&&(e.Q6J("ngIf","default"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","select-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","multi-select-item"===m.cvcContext))},dependencies:[M.O5,M.tP,st.Ls,wt.j,J.A]}),u})();function gc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-string-tag",3),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.tagClosed(Ae))}),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("cvcMode",m.props.disabled?"default":"closeable")("cvcLabel",c)}}const Va=kt(at(),Ra);let vc=(()=>{class u extends Va{constructor(c){super(),this.cdr=c,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return"}},this.tags$=new Xe.x,this.values=new Set}onEnter(c){let m=c.target;m.value&&(this.values.add(m.value),m.value="");let G=Array.from(this.values);this.tags$.next(G),this.formControl.setValue(G)}tagClosed(c){this.values.delete(c);let m=Array.from(this.values);this.tags$.next(m),this.formControl.setValue(m),this.tags$.next(m)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.formControl.value&&Array.isArray(this.formControl.value)&&(this.formControl.value.forEach(c=>this.values.add(c)),this.tags$.next(this.formControl.value),this.cdr.detectChanges())}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-tag-input"]],features:[e.qOj],decls:5,vars:7,consts:[[3,"cvcMode","cvcLabel","cvcOnClose",4,"ngFor","ngForOf"],["nz-input","",3,"disabled","placeholder","keydown.enter"],["hidden","","nz-input","",3,"formControl","formlyAttributes"],[3,"cvcMode","cvcLabel","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"div"),e.YNc(1,gc,1,2,"cvc-string-tag",0),e.ALo(2,"ngrxPush"),e.TgZ(3,"input",1),e.NdJ("keydown.enter",function(Ae){return m.onEnter(Ae)}),e.qZA()(),e._UZ(4,"input",2)),2&c&&(e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,5,m.tags$)),e.xp6(2),e.Q6J("disabled",m.props.disabled)("placeholder",m.props.placeholder),e.xp6(1),e.Q6J("formControl",m.formControl)("formlyAttributes",m.field))},dependencies:[M.sg,t.Fj,t.JJ,t.oH,v.JD,je.Zp,vl,R.fM],changeDetection:0}),u})(),os=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,st.PV,wt.X,Ve.s]}),u})();const uu={types:[{name:"tag-input",wrappers:["form-field"],component:vc},{name:"tag-multi-input",wrappers:["form-field"],component:vc,defaultOptions:{props:{isRepeatItem:!0}}}]};let Ba=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(uu),He.F,je.o7,s.U5,os]}),u})();const du=kt(at()),_c={types:[{name:"textarea",component:(()=>{class u extends du{constructor(){super(...arguments),this.defaultOptions={props:{label:"TEXTAREA!"}}}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.qOj],decls:1,vars:3,consts:[["nz-input","",3,"rows","formControl","formlyAttributes"]],template:function(c,m){1&c&&e._UZ(0,"textarea",0),2&c&&e.Q6J("rows",m.props.rows?m.props.rows:2)("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[t.Fj,t.JJ,t.oH,v.JD,je.Zp],encapsulation:2,changeDetection:0}),u})(),wrappers:["form-field"]}]};let Ha=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(_c),je.o7,Bt]}),u})();var _s;function _l(u,y){1&u&&e._UZ(0,"span",7)}function hu(u,y){1&u&&e._UZ(0,"span",8)}const Rs=function(){return[0,0]},pa={name:void 0};let yc=((_s=class{set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.model=pa,this.form=new t.nJ({}),this.options={},this.onSubmit$=new Xe.x,this.searchString$=new ct.X(void 0),this.queryMutator=new qo.U(this.errors),this.isSubmitting$=new ct.X(!1),this.submitSuccess$=new ct.X(!1),this.submitError$=new ct.X([]),this.addTherapyMutator=new qo.U(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,ve.t)(this)).subscribe(m=>{this.model.name=m}),this.onSubmit$.pipe((0,ve.t)(this)).subscribe(m=>{console.log("therapy-quick-add form model submitted.",m),this.submitTherapy(m)})}submitTherapy(y){if(!y.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let c=this.addTherapyMutator.mutate(this.query,{name:y.name},{},m=>{console.log("therapy-quick-add submit data callback",m),m.addTherapy&&this.cvcOnCreate.next(m.addTherapy.therapy.id)});c.submitSuccess$.pipe((0,ve.t)(this)).subscribe(m=>{console.log("therapy-quick-add submitSuccess$",m),this.submitSuccess$.next(m)}),c.submitError$.pipe((0,ve.t)(this)).subscribe(m=>{console.log("therapy-quick-add submitError$",m),this.submitError$.next(m)}),c.isSubmitting$.pipe((0,ve.t)(this)).subscribe(m=>{this.isSubmitting$.next(m)})}}).\u0275fac=function(y){return new(y||_s)(e.Y36(Fn.Y_K),e.Y36(Vo.Y))},_s.\u0275cmp=e.Xpm({type:_s,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],["nz-icon","","nzType","plus-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","loading","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["nz-icon","","nzType","loading","nzTheme","outline"]],template:function(y,c){1&y&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(4,"nz-col",2)(5,"button",4),e.YNc(6,_l,1,0,"span",5),e.ALo(7,"ngrxPush"),e.YNc(8,hu,1,0,"span",6),e.ALo(9,"ngrxPush"),e._uU(10," Create Therapy\xa0"),e.TgZ(11,"i"),e._uU(12),e.ALo(13,"ngrxPush"),e.qZA()()()()()),2&y&&(e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(16,Rs)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(1),e.Q6J("ngIf",!e.lcZ(7,10,c.isSubmitting$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(9,12,c.isSubmitting$)),e.xp6(4),e.Oqu(e.lcZ(13,14,c.searchString$)))},dependencies:[M.O5,t._Y,t.JL,t.sg,v.T7,Vn.ix,Zo.w,Ko.dQ,st.Ls,pe.t3,pe.SK,R.fM],encapsulation:2,changeDetection:0}),_s);yc=(0,Ce.gn)([(0,ve.c)()],yc);const g1=["optionTemplates"];function yl(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"NCIt ID:"),e.qZA(),e._UZ(3,"span",9),e.ALo(4,"highlightTypeahead"),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(3),e.Q6J("innerHtml",e.xi3(4,1,c.ncitId,m),e.oJD)}}function fu(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"Aliases: "),e.qZA(),e.TgZ(3,"em"),e._UZ(4,"span",10),e.ALo(5,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(4),e.Q6J("nzTooltipTitle",c.therapyAliases.join(", "))("innerHtml",e.xi3(5,2,c.therapyAliases.join(", "),m),e.oJD)}}function v1(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",6),e.TgZ(1,"span",7),e.YNc(2,yl,5,4,"ng-container",8),e.YNc(3,fu,6,5,"ng-container",8),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.ncitId),e.xp6(1),e.Q6J("ngIf",c.therapyAliases.length>0)}}function mu(u,y){1&u&&(e.ynx(0),e.YNc(1,v1,4,5,"ng-template",null,5,e.W1O),e.BQk())}function gu(u,y){if(1&u&&(e.ynx(0),e.YNc(1,mu,3,0,"ng-container",4),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Cl(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",11)(1,"cvc-entity-tag",12),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Therapy:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function Ya(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-therapy-quick-add-form",13),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.qZA()}2&u&&e.Q6J("cvcSearchString",y.$implicit)}const zl=kt(at(),oi());let Tl=(()=>{class u extends zl{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Therapy",plural:"Therapies"},isMultiSelect:!1,requireType:!0,tooltip:"Therapy or therapy combination which interacts with the specified variant",placeholder:"Search Therapies",requireTypePromptFn:(Ae,Dt)=>`Select an ${Ae} Type to search associated Therapies`}},this.placeholder$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresTherapy$?this.onRequiresTherapy$=this.state.requires.requiresTherapy$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresTherapy$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholder),this.onRequiresTherapy$&&this.onEntityType$&&(0,Do.a)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,j.x)(),(0,ve.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ie.E)(m)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&(this.resetField(),console.log("HERE2"))})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.therapyTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.therapy}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.cIw),e.Y36(Fn.sjj),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(g1,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:12,vars:26,consts:[[3,"cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addTherapy",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA(),e.YNc(7,gu,3,3,"ng-container",1),e.YNc(8,Cl,2,3,"ng-template",null,2,e.W1O),e.YNc(10,Ya,1,1,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(9),Ae=e.MAs(11);e.Q6J("cvcAddEntity",Ae)("cvcCustomTemplate",G)("cvcDisabled",m.onRequiresTherapy$&&!e.lcZ(1,14,m.onRequiresTherapy$))("cvcEntityName",m.props.entityName)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcLoading",e.lcZ(2,16,m.isLoading$))("cvcOptions",e.lcZ(3,18,m.selectOption$))("cvcPlaceholder",e.lcZ(4,20,m.placeholder$))("cvcResults",e.lcZ(5,22,m.result$))("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcShowError",m.showError)("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,Ye.SY,me.ZU,Oo,Po.J,yc,R.fM,J.A],changeDetection:0}),u})();const Ml={types:[{name:"therapy-select",wrappers:["form-field"],component:Tl,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:Tl,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let _1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Ml),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x]}),u})();const bl=["optionTemplates"];function y1(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function vu(u,y){1&u&&(e.ynx(0),e.YNc(1,y1,1,1,"ng-template",null,3,e.W1O),e.BQk())}function _u(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Cc={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."},C1=kt(at(),Ot()),zc={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends C1{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"ENTITY_NAME Type",entityName:{singular:"Entity",plural:"Entities"},placeholder:"Select an ENTITY_NAME Type",isMultiSelect:!1}},this.typeEnums$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.description=Cc[c],this.props.extraType="description"):(this.props.description=void 0,this.props.extraType=void 0)}),this.state?(this.props.placeholder=this.props.placeholder.replace("ENTITY_NAME",this.state.entityName),this.props.label=this.props.label.replace("ENTITY_NAME",this.state.entityName),this.props.tooltip=`Type of clinical outcome associated with the ${this.state.entityName} statement.`,this.state.enums.entityType$?(this.state.enums.entityType$.pipe((0,ve.t)(this)).subscribe(c=>{this.typeEnums$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m))),this.configureEnumSelect()):console.error(`${this.field.id} could not find state's enums.inputEnum$ to populate its select options.`)):console.error(`${this.field.id} requires a form state to configure itself, none was found.`)}configureEnumSelect(){this.configureEnumSelectField({optionEnum$:this.typeEnums$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-type-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(bl,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:6,vars:13,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.YNc(2,vu,3,0,"ng-container",1),e.ALo(3,"ngrxPush"),e.YNc(4,_u,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(5);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",m.props.placeholder)("cvcCustomTemplate",G)("cvcOptions",e.lcZ(1,9,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,11,m.typeEnums$))}},dependencies:[M.sg,mt,K,R.fM],changeDetection:0}),u})()}]};let z1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(zc),Bt,Be,De]}),u})();var T1=a(6973);function yu(u,y){const c="object"==typeof y;return new Promise((m,G)=>{let Dt,Ae=!1;u.subscribe({next:Mn=>{Dt=Mn,Ae=!0},error:G,complete:()=>{Ae?m(Dt):c?m(y.defaultValue):G(new T1.K)}})})}const Sl={isDefaultCol:u=>"default"===u.type,isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},bc=u=>void 0!==u.sort,is=u=>void 0!==u.filter,ha={diseases:Fn.pP7.DiseaseName,gene:Fn.pP7.EntrezSymbol,therapies:Fn.pP7.TherapyName,variant:Fn.pP7.VariantName},$a={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",gene:"entrezSymbol",aliases:"variantAlias"},Or=["selected","id"];class Tu{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{key:"id",label:"ID",hidden:!0,type:"hidden",width:"0px"},{key:"variant",label:"Variant",type:"entity-tag",width:"215px",context:"variant",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0,truncateLabel:"200px"},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"Filter Variant Name",value:null}]}},{key:"aliases",label:"Aliases",type:"default",width:"150px",objectKey:"name",sort:{},filter:{inputType:"default",options:[{key:"Filter Aliases",value:null}]}},{key:"gene",label:"Gene",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Gene Name",value:null}]}},{key:"diseases",label:"Diseases",type:"entity-tag",width:"250px",sort:{},tag:{maxTags:1,truncateLabel:"175px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(y,c){return y.getValues().map(G=>({text:(0,ie.E)(G),value:G,byDefault:c===G}))}configureColumnStreams(y){return y.forEach(c=>{const m=c;if(bc(m)&&(m.sort.changes=new ct.X({key:m.key,value:m.sort.default??null}),this.sortStreams.push(m.sort.changes)),is(m)){const G=m.filter.options.find(Ae=>Ae.byDefault)?.value;m.filter.changes=new ct.X({key:m.key,value:G??null}),this.filterStreams.push(m.filter.changes)}}),y}}var Vs;let Ec=((Vs=class{set cvcTableScrollerToIndex(y){void 0!==y&&this.scrollToIndex(y)}set cvcTableScrollerToOffset(y){void 0!==y&&this.scrollToIndex(y)}constructor(y){this.host=y,this.cvcTableScrollerOnScroll=new e.vpe,this.cvcTableScrollerOnFetch=new e.vpe,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,yn.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Mi.p)(this.onScrollThrottleTime,bi.z,{leading:!0,trailing:!0}),(0,Fo.b)(y=>this.cvcTableScrollerOnScroll.next("scroll")),(0,yo.b)(this.onScrollDebounceTime),(0,ve.t)(this)).subscribe(y=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,Zt.U)(y=>this.viewport.measureScrollOffset("bottom")),(0,Qn.G)(),(0,qe.h)(([y,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(y){const c=this.cvcTableScrollerQueryRef;if(!y&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(y&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(y&&c){const[m,G,Ae]=[this.cvcTableScrollerFetchCount,y.hasNextPage,y.endCursor];if(!m||!Ae)throw new Error("table-scroll PageInfo invalid.");if(!G)return;this.cvcTableScrollerOnFetch.next({first:m,after:Ae})}}scrollToIndex(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");m.scrollToIndex(y)}scrollToOffset(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");m.scrollToOffset(y)}}).\u0275fac=function(y){return new(y||Vs)(e.Y36(Zn.N8))},Vs.\u0275dir=e.lG2({type:Vs,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}}),Vs);function El(u,y){1&u&&e._UZ(0,"span",8)}function xc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Ae=e.oxw();return G.value="",e.KtG(Ae.cvcModelChange.next(null))}),e.qZA()}}function Mu(u,y){if(1&u&&(e.YNc(0,El,1,0,"span",6),e.YNc(1,xc,1,0,"span",7)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function bu(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",2)(2,"input",3,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcModelChange.next(G))}),e.qZA()(),e.YNc(4,Mu,2,2,"ng-template",null,5,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw();e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.cvcPlaceholder)("ngModel",m.cvcModel)}}function Su(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",10)(1,"nz-input-number",11,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.cvcModelChange.next(""===G?null:G))}),e.qZA()()}if(2&u){const c=e.oxw();let m;e.xp6(1),e.Q6J("nzPlaceHolder",null!==(m=c.cvcPlaceholder)&&void 0!==m?m:"")("ngModel",c.cvcModel)("nzMin",1)("nzStep",1)}}Ec=(0,Ce.gn)([(0,ve.c)()],Ec);let Eu=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.vpe,this.cvcInputType="default"}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","ngModelChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"]],template:function(c,m){if(1&c&&(e.YNc(0,bu,6,3,"ng-container",0),e.YNc(1,Su,3,4,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf","default"===m.cvcInputType)("ngIfElse",G)}},dependencies:[M.O5,t.Fj,t.JJ,t.On,Zo.w,st.Ls,je.Zp,je.gB,je.ke,Gn._V,Gn.Rb]}),u})();function S1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",5),e.NdJ("click",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.cvcOptionChange.next({key:Dt.cvcColumnKey,value:Ae.value}))}),e._UZ(1,"cvc-attribute-tag",6),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("nzSelected",(null==m.cvcOption?null:m.cvcOption.value)===c.value),e.xp6(1),e.Q6J("cvcFullWidth",!0)("cvcChecked",(null==m.cvcOption?null:m.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let xu=(()=>{class u{constructor(){this.cvcOptionChange=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"nzSelected","click"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(c,m){1&c&&(e.TgZ(0,"ul",0),e.YNc(1,S1,2,4,"li",1),e.TgZ(2,"li",2)(3,"button",3),e.NdJ("click",function(){return m.cvcOptionChange.next({key:m.cvcColumnKey,value:null})}),e._UZ(4,"span",4),e._uU(5," Reset "),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("ngForOf",m.cvcFilterOptions),e.xp6(2),e.Q6J("disabled",null===(null==m.cvcOption?null:m.cvcOption.value)))},dependencies:[M.sg,mt,Vn.ix,Zo.w,Ko.dQ,st.Ls,Ds.wO,Ds.r9],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0}),u})();var Pi;function Dc(u,y){if(1&u&&e._UZ(0,"th",14),2&u){const c=y.ngIf;let m;e.Q6J("nzShowCheckbox",c.checkbox.th.showCheckbox||!1)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function xl(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",15),e.NdJ("nzSortOrderChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.sort.changes.next({key:Dt.key,value:G}))}),e.ALo(1,"ngrxPush"),e.TgZ(2,"span",16),e._uU(3),e.qZA()()}if(2&u){const c=y.ngIf;let m,G;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",void 0!==c.sort)("nzSortFn",!0)("nzSortOrder",(null==(G=e.lcZ(1,10,c.sort.changes))?null:G.value)||null),e.xp6(2),e.Q6J("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Oc(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function qi(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function fa(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Dl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Dc,1,5,"th",11),e.ALo(2,"guardType"),e.YNc(3,xl,4,12,"th",12),e.ALo(4,"guardType"),e.YNc(5,Oc,2,7,"th",13),e.ALo(6,"guardType"),e.YNc(7,qi,2,7,"th",13),e.ALo(8,"guardType"),e.YNc(9,fa,2,7,"th",13),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function C(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Dl,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function vt(u,y){if(1&u&&(e.TgZ(0,"th",22),e._uU(1," \xa0 "),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function le(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-table-filter-input",25),e.NdJ("cvcModelChange",function(G){const Dt=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Dt.changes.next({key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function qp(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,le,1,3,"cvc-variant-table-filter-input",24),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function vd(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",26,27),e.NdJ("nzSortOrderChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.sort.changes.next({key:Dt.key,value:G}))}),e.ALo(2,"ngrxPush"),e.TgZ(3,"nz-filter-trigger",28,29),e.ALo(5,"ngrxPush"),e._UZ(6,"span",30),e.qZA(),e.TgZ(7,"nz-dropdown-menu",null,31)(9,"cvc-variant-enum-filter-menu",32),e.NdJ("cvcOptionChange",function(G){const Dt=e.CHM(c).ngIf,Mn=e.MAs(4);return Dt.filter.changes.next(G),e.KtG(Mn.nzVisible=!1)}),e.ALo(10,"ngrxPush"),e.qZA()()()}if(2&u){const c=y.ngIf,m=e.MAs(8);let G,Ae,Dt;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(Ae=e.lcZ(2,15,c.sort.changes))?null:Ae.value)||null)("nzShowFilter",void 0!==c.filter)("nzFilterFn",!0),e.xp6(3),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Dt=e.lcZ(5,17,c.filter.changes))?null:Dt.value)),e.xp6(6),e.Q6J("cvcColumnKey",c.key)("cvcFilterOptions",c.filter.options)("cvcOption",e.lcZ(10,19,c.filter.changes))}}function qd(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",33,27)(2,"nz-filter-trigger",28),e.ALo(3,"ngrxPush"),e._UZ(4,"span",34),e.qZA(),e.TgZ(5,"nz-dropdown-menu",null,35)(7,"div",36)(8,"div",37)(9,"cvc-variant-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Dt=e.CHM(c).ngIf;return e.KtG(Dt.filter.changes.next({key:Dt.key,value:G}))}),e.qZA()()()()()}if(2&u){const c=y.ngIf,m=e.MAs(6);let G,Ae;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzFilterFn",!0),e.xp6(2),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Ae=e.lcZ(3,10,c.filter.changes))?null:Ae.value)),e.xp6(7),e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function _d(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Dt=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Dt.changes.next({key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function Xp(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,_d,1,2,"cvc-variant-table-filter-input",39),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function Xd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,vt,2,5,"th",18),e.ALo(2,"guardType"),e.YNc(3,qp,2,6,"th",19),e.ALo(4,"guardType"),e.YNc(5,vd,11,21,"th",20),e.ALo(6,"guardType"),e.YNc(7,qd,10,12,"th",21),e.ALo(8,"guardType"),e.YNc(9,Xp,2,6,"th",19),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function E1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Xd,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function Du(u,y){if(1&u&&(e.TgZ(0,"thead")(1,"tr",7),e.YNc(2,C,2,1,"ng-container",8),e.qZA(),e.TgZ(3,"tr",9),e.YNc(4,E1,2,1,"ng-container",8),e.qZA()()),2&u){const c=y.ngrxLet;e.xp6(2),e.Q6J("ngForOf",c),e.xp6(2),e.Q6J("ngForOf",c)}}function ep(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"td",45),e.NdJ("nzCheckedChange",function(G){e.CHM(c);const Ae=e.oxw(3).$implicit,Dt=e.oxw(2);return e.KtG(Dt.onRowSelected$.next({id:Ae.id,selected:G}))}),e.qZA()}if(2&u){const c=y.ngIf,m=e.oxw(3).$implicit;let G;e.Q6J("nzChecked",m.selected)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function wc(u,y){1&u&&e.GkF(0)}const Ol=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function tp(u,y){if(1&u&&(e.ynx(0),e.YNc(1,wc,1,0,"ng-container",51),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw().ngIf,m=e.oxw().ngIf,G=e.MAs(3),Ae=e.MAs(5),Dt=e.oxw(3).$implicit;let Mn;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,Dt[c])?G:Ae)("ngTemplateOutletContext",e.kEZ(6,Ol,Dt[c],m,null==(Mn=e.lcZ(3,4,m.filter.changes))?null:Mn.value))}}function yd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,tp,4,10,"ng-container",50),e.BQk()),2&u){const c=y.ngIf;e.oxw();const m=e.MAs(7),G=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf",G[c])("ngIfElse",m)}}const x1=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function D1(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-collection-tag",53),e.BQk()),2&u){const c=e.oxw(2),m=c.config,G=c.$implicit,Ae=c.emphasize;e.oxw();const Dt=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcCollectionTagConfig",e.qbA(3,x1,G.slice(m.tag.maxTags,G.length),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Ae))("cvcTagTemplate",Dt)("cvcShowFullLabels",!0)}}function Ua(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-tag-list",52),e.YNc(2,D1,2,9,"ng-container",10),e.BQk()),2&u){const c=e.oxw(),m=c.config,G=c.$implicit,Ae=c.emphasize;e.oxw();const Dt=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcTagTemplate",Dt)("cvcTagListConfig",e.qbA(3,x1,G.slice(0,m.tag.maxTags),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Ae)),e.xp6(1),e.Q6J("ngIf",G.slice(m.tag.maxTags,G.length).length>0)}}function Ou(u,y){if(1&u&&e.YNc(0,Ua,3,9,"ng-container",50),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function O1(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",54),2&u){const c=y.$implicit,m=y.config,G=y.emphasize,Ae=e.oxw(6);let Dt;e.Q6J("cvcTruncateLabel",null==m.tag?null:m.tag.truncateLabel)("cvcLinkableEntity",c)("cvcEmphasize",G)("cvcShowPopover",!Ae.isScrolling)("cvcStatus",!0===m.showStatus?c.status:void 0)("cvcFullWidth",null!==(Dt=null==m.tag?null:m.tag.fullWidth)&&void 0!==Dt&&Dt)}}function w1(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function wl(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,yd,2,2,"ng-container",10),e.YNc(2,Ou,1,2,"ng-template",null,47,e.W1O),e.YNc(4,O1,1,6,"ng-template",null,48,e.W1O),e.YNc(6,w1,1,1,"ng-template",null,49,e.W1O),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.context||c.key)}}function Cd(u,y){if(1&u&&(e._UZ(0,"cvc-attribute-tag",58),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit,G=e.oxw(2);e.Q6J("cvcFullWidth",!0)("cvcAttrValue",m[c.key])("cvcTooltip",e.lcZ(1,3,!G.isScrolling&&m[c.key]))}}function np(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function op(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,Cd,2,5,"cvc-attribute-tag",56),e.YNc(2,np,1,1,"ng-template",null,57,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Ae;e.Q6J("nzAlign",null!==(Ae=c.align)&&void 0!==Ae?Ae:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function ip(u,y){if(1&u&&(e.TgZ(0,"nz-tag",61),e._UZ(1,"span",62),e.qZA()),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit;e.Q6J("nzTooltipTitle",m[c.key])}}function rp(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function sp(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,ip,2,1,"nz-tag",59),e.YNc(2,rp,1,1,"ng-template",null,60,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Ae;e.Q6J("nzAlign",null!==(Ae=c.align)&&void 0!==Ae?Ae:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function zd(u,y){1&u&&e.GkF(0)}const wu=function(u,y){return{$implicit:u,emphasize:y}};function Td(u,y){if(1&u&&(e.ynx(0),e.YNc(1,zd,1,0,"ng-container",51),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=y.ngIf,m=e.oxw().ngIf,G=e.MAs(3),Ae=e.MAs(5);let Dt;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,c)?G:Ae)("ngTemplateOutletContext",e.WLB(6,wu,c,null==(Dt=e.lcZ(3,4,m.filter.changes))?null:Dt.value))}}function P1(u,y){1&u&&e.GkF(0)}function ap(u,y){1&u&&(e.ynx(0),e._uU(1,", "),e.BQk())}function cp(u,y){if(1&u&&(e.ynx(0),e.YNc(1,P1,1,0,"ng-container",51),e.YNc(2,ap,2,0,"ng-container",10),e.BQk()),2&u){const c=y.$implicit,m=y.last,G=e.oxw(2).emphasize;e.oxw();const Ae=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",Ae)("ngTemplateOutletContext",e.WLB(3,wu,c,G)),e.xp6(1),e.Q6J("ngIf",!m)}}function I1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,cp,3,6,"ng-container",8),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",c)}}function Md(u,y){if(1&u&&e.YNc(0,I1,2,1,"ng-container",50),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function ja(u,y){if(1&u&&(e._UZ(0,"span",67),e.ALo(1,"highlightTypeahead")),2&u){const c=y.$implicit,m=y.emphasize,G=e.oxw().ngIf;e.Q6J("innerHtml",e.xi3(1,1,G.objectKey?c[G.objectKey]:c,m),e.oJD)}}function A1(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Kn(u,y){if(1&u&&(e.TgZ(0,"td",63),e.YNc(1,Td,4,9,"ng-container",50),e.YNc(2,Md,1,2,"ng-template",null,64,e.W1O),e.YNc(4,ja,2,4,"ng-template",null,65,e.W1O),e.YNc(6,A1,1,1,"ng-template",null,66,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(7),G=e.oxw(3).$implicit;let Ae;e.Q6J("nzAlign",null!==(Ae=c.align)&&void 0!==Ae?Ae:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function Li(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ep,1,4,"td",42),e.ALo(2,"guardType"),e.YNc(3,wl,8,4,"td",43),e.ALo(4,"guardType"),e.YNc(5,op,4,5,"td",43),e.ALo(6,"guardType"),e.YNc(7,sp,4,5,"td",43),e.ALo(8,"guardType"),e.YNc(9,Kn,8,5,"td",44),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(3);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function Pu(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Li,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function Ga(u,y){if(1&u&&(e.TgZ(0,"tr",41),e.YNc(1,Pu,2,1,"ng-container",8),e.qZA()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngForOf",c)}}function Iu(u,y){1&u&&(e.TgZ(0,"tbody"),e.YNc(1,Ga,2,1,"ng-template",40),e.qZA())}function bd(u,y){1&u&&e._UZ(0,"span",75)}function F1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",76),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Ae=e.oxw().filter;return G.value="",e.KtG(Ae.changes.next({key:Ae.key,value:null}))}),e.qZA()}}function zo(u,y){if(1&u&&(e.YNc(0,bd,1,0,"span",73),e.YNc(1,F1,1,0,"span",74)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function Pl(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",69)(2,"input",70,71),e.NdJ("nzFilterChange",function(G){e.CHM(c);const Ae=e.oxw().filter;return e.KtG(Ae.changes.next({key:Ae.key,value:G}))}),e.qZA()(),e.YNc(4,zo,2,2,"ng-template",null,72,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw().filter;e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.placeholder)("ngModel",m.defaultValue)}}function N1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",77)(1,"nz-input-number",78,71),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw().filter;return e.KtG(Ae.changes.next({key:Ae.key,value:G}))}),e.qZA()()}if(2&u){const c=e.oxw().filter;e.xp6(1),e.Q6J("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function Pc(u,y){if(1&u&&(e.YNc(0,Pl,6,3,"ng-container",50),e.YNc(1,N1,3,4,"ng-template",null,68,e.W1O)),2&u){const c=y.filter,m=e.MAs(2);e.Q6J("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",m)}}const Ic=function(){return[6,6]};function Qa(u,y){1&u&&(e.TgZ(0,"nz-row",79)(1,"nz-col")(2,"span"),e._uU(3,"Use checkboxes to select or deselect EIDs"),e.qZA()()()),2&u&&e.Q6J("nzGutter",e.DdM(1,Ic))}function ys(u,y){1&u&&(e.TgZ(0,"nz-tag",90),e._UZ(1,"i",91),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}const Wa=function(u){return{$implicit:u}};function rs(u,y){if(1&u&&(e.TgZ(0,"nz-tag",94),e._UZ(1,"span",95),e.TgZ(2,"span",96),e._uU(3),e.qZA()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Wa,m.query)),e.xp6(1),e.hij(" Query Error",m.query.length>1?"s":""," ")}}function L1(u,y){if(1&u&&(e.TgZ(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e._uU(4),e.qZA()()()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(1),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Wa,m.network)),e.xp6(3),e.hij(" Network Error",m.query.length>1?"s":""," ")}}function Il(u,y){if(1&u&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&u){const c=y.$implicit;e.xp6(1),e.hij(" ",c.message," ")}}function k1(u,y){1&u&&e.YNc(0,Il,2,1,"div",8),2&u&&e.Q6J("ngForOf",y.$implicit)}function Au(u,y){if(1&u&&(e.ynx(0),e.YNc(1,rs,4,5,"nz-tag",92),e.YNc(2,L1,5,5,"nz-tag",92),e.YNc(3,k1,1,1,"ng-template",null,93,e.W1O),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",c.query),e.xp6(1),e.Q6J("ngIf",c.network)}}function ki(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Au,5,2,"ng-container",10),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c)}}function tr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",98)(1,"nz-checkbox-group",99),e.NdJ("ngModelChange",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onPreferenceChange$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngModel",e.lcZ(2,1,c.setPreference$))}}function Al(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-row",79)(1,"nz-col",80),e.YNc(2,ys,4,0,"nz-tag",81),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._UZ(5,"cvc-no-more-rows",82),e.ALo(6,"ngrxPush"),e.qZA(),e.TgZ(7,"nz-col",80),e.YNc(8,ki,2,1,"ng-container",3),e.qZA(),e.TgZ(9,"nz-col",80),e._UZ(10,"cvc-table-counts2",83),e.qZA(),e.TgZ(11,"nz-col",84)(12,"nz-button-group")(13,"button",85),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onResetFilter$.next())}),e._UZ(14,"span",86),e.qZA(),e.TgZ(15,"button",87),e._UZ(16,"span",88),e.qZA()(),e.YNc(17,tr,3,3,"ng-template",null,89,e.W1O),e.qZA()()}if(2&u){const c=e.MAs(18),m=e.oxw();e.Q6J("nzGutter",8),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,7,m.loading$)&&e.lcZ(4,9,m.isFetchMore$)),e.xp6(3),e.Q6J("cvcShowTag",e.lcZ(6,11,m.noMoreRows$)),e.xp6(3),e.Q6J("ngrxLet",m.queryError$),e.xp6(2),e.Q6J("cvcTableCountsConnection",m.connection$),e.xp6(5),e.Q6J("nzPopoverContent",c)("nzPopoverTrigger","click")}}const R1=function(){return[]},V1=function(){return{x:"800px",y:"200px"}};let Ac=((Pi=class{constructor(y,c,m){this.queryGQL=y,this.apollo=c,this.cdr=m,this.cvcSelectedIdsChange=new e.vpe,this.isScrolling=!1,this.colGuards=Sl,this.onFetchMore$=new Xe.x,this.onPreferenceChange$=new ct.X([]),this.onResetFilter$=new Xe.x,this.onRowSelected$=new Xe.x,this.onScroll$=new ct.X("stop"),this.onSetSelectedRow$=new ct.X(new Set),this.queryError$=new Xe.x,this.queryRequest$=new Xe.x,this.queryResult$=new Ao.t(1),this.isFetchMore$=new ct.X(!1),this.noMoreRows$=new ct.X(!1),this.scrollToIndex$=new Xe.x,this.tableConfig=new Tu;const G=(0,Do.a)(this.tableConfig.getFilterStreams()),Ae=(0,Do.a)(this.tableConfig.getSortStreams()).pipe((0,qe.h)(Dt=>Dt.filter(Mn=>null!==Mn.value).length<=1));this.refetch$=(0,Do.a)([Ae,G]).pipe((0,Zt.U)(([Dt,Mn])=>({query:"refetch",sort:Dt,filter:Mn}))),this.fetchMore$=this.onFetchMore$.pipe((0,Zt.U)(Dt=>({query:"fetchMore",fetchMore:{...Dt}}))),(0,No.T)(this.refetch$,this.fetchMore$).pipe((0,yo.b)(50),(0,ve.t)(this)).subscribe(Dt=>{const Mn=this.getQueryVars(Dt);this.queryRef?(this.queryError$.next({}),"refetch"===Dt.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(Mn).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:Mn}).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(Mn),this.queryRef.valueChanges.pipe((0,ve.t)(this)).subscribe(kn=>{this.queryResult$.next(kn),(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))}),this.loading$=this.queryResult$.pipe((0,Cn.j)("loading"),(0,j.x)()),this.connection$=this.queryResult$.pipe((0,Cn.j)("data","browseVariants"),(0,qe.h)(xo.ep)),this.pageInfo$=this.connection$.pipe((0,Cn.j)("pageInfo"),(0,qe.h)(xo.ep)),this.row$=(0,Do.a)([this.connection$.pipe((0,Cn.j)("edges"),(0,qe.h)(xo.ep),(0,Zt.U)(Dt=>Dt.map(Mn=>Mn.node))),this.onSetSelectedRow$]).pipe((0,Zt.U)(([Dt,Mn])=>Dt.map(kn=>{if(kn)return{...kn,variant:{__typename:"Variant",id:kn.id,name:kn.name,link:kn.link},gene:{__typename:"Gene",id:kn.geneId,name:kn.geneName,link:kn.geneLink},selected:Mn.has(kn.id)}}))),this.col$=new ct.X(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,Zt.U)(Dt=>this.getColPrefsFromTableConfig(Dt))),this.onPreferenceChange$.pipe((0,it.M)(this.col$),(0,Zt.U)(([Dt,Mn])=>this.getTableConfigFromColPrefs(Dt,Mn)),(0,ve.t)(this)).subscribe(Dt=>{this.col$.next(Dt)}),this.onSetTableFilter$=new ct.X([]),this.onSetTableFilter$.pipe((0,ve.t)(this)).subscribe(Dt=>{const Mn=this.col$.getValue();Dt.forEach(kn=>{const $o=Mn.find(Wi=>Wi.key===kn.key);if(void 0!==$o.filter.inputType){const Wi=$o.filter.options[0];if(null===kn.value)return $o.filter.options=[{...Wi,value:null}],void $o.filter.changes.next(kn);if(Array.isArray(kn.value)&&0===kn.value.length)return $o.filter.options=[{...Wi,value:null}],void $o.filter.changes.next({...kn,value:null});let $i;Array.isArray(kn.value)?kn.value.length>0&&($i=kn.value[0]):$i=kn.value;const $s=$o.filter.typename;if(!$s||!$i)return void console.error(`variant-manager requires column config '${$o.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Us=this.getEntityName($s,$i);if(!Us)return;$o.filter.options=[{...Wi,value:Us}],$o.filter.changes.next({...kn,value:Us})}else is($o)&&$o.filter.changes.next(kn)})}),this.onSetTablePref$=new ct.X([]),this.onSetTablePref$.pipe((0,it.M)(this.setPreference$),(0,Zt.U)(([Dt,Mn])=>{const kn=[];return Dt.forEach($o=>{let Wi=Mn.find($i=>$i.value===$o.value);Wi?kn.push({...Wi,...$o}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${$o.value}', but a column with that key could not be found.`)}),kn}),(0,ve.t)(this)).subscribe(Dt=>{this.onPreferenceChange$.next(Dt)}),this.onRowSelected$.pipe((0,it.M)(this.onSetSelectedRow$),(0,ve.t)(this)).subscribe(([Dt,Mn])=>{Dt.selected?Mn.add(Dt.id):Mn.delete(Dt.id),this.onSetSelectedRow$.next(Mn),this.cvcSelectedIdsChange.next(Array.from(Mn))}),this.onScroll$.pipe((0,Zt.U)(Dt=>"stop"!==Dt),(0,j.x)(),(0,ve.t)(this)).subscribe(Dt=>{this.isScrolling=Dt,this.cdr.detectChanges()}),this.onScroll$.pipe((0,qe.h)(Dt=>"bottom"===Dt),(0,it.M)(this.pageInfo$),(0,Zt.U)(([Dt,Mn])=>Mn),(0,ve.t)(this)).subscribe(Dt=>{Dt.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,it.M)((0,ei.of)(this.tableConfig.get())),(0,ve.t)(this)).subscribe(([y,c])=>{const m=[];c.forEach(G=>{if(bc(G)&&G.sort.changes&&G.sort.changes.next({key:G.key,value:G.sort.default??null}),is(G)){const Ae=G.filter.options.find(Dt=>1==Dt.byDefault)?.value;G.filter.changes&&G.filter.changes.next({key:G.key,value:Ae||null})}m.push(G)}),this.col$.next(m)})}getQueryVars(y){const c=this.getQueryFilterParams(y);return{...this.getQuerySortParams(y),...c,...y.fetchMore}}getQuerySortParams(y){if(!y.sort)return;const m=y.sort.find(Ae=>null!==Ae.value);return m?{sortBy:{column:this.getSortColumnFromColKey(m.key),direction:"ascend"===m.value?Fn.SrV.Asc:Fn.SrV.Desc||void 0}}:void 0}getQueryFilterParams(y){let c={};return y.filter&&y.filter.forEach(m=>{c[$a[m.key]||m.key]=null===m.value||""===m.value?void 0:m.value}),c}getRequestErrors(y){return{query:y.errors,network:y.error}}getTableConfigFromColPrefs(y,c){return c.forEach(m=>{if(Or.find(Ae=>Ae===m.key))return;const G=y.find(Ae=>Ae.value===m.key);G&&(m.hidden=!G?.checked)}),[...c]}getColPrefsFromTableConfig(y){let c=[];return y.forEach(m=>{Or.find(G=>G===m.key)||c.push({label:m.tooltip||m.label,value:m.key,checked:!m.hidden})}),c}getSortColumnFromColKey(y){return ha[y]}getEntityName(y,c){const m={id:`${y}:${c}`,fragment:Jn.Ps` + fragment Linkable${y}Entity on ${y} { + id + name + link + }`},G=this.apollo.client.readFragment(m);if(G)return G.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${y}:${c} to populate input filter`)}trackByIndex(y,c){return c?.id}ngOnChanges(y){if(y.cvcTableSettings){const c=y.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(y.cvcSelectedIds){const c=y.cvcSelectedIds.currentValue,m=new Set;void 0!==c&&c.forEach(G=>m.add(G)),this.onSetSelectedRow$.next(m)}}}).\u0275fac=function(y){return new(y||Pi)(e.Y36(Fn.XQi),e.Y36(_o._M),e.Y36(e.sBO))},Pi.\u0275cmp=e.Xpm({type:Pi,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.TTD],decls:16,vars:27,consts:[["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading","cvcTableScrollerOnScroll","cvcTableScrollerOnFetch"],["virtualTable",""],[4,"ngrxLet"],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange"],["enumTableFilter",""],[3,"nzDropdownMenu","nzActive"],["enumTagFilterTrigger",""],["nz-icon","","nzType","filter","nzTheme","fill"],["enumFilterMenu","nzDropdownMenu"],[3,"cvcColumnKey","cvcFilterOptions","cvcOption","cvcOptionChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],["textTagFilterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcPlaceholder","cvcModel","cvcModelChange"],[3,"cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],["class","default-col-type",3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange"],[3,"nzAlign","nzLeft","nzRight"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["emptyEnumTagCell",""],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["emptyTextTagCell",""],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],[1,"default-col-type",3,"nzAlign","nzLeft","nzRight"],["staticList",""],["staticValue",""],["emptyDefaultCell",""],[3,"innerHtml"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","nzFilterChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["prefsPopover",""],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["queryError",""],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModel","ngModelChange"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.NdJ("cvcTableScrollerOnScroll",function(G){return c.onScroll$.next(G)})("cvcTableScrollerOnFetch",function(G){return c.onFetchMore$.next(G)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.YNc(8,Du,5,2,"thead",3),e.YNc(9,Iu,2,0,"tbody",3),e.qZA()(),e.YNc(10,Pc,3,2,"ng-template",null,4,e.W1O),e.YNc(12,Qa,4,2,"ng-template",null,5,e.W1O),e.YNc(14,Al,19,13,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(13),G=e.MAs(15);e.Q6J("nzTitle",m)("nzExtra",G),e.xp6(1),e.Q6J("nzData",e.lcZ(3,15,c.row$)||e.DdM(25,R1))("cvcTableScrollerQueryRef",c.queryRef)("cvcTableScrollerPageInfo",e.lcZ(4,17,c.pageInfo$))("cvcTableScrollerToIndex",e.lcZ(5,19,c.scrollToIndex$))("nzScroll",e.DdM(26,V1))("nzVirtualForTrackBy",c.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.lcZ(6,21,c.loading$)&&!e.lcZ(7,23,c.isFetchMore$)),e.xp6(7),e.Q6J("ngrxLet",c.col$),e.xp6(1),e.Q6J("ngrxLet",c.col$)}},dependencies:[M.sg,M.O5,M.tP,Po.J,ut,Rn,mt,Ee,Ut.P,ye.H,t.Fj,t.JJ,t.On,R.eJ,Vn.ix,Vn.fY,Zo.w,Ko.dQ,pe.t3,pe.SK,st.Ls,je.Zp,je.gB,je.ke,me.ZU,In.bd,Jt.ub,Hn.RR,Gn._V,Gn.Rb,Xn.lU,Zn.N8,Zn.qD,Zn.Uo,Zn._C,Zn.h7,Zn.Om,Zn.p0,Zn.$Z,Zn.zu,Zn.qn,Zn.Ql,Zn.UX,Zn.g6,wt.j,Ye.SY,Ec,Eu,xu,rr,N.Do,J.A,Ur,R.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}td.default-col-type[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0}),Pi);var Cs;function Fc(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(2),e.Oqu(c.message)}}function Sd(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}Ac=(0,Ce.gn)([(0,ve.c)()],Ac);const ma=function(){return[0,0]};let Fu=((Cs=class{set cvcGeneId(y){y&&this.geneId$.next(y)}set cvcGeneName(y){y&&this.geneName$.next(y)}set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.form=new t.nJ({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new Xe.x,this.searchString$=new ct.X(void 0),this.geneName$=new ct.X(void 0),this.geneId$=new ct.X(void 0),this.formMessageDisplay$=new ct.X({message:"Variant does not exist, create it?"}),this.queryMutator=new qo.U(this.errors),this.addVariantMutator=new qo.U(this.errors),this.minNameLength=3,this.fields=[{key:"geneId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}}],this.geneId$.pipe((0,ve.t)(this)).subscribe(m=>{this.model.geneId=m}),this.searchString$.pipe((0,ve.t)(this)).subscribe(m=>{this.model.name=m,this.formMessageDisplay$.next(void 0!==m&&m.length{console.log("variant-quick-add form model submitted.",m),this.submitVariant(m)})}submitVariant(y){y.name&&y.geneId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:y.name,geneId:y.geneId},{},c=>{console.log("variant-quick-add submit data callback",c),c.addVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.addVariant&&this.cvcOnCreate.next(c.addVariant.variant.id)},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and geneId.")}ngOnChanges(y){if(y.cvcGeneId){const c=y.cvcGeneId.currentValue;this.geneId$.next(c),this.model={...this.model,geneId:c}}y.cvcGeneName&&this.geneName$.next(y.cvcGeneName.currentValue),y.cvcSearchString&&(this.model={...this.model,name:y.cvcSearchString.currentValue})}}).\u0275fac=function(y){return new(y||Cs)(e.Y36(Fn.MCG),e.Y36(Vo.Y))},Cs.\u0275cmp=e.Xpm({type:Cs,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcGeneId:"cvcGeneId",cvcGeneName:"cvcGeneName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.TTD],decls:18,vars:17,consts:[[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],["success",""],[3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(y,c){if(1&y&&(e.YNc(0,Fc,3,1,"ng-container",0),e.TgZ(1,"cvc-form-submission-status-display",1),e.YNc(2,Sd,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"form",3),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(8,"nz-col",5)(9,"button",7),e._uU(10," Add\xa0 "),e.TgZ(11,"strong"),e._uU(12),e.ALo(13,"ngrxPush"),e.qZA(),e._uU(14," \xa0Variant\xa0"),e.TgZ(15,"i"),e._uU(16),e.ALo(17,"ngrxPush"),e.qZA()()()()()()),2&y){const m=e.MAs(3);e.Q6J("ngrxLet",c.formMessageDisplay$),e.xp6(1),e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(16,ma)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(3),e.Oqu(e.lcZ(13,12,c.geneName$)),e.xp6(4),e.Oqu(e.lcZ(17,14,c.searchString$))}},dependencies:[_i.F,v.T7,t._Y,t.JL,R.eJ,Vn.ix,Zo.w,Ko.dQ,pe.t3,pe.SK,t.sg,R.fM],encapsulation:2,changeDetection:0}),Cs);Fu=(0,Ce.gn)([(0,ve.c)()],Fu);const Nc=["optionTemplates"],B1=function(u,y){return{show:u,hide:y}};function Ed(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"button",10),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onShowMgrClick$.next())}),e._UZ(2,"span",11),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._uU(5," Manager "),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(6,B1,e.lcZ(3,2,c.showMgr$),!e.lcZ(4,4,c.showMgr$)))("nzType","caret-right")}}function ga(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",12)(1,"cvc-variant-manager",13),e.NdJ("cvcSelectedIdsChange",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcSelectedIds",e.lcZ(2,1,c.onVid$))}}function Lc(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",20),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c.variantAliases.join(", "))("innerHtml",e.xi3(3,2,c.variantAliases.join(", "),m),e.oJD)}}function Nu(u,y){1&u&&e._uU(0,"--")}function kc(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",16),e.TgZ(1,"span",17)(2,"strong"),e._uU(3,"Aliases:"),e.qZA(),e.YNc(4,Lc,4,5,"ng-container",18),e.YNc(5,Nu,1,0,"ng-template",null,19,e.W1O),e.qZA()),2&u){const c=e.MAs(6),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(4),e.Q6J("ngIf",m.variantAliases.length>0)("ngIfElse",c)}}function H1(u,y){1&u&&(e.ynx(0),e.YNc(1,kc,7,5,"ng-template",null,15,e.W1O),e.BQk())}function Lu(u,y){if(1&u&&(e.ynx(0),e.YNc(1,H1,3,0,"ng-container",14),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function va(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",21)(1,"cvc-entity-tag",22),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Variant:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function _a(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-quick-add-form",23),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onPopulate$.next(G))}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("cvcSearchString",c)("cvcGeneId",e.lcZ(1,3,m.onGeneId$))("cvcGeneName",e.lcZ(2,5,m.onGeneName$))}}const lp=function(){return[6,6]},up=kt(at(),oi());let Rc=(()=>{class u extends up{constructor(c,m,G,Ae){super(),this.taq=c,this.tq=m,this.geneQuery=G,this.changeDetectorRef=Ae,this.onModel$=new jo.y,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireGene:!0,requireGenePlaceholderFn:Dt=>`Search ${Dt} Variants`,requireGenePrompt:"Select a Gene to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onGeneName$=new ct.X(void 0),this.onVid$=new Ao.t,this.onShowMgrClick$=new Xe.x,this.showMgr$=this.onShowMgrClick$.pipe((0,to.R)((Dt,Mn)=>!Dt,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,ve.t)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,Do.a)([this.onGeneId$,this.onSearch$]).pipe((0,Zt.U)(([c,m])=>({geneId:c,name:m}))),this.onValueChange$.pipe((0,it.M)(this.onVid$),(0,ve.t)(this)).subscribe(([c,m])=>{Array.isArray(c)&&this.onVid$.next(c)})}configureStateConnections(){if(this.state&&this.props.requireGene){if(!this.state?.fields.geneId$)return void console.error(`${this.field.id} requireGene is set, but no geneId$ subject found on state.`);this.onGeneId$=this.state.fields.geneId$,this.onGeneId$.pipe((0,ve.t)(this)).subscribe(c=>{this.onGeneId(c)})}}getTypeaheadVarsFn(c){return{name:c,geneId:this.selectedGeneId}}getTypeaheadResultsFn(c){return c.data.variants.nodes}getTagQueryVarsFn(c){return{variantId:c}}getTagQueryResultsFn(c){return c.data.variant}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}showAddBehavior(c,m){const G=c.toLowerCase();return c.length>=3&&!m.some(Ae=>Ae.name.toLowerCase()===G)}onGeneId(c){this.selectedGeneId=c,!c&&this.props.requireGene?(this.resetField(),this.props.description=this.props.requireGenePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onGeneName$.next(void 0)):c&&(this.props.description=void 0,this.props.extraType=void 0,yu(this.geneQuery.fetch({geneId:c},{fetchPolicy:"cache-first"})).then(({data:m})=>{m?.gene?.name?(this.props.placeholder=this.props.requireGene?this.props.requireGenePlaceholderFn(m.gene.name):this.props.placeholder,this.onGeneName$.next(m.gene.name)):console.error(`${this.field.id} could not fetch gene name for Gene:${c}.`)}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.nSb),e.Y36(Fn.dDn),e.Y36(Fn.DzV),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ng-component"]],viewQuery:function(c,m){if(1&c&&e.Gf(Nc,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:20,vars:41,consts:[[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Gene to enable field.",3,"nzTooltipTrigger"],[3,"cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["selectedTemplate",""],["addVariant",""],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIds","cvcSelectedIdsChange"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcGeneId","cvcGeneName","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"span",2),e.ALo(3,"ngrxPush"),e.TgZ(4,"cvc-entity-select",3),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.ALo(8,"ngrxPush"),e.ALo(9,"ngrxPush"),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e.qZA()()(),e.YNc(12,Ed,6,9,"nz-col",4),e.YNc(13,ga,3,3,"nz-col",5),e.ALo(14,"ngrxPush"),e.qZA(),e.YNc(15,Lu,3,3,"ng-container",6),e.YNc(16,va,2,3,"ng-template",null,7,e.W1O),e.YNc(18,_a,3,7,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(17),Ae=e.MAs(19);e.Q6J("nzGutter",e.DdM(40,lp)),e.xp6(2),e.Q6J("nzTooltipTrigger",m.props.requireGene&&!e.lcZ(3,22,m.onGeneId$)?"hover":null),e.xp6(2),e.Q6J("cvcAddEntity",Ae)("cvcAddEntityModel",e.lcZ(5,24,m.onModel$))("cvcAddEntityBehavior",m.showAddBehavior)("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",m.props.placeholder)("cvcResults",e.lcZ(6,26,m.result$))("cvcDisabled",m.props.requireGene&&!e.lcZ(7,28,m.onGeneId$))("cvcOptions",e.lcZ(8,30,m.selectOption$))("cvcSelectOpen",e.lcZ(9,32,m.selectOpen$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(10,34,m.isLoading$))("cvcParamName",e.lcZ(11,36,m.onGeneName$)),e.xp6(8),e.Q6J("ngIf",m.props.showManagerBtn),e.xp6(1),e.Q6J("ngIf",e.lcZ(14,38,m.showMgr$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.mk,M.sg,M.O5,Oo,Po.J,R.eJ,Vn.ix,Zo.w,Ko.dQ,pe.t3,pe.SK,st.Ls,me.ZU,Ye.SY,Ac,Fu,J.A,R.fM],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0}),u})();const ya={types:[{name:"variant-select",wrappers:["form-field"],component:Rc},{name:"variant-multi-select",wrappers:["form-field"],component:Rc,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let zs=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Un,$e.x,Bt,zn.g,Ve.s,Wn,lr,Be,ea,Vr.M,xn.y,v.X0.forChild(ya),t.u5,Xt.L,Te.ic,Vn.sL,s.U5,pe.Jb,st.PV,je.o7,vo.Qp,Ne.LV,me.ZJ,Vn.sL,In.vh,Jt.Wr,Hn.b1,s.U5,pe.Jb,st.PV,je.o7,Gn.Zf,Xn.$6,Zn.HQ,wt.X,Ye.cg,me.ZJ,t.UX]}),u})();var Vc=a(9858),_r=a(6976),xd=a(4194);const dp=/\(/g,pp=/\)/g,Dd=/AND|OR/i,Fl=/^(?NOT\s)?\s*#VID(?\d+)$/i,Y1=/\s+/,ku="EXPR";function $1(u){return U1(u.replace(dp," ( ").replace(pp," ) "))}function U1(u){let c,y=u.split(Y1),m=0,G=[],Ae=[],Dt=[];for(let Hr of y)if("("==Hr)0!=m&&G.push(Hr),m+=1;else if(")"==Hr)if(m-=1,0==m){let ls=U1(G.join(" "));if("errorMessage"in ls)return ls;Dt.push(ls),Ae.push(ku),G=[]}else G.push(Hr);else m>0?G.push(Hr):Ae.push(Hr);const Mn={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},kn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},$o={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},Wi={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let $i=0;for(let Hr of Ae){let ls=Dd.test(Hr);if(ls&&0==$i)return kn;if(ls&&$i===y.length-1)return Mn;if(ls&&!c)c=Ru(Hr);else if(ls&&c&&Ru(Hr)!==c)return $o;$i++}let $s=[],Us=Ae.join(" ").split(Dd);for(let Hr of Us.map(ls=>ls.trim())){let ls=Fl.exec(Hr);if(null===ls){if(0===Hr.length)return Wi;if("NOT"===Hr||"NOT"===Hr.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if(Hr!==ku)return{errorType:"invalidToken",errorMessage:`Token '${Hr}' does not match the expected format.`}}else $s.push({not:!!ls[1],variantId:parseInt(ls[2])})}return{booleanOperator:c,variantComponents:$s,complexComponents:Dt}}function Ru(u){return"AND"==u.toUpperCase()?Fn._Wm.And:Fn._Wm.Or}var Nl=a(5095);let ss=(()=>{class u{constructor(c){this.apollo=c,this.cvcOnSelect=new e.vpe,this.cvcOnVariantSelect=new e.vpe,this.modelChange$=new ct.X(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{geneId$:new ct.X(void 0),variantId$:new ct.X(void 0),variantMolecularProfile$:new ct.X(void 0)}},this.form=new t.nJ({}),this.model={geneId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select",props:{placeholder:"Select MP Gene",hideLabel:!0,layout:{showExtra:!1}}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",requireGene:!0,layout:{showExtra:!1},hideLabel:!0}}]}]}modelChange(c){if(!c?.variantId)return;const m=this.getSelectedVariant(c.variantId);m&&(this.model={geneId:void 0,variantId:void 0},this.cvcOnSelect.next(m.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(m))}getSelectedVariant(c){if(!c)return;const m={id:`Variant:${c}`,fragment:_o.Ps` + fragment VariantSelectQuery on Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } + } + `};let G;try{G=this.apollo.client.readFragment(m)}catch(Ae){console.error(Ae)}if(G)return G;console.error("MpFinderForm could not resolve its Variant from the cache")}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(_o._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[3,"form","fields","model","options","modelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(Ae){return m.modelChange(Ae)}),e.qZA()()),2&c&&(e.Q6J("nzLayout",m.layout)("formGroup",m.form),e.xp6(1),e.Q6J("form",m.form)("fields",m.config)("model",m.model)("options",m.options))},dependencies:[t._Y,t.JL,t.sg,v.T7,s.Lr],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0}),u})();function Ts(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.qZA(),e.BQk())}function j1(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Complete the expression by appending a "),e.TgZ(3,"strong"),e._uU(4,"#VID"),e.qZA(),e._uU(5," token to the incomplete boolean expression. "),e.qZA(),e.BQk())}function Vu(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," MP Expressions may not begin with an "),e.TgZ(3,"strong"),e._uU(4,"AND"),e.qZA(),e._uU(5," or "),e.TgZ(6,"strong"),e._uU(7,"OR"),e.qZA(),e._uU(8," boolean. Ensure the expression begins with a "),e.TgZ(9,"strong"),e._uU(10,"#VID"),e.qZA(),e._uU(11," or "),e.TgZ(12,"strong"),e._uU(13,"NOT #VID"),e.qZA(),e._uU(14," token. "),e.qZA(),e.BQk())}function Od(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Molecular Profile expressions use a simple domain-specific language to specify complex MPs using boolean expressions to combine variants. These expressions may contain: "),e.qZA(),e.TgZ(3,"ul")(4,"li"),e._uU(5," Variant Tokens - "),e.TgZ(6,"strong"),e._uU(7,"#VID"),e.qZA(),e._uU(8," or "),e.TgZ(9,"strong"),e._uU(10,"NOT #VID"),e.qZA(),e._uU(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.qZA(),e.TgZ(12,"li"),e._uU(13,"Boolean Tokens - "),e.TgZ(14,"strong"),e._uU(15,"AND"),e.qZA(),e._uU(16,", "),e.TgZ(17,"strong"),e._uU(18,"OR"),e.qZA()(),e.TgZ(19,"li"),e._uU(20," Parentheses - "),e.TgZ(21,"strong"),e._uU(22,"("),e.qZA(),e._uU(23," or "),e.TgZ(24,"strong"),e._uU(25,")"),e.qZA(),e._uU(26,", for grouping tokens into nested expressions "),e.qZA()(),e.TgZ(27,"p")(28,"strong"),e._uU(29,"Invalid Token"),e.qZA(),e._uU(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.qZA(),e.BQk())}function wd(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," A single expression may not include more than one "),e.TgZ(3,"strong"),e._uU(4,"AND"),e.qZA(),e._uU(5," or "),e.TgZ(6,"strong"),e._uU(7,"OR"),e.qZA(),e._uU(8," boolean operator. To construct complex expressions, use parentheses. "),e.qZA(),e.TgZ(9,"p"),e._uU(10," For example, the expression "),e.TgZ(11,"strong"),e._uU(12,"#VID12 AND #VID2220 OR #VID456"),e.qZA(),e._uU(13," is invalid, but the expression "),e.TgZ(14,"strong"),e._uU(15,"#VID12 AND (#VID2220 OR #VID456)"),e.qZA(),e._uU(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.qZA(),e.BQk())}function hp(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Complete the expression by appending a "),e.TgZ(3,"strong"),e._uU(4,"#VID"),e.qZA(),e._uU(5," token to the incomplete boolean expression. "),e.qZA(),e.BQk())}function fp(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The expression contains a Variant ID that cannot be matched to any Variant in the CIViC database. Please re-check the Variant ID, or create a new one by following these steps: "),e.qZA(),e.TgZ(3,"ol")(4,"li"),e._uU(5,"click the 'Variant' button,"),e.qZA(),e.TgZ(6,"li"),e._uU(7,"enter a Gene name, then select a Gene"),e.qZA(),e.TgZ(8,"li"),e._uU(9,"enter the Variant name"),e.qZA(),e.TgZ(10,"li"),e._uU(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.qZA()(),e.BQk())}function G1(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.TgZ(3,"strong"),e._uU(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.qZA(),e._uU(5,", which is invalid, is logically identical to the valid MP expression "),e.TgZ(6,"strong"),e._uU(7,"#VID123 AND (#VID456 OR #VID789)"),e.qZA(),e._uU(8,". "),e.qZA(),e.BQk())}function Bu(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The Molecular Profile editor allows the selection or creation of complex Molecular Profiles by writing Molecular Profile Expressions. These expressions are composed with a simple language consisting of Variant tokens, boolean operators, and parentheses. For example: "),e.qZA(),e.TgZ(3,"blockquote")(4,"strong"),e._uU(5,"#VID12 AND #VID2220"),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"strong"),e._uU(8,"#VID12 OR #VID2220"),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"strong"),e._uU(11,"#VID12 AND NOT #VID2220"),e.qZA(),e._UZ(12,"br"),e.TgZ(13,"strong"),e._uU(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.qZA(),e._UZ(15,"br"),e.TgZ(16,"strong"),e._uU(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.qZA(),e._UZ(18,"br"),e.qZA(),e.TgZ(19,"p")(20,"strong"),e._uU(21,"Variant Tokens"),e.qZA(),e._UZ(22,"br"),e._uU(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.TgZ(24,"strong"),e._uU(25,"#VID"),e.qZA(),e._uU(26,", and refer to specific CIViC Variants. For example, "),e.TgZ(27,"strong"),e._uU(28,"#VID12"),e.qZA(),e._uU(29," refers to "),e.TgZ(30,"strong"),e._uU(31,"BRAF V600E"),e.qZA(),e._uU(32,"; "),e.TgZ(33,"strong"),e._uU(34,"#VID2220"),e.qZA(),e._uU(35," refers to "),e.TgZ(36,"strong"),e._uU(37,"ALK FUSION"),e.qZA(),e._uU(38,". If you don\u2019t know the CIViC ID of a Variant, you can search for Variants by name using the \u2018Variant\u2019 or \u2018NOT Variant\u2019 buttons below. These interfaces can also be used to add a Variant that\u2019s not yet in CIViC. "),e.qZA(),e.TgZ(39,"p")(40,"strong"),e._uU(41,"Boolean Operators"),e.qZA(),e._UZ(42,"br"),e._uU(43," MP Expressions with more than a single variant must include boolean operators - "),e.TgZ(44,"strong"),e._uU(45,"AND"),e.qZA(),e._uU(46,", "),e.TgZ(47,"strong"),e._uU(48,"OR"),e.qZA(),e._uU(49,", and "),e.TgZ(50,"strong"),e._uU(51,"NOT"),e.qZA(),e._uU(52," - indicating their relationship. For example, the expression "),e.TgZ(53,"strong"),e._uU(54,"#VID12 AND #VID2220"),e.qZA(),e._uU(55," describes a MP that includes both "),e.TgZ(56,"strong"),e._uU(57,"BRAF V600E"),e.qZA(),e._uU(58," and "),e.TgZ(59,"strong"),e._uU(60,"ALK FUSION"),e.qZA(),e._uU(61,". "),e.qZA(),e.TgZ(62,"p")(63,"strong"),e._uU(64,"Parentheses"),e.qZA(),e._UZ(65,"br"),e._uU(66," Expressions cannot have both "),e.TgZ(67,"strong"),e._uU(68,"AND"),e.qZA(),e._uU(69," and "),e.TgZ(70,"strong"),e._uU(71,"OR"),e.qZA(),e._uU(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.qZA(),e.TgZ(73,"p")(74,"strong"),e._uU(75,"NOTE:"),e.qZA(),e._uU(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.qZA(),e.BQk())}let Q1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-mp-editor-popover-help"]],inputs:{cvcErrorType:"cvcErrorType"},decls:11,vars:9,consts:[[1,"help-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(c,m){1&c&&(e.TgZ(0,"div",0),e.ynx(1,1),e.YNc(2,Ts,3,0,"ng-container",2),e.YNc(3,j1,6,0,"ng-container",2),e.YNc(4,Vu,15,0,"ng-container",2),e.YNc(5,Od,31,0,"ng-container",2),e.YNc(6,wd,17,0,"ng-container",2),e.YNc(7,hp,6,0,"ng-container",2),e.YNc(8,fp,12,0,"ng-container",2),e.YNc(9,G1,9,0,"ng-container",2),e.YNc(10,Bu,77,0,"ng-container",3),e.BQk(),e.qZA()),2&c&&(e.xp6(1),e.Q6J("ngSwitch",m.cvcErrorType),e.xp6(1),e.Q6J("ngSwitchCase","incompleteExpression"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteNOT"),e.xp6(1),e.Q6J("ngSwitchCase","initialBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","invalidToken"),e.xp6(1),e.Q6J("ngSwitchCase","multipleBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","trailingBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","unknownVariant"),e.xp6(1),e.Q6J("ngSwitchCase","identicalVariants"))},dependencies:[M.RF,M.n9,M.ED],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]}),u})();var Bc;const Hu=["expressionEditor"];function mp(u,y){1&u&&e._uU(0,"Added new Molecular Profile")}function Pd(u,y){if(1&u&&e._UZ(0,"cvc-mp-tag-name",24),2&u){const c=e.oxw().ngrxLet;e.Q6J("nameSegments",c)}}function Id(u,y){1&u&&(e.TgZ(0,"span",25),e._uU(1," Valid Molecular Profile expressions will be previewed here. "),e.qZA())}function W1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Pd,1,1,"cvc-mp-tag-name",22),e.YNc(2,Id,2,0,"span",23),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c),e.xp6(1),e.Q6J("ngIf",!c)}}function Ll(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help")}function kl(u,y){if(1&u&&(e.TgZ(0,"button",28),e._UZ(1,"span",29),e._uU(2," GETTING STARTED "),e.qZA(),e.YNc(3,Ll,1,0,"ng-template",null,30,e.W1O)),2&u){const c=e.MAs(4);e.Q6J("nzPopoverContent",c)}}function Z1(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",26),e.YNc(2,kl,5,1,"ng-template",null,27,e.W1O),e.BQk()),2&u){const c=y.ngIf,m=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",c)("nzAction",m)}}function K1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(c);const G=e.oxw(3).ngrxLet,Ae=e.oxw();return e.KtG(Ae.cvcOnSelect.next(G))}),e._uU(1," Select this MP "),e.qZA()}}function gp(u,y){if(1&u&&(e._uU(0," Molecular Profile "),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," found. ")),2&u){const c=e.oxw(3).ngrxLet;e.xp6(2),e.Oqu(c.name)}}function Qi(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",31),e.YNc(2,K1,2,0,"ng-template",null,32,e.W1O),e.YNc(4,gp,4,1,"ng-template",null,33,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",m)("nzAction",c)}}function Ad(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(c);const G=e.oxw(4);return e.KtG(G.onCreateNewMp$.next())}),e._uU(1," Create New MP "),e.qZA()}}function Yu(u,y){1&u&&e._uU(0," Molecular Profile not found, create it? ")}function Bs(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",31),e.YNc(2,Ad,2,0,"ng-template",null,35,e.W1O),e.YNc(4,Yu,1,0,"ng-template",null,36,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",m)("nzAction",c)}}function J1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Qi,6,2,"ng-container",6),e.YNc(2,Bs,6,2,"ng-container",6),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",void 0!==c),e.xp6(1),e.Q6J("ngIf",void 0===c)}}function vp(u,y){if(1&u&&(e.ynx(0),e.YNc(1,J1,3,2,"ng-container",6),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!e.lcZ(2,1,c.expressionError$)&&!e.lcZ(3,3,c.expressionMessage$))}}function Fd(u,y){if(1&u&&(e.TgZ(0,"button",40),e._UZ(1,"span",29),e._uU(2," SYNTAX ASSISTANCE "),e.qZA()),2&u){const c=e.oxw().helpContent;e.Q6J("nzPopoverContent",c)}}function Nd(u,y){if(1&u&&(e._UZ(0,"nz-alert",38),e.YNc(1,Fd,3,1,"ng-template",null,39,e.W1O)),2&u){const c=y.$implicit,m=e.MAs(2);e.Q6J("nzMessage",c.errorMessage)("nzAction",m)}}function Ca(u,y){1&u&&e.GkF(0)}function q1(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",46)}const Hc=function(u,y){return{$implicit:u,helpContent:y}};function eh(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ca,1,0,"ng-container",44),e.YNc(2,q1,1,0,"ng-template",null,45,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function za(u,y){1&u&&e.GkF(0)}function li(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",48)}function $u(u,y){if(1&u&&(e.ynx(0),e.YNc(1,za,1,0,"ng-container",44),e.YNc(2,li,1,0,"ng-template",null,47,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function _p(u,y){1&u&&e.GkF(0)}function yp(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",50)}function vi(u,y){if(1&u&&(e.ynx(0),e.YNc(1,_p,1,0,"ng-container",44),e.YNc(2,yp,1,0,"ng-template",null,49,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function Rl(u,y){1&u&&e.GkF(0)}function Cp(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",52)}function Ld(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Rl,1,0,"ng-container",44),e.YNc(2,Cp,1,0,"ng-template",null,51,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function kd(u,y){1&u&&e.GkF(0)}function X1(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",54)}function th(u,y){if(1&u&&(e.ynx(0),e.YNc(1,kd,1,0,"ng-container",44),e.YNc(2,X1,1,0,"ng-template",null,53,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function ed(u,y){1&u&&e.GkF(0)}function zp(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",56)}function td(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ed,1,0,"ng-container",44),e.YNc(2,zp,1,0,"ng-template",null,55,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function Rd(u,y){1&u&&e.GkF(0)}function Vd(u,y){1&u&&(e.ynx(0),e._UZ(1,"cvc-mp-editor-popover-help",58),e.BQk())}function Za(u,y){1&u&&(e.ynx(0),e._UZ(1,"cvc-mp-editor-popover-help",59),e.BQk())}function Tp(u,y){if(1&u&&(e.YNc(0,Vd,2,0,"ng-container",6),e.YNc(1,Za,2,0,"ng-container",6)),2&u){const c=e.oxw(2).ngIf;e.Q6J("ngIf",c.errorMessage.split(" ").includes("multiple")),e.xp6(1),e.Q6J("ngIf",c.errorMessage.split(" ").includes("found."))}}function nd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Rd,1,0,"ng-container",44),e.YNc(2,Tp,2,2,"ng-template",null,57,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,Hc,m,c))}}function Uu(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"pre"),e._uU(2),e.ALo(3,"json"),e.qZA(),e.BQk()),2&u){const c=e.oxw().ngIf;e.xp6(2),e.hij(" ",e.lcZ(3,1,c),"\n ")}}function T(u,y){if(1&u&&(e.ynx(0)(1,41),e.YNc(2,eh,4,5,"ng-container",42),e.YNc(3,$u,4,5,"ng-container",42),e.YNc(4,vi,4,5,"ng-container",42),e.YNc(5,Ld,4,5,"ng-container",42),e.YNc(6,th,4,5,"ng-container",42),e.YNc(7,td,4,5,"ng-container",42),e.YNc(8,nd,4,5,"ng-container",42),e.YNc(9,Uu,4,3,"ng-container",43),e.BQk()()),2&u){const c=y.ngIf;e.xp6(1),e.Q6J("ngSwitch",c.errorType),e.xp6(1),e.Q6J("ngSwitchCase","invalidToken"),e.xp6(1),e.Q6J("ngSwitchCase","trailingBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","initialBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","multipleBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteExpression"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteNOT"),e.xp6(1),e.Q6J("ngSwitchCase","queryError")}}function p(u,y){1&u&&(e.TgZ(0,"span",25),e._uU(1," Append: "),e.qZA())}function h(u,y){if(1&u&&(e.TgZ(0,"button",60)(1,"strong"),e._uU(2,"Variant"),e.qZA()()),2&u){e.oxw();const c=e.MAs(37);e.Q6J("nzPopoverContent",c)}}function g(u,y){if(1&u&&(e.TgZ(0,"button",61)(1,"strong"),e._uU(2,"NOT Variant"),e.qZA()()),2&u){e.oxw();const c=e.MAs(39);e.Q6J("nzPopoverContent",c)}}function z(u,y){1&u&&(e.TgZ(0,"span",62),e._uU(1," | "),e.qZA())}function E(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("AND"))}),e.TgZ(1,"strong"),e._uU(2,"AND"),e.qZA()()}}function q(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("OR"))}),e.TgZ(1,"strong"),e._uU(2,"OR"),e.qZA()()}}function _e(u,y){1&u&&(e.TgZ(0,"span",62),e._uU(1," | "),e.qZA())}function xe(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("("))}),e.TgZ(1,"strong"),e._uU(2,"("),e.qZA()()}}function Ke(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next(")"))}),e.TgZ(1,"strong"),e._uU(2,")"),e.qZA()()}}const ft=function(){return[6,8]};function xt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",64)(1,"nz-row",2)(2,"nz-col",3)(3,"p",65),e._uU(4," Select a Gene and Variant to append its #VID. "),e.qZA()(),e.TgZ(5,"nz-col",3)(6,"cvc-mp-finder",66),e.NdJ("cvcOnVariantSelect",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onVariantSelect$.next({variant:G,prependNot:!1}))}),e.qZA()()()()}2&u&&(e.xp6(1),e.Q6J("nzGutter",e.DdM(1,ft)))}function $t(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",64)(1,"nz-row",2)(2,"nz-col",3)(3,"p",65),e._uU(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.qZA()(),e.TgZ(5,"nz-col",3)(6,"cvc-mp-finder",66),e.NdJ("cvcOnVariantSelect",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onVariantSelect$.next({variant:G,prependNot:!0}))}),e.qZA()()()()}2&u&&(e.xp6(1),e.Q6J("nzGutter",e.DdM(1,ft)))}function Gt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e._UZ(3,"cvc-entity-tag",70),e.qZA(),e.TgZ(4,"nz-list-item-meta-description"),e._uU(5),e.qZA()(),e.TgZ(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.NdJ("click",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw(2);return e.KtG(Dt.onSelectExample$.next(Ae))}),e._uU(9," Select "),e.qZA()()()()}if(2&u){const c=y.$implicit;e.xp6(3),e.Q6J("cvcLinkableEntity",c.mp),e.xp6(2),e.hij(" ",c.description," ")}}function Kt(u,y){if(1&u&&(e.TgZ(0,"div",67)(1,"nz-list",68),e.YNc(2,Gt,10,2,"nz-list-item",69),e.qZA()()),2&u){const c=e.oxw();e.xp6(2),e.Q6J("ngForOf",c.exampleExpressions)}}const Qt=function(u){return{active:u}};let hn=((Bc=class{constructor(y,c,m,G){this.previewMpGql=y,this.createMolecularProfileGql=c,this.mpEditorPrepopulate=m,this.networkErrorService=G,this.cvcOnSelect=new e.vpe,this.expressionMessages={initial:"Use the editor below to construct a molecular profile."},this.exampleExpressions=[{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND EGFR L858R AND EGFR T790M"},expression:"#VID12 AND #VID33 AND #VID34",description:"BRAF V600E, EGFR L858R, and EGFR T790M must all be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND NOT EGFR L858R"},expression:"#VID12 AND NOT #VID33",description:"BRAF V600E must be observed and EGFR L858R must be absent."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E OR EGFR L858R OR EGFR T790M"},expression:"#VID12 OR #VID33 OR #VID34",description:"Either BRAF V600E, or EGFR L858R, or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND (EGFR L858R OR EGFR T790M)"},expression:"#VID12 AND (#VID33 OR #VID34)",description:"BRAF V600E must be observed and either EGFR L858R or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"NOT KIT D816V"},expression:"NOT #VID4353",description:"KIT D816V must be absent."}],this.createMolecularProfileMutator=new qo.U(this.networkErrorService),this.onInputChange$=new ct.X(void 0),this.onAppendInput$=new Xe.x,this.onVariantSelect$=new Xe.x,this.onCreateNewMp$=new Xe.x,this.onSelectExample$=new Xe.x,this.inputValue$=new ct.X(""),this.expressionError$=new ct.X(void 0),this.expressionHelp$=new ct.X(void 0),this.expressionMessage$=new ct.X(this.expressionMessages.initial),this.expressionSegment$=new Xe.x,this.existingMp$=new Xe.x}ngAfterViewInit(){this.onInputChange$.pipe((0,yo.b)(250),(0,Fo.b)(y=>{y||this.expressionSegment$.next(void 0)}),(0,qe.h)(xo.ep),(0,Fo.b)(y=>{0===y.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,qe.h)(y=>y.length>0),(0,qe.h)(y=>" "!==y[y.length-1]),(0,Zt.U)(y=>{let c=$1(y);return"errorMessage"in c?c:this.previewQueryRef.refetch({mpStructure:c})}),(0,ve.t)(this)).subscribe(y=>{if(this.isMpParseError(y)){const c=y;this.expressionMessage$.next(void 0),this.expressionError$.next(c),this.expressionSegment$.next(void 0)}else y.then(({data:m,errors:G})=>{if(G)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:G.map(Ae=>Ae.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(m.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(m.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,ve.t)(this)).subscribe(y=>{if(this.expressionEditor){const c=this.expressionEditor.nativeElement,G=`${c.value}${/\s+$/.test(y)?y:" "+y}`;c.value=G,this.inputValue$.next(G),this.onInputChange$.next(G)}}),this.onSelectExample$.pipe((0,ve.t)(this)).subscribe(y=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=y.expression,this.inputValue$.next(y.expression),this.onInputChange$.next(y.expression))}),this.onVariantSelect$.pipe((0,it.M)(this.onInputChange$),(0,Zt.U)(([y,c])=>{const m=`${y.prependNot?"NOT ":""}#VID${y.variant.id}`;return c&&0!=c.trim().length?`${c.trim()} ${m}`:m}),(0,ve.t)(this)).subscribe(y=>{this.inputValue$.next(y),this.onInputChange$.next(y)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,Cn.j)("data","previewMolecularProfileName"),(0,qe.h)(xo.ep),(0,Zt.U)(y=>y.segments),(0,ve.t)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,Cn.j)("data","previewMolecularProfileName"),(0,qe.h)(xo.ep),(0,Zt.U)(y=>y.existingMolecularProfile),(0,ve.t)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,Cn.j)("data","previewMolecularProfileName"),(0,qe.h)(xo.ep),(0,Zt.U)(y=>y.deprecatedVariants),(0,ve.t)(this)),this.onCreateNewMp$.pipe((0,it.M)(this.onInputChange$),(0,ve.t)(this)).subscribe(([y,c])=>{if(!c||0===c.length)return;let m=$1(c);"errorMessage"in m||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:m},{},G=>{setTimeout(()=>{G.createMolecularProfile&&this.cvcOnSelect.next(G.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(y){return void 0!==y.errorMessage}prepopulateMp(y){if(!y)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");yu(this.mpEditorPrepopulate.fetch({mpId:y},{fetchPolicy:"cache-first"})).then(({data:c})=>{if(!c?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${y} to prepolate editor fields.`);const m=c.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(m),this.onInputChange$.next(m)})}ngOnChanges(y){y.cvcPrepopulateWithId&&this.prepopulateMp(y.cvcPrepopulateWithId.currentValue)}}).\u0275fac=function(y){return new(y||Bc)(e.Y36(Fn.mki),e.Y36(Fn.zpu),e.Y36(Fn.vjc),e.Y36(Vo.Y))},Bc.\u0275cmp=e.Xpm({type:Bc,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(y,c){if(1&y&&e.Gf(Hu,5),2&y){let m;e.iGM(m=e.CRH())&&(c.expressionEditor=m.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.TTD],decls:42,vars:23,consts:[["entityType","Molecular Profile",3,"mutationState","successMessage"],["success",""],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["errorAlert",""],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModel","ngModelChange"],["expressionEditor",""],[1,"btn-row"],["nzFlex","80px"],["nzBlock","","nz-button","","nzType","primary","nzShape","round","nzSize","small","nz-popover","","nzPopoverTitle","Select a Profile to view its expression","nzPopoverTrigger","click","nzPopoverPlacement","bottomLeft",3,"nzPopoverContent"],["nzFlex","auto",2,"text-align","right"],["nz-typography","","nzType","secondary",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["class","btn-divider",4,"nzSpaceItem"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click",4,"nzSpaceItem"],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["messageAction",""],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["gettingStartedHelp",""],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["selectAction",""],["foundMessage",""],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["createAction",""],["createMessage",""],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["errorAction",""],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["invalidTokenHelp",""],["cvcErrorType","invalidToken"],["trailingBooleanHelp",""],["cvcErrorType","trailingBoolean"],["initialBooleanHelp",""],["cvcErrorType","initialBoolean"],["multipleBooleanHelp",""],["cvcErrorType","multipleBoolean"],["incompleteExpressionHelp",""],["cvcErrorType","incompleteExpression"],["incompleteNOTHelp",""],["cvcErrorType","incompleteNOT"],["queryErrorHelp",""],["cvcErrorType","identicalVariants"],["cvcErrorType","unknownVariant"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],[1,"btn-divider"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click"],[1,"append-popover-contents"],["nz-typography","","nzType","secondary",2,"margin","0","padding-bottom","2px"],[3,"cvcOnVariantSelect"],[2,"min-width","525px","margin","-8px -12px"],["nzSize","small","nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],[3,"cvcLinkableEntity"],["nz-list-item-actions",""],["type","button","nz-button","","nzType","primary","nzSize","small",3,"click"]],template:function(y,c){if(1&y&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,mp,1,0,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-row",2)(4,"nz-col",3)(5,"div",4),e.ALo(6,"ngrxPush"),e.YNc(7,W1,3,2,"ng-container",5),e.ALo(8,"ngrxPush"),e.qZA()(),e.TgZ(9,"nz-col",3),e.YNc(10,Z1,4,2,"ng-container",6),e.ALo(11,"ngrxPush"),e.YNc(12,vp,4,5,"ng-container",5),e.YNc(13,Nd,3,2,"ng-template",null,7,e.W1O),e.YNc(15,T,10,8,"ng-container",6),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"nz-col",3)(18,"textarea",8,9),e.NdJ("ngModelChange",function(G){return c.onInputChange$.next(G)}),e.ALo(20,"ngrxPush"),e.qZA()()(),e.TgZ(21,"nz-row",10)(22,"nz-col",11)(23,"button",12),e._uU(24," Examples "),e.qZA()(),e.TgZ(25,"nz-col",13)(26,"nz-space"),e.YNc(27,p,2,0,"span",14),e.YNc(28,h,3,1,"button",15),e.YNc(29,g,3,1,"button",16),e.YNc(30,z,2,0,"span",17),e.YNc(31,E,3,0,"button",18),e.YNc(32,q,3,0,"button",18),e.YNc(33,_e,2,0,"span",17),e.YNc(34,xe,3,0,"button",18),e.YNc(35,Ke,3,0,"button",18),e.qZA()(),e.YNc(36,xt,7,2,"ng-template",null,19,e.W1O),e.YNc(38,$t,7,2,"ng-template",null,20,e.W1O),e.YNc(40,Kt,3,1,"ng-template",null,21,e.W1O),e.qZA()()),2&y){const m=e.MAs(2),G=e.MAs(41);e.Q6J("mutationState",c.state)("successMessage",m),e.xp6(3),e.Q6J("nzGutter",e.DdM(20,ft)),e.xp6(2),e.Q6J("ngClass",e.VKq(21,Qt,void 0!==e.lcZ(6,10,c.expressionSegment$))),e.xp6(2),e.Q6J("ngrxLet",e.lcZ(8,12,c.expressionSegment$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(11,14,c.expressionMessage$)),e.xp6(2),e.Q6J("ngrxLet",c.existingMp$),e.xp6(3),e.Q6J("ngIf",e.lcZ(16,16,c.expressionError$)),e.xp6(3),e.Q6J("ngModel",e.lcZ(20,18,c.inputValue$)),e.xp6(5),e.Q6J("nzPopoverContent",G)}},dependencies:[M.mk,M.sg,M.O5,M.tP,M.RF,M.n9,M.ED,t.Fj,t.JJ,t.On,R.eJ,Xt.r,Vn.ix,Zo.w,Ko.dQ,st.Ls,je.Zp,pe.t3,pe.SK,Tt.NU,Tt.$1,me.ZU,Xn.lU,_r.n_,_r.AA,_r.yi,_r.IO,_r.Pb,_r.nk,_r.KC,_i.F,Nl.C,Po.J,ss,Q1,M.Ts,R.fM],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6;border:1px solid #dedede;border-radius:4px;padding:8px}.expression-preview[_ngcontent-%COMP%]{width:100%;padding:8px;border:1px solid #dedede;border-radius:4px}.expression-preview.active[_ngcontent-%COMP%]{background-color:#fff}.append-popover-contents[_ngcontent-%COMP%]{min-width:450px}.help-content[_ngcontent-%COMP%]{max-width:500px}.btn-row[_ngcontent-%COMP%]{margin-top:10px;flex-wrap:nowrap}.btn-row[_ngcontent-%COMP%] .btn-divider[_ngcontent-%COMP%]{color:#aaa}"],changeDetection:0}),Bc);hn=(0,Ce.gn)([(0,ve.c)()],hn);const En=["optionTemplates"];function Yn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-mp-finder",11),e.NdJ("cvcOnSelect",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onMpSelect$.next(G))}),e.qZA()}}function on(u,y){1&u&&(e.TgZ(0,"div",12),e._uU(1," \xa0 "),e.TgZ(2,"span",13)(3,"i"),e._uU(4,"Select or create a Molecular Profile with the expression editor "),e.qZA()()())}function gn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",14)(1,"cvc-entity-select",15),e.NdJ("cvcOnSearch",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onSearch$.next(G))})("cvcOnModelChange",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.props.change&&Ae.props.change(Ae.field,G))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2),m=e.MAs(13);e.xp6(1),e.Q6J("cvcSelectMode",c.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",m)("cvcFormControl",c.formControl)("cvcFormlyAttributes",c.field)("cvcEntityName",c.props.entityName)("cvcPlaceholder",c.props.placeholder)("cvcResults",e.lcZ(2,15,c.result$))("cvcDisabled",c.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.lcZ(3,17,c.selectOption$))("cvcShowError",c.showError)("cvcLoading",e.lcZ(4,19,c.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function $n(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Yn,1,0,"cvc-mp-finder",8),e.YNc(2,on,5,0,"div",9),e.YNc(3,gn,5,21,"div",10),e.BQk()),2&u){const c=y.ngrxLet,m=e.oxw();e.xp6(1),e.Q6J("ngIf",c.showFinder&&!m.editorOpen),e.xp6(1),e.Q6J("ngIf",m.editorOpen),e.xp6(1),e.Q6J("ngIf",c.showSelect&&!m.editorOpen)}}function Ln(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",16)(1,"cvc-mp-expression-editor",17),e.NdJ("cvcOnSelect",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onMpSelect$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcPrepopulateWithId",e.lcZ(2,1,c.onMpId$))}}function ao(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",24),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.molecularProfileAliases.join(", "),m),e.oJD)}}function So(u,y){1&u&&e._uU(0,"--")}function xi(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",20),e.TgZ(1,"span",21),e._uU(2," Aliases: "),e.YNc(3,ao,4,4,"ng-container",22),e.YNc(4,So,1,0,"ng-template",null,23,e.W1O),e.qZA()),2&u){const c=e.MAs(5),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(3),e.Q6J("ngIf",m.molecularProfileAliases.length>0)("ngIfElse",c)}}function Si(u,y){1&u&&(e.ynx(0),e.YNc(1,xi,6,5,"ng-template",null,19,e.W1O),e.BQk())}function as(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Si,3,0,"ng-container",18),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Hi(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",25)(1,"cvc-entity-tag",26),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","MolecularProfile:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const yr=function(){return[8,12]},ju=function(u,y){return{show:u,hide:y}},Yc=kt(at(),oi());let oo=(()=>{class u extends Yc{constructor(c,m,G,Ae){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.apollo=Ae,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",isMultiSelect:!1,description:"Select a Gene and Variant to specify a simple Molecular Profile.",extraType:"prompt",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new ct.X(void 0),this.onMpId$=new Ao.t,this.onShowExpClick$=new Xe.x,this.showExp$=this.onShowExpClick$.pipe((0,to.R)((Dt,Mn)=>!Dt,!1),(0,Fo.b)(Dt=>this.editorOpen=Dt)),this.selectDisplay$=new ct.X({showFinder:!0,showSelect:!1})}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.initialDescription=this.props.description,this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{const m=void 0!==c;this.selectDisplay$.next({showFinder:!m,showSelect:m}),this.onMpId$.next(c),this.props.description=c?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.selectOption$.next([{label:c.name,value:c.id}]),this.editorOpen&&this.onShowExpClick$.next(),this.cdr.detectChanges(),this.field.formControl.setValue(c.id)):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(c,m){return{name:c,geneId:m}}getTypeaheadResultsFn(c){return c.data.molecularProfiles.nodes}getTagQueryVarsFn(c){return{molecularProfileId:c}}getTagQueryResultsFn(c){return c.data.molecularProfile}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.F4e),e.Y36(Fn.dGO),e.Y36(e.sBO),e.Y36(_o._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ng-component"]],viewQuery:function(c,m){if(1&c&&e.Gf(En,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:14,vars:16,consts:[[3,"nzGutter"],["nzFlex","auto"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","","nz-tooltip","","nzTooltipTitle","Add/Edit Complex MP Expression",1,"expression-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","editor-drawer",4,"ngIf"],["selectedTemplate",""],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["style","display: inline-block",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[2,"display","inline-block"],[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow","cvcOnSearch","cvcOnModelChange"],["nzSpan","24",1,"editor-drawer"],[3,"cvcPrepopulateWithId","cvcOnSelect"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.YNc(2,$n,4,3,"ng-container",2),e.qZA(),e.TgZ(3,"nz-col",3)(4,"button",4),e.NdJ("click",function(){return m.onShowExpClick$.next()}),e._UZ(5,"span",5),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e._uU(8,"Editor "),e.qZA()(),e.YNc(9,Ln,3,3,"nz-col",6),e.ALo(10,"ngrxPush"),e.qZA(),e.YNc(11,as,3,3,"ng-container",2),e.YNc(12,Hi,2,3,"ng-template",null,7,e.W1O)),2&c&&(e.Q6J("nzGutter",e.DdM(12,yr)),e.xp6(2),e.Q6J("ngrxLet",m.selectDisplay$),e.xp6(3),e.Q6J("ngClass",e.WLB(13,ju,e.lcZ(6,6,m.showExp$),!e.lcZ(7,8,m.showExp$)))("nzType","caret-right"),e.xp6(4),e.Q6J("ngIf",e.lcZ(10,10,m.showExp$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$))},dependencies:[M.mk,M.sg,M.O5,R.eJ,Vn.ix,Zo.w,Ko.dQ,st.Ls,pe.t3,pe.SK,me.ZU,Ye.SY,Oo,Po.J,hn,ss,R.fM,J.A],styles:["form[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}form[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}.editor-message[_ngcontent-%COMP%]{padding:3px;background-color:#f5f5f5;cursor:default;border-radius:2px}"],data:{animation:[xd.mF,xd.MC]},changeDetection:0}),u})();const po={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:oo},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:oo,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let Mo=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,t.UX,v.X0.forChild(po),Xt.L,Vn.sL,Ne.LV,vo.Qp,st.PV,je.o7,pe.Jb,Tt.zf,s.U5,Te.ic,me.ZJ,Ye.cg,Xn.$6,Tt.zf,Jt.Wr,_r.Ph,zn.g,Vc.r,Bt,Un,Ve.s,$e.x]}),u})();var Jo=a(3702);const Yi=["optionTemplates"];function Hs(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.ALo(3,"formatAmp"),e.qZA()(),e.TgZ(4,"span",4),e._uU(5),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw();e.xp6(2),e.Oqu(e.xi3(3,2,c,"verbose")),e.xp6(3),e.Oqu(m.descriptionForCategory(c))}}function br(u,y){1&u&&(e.ynx(0),e.YNc(1,Hs,6,5,"ng-template",null,3,e.W1O),e.BQk())}function Ms(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",8),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.ALo(3,"formatAmp"),e.qZA()()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,c.nzValue,"verbose"))}}function Di(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.ALo(2,"formatAmp"),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,c.nzValue,"verbose")," ")}}function Bd(u,y){if(1&u&&(e.TgZ(0,"div",5),e.YNc(1,Ms,4,4,"nz-tag",6),e.YNc(2,Di,3,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const Hd=new Map([[Fn.iwm.Na,"Not Applicable"],[Fn.iwm.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[Fn.iwm.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[Fn.iwm.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[Fn.iwm.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[Fn.iwm.TierIii,"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."],[Fn.iwm.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),ur=kt(at(),Ot());let Ys=(()=>{class u extends ur{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"AMP/ASCO/CAP Category",required:!1,isMultiSelect:!1,placeholder:"Select AMP/ASCO/CAP Category"}},this.ampCategoryEnum$=new ct.X([])}descriptionForCategory(c){return Hd.get(c)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.ampCategoryEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.configurePlaceholder()}configureStateConnections(){this.props.tooltip="If applicable, please provide the AMP/ASCO/CAP somatic variant classification.",this.ampCategoryEnum$.next((0,To.o6)(Fn.iwm).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m))),this.state&&(this.state.requires.requiresAmpLevel$?this.onRequiresAmpCategory$=this.state.requires.requiresAmpLevel$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAmpLevel$ subject to attach.`),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.extraType=void 0,this.props.description=Hd.get(c)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new ct.X(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,j.x)(),(0,ve.t)(this)).subscribe(c=>{this.props.extraType=void 0,c?(this.formControl.value||(this.props.extraType="description",this.props.description='Please provide the AMP/ASCO/CAP somatic variant classification.'),this.props.required=!0,this.props.disabled=!1):(this.props.required=!1,this.props.disabled=!0,this.resetField()),this.cdr.markForCheck()})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Yi,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,br,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,Bd,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.ampCategoryEnum$))}},dependencies:[M.sg,M.O5,wt.j,me.ZU,K,R.fM,Jo.t]}),u})();const qr={types:[{name:"amp-category-select",wrappers:["form-field"],component:Ys},{name:"amp-category-multi-select",wrappers:["form-field"],component:Ys,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let Gu=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(qr),wt.X,me.ZJ,Ve.s,Bt,De]}),u})();const Yd=["optionTemplates"];function Zh(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em")(2,"span",6),e._uU(3),e.qZA()(),e.BQk()),2&u){const c=e.oxw(2).$implicit;e.xp6(3),e.Oqu(c.description)}}function Mp(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA(),e.TgZ(2,"span",6),e.YNc(3,Zh,4,1,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.code),e.xp6(2),e.Q6J("ngIf",c.description)}}function bp(u,y){1&u&&(e.ynx(0),e.YNc(1,Mp,4,2,"ng-template",null,4,e.W1O),e.BQk())}function Kh(u,y){if(1&u&&(e.ynx(0),e.YNc(1,bp,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function nh(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",8)(1,"cvc-entity-tag",9),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Sp=kt(at(),oi());let od=(()=>{class u extends Sp{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"ACMG/AMP Code",plural:"ACMG/AMP Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP.",placeholder:"Search ACMG/AMP Codes",requireTypePromptFn:(Ae,Dt)=>`Select an ${Ae} Type to search associated ACMG Code(s)`}},this.placeholder$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresAcmgCodes$?this.onRequiresAcmgCode$=this.state.requires.requiresAcmgCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAcmgCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresAcmgCode$&&this.onEntityType$&&(0,Do.a)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,j.x)(),(0,ve.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ie.E)(m)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.acmgCodesTypeahead}getTagQueryResultsFn(c){return c.data.acmgCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>(console.log(G),{label:m.get(Ae)||G.code,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.O2u),e.Y36(Fn.AIY),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Yd,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,Kh,3,3,"ng-container",1),e.YNc(7,nh,2,5,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresAcmgCode$&&!e.lcZ(4,18,m.onRequiresAcmgCode$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,Ye.SY,me.ZU,wt.j,Oo,Po.J,R.fM],changeDetection:0}),u})();const oh={types:[{name:"acmg-code-select",wrappers:["form-field"],component:od,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:od,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let ih=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(oh),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x,os]}),u})();const Jh=["optionTemplates"];function rh(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em")(2,"span",6),e._uU(3),e.qZA()(),e.BQk()),2&u){const c=e.oxw(2).$implicit;e.xp6(3),e.Oqu(c.description)}}function a2(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA(),e.TgZ(2,"span",6),e.YNc(3,rh,4,1,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.code),e.xp6(2),e.Q6J("ngIf",c.description)}}function qh(u,y){1&u&&(e.ynx(0),e.YNc(1,a2,4,2,"ng-template",null,4,e.W1O),e.BQk())}function id(u,y){if(1&u&&(e.ynx(0),e.YNc(1,qh,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Xh(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",8)(1,"cvc-entity-tag",9),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Qu=kt(at(),oi());let Wu=(()=>{class u extends Qu{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.exclusiveCodes=new Set,this.exclusiveSelected=!1,this.defaultOptions={props:{entityName:{singular:"ClinGen/CGC/VICC Code",plural:"ClinGen/CGC/VICC Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity).",placeholder:"Search ClinGen/CGC/VICC Codes",requireTypePromptFn:(Ae,Dt)=>`Select an ${Ae} Type to search associated ClinGen Code(s)`}},this.placeholder$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders(),this.onValueChange$.pipe((0,ve.t)(this)).subscribe(c=>{if(c&&Array.isArray(c)&&c.length>1){const m=c.find(G=>this.exclusiveCodes.has(G));m?(this.previousDescription=this.props.description,this.previousDescriptionType=this.props.extraType,this.props.description="You have selected N/A which precludes selecting any other codes. Please remove it if you wish to select additional codes.",this.exclusiveSelected=!0,this.formControl.setValue([m])):this.exclusiveSelected=!1}this.previousDescription&&!this.exclusiveSelected&&(this.props.description=this.previousDescription,this.props.extraType=this.previousDescriptionType),this.cdr.detectChanges()})}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresClingenCodes$?this.onRequiresClingenCode$=this.state.requires.requiresClingenCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresClingenCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresClingenCode$&&this.onEntityType$&&(0,Do.a)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,j.x)(),(0,ve.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ie.E)(m)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide the evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity) in Horak et. al. 2022.. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.clingenCodesTypeahead.forEach(m=>{m.exclusive&&this.exclusiveCodes.add(m.id)}),c.data.clingenCodesTypeahead}getTagQueryResultsFn(c){return c.data.clingenCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.code,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.E2B),e.Y36(Fn.R8F),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Jh,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,id,3,3,"ng-container",1),e.YNc(7,Xh,2,5,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresClingenCode$&&!e.lcZ(4,18,m.onRequiresClingenCode$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,Ye.SY,me.ZU,wt.j,Oo,Po.J,R.fM],changeDetection:0}),u})();const e4={types:[{name:"clingen-code-select",wrappers:["form-field"],component:Wu,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:Wu,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let sh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(e4),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x,os]}),u})();const t4=["optionTemplates"];function n4(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.name)}}function o4(u,y){1&u&&(e.ynx(0),e.YNc(1,n4,2,1,"ng-template",null,4,e.W1O),e.BQk())}function ah(u,y){if(1&u&&(e.ynx(0),e.YNc(1,o4,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function i4(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",6)(1,"cvc-entity-tag",7),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Ep=kt(at(),oi());let Zu=(()=>{class u extends Ep{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"NCCN Guideline",plural:"NCCN Guidelines"},isMultiSelect:!1,requireType:!1,tooltip:"If applicable, please provide cancer (e.g., Breast Cancer) for the appropriate NCCN guideline.",placeholder:"Search NCCN Guidelines"}},this.placeholder$=new ct.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.nccnGuidelinesTypeahead}getTagQueryResultsFn(c){return c.data.nccnGuideline}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.sA8),e.Y36(Fn.N$2),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(t4,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:8,vars:20,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA(),e.YNc(5,ah,3,3,"ng-container",1),e.YNc(6,i4,2,4,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(7);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",!1)("cvcLoading",e.lcZ(4,18,m.isLoading$)),e.xp6(5),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,R.eJ,Ye.SY,wt.j,Oo,Po.J,R.fM],changeDetection:0}),u})();const ch={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:Zu,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:Zu,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let c2=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ch),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x,os]}),u})();const xp=kt(at()),$d={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends xp{constructor(c){super(),this.cdr=c,this.defaultDescription="Please enter the version of the NCCN guideline you're referencing in the format Version.Year",this.defaultOptions={validators:{nccnVersionNumber:{expression:m=>{if(m.value){if(/^\d{1,2}\.\d{4}$/.test(m.value)){let G=+m.value.split(".")[1];return G>=2e3&&G<=(new Date).getFullYear()+1}return!1}return!0},message:(m,G)=>`"${G.formControl?.value}" does not fit the format Version.Year`}},props:{label:"NCCN Guideline Version",extraType:"description",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.required=!0,this.props.extraType="description",this.props.description=this.defaultDescription):(this.props.disabled=!0,this.props.required=!1,this.props.extraType="prompt",this.props.description="NCCN Guideline Version is only required when NCCN Guideline is specified.",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.qOj],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(c,m){1&c&&e._UZ(0,"input",0),2&c&&e.Q6J("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[t.Fj,t.JJ,t.oH,v.JD,je.Zp],encapsulation:2,changeDetection:0}),u})(),wrappers:["form-field"]}]};let lh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild($d),je.o7,Bt]}),u})();const uh=kt(at()),r4={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends uh{constructor(){super(...arguments),this.defaultDescription="Check this if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",this.defaultOptions={props:{hideLabel:!1,label:"FDA Regulatory Approval",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Regulatory Approval does not apply to this Assertion Type",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Jt.Ie,v.JD],changeDetection:0}),u})()}]};let s4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Jt.Wr,v.X0.forChild(r4),Bt]}),u})();const a4=kt(at()),l4={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends a4{constructor(){super(...arguments),this.defaultDescription='Select Yes if an FDA approved companion test exists for the variant and therapy associated with the Assertion (such as tests listed here).',this.defaultOptions={props:{hideLabel:!1,label:"FDA Companion Test",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,qe.h)(c=>c),(0,Ti.q)(1),(0,ve.t)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,ve.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Companion Test only applies when Regulatory Approval is selected",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Jt.Ie,v.JD],changeDetection:0}),u})()}]};let Dp=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Jt.Wr,v.X0.forChild(l4),Bt]}),u})();const Vl=["optionTemplates"];function Ka(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.qZA()()),2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c)}}function dh(u,y){1&u&&(e.ynx(0),e.YNc(1,Ka,3,1,"ng-template",null,3,e.W1O),e.BQk())}function u2(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",7),e.NdJ("nzOnClose",function(G){e.CHM(c);const Ae=e.oxw(2);return e.KtG(Ae.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.qZA()()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c.nzValue)}}function u4(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",c.nzValue," ")}}function d2(u,y){if(1&u&&(e.TgZ(0,"div",4),e.YNc(1,u2,3,1,"nz-tag",5),e.YNc(2,u4,2,1,"ng-container",6),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const p2=kt(at(),Ot());let Op=(()=>{class u extends p2{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Reference Build",required:!1,isMultiSelect:!1,description:"Select the human genome reference sequence from which these coordinates are obtained",placeholder:"Select Reference Build"}},this.buildEnum$=new ct.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new ct.X(this.props.placeholder),this.buildEnum$.next((0,To.o6)(Fn.JDX).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Zt.U)(c=>c.map(m=>m)))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Vl,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,dh,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,d2,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.buildEnum$))}},dependencies:[M.sg,M.O5,wt.j,K,R.fM]}),u})();const ph={types:[{name:"reference-build-select",wrappers:["form-field"],component:Op},{name:"reference-build-multi-select",wrappers:["form-field"],component:Op,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let h2=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ph),wt.X,Ve.s,Bt,De]}),u})();const hh=["optionTemplates"];function sd(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",8),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.soid,m),e.oJD)}}function fh(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,sd,4,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.soid)}}function mh(u,y){1&u&&(e.ynx(0),e.YNc(1,fh,3,4,"ng-template",null,4,e.W1O),e.BQk())}function gh(u,y){if(1&u&&(e.ynx(0),e.YNc(1,mh,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Lo(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",9)(1,"cvc-entity-tag",10),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw();return e.KtG(Dt.onTagClose$.next(Ae.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","VariantType:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const vh=kt(at(),oi());let wp=(()=>{class u extends vh{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"VariantType",plural:"VariantTypes"},isMultiSelect:!1,placeholders:{default:"Search Variant Types",multiDefault:"Select VariantType(s)"},description:'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.',extraType:"prompt"}},this.placeholder$=new ct.X(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.variantTypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.variantType}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Ae)=>({label:m.get(Ae)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(Fn.jmY),e.Y36(Fn._nE),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(hh,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:8,vars:19,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Ae){return m.onSearch$.next(Ae)})("cvcOnOpenChange",function(Ae){return m.onOpenChange$.next(Ae)})("cvcOnModelChange",function(Ae){return m.props.change&&m.props.change(m.field,Ae)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA(),e.YNc(5,gh,3,3,"ng-container",1),e.YNc(6,Lo,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(7);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,11,m.placeholder$))("cvcResults",e.lcZ(2,13,m.result$))("cvcOptions",e.lcZ(3,15,m.selectOption$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(4,17,m.isLoading$)),e.xp6(5),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,R.eJ,me.ZU,Oo,Po.J,R.fM,J.A],changeDetection:0}),u})();const f2={types:[{name:"variant-type-select",wrappers:["form-field"],component:wp,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:wp,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let d4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(f2),Xt.L,Vn.sL,Ne.LV,Xn.$6,vo.Qp,st.PV,je.o7,pe.Jb,Ye.cg,Tt.zf,s.U5,Te.ic,me.ZJ,wt.X,Bt,Un,Ve.s,$e.x]}),u})();var Ta=a(1022);function p4(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-string-tag",5),e.NdJ("cvcOnClose",function(){const Ae=e.CHM(c).$implicit,Dt=e.oxw(2);return e.KtG(Dt.tagClosed(Ae))}),e.qZA()}if(2&u){const c=y.$implicit;e.Q6J("cvcMode","closeable")("cvcLabel",c)}}function h4(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div"),e.YNc(1,p4,1,2,"cvc-string-tag",3),e.ALo(2,"ngrxPush"),e.TgZ(3,"input",4),e.NdJ("keydown.enter",function(G){e.CHM(c);const Ae=e.oxw();return e.KtG(Ae.onEnter(G))}),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,2,c.clinvarIds$)),e.xp6(2),e.Q6J("placeholder",c.props.placeholder)}}const _h=kt(at(),Ra);let yh=(()=>{class u extends _h{constructor(c){super(),this.cdr=c,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return"}},this.clinvarIds$=new ct.X([]),this.values=new Set,this.showClinvarIdEntry$=new ct.X(!1),this.selectModel=void 0,this.selectOptions=[{value:Ta.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:Ta.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:Ta.li.Found,label:"Clinvar IDs were found for this variant"},{value:void 0,label:""}]}optionSelected(c){const m=c;this.values.clear(),this.clinvarIds$.next([]),null!=m?m==Ta.li.Found?(this.showClinvarIdEntry$.next(!0),this.formControl.setValue([])):m==Ta.li.NoneFound?(this.showClinvarIdEntry$.next(!1),this.formControl.setValue(["NONE FOUND"])):m==Ta.li.NotApplicable&&(console.log("HERE"),this.showClinvarIdEntry$.next(!1),this.formControl.setValue(["NA"])):(this.showClinvarIdEntry$.next(!1),this.formControl.setValue([]),this.clinvarIds$.next([]))}onEnter(c){let m=c.target;m.value&&(this.values.add(m.value),m.value="");let G=Array.from(this.values);this.clinvarIds$.next(G),this.formControl.setValue(G)}tagClosed(c){this.values.delete(c);let m=Array.from(this.values);this.clinvarIds$.next(m),this.formControl.setValue(m),this.clinvarIds$.next(m)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField();const c=this.formControl.value;c&&Array.isArray(c)&&("NONE FOUND"==c[0]?this.selectModel=Ta.li.NoneFound:"N/A"==c[0]?this.selectModel=Ta.li.NotApplicable:(this.selectModel=Ta.li.Found,c.forEach(m=>this.values.add(m)),this.showClinvarIdEntry$.next(!0)),this.clinvarIds$.next(c),this.cdr.detectChanges())}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-clinvar-input"]],features:[e.qOj],decls:4,vars:7,consts:[["nzAllowClear","",3,"nzOptions","ngModel","ngModelChange"],[4,"ngIf"],["hidden","","nz-input","",3,"formControl","formlyAttributes"],[3,"cvcMode","cvcLabel","cvcOnClose",4,"ngFor","ngForOf"],["nz-input","",3,"placeholder","keydown.enter"],[3,"cvcMode","cvcLabel","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(Ae){return m.optionSelected(Ae)}),e.qZA(),e.YNc(1,h4,4,4,"div",1),e.ALo(2,"ngrxPush"),e._UZ(3,"input",2)),2&c&&(e.Q6J("nzOptions",m.selectOptions)("ngModel",m.selectModel),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,5,m.showClinvarIdEntry$)),e.xp6(2),e.Q6J("formControl",m.formControl)("formlyAttributes",m.field))},dependencies:[M.sg,M.O5,t.Fj,t.JJ,t.oH,t.On,v.JD,je.Zp,Ne.Vq,vl,R.fM],changeDetection:0}),u})();const Ch={types:[{name:"clinvar-input",wrappers:["form-field"],component:yh},{name:"clinvar-multi-input",wrappers:["form-field"],component:yh,defaultOptions:{props:{isRepeatItem:!0}}}]};let f4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,t.u5,v.X0.forChild(Ch),He.F,je.o7,s.U5,Ne.LV,os]}),u})();const g2={types:[{name:"cvc-cancel-button",component:(()=>{class u extends v.fS{constructor(c){super(),this.location=c}cancelClicked(){this.location.back()}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(M.Ye))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-cancel-button"]],features:[e.qOj],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(c,m){1&c&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return m.cancelClicked()}),e._uU(1," Cancel\n"),e.qZA())},dependencies:[Vn.ix,Zo.w,Ko.dQ],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0}),u})()}]};let zh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(g2),Vn.sL]}),u})(),Th=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Tr,_1,z1,Xc,zs,ks,H,dn,tl,cn,An,Ns,Ql,vr,Ha,Ba,cc,Mo,ta,Gu,ih,sh,c2,lh,s4,Dp,h2,d4,f4,zh]}),u})();var cs;function Ku(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.hij(" ",c.props.addFormTitle,"\n")}}const Mh=function(){return[6,6]};let Pp=((cs=class extends v.n2{constructor(){super(),this.contentTemplate$=new Ao.t}ngAfterViewInit(){this.field.props&&this.field.props.addFormContent?this.contentTemplate$.next(this.field.props.addFormContent):console.error(`${this.field.id} add-entity-form wrapper failed to find parent field's props.addFormContent TemplateRef.`)}}).\u0275fac=function(y){return new(y||cs)},cs.\u0275cmp=e.Xpm({type:cs,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.qOj],decls:10,vars:7,consts:[[3,"nzGutter"],["nzFlex","auto"],["fieldComponent",""],["nzFlex","20px"],["type","button","nz-button","","nzType","primary","nzSize","default","nzShape","circle","nz-popover","",3,"disabled","nzPopoverTitle","nzPopoverContent"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["titleTemplate",""]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA(),e.TgZ(4,"nz-col",3)(5,"button",4),e.ALo(6,"ngrxPush"),e._UZ(7,"span",5),e.qZA()()(),e.YNc(8,Ku,1,1,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(9);e.Q6J("nzGutter",e.DdM(6,Mh)),e.xp6(5),e.Q6J("disabled",null==c.field.props?null:c.field.props.disabled)("nzPopoverTitle",m)("nzPopoverContent",e.lcZ(6,4,c.contentTemplate$))}},dependencies:[Vn.ix,Zo.w,Ko.dQ,Xn.lU,st.Ls,pe.t3,pe.SK,R.fM],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0}),cs);Pp=(0,Ce.gn)([(0,ve.c)()],Pp);const Ud={wrappers:[{name:"add-entity-form",component:Pp}]};let Ju=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,v.X0.forChild(Ud),Vn.sL,Xn.$6,st.PV,pe.Jb]}),u})();const ad={wrappers:[{name:"field-grid",component:(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}ngOnInit(){this.props.grid={cols:2,...this.props.grid?this.props.grid:void 0}}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-field-grid"]],features:[e.qOj],decls:3,vars:1,consts:[[1,"field-grid",3,"ngClass"],["fieldComponent",""]],template:function(c,m){1&c&&(e.TgZ(0,"div",0),e.GkF(1,null,1),e.qZA()),2&c&&e.Q6J("ngClass","cols-"+m.props.grid.cols)},dependencies:[M.mk],styles:[".field-grid.cols-2[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.field-grid.cols-3[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.field-grid.cols-4[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}"],changeDetection:0}),u})()}]};let Sh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,s.U5,pe.Jb,v.X0.forChild(ad)]}),u})();function Ip(u,y){if(1&u&&(e.TgZ(0,"nz-col",4),e._UZ(1,"formly-field",5),e.qZA()),2&u){const c=y.$implicit;e.Q6J("nzSpan",(null==c.props?null:c.props.colSpan)||12),e.xp6(1),e.Q6J("field",c)}}function jd(u,y){}const Gd=function(){return[6,6]},m4={wrappers:[{name:"form-card",component:(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}constructor(){super()}ngOnInit(){this.props.gutterHorizontal=this.props.gutterHorizontal||8,this.props.gutterVertical=this.props.gutterVertical||8}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-card"]],features:[e.qOj],decls:5,vars:5,consts:[[3,"nzTitle","nzExtra"],[3,"nzGutter"],[3,"nzSpan",4,"ngFor","ngForOf"],["cardExtra",""],[3,"nzSpan"],[3,"field"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-card",0)(1,"nz-row",1),e.YNc(2,Ip,2,2,"nz-col",2),e.qZA()(),e.YNc(3,jd,0,0,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(4);e.Q6J("nzTitle",m.props.title)("nzExtra",G),e.xp6(1),e.Q6J("nzGutter",e.DdM(4,Gd)),e.xp6(1),e.Q6J("ngForOf",m.field.fieldGroup)}},dependencies:[M.sg,v.cw,pe.t3,pe.SK,In.bd]}),u})()}]};let g4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,v.X0.forChild(m4),pe.Jb,In.vh,Jt.Wr]}),u})();const _4={wrappers:[{name:"form-footer",component:(()=>{class u extends v.n2{ngOnInit(){}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-footer"]],features:[e.qOj],decls:4,vars:0,consts:[[1,"form-footer"],["nzSpan","24",1,"submit-col"],["fieldComponent",""]],template:function(c,m){1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA()())},dependencies:[pe.t3,pe.SK],styles:[".form-footer[_ngcontent-%COMP%]{margin-top:1em;border-radius:8px;background-color:#f0f0f0;padding:1em}.submit-col[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0}),u})()}]};let y4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,pe.Jb,v.X0.forChild(_4)]}),u})();var C4=a(9333),Fp=a(8125),cd=a(9382);let xh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,st.PV,pe.Jb,In.vh,cd.we,Fp.q6,_r.Ph,wt.X,me.ZJ,L.s]}),u})(),z4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Vn.sL,io.Rt,Hn.b1]}),u})();var _2=a(553);const bs={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let T4=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(c){this._status=c,this.tagColor=c?bs[c]:"default"}get cvcFormControlStatus(){return this._status}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-tag",0),e._uU(1),e.ALo(2,"lowercase"),e.qZA()),2&c&&(e.Q6J("nzColor",m.tagColor),e.xp6(1),e.hij(" ",m.cvcFormControlStatus?e.lcZ(2,2,m.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[wt.j,M.i8]}),u})();function y2(u,y){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&u){const c=e.oxw(2).ctrl;e.xp6(1),e.hij(" ",c.value," ")}}function Y3(u,y){1&u&&(e.TgZ(0,"span",8),e._uU(1," undefined "),e.qZA())}function Dh(u,y){if(1&u&&(e.TgZ(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e._uU(3),e.qZA(),e.TgZ(4,"nz-list-item-meta-description"),e.YNc(5,y2,2,1,"span",5),e.YNc(6,Y3,2,0,"span",6),e.qZA()(),e.TgZ(7,"nz-list-item-extra"),e._UZ(8,"cvc-form-status-tag",7),e.qZA()()),2&u){const c=e.oxw(),m=c.key,G=c.ctrl;e.xp6(3),e.hij(" ",m," "),e.xp6(2),e.Q6J("ngIf",G.value),e.xp6(1),e.Q6J("ngIf",!G.value),e.xp6(2),e.Q6J("cvcFormControlStatus",G.status)}}function M4(u,y){}const b4=function(u,y){return{key:u,ctrl:y}};function C2(u,y){if(1&u&&e.YNc(0,M4,0,0,"ng-template",12),2&u){const c=y.$implicit;e.oxw(3);const m=e.MAs(3);e.Q6J("ngTemplateOutlet",m)("ngTemplateOutletContext",e.WLB(2,b4,c.key,c.value))}}function z2(u,y){if(1&u&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&u){const c=e.oxw(2).key;e.xp6(1),e.Oqu(c)}}function S4(u,y){if(1&u&&(e.TgZ(0,"nz-list-item")(1,"nz-card",9)(2,"nz-list",10),e.YNc(3,C2,1,5,null,4),e.ALo(4,"keyvalue"),e.qZA()(),e.YNc(5,z2,2,1,"ng-template",null,11,e.W1O),e.qZA()),2&u){const c=e.oxw(),m=c.key,G=c.ctrl;e.xp6(1),e.Q6J("nzTitle",m),e.xp6(2),e.Q6J("ngForOf",e.lcZ(4,2,G.controls))}}function T2(u,y){if(1&u&&(e.YNc(0,Dh,9,4,"nz-list-item",5),e.YNc(1,S4,7,4,"nz-list-item",5)),2&u){const c=y.ctrl;e.Q6J("ngIf",!c.controls),e.xp6(1),e.Q6J("ngIf",c.controls)}}function M2(u,y){}function Oh(u,y){if(1&u&&e.YNc(0,M2,0,0,"ng-template",12),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(3);e.Q6J("ngTemplateOutlet",m)("ngTemplateOutletContext",e.WLB(2,b4,c.key,c.value))}}function b2(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-list",2),e.YNc(2,T2,2,2,"ng-template",null,3,e.W1O),e.qZA(),e.YNc(4,Oh,1,5,null,4),e.ALo(5,"keyvalue"),e.BQk()),2&u){const c=y.ngIf;e.xp6(4),e.Q6J("ngForOf",e.lcZ(5,1,c.controls))}}function S2(u,y){1&u&&e._uU(0," No AbstractFormControl provided. ")}let E2=(()=>{class u{set cvcAbstractControl(c){if(!c)throw new Error("cvc-form-debug-field-list requires valid cvcFormControl Input.");this._cvcFormControl=c,this.formControl=c}get cvcFormControl(){return this._cvcFormControl}constructor(){}ngOnInit(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noFormControl",""],["nzSize","small"],["ctrlTemplateRef",""],[4,"ngFor","ngForOf"],[4,"ngIf"],["style","padding: 0px 4px; color: white; background-color: #ccc",4,"ngIf"],[3,"cvcFormControlStatus"],[2,"padding","0px 4px","color","white","background-color","#ccc"],["nzSize","small",2,"width","100%",3,"nzTitle"],["nzSize","small",2,"padding","0"],["cardExtra",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){if(1&c&&(e.YNc(0,b2,6,3,"ng-container",0),e.YNc(1,S2,1,0,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf",m.formControl)("ngIfElse",G)}},dependencies:[M.sg,M.O5,M.tP,In.bd,_r.n_,_r.AA,_r.yi,_r.IO,_r.Pb,_r.yw,T4,M.Nd],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]}),u})();var ld;function x2(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"ngx-json-viewer",9),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("json",c.watchModel)}}function Ja(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e._UZ(3,"cvc-form-status-tag",12),e.qZA(),e.TgZ(4,"nz-descriptions-item",13),e._uU(5),e.qZA(),e.TgZ(6,"nz-descriptions-item",14),e._uU(7),e.qZA(),e.TgZ(8,"nz-descriptions-item",15),e._uU(9),e.qZA(),e.TgZ(10,"nz-descriptions-item",16),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",17),e._uU(13),e.qZA()(),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.pending," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.touched," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.valid," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.dirty," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.enabled," ")}}function wh(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-form-debug-field-list",18),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcAbstractControl",c.cvcForm)}}function D2(u,y){1&u&&(e.ynx(0),e._uU(1," State Content "),e.BQk())}function E4(u,y){if(1&u&&(e.TgZ(0,"nz-row")(1,"nz-col",19),e._uU(2," Form Details "),e.qZA(),e.TgZ(3,"nz-col",20),e._UZ(4,"cvc-form-status-tag",12),e.qZA()()),2&u){const c=e.oxw();e.xp6(4),e.Q6J("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status)}}let Ph=((ld=class{constructor(y){this.cdr=y,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new ct.X(this.cvcForm.value),this.statusChange$=new ct.X(this.cvcForm.status),this.formChange$=Ri([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(y=>{this.watchModel={...this.cvcModel},this.valueChange$.next(y)}),this.cvcForm.statusChanges.subscribe(y=>{this.statusChange$.next(y)}),this.formChange$.subscribe(y=>{this.cdr.detectChanges()})]}}).\u0275fac=function(y){return new(y||ld)(e.Y36(e.sBO))},ld.\u0275cmp=e.Xpm({type:ld,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndex","nzSelectedIndexChange"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],["cardTitle",""],[3,"json"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","status"],[3,"cvcFormControlStatus"],["nzTitle","pending"],["nzTitle","touched"],["nzTitle","valid"],["nzTitle","dirty"],["nzTitle","enabled"],[3,"cvcAbstractControl"],["nzFlex","2"],["nzFlex","3",1,"form-status-col"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-card-tab")(2,"nz-tabset",1),e.NdJ("nzSelectedIndexChange",function(G){return c.selectedIndex=G}),e._UZ(3,"nz-tab",2)(4,"nz-tab",3)(5,"nz-tab",4)(6,"nz-tab",5),e.qZA()(),e.ynx(7,6),e.YNc(8,x2,2,1,"ng-container",7),e.YNc(9,Ja,14,7,"ng-container",7),e.YNc(10,wh,2,1,"ng-container",7),e.YNc(11,D2,2,0,"ng-container",7),e.BQk(),e.qZA(),e.YNc(12,E4,5,1,"ng-template",null,8,e.W1O)),2&y){const m=e.MAs(13);e.Q6J("nzTitle",m),e.xp6(2),e.Q6J("nzSelectedIndex",c.selectedIndex),e.xp6(5),e.Q6J("ngSwitch",c.selectedIndex),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",3),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2)}},dependencies:[M.RF,M.n9,pe.t3,pe.SK,In.bd,In._i,cd.xH,cd.xw,Fp.R7,Fp.uj,L.Y,E2,T4],styles:["[_nghost-%COMP%]{display:block}.form-status-col[_ngcontent-%COMP%]{text-align:right}.form-status-col[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:last-child{margin-right:0}"],changeDetection:0}),ld);var qu;function x4(u,y){if(1&u&&(e.TgZ(0,"nz-col",4),e._UZ(1,"cvc-form-debug",5),e.qZA()),2&u){const c=e.oxw();e.Q6J("nzSpan",8),e.xp6(1),e.Q6J("cvcForm",c.form)("cvcModel",c.model)}}Ph=(0,Ce.gn)([(0,ve.c)({arrayName:"subscriptions"})],Ph);const Np=function(){return[8,8]};let D4=((qu=class extends v.n2{constructor(y){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.title=this.props.title||"Form Card",this.props.submitLabel=this.props.submitLabel||"Submit",this.props.showDevPanel=!_2.N.production&&(this.props.showDevPanel||false)}}).\u0275fac=function(y){return new(y||qu)(e.Y36(e.sBO))},qu.\u0275cmp=e.Xpm({type:qu,selectors:[["cvc-form-layout-wrapper"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["fieldComponent",""],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(y,c){1&y&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA(),e.YNc(4,x4,2,3,"nz-col",3),e.qZA()),2&y&&(e.Q6J("nzGutter",e.DdM(3,Np)),e.xp6(1),e.Q6J("nzSpan",c.props.showDevPanel?16:24),e.xp6(3),e.Q6J("ngIf",c.props.showDevPanel))},dependencies:[M.O5,pe.t3,pe.SK,Ph],changeDetection:0}),qu);D4=(0,Ce.gn)([(0,ve.c)({arrayName:"subscriptions"})],D4);const O4={wrappers:[{name:"form-layout",component:D4}]};let w4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,v.X0.forChild(O4),Vn.sL,In.vh,st.PV,wt.X,cd.we,Xn.$6,_r.Ph,pe.Jb,C4.h,z4,xh,L.s]}),u})(),Ih=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,w4,g4,y4,Bt,Sh,Ju]}),u})(),P4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({providers:[{provide:v.l7,multi:!0,useFactory:F,deps:[i.gz]}],imports:[v.X0.forRoot(w),t.UX,s.U5,d.u,Ih,L.s,t.UX,v.X0,d.u,s.U5,Ih,Th]}),u})()},1022:(It,be,a)=>{function t(I){let S={value:void 0,unset:void 0};return I&&I.trim().length>0?S.value=I.trim():S.unset=!0,S}function i(I){let S={value:void 0,unset:void 0};return void 0!==I?S.value=I:S.unset=!0,S}a.d(be,{aP:()=>$,li:()=>v,uP:()=>i,xt:()=>t});var v=(()=>((v=v||{})[v.NotApplicable=0]="NotApplicable",v[v.NoneFound=1]="NoneFound",v[v.Found=2]="Found",v))();const $=[{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"}]},313:(It,be,a)=>{a.d(be,{A4J:()=>Qc,A94:()=>_c,AIY:()=>o1,AMF:()=>bl,AO2:()=>e,B0s:()=>xa,B97:()=>Ur,BQZ:()=>D,BTF:()=>Ji,BYO:()=>m1,Bk6:()=>Tc,Bo4:()=>Dl,Cp0:()=>A,D9L:()=>rc,Del:()=>z1,DkJ:()=>Cr,DzV:()=>er,E1C:()=>ic,E2B:()=>ql,E8d:()=>S,EFm:()=>fc,EH_:()=>ul,EwB:()=>Xc,F3s:()=>Sn,F4e:()=>sa,FB1:()=>Ve,FJi:()=>yt,FNv:()=>ge,FOU:()=>oa,Fvz:()=>ae,GYx:()=>Xu,Gbq:()=>Zn,Gnp:()=>Sc,HUC:()=>_n,Hmr:()=>Dr,HwR:()=>pl,IP1:()=>Pa,IRu:()=>wt,IZ6:()=>Js,JDX:()=>Mt,Kk:()=>yi,Kmw:()=>Xs,L5n:()=>mr,L8L:()=>Fi,LHC:()=>da,LLl:()=>ht,LiH:()=>Vs,Lr0:()=>md,MCG:()=>lu,MNv:()=>fu,MPi:()=>ns,MYm:()=>xr,Mgx:()=>F,MsG:()=>ue,N$2:()=>Ni,NQC:()=>Ft,O2u:()=>al,OHm:()=>$r,OIL:()=>Rn,OfU:()=>k,P_b:()=>To,Pm:()=>Ma,QVn:()=>Ns,Q_P:()=>an,Qtd:()=>Su,Qzn:()=>jr,R8F:()=>pc,R8w:()=>M,RTy:()=>V,RYL:()=>eu,Rdc:()=>Rr,S8C:()=>Wl,SAN:()=>At,SrV:()=>Lt,Sx0:()=>me,T1I:()=>t1,TNk:()=>zl,TbJ:()=>On,Tg0:()=>vu,TiL:()=>Zs,Tq1:()=>ii,Tt7:()=>Ho,UIR:()=>Jn,UWf:()=>ws,VGG:()=>he,VZq:()=>Ar,Vj7:()=>io,WFw:()=>zr,WGV:()=>yu,WOS:()=>Cc,WRV:()=>Ws,X5f:()=>Gs,XQi:()=>au,Xft:()=>ac,YMi:()=>ir,Y_K:()=>Ra,Ybm:()=>Le,ZYZ:()=>Ea,Zo2:()=>gi,_3P:()=>L,_Wm:()=>I,_jb:()=>Xr,_nE:()=>du,aC3:()=>f1,aw3:()=>Fa,bgg:()=>X,c$m:()=>ce,cCu:()=>Ml,cEv:()=>Qo,cIw:()=>fd,cMj:()=>hu,ce2:()=>ne,czh:()=>Ls,d4o:()=>Be,dDn:()=>vc,dGO:()=>ou,da2:()=>Tn,db2:()=>gd,eDl:()=>uc,eY8:()=>W,ejK:()=>_s,enw:()=>pi,fow:()=>Se,fwG:()=>ar,g0X:()=>Cu,ghc:()=>Vi,h01:()=>U,hVB:()=>bc,huM:()=>He,i44:()=>cn,iGM:()=>ts,iJT:()=>qi,iST:()=>Co,io:()=>Ds,iwm:()=>v,jMx:()=>Mu,jmY:()=>uu,jw9:()=>rt,k7O:()=>ko,kQf:()=>Er,kQl:()=>Ye,kqt:()=>P,l$X:()=>$l,l4w:()=>Aa,lYz:()=>Rt,lcA:()=>de,ld2:()=>yn,m$d:()=>El,m55:()=>O,mII:()=>lr,mdl:()=>s,mki:()=>a1,mpB:()=>Bt,nSb:()=>gc,nnL:()=>Zl,o71:()=>Ze,oRL:()=>fe,olA:()=>nu,otH:()=>Fr,pHu:()=>mu,pP7:()=>Ne,pR8:()=>il,q1D:()=>Pi,q2A:()=>Kl,q8c:()=>ti,q9q:()=>Ee,qf4:()=>Ci,qgP:()=>ml,rJ8:()=>fo,rZD:()=>Ct,rzy:()=>jt,s4d:()=>jl,sA8:()=>d1,sBY:()=>Cl,sLD:()=>ha,sfv:()=>re,sjj:()=>ru,tI$:()=>Ir,tI1:()=>pe,tJ6:()=>Bo,tWC:()=>pd,td:()=>yo,ti:()=>fr,tji:()=>Na,tw_:()=>co,u4i:()=>j,uBv:()=>$,ubO:()=>xl,vMt:()=>Zc,vjc:()=>l1,vv6:()=>nl,vxe:()=>Tr,vz2:()=>ci,wJ2:()=>R,wRZ:()=>Oa,wbP:()=>Ia,wg3:()=>g1,wkr:()=>Jt,wpb:()=>je,xlL:()=>ke,y1h:()=>Z,yic:()=>rn,yqR:()=>Or,z8D:()=>pa,zOE:()=>la,z_7:()=>Mr,zpu:()=>u1,zwS:()=>Qr});var t=a(9111),i=a(5879),v=(()=>((v=v||{}).Na="NA",v.TierIii="TIER_III",v.TierIiLevelC="TIER_II_LEVEL_C",v.TierIiLevelD="TIER_II_LEVEL_D",v.TierIv="TIER_IV",v.TierILevelA="TIER_I_LEVEL_A",v.TierILevelB="TIER_I_LEVEL_B",v))(),s=(()=>((s=s||{}).DoesNotSupport="DOES_NOT_SUPPORT",s.Supports="SUPPORTS",s))(),L=(()=>((L=L||{}).AdverseResponse="ADVERSE_RESPONSE",L.Benign="BENIGN",L.BetterOutcome="BETTER_OUTCOME",L.LikelyBenign="LIKELY_BENIGN",L.LikelyOncogenic="LIKELY_ONCOGENIC",L.LikelyPathogenic="LIKELY_PATHOGENIC",L.Na="NA",L.Negative="NEGATIVE",L.Oncogenic="ONCOGENIC",L.Pathogenic="PATHOGENIC",L.PoorOutcome="POOR_OUTCOME",L.Positive="POSITIVE",L.ReducedSensitivity="REDUCED_SENSITIVITY",L.Resistance="RESISTANCE",L.Sensitivityresponse="SENSITIVITYRESPONSE",L.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",L))(),j=(()=>((j=j||{}).AmpLevel="AMP_LEVEL",j.AssertionDirection="ASSERTION_DIRECTION",j.AssertionType="ASSERTION_TYPE",j.DiseaseName="DISEASE_NAME",j.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",j.Id="ID",j.Significance="SIGNIFICANCE",j.Status="STATUS",j.Summary="SUMMARY",j.TherapyName="THERAPY_NAME",j))(),$=(()=>(($=$||{}).Diagnostic="DIAGNOSTIC",$.Oncogenic="ONCOGENIC",$.Predictive="PREDICTIVE",$.Predisposing="PREDISPOSING",$.Prognostic="PROGNOSTIC",$))(),I=(()=>((I=I||{}).And="AND",I.Or="OR",I))(),S=(()=>((S=S||{}).EvidenceItemCount="EVIDENCE_ITEM_COUNT",S.Name="NAME",S.NctId="NCT_ID",S.SourceCount="SOURCE_COUNT",S))(),F=(()=>((F=F||{}).Conflict="CONFLICT",F.Expired="EXPIRED",F.Missing="MISSING",F.Valid="VALID",F))(),k=(()=>((k=k||{}).Assertion="ASSERTION",k.EvidenceItem="EVIDENCE_ITEM",k.Gene="GENE",k.MolecularProfile="MOLECULAR_PROFILE",k.Source="SOURCE",k.Variant="VARIANT",k.VariantGroup="VARIANT_GROUP",k))(),U=(()=>((U=U||{}).Created="CREATED",U.LastModified="LAST_MODIFIED",U))(),M=(()=>((M=M||{}).AssertionCount="ASSERTION_COUNT",M.Doid="DOID",M.EvidenceItemCount="EVIDENCE_ITEM_COUNT",M.GeneCount="GENE_COUNT",M.Name="NAME",M.VariantCount="VARIANT_COUNT",M))(),e=(()=>((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.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",e.DeprecatedVariant="DEPRECATED_VARIANT",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",e))(),R=(()=>((R=R||{}).Organization="ORGANIZATION",R.Subject="SUBJECT",R.Unscoped="UNSCOPED",R.User="USER",R))(),pe=(()=>((pe=pe||{}).DoesNotSupport="DOES_NOT_SUPPORT",pe.Na="NA",pe.Supports="SUPPORTS",pe))(),me=(()=>((me=me||{}).A="A",me.B="B",me.C="C",me.D="D",me.E="E",me))(),Z=(()=>((Z=Z||{}).AdverseResponse="ADVERSE_RESPONSE",Z.Benign="BENIGN",Z.BetterOutcome="BETTER_OUTCOME",Z.DominantNegative="DOMINANT_NEGATIVE",Z.GainOfFunction="GAIN_OF_FUNCTION",Z.LikelyBenign="LIKELY_BENIGN",Z.LikelyPathogenic="LIKELY_PATHOGENIC",Z.LossOfFunction="LOSS_OF_FUNCTION",Z.Na="NA",Z.Negative="NEGATIVE",Z.Neomorphic="NEOMORPHIC",Z.Oncogenicity="ONCOGENICITY",Z.Pathogenic="PATHOGENIC",Z.PoorOutcome="POOR_OUTCOME",Z.Positive="POSITIVE",Z.Predisposition="PREDISPOSITION",Z.Protectiveness="PROTECTIVENESS",Z.ReducedSensitivity="REDUCED_SENSITIVITY",Z.Resistance="RESISTANCE",Z.Sensitivityresponse="SENSITIVITYRESPONSE",Z.UnalteredFunction="UNALTERED_FUNCTION",Z.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",Z.Unknown="UNKNOWN",Z))(),A=(()=>((A=A||{}).Description="DESCRIPTION",A.DiseaseName="DISEASE_NAME",A.EvidenceDirection="EVIDENCE_DIRECTION",A.EvidenceLevel="EVIDENCE_LEVEL",A.EvidenceRating="EVIDENCE_RATING",A.EvidenceType="EVIDENCE_TYPE",A.Id="ID",A.Significance="SIGNIFICANCE",A.Status="STATUS",A.TherapyName="THERAPY_NAME",A.VariantOrigin="VARIANT_ORIGIN",A))(),V=(()=>((V=V||{}).Accepted="ACCEPTED",V.Rejected="REJECTED",V.Submitted="SUBMITTED",V))(),O=(()=>((O=O||{}).Accepted="ACCEPTED",O.All="ALL",O.Rejected="REJECTED",O.Submitted="SUBMITTED",O))(),P=(()=>((P=P||{}).Diagnostic="DIAGNOSTIC",P.Functional="FUNCTIONAL",P.Oncogenic="ONCOGENIC",P.Predictive="PREDICTIVE",P.Predisposing="PREDISPOSING",P.Prognostic="PROGNOSTIC",P))(),D=(()=>((D=D||{}).Open="OPEN",D.Resolved="RESOLVED",D))(),re=(()=>((re=re||{}).Assertion="ASSERTION",re.EvidenceItem="EVIDENCE_ITEM",re.Gene="GENE",re.MolecularProfile="MOLECULAR_PROFILE",re.Variant="VARIANT",re.VariantGroup="VARIANT_GROUP",re))(),ae=(()=>((ae=ae||{}).AssertionCount="assertionCount",ae.DiseaseName="diseaseName",ae.EntrezSymbol="entrezSymbol",ae.EvidenceItemCount="evidenceItemCount",ae.GeneAlias="geneAlias",ae.MolecularProfileCount="molecularProfileCount",ae.TherapyName="therapyName",ae.VariantCount="variantCount",ae))(),fe=(()=>((fe=fe||{}).Assertion="ASSERTION",fe.EvidenceItem="EVIDENCE_ITEM",fe.Gene="GENE",fe.MolecularProfile="MOLECULAR_PROFILE",fe.Variant="VARIANT",fe.VariantGroup="VARIANT_GROUP",fe))(),ue=(()=>((ue=ue||{}).All="ALL",ue.WithAccepted="WITH_ACCEPTED",ue.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",ue.WithSubmitted="WITH_SUBMITTED",ue))(),ge=(()=>((ge=ge||{}).AssertionCount="assertionCount",ge.EvidenceItemCount="evidenceItemCount",ge.MolecularProfileScore="molecularProfileScore",ge.VariantCount="variantCount",ge))(),Se=(()=>((Se=Se||{}).Mention="MENTION",Se.Subscription="SUBSCRIPTION",Se))(),ke=(()=>((ke=ke||{}).Id="ID",ke.Name="NAME",ke))(),Rt=(()=>((Rt=Rt||{}).AssertionCount="ASSERTION_COUNT",Rt.EvidenceItemCount="EVIDENCE_ITEM_COUNT",Rt.HpoId="HPO_ID",Rt.Name="NAME",Rt))(),Ft=(()=>((Ft=Ft||{}).Read="READ",Ft.Unread="UNREAD",Ft))(),Mt=(()=>((Mt=Mt||{}).Grch37="GRCH37",Mt.Grch38="GRCH38",Mt.Ncbi36="NCBI36",Mt))(),yt=(()=>((yt=yt||{}).Accepted="ACCEPTED",yt.New="NEW",yt.Rejected="REJECTED",yt.Superseded="SUPERSEDED",yt))(),Ct=(()=>((Ct=Ct||{}).Assertion="ASSERTION",Ct.EvidenceItem="EVIDENCE_ITEM",Ct.Gene="GENE",Ct.MolecularProfile="MOLECULAR_PROFILE",Ct.Revision="REVISION",Ct.Variant="VARIANT",Ct.VariantGroup="VARIANT_GROUP",Ct))(),Lt=(()=>((Lt=Lt||{}).Asc="ASC",Lt.Desc="DESC",Lt))(),rn=(()=>((rn=rn||{}).Asco="ASCO",rn.Ash="ASH",rn.Pubmed="PUBMED",rn))(),Sn=(()=>((Sn=Sn||{}).Curated="CURATED",Sn.New="NEW",Sn.Rejected="REJECTED",Sn))(),rt=(()=>((rt=rt||{}).Citation="CITATION",rt.CitationId="CITATION_ID",rt.CreatedAt="CREATED_AT",rt.DiseaseName="DISEASE_NAME",rt.SourceType="SOURCE_TYPE",rt.Submitter="SUBMITTER",rt))(),Ye=(()=>((Ye=Ye||{}).Authors="AUTHORS",Ye.CitationId="CITATION_ID",Ye.EvidenceCount="EVIDENCE_COUNT",Ye.Journal="JOURNAL",Ye.Name="NAME",Ye.SourceType="SOURCE_TYPE",Ye.SuggestionCount="SUGGESTION_COUNT",Ye.Year="YEAR",Ye))(),Ze=(()=>((Ze=Ze||{}).Assertion="ASSERTION",Ze.EvidenceItem="EVIDENCE_ITEM",Ze.Gene="GENE",Ze.MolecularProfile="MOLECULAR_PROFILE",Ze.Revision="REVISION",Ze.SourceSuggestion="SOURCE_SUGGESTION",Ze.Variant="VARIANT",Ze.VariantGroup="VARIANT_GROUP",Ze))(),Bt=(()=>((Bt=Bt||{}).Assertion="ASSERTION",Bt.EvidenceItem="EVIDENCE_ITEM",Bt.Gene="GENE",Bt.MolecularProfile="MOLECULAR_PROFILE",Bt.Revision="REVISION",Bt.Role="ROLE",Bt.Variant="VARIANT",Bt.VariantGroup="VARIANT_GROUP",Bt))(),Jt=(()=>((Jt=Jt||{}).Combination="COMBINATION",Jt.Sequential="SEQUENTIAL",Jt.Substitutes="SUBSTITUTES",Jt))(),_n=(()=>((_n=_n||{}).AssertionCount="ASSERTION_COUNT",_n.EvidenceItemCount="EVIDENCE_ITEM_COUNT",_n.Name="NAME",_n.NcitId="NCIT_ID",_n))(),On=(()=>((On=On||{}).AllTime="ALL_TIME",On.LastMonth="LAST_MONTH",On.LastWeek="LAST_WEEK",On.LastYear="LAST_YEAR",On))(),cn=(()=>((cn=cn||{}).Admin="ADMIN",cn.Curator="CURATOR",cn.Editor="EDITOR",cn))(),wt=(()=>((wt=wt||{}).Id="ID",wt.LastAction="LAST_ACTION",wt.Name="NAME",wt.Role="ROLE",wt))(),Ve=(()=>((Ve=Ve||{}).EvidenceItemCount="EVIDENCE_ITEM_COUNT",Ve.GeneNames="GENE_NAMES",Ve.Name="NAME",Ve.VariantCount="VARIANT_COUNT",Ve.VariantNames="VARIANT_NAMES",Ve))(),Be=(()=>((Be=Be||{}).CoordinateEnd="COORDINATE_END",Be.CoordinateStart="COORDINATE_START",Be.Name="NAME",Be))(),He=(()=>((He=He||{}).Combined="COMBINED",He.CommonGermline="COMMON_GERMLINE",He.Na="NA",He.RareGermline="RARE_GERMLINE",He.Somatic="SOMATIC",He.Unknown="UNKNOWN",He))(),je=(()=>((je=je||{}).Name="NAME",je.Soid="SOID",je.VariantCount="VARIANT_COUNT",je))(),Ne=(()=>((Ne=Ne||{}).DiseaseName="diseaseName",Ne.EntrezSymbol="entrezSymbol",Ne.TherapyName="therapyName",Ne.VariantName="variantName",Ne))();const De=t.Ps` + fragment MolecularProfileParsedName on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Gene { + id + name + link + } + ... on Variant { + id + name + link + deprecated + } +} + `,ie=t.Ps` + fragment assertionPopover on Assertion { + id + name + status + summary + assertionType + assertionDirection + significance + variantOrigin + ampLevel + acmgCodes { + code + description + } + clingenCodes { + code + description + } + nccnGuideline { + id + name + } + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + therapies { + id + name + link + } + therapyInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${De}`,Ce=t.Ps` + fragment AssertionBrowseFields on Assertion { + id + name + link + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + disease { + id + name + link + } + therapies { + id + name + link + } + therapyInteractionType + summary + assertionType + assertionDirection + significance + ampLevel + evidenceItemsCount + status + flagged +} + ${De}`,ve=t.Ps` + fragment clinicalTrialPopover on BrowseClinicalTrial { + id + name + nctId + url + sourceCount + evidenceCount +} + `,qe=t.Ps` + fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { + id + name + nctId + evidenceCount + sourceCount + link +} + `,ct=t.Ps` + fragment commentPopover on Comment { + id + name + createdAt + title + comment + commenter { + id + displayName + role + } + commentable { + id + name + link + __typename + } +} + `,Zt=t.Ps` + fragment BrowseDiseaseRowFields on BrowseDisease { + id + name + doid + diseaseUrl + geneNames + assertionCount + evidenceItemCount + variantCount + geneCount + link +} + `,Cn=t.Ps` + fragment eventFeedNode on Event { + id + action + createdAt + organization { + id + name + profileImagePath(size: 32) + } + originatingUser { + id + username + displayName + role + profileImagePath(size: 32) + } + subject { + name + id + link + ... on Source { + citation + sourceType + } + ... on EvidenceItem { + status + } + ... on Assertion { + status + } + ... on Revision { + revisionSetId + } + ... on Variant { + deprecated + } + ... on MolecularProfile { + deprecated + } + __typename + } + originatingObject { + id + name + link + __typename + ... on Revision { + id + revisionSetId + } + ... on Comment { + id + } + ... on Flag { + id + } + } +} + `,at=t.Ps` + fragment eventFeed on EventConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + eventTypes @include(if: $showFilters) + unfilteredCount + uniqueParticipants @include(if: $showFilters) { + id + displayName + role + profileImagePath(size: 32) + } + participatingOrganizations @include(if: $showFilters) { + id + name + profileImagePath(size: 32) + } + edges { + cursor + node { + ...eventFeedNode + } + } +} + ${Cn}`,Xe=t.Ps` + fragment evidencePopover on EvidenceItem { + id + name + status + description + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + } + therapyInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + evidenceRating + molecularProfile { + id + name + link + deprecated + parsedName { + ...MolecularProfileParsedName + } + } + source { + id + citation + sourceType + displayType + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${De}`,it=t.Ps` + fragment EvidenceGridFields on EvidenceItem { + id + name + link + disease { + id + name + link + } + therapies { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${De}`,Ot=t.Ps` + fragment flag on Flag { + id + state + createdAt + resolvedAt + flaggable { + id + name + link + } + flaggingUser { + id + displayName + role + profileImagePath(size: 32) + } + resolvingUser { + id + displayName + role + profileImagePath(size: 32) + } + openComment { + __typename + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + resolutionComment { + __typename + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } +} + `,Pt=t.Ps` + fragment flagList on FlagConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + totalCount + unfilteredCountForSubject + uniqueFlaggingUsers { + username + id + profileImagePath(size: 32) + } + uniqueResolvingUsers { + username + id + profileImagePath(size: 32) + } + edges { + node { + ...flag + } + } +} + ${Ot}`,Wt=t.Ps` + fragment flagPopover on Flag { + id + name + state + flaggingUser { + id + displayName + role + } + flaggable { + id + link + name + } + createdAt + openComment { + comment + } +} + `,kt=t.Ps` + fragment genePopover on Gene { + id + name + officialName + geneAliases + variants { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Je=t.Ps` + fragment BrowseGenesFields on BrowseGene { + id + entrezId + name + link + flagged + geneAliases + diseases { + name + id + link + } + therapies { + name + id + link + } + variantCount + evidenceItemCount + assertionCount + molecularProfileCount +} + `,K=t.Ps` + fragment QuicksearchResult on SearchResult { + id + resultType + name + matchingText +} + `,N=t.Ps` + fragment molecularProfilePopoverFields on MolecularProfile { + id + name + parsedName { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Gene { + id + name + link + } + ... on Variant { + id + name + deprecated + link + } + } + molecularProfileAliases + evidenceItems { + totalCount + } + assertions { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,J=t.Ps` + fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { + id + name + evidenceItemCount + molecularProfileScore + assertionCount + variantCount + aliases { + name + } + genes { + id + name + link + } + variants { + id + name + link + } + therapies { + id + name + link + } + diseases { + id + name + link + } + link +} + `,Me=t.Ps` + fragment menuMolecularProfile on MolecularProfile { + id + name + link + flagged +} + `,zt=t.Ps` + fragment LeaderboardOrganizationFields on LeaderboardOrganization { + id + name + actionCount + rank + profileImagePath(size: 64) +} + `,nt=t.Ps` + fragment orgPopover on Organization { + id + profileImagePath(size: 64) + name + description + url +} + `,We=t.Ps` + fragment OrganizationBrowseTableRowFields on Organization { + id + name + description + url + memberCount + eventCount + subGroups { + name + id + } + mostRecentEvent { + createdAt + } +} + `,ot=t.Ps` + fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { + id + name + hpoId + url + assertionCount + evidenceCount + link +} + `,Vt=t.Ps` + fragment validationError on FieldValidationError { + fieldName + error +} + `,St=t.Ps` + fragment revisionPopover on Revision { + id + name + link + status + revisor { + id + displayName + role + } + subject { + id + link + name + } + createdAt + linkoutData { + name + } + creationComment { + comment + } +} + `,mn=t.Ps` + fragment revision on Revision { + id + revisionSetId + createdAt + resolvedAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + currentObjects { + id + displayName + displayType + entityType + link + deleted + } + addedObjects { + id + displayName + displayType + entityType + link + deleted + } + removedObjects { + id + displayName + displayType + entityType + link + deleted + } + keptObjects { + id + displayName + displayType + entityType + link + deleted + } + suggestedObjects { + id + displayName + displayType + entityType + link + deleted + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + revisor { + id + displayName + role + } + resolver { + id + displayName + role + } + creationComment { + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + resolutionComment { + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + status +} + `,Qe=t.Ps` + fragment ContributorFields on ContributingUser { + user { + id + profileImagePath(size: 12) + } + uniqueActions { + action + count + } + lastActionDate + totalActionCount +} + `,dt=t.Ps` + fragment subscriptionId on Subscription { + id + __typename +} + `,se=t.Ps` + fragment TimepointCount on TimePointCounts { + allTime + newThisMonth + newThisWeek + newThisYear +} + `,ze=t.Ps` + fragment BrowseSourceSuggestionRowFields on SourceSuggestion { + id + molecularProfile { + id + name + link + } + disease { + id + name + link + } + source { + link + id + citation + citationId + sourceType + sourceUrl + displayType + } + user { + id + displayName + role + profileImagePath(size: 32) + } + initialComment + status + reason + createdAt +} + `,mt=t.Ps` + fragment sourcePopover on SourcePopover { + id + title + fullJournalTitle + evidenceItemCount + citation + citationId + displayType + sourceUrl + clinicalTrials { + id + nctId + link + } +} + `,Pe=t.Ps` + fragment BrowseSourceRowFields on BrowseSource { + id + authors + citationId + evidenceItemCount + sourceSuggestionCount + journal + name + publicationYear + sourceType + citation + displayType + link + openAccess +} + `,lt=t.Ps` + fragment TherapyBrowseTableRowFields on BrowseTherapy { + id + name + ncitId + therapyUrl + assertionCount + evidenceCount + link +} + `,Yt=t.Ps` + fragment LeaderboardUserFields on LeaderboardUser { + id + name + displayName + actionCount + role + rank + profileImagePath(size: 64) +} + `,un=t.Ps` + fragment popoverUser on User { + id + profileImagePath(size: 64) + displayName + bio + role + organizations { + id + name + } +} + `,Nt=t.Ps` + fragment UserBrowseTableRowFields on User { + id + name + displayName + organizations { + id + name + } + role + statsHash { + submittedEvidenceItems + revisions + } + profileImagePath(size: 64) + mostRecentActionTimestamp +} + `,pt=t.Ps` + fragment variantGroupPopoverFields on VariantGroup { + id + name + description + variants { + edges { + node { + id + name + link + } + } + } + sources { + id + citation + sourceType + link + } +} + `,gt=t.Ps` + fragment BrowseVariantGroupRowFields on BrowseVariantGroup { + id + name + link + geneNames + variantNames + variantCount + evidenceItemCount +} + `,ee=t.Ps` + fragment variantTypePopover on VariantTypePopover { + id + name + url + soid + variantCount +} + `,H=t.Ps` + fragment VariantTypeBrowseTableRowFields on BrowseVariantType { + id + name + soid + url + variantCount + link +} + `,Te=t.Ps` + fragment CoordinatesCardFields on Variant { + id + name + referenceBuild + ensemblVersion + primaryCoordinates { + representativeTranscript + chromosome + start + stop + } + secondaryCoordinates { + representativeTranscript + chromosome + start + stop + } + referenceBases + variantBases +} + `,$e=t.Ps` + fragment variantPopoverFields on Variant { + id + name + variantAliases + alleleRegistryId + gene { + id + name + link + } + molecularProfiles { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Tt=t.Ps` + fragment menuVariantType on BrowseVariantType { + id + name + link +} + `,Xt=t.Ps` + fragment menuVariant on Variant { + id + name + link + flagged +} + `,qt=t.Ps` + fragment BrowseVariantsFields on BrowseVariant { + id + name + link + geneId + geneName + geneLink + diseases { + id + name + link + } + therapies { + id + name + link + } + aliases { + name + } + variantTypes { + id + name + link + } +} + `,Un=t.Ps` + fragment previewComment on CommentBodySegment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + status + deprecated + __typename + } + ... on CommentTextSegment { + text + __typename + } + ... on User { + id + displayName + role + __typename + } +} + `,zn=t.Ps` + fragment RevisableAssertionFields on Assertion { + id + summary + description + molecularProfile { + id + name + link + } + variantOrigin + significance + disease { + id + doid + name + displayName + link + } + therapies { + id + ncitId + name + link + } + therapyInteractionType + assertionDirection + assertionType + phenotypes { + id + hpoId + name + } + ampLevel + acmgCodes { + id + name + code + description + tooltip + } + clingenCodes { + id + code + description + name + tooltip + exclusive + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + fdaCompanionTest + evidenceItems { + id + name + link + status + } +} + `,Vn=t.Ps` + fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { + id + name + link + molecularProfileAliases +} + `,vo=t.Ps` + fragment DiseaseSelectTypeaheadFields on Disease { + id + name + link + displayName + doid + diseaseAliases +} + `,Xn=t.Ps` + fragment TherapySelectTypeaheadFields on Therapy { + id + name + link + ncitId + therapyAliases +} + `,Ao=t.Ps` + fragment PhenotypeSelectTypeaheadFields on Phenotype { + id + name + link + hpoId +} + `,jo=t.Ps` + fragment SourceSelectTypeaheadFields on Source { + id + name + link + citation + citationId + sourceType +} + `,ei=t.Ps` + fragment RevisableEvidenceFields on EvidenceItem { + id + molecularProfile { + ...MolecularProfileSelectTypeaheadFields + } + variantOrigin + description + significance + disease { + ...DiseaseSelectTypeaheadFields + } + therapies { + ...TherapySelectTypeaheadFields + } + therapyInteractionType + evidenceDirection + evidenceLevel + evidenceType + phenotypes { + ...PhenotypeSelectTypeaheadFields + } + evidenceRating + source { + ...SourceSelectTypeaheadFields + } +} + ${Vn} +${vo} +${Xn} +${Ao} +${jo}`,bo=t.Ps` + fragment SubmittableEvidenceFields on EvidenceItem { + id + description + variantOrigin + evidenceType + significance + evidenceLevel + evidenceDirection + evidenceRating + therapyInteractionType + source { + id + citation + sourceType + } + phenotypes { + id + name + } + therapies { + id + name + } + disease { + id + name + } +} + `,eo=t.Ps` + fragment RevisableGeneFields on Gene { + id + description + sources { + id + sourceType + citation + citationId + } +} + `,hi=t.Ps` + fragment RevisableMolecularProfileFields on MolecularProfile { + id + description + sources { + id + sourceType + citation + citationId + } + molecularProfileAliases + isComplex +} + `,si=t.Ps` + fragment CoordinateFields on Coordinate { + chromosome + representativeTranscript + start + stop +} + `,Fo=t.Ps` + fragment RevisableVariantFields on Variant { + id + name + gene { + id + name + } + variantAliases + alleleRegistryId + clinvarIds + ensemblVersion + hgvsDescriptions + referenceBuild + variantTypes { + id + name + soid + } + primaryCoordinates { + ...CoordinateFields + } + secondaryCoordinates { + ...CoordinateFields + } + referenceBases + variantBases +} + ${si}`,xo=t.Ps` + fragment VariantGroupRevisableFields on VariantGroup { + id + name + description + variants { + totalCount + edges { + cursor + node { + id + name + link + } + } + nodes { + id + name + link + } + } + sources { + id + name + link + } +} + `,Do=t.Ps` + fragment SubmittableVariantGroupFields on VariantGroup { + id + name + description + variants(first: 50) { + nodes { + id + name + link + singleVariantMolecularProfile { + id + name + link + } + } + } + sources { + id + link + citation + sourceType + } +} + `,Ri=t.Ps` + fragment AcmgCodeSelectTypeaheadFields on AcmgCode { + id + code + name + description + tooltip +} + `,oi=t.Ps` + fragment ClingenCodeSelectTypeaheadFields on ClingenCode { + id + code + name + description + tooltip + exclusive +} + `,Ti=t.Ps` + fragment QuickAddDiseaseFields on AddDiseasePayload { + new + disease { + ...DiseaseSelectTypeaheadFields + } +} + ${vo}`,Fn=t.Ps` + fragment EvidenceManagerFields on EvidenceItem { + id + name + link + disease { + id + name + link + } + therapies { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${De}`,Mi=t.Ps` + fragment EvidenceSelectTypeaheadFields on EvidenceItem { + id + name + link + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin + status +} + `,bi=t.Ps` + fragment GeneSelectTypeaheadFields on Gene { + id + entrezId + name + geneAliases + link +} + `,nr=t.Ps` + fragment PreviewMpName2 on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Gene { + id + name + link + } + ... on Variant { + id + name + link + } +} + `,Ui=t.Ps` + fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { + id + name +} + `,Pr=t.Ps` + fragment QuickAddTherapyFields on AddTherapyPayload { + new + therapy { + ...TherapySelectTypeaheadFields + } +} + ${Xn}`,or=(t.Ps` + fragment VariantManagerFields on BrowseVariant { + id + name + link + geneId + geneName + geneLink + diseases { + id + name + link + } + therapies { + id + name + link + } + aliases { + name + } +} + `,t.Ps` + fragment VariantSelectTypeaheadFields on Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } +} + `),Xi=t.Ps` + fragment QuickAddVariantFields on AddVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${or}`,pr=t.Ps` + fragment VariantTypeSelectTypeaheadFields on VariantType { + id + name + link + soid +} + `,hr=t.Ps` + fragment AssertionDetailFields on Assertion { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,lo=t.Ps` + fragment AssertionSummaryFields on Assertion { + id + name + summary + description + status + variantOrigin + disease { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + assertionType + assertionDirection + significance + therapies { + ncitId + name + link + id + } + phenotypes { + id + name + link + } + therapyInteractionType + ampLevel + acmgCodes { + code + description + } + clingenCodes { + id + code + description + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${De}`,Oo=t.Ps` + fragment MyDiseaseInfoFields on MyDiseaseInfo { + diseaseOntologyExactSynonyms + diseaseOntologyRelatedSynonyms + mesh + icdo + icd10 + ncit + omim + doDef + doDefCitations + mondoDef +} + `,Po=t.Ps` + fragment DiseasesSummaryFields on Disease { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + myDiseaseInfo { + ...MyDiseaseInfoFields + } +} + ${Oo}`,qo=t.Ps` + fragment EvidenceDetailFields on EvidenceItem { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + } + assertions { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,Vo=t.Ps` + fragment EvidenceSummaryFields on EvidenceItem { + id + name + description + status + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + } + therapyInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + source { + id + citation + citationId + sourceType + displayType + sourceUrl + ascoAbstractId + link + clinicalTrials { + nctId + id + link + } + } + evidenceRating + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${De}`,Zo=t.Ps` + fragment GeneDetailFields on Gene { + id + name + officialName + entrezId + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,Ko=t.Ps` + fragment GeneSummaryFields on Gene { + description + entrezId + geneAliases + id + name + officialName + sources { + id + citation + link + sourceUrl + displayType + sourceType + } + variants { + edges { + node { + id + name + } + } + } + myGeneInfoDetails + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + `,_i=t.Ps` + fragment commentListNode on Comment { + id + title + comment + createdAt + commenter { + id + username + displayName + name + role + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + } + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + status + deprecated + link + revisionSetId + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } +} + `,ji=t.Ps` + fragment MolecularProfileDetailFields on MolecularProfile { + id + name + deprecated + deprecatedVariants { + deprecationReason + deprecationComment { + ...commentListNode + } + id + deprecated + name + link + } + molecularProfileAliases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${_i}`,Zi=t.Ps` + fragment VariantMolecularProfileCardFields on Variant { + id + name + link + gene { + id + name + link + } + molecularProfiles(first: 3) { + totalCount + nodes { + id + link + name + deprecated + } + } + variantAliases + clinvarIds + alleleRegistryId + openCravatUrl + variantTypes { + id + link + soid + name + } + referenceBuild + ensemblVersion + primaryCoordinates { + representativeTranscript + chromosome + start + stop + } + secondaryCoordinates { + representativeTranscript + chromosome + start + stop + } + referenceBases + variantBases + hgvsDescriptions +} + `,Xo=t.Ps` + fragment MolecularProfileSummaryFields on MolecularProfile { + id + name + description + molecularProfileAliases + molecularProfileScore + sources { + id + citation + link + sourceType + } + variants { + ...VariantMolecularProfileCardFields + } + parsedName { + ...MolecularProfileParsedName + } +} + ${Zi} +${De}`,jn=t.Ps` + fragment OrganizationDetailFields on Organization { + id + name + url + description + profileImagePath(size: 256) + subGroups { + id + name + profileImagePath(size: 12) + } + orgStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + orgAndSuborgsStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } +} + `,so=t.Ps` + fragment OrganizationGroupsFields on Organization { + id + name + url + description + profileImagePath(size: 128) + subGroups { + id + name + url + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } +} + `,Ue=t.Ps` + fragment OrganizationMembersFields on User { + id + name + displayName + username + profileImagePath(size: 64) + role + url + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + url + } +} + `,oe=t.Ps` + fragment Release on DataRelease { + name + geneTsv { + filename + path + } + variantTsv { + filename + path + } + variantGroupTsv { + filename + path + } + evidenceTsv { + filename + path + } + molecularProfileTsv { + filename + path + } + assertionTsv { + filename + path + } + acceptedVariantsVcf { + filename + path + } + acceptedAndSubmittedVariantsVcf { + filename + path + } +} + `,Oe=t.Ps` + fragment SourceDetailFields on Source { + id + citation + sourceUrl + displayType + fullyCurated + citationId + comments { + totalCount + } +} + `,Ge=t.Ps` + fragment SourceSummaryFields on Source { + id + citation + displayType + sourceUrl + title + abstract + publicationDate + citationId + fullJournalTitle + pmcId + authorString + ascoAbstractId + clinicalTrials { + nctId + id + link + } +} + `,bt=t.Ps` + fragment MyChemInfoFields on MyChemInfo { + chebiId + chebiDefinition + fdaEpcCodes { + code + description + } + fdaMoaCodes { + code + description + } + firstApproval + chemblMoleculeType + chemblId + pubchemCid + pharmgkbId + rxnorm + inchikey + drugbankId + indications +} + `,Ht=t.Ps` + fragment TherapiesSummaryFields on Therapy { + id + name + ncitId + therapyUrl + therapyAliases + link + myChemInfo { + ...MyChemInfoFields + } +} + ${bt}`,nn=t.Ps` + fragment UserDetailFields on User { + id + name + displayName + username + email + profileImagePath(size: 128) + role + url + bio + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + url + } + country { + id + name + } + statsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } + mostRecentConflictOfInterestStatement { + id + coiPresent + coiStatement + coiStatus + createdAt + expiresAt + } +} + `,fn=t.Ps` + fragment notificationOrganization on Organization { + id + name +} + `,en=t.Ps` + fragment notificationOriginatingUsers on User { + id + displayName +} + `,vn=t.Ps` + fragment notificationFeedSubjects on EventSubjectWithCount { + subject { + id + __typename + name + } + occuranceCount +} + `,Nn=t.Ps` + fragment notificationNode on Notification { + id + type + event { + ...eventFeedNode + } + seen + subscription { + id + subscribable { + id + name + __typename + } + } +} + ${Cn}`,bn=t.Ps` + fragment subscribable on Subscribable { + id + entityType + __typename +} + `,dn=t.Ps` + fragment VariantGroupDetailFields on VariantGroup { + id + name + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,xn=t.Ps` + fragment VariantGroupSummaryFields on VariantGroup { + id + name + description + sources { + id + link + citation + sourceUrl + displayType + sourceType + } +} + `,Wn=t.Ps` + fragment VariantDetailFields on Variant { + id + name + deprecated + deprecationReason + deprecationComment { + ...commentListNode + } + gene { + id + name + link + } + variantAliases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${_i}`,In=t.Ps` + fragment MyVariantInfoFields on MyVariantInfo { + myVariantInfoId + caddConsequence + caddDetail + caddScore + caddPhred + clinvarClinicalSignificance + clinvarHgvsCoding + clinvarHgvsGenomic + clinvarHgvsNonCoding + clinvarHgvsProtein + clinvarId + clinvarOmim + cosmicId + dbnsfpInterproDomain + dbsnpRsid + eglClass + eglHgvs + eglProtein + eglTranscript + exacAlleleCount + exacAlleleFrequency + exacAlleleNumber + fathmmMklPrediction + fathmmMklScore + fathmmPrediction + fathmmScore + fitconsScore + gerp + gnomadExomeAlleleCount + gnomadExomeAlleleFrequency + gnomadExomeAlleleNumber + gnomadExomeFilter + gnomadGenomeAlleleCount + gnomadGenomeAlleleFrequency + gnomadGenomeAlleleNumber + gnomadGenomeFilter + lrtPrediction + lrtScore + metalrPrediction + metalrScore + metasvmPrediction + metasvmScore + mutationassessorPrediction + mutationassessorScore + mutationtasterPrediction + mutationtasterScore + phastcons100way + phastcons30way + phyloP100way + phyloP30way + polyphen2HdivPrediction + polyphen2HdivScore + polyphen2HvarPrediction + polyphen2HvarScore + proveanPrediction + proveanScore + revelScore + siftPrediction + siftScore + siphy + snpeffSnpEffect + snpeffSnpImpact +} + `,Hn=t.Ps` + fragment VariantSummaryFields on Variant { + id + name + gene { + id + name + link + } + variantAliases + alleleRegistryId + openCravatUrl + maneSelectTranscript + variantTypes { + id + link + soid + name + } + hgvsDescriptions + clinvarIds + referenceBuild + ensemblVersion + primaryCoordinates { + representativeTranscript + chromosome + start + stop + } + secondaryCoordinates { + representativeTranscript + chromosome + start + stop + } + referenceBases + variantBases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + myVariantInfo { + ...MyVariantInfoFields + } + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${In}`,Gn=t.Ps` + query AssertionPopover($assertionId: Int!) { + assertion(id: $assertionId) { + ...assertionPopover + } +} + ${ie}`;let Zn=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Gn}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const to=t.Ps` + query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $significance: EvidenceSignificance, $assertionType: EvidenceType, $variantId: Int, $molecularProfileId: Int, $evidenceId: Int, $molecularProfileName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $status: EvidenceStatusFilter) { + assertions( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + summary: $summary + assertionDirection: $assertionDirection + significance: $significance + assertionType: $assertionType + variantId: $variantId + molecularProfileId: $molecularProfileId + sortBy: $sortBy + ampLevel: $ampLevel + molecularProfileName: $molecularProfileName + evidenceId: $evidenceId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + therapyId: $therapyId + diseaseId: $diseaseId + status: $status + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...AssertionBrowseFields + } + } + } +} + ${Ce}`;let yo=(()=>{class C extends t.AE{constructor(le){super(le),this.document=to}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _o=t.Ps` + query ClinicalTrialPopover($clinicalTrialId: Int!) { + clinicalTrials(id: $clinicalTrialId) { + edges { + node { + ...clinicalTrialPopover + } + } + } +} + ${ve}`;let Jn=(()=>{class C extends t.AE{constructor(le){super(le),this.document=_o}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const No=t.Ps` + query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { + clinicalTrials( + first: $first + last: $last + before: $before + after: $after + name: $name + nctId: $nctId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...BrowseClinicalTrialsRowFields + } + } + } +} + ${qe}`;let To=(()=>{class C extends t.AE{constructor(le){super(le),this.document=No}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Go=t.Ps` + query CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { + comments( + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + mentionedUserId: $mentionedUserId + mentionedRole: $mentionedRole + mentionedEntity: $mentionedEntity + subject: $subject + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + uniqueCommenters { + id + displayName + role + profileImagePath(size: 32) + } + mentionedUsers { + id + displayName + role + profileImagePath(size: 32) + } + mentionedRoles { + displayName + entityId + tagType + link + } + mentionedEntities { + displayName + entityId + tagType + link + } + unfilteredCountForSubject + edges { + cursor + node { + ...commentListNode + } + } + } +} + ${_i}`;let Co=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Go}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fi=t.Ps` + query CommentPopover($commentId: Int!) { + comment(id: $commentId) { + ...commentPopover + } +} + ${ct}`;let yi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=fi}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Io=t.Ps` + query DiseasePopover($diseaseId: Int!) { + diseasePopover(id: $diseaseId) { + id + name + displayName + doid + diseaseUrl + diseaseAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + } +} + `;let ko=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Io}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ki=t.Ps` + query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $geneNames: String) { + browseDiseases( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + doid: $doid + geneNames: $geneNames + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + lastUpdated + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseDiseaseRowFields + } + } + } +} + ${Zt}`;let ii=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ki}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const mi=t.Ps` + query EventFeedCount($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $includeAutomatedEvents: Boolean, $mode: EventFeedMode) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + mode: $mode + includeAutomatedEvents: $includeAutomatedEvents + ) { + unfilteredCount + } +} + `;let ir=(()=>{class C extends t.AE{constructor(le){super(le),this.document=mi}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ii=t.Ps` + query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $includeAutomatedEvents: Boolean = true, $showFilters: Boolean!) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + includeAutomatedEvents: $includeAutomatedEvents + mode: $mode + ) { + ...eventFeed + } +} + ${at}`;let Ji=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ii}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const di=t.Ps` + query EvidencePopover($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...evidencePopover + } +} + ${Xe}`;let Le=(()=>{class C extends t.AE{constructor(le){super(le),this.document=di}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ut=t.Ps` + query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + significance: $significance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + molecularProfileId: $molecularProfileId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + therapyId: $therapyId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + molecularProfileName: $molecularProfileName + status: $status + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceGridFields + } + } + } +} + ${it}`;let W=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ut}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Re=t.Ps` + query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { + flags( + flaggable: $flaggable + flaggingUserId: $flaggingUserId + resolvingUserId: $resolvingUserId + state: $state + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + ...flagList + } +} + ${Pt}`;let jt=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Re}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const sn=t.Ps` + query FlagPopover($flagId: Int!) { + flag(id: $flagId) { + ...flagPopover + } +} + ${Wt}`;let Rn=(()=>{class C extends t.AE{constructor(le){super(le),this.document=sn}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ho=t.Ps` + query GenePopover($geneId: Int!) { + gene(id: $geneId) { + ...genePopover + } +} + ${kt}`;let fo=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ho}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Uo=t.Ps` + query BrowseGenes($entrezSymbol: String, $therapyName: String, $geneAlias: String, $diseaseName: String, $sortBy: GenesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseGenes( + entrezSymbol: $entrezSymbol + therapyName: $therapyName + geneAlias: $geneAlias + diseaseName: $diseaseName + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + edges { + cursor + node { + ...BrowseGenesFields + } + } + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + lastUpdated + totalCount + filteredCount + pageCount + } +} + ${Je}`;let ti=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Uo}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const uo=t.Ps` + query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { + search(query: $query, types: $types, highlightMatches: $highlightMatches) { + ...QuicksearchResult + } +} + ${K}`;let Vi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=uo}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ai=t.Ps` + query MolecularProfilePopover($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...molecularProfilePopoverFields + } +} + ${N}`;let Cr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ai}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ps=t.Ps` + query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseMolecularProfiles( + molecularProfileName: $molecularProfileName + variantName: $variantName + variantId: $variantId + entrezSymbol: $entrezSymbol + diseaseName: $diseaseName + therapyName: $therapyName + molecularProfileAlias: $molecularProfileAlias + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseMolecularProfilesFields + } + } + lastUpdated + filteredCount + pageCount + } +} + ${J}`;let Ee=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ps}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ye=t.Ps` + query MolecularProfileMenu($geneId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { + molecularProfiles( + geneId: $geneId + name: $mpName + evidenceStatusFilter: $evidenceStatusFilter + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuMolecularProfile + } + } + } +} + ${Me}`;let de=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ye}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ut=t.Ps` + query OrganizationCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${zt}`;let yn=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ut}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Qn=t.Ps` + query OrganizationRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${zt}`;let pi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Qn}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ai=t.Ps` + query OrganizationModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${zt}`;let Ir=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ai}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const xs=t.Ps` + query OrganizationSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${zt}`;let Ma=(()=>{class C extends t.AE{constructor(le){super(le),this.document=xs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const js=t.Ps` + query OrgPopover($orgId: Int!) { + organization(id: $orgId) { + ...orgPopover + } +} + ${nt}`;let Gs=(()=>{class C extends t.AE{constructor(le){super(le),this.document=js}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hs=t.Ps` + query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort) { + organizations( + first: $first + last: $last + before: $before + after: $after + name: $orgName + id: $id + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationBrowseTableRowFields + } + } + } +} + ${We}`;let Ds=(()=>{class C extends t.AE{constructor(le){super(le),this.document=hs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Yr=t.Ps` + query PhenotypePopover($phenotypeId: Int!) { + phenotypePopover(id: $phenotypeId) { + id + name + url + hpoId + assertionCount + evidenceItemCount + molecularProfileCount + link + } +} + `;let $r=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Yr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const rr=t.Ps` + query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { + phenotypes( + first: $first + last: $last + before: $before + after: $after + name: $name + hpoId: $hpoId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...PhenotypeBrowseTableRowFields + } + } + } +} + ${ot}`;let Ur=(()=>{class C extends t.AE{constructor(le){super(le),this.document=rr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ri=t.Ps` + mutation AcceptRevision($input: AcceptRevisionsInput!) { + acceptRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let fr=(()=>{class C extends t.mm{constructor(le){super(le),this.document=ri}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Os=t.Ps` + mutation RejectRevision($input: RejectRevisionsInput!) { + rejectRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let Ar=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Os}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Sr=t.Ps` + query ValidateRevisionsForAcceptance($ids: [Int!]!) { + validateRevisionsForAcceptance(revisionIds: $ids) { + genericErrors + validationErrors { + ...validationError + } + } +} + ${Vt}`;let jr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Sr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Qs=t.Ps` + query RevisionPopover($revisionId: Int!) { + revision(id: $revisionId) { + ...revisionPopover + } +} + ${St}`;let Fr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Qs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fs=t.Ps` + query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionSetId: Int, $status: RevisionStatus) { + revisions( + first: $first + last: $last + before: $before + after: $after + fieldName: $fieldName + originatingUserId: $originatingUserId + resolvingUserId: $resolvingUserId + subject: $subject + status: $status + revisionSetId: $revisionSetId + ) { + totalCount + unfilteredCountForSubject + uniqueRevisors { + username + id + profileImagePath(size: 32) + } + uniqueResolvers { + username + id + profileImagePath(size: 32) + } + revisedFieldNames { + name + displayName + } + pageInfo { + hasNextPage + hasPreviousPage + endCursor + startCursor + } + edges { + node { + ...revision + } + } + } +} + ${mn}`;let mr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=fs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Xa=t.Ps` + query ContributorAvatars($subscribable: SubscribableInput!) { + contributors(subscribable: $subscribable) { + editors { + ...ContributorFields + } + curators { + ...ContributorFields + } + } +} + ${Qe}`;let Er=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Xa}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ba=t.Ps` + query SubscriptionForEntity($subscribable: SubscribableInput!) { + subscriptionForEntity(subscribable: $subscribable) { + ...subscriptionId + } +} + ${dt}`;let Qc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ba}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ec=t.Ps` + mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { + moderateEvidenceItem(input: $input) { + evidenceItem { + id + } + } +} + `;let xr=(()=>{class C extends t.mm{constructor(le){super(le),this.document=ec}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const sr=t.Ps` + mutation ModerateAssertion($input: ModerateAssertionInput!) { + moderateAssertion(input: $input) { + assertion { + id + } + } +} + `;let Xr=(()=>{class C extends t.mm{constructor(le){super(le),this.document=sr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Nr=t.Ps` + query CivicStats { + timepointStats { + assertions { + ...TimepointCount + } + diseases { + ...TimepointCount + } + therapies { + ...TimepointCount + } + evidenceItems { + ...TimepointCount + } + genes { + ...TimepointCount + } + revisions { + ...TimepointCount + } + sources { + ...TimepointCount + } + users { + ...TimepointCount + } + variants { + ...TimepointCount + } + comments { + ...TimepointCount + } + molecularProfiles { + ...TimepointCount + } + } +} + ${se}`;let ws=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Nr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const es=t.Ps` + query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $molecularProfileName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { + sourceSuggestions( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + sourceType: $sourceType + citationId: $citationId + sourceId: $sourceId + molecularProfileName: $molecularProfileName + diseaseName: $diseaseName + comment: $comment + submitter: $submitter + citation: $citation + submitterId: $submitterId + status: $status + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseSourceSuggestionRowFields + } + } + } +} + ${ze}`;let Ws=(()=>{class C extends t.AE{constructor(le){super(le),this.document=es}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` + mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;const Sa=t.Ps` + query SourcePopover($sourceId: Int!) { + sourcePopover(id: $sourceId) { + ...sourcePopover + } +} + ${mt}`;let Zs=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Sa}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ks=t.Ps` + query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int, $openAccess: Boolean) { + browseSources( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + year: $year + sourceType: $sourceType + citationId: $citationId + author: $author + journal: $journal + clinicalTrialId: $clinicalTrialId + openAccess: $openAccess + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + lastUpdated + pageCount + edges { + cursor + node { + ...BrowseSourceRowFields + } + } + } +} + ${Pe}`;let Js=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ks}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gi=t.Ps` + query TherapyPopover($therapyId: Int!) { + therapyPopover(id: $therapyId) { + id + name + therapyUrl + ncitId + therapyAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + } +} + `;let Fi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Gi}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const qs=t.Ps` + query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $sortBy: TherapySort) { + therapies( + first: $first + last: $last + before: $before + after: $after + name: $name + ncitId: $ncitId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...TherapyBrowseTableRowFields + } + } + } +} + ${lt}`;let ci=(()=>{class C extends t.AE{constructor(le){super(le),this.document=qs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Lr=t.Ps` + query UserCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Yt}`;let ne=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Lr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fe=t.Ps` + query UserRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Yt}`;let he=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Fe}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const et=t.Ps` + query UserModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Yt}`;let At=(()=>{class C extends t.AE{constructor(le){super(le),this.document=et}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const pn=t.Ps` + query UserSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Yt}`;let Tn=(()=>{class C extends t.AE{constructor(le){super(le),this.document=pn}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const no=t.Ps` + query UserPopover($userId: Int!) { + user(id: $userId) { + ...popoverUser + } +} + ${un}`;let Qo=(()=>{class C extends t.AE{constructor(le){super(le),this.document=no}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const mo=t.Ps` + query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { + users( + first: $first + last: $last + before: $before + after: $after + name: $userName + organization: $orgName + role: $userRole + sortBy: $sortBy + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + totalCount + edges { + cursor + node { + ...UserBrowseTableRowFields + } + } + } +} + ${Nt}`;let Bo=(()=>{class C extends t.AE{constructor(le){super(le),this.document=mo}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wo=t.Ps` + query VariantGroupPopover($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...variantGroupPopoverFields + } +} + ${pt}`;let gi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=wo}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Wo=t.Ps` + query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $geneNames: String, $variantNames: String) { + browseVariantGroups( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + geneNames: $geneNames + variantNames: $variantNames + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + lastUpdated + edges { + cursor + node { + ...BrowseVariantGroupRowFields + } + } + } +} + ${gt}`;let Ci=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Wo}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zi=t.Ps` + query VariantTypePopover($variantTypeId: Int!) { + variantTypePopover(id: $variantTypeId) { + ...variantTypePopover + } +} + ${ee}`;let co=(()=>{class C extends t.AE{constructor(le){super(le),this.document=zi}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const gr=t.Ps` + query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { + variantTypes( + first: $first + last: $last + before: $before + after: $after + name: $name + soid: $soid + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...VariantTypeBrowseTableRowFields + } + } + } +} + ${H}`;let ar=(()=>{class C extends t.AE{constructor(le){super(le),this.document=gr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const kr=t.Ps` + query CoordinatesCard($variantId: Int!) { + variant(id: $variantId) { + ...CoordinatesCardFields + } +} + ${Te}`;let Dr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=kr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cr=t.Ps` + query VariantPopover($variantId: Int!) { + variant(id: $variantId) { + ...variantPopoverFields + } +} + ${$e}`;let Ea=(()=>{class C extends t.AE{constructor(le){super(le),this.document=cr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gr=t.Ps` + query VariantsMenu($geneId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { + variants( + geneId: $geneId + name: $variantName + variantTypeIds: $variantTypeIds + hasNoVariantType: $hasNoVariantType + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuVariant + } + } + } +} + ${Xt}`;let Qr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Gr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const tc=t.Ps` + query VariantTypesForGene($geneId: Int) { + variantTypes(geneId: $geneId, first: 50) { + edges { + node { + ...menuVariantType + } + } + } +} + ${Tt}`;let $l=(()=>{class C extends t.AE{constructor(le){super(le),this.document=tc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const nc=t.Ps` + query BrowseVariants($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + entrezSymbol: $entrezSymbol + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + variantTypeName: $variantTypeName + hasNoVariantType: $hasNoVariantType + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields + } + } + totalCount + filteredCount + pageCount + lastUpdated + } +} + ${qt}`;let Rr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=nc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wn=t.Ps` + query ViewerBase { + viewer { + id + username + role + displayName + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + mostRecentConflictOfInterestStatement { + coiStatus + } + mostRecentOrganizationId + } +} + `;let Ho=(()=>{class C extends t.AE{constructor(le){super(le),this.document=wn}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Wc=t.Ps` + query ViewerNotificationCount { + notifications { + unreadCount + } +} + `;let Xs=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Wc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ei=t.Ps` + mutation AddComment($input: AddCommentInput!) { + addComment(input: $input) { + clientMutationId + comment { + ...commentListNode + } + } +} + ${_i}`;let ts=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Ei}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Vr=t.Ps` + query previewComment($commentText: String!) { + previewCommentText(commentText: $commentText) { + ...previewComment + } +} + ${Un}`;let lr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Vr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ea=t.Ps` + query userTypeahead($queryTerm: String!) { + userTypeahead(queryTerm: $queryTerm) { + username + } +} + `;let Zc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ea}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ta=t.Ps` + query entityTypeahead($queryTerm: String!) { + entityTypeahead(queryTerm: $queryTerm) { + entityId + tagType + displayName + } +} + `;let Xu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ta}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Kc=t.Ps` + query LinkableGene($geneId: Int!) { + gene(id: $geneId) { + id + name + link + } +} + `;let er=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Kc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` + query LinkableVariant($variantId: Int!) { + variant(id: $variantId) { + id + name + link + } +} + `,t.Ps` + query LinkableTherapy($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + link + } +} + `;const Jc=t.Ps` + mutation FlagEntity($input: FlagEntityInput!) { + flagEntity(input: $input) { + flag { + id + } + } +} + `;let xa=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Jc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const qc=t.Ps` + mutation ResolveFlag($input: ResolveFlagInput!) { + resolveFlag(input: $input) { + flag { + id + } + } +} + `;let Xc=(()=>{class C extends t.mm{constructor(le){super(le),this.document=qc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Da=t.Ps` + mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;let Oa=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Da}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wa=t.Ps` + mutation UpdateCoi($input: UpdateCoiInput!) { + updateCoi(input: $input) { + coiStatement { + coiPresent + coiStatus + createdAt + id + } + } +} + `;let Pa=(()=>{class C extends t.mm{constructor(le){super(le),this.document=wa}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const oc=t.Ps` + mutation UpdateUserProfile($input: EditUserInput!) { + editUser(input: $input) { + user { + id + } + } +} + `;let Ia=(()=>{class C extends t.mm{constructor(le){super(le),this.document=oc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const el=t.Ps` + query Countries { + countries { + id + name + } +} + `;let Aa=(()=>{class C extends t.AE{constructor(le){super(le),this.document=el}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const tl=t.Ps` + mutation DeprecateVariant($variantId: Int!, $deprecationReason: DeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateVariant( + input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + newlyDeprecatedMolecularProfiles { + id + } + variant { + id + name + } + } +} + `;let nl=(()=>{class C extends t.mm{constructor(le){super(le),this.document=tl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ol=t.Ps` + query MolecularProfilesForVariant($variantId: Int!) { + molecularProfiles(variantId: $variantId, first: 50) { + nodes { + id + name + link + evidenceCountsByStatus { + submittedCount + acceptedCount + } + } + } +} + `;let ic=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ol}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const B=t.Ps` + query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + ${zn}`;let X=(()=>{class C extends t.AE{constructor(le){super(le),this.document=B}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const x=t.Ps` + mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + results { + newlyCreated + } + } +} + `;let ce=(()=>{class C extends t.mm{constructor(le){super(le),this.document=x}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ie=t.Ps` + mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} + `;let ht=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Ie}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _t=t.Ps` + query EvidenceItemRevisableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...RevisableEvidenceFields + } +} + ${ei}`;let an=(()=>{class C extends t.AE{constructor(le){super(le),this.document=_t}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const An=t.Ps` + mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { + suggestEvidenceItemRevision(input: $input) { + clientMutationId + evidenceItem { + id + } + results { + newlyCreated + } + } +} + `;let io=(()=>{class C extends t.mm{constructor(le){super(le),this.document=An}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` + query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { + sourceSuggestionValues( + molecularProfileId: $molecularProfileId + diseaseId: $diseaseId + sourceId: $sourceId + ) { + molecularProfile { + id + name + link + } + disease { + id + name + link + } + source { + id + sourceType + citationId + citation + link + } + } +} + `,t.Ps` + query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + ${bo}`;const Br=t.Ps` + mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `;let zr=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Br}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Bi=t.Ps` + query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { + evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { + totalCount + } +} + `;let Tr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Bi}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ul=t.Ps` + query FullyCuratedSource($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } +} + `;let jl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ul}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gl=t.Ps` + query GeneRevisableFields($geneId: Int!) { + gene(id: $geneId) { + ...RevisableGeneFields + } +} + ${eo}`;let oa=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Gl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fs=t.Ps` + mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { + suggestGeneRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let rc=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Fs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const e1=t.Ps` + query MolecularProfileRevisableFields($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...RevisableMolecularProfileFields + } +} + ${hi}`;let il=(()=>{class C extends t.AE{constructor(le){super(le),this.document=e1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ql=t.Ps` + mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { + suggestMolecularProfileRevision(input: $input) { + clientMutationId + molecularProfile { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let t1=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Ql}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const rl=t.Ps` + mutation SubmitSource($input: SuggestSourceInput!) { + suggestSource(input: $input) { + clientMutationId + sourceSuggestion { + id + } + } +} + `;let pd=(()=>{class C extends t.mm{constructor(le){super(le),this.document=rl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hd=t.Ps` + query SourceSuggestionChecks($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } + sourceSuggestions(sourceId: $sourceId) { + filteredCount + } +} + `;let Wl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=hd}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const sc=t.Ps` + query VariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + ...RevisableVariantFields + } +} + ${Fo}`;let Zl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=sc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ms=t.Ps` + mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { + suggestVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let ac=(()=>{class C extends t.mm{constructor(le){super(le),this.document=ms}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cc=t.Ps` + query VariantGroupRevisableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupRevisableFields + } +} + ${xo}`;let Kl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=cc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const sl=t.Ps` + mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { + suggestVariantGroupRevision(input: $input) { + clientMutationId + variantGroup { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let Fa=(()=>{class C extends t.mm{constructor(le){super(le),this.document=sl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` + query VariantGroupSubmittableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...SubmittableVariantGroupFields + } +} + ${Do}`;const ia=t.Ps` + mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { + clientMutationId + variantGroup { + id + } + } +} + `;let Na=(()=>{class C extends t.mm{constructor(le){super(le),this.document=ia}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const lc=t.Ps` + query EntityTagsTest($molecularProfileId: Int!, $geneId: Int!, $variantId: Int!, $therapyId: Int!, $diseaseId: Int!, $eid: Int!) { + evidenceItem(id: $eid) { + id + name + link + } + molecularProfile(id: $molecularProfileId) { + id + name + link + } + gene(id: $geneId) { + id + name + link + } + variant(id: $variantId) { + id + name + link + } + therapy(id: $therapyId) { + id + name + link + } + disease(id: $diseaseId) { + id + name + link + } +} + `;let uc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=lc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const dc=t.Ps` + query AcmgCodeSelectTypeahead($code: String!) { + acmgCodesTypeahead(queryTerm: $code) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${Ri}`;let al=(()=>{class C extends t.AE{constructor(le){super(le),this.document=dc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const n1=t.Ps` + query AcmgCodeSelectTag($id: Int!) { + acmgCode(id: $id) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${Ri}`;let o1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=n1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const r1=t.Ps` + query ClingenCodeSelectTypeahead($code: String!) { + clingenCodesTypeahead(queryTerm: $code) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${oi}`;let ql=(()=>{class C extends t.AE{constructor(le){super(le),this.document=r1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cl=t.Ps` + query ClingenCodeSelectTag($id: Int!) { + clingenCode(id: $id) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${oi}`;let pc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=cl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const La=t.Ps` + mutation QuickAddDisease($name: String!, $doid: String) { + addDisease(input: {name: $name, doid: $doid}) { + ...QuickAddDiseaseFields + } +} + ${Ti}`;let ns=(()=>{class C extends t.mm{constructor(le){super(le),this.document=La}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Xl=t.Ps` + query DiseaseSelectTypeahead($name: String!) { + diseaseTypeahead(queryTerm: $name) { + ...DiseaseSelectTypeaheadFields + } +} + ${vo}`;let eu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Xl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ll=t.Ps` + query DiseaseSelectTag($id: Int!) { + disease(id: $id) { + ...DiseaseSelectTypeaheadFields + } +} + ${vo}`;let Ns=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ll}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const tu=t.Ps` + query EvidenceManager($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + significance: $significance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + molecularProfileId: $molecularProfileId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + therapyId: $therapyId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + molecularProfileName: $molecularProfileName + status: $status + sortBy: $sortBy + ) { + totalCount + pageCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceManagerFields + } + } + nodes { + ...EvidenceManagerFields + } + } +} + ${Fn}`;let ul=(()=>{class C extends t.AE{constructor(le){super(le),this.document=tu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hc=t.Ps` + query EvidenceSelectTypeahead($eid: Int!) { + evidenceItems(id: $eid) { + nodes { + ...EvidenceSelectTypeaheadFields + } + } +} + ${Mi}`;let nu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=hc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const dl=t.Ps` + query EvidenceSelectTag($eid: Int!) { + evidenceItem(id: $eid) { + ...EvidenceSelectTypeaheadFields + } +} + ${Mi}`;let fc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=dl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ra=t.Ps` + query GeneSelectTypeahead($entrezSymbol: String!) { + geneTypeahead(queryTerm: $entrezSymbol) { + ...GeneSelectTypeaheadFields + } +} + ${bi}`;let Ls=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ra}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ks=t.Ps` + query GeneSelectTag($geneId: Int!) { + gene(id: $geneId) { + ...GeneSelectTypeaheadFields + } +} + ${bi}`;let pl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ks}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const gs=t.Ps` + query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { + molecularProfiles(name: $name, geneId: $geneId, first: 25) { + nodes { + ...MolecularProfileSelectTypeaheadFields + } + } +} + ${Vn}`;let sa=(()=>{class C extends t.AE{constructor(le){super(le),this.document=gs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const aa=t.Ps` + query MolecularProfileSelectTag($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...MolecularProfileSelectTypeaheadFields + } +} + ${Vn}`;let ou=(()=>{class C extends t.AE{constructor(le){super(le),this.document=aa}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const s1=t.Ps` + query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { + previewMolecularProfileName(structure: $mpStructure) { + existingMolecularProfile { + id + name + link + } + segments { + ...PreviewMpName2 + } + deprecatedVariants { + id + name + link + } + } +} + ${nr}`;let a1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=s1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const c1=t.Ps` + query MpExpressionEditorPrepopulate($mpId: Int!) { + molecularProfile(id: $mpId) { + id + parsedName { + ...MolecularProfileParsedName + } + rawName + } +} + ${De}`;let l1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=c1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hl=t.Ps` + mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!) { + createMolecularProfile(input: {structure: $mpStructure}) { + molecularProfile { + id + name + link + } + } +} + `;let u1=(()=>{class C extends t.mm{constructor(le){super(le),this.document=hl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ca=t.Ps` + query NccnGuidelineSelectTypeahead($name: String!) { + nccnGuidelinesTypeahead(queryTerm: $name) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Ui}`;let d1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ca}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const p1=t.Ps` + query NccnGuidelineSelectTag($id: Int!) { + nccnGuideline(id: $id) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Ui}`;let Ni=(()=>{class C extends t.AE{constructor(le){super(le),this.document=p1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fl=t.Ps` + query PhenotypeSelectTypeahead($name: String!) { + phenotypeTypeahead(queryTerm: $name) { + ...PhenotypeSelectTypeaheadFields + } +} + ${Ao}`;let la=(()=>{class C extends t.AE{constructor(le){super(le),this.document=fl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const iu=t.Ps` + query PhenotypeSelectTag($id: Int!) { + phenotype(id: $id) { + ...PhenotypeSelectTypeaheadFields + } +} + ${Ao}`;let Mr=(()=>{class C extends t.AE{constructor(le){super(le),this.document=iu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ua=t.Ps` + query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) +} + `;let ml=(()=>{class C extends t.AE{constructor(le){super(le),this.document=ua}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ka=t.Ps` + mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { + id + citationId + sourceType + } + } +} + `;let da=(()=>{class C extends t.mm{constructor(le){super(le),this.document=ka}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const h1=t.Ps` + query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceSelectTypeaheadFields + } +} + ${jo}`;let f1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=h1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const mc=t.Ps` + query SourceSelectTag($id: Int!) { + source(id: $id) { + ...SourceSelectTypeaheadFields + } +} + ${jo}`;let m1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=mc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vr=t.Ps` + mutation QuickAddTherapy($name: String!, $ncitId: String) { + addTherapy(input: {name: $name, ncitId: $ncitId}) { + ...QuickAddTherapyFields + } +} + ${Pr}`;let Ra=(()=>{class C extends t.mm{constructor(le){super(le),this.document=vr}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vs=t.Ps` + query TherapySelectTypeahead($name: String!) { + therapyTypeahead(queryTerm: $name) { + ...TherapySelectTypeaheadFields + } +} + ${Xn}`;let fd=(()=>{class C extends t.AE{constructor(le){super(le),this.document=vs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const gl=t.Ps` + query TherapySelectTag($id: Int!) { + therapy(id: $id) { + ...TherapySelectTypeaheadFields + } +} + ${Xn}`;let ru=(()=>{class C extends t.AE{constructor(le){super(le),this.document=gl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const su=t.Ps` + query VariantManager($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + entrezSymbol: $entrezSymbol + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields + } + } + totalCount + filteredCount + pageCount + } +} + ${qt}`;let au=(()=>{class C extends t.AE{constructor(le){super(le),this.document=su}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cu=t.Ps` + mutation QuickAddVariant($name: String!, $geneId: Int!) { + addVariant(input: {name: $name, geneId: $geneId}) { + ...QuickAddVariantFields + } +} + ${Xi}`;let lu=(()=>{class C extends t.mm{constructor(le){super(le),this.document=cu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vl=t.Ps` + query VariantSelectTypeahead($name: String!, $geneId: Int) { + variants(name: $name, geneId: $geneId, first: 50) { + totalCount + edges { + node { + ...VariantSelectTypeaheadFields + } + } + nodes { + ...VariantSelectTypeaheadFields + } + } +} + ${or}`;let gc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=vl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Va=t.Ps` + query VariantSelectTag($variantId: Int!) { + variant(id: $variantId) { + ...VariantSelectTypeaheadFields + } +} + ${or}`;let vc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Va}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const os=t.Ps` + query VariantTypeSelectTypeahead($name: String!) { + variantTypeTypeahead(queryTerm: $name) { + ...VariantTypeSelectTypeaheadFields + } +} + ${pr}`;let uu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=os}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ba=t.Ps` + query VariantTypeSelectTag($id: Int!) { + variantType(id: $id) { + ...VariantTypeSelectTypeaheadFields + } +} + ${pr}`;let du=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ba}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const pu=t.Ps` + query AssertionDetail($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionDetailFields + } +} + ${hr}`;let _c=(()=>{class C extends t.AE{constructor(le){super(le),this.document=pu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ha=t.Ps` + query AssertionSummary($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionSummaryFields + } +} + ${lo}`;let _s=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ha}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _l=t.Ps` + query ClinicalTrialDetail($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let hu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=_l}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Rs=t.Ps` + query ClinicalTrialSummary($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let pa=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Rs}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const yc=t.Ps` + query DiseaseDetail($diseaseId: Int!) { + disease(id: $diseaseId) { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + } +} + `;let g1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=yc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const yl=t.Ps` + query DiseasesSummary($diseaseId: Int!) { + disease(id: $diseaseId) { + ...DiseasesSummaryFields + } +} + ${Po}`;let fu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=yl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const v1=t.Ps` + query EvidenceDetail($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceDetailFields + } +} + ${qo}`;let mu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=v1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const gu=t.Ps` + query EvidenceSummary($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceSummaryFields + } +} + ${Vo}`;let Cl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=gu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ya=t.Ps` + query GeneDetail($geneId: Int!) { + gene(id: $geneId) { + ...GeneDetailFields + } +} + ${Zo}`;let zl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Ya}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tl=t.Ps` + query GenesSummary($geneId: Int!) { + gene(id: $geneId) { + ...GeneSummaryFields + } +} + ${Ko}`;let Ml=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Tl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _1=t.Ps` + query MolecularProfileDetail($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileDetailFields + } +} + ${ji}`;let bl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=_1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const y1=t.Ps` + query MolecularProfileSummary($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileSummaryFields + } +} + ${Xo}`;let vu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=y1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _u=t.Ps` + query OrganizationDetail($organizationId: Int!) { + organization(id: $organizationId) { + ...OrganizationDetailFields + } +} + ${jn}`;let Cc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=_u}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const C1=t.Ps` + query OrganizationGroups($organizationId: Int!) { + organization(id: $organizationId) { + subGroups { + ...OrganizationGroupsFields + } + } +} + ${so}`;let md=(()=>{class C extends t.AE{constructor(le){super(le),this.document=C1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zc=t.Ps` + query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { + users( + organization: {id: $organizationId} + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationMembersFields + } + } + } +} + ${Ue}`;let z1=(()=>{class C extends t.AE{constructor(le){super(le),this.document=zc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const T1=t.Ps` + query PhenotypeDetail($phenotypeId: Int!) { + phenotype(id: $phenotypeId) { + id + name + description + hpoId + url + link + } +} + `;let yu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=T1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const M1=t.Ps` + query DataReleases { + dataReleases { + ...Release + } +} + ${oe}`;let gd=(()=>{class C extends t.AE{constructor(le){super(le),this.document=M1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const b1=t.Ps` + query SourceDetail($sourceId: Int!) { + source(id: $sourceId) { + ...SourceDetailFields + } +} + ${Oe}`;let Tc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=b1}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Mc=t.Ps` + query SourceSummary($sourceId: Int!) { + source(id: $sourceId) { + ...SourceSummaryFields + } +} + ${Ge}`;let Cu=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Mc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Sl=t.Ps` + query TherapyDetail($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + ncitId + therapyUrl + therapyAliases + link + } +} + `;let bc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Sl}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const is=t.Ps` + query TherapiesSummary($therapyId: Int!) { + therapy(id: $therapyId) { + ...TherapiesSummaryFields + } +} + ${Ht}`;let Sc=(()=>{class C extends t.AE{constructor(le){super(le),this.document=is}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zu=t.Ps` + query UserDetail($userId: Int!) { + user(id: $userId) { + ...UserDetailFields + } +} + ${nn}`;let ha=(()=>{class C extends t.AE{constructor(le){super(le),this.document=zu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const $a=t.Ps` + query UserNotifications($first: Int, $last: Int, $before: String, $after: String, $notificationReason: NotificationReason, $subscriptionId: Int, $originatingObject: SubscribableInput, $eventType: EventAction, $originatingUserId: Int, $organizationId: Int, $includeRead: Boolean) { + notifications( + first: $first + last: $last + before: $before + after: $after + notificationReason: $notificationReason + subscriptionId: $subscriptionId + originatingObject: $originatingObject + eventType: $eventType + originatingUserId: $originatingUserId + organizationId: $organizationId + includeRead: $includeRead + ) { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + notificationSubjects { + ...notificationFeedSubjects + } + originatingUsers { + ...notificationOriginatingUsers + } + organizations { + ...notificationOrganization + } + eventTypes + edges { + node { + ...notificationNode + } + } + } +} + ${vn} +${en} +${fn} +${Nn}`;let Or=(()=>{class C extends t.AE{constructor(le){super(le),this.document=$a}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tu=t.Ps` + mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { + updateNotificationStatus(input: $input) { + notifications { + ...notificationNode + } + } +} + ${Nn}`;let Vs=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Tu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ec=t.Ps` + mutation Unsubscribe($input: UnsubscribeInput!) { + unsubscribe(input: $input) { + unsubscribedEntities { + ...subscribable + } + } +} + ${bn}`;let El=(()=>{class C extends t.mm{constructor(le){super(le),this.document=Ec}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const xc=t.Ps` + mutation Subscribe($input: SubscribeInput!) { + subscribe(input: $input) { + subscriptions { + id + } + } +} + `;let Mu=(()=>{class C extends t.mm{constructor(le){super(le),this.document=xc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const bu=t.Ps` + query VariantGroupDetail($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupDetailFields + } +} + ${dn}`;let Su=(()=>{class C extends t.AE{constructor(le){super(le),this.document=bu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` + query VariantGroupRevisions($variantGroupId: Int!, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int) { + variantGroup(id: $variantGroupId) { + id + revisions( + first: $first + last: $last + before: $before + after: $after + fieldName: $fieldName + originatingUserId: $originatingUserId + ) { + totalCount + uniqueRevisors { + username + id + profileImagePath(size: 32) + } + revisedFieldNames { + name + displayName + } + 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 + } + } + } + } +} + `;const xu=t.Ps` + query VariantGroupsSummary($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupSummaryFields + } +} + ${xn}`;let Pi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=xu}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Dc=t.Ps` + query VariantTypeDetail($variantTypeId: Int!) { + variantType(id: $variantTypeId) { + id + name + soid + description + url + link + } +} + `;let xl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Dc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Oc=t.Ps` + query VariantDetail($variantId: Int!) { + variant(id: $variantId) { + ...VariantDetailFields + } +} + ${Wn}`;let qi=(()=>{class C extends t.AE{constructor(le){super(le),this.document=Oc}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fa=t.Ps` + query VariantSummary($variantId: Int!) { + variant(id: $variantId) { + ...VariantSummaryFields + } +} + ${Hn}`;let Dl=(()=>{class C extends t.AE{constructor(le){super(le),this.document=fa}}return C.\u0275fac=function(le){return new(le||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},553:(It,be,a)=>{a.d(be,{N:()=>t});const t={production:!0}},7568:(It,be,a)=>{var t=a(6593),i=a(5879),v=a(5592),d=a(305),s=a(2096),L=a(4911),j=a(3019),$=a(2420);const I=new v.y($.Z);var F=a(8645),k=a(9315),U=a(5619),w=a(7394),M=a(7081),e=a(6232),R=a(8504),pe=a(4674);class Z{constructor(p,h,g){this.kind=p,this.value=h,this.error=g,this.hasValue="N"===p}observe(p){return A(this,p)}do(p,h,g){const{kind:z,value:E,error:q}=this;return"N"===z?p?.(E):"E"===z?h?.(q):g?.()}accept(p,h,g){var z;return(0,pe.m)(null===(z=p)||void 0===z?void 0:z.next)?this.observe(p):this.do(p,h,g)}toObservable(){const{kind:p,value:h,error:g}=this,z="N"===p?(0,s.of)(h):"E"===p?(0,R._)(()=>g):"C"===p?e.E:0;if(!z)throw new TypeError(`Unexpected notification kind ${p}`);return z}static createNext(p){return new Z("N",p)}static createError(p){return new Z("E",void 0,p)}static createComplete(){return Z.completeNotification}}function A(T,p){var h,g,z;const{kind:E,value:q,error:_e}=T;if("string"!=typeof E)throw new TypeError('Invalid notification, missing "kind"');"N"===E?null===(h=p.next)||void 0===h||h.call(p,q):"E"===E?null===(g=p.error)||void 0===g||g.call(p,_e):null===(z=p.complete)||void 0===z||z.call(p)}Z.completeNotification=new Z("C");var V=a(9360),O=a(8251),re=a(975),ae=function(){},Q=ae;function ue(T){Q=T||ae}var ge=console;function Se(T){if(T.error&&T.group&&T.groupCollapsed&&T.groupEnd&&T.warn)return T;var h=0;return{error:function(E){for(var q=arguments.length,_e=new Array(q>1?q-1:0),xe=1;xe1?q-1:0),xe=1;xe1?q-1:0),xe=1;xe2?xe-2:0),ft=2;ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var z,g=He(T);if(p){var E=He(this).constructor;z=Reflect.construct(g,arguments,E)}else z=g.apply(this,arguments);return function ie(T,p){return!p||"object"!=typeof p&&"function"!=typeof p?De(T):p}(this,z)}}function qe(T){return function ct(T){if(Array.isArray(T))return it(T)}(T)||function Cn(T){if(typeof Symbol<"u"&&null!=T[Symbol.iterator]||null!=T["@@iterator"])return Array.from(T)}(T)||Xe(T)||function Ot(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(T,p){if(T){if("string"==typeof T)return it(T,p);var h=Object.prototype.toString.call(T).slice(8,-1);if("Object"===h&&T.constructor&&(h=T.constructor.name),"Map"===h||"Set"===h)return Array.from(T);if("Arguments"===h||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return it(T,p)}}function it(T,p){(null==p||p>T.length)&&(p=T.length);for(var h=0,g=new Array(p);h-1&&(ft=ft.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var xt=ft.replace(/^\s+/,"").replace(/\(eval code/g,"("),$t=xt.match(/ (\((.+):(\d+):(\d+)\)$)/),Gt=(xt=$t?xt.replace($t[0],""):xt).split(/\s+/).slice(1),Kt=this.extractLocation($t?$t[1]:Gt.pop()),Qt=Gt.join(" ")||void 0,hn=["eval",""].indexOf(Kt[0])>-1?void 0:Kt[0];return new g({functionName:Qt,fileName:hn,lineNumber:Kt[1],columnNumber:Kt[2],source:ft})},this)},parseFFOrSafari:function(xe){return xe.stack.split("\n").filter(function(ft){return!ft.match(q)},this).map(function(ft){if(ft.indexOf(" > eval")>-1&&(ft=ft.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===ft.indexOf("@")&&-1===ft.indexOf(":"))return new g({functionName:ft});var xt=/((.*".+"[^@]*)?[^@]*)(?:@)/,$t=ft.match(xt),Gt=$t&&$t[1]?$t[1]:void 0,Kt=this.extractLocation(ft.replace(xt,""));return new g({functionName:Gt,fileName:Kt[0],lineNumber:Kt[1],columnNumber:Kt[2],source:ft})},this)},parseOpera:function(xe){return!xe.stacktrace||xe.message.indexOf("\n")>-1&&xe.message.split("\n").length>xe.stacktrace.split("\n").length?this.parseOpera9(xe):xe.stack?this.parseOpera11(xe):this.parseOpera10(xe)},parseOpera9:function(xe){for(var Ke=/Line (\d+).*script (?:in )?(\S+)/i,ft=xe.message.split("\n"),xt=[],$t=2,Gt=ft.length;$t/,"$2").replace(/\([^)]*\)/g,"")||void 0;Gt.match(/\(([^)]*)\)/)&&(Qt=Gt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var hn=void 0===Qt||"[arguments not available]"===Qt?void 0:Qt.split(",");return new g({functionName:Kt,args:hn,fileName:$t[0],lineNumber:$t[1],columnNumber:$t[2],source:ft})},this)}})}),Me=Je(function(T,p){p.getArg=function h(on,gn,$n){if(gn in on)return on[gn];if(3===arguments.length)return $n;throw new Error('"'+gn+'" is a required argument.')};var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,z=/^data:.+\,.+$/;function E(on){var gn=on.match(g);return gn?{scheme:gn[1],auth:gn[2],host:gn[3],port:gn[4],path:gn[5]}:null}function q(on){var gn="";return on.scheme&&(gn+=on.scheme+":"),gn+="//",on.auth&&(gn+=on.auth+"@"),on.host&&(gn+=on.host),on.port&&(gn+=":"+on.port),on.path&&(gn+=on.path),gn}function _e(on){var gn=on,$n=E(on);if($n){if(!$n.path)return on;gn=$n.path}for(var So,Ln=p.isAbsolute(gn),ao=gn.split(/\/+/),xi=0,Si=ao.length-1;Si>=0;Si--)"."===(So=ao[Si])?ao.splice(Si,1):".."===So?xi++:xi>0&&(""===So?(ao.splice(Si+1,xi),xi=0):(ao.splice(Si,2),xi--));return""===(gn=ao.join("/"))&&(gn=Ln?"/":"."),$n?($n.path=gn,q($n)):gn}p.urlParse=E,p.urlGenerate=q,p.normalize=_e,p.join=function xe(on,gn){""===on&&(on="."),""===gn&&(gn=".");var $n=E(gn),Ln=E(on);if(Ln&&(on=Ln.path||"/"),$n&&!$n.scheme)return Ln&&($n.scheme=Ln.scheme),q($n);if($n||gn.match(z))return gn;if(Ln&&!Ln.host&&!Ln.path)return Ln.host=gn,q(Ln);var ao="/"===gn.charAt(0)?gn:_e(on.replace(/\/+$/,"")+"/"+gn);return Ln?(Ln.path=ao,q(Ln)):ao},p.isAbsolute=function(on){return"/"===on.charAt(0)||!!on.match(g)},p.relative=function Ke(on,gn){""===on&&(on="."),on=on.replace(/\/$/,"");for(var $n=0;0!==gn.indexOf(on+"/");){var Ln=on.lastIndexOf("/");if(Ln<0||(on=on.slice(0,Ln)).match(/^([^\/]+:\/)?\/*$/))return gn;++$n}return Array($n+1).join("../")+gn.substr(on.length+1)};var ft=!("__proto__"in Object.create(null));function xt(on){return on}function Kt(on){if(!on)return!1;var gn=on.length;if(gn<9||95!==on.charCodeAt(gn-1)||95!==on.charCodeAt(gn-2)||111!==on.charCodeAt(gn-3)||116!==on.charCodeAt(gn-4)||111!==on.charCodeAt(gn-5)||114!==on.charCodeAt(gn-6)||112!==on.charCodeAt(gn-7)||95!==on.charCodeAt(gn-8)||95!==on.charCodeAt(gn-9))return!1;for(var $n=gn-10;$n>=0;$n--)if(36!==on.charCodeAt($n))return!1;return!0}function En(on,gn){return on===gn?0:on>gn?1:-1}p.toSetString=ft?xt:function $t(on){return Kt(on)?"$"+on:on},p.fromSetString=ft?xt:function Gt(on){return Kt(on)?on.slice(1):on},p.compareByOriginalPositions=function Qt(on,gn,$n){var Ln=on.source-gn.source;return 0!==Ln||0!=(Ln=on.originalLine-gn.originalLine)||0!=(Ln=on.originalColumn-gn.originalColumn)||$n||0!=(Ln=on.generatedColumn-gn.generatedColumn)||0!=(Ln=on.generatedLine-gn.generatedLine)?Ln:on.name-gn.name},p.compareByGeneratedPositionsDeflated=function hn(on,gn,$n){var Ln=on.generatedLine-gn.generatedLine;return 0!==Ln||0!=(Ln=on.generatedColumn-gn.generatedColumn)||$n||0!=(Ln=on.source-gn.source)||0!=(Ln=on.originalLine-gn.originalLine)||0!=(Ln=on.originalColumn-gn.originalColumn)?Ln:on.name-gn.name},p.compareByGeneratedPositionsInflated=function Yn(on,gn){var $n=on.generatedLine-gn.generatedLine;return 0!==$n||0!=($n=on.generatedColumn-gn.generatedColumn)||0!==($n=En(on.source,gn.source))||0!=($n=on.originalLine-gn.originalLine)||0!=($n=on.originalColumn-gn.originalColumn)?$n:En(on.name,gn.name)}}),zt=Je(function(T,p){function h(g,z,E,q,_e,xe){var Ke=Math.floor((z-g)/2)+g,ft=_e(E,q[Ke],!0);return 0===ft?Ke:ft>0?z-Ke>1?h(Ke,z,E,q,_e,xe):xe==p.LEAST_UPPER_BOUND?z1?h(g,Ke,E,q,_e,xe):xe==p.LEAST_UPPER_BOUND?Ke:g<0?-1:g}p.GREATEST_LOWER_BOUND=1,p.LEAST_UPPER_BOUND=2,p.search=function(z,E,q,_e){if(0===E.length)return-1;var xe=h(-1,E.length,z,E,q,_e||p.GREATEST_LOWER_BOUND);if(xe<0)return-1;for(;xe-1>=0&&0===q(E[xe],E[xe-1],!0);)--xe;return xe}}),nt=Object.prototype.hasOwnProperty;function We(){this._array=[],this._set=Object.create(null)}We.fromArray=function(p,h){for(var g=new We,z=0,E=p.length;z=0&&p=z)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(xe=dt_decode(p.charCodeAt(h++))))throw new Error("Invalid base64 digit: "+p.charAt(h-1));_e=!!(32&xe),E+=(xe&=31)<>1;return 1==(1&T)?-h:h}(E),g.rest=h};function gt(T,p,h){var g=T[p];T[p]=T[h],T[h]=g}function H(T,p,h,g){if(h=0){var q=this._originalMappings[E];if(void 0===p.column)for(var _e=q.originalLine;q&&q.originalLine===_e;)z.push({line:Me.getArg(q,"generatedLine",null),column:Me.getArg(q,"generatedColumn",null),lastColumn:Me.getArg(q,"lastGeneratedColumn",null)}),q=this._originalMappings[++E];else for(var xe=q.originalColumn;q&&q.originalLine===h&&q.originalColumn==xe;)z.push({line:Me.getArg(q,"generatedLine",null),column:Me.getArg(q,"generatedColumn",null),lastColumn:Me.getArg(q,"lastGeneratedColumn",null)}),q=this._originalMappings[++E]}return z};var Un=qt;function zn(T){var p=T;"string"==typeof T&&(p=JSON.parse(T.replace(/^\)\]\}'/,"")));var h=Me.getArg(p,"version"),g=Me.getArg(p,"sources"),z=Me.getArg(p,"names",[]),E=Me.getArg(p,"sourceRoot",null),q=Me.getArg(p,"sourcesContent",null),_e=Me.getArg(p,"mappings"),xe=Me.getArg(p,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);g=g.map(String).map(Me.normalize).map(function(Ke){return E&&Me.isAbsolute(E)&&Me.isAbsolute(Ke)?Me.relative(E,Ke):Ke}),this._names=Tt.fromArray(z.map(String),!0),this._sources=Tt.fromArray(g,!0),this.sourceRoot=E,this.sourcesContent=q,this._mappings=_e,this.file=xe}function Vn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(zn.prototype=Object.create(qt.prototype)).consumer=qt,zn.fromSourceMap=function(p){var h=Object.create(zn.prototype),g=h._names=Tt.fromArray(p._names.toArray(),!0),z=h._sources=Tt.fromArray(p._sources.toArray(),!0);h.sourceRoot=p._sourceRoot,h.sourcesContent=p._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=p._file;for(var E=p._mappings.toArray().slice(),q=h.__generatedMappings=[],_e=h.__originalMappings=[],xe=0,Ke=E.length;xe1&&(Qt.source=_e+En[1],_e+=En[1],Qt.originalLine=E+En[2],E=Qt.originalLine,Qt.originalLine+=1,Qt.originalColumn=q+En[3],q=Qt.originalColumn,En.length>4&&(Qt.name=xe+En[4],xe+=En[4])),Kt.push(Qt),"number"==typeof Qt.originalLine&&Gt.push(Qt)}Xt(Kt,Me.compareByGeneratedPositionsDeflated),this.__generatedMappings=Kt,Xt(Gt,Me.compareByOriginalPositions),this.__originalMappings=Gt},zn.prototype._findMapping=function(p,h,g,z,E,q){if(p[g]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+p[g]);if(p[z]<0)throw new TypeError("Column must be greater than or equal to 0, got "+p[z]);return zt.search(p,h,E,q)},zn.prototype.computeColumnSpans=function(){for(var p=0;p=0){var z=this._generatedMappings[g];if(z.generatedLine===h.generatedLine){var E=Me.getArg(z,"source",null);null!==E&&(E=this._sources.at(E),null!=this.sourceRoot&&(E=Me.join(this.sourceRoot,E)));var q=Me.getArg(z,"name",null);return null!==q&&(q=this._names.at(q)),{source:E,line:Me.getArg(z,"originalLine",null),column:Me.getArg(z,"originalColumn",null),name:q}}}return{source:null,line:null,column:null,name:null}},zn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(p){return null==p})},zn.prototype.sourceContentFor=function(p,h){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(p=Me.relative(this.sourceRoot,p)),this._sources.has(p))return this.sourcesContent[this._sources.indexOf(p)];var g;if(null!=this.sourceRoot&&(g=Me.urlParse(this.sourceRoot))){var z=p.replace(/^file:\/\//,"");if("file"==g.scheme&&this._sources.has(z))return this.sourcesContent[this._sources.indexOf(z)];if((!g.path||"/"==g.path)&&this._sources.has("/"+p))return this.sourcesContent[this._sources.indexOf("/"+p)]}if(h)return null;throw new Error('"'+p+'" is not in the SourceMap.')},zn.prototype.generatedPositionFor=function(p){var h=Me.getArg(p,"source");if(null!=this.sourceRoot&&(h=Me.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};var g={source:h=this._sources.indexOf(h),originalLine:Me.getArg(p,"line"),originalColumn:Me.getArg(p,"column")},z=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",Me.compareByOriginalPositions,Me.getArg(p,"bias",qt.GREATEST_LOWER_BOUND));if(z>=0){var E=this._originalMappings[z];if(E.source===g.source)return{line:Me.getArg(E,"generatedLine",null),column:Me.getArg(E,"generatedColumn",null),lastColumn:Me.getArg(E,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var vo=zn;function Xn(T){var p=T;"string"==typeof T&&(p=JSON.parse(T.replace(/^\)\]\}'/,"")));var h=Me.getArg(p,"version"),g=Me.getArg(p,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new Tt,this._names=new Tt;var z={line:-1,column:0};this._sections=g.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var q=Me.getArg(E,"offset"),_e=Me.getArg(q,"line"),xe=Me.getArg(q,"column");if(_e=200&&Qt.status<300||"file://"===$t.substr(0,7)&&Qt.responseText?Gt(Qt.responseText):Kt(new Error("HTTP status: "+Qt.status+" retrieving "+$t)))},Qt.send()})}function E($t){if(typeof window<"u"&&window.atob)return window.atob($t);throw new Error("You must supply a polyfill for window.atob in this environment")}function Ke($t){if("object"!==_n($t))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof $t.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof $t.lineNumber||$t.lineNumber%1!=0||$t.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof $t.columnNumber||$t.columnNumber%1!=0||$t.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function $t(Gt){if(!(this instanceof $t))return new $t(Gt);this.sourceCache=(Gt=Gt||{}).sourceCache||{},this.sourceMapConsumerCache=Gt.sourceMapConsumerCache||{},this.ajax=Gt.ajax||z,this._atob=Gt.atob||E,this._get=function(Qt){return new Promise(function(hn,En){var Yn="data:"===Qt.substr(0,5);if(this.sourceCache[Qt])hn(this.sourceCache[Qt]);else if(Gt.offline&&!Yn)En(new Error("Cannot make network requests in offline mode"));else if(Yn){var gn=Qt.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(gn){var Ln=Qt.substr(gn[0].length),ao=this._atob(Ln);this.sourceCache[Qt]=ao,hn(ao)}else En(new Error("The encoding of the inline sourcemap is not supported"))}else{var So=this.ajax(Qt,{method:"get"});this.sourceCache[Qt]=So,So.then(hn,En)}}.bind(this))},this._getSourceMapConsumer=function(Qt,hn){return new Promise(function(En){if(this.sourceMapConsumerCache[Qt])En(this.sourceMapConsumerCache[Qt]);else{var Yn=new Promise(function(on,gn){return this._get(Qt).then(function($n){"string"==typeof $n&&($n=function q($t){if(typeof JSON<"u"&&JSON.parse)return JSON.parse($t);throw new Error("You must supply a polyfill for JSON.parse in this environment")}($n.replace(/^\)\]\}'/,""))),typeof $n.sourceRoot>"u"&&($n.sourceRoot=hn),on(new h.SourceMapConsumer($n))},gn)}.bind(this));this.sourceMapConsumerCache[Qt]=Yn,En(Yn)}}.bind(this))},this.pinpoint=function(Qt){return new Promise(function(hn,En){this.getMappedLocation(Qt).then(function(Yn){function on(){hn(Yn)}this.findFunctionName(Yn).then(hn,on).catch(on)}.bind(this),En)}.bind(this))},this.findFunctionName=function(Qt){return new Promise(function(hn,En){Ke(Qt),this._get(Qt.fileName).then(function(on){var gn=Qt.lineNumber,$n=Qt.columnNumber,Ln=function _e($t,Gt){for(var Kt=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],Qt=$t.split("\n"),hn="",En=Math.min(Gt,20),Yn=0;Yn=0&&(on=on.substr(0,gn)),on){hn=on+hn;for(var $n=Kt.length,Ln=0;Ln<$n;Ln++){var ao=Kt[Ln].exec(hn);if(ao&&ao[1])return ao[1]}}}}(on,gn);hn(Ln?new g({functionName:Ln,args:Qt.args,fileName:Qt.fileName,lineNumber:gn,columnNumber:$n}):Qt)},En).catch(En)}.bind(this))},this.getMappedLocation=function(Qt){return new Promise(function(hn,En){(function xe(){if("function"!=typeof Object.defineProperty||"function"!=typeof Object.create)throw new Error("Unable to consume source maps in older browsers")})(),Ke(Qt);var Yn=this.sourceCache,on=Qt.fileName;this._get(on).then(function(gn){var $n=function ft($t){for(var Kt,Qt,Gt=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm;Qt=Gt.exec($t);)Kt=Qt[1];if(Kt)return Kt;throw new Error("sourceMappingURL not found")}(gn),Ln="data:"===$n.substr(0,5),ao=on.substring(0,on.lastIndexOf("/")+1);return"/"!==$n[0]&&!Ln&&!/^https?:\/\/|^\/\//i.test($n)&&($n=ao+$n),this._getSourceMapConsumer($n,ao).then(function(So){return function xt($t,Gt,Kt){return new Promise(function(Qt,hn){var En=Gt.originalPositionFor({line:$t.lineNumber,column:$t.columnNumber});if(En.source){var Yn=Gt.sourceContentFor(En.source);Yn&&(Kt[En.source]=Yn),Qt(new g({functionName:En.name||$t.functionName,args:$t.args,fileName:En.source,lineNumber:En.line,columnNumber:En.column}))}else hn(new Error("Could not get original source for given stackframe and source map"))})}(Qt,So,Yn).then(hn).catch(function(){hn(Qt)})})}.bind(this),En).catch(En)}.bind(this))}}}(jo,N)}),bo=Object.freeze(Object.assign(Object.create(null),ei,{default:ei}));function eo(){return function(p){return p.lift(new hi)}}var hi=function(){function T(){On(this,T),Ve(this,"hide",!0)}return wt(T,[{key:"call",value:function(h,g){return g.subscribe(h)}}]),T}(),xo=Symbol("stackTraceRef");function Do(T){var p=oi(T);return p?p.mappedStackTrace:(0,s.of)([])}function Ri(T){var p=oi(T);return p?p.stackTrace:[]}function oi(T){return T[xo]}function Ti(T,p){return T[xo]=p,p}var Fn=function(T){Be(h,T);var p=Ce(h);function h(){var g,E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,q=void 0!==E&&E;return On(this,h),Ve(De(g=p.call(this,"stackTrace")),"sourceCache_",void 0),Ve(De(g),"sourceMaps_",void 0),g.sourceCache_={},g.sourceMaps_=q,g}return wt(h,[{key:"beforeSubscribe",value:function(z){var E=this,q=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?Ti(z,{mappedStackTrace:(0,L.P)(function(){var _e=new bo({sourceCache:E.sourceCache_});return Promise.all(q.map(function(xe){return _e.pinpoint(xe).catch(function(){return xe})}))}).pipe((0,M.d)(1),eo()),stackTrace:q}):Ti(z,{mappedStackTrace:(0,s.of)(q).pipe(eo()),stackTrace:q})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(E){var z=!0;return J.parse(E).filter(function(q){var _e=!z;return/coreSubscribe_/.test(q.functionName||"")&&(z=!1),_e})}}}]),h}(Wt),Mi=Symbol("cycleDetected"),bi=Symbol("cycleWarned"),nr=function(T){Be(h,T);var p=Ce(h);function h(g,z){var E;return On(this,h),Ve(De(E=p.call(this,"cycle")),"logger_",void 0),Ve(De(E),"nexts_",[]),Ve(De(E),"spy_",void 0),E.logger_=Se(z),E.spy_=g,E}return wt(h,[{key:"afterNext",value:function(z,E){this.nexts_.pop()}},{key:"beforeNext",value:function(z,E){var q=this.logger_,_e=this.nexts_,xe=this.spy_,Ke=z.observable,ft=z.subscription;if(-1!==_e.indexOf(z)&&!ft[Mi]&&(ft[Mi]=!0,-1===_e.findIndex(function(Kt){return Kt.subscription[bi]}))){ft[bi]=!0;var xt=Ri(z);0===xt.length&&xe.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var $t=xt.length?"; subscribed at\n".concat(xt.join("\n")):"",Gt=Ct(Ke);q.warn("Cyclic next detected; type = ".concat(Gt,"; value = ").concat(E).concat($t))}_e.push(z)}}]),h}(Wt),Ui=function(T){Be(h,T);var p=Ce(h);function h(g,z){var E;return On(this,h),Ve(De(E=p.call(this,"debug(".concat(Ze(g),")"))),"notifications_",void 0),Ve(De(E),"matcher_",void 0),E.notifications_=z,E.matcher_=function(q,_e){return Ye(q,g)&&-1!==E.notifications_.indexOf(_e)},E}return wt(h,[{key:"beforeComplete",value:function(z){(0,this.matcher_)(z,"complete")}},{key:"beforeError",value:function(z,E){(0,this.matcher_)(z,"error")}},{key:"beforeNext",value:function(z,E){(0,this.matcher_)(z,"next")}},{key:"beforeSubscribe",value:function(z){(0,this.matcher_)(z,"subscribe")}},{key:"beforeUnsubscribe",value:function(z){(0,this.matcher_)(z,"unsubscribe")}}]),h}(Wt),Pr=Symbol("graphRef");function Oi(T){return T[Pr]}var Xi=function(T){Be(h,T);var p=Ce(h);function h(){var g,E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,q=void 0===E?3e4:E;return On(this,h),Ve(De(g=p.call(this,"graph")),"flushIntervalId_",void 0),Ve(De(g),"flushQueue_",void 0),Ve(De(g),"keptDuration_",void 0),Ve(De(g),"notifications_",void 0),Ve(De(g),"sentinel_",void 0),g.flushIntervalId_=void 0,g.flushQueue_=[],g.keptDuration_=q,g.notifications_=[],g.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},g.sentinel_.link=g.sentinel_,g.sentinel_.sentinel=g.sentinel_,g}return wt(h,[{key:"afterNext",value:function(z,E){this.notifications_.pop()}},{key:"afterSubscribe",value:function(z){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(z){this.notifications_.pop(),this.flush_(z)}},{key:"beforeNext",value:function(z,E){this.notifications_.push({notification:"next",ref:z})}},{key:"beforeSubscribe",value:function(z){var E=this.notifications_,q=this.sentinel_,_e=function or(T,p){return T[Pr]=p,p}(z,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:q,rootSink:void 0,sentinel:q,sink:void 0,sources:[],sourcesFlushed:0}),xe=E.length;if(xe>0&&"next"===E[xe-1].notification){var Ke=E[xe-1].ref,ft=Oi(Ke);ft.flattenings.push(z),_e.link=ft,_e.flattened=!0,_e.rootSink=ft.rootSink||Ke,_e.sink=Ke}else for(var xt=xe-1;xt>-1;--xt)if("subscribe"===E[xt].notification){var $t=E[xe-1].ref,Gt=Oi($t);Gt.sources.push(z),_e.depth=Gt.depth+1,_e.link=Gt,_e.rootSink=Gt.rootSink||$t,_e.sink=$t;break}_e.link===_e.sentinel&&_e.sentinel.sources.push(z),E.push({notification:"subscribe",ref:z})}},{key:"beforeUnsubscribe",value:function(z){this.notifications_.push({notification:"unsubscribe",ref:z})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(z){var E=this,q=Oi(z),xe=q.sources;if(z.unsubscribed&&q.flattenings.every(function($t){return $t.unsubscribed})&&xe.every(function($t){return $t.unsubscribed})){var Ke=this.keptDuration_,ft=q.link,xt=function(){var Gt=ft.flattenings,Kt=ft.sources,Qt=Gt.indexOf(z);-1!==Qt&&(Gt.splice(Qt,1),++ft.flatteningsFlushed);var hn=Kt.indexOf(z);-1!==hn&&(Kt.splice(hn,1),++ft.sourcesFlushed)};0===Ke?xt():Ke>0&&Ke<1/0&&(this.flushQueue_.push({due:Date.now()+Ke,flush:xt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var $t=Date.now();E.flushQueue_=E.flushQueue_.filter(function(Gt){return Gt.due>$t||(Gt.flush(),!1)}),0===E.flushQueue_.length&&(clearInterval(E.flushIntervalId_),E.flushIntervalId_=void 0)},Ke)))}}}]),h}(Wt),pr=function(T){Be(h,T);var p=Ce(h);function h(g,z){var E,_e=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,xe=void 0===_e||_e;return On(this,h),Ve(De(E=p.call(this,"let(".concat(Ze(g),")"))),"match_",void 0),Ve(De(E),"select_",void 0),E.match_=g,E.select_=xe?z:function(Ke){return(0,j.T)(I,z(Ke))},E}return wt(h,[{key:"select",value:function(z){var q=this.select_;if(Ye(z,this.match_))return q}}]),h}(Wt),hr=function(T){Be(h,T);var p=Ce(h);function h(g,z){var E;On(this,h),Ve(De(E=p.call(this,"log(".concat(Ze(z),")"))),"auditor_",void 0),Ve(De(E),"logger_",void 0),Ve(De(E),"notificationMatch_",void 0),Ve(De(E),"tagMatch_",void 0),E.auditor_=g.auditor,E.tagMatch_=z;var q=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:E.notificationMatch_=q,E.logger_=Se(ge);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(E.notificationMatch_=arguments.length<=2?void 0:arguments[2],E.logger_=Se(ge)):(E.notificationMatch_=q,E.logger_=Se(arguments.length<=2?void 0:arguments[2]));break;default:E.notificationMatch_=arguments.length<=2?void 0:arguments[2],E.logger_=Se(arguments.length<=3?void 0:arguments[3])}return E}return wt(h,[{key:"beforeComplete",value:function(z){this.log_(z,"complete")}},{key:"beforeError",value:function(z,E){this.log_(z,"error",E)}},{key:"beforeNext",value:function(z,E){this.log_(z,"next",E)}},{key:"beforeSubscribe",value:function(z){this.log_(z,"subscribe")}},{key:"beforeUnsubscribe",value:function(z){this.log_(z,"unsubscribe")}},{key:"log_",value:function(z,E,q){var _e=this,xe=this.auditor_,Ke=this.notificationMatch_,ft=this.tagMatch_;Ye(z,ft)&&Ye(z,Ke,E)&&xe.audit(this,function(xt){var $t=_e.logger_,Gt=z.observable,Kt=st(Gt),Qt=Ct(Gt),hn="string"==typeof ft?"":"; matching ".concat(Ze(ft)),En=0===xt?"":"; ignored ".concat(xt),Yn=Kt?"Tag = ".concat(Kt,"; notification = ").concat(E).concat(hn).concat(En):"Type = ".concat(Qt,"; notification = ").concat(E).concat(hn).concat(En);switch(E){case"error":$t.error("".concat(Yn,"; error ="),q);break;case"next":$t.log("".concat(Yn,"; value ="),q);break;default:$t.log(Yn)}})}}]),h}(Wt),lo=function(){function T(p){On(this,T),Ve(this,"teardown",void 0),Ve(this,"match_",void 0),Ve(this,"paused_",!0),Ve(this,"states_",new Map),Ve(this,"stats_",void 0),this.match_=p,this.stats_=new F.x}return wt(T,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(g){g.notifications_=g.notifications_.filter(function(z){return!h(z)})}),this.broadcast_()}},{key:"log",value:function(){var g=Se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge);g.group("Deck matching ".concat(Ze(this.match_))),g.log("Paused =",this.paused_),this.states_.forEach(function(z){g.group("Observable; tag = ".concat(z.tag_)),g.log("Notifications =",z.notifications_),g.groupEnd()}),g.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(h){for(;h.notifications_.length>0;)h.subject_.next(h.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(h){var g=this,z=h.observable;return function(E){var q=g.states_.get(z);return q?q.subscription_.unsubscribe():(q={notifications_:[],subject_:new F.x,subscription_:void 0,tag_:st(z)},g.states_.set(z,q)),q.subscription_=E.pipe(function P(){return(0,V.e)((T,p)=>{T.subscribe((0,O.x)(p,h=>{p.next(Z.createNext(h))},()=>{p.next(Z.createComplete()),p.complete()},h=>{p.next(Z.createError(h)),p.complete()}))})}(),eo()).subscribe({next:function(xe){g.paused_?q.notifications_.push(xe):q.subject_.next(xe),g.broadcast_()}}),g.broadcast_(),q.subject_.asObservable().pipe(function D(){return(0,V.e)((T,p)=>{T.subscribe((0,O.x)(p,h=>A(h,p)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(h){h.notifications_.length>0&&h.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(h){h.notifications_.length>0&&h.subject_.next(h.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(h){h.subscription_&&(h.subscription_.unsubscribe(),h.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var h=this.paused_,z=this.stats_,E=0;this.states_.forEach(function(q){return E+=q.notifications_.length}),z.next({notifications:E,paused:h})}}]),T}(),Oo=function(T){Be(h,T);var p=Ce(h);function h(g){var z;return On(this,h),Ve(De(z=p.call(this,"pause(".concat(Ze(g),")"))),"match_",void 0),Ve(De(z),"deck_",void 0),z.deck_=new lo(g),z.match_=g,z}return wt(h,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(z){var E=this.deck_;if(Ye(z,this.match_))return E.select(z)}},{key:"teardown",value:function(){var z=this.deck_;z&&(z.resume(),z.unsubscribe())}}]),h}(Wt),Po=Symbol("snapshotRef");function qo(T){return T[Po]}function Vo(T){var p=[(0,s.of)(null)];return T.forEach(function(g){g.subscriptions?g.subscriptions.forEach(h):h(g)}),(0,k.D)(p).pipe((0,re.h)(void 0),eo());function h(g){p.push(g.mappedStackTrace),g.rootSink&&p.push(g.rootSink.mappedStackTrace)}}var Ko=function(T){Be(h,T);var p=Ce(h);function h(g){var z,q=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,_e=void 0===q?4:q;return On(this,h),Ve(De(z=p.call(this,"snapshot")),"keptValues_",void 0),Ve(De(z),"sentinel_",void 0),Ve(De(z),"spy_",void 0),z.keptValues_=_e,z.sentinel_=void 0,z.spy_=g,z}return wt(h,[{key:"afterUnsubscribe",value:function(z){var E=qo(z);E.tick=this.spy_.tick,E.unsubscribed=!0}},{key:"beforeComplete",value:function(z){var E=qo(z);E.tick=this.spy_.tick,E.complete=!0}},{key:"beforeError",value:function(z,E){var q=qo(z);q.tick=this.spy_.tick,q.error=E}},{key:"beforeNext",value:function(z,E){var q=this.spy_.tick,_e=qo(z);_e.tick=q,_e.values.push({tick:q,timestamp:Date.now(),value:E});var Ke=_e.values.length-this.keptValues_;Ke>0&&(_e.values.splice(0,Ke),_e.valuesFlushed+=Ke)}},{key:"beforeSubscribe",value:function(z){!function Zo(T,p){T[Po]=p}(z,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var E=Oi(z);E?this.sentinel_=E.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,q=new Map,_e=new Map,xe=new Map,Ke=this.getSubscriptionRefs_();return Ke.forEach(function(ft,xt){var $t,Gt=xt.observable,Kt=xt.subscriber,Qt=xt.subscription,hn=Oi(xt),En=hn.flatteningsFlushed,Yn=hn.sourcesFlushed,on=qo(xt),Ln=on.tick,ao=on.timestamp,So=on.unsubscribed,xi=on.values,Si=on.valuesFlushed,as={complete:on.complete,error:on.error,flattenings:new Map,flatteningsFlushed:En,id:Ft(xt),mappedStackTrace:Do(xt),observable:Gt,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:Yn,stackTrace:Ri(xt),subscriber:Kt,subscription:Qt,tick:Ln,timestamp:ao,unsubscribed:So};xe.set(Qt,as);var Hi=_e.get(Kt);Hi||(Hi={id:Ft(Kt),subscriber:Kt,subscriptions:new Map,tick:Ln,values:[],valuesFlushed:0},_e.set(Kt,Hi)),Hi.subscriptions.set(Qt,as),Hi.tick=Math.max(Hi.tick,Ln),($t=Hi.values).push.apply($t,qe(xi)),Hi.valuesFlushed+=Si;var yr=q.get(Gt);yr||(yr={id:Ft(Gt),observable:Gt,path:yt(Gt),subscriptions:new Map,tag:st(Gt),tick:Ln,type:Ct(Gt)},q.set(Gt,yr)),yr.subscriptions.set(Qt,as),yr.tick=Math.max(yr.tick,Ln)}),Ke.forEach(function(ft,xt){var $t=Oi(xt),Gt=xe.get(xt.subscription);$t.sink&&(Gt.sink=xe.get($t.sink.subscription)),$t.rootSink&&(Gt.rootSink=xe.get($t.rootSink.subscription)),$t.flattenings.forEach(function(Kt){return Gt.flattenings.set(Kt.subscription,xe.get(Kt.subscription))}),$t.sources.forEach(function(Kt){return Gt.sources.set(Kt.subscription,xe.get(Kt.subscription))})}),_e.forEach(function(ft){ft.values.sort(function(xt,$t){return xt.tick-$t.tick})}),void 0!==E&&(q.forEach(function(ft,xt){ft.tick<=E.tick&&q.delete(xt)}),_e.forEach(function(ft,xt){ft.tick<=E.tick&&_e.delete(xt)}),xe.forEach(function(ft,xt){ft.tick<=E.tick&&xe.delete(xt)})),{mapStackTraces:Vo,observables:q,subscribers:_e,subscriptions:xe,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(z){return this.snapshotAll().observables.get(z.observable)}},{key:"snapshotSubscriber",value:function(z){return this.snapshotAll().subscribers.get(z.subscriber)}},{key:"addSubscriptionRefs_",value:function(z,E){var q=this;E.set(z,!0);var _e=Oi(z);_e.flattenings.forEach(function(xe){return q.addSubscriptionRefs_(xe,E)}),_e.sources.forEach(function(xe){return q.addSubscriptionRefs_(xe,E)})}},{key:"getSubscriptionRefs_",value:function(){var z=this,E=this.sentinel_,q=new Map;return E&&E.sources.forEach(function(_e){return z.addSubscriptionRefs_(_e,q)}),q}}]),h}(Wt),_i=function(T){Be(h,T);var p=Ce(h);function h(g){var z;return On(this,h),Ve(De(z=p.call(this,"stats")),"spy_",void 0),Ve(De(z),"stats_",void 0),Ve(De(z),"time_",void 0),z.spy_=g,z.stats_={completes:0,errors:0,flattenedSubscribes:0,leafSubscribes:0,maxDepth:0,nexts:0,rootSubscribes:0,subscribes:0,tick:0,timespan:0,totalDepth:0,unsubscribes:0},z.time_=0,z}return wt(h,[{key:"afterSubscribe",value:function(z){var E=this.stats_,q=Oi(z);if(q){var _e=q.depth,xe=q.flattened,Ke=q.flattenings,ft=q.flatteningsFlushed,$t=q.sources,Gt=q.sourcesFlushed;q.rootSink||(E.rootSubscribes+=1),xe&&(E.flattenedSubscribes+=1),Ke.length+ft+$t.length+Gt===0&&(E.maxDepth<_e&&(E.maxDepth=_e),E.leafSubscribes+=1,E.totalDepth+=_e)}}},{key:"beforeComplete",value:function(z){++this.stats_.completes,this.all_()}},{key:"beforeError",value:function(z,E){++this.stats_.errors,this.all_()}},{key:"beforeNext",value:function(z,E){++this.stats_.nexts,this.all_()}},{key:"beforeSubscribe",value:function(z){++this.stats_.subscribes,this.all_()}},{key:"beforeUnsubscribe",value:function(z){++this.stats_.unsubscribes,this.all_()}},{key:"stats",get:function(){return function Jt(T){for(var p=1;p0&&(this.timeoutId_=setTimeout(function(){for(var q=Date.now()-g;z.length>0&&z[0].timestamp<=q;){var _e=z.shift();_e.task(_e.ignored)}h.timeoutId_=void 0,h.wait_()},Math.max(0,z[0].timestamp+g-Date.now())))}}]),T}(),Zi=function(){function T(p){On(this,T),Ve(this,"detectorRecords_",void 0),Ve(this,"snapshotPlugin_",void 0),Ve(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=p.find(Ko),this.spy_=p}return wt(T,[{key:"detect",value:function(h){var g=this.detectorRecords_,z=this.snapshotPlugin_,E=this.spy_;if(z){var q=g.get(h),_e=this.record_(z.snapshotAll());if(q?q.snapshotRecords.push(_e):g.set(h,q={snapshotRecords:[_e]}),q.snapshotRecords.length>2&&q.snapshotRecords.shift(),!(q.snapshotRecords.length<2)){var xe=function ve(T,p){return function Zt(T){if(Array.isArray(T))return T}(T)||function at(T,p){var h=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(null!=h){var q,_e,g=[],z=!0,E=!1;try{for(h=h.call(T);!(z=(q=h.next()).done)&&(g.push(q.value),!p||g.length!==p);z=!0);}catch(xe){E=!0,_e=xe}finally{try{!z&&null!=h.return&&h.return()}finally{if(E)throw _e}}return g}}(T,p)||Xe(T,p)||function Pt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(q.snapshotRecords,2);return this.compare_(h,xe[0],xe[1])}}else E.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(h,g,z){var E=[],q=[],_e=[],xe=[],Ke=g.rootSubscriptions,ft=z.rootSubscriptions;if(Ke.forEach(function(xt,$t){ft.has($t)||q.push(xt)}),ft.forEach(function(xt,$t){var Gt=Ke.get($t);if(Gt){var Kt=Gt.flattenings,Qt=xt.flattenings;Kt.forEach(function(hn,En){Qt.has(En)||xe.push(hn)}),Qt.forEach(function(hn,En){Kt.has(En)||_e.push(hn)})}else E.push(xt)}),0!==_e.length||0!==xe.length||0!==E.length||0!==q.length)return{flatteningSubscriptions:_e,flatteningUnsubscriptions:xe,subscriptions:E.map(function(xt){return xt.subscriptionSnapshot}),unsubscriptions:q.map(function(xt){return xt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(h,g){var z=g.flattenings,E=g.subscriptionSnapshot;h.subscriptions.forEach(function(q){q.rootSink===E&&q.flattenings.forEach(function(_e){var xe=_e.subscription;xe.closed||z.set(xe,_e)})})}},{key:"findRootSubscriptions_",value:function(h,g){var z=this;h.observables.forEach(function(E){E.subscriptions.forEach(function(q){var ft=q.subscription;if(!(q.complete||q.error||q.sink||ft.closed)){var xt={flattenings:new Map,subscriptionSnapshot:q};z.findFlatteningSubscriptions_(h,xt),g.set(ft,xt)}})})}},{key:"record_",value:function(h){var g=new Map;return this.findRootSubscriptions_(h,g),{rootSubscriptions:g,snapshot:h}}}]),T}();var so=v.y.prototype.subscribe,Ue={},oe=function(){function T(){var p=this,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(On(this,T),Ve(this,"auditor_",void 0),Ve(this,"defaultLogger_",void 0),Ve(this,"maxLogged_",20),Ve(this,"plugins_",void 0),Ve(this,"pluginsSubject_",void 0),Ve(this,"teardown_",void 0),Ve(this,"tick_",void 0),Ve(this,"undos_",void 0),Ve(this,"warned_",void 0),T.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");h.warning&&console.warn("Spying on Observable.prototype.subscribe."),T.spy_=this,v.y.prototype.subscribe=T.coreSubscribe_,this.auditor_=new ji(h.audit||0),this.defaultLogger_=h.defaultLogger||ge,this.plugins_=!1===h.defaultPlugins?[]:[new Fn(h),new Xi(h),new Ko(this,h),new nr(this,this.defaultLogger_),new _i(this)],this.pluginsSubject_=new U.X(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var g=new Zi(this);ue(function(z){return p.detect_(z,g)}),typeof window<"u"&&[h.global||"spy","rxSpy"].forEach(function(z){window.hasOwnProperty(z)&&(p.defaultLogger_.log("Overwriting window.".concat(z)),Ue[z]=window[z]),window[z]=function jn(T){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(g){p();var z=T.findAll(Oo);if(void 0!==g){var q=z[g-1];return q?q.deck:void 0}var E=Se(ge);E.group("".concat(z.length," Deck(s)")),z.forEach(function(_e,xe){return E.log("".concat(xe+1," pause(").concat(_e.name,")"))}),E.groupEnd()},debug:function(){p();for(var g=arguments.length,z=new Array(g),E=0;E0&&void 0!==arguments[0]?arguments[0]:"";p(),function fe(T){Q(T)}(g)},flush:function(){p(),T.flush()},inferPath:yt,inferType:Ct,let:function(){p();for(var g=arguments.length,z=new Array(g),E=0;E1?g-1:0),E=1;Eft?Ke.length-ft:0;xt&&Ke.splice(ft,xt),xe.group("".concat(Ke.length+xt," snapshot(s) found"));var $t=Ke.length>3?"groupCollapsed":"group";Ke.forEach(function(Gt){var Kt=Gt.observable;xe[$t].call(xe,Kt.tag?"Tag = ".concat(Kt.tag):"Type = ".concat(Kt.type)),xe.log("Path =",Kt.path);var Qt=Gt.subs,hn=Gt.subs.length>3?"groupCollapsed":"group";xe.group("".concat(Qt.length," subscriber(s)")),Qt.forEach(function(En){var Yn=En.subscription,on=En.subscriber,gn=on.values,$n=on.valuesFlushed;xe[hn].call(xe,"Subscriber"),xe.log("Value count =",gn.length+$n),gn.length>0&&xe.log("Last value =",gn[gn.length-1].value),Ge(xe,Yn),Array.from(on.subscriptions.values()).filter(function(ao){return ao!==Yn}).forEach(function(ao){xe.groupCollapsed("Other subscription"),Ge(xe,ao),xe.groupEnd()}),xe.groupEnd()}),xe.groupEnd(),xe.groupEnd()}),xt&&xe.log("... another ".concat(xt," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(h,g){var z=/.+/;h?"function"==typeof h.log&&(g=h,h=z):h=z;var E=this.find(Ko);if(E){var q=E.snapshotAll(),_e=Array.from(q.observables.values()).filter(function(xt){return Ye(xt.observable,h)}),xe=Se(g||this.defaultLogger_),Ke=this.maxLogged_,ft=_e.length>Ke?_e.length-Ke:0;ft&&_e.splice(Ke,ft),q.mapStackTraces(_e).subscribe(function(){xe.group("".concat(_e.length+ft," snapshot(s) matching ").concat(Ze(h)));var xt=_e.length>3?"groupCollapsed":"group";_e.forEach(function($t){xe[xt].call(xe,$t.tag?"Tag = ".concat($t.tag):"Type = ".concat($t.type)),xe.log("Path =",$t.path);var Gt=$t.subscriptions,Kt=Gt.size>3?"groupCollapsed":"group";xe.group("".concat(Gt.size," subscriber(s)")),Gt.forEach(function(Qt){var hn=q.subscribers.get(Qt.subscriber);if(hn){var En=hn.values,Yn=hn.valuesFlushed;xe[Kt].call(xe,"Subscriber"),xe.log("Value count =",En.length+Yn),En.length>0&&xe.log("Last value =",En[En.length-1].value),Ge(xe,Qt),Array.from(hn.subscriptions.values()).filter(function(gn){return gn!==Qt}).forEach(function(gn){xe.groupCollapsed("Other subscription"),Ge(xe,gn),xe.groupEnd()}),xe.groupEnd()}else xe.warn("Cannot find subscriber snapshot")}),xe.groupEnd(),xe.groupEnd()}),ft&&xe.log("... another ".concat(ft," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(h){var g=this.find(_i);if(g){var z=g.stats,E=z.leafSubscribes,q=z.maxDepth,_e=z.flattenedSubscribes,xe=z.rootSubscribes,Ke=z.totalDepth,ft=Se(h||this.defaultLogger_);ft.group("Stats"),ft.log("Subscribes =",z.subscribes),xe>0&&ft.log("Root subscribes =",xe),E>0&&ft.log("Leaf subscribes =",E),_e>0&&ft.log("Flattened subscribes =",_e),ft.log("Unsubscribes =",z.unsubscribes),ft.log("Nexts =",z.nexts),ft.log("Errors =",z.errors),ft.log("Completes =",z.completes),q>0&&(ft.log("Max. depth =",q),ft.log("Avg. depth =",(Ke/E).toFixed(1))),ft.log("Tick =",z.tick),ft.log("Timespan =",z.timespan),ft.groupEnd()}else this.warnOnce(console,"Stats are not enabled.")}},{key:"teardown",value:function(){this.teardown_&&(this.teardown_(),this.teardown_=void 0)}},{key:"unplug",value:function(){for(var h=this,g=arguments.length,z=new Array(g),E=0;E2?z-2:0),q=2;q2?E-2:0),_e=2;_e0){this.preSelectSubject||(this.preSelectSubject=new F.x),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var hn=this.preSelectSubject.asObservable();Qt.forEach(function(En){return hn=En(hn)}),this.postSelectSubscription=hn.pipe(eo()).subscribe(xt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(Kt){this.preSelectSubject?this.preSelectSubject.next(Kt):this.postSelectObserver.next(Kt)},postSelectObserver:xt,postSelectSubscription:void 0,preSelectSubject:void 0,unsubscribe:function(){this.unsubscribed||(this.unsubscribed=!0,!this.completed&&!this.errored&&this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0))},unsubscribed:!1};return xe.add(g.pluginsSubject_.pipe(eo()).subscribe({next:function(Kt){return $t.let(Kt)}})),_e(function(Gt){return Gt.beforeSubscribe(Ke)},function(){xe.add(so.call(h,$t)),xe.add(function(){return $t.unsubscribe()})},function(Gt){return Gt.afterSubscribe(Ke)}),xe}}]),T}();function Ge(T,p){var g=p.error,z=p.unsubscribed;T.log("State =",p.complete?"complete":g?"error":"incomplete"),g&&T.error("Error =",g),z&&T.log("Unsubscribed =",!0),function Oe(T,p){var g=p.rootSink;(g?g.mappedStackTrace:p.mappedStackTrace).subscribe(function(E){return T.log("Root subscribe",E)})}(T,p)}Ve(oe,"spy_",void 0);var fn=a(6814);const en=void 0,Nn=["en",[["a","p"],["AM","PM"],en],[["AM","PM"],en,en],[["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"]],en,[["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"]],en,[["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}",en,"{1} 'at' {0}",en],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vn(T){const h=Math.floor(Math.abs(T)),g=T.toString().replace(/^[^.]*\.?/,"").length;return 1===h&&0===g?1:5}];var bn=a(9862),dn=a(6825);function Wn(T){return new i.vHH(3e3,!1)}function Ai(T){switch(T.length){case 0:return new dn.ZN;case 1:return T[0];default:return new dn.ZE(T)}}function Cr(T,p,h=new Map,g=new Map){const z=[],E=[];let q=-1,_e=null;if(p.forEach(xe=>{const Ke=xe.get("offset"),ft=Ke==q,xt=ft&&_e||new Map;xe.forEach(($t,Gt)=>{let Kt=Gt,Qt=$t;if("offset"!==Gt)switch(Kt=T.normalizePropertyName(Kt,z),Qt){case dn.k1:Qt=h.get(Gt);break;case dn.l3:Qt=g.get(Gt);break;default:Qt=T.normalizeStyleValue(Gt,Kt,Qt,z)}xt.set(Kt,Qt)}),ft||E.push(xt),_e=xt,q=Ke}),z.length)throw function Le(T){return new i.vHH(3502,!1)}();return E}function ps(T,p,h,g){switch(p){case"start":T.onStart(()=>g(h&&Ee(h,"start",T)));break;case"done":T.onDone(()=>g(h&&Ee(h,"done",T)));break;case"destroy":T.onDestroy(()=>g(h&&Ee(h,"destroy",T)))}}function Ee(T,p,h){const E=ye(T.element,T.triggerName,T.fromState,T.toState,p||T.phaseName,h.totalTime??T.totalTime,!!h.disabled),q=T._data;return null!=q&&(E._data=q),E}function ye(T,p,h,g,z="",E=0,q){return{element:T,triggerName:p,fromState:h,toState:g,phaseName:z,totalTime:E,disabled:!!q}}function de(T,p,h){let g=T.get(p);return g||T.set(p,g=h),g}function ut(T){const p=T.indexOf(":");return[T.substring(1,p),T.slice(p+1)]}const yn=(()=>typeof document>"u"?null:document.documentElement)();function Qn(T){const p=T.parentNode||T.host||null;return p===yn?null:p}let ai=null,Ir=!1;function Gs(T,p){for(;p;){if(p===T)return!0;p=Qn(p)}return!1}function hs(T,p,h){if(h)return Array.from(T.querySelectorAll(p));const g=T.querySelector(p);return g?[g]:[]}let Yr=(()=>{class T{validateStyleProperty(h){return function xs(T){ai||(ai=function js(){return typeof document<"u"?document.body:null}()||{},Ir=!!ai.style&&"WebkitAppearance"in ai.style);let p=!0;return ai.style&&!function pi(T){return"ebkit"==T.substring(1,6)}(T)&&(p=T in ai.style,!p&&Ir&&(p="Webkit"+T.charAt(0).toUpperCase()+T.slice(1)in ai.style)),p}(h)}matchesElement(h,g){return!1}containsElement(h,g){return Gs(h,g)}getParentElement(h){return Qn(h)}query(h,g,z){return hs(h,g,z)}computeStyle(h,g,z){return z||""}animate(h,g,z,E,q,_e=[],xe){return new dn.ZN(z,E)}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})(),$r=(()=>{class T{}return T.NOOP=new Yr,T})();const rr=1e3,fr="ng-enter",Os="ng-leave",Ar="ng-trigger",Sr=".ng-trigger",jr="ng-animating",Qs=".ng-animating";function Fr(T){if("number"==typeof T)return T;const p=T.match(/^(-?[\.\d]+)(m?s)/);return!p||p.length<2?0:fs(parseFloat(p[1]),p[2])}function fs(T,p){return"s"===p?T*rr:T}function mr(T,p,h){return T.hasOwnProperty("duration")?T:function Xa(T,p,h){let z,E=0,q="";if("string"==typeof T){const _e=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===_e)return p.push(Wn()),{duration:0,delay:0,easing:""};z=fs(parseFloat(_e[1]),_e[2]);const xe=_e[3];null!=xe&&(E=fs(parseFloat(xe),_e[4]));const Ke=_e[5];Ke&&(q=Ke)}else z=T;if(!h){let _e=!1,xe=p.length;z<0&&(p.push(function In(){return new i.vHH(3100,!1)}()),_e=!0),E<0&&(p.push(function Hn(){return new i.vHH(3101,!1)}()),_e=!0),_e&&p.splice(xe,0,Wn())}return{duration:z,delay:E,easing:q}}(T,p,h)}function Er(T,p={}){return Object.keys(T).forEach(h=>{p[h]=T[h]}),p}function ba(T){const p=new Map;return Object.keys(T).forEach(h=>{p.set(h,T[h])}),p}function xr(T,p=new Map,h){if(h)for(let[g,z]of h)p.set(g,z);for(let[g,z]of T)p.set(g,z);return p}function sr(T,p,h){p.forEach((g,z)=>{const E=Zs(z);h&&!h.has(z)&&h.set(z,T.style[E]),T.style[E]=g})}function Xr(T,p){p.forEach((h,g)=>{const z=Zs(g);T.style[z]=""})}function Nr(T){return Array.isArray(T)?1==T.length?T[0]:(0,dn.vP)(T):T}const es=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ws(T){let p=[];if("string"==typeof T){let h;for(;h=es.exec(T);)p.push(h[1]);es.lastIndex=0}return p}function Ps(T,p,h){const g=T.toString(),z=g.replace(es,(E,q)=>{let _e=p[q];return null==_e&&(h.push(function Zn(T){return new i.vHH(3003,!1)}()),_e=""),_e.toString()});return z==g?T:z}function Is(T){const p=[];let h=T.next();for(;!h.done;)p.push(h.value),h=T.next();return p}const Sa=/-+([a-z0-9])/g;function Zs(T){return T.replace(Sa,(...p)=>p[1].toUpperCase())}function Fi(T,p,h){switch(p.type){case 7:return T.visitTrigger(p,h);case 0:return T.visitState(p,h);case 1:return T.visitTransition(p,h);case 2:return T.visitSequence(p,h);case 3:return T.visitGroup(p,h);case 4:return T.visitAnimate(p,h);case 5:return T.visitKeyframes(p,h);case 6:return T.visitStyle(p,h);case 8:return T.visitReference(p,h);case 9:return T.visitAnimateChild(p,h);case 10:return T.visitAnimateRef(p,h);case 11:return T.visitQuery(p,h);case 12:return T.visitStagger(p,h);default:throw function to(T){return new i.vHH(3004,!1)}()}}function qs(T,p){return window.getComputedStyle(T)[p]}const At="*";function pn(T,p){const h=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(g=>function Tn(T,p,h){if(":"==T[0]){const xe=function no(T,p){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,g)=>parseFloat(g)>parseFloat(h);case":decrement":return(h,g)=>parseFloat(g) *"}}(T,h);if("function"==typeof xe)return void p.push(xe);T=xe}const g=T.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return h.push(function mi(T){return new i.vHH(3015,!1)}()),p;const z=g[1],E=g[2],q=g[3];p.push(Bo(z,q));"<"==E[0]&&!(z==At&&q==At)&&p.push(Bo(q,z))}(g,h,p)):h.push(T),h}const Qo=new Set(["true","1"]),mo=new Set(["false","0"]);function Bo(T,p){const h=Qo.has(T)||mo.has(T),g=Qo.has(p)||mo.has(p);return(z,E)=>{let q=T==At||T==z,_e=p==At||p==E;return!q&&h&&"boolean"==typeof z&&(q=z?Qo.has(T):mo.has(T)),!_e&&g&&"boolean"==typeof E&&(_e=E?Qo.has(p):mo.has(p)),q&&_e}}const gi=new RegExp("s*:selfs*,?","g");function Wo(T,p,h,g){return new zi(T).build(p,h,g)}class zi{constructor(p){this._driver=p}build(p,h,g){const z=new ar(h);return this._resetContextStyleTimingState(z),Fi(this,Nr(p),z)}_resetContextStyleTimingState(p){p.currentQuerySelector="",p.collectedStyles=new Map,p.collectedStyles.set("",new Map),p.currentTime=0}visitTrigger(p,h){let g=h.queryCount=0,z=h.depCount=0;const E=[],q=[];return"@"==p.name.charAt(0)&&h.errors.push(function _o(){return new i.vHH(3006,!1)}()),p.definitions.forEach(_e=>{if(this._resetContextStyleTimingState(h),0==_e.type){const xe=_e,Ke=xe.name;Ke.toString().split(/\s*,\s*/).forEach(ft=>{xe.name=ft,E.push(this.visitState(xe,h))}),xe.name=Ke}else if(1==_e.type){const xe=this.visitTransition(_e,h);g+=xe.queryCount,z+=xe.depCount,q.push(xe)}else h.errors.push(function Jn(){return new i.vHH(3007,!1)}())}),{type:7,name:p.name,states:E,transitions:q,queryCount:g,depCount:z,options:null}}visitState(p,h){const g=this.visitStyle(p.styles,h),z=p.options&&p.options.params||null;if(g.containsDynamicStyles){const E=new Set,q=z||{};g.styles.forEach(_e=>{_e instanceof Map&&_e.forEach(xe=>{Ws(xe).forEach(Ke=>{q.hasOwnProperty(Ke)||E.add(Ke)})})}),E.size&&(Is(E.values()),h.errors.push(function No(T,p){return new i.vHH(3008,!1)}()))}return{type:0,name:p.name,style:g,options:z?{params:z}:null}}visitTransition(p,h){h.queryCount=0,h.depCount=0;const g=Fi(this,Nr(p.animation),h);return{type:1,matchers:pn(p.expr,h.errors),animation:g,queryCount:h.queryCount,depCount:h.depCount,options:cr(p.options)}}visitSequence(p,h){return{type:2,steps:p.steps.map(g=>Fi(this,g,h)),options:cr(p.options)}}visitGroup(p,h){const g=h.currentTime;let z=0;const E=p.steps.map(q=>{h.currentTime=g;const _e=Fi(this,q,h);return z=Math.max(z,h.currentTime),_e});return h.currentTime=z,{type:3,steps:E,options:cr(p.options)}}visitAnimate(p,h){const g=function Dr(T,p){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Ea(mr(T,p).duration,0,"");const h=T;if(h.split(/\s+/).some(E=>"{"==E.charAt(0)&&"{"==E.charAt(1))){const E=Ea(0,0,"");return E.dynamic=!0,E.strValue=h,E}const z=mr(h,p);return Ea(z.duration,z.delay,z.easing)}(p.timings,h.errors);h.currentAnimateTimings=g;let z,E=p.styles?p.styles:(0,dn.oB)({});if(5==E.type)z=this.visitKeyframes(E,h);else{let q=p.styles,_e=!1;if(!q){_e=!0;const Ke={};g.easing&&(Ke.easing=g.easing),q=(0,dn.oB)(Ke)}h.currentTime+=g.duration+g.delay;const xe=this.visitStyle(q,h);xe.isEmptyStep=_e,z=xe}return h.currentAnimateTimings=null,{type:4,timings:g,style:z,options:null}}visitStyle(p,h){const g=this._makeStyleAst(p,h);return this._validateStyleAst(g,h),g}_makeStyleAst(p,h){const g=[],z=Array.isArray(p.styles)?p.styles:[p.styles];for(let _e of z)"string"==typeof _e?_e===dn.l3?g.push(_e):h.errors.push(new i.vHH(3002,!1)):g.push(ba(_e));let E=!1,q=null;return g.forEach(_e=>{if(_e instanceof Map&&(_e.has("easing")&&(q=_e.get("easing"),_e.delete("easing")),!E))for(let xe of _e.values())if(xe.toString().indexOf("{{")>=0){E=!0;break}}),{type:6,styles:g,easing:q,offset:p.offset,containsDynamicStyles:E,options:null}}_validateStyleAst(p,h){const g=h.currentAnimateTimings;let z=h.currentTime,E=h.currentTime;g&&E>0&&(E-=g.duration+g.delay),p.styles.forEach(q=>{"string"!=typeof q&&q.forEach((_e,xe)=>{const Ke=h.collectedStyles.get(h.currentQuerySelector),ft=Ke.get(xe);let xt=!0;ft&&(E!=z&&E>=ft.startTime&&z<=ft.endTime&&(h.errors.push(function Co(T,p,h,g,z){return new i.vHH(3010,!1)}()),xt=!1),E=ft.startTime),xt&&Ke.set(xe,{startTime:E,endTime:z}),h.options&&function ws(T,p,h){const g=p.params||{},z=Ws(T);z.length&&z.forEach(E=>{g.hasOwnProperty(E)||h.push(function Gn(T){return new i.vHH(3001,!1)}())})}(_e,h.options,h.errors)})})}visitKeyframes(p,h){const g={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function fi(){return new i.vHH(3011,!1)}()),g;let E=0;const q=[];let _e=!1,xe=!1,Ke=0;const ft=p.steps.map(En=>{const Yn=this._makeStyleAst(En,h);let on=null!=Yn.offset?Yn.offset:function kr(T){if("string"==typeof T)return null;let p=null;if(Array.isArray(T))T.forEach(h=>{if(h instanceof Map&&h.has("offset")){const g=h;p=parseFloat(g.get("offset")),g.delete("offset")}});else if(T instanceof Map&&T.has("offset")){const h=T;p=parseFloat(h.get("offset")),h.delete("offset")}return p}(Yn.styles),gn=0;return null!=on&&(E++,gn=Yn.offset=on),xe=xe||gn<0||gn>1,_e=_e||gn0&&E{const on=$t>0?Yn==Gt?1:$t*Yn:q[Yn],gn=on*hn;h.currentTime=Kt+Qt.delay+gn,Qt.duration=gn,this._validateStyleAst(En,h),En.offset=on,g.styles.push(En)}),g}visitReference(p,h){return{type:8,animation:Fi(this,Nr(p.animation),h),options:cr(p.options)}}visitAnimateChild(p,h){return h.depCount++,{type:9,options:cr(p.options)}}visitAnimateRef(p,h){return{type:10,animation:this.visitReference(p.animation,h),options:cr(p.options)}}visitQuery(p,h){const g=h.currentQuerySelector,z=p.options||{};h.queryCount++,h.currentQuery=p;const[E,q]=function co(T){const p=!!T.split(/\s*,\s*/).find(h=>":self"==h);return p&&(T=T.replace(gi,"")),T=T.replace(/@\*/g,Sr).replace(/@\w+/g,h=>Sr+"-"+h.slice(1)).replace(/:animating/g,Qs),[T,p]}(p.selector);h.currentQuerySelector=g.length?g+" "+E:E,de(h.collectedStyles,h.currentQuerySelector,new Map);const _e=Fi(this,Nr(p.animation),h);return h.currentQuery=null,h.currentQuerySelector=g,{type:11,selector:E,limit:z.limit||0,optional:!!z.optional,includeSelf:q,animation:_e,originalSelector:p.selector,options:cr(p.options)}}visitStagger(p,h){h.currentQuery||h.errors.push(function Ki(){return new i.vHH(3013,!1)}());const g="full"===p.timings?{duration:0,delay:0,easing:"full"}:mr(p.timings,h.errors,!0);return{type:12,animation:Fi(this,Nr(p.animation),h),timings:g,options:null}}}class ar{constructor(p){this.errors=p,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function cr(T){return T?(T=Er(T)).params&&(T.params=function gr(T){return T?Er(T):null}(T.params)):T={},T}function Ea(T,p,h){return{duration:T,delay:p,easing:h}}function Gr(T,p,h,g,z,E,q=null,_e=!1){return{type:1,element:T,keyframes:p,preStyleProps:h,postStyleProps:g,duration:z,delay:E,totalTime:z+E,easing:q,subTimeline:_e}}class Qr{constructor(){this._map=new Map}get(p){return this._map.get(p)||[]}append(p,h){let g=this._map.get(p);g||this._map.set(p,g=[]),g.push(...h)}has(p){return this._map.has(p)}clear(){this._map.clear()}}const nc=new RegExp(":enter","g"),wn=new RegExp(":leave","g");function Ho(T,p,h,g,z,E=new Map,q=new Map,_e,xe,Ke=[]){return(new Wc).buildKeyframes(T,p,h,g,z,E,q,_e,xe,Ke)}class Wc{buildKeyframes(p,h,g,z,E,q,_e,xe,Ke,ft=[]){Ke=Ke||new Qr;const xt=new Ei(p,h,Ke,z,E,ft,[]);xt.options=xe;const $t=xe.delay?Fr(xe.delay):0;xt.currentTimeline.delayNextStep($t),xt.currentTimeline.setStyles([q],null,xt.errors,xe),Fi(this,g,xt);const Gt=xt.timelines.filter(Kt=>Kt.containsAnimation());if(Gt.length&&_e.size){let Kt;for(let Qt=Gt.length-1;Qt>=0;Qt--){const hn=Gt[Qt];if(hn.element===h){Kt=hn;break}}Kt&&!Kt.allowOnlyTimelineStyles()&&Kt.setStyles([_e],null,xt.errors,xe)}return Gt.length?Gt.map(Kt=>Kt.buildKeyframes()):[Gr(h,[],[],[],0,$t,"",!1)]}visitTrigger(p,h){}visitState(p,h){}visitTransition(p,h){}visitAnimateChild(p,h){const g=h.subInstructions.get(h.element);if(g){const z=h.createSubContext(p.options),E=h.currentTimeline.currentTime,q=this._visitSubInstructions(g,z,z.options);E!=q&&h.transformIntoNewTimeline(q)}h.previousNode=p}visitAnimateRef(p,h){const g=h.createSubContext(p.options);g.transformIntoNewTimeline(),this._applyAnimationRefDelays([p.options,p.animation.options],h,g),this.visitReference(p.animation,g),h.transformIntoNewTimeline(g.currentTimeline.currentTime),h.previousNode=p}_applyAnimationRefDelays(p,h,g){for(const z of p){const E=z?.delay;if(E){const q="number"==typeof E?E:Fr(Ps(E,z?.params??{},h.errors));g.delayNextStep(q)}}}_visitSubInstructions(p,h,g){let E=h.currentTimeline.currentTime;const q=null!=g.duration?Fr(g.duration):null,_e=null!=g.delay?Fr(g.delay):null;return 0!==q&&p.forEach(xe=>{const Ke=h.appendInstructionToTimeline(xe,q,_e);E=Math.max(E,Ke.duration+Ke.delay)}),E}visitReference(p,h){h.updateOptions(p.options,!0),Fi(this,p.animation,h),h.previousNode=p}visitSequence(p,h){const g=h.subContextCount;let z=h;const E=p.options;if(E&&(E.params||E.delay)&&(z=h.createSubContext(E),z.transformIntoNewTimeline(),null!=E.delay)){6==z.previousNode.type&&(z.currentTimeline.snapshotCurrentStyles(),z.previousNode=Xs);const q=Fr(E.delay);z.delayNextStep(q)}p.steps.length&&(p.steps.forEach(q=>Fi(this,q,z)),z.currentTimeline.applyStylesToKeyframe(),z.subContextCount>g&&z.transformIntoNewTimeline()),h.previousNode=p}visitGroup(p,h){const g=[];let z=h.currentTimeline.currentTime;const E=p.options&&p.options.delay?Fr(p.options.delay):0;p.steps.forEach(q=>{const _e=h.createSubContext(p.options);E&&_e.delayNextStep(E),Fi(this,q,_e),z=Math.max(z,_e.currentTimeline.currentTime),g.push(_e.currentTimeline)}),g.forEach(q=>h.currentTimeline.mergeTimelineCollectedStyles(q)),h.transformIntoNewTimeline(z),h.previousNode=p}_visitTiming(p,h){if(p.dynamic){const g=p.strValue;return mr(h.params?Ps(g,h.params,h.errors):g,h.errors)}return{duration:p.duration,delay:p.delay,easing:p.easing}}visitAnimate(p,h){const g=h.currentAnimateTimings=this._visitTiming(p.timings,h),z=h.currentTimeline;g.delay&&(h.incrementTime(g.delay),z.snapshotCurrentStyles());const E=p.style;5==E.type?this.visitKeyframes(E,h):(h.incrementTime(g.duration),this.visitStyle(E,h),z.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=p}visitStyle(p,h){const g=h.currentTimeline,z=h.currentAnimateTimings;!z&&g.hasCurrentStyleProperties()&&g.forwardFrame();const E=z&&z.easing||p.easing;p.isEmptyStep?g.applyEmptyStep(E):g.setStyles(p.styles,E,h.errors,h.options),h.previousNode=p}visitKeyframes(p,h){const g=h.currentAnimateTimings,z=h.currentTimeline.duration,E=g.duration,_e=h.createSubContext().currentTimeline;_e.easing=g.easing,p.styles.forEach(xe=>{_e.forwardTime((xe.offset||0)*E),_e.setStyles(xe.styles,xe.easing,h.errors,h.options),_e.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(_e),h.transformIntoNewTimeline(z+E),h.previousNode=p}visitQuery(p,h){const g=h.currentTimeline.currentTime,z=p.options||{},E=z.delay?Fr(z.delay):0;E&&(6===h.previousNode.type||0==g&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=Xs);let q=g;const _e=h.invokeQuery(p.selector,p.originalSelector,p.limit,p.includeSelf,!!z.optional,h.errors);h.currentQueryTotal=_e.length;let xe=null;_e.forEach((Ke,ft)=>{h.currentQueryIndex=ft;const xt=h.createSubContext(p.options,Ke);E&&xt.delayNextStep(E),Ke===h.element&&(xe=xt.currentTimeline),Fi(this,p.animation,xt),xt.currentTimeline.applyStylesToKeyframe(),q=Math.max(q,xt.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(q),xe&&(h.currentTimeline.mergeTimelineCollectedStyles(xe),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=p}visitStagger(p,h){const g=h.parentContext,z=h.currentTimeline,E=p.timings,q=Math.abs(E.duration),_e=q*(h.currentQueryTotal-1);let xe=q*h.currentQueryIndex;switch(E.duration<0?"reverse":E.easing){case"reverse":xe=_e-xe;break;case"full":xe=g.currentStaggerTime}const ft=h.currentTimeline;xe&&ft.delayNextStep(xe);const xt=ft.currentTime;Fi(this,p.animation,h),h.previousNode=p,g.currentStaggerTime=z.currentTime-xt+(z.startTime-g.currentTimeline.startTime)}}const Xs={};class Ei{constructor(p,h,g,z,E,q,_e,xe){this._driver=p,this.element=h,this.subInstructions=g,this._enterClassName=z,this._leaveClassName=E,this.errors=q,this.timelines=_e,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Xs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=xe||new ts(this._driver,h,0),_e.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(p,h){if(!p)return;const g=p;let z=this.options;null!=g.duration&&(z.duration=Fr(g.duration)),null!=g.delay&&(z.delay=Fr(g.delay));const E=g.params;if(E){let q=z.params;q||(q=this.options.params={}),Object.keys(E).forEach(_e=>{(!h||!q.hasOwnProperty(_e))&&(q[_e]=Ps(E[_e],q,this.errors))})}}_copyOptions(){const p={};if(this.options){const h=this.options.params;if(h){const g=p.params={};Object.keys(h).forEach(z=>{g[z]=h[z]})}}return p}createSubContext(p=null,h,g){const z=h||this.element,E=new Ei(this._driver,z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(z,g||0));return E.previousNode=this.previousNode,E.currentAnimateTimings=this.currentAnimateTimings,E.options=this._copyOptions(),E.updateOptions(p),E.currentQueryIndex=this.currentQueryIndex,E.currentQueryTotal=this.currentQueryTotal,E.parentContext=this,this.subContextCount++,E}transformIntoNewTimeline(p){return this.previousNode=Xs,this.currentTimeline=this.currentTimeline.fork(this.element,p),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(p,h,g){const z={duration:h??p.duration,delay:this.currentTimeline.currentTime+(g??0)+p.delay,easing:""},E=new Vr(this._driver,p.element,p.keyframes,p.preStyleProps,p.postStyleProps,z,p.stretchStartingKeyframe);return this.timelines.push(E),z}incrementTime(p){this.currentTimeline.forwardTime(this.currentTimeline.duration+p)}delayNextStep(p){p>0&&this.currentTimeline.delayNextStep(p)}invokeQuery(p,h,g,z,E,q){let _e=[];if(z&&_e.push(this.element),p.length>0){p=(p=p.replace(nc,"."+this._enterClassName)).replace(wn,"."+this._leaveClassName);let Ke=this._driver.query(this.element,p,1!=g);0!==g&&(Ke=g<0?Ke.slice(Ke.length+g,Ke.length):Ke.slice(0,g)),_e.push(...Ke)}return!E&&0==_e.length&&q.push(function ii(T){return new i.vHH(3014,!1)}()),_e}}class ts{constructor(p,h,g,z){this._driver=p,this.element=h,this.startTime=g,this._elementTimelineStylesLookup=z,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(p){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+p),h&&this.snapshotCurrentStyles()):this.startTime+=p}fork(p,h){return this.applyStylesToKeyframe(),new ts(this._driver,p,h||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(p){this.applyStylesToKeyframe(),this.duration=p,this._loadKeyframe()}_updateStyle(p,h){this._localTimelineStyles.set(p,h),this._globalTimelineStyles.set(p,h),this._styleSummary.set(p,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(p){p&&this._previousKeyframe.set("easing",p);for(let[h,g]of this._globalTimelineStyles)this._backFill.set(h,g||dn.l3),this._currentKeyframe.set(h,dn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(p,h,g,z){h&&this._previousKeyframe.set("easing",h);const E=z&&z.params||{},q=function ea(T,p){const h=new Map;let g;return T.forEach(z=>{if("*"===z){g=g||p.keys();for(let E of g)h.set(E,dn.l3)}else xr(z,h)}),h}(p,this._globalTimelineStyles);for(let[_e,xe]of q){const Ke=Ps(xe,E,g);this._pendingStyles.set(_e,Ke),this._localTimelineStyles.has(_e)||this._backFill.set(_e,this._globalTimelineStyles.get(_e)??dn.l3),this._updateStyle(_e,Ke)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((p,h)=>{this._currentKeyframe.set(h,p)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((p,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,p)}))}snapshotCurrentStyles(){for(let[p,h]of this._localTimelineStyles)this._pendingStyles.set(p,h),this._updateStyle(p,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const p=[];for(let h in this._currentKeyframe)p.push(h);return p}mergeTimelineCollectedStyles(p){p._styleSummary.forEach((h,g)=>{const z=this._styleSummary.get(g);(!z||h.time>z.time)&&this._updateStyle(g,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const p=new Set,h=new Set,g=1===this._keyframes.size&&0===this.duration;let z=[];this._keyframes.forEach((_e,xe)=>{const Ke=xr(_e,new Map,this._backFill);Ke.forEach((ft,xt)=>{ft===dn.k1?p.add(xt):ft===dn.l3&&h.add(xt)}),g||Ke.set("offset",xe/this.duration),z.push(Ke)});const E=p.size?Is(p.values()):[],q=h.size?Is(h.values()):[];if(g){const _e=z[0],xe=new Map(_e);_e.set("offset",0),xe.set("offset",1),z=[_e,xe]}return Gr(this.element,z,E,q,this.duration,this.startTime,this.easing,!1)}}class Vr extends ts{constructor(p,h,g,z,E,q,_e=!1){super(p,h,q.delay),this.keyframes=g,this.preStyleProps=z,this.postStyleProps=E,this._stretchStartingKeyframe=_e,this.timings={duration:q.duration,delay:q.delay,easing:q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let p=this.keyframes,{delay:h,duration:g,easing:z}=this.timings;if(this._stretchStartingKeyframe&&h){const E=[],q=g+h,_e=h/q,xe=xr(p[0]);xe.set("offset",0),E.push(xe);const Ke=xr(p[0]);Ke.set("offset",lr(_e)),E.push(Ke);const ft=p.length-1;for(let xt=1;xt<=ft;xt++){let $t=xr(p[xt]);const Gt=$t.get("offset");$t.set("offset",lr((h+Gt*g)/q)),E.push($t)}g=q,h=0,z="",p=E}return Gr(this.element,p,this.preStyleProps,this.postStyleProps,g,h,z,!0)}}function lr(T,p=3){const h=Math.pow(10,p-1);return Math.round(T*h)/h}class ta{}const Kc=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class er extends ta{normalizePropertyName(p,h){return Zs(p)}normalizeStyleValue(p,h,g,z){let E="";const q=g.toString().trim();if(Kc.has(h)&&0!==g&&"0"!==g)if("number"==typeof g)E="px";else{const _e=g.match(/^[+-]?[\d\.]+([a-z]*)$/);_e&&0==_e[1].length&&z.push(function yo(T,p){return new i.vHH(3005,!1)}())}return q+E}}function Wr(T,p,h,g,z,E,q,_e,xe,Ke,ft,xt,$t){return{type:0,element:T,triggerName:p,isRemovalTransition:z,fromState:h,fromStyles:E,toState:g,toStyles:q,timelines:_e,queriedElements:xe,preStyleProps:Ke,postStyleProps:ft,totalTime:xt,errors:$t}}const na={};class As{constructor(p,h,g){this._triggerName=p,this.ast=h,this._stateStyles=g}match(p,h,g,z){return function Jc(T,p,h,g,z){return T.some(E=>E(p,h,g,z))}(this.ast.matchers,p,h,g,z)}buildStyles(p,h,g){let z=this._stateStyles.get("*");return void 0!==p&&(z=this._stateStyles.get(p?.toString())||z),z?z.buildStyles(h,g):new Map}build(p,h,g,z,E,q,_e,xe,Ke,ft){const xt=[],$t=this.ast.options&&this.ast.options.params||na,Kt=this.buildStyles(g,_e&&_e.params||na,xt),Qt=xe&&xe.params||na,hn=this.buildStyles(z,Qt,xt),En=new Set,Yn=new Map,on=new Map,gn="void"===z,$n={params:xa(Qt,$t),delay:this.ast.options?.delay},Ln=ft?[]:Ho(p,h,this.ast.animation,E,q,Kt,hn,$n,Ke,xt);let ao=0;if(Ln.forEach(xi=>{ao=Math.max(xi.duration+xi.delay,ao)}),xt.length)return Wr(h,this._triggerName,g,z,gn,Kt,hn,[],[],Yn,on,ao,xt);Ln.forEach(xi=>{const Si=xi.element,as=de(Yn,Si,new Set);xi.preStyleProps.forEach(yr=>as.add(yr));const Hi=de(on,Si,new Set);xi.postStyleProps.forEach(yr=>Hi.add(yr)),Si!==h&&En.add(Si)});const So=Is(En.values());return Wr(h,this._triggerName,g,z,gn,Kt,hn,Ln,So,Yn,on,ao)}}function xa(T,p){const h=Er(p);for(const g in T)T.hasOwnProperty(g)&&null!=T[g]&&(h[g]=T[g]);return h}class qc{constructor(p,h,g){this.styles=p,this.defaultParams=h,this.normalizer=g}buildStyles(p,h){const g=new Map,z=Er(this.defaultParams);return Object.keys(p).forEach(E=>{const q=p[E];null!==q&&(z[E]=q)}),this.styles.styles.forEach(E=>{"string"!=typeof E&&E.forEach((q,_e)=>{q&&(q=Ps(q,z,h));const xe=this.normalizer.normalizePropertyName(_e,h);q=this.normalizer.normalizeStyleValue(_e,xe,q,h),g.set(_e,q)})}),g}}class Da{constructor(p,h,g){this.name=p,this.ast=h,this._normalizer=g,this.transitionFactories=[],this.states=new Map,h.states.forEach(z=>{this.states.set(z.name,new qc(z.style,z.options&&z.options.params||{},g))}),wa(this.states,"true","1"),wa(this.states,"false","0"),h.transitions.forEach(z=>{this.transitionFactories.push(new As(p,z,this.states))}),this.fallbackTransition=function Oa(T,p,h){return new As(T,{type:1,animation:{type:2,steps:[],options:null},matchers:[(q,_e)=>!0],options:null,queryCount:0,depCount:0},p)}(p,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(p,h,g,z){return this.transitionFactories.find(q=>q.match(p,h,g,z))||null}matchStyles(p,h,g){return this.fallbackTransition.buildStyles(p,h,g)}}function wa(T,p,h){T.has(p)?T.has(h)||T.set(h,T.get(p)):T.has(h)&&T.set(p,T.get(h))}const Pa=new Qr;class oc{constructor(p,h,g){this.bodyNode=p,this._driver=h,this._normalizer=g,this._animations=new Map,this._playersById=new Map,this.players=[]}register(p,h){const g=[],E=Wo(this._driver,h,g,[]);if(g.length)throw function Ut(T){return new i.vHH(3503,!1)}();this._animations.set(p,E)}_buildPlayer(p,h,g){const z=p.element,E=Cr(this._normalizer,p.keyframes,h,g);return this._driver.animate(z,E,p.duration,p.delay,p.easing,[],!0)}create(p,h,g={}){const z=[],E=this._animations.get(p);let q;const _e=new Map;if(E?(q=Ho(this._driver,h,E,fr,Os,new Map,new Map,g,Pa,z),q.forEach(ft=>{const xt=de(_e,ft.element,new Map);ft.postStyleProps.forEach($t=>xt.set($t,null))})):(z.push(function W(){return new i.vHH(3300,!1)}()),q=[]),z.length)throw function Re(T){return new i.vHH(3504,!1)}();_e.forEach((ft,xt)=>{ft.forEach(($t,Gt)=>{ft.set(Gt,this._driver.computeStyle(xt,Gt,dn.l3))})});const Ke=Ai(q.map(ft=>{const xt=_e.get(ft.element);return this._buildPlayer(ft,new Map,xt)}));return this._playersById.set(p,Ke),Ke.onDestroy(()=>this.destroy(p)),this.players.push(Ke),Ke}destroy(p){const h=this._getPlayer(p);h.destroy(),this._playersById.delete(p);const g=this.players.indexOf(h);g>=0&&this.players.splice(g,1)}_getPlayer(p){const h=this._playersById.get(p);if(!h)throw function jt(T){return new i.vHH(3301,!1)}();return h}listen(p,h,g,z){const E=ye(h,"","","");return ps(this._getPlayer(p),g,E,z),()=>{}}command(p,h,g,z){if("register"==g)return void this.register(p,z[0]);if("create"==g)return void this.create(p,h,z[0]||{});const E=this._getPlayer(p);switch(g){case"play":E.play();break;case"pause":E.pause();break;case"reset":E.reset();break;case"restart":E.restart();break;case"finish":E.finish();break;case"init":E.init();break;case"setPosition":E.setPosition(parseFloat(z[0]));break;case"destroy":this.destroy(p)}}}const Ia="ng-animate-queued",Aa="ng-animate-disabled",ic=[],B={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},X={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},x="__ng_removed";class ce{get params(){return this.options.params}constructor(p,h=""){this.namespaceId=h;const g=p&&p.hasOwnProperty("value");if(this.value=function ro(T){return T??null}(g?p.value:p),g){const E=Er(p);delete E.value,this.options=E}else this.options={};this.options.params||(this.options.params={})}absorbOptions(p){const h=p.params;if(h){const g=this.options.params;Object.keys(h).forEach(z=>{null==g[z]&&(g[z]=h[z])})}}}const Ie="void",ht=new ce(Ie);class _t{constructor(p,h,g){this.id=p,this.hostElement=h,this._engine=g,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+p,Bi(h,this._hostClassName)}listen(p,h,g,z){if(!this._triggers.has(h))throw function sn(T,p){return new i.vHH(3302,!1)}();if(null==g||0==g.length)throw function Rn(T){return new i.vHH(3303,!1)}();if(!function wi(T){return"start"==T||"done"==T}(g))throw function ho(T,p){return new i.vHH(3400,!1)}();const E=de(this._elementListeners,p,[]),q={name:h,phase:g,callback:z};E.push(q);const _e=de(this._engine.statesByElement,p,new Map);return _e.has(h)||(Bi(p,Ar),Bi(p,Ar+"-"+h),_e.set(h,ht)),()=>{this._engine.afterFlush(()=>{const xe=E.indexOf(q);xe>=0&&E.splice(xe,1),this._triggers.has(h)||_e.delete(h)})}}register(p,h){return!this._triggers.has(p)&&(this._triggers.set(p,h),!0)}_getTrigger(p){const h=this._triggers.get(p);if(!h)throw function fo(T){return new i.vHH(3401,!1)}();return h}trigger(p,h,g,z=!0){const E=this._getTrigger(h),q=new An(this.id,h,p);let _e=this._engine.statesByElement.get(p);_e||(Bi(p,Ar),Bi(p,Ar+"-"+h),this._engine.statesByElement.set(p,_e=new Map));let xe=_e.get(h);const Ke=new ce(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&xe&&Ke.absorbOptions(xe.options),_e.set(h,Ke),xe||(xe=ht),Ke.value!==Ie&&xe.value===Ke.value){if(!function oa(T,p){const h=Object.keys(T),g=Object.keys(p);if(h.length!=g.length)return!1;for(let z=0;z{Xr(p,hn),sr(p,En)})}return}const $t=de(this._engine.playersByElement,p,[]);$t.forEach(Qt=>{Qt.namespaceId==this.id&&Qt.triggerName==h&&Qt.queued&&Qt.destroy()});let Gt=E.matchTransition(xe.value,Ke.value,p,Ke.params),Kt=!1;if(!Gt){if(!z)return;Gt=E.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:h,transition:Gt,fromState:xe,toState:Ke,player:q,isFallbackTransition:Kt}),Kt||(Bi(p,Ia),q.onStart(()=>{Tr(p,Ia)})),q.onDone(()=>{let Qt=this.players.indexOf(q);Qt>=0&&this.players.splice(Qt,1);const hn=this._engine.playersByElement.get(p);if(hn){let En=hn.indexOf(q);En>=0&&hn.splice(En,1)}}),this.players.push(q),$t.push(q),q}deregister(p){this._triggers.delete(p),this._engine.statesByElement.forEach(h=>h.delete(p)),this._elementListeners.forEach((h,g)=>{this._elementListeners.set(g,h.filter(z=>z.name!=p))})}clearElementCache(p){this._engine.statesByElement.delete(p),this._elementListeners.delete(p);const h=this._engine.playersByElement.get(p);h&&(h.forEach(g=>g.destroy()),this._engine.playersByElement.delete(p))}_signalRemovalForInnerTriggers(p,h){const g=this._engine.driver.query(p,Sr,!0);g.forEach(z=>{if(z[x])return;const E=this._engine.fetchNamespacesByElement(z);E.size?E.forEach(q=>q.triggerLeaveAnimation(z,h,!1,!0)):this.clearElementCache(z)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(z=>this.clearElementCache(z)))}triggerLeaveAnimation(p,h,g,z){const E=this._engine.statesByElement.get(p),q=new Map;if(E){const _e=[];if(E.forEach((xe,Ke)=>{if(q.set(Ke,xe.value),this._triggers.has(Ke)){const ft=this.trigger(p,Ke,Ie,z);ft&&_e.push(ft)}}),_e.length)return this._engine.markElementAsRemoved(this.id,p,!0,h,q),g&&Ai(_e).onDone(()=>this._engine.processLeaveNode(p)),!0}return!1}prepareLeaveAnimationListeners(p){const h=this._elementListeners.get(p),g=this._engine.statesByElement.get(p);if(h&&g){const z=new Set;h.forEach(E=>{const q=E.name;if(z.has(q))return;z.add(q);const xe=this._triggers.get(q).fallbackTransition,Ke=g.get(q)||ht,ft=new ce(Ie),xt=new An(this.id,q,p);this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:q,transition:xe,fromState:Ke,toState:ft,player:xt,isFallbackTransition:!0})})}}removeNode(p,h){const g=this._engine;if(p.childElementCount&&this._signalRemovalForInnerTriggers(p,h),this.triggerLeaveAnimation(p,h,!0))return;let z=!1;if(g.totalAnimations){const E=g.players.length?g.playersByQueriedElement.get(p):[];if(E&&E.length)z=!0;else{let q=p;for(;q=q.parentNode;)if(g.statesByElement.get(q)){z=!0;break}}}if(this.prepareLeaveAnimationListeners(p),z)g.markElementAsRemoved(this.id,p,!1,h);else{const E=p[x];(!E||E===B)&&(g.afterFlush(()=>this.clearElementCache(p)),g.destroyInnerAnimations(p),g._onRemovalComplete(p,h))}}insertNode(p,h){Bi(p,this._hostClassName)}drainQueuedTransitions(p){const h=[];return this._queue.forEach(g=>{const z=g.player;if(z.destroyed)return;const E=g.element,q=this._elementListeners.get(E);q&&q.forEach(_e=>{if(_e.name==g.triggerName){const xe=ye(E,g.triggerName,g.fromState.value,g.toState.value);xe._data=p,ps(g.player,_e.phase,xe,_e.callback)}}),z.markedForDestroy?this._engine.afterFlush(()=>{z.destroy()}):h.push(g)}),this._queue=[],h.sort((g,z)=>{const E=g.transition.ast.depCount,q=z.transition.ast.depCount;return 0==E||0==q?E-q:this._engine.driver.containsElement(g.element,z.element)?1:-1})}destroy(p){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,p)}}class an{_onRemovalComplete(p,h){this.onRemovalComplete(p,h)}constructor(p,h,g){this.bodyNode=p,this.driver=h,this._normalizer=g,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=(z,E)=>{}}get queuedPlayers(){const p=[];return this._namespaceList.forEach(h=>{h.players.forEach(g=>{g.queued&&p.push(g)})}),p}createNamespace(p,h){const g=new _t(p,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(g,h):(this.newHostElements.set(h,g),this.collectEnterElement(h)),this._namespaceLookup[p]=g}_balanceNamespaceList(p,h){const g=this._namespaceList,z=this.namespacesByHostElement;if(g.length-1>=0){let q=!1,_e=this.driver.getParentElement(h);for(;_e;){const xe=z.get(_e);if(xe){const Ke=g.indexOf(xe);g.splice(Ke+1,0,p),q=!0;break}_e=this.driver.getParentElement(_e)}q||g.unshift(p)}else g.push(p);return z.set(h,p),p}register(p,h){let g=this._namespaceLookup[p];return g||(g=this.createNamespace(p,h)),g}registerTrigger(p,h,g){let z=this._namespaceLookup[p];z&&z.register(h,g)&&this.totalAnimations++}destroy(p,h){p&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const g=this._fetchNamespace(p);this.namespacesByHostElement.delete(g.hostElement);const z=this._namespaceList.indexOf(g);z>=0&&this._namespaceList.splice(z,1),g.destroy(h),delete this._namespaceLookup[p]}))}_fetchNamespace(p){return this._namespaceLookup[p]}fetchNamespacesByElement(p){const h=new Set,g=this.statesByElement.get(p);if(g)for(let z of g.values())if(z.namespaceId){const E=this._fetchNamespace(z.namespaceId);E&&h.add(E)}return h}trigger(p,h,g,z){if(Yo(h)){const E=this._fetchNamespace(p);if(E)return E.trigger(h,g,z),!0}return!1}insertNode(p,h,g,z){if(!Yo(h))return;const E=h[x];if(E&&E.setForRemoval){E.setForRemoval=!1,E.setForMove=!0;const q=this.collectedLeaveElements.indexOf(h);q>=0&&this.collectedLeaveElements.splice(q,1)}if(p){const q=this._fetchNamespace(p);q&&q.insertNode(h,g)}z&&this.collectEnterElement(h)}collectEnterElement(p){this.collectedEnterElements.push(p)}markElementAsDisabled(p,h){h?this.disabledNodes.has(p)||(this.disabledNodes.add(p),Bi(p,Aa)):this.disabledNodes.has(p)&&(this.disabledNodes.delete(p),Tr(p,Aa))}removeNode(p,h,g){if(Yo(h)){const z=p?this._fetchNamespace(p):null;z?z.removeNode(h,g):this.markElementAsRemoved(p,h,!1,g);const E=this.namespacesByHostElement.get(h);E&&E.id!==p&&E.removeNode(h,g)}else this._onRemovalComplete(h,g)}markElementAsRemoved(p,h,g,z,E){this.collectedLeaveElements.push(h),h[x]={namespaceId:p,setForRemoval:z,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:E}}listen(p,h,g,z,E){return Yo(h)?this._fetchNamespace(p).listen(h,g,z,E):()=>{}}_buildInstruction(p,h,g,z,E){return p.transition.build(this.driver,p.element,p.fromState.value,p.toState.value,g,z,p.fromState.options,p.toState.options,h,E)}destroyInnerAnimations(p){let h=this.driver.query(p,Sr,!0);h.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(p,Qs,!0),h.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(p){const h=this.playersByElement.get(p);h&&h.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(p){const h=this.playersByQueriedElement.get(p);h&&h.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(p=>{if(this.players.length)return Ai(this.players).onDone(()=>p());p()})}processLeaveNode(p){const h=p[x];if(h&&h.setForRemoval){if(p[x]=B,h.namespaceId){this.destroyInnerAnimations(p);const g=this._fetchNamespace(h.namespaceId);g&&g.clearElementCache(p)}this._onRemovalComplete(p,h.setForRemoval)}p.classList?.contains(Aa)&&this.markElementAsDisabled(p,!1),this.driver.query(p,".ng-animate-disabled",!0).forEach(g=>{this.markElementAsDisabled(g,!1)})}flush(p=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,z)=>this._balanceNamespaceList(g,z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],h.length?Ai(h).onDone(()=>{g.forEach(z=>z())}):g.forEach(z=>z())}}reportError(p){throw function Uo(T){return new i.vHH(3402,!1)}()}_flushAnimations(p,h){const g=new Qr,z=[],E=new Map,q=[],_e=new Map,xe=new Map,Ke=new Map,ft=new Set;this.disabledNodes.forEach(oo=>{ft.add(oo);const po=this.driver.query(oo,".ng-animate-queued",!0);for(let Mo=0;Mo{const Mo=fr+Qt++;Kt.set(po,Mo),oo.forEach(Jo=>Bi(Jo,Mo))});const hn=[],En=new Set,Yn=new Set;for(let oo=0;ooEn.add(Jo)):Yn.add(po))}const on=new Map,gn=zr($t,Array.from(En));gn.forEach((oo,po)=>{const Mo=Os+Qt++;on.set(po,Mo),oo.forEach(Jo=>Bi(Jo,Mo))}),p.push(()=>{Gt.forEach((oo,po)=>{const Mo=Kt.get(po);oo.forEach(Jo=>Tr(Jo,Mo))}),gn.forEach((oo,po)=>{const Mo=on.get(po);oo.forEach(Jo=>Tr(Jo,Mo))}),hn.forEach(oo=>{this.processLeaveNode(oo)})});const $n=[],Ln=[];for(let oo=this._namespaceList.length-1;oo>=0;oo--)this._namespaceList[oo].drainQueuedTransitions(h).forEach(Mo=>{const Jo=Mo.player,Yi=Mo.element;if($n.push(Jo),this.collectedEnterElements.length){const ur=Yi[x];if(ur&&ur.setForMove){if(ur.previousTriggersValues&&ur.previousTriggersValues.has(Mo.triggerName)){const Ys=ur.previousTriggersValues.get(Mo.triggerName),qr=this.statesByElement.get(Mo.element);if(qr&&qr.has(Mo.triggerName)){const Gu=qr.get(Mo.triggerName);Gu.value=Ys,qr.set(Mo.triggerName,Gu)}}return void Jo.destroy()}}const Hs=!xt||!this.driver.containsElement(xt,Yi),br=on.get(Yi),Ms=Kt.get(Yi),Di=this._buildInstruction(Mo,g,Ms,br,Hs);if(Di.errors&&Di.errors.length)return void Ln.push(Di);if(Hs)return Jo.onStart(()=>Xr(Yi,Di.fromStyles)),Jo.onDestroy(()=>sr(Yi,Di.toStyles)),void z.push(Jo);if(Mo.isFallbackTransition)return Jo.onStart(()=>Xr(Yi,Di.fromStyles)),Jo.onDestroy(()=>sr(Yi,Di.toStyles)),void z.push(Jo);const Bd=[];Di.timelines.forEach(ur=>{ur.stretchStartingKeyframe=!0,this.disabledNodes.has(ur.element)||Bd.push(ur)}),Di.timelines=Bd,g.append(Yi,Di.timelines),q.push({instruction:Di,player:Jo,element:Yi}),Di.queriedElements.forEach(ur=>de(_e,ur,[]).push(Jo)),Di.preStyleProps.forEach((ur,Ys)=>{if(ur.size){let qr=xe.get(Ys);qr||xe.set(Ys,qr=new Set),ur.forEach((Gu,Yd)=>qr.add(Yd))}}),Di.postStyleProps.forEach((ur,Ys)=>{let qr=Ke.get(Ys);qr||Ke.set(Ys,qr=new Set),ur.forEach((Gu,Yd)=>qr.add(Yd))})});if(Ln.length){const oo=[];Ln.forEach(po=>{oo.push(function uo(T,p){return new i.vHH(3505,!1)}())}),$n.forEach(po=>po.destroy()),this.reportError(oo)}const ao=new Map,So=new Map;q.forEach(oo=>{const po=oo.element;g.has(po)&&(So.set(po,po),this._beforeAnimationBuild(oo.player.namespaceId,oo.instruction,ao))}),z.forEach(oo=>{const po=oo.element;this._getPreviousPlayers(po,!1,oo.namespaceId,oo.triggerName,null).forEach(Jo=>{de(ao,po,[]).push(Jo),Jo.destroy()})});const xi=hn.filter(oo=>Fs(oo,xe,Ke)),Si=new Map;Br(Si,this.driver,Yn,Ke,dn.l3).forEach(oo=>{Fs(oo,xe,Ke)&&xi.push(oo)});const Hi=new Map;Gt.forEach((oo,po)=>{Br(Hi,this.driver,new Set(oo),xe,dn.k1)}),xi.forEach(oo=>{const po=Si.get(oo),Mo=Hi.get(oo);Si.set(oo,new Map([...po?.entries()??[],...Mo?.entries()??[]]))});const yr=[],ju=[],Yc={};q.forEach(oo=>{const{element:po,player:Mo,instruction:Jo}=oo;if(g.has(po)){if(ft.has(po))return Mo.onDestroy(()=>sr(po,Jo.toStyles)),Mo.disabled=!0,Mo.overrideTotalTime(Jo.totalTime),void z.push(Mo);let Yi=Yc;if(So.size>1){let br=po;const Ms=[];for(;br=br.parentNode;){const Di=So.get(br);if(Di){Yi=Di;break}Ms.push(br)}Ms.forEach(Di=>So.set(Di,Yi))}const Hs=this._buildAnimation(Mo.namespaceId,Jo,ao,E,Hi,Si);if(Mo.setRealPlayer(Hs),Yi===Yc)yr.push(Mo);else{const br=this.playersByElement.get(Yi);br&&br.length&&(Mo.parentPlayer=Ai(br)),z.push(Mo)}}else Xr(po,Jo.fromStyles),Mo.onDestroy(()=>sr(po,Jo.toStyles)),ju.push(Mo),ft.has(po)&&z.push(Mo)}),ju.forEach(oo=>{const po=E.get(oo.element);if(po&&po.length){const Mo=Ai(po);oo.setRealPlayer(Mo)}}),z.forEach(oo=>{oo.parentPlayer?oo.syncPlayerEvents(oo.parentPlayer):oo.destroy()});for(let oo=0;oo!Hs.destroyed);Yi.length?Ul(this,po,Yi):this.processLeaveNode(po)}return hn.length=0,yr.forEach(oo=>{this.players.push(oo),oo.onDone(()=>{oo.destroy();const po=this.players.indexOf(oo);this.players.splice(po,1)}),oo.play()}),yr}afterFlush(p){this._flushFns.push(p)}afterFlushAnimationsDone(p){this._whenQuietFns.push(p)}_getPreviousPlayers(p,h,g,z,E){let q=[];if(h){const _e=this.playersByQueriedElement.get(p);_e&&(q=_e)}else{const _e=this.playersByElement.get(p);if(_e){const xe=!E||E==Ie;_e.forEach(Ke=>{Ke.queued||!xe&&Ke.triggerName!=z||q.push(Ke)})}}return(g||z)&&(q=q.filter(_e=>!(g&&g!=_e.namespaceId||z&&z!=_e.triggerName))),q}_beforeAnimationBuild(p,h,g){const E=h.element,q=h.isRemovalTransition?void 0:p,_e=h.isRemovalTransition?void 0:h.triggerName;for(const xe of h.timelines){const Ke=xe.element,ft=Ke!==E,xt=de(g,Ke,[]);this._getPreviousPlayers(Ke,ft,q,_e,h.toState).forEach(Gt=>{const Kt=Gt.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),Gt.destroy(),xt.push(Gt)})}Xr(E,h.fromStyles)}_buildAnimation(p,h,g,z,E,q){const _e=h.triggerName,xe=h.element,Ke=[],ft=new Set,xt=new Set,$t=h.timelines.map(Kt=>{const Qt=Kt.element;ft.add(Qt);const hn=Qt[x];if(hn&&hn.removedBeforeQueried)return new dn.ZN(Kt.duration,Kt.delay);const En=Qt!==xe,Yn=function jl(T){const p=[];return Gl(T,p),p}((g.get(Qt)||ic).map(ao=>ao.getRealPlayer())).filter(ao=>!!ao.element&&ao.element===Qt),on=E.get(Qt),gn=q.get(Qt),$n=Cr(this._normalizer,Kt.keyframes,on,gn),Ln=this._buildPlayer(Kt,$n,Yn);if(Kt.subTimeline&&z&&xt.add(Qt),En){const ao=new An(p,_e,Qt);ao.setRealPlayer(Ln),Ke.push(ao)}return Ln});Ke.forEach(Kt=>{de(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function io(T,p,h){let g=T.get(p);if(g){if(g.length){const z=g.indexOf(h);g.splice(z,1)}0==g.length&&T.delete(p)}return g}(this.playersByQueriedElement,Kt.element,Kt))}),ft.forEach(Kt=>Bi(Kt,jr));const Gt=Ai($t);return Gt.onDestroy(()=>{ft.forEach(Kt=>Tr(Kt,jr)),sr(xe,h.toStyles)}),xt.forEach(Kt=>{de(z,Kt,[]).push(Gt)}),Gt}_buildPlayer(p,h,g){return h.length>0?this.driver.animate(p.element,h,p.duration,p.delay,p.easing,g):new dn.ZN(p.duration,p.delay)}}class An{constructor(p,h,g){this.namespaceId=p,this.triggerName=h,this.element=g,this._player=new dn.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(p){this._containsRealPlayer||(this._player=p,this._queuedCallbacks.forEach((h,g)=>{h.forEach(z=>ps(p,g,void 0,z))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(p.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(p){this.totalTime=p}syncPlayerEvents(p){const h=this._player;h.triggerCallback&&p.onStart(()=>h.triggerCallback("start")),p.onDone(()=>this.finish()),p.onDestroy(()=>this.destroy())}_queueEvent(p,h){de(this._queuedCallbacks,p,[]).push(h)}onDone(p){this.queued&&this._queueEvent("done",p),this._player.onDone(p)}onStart(p){this.queued&&this._queueEvent("start",p),this._player.onStart(p)}onDestroy(p){this.queued&&this._queueEvent("destroy",p),this._player.onDestroy(p)}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(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(p){const h=this._player;h.triggerCallback&&h.triggerCallback(p)}}function Yo(T){return T&&1===T.nodeType}function Kr(T,p){const h=T.style.display;return T.style.display=p??"none",h}function Br(T,p,h,g,z){const E=[];h.forEach(xe=>E.push(Kr(xe)));const q=[];g.forEach((xe,Ke)=>{const ft=new Map;xe.forEach(xt=>{const $t=p.computeStyle(Ke,xt,z);ft.set(xt,$t),(!$t||0==$t.length)&&(Ke[x]=X,q.push(Ke))}),T.set(Ke,ft)});let _e=0;return h.forEach(xe=>Kr(xe,E[_e++])),q}function zr(T,p){const h=new Map;if(T.forEach(_e=>h.set(_e,[])),0==p.length)return h;const z=new Set(p),E=new Map;function q(_e){if(!_e)return 1;let xe=E.get(_e);if(xe)return xe;const Ke=_e.parentNode;return xe=h.has(Ke)?Ke:z.has(Ke)?1:q(Ke),E.set(_e,xe),xe}return p.forEach(_e=>{const xe=q(_e);1!==xe&&h.get(xe).push(_e)}),h}function Bi(T,p){T.classList?.add(p)}function Tr(T,p){T.classList?.remove(p)}function Ul(T,p,h){Ai(h).onDone(()=>T.processLeaveNode(p))}function Gl(T,p){for(let h=0;hz.add(E)):p.set(T,g),h.delete(T),!0}class rc{constructor(p,h,g){this.bodyNode=p,this._driver=h,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(z,E)=>{},this._transitionEngine=new an(p,h,g),this._timelineEngine=new oc(p,h,g),this._transitionEngine.onRemovalComplete=(z,E)=>this.onRemovalComplete(z,E)}registerTrigger(p,h,g,z,E){const q=p+"-"+z;let _e=this._triggerCache[q];if(!_e){const xe=[],ft=Wo(this._driver,E,xe,[]);if(xe.length)throw function di(T,p){return new i.vHH(3404,!1)}();_e=function Xc(T,p,h){return new Da(T,p,h)}(z,ft,this._normalizer),this._triggerCache[q]=_e}this._transitionEngine.registerTrigger(h,z,_e)}register(p,h){this._transitionEngine.register(p,h)}destroy(p,h){this._transitionEngine.destroy(p,h)}onInsert(p,h,g,z){this._transitionEngine.insertNode(p,h,g,z)}onRemove(p,h,g){this._transitionEngine.removeNode(p,h,g)}disableAnimations(p,h){this._transitionEngine.markElementAsDisabled(p,h)}process(p,h,g,z){if("@"==g.charAt(0)){const[E,q]=ut(g);this._timelineEngine.command(E,h,q,z)}else this._transitionEngine.trigger(p,h,g,z)}listen(p,h,g,z,E){if("@"==g.charAt(0)){const[q,_e]=ut(g);return this._timelineEngine.listen(q,h,_e,E)}return this._transitionEngine.listen(p,h,g,z,E)}flush(p=-1){this._transitionEngine.flush(p)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(p){this._transitionEngine.afterFlushAnimationsDone(p)}}let il=(()=>{class T{constructor(h,g,z){this._element=h,this._startStyles=g,this._endStyles=z,this._state=0;let E=T.initialStylesByElement.get(h);E||T.initialStylesByElement.set(h,E=new Map),this._initialStyles=E}start(){this._state<1&&(this._startStyles&&sr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(sr(this._element,this._initialStyles),this._endStyles&&(sr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(T.initialStylesByElement.delete(this._element),this._startStyles&&(Xr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),sr(this._element,this._initialStyles),this._state=3)}}return T.initialStylesByElement=new WeakMap,T})();function Ql(T){let p=null;return T.forEach((h,g)=>{(function t1(T){return"display"===T||"position"===T})(g)&&(p=p||new Map,p.set(g,h))}),p}class rl{constructor(p,h,g,z){this.element=p,this.keyframes=h,this.options=g,this._specialStyles=z,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const p=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,p,this.options),this._finalKeyframe=p.length?p[p.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(p){const h=[];return p.forEach(g=>{h.push(Object.fromEntries(g))}),h}_triggerWebAnimation(p,h,g){return p.animate(this._convertKeyframesToObject(h),g)}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(p=>p()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const p=new Map;this.hasStarted()&&this._finalKeyframe.forEach((g,z)=>{"offset"!==z&&p.set(z,this._finished?g:qs(this.element,z))}),this.currentSnapshot=p}triggerCallback(p){const h="start"===p?this._onStartFns:this._onDoneFns;h.forEach(g=>g()),h.length=0}}class pd{validateStyleProperty(p){return!0}validateAnimatableStyleProperty(p){return!0}matchesElement(p,h){return!1}containsElement(p,h){return Gs(p,h)}getParentElement(p){return Qn(p)}query(p,h,g){return hs(p,h,g)}computeStyle(p,h,g){return window.getComputedStyle(p)[h]}animate(p,h,g,z,E,q=[]){const xe={duration:g,delay:z,fill:0==z?"both":"forwards"};E&&(xe.easing=E);const Ke=new Map,ft=q.filter(Gt=>Gt instanceof rl);(function Js(T,p){return 0===T||0===p})(g,z)&&ft.forEach(Gt=>{Gt.currentSnapshot.forEach((Kt,Qt)=>Ke.set(Qt,Kt))});let xt=function Qc(T){return T.length?T[0]instanceof Map?T:T.map(p=>ba(p)):[]}(h).map(Gt=>xr(Gt));xt=function Gi(T,p,h){if(h.size&&p.length){let g=p[0],z=[];if(h.forEach((E,q)=>{g.has(q)||z.push(q),g.set(q,E)}),z.length)for(let E=1;Eq.set(_e,qs(T,_e)))}}return p}(p,xt,Ke);const $t=function e1(T,p){let h=null,g=null;return Array.isArray(p)&&p.length?(h=Ql(p[0]),p.length>1&&(g=Ql(p[p.length-1]))):p instanceof Map&&(h=Ql(p)),h||g?new il(T,h,g):null}(p,xt);return new rl(p,xt,xe,$t)}}let hd=(()=>{class T extends dn._j{constructor(h,g){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(g.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(h){const g=this._nextAnimationId.toString();this._nextAnimationId++;const z=Array.isArray(h)?(0,dn.vP)(h):h;return Zl(this._renderer,null,g,"register",[z]),new Wl(g,this._renderer)}}return T.\u0275fac=function(h){return new(h||T)(i.LFG(i.FYo),i.LFG(fn.K0))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();class Wl extends dn.LC{constructor(p,h){super(),this._id=p,this._renderer=h}create(p,h){return new sc(this._id,p,h||{},this._renderer)}}class sc{constructor(p,h,g,z){this.id=p,this.element=h,this._renderer=z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(p,h){return this._renderer.listen(this.element,`@@${this.id}:${p}`,h)}_command(p,...h){return Zl(this._renderer,this.element,this.id,p,h)}onDone(p){this._listen("done",p)}onStart(p){this._listen("start",p)}onDestroy(p){this._listen("destroy",p)}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(p){this._command("setPosition",p)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Zl(T,p,h,g,z){return T.setProperty(p,`@@${h}:${g}`,z)}const ac="@.disabled";let cc=(()=>{class T{constructor(h,g,z){this.delegate=h,this.engine=g,this._zone=z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,g.onRemovalComplete=(E,q)=>{const _e=q?.parentNode(E);_e&&q.removeChild(_e,E)}}createRenderer(h,g){const E=this.delegate.createRenderer(h,g);if(!(h&&g&&g.data&&g.data.animation)){let ft=this._rendererCache.get(E);return ft||(ft=new Kl("",E,this.engine,()=>this._rendererCache.delete(E)),this._rendererCache.set(E,ft)),ft}const q=g.id,_e=g.id+"-"+this._currentId;this._currentId++,this.engine.register(_e,h);const xe=ft=>{Array.isArray(ft)?ft.forEach(xe):this.engine.registerTrigger(q,_e,h,ft.name,ft)};return g.data.animation.forEach(xe),new sl(this,_e,E,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(h,g,z){h>=0&&hg(z)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(E=>{const[q,_e]=E;q(_e)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,z]))}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 T.\u0275fac=function(h){return new(h||T)(i.LFG(i.FYo),i.LFG(rc),i.LFG(i.R0b))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();class Kl{constructor(p,h,g,z){this.namespaceId=p,this.delegate=h,this.engine=g,this._onDestroy=z}get data(){return this.delegate.data}destroyNode(p){this.delegate.destroyNode?.(p)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(p,h){return this.delegate.createElement(p,h)}createComment(p){return this.delegate.createComment(p)}createText(p){return this.delegate.createText(p)}appendChild(p,h){this.delegate.appendChild(p,h),this.engine.onInsert(this.namespaceId,h,p,!1)}insertBefore(p,h,g,z=!0){this.delegate.insertBefore(p,h,g),this.engine.onInsert(this.namespaceId,h,p,z)}removeChild(p,h,g){this.engine.onRemove(this.namespaceId,h,this.delegate)}selectRootElement(p,h){return this.delegate.selectRootElement(p,h)}parentNode(p){return this.delegate.parentNode(p)}nextSibling(p){return this.delegate.nextSibling(p)}setAttribute(p,h,g,z){this.delegate.setAttribute(p,h,g,z)}removeAttribute(p,h,g){this.delegate.removeAttribute(p,h,g)}addClass(p,h){this.delegate.addClass(p,h)}removeClass(p,h){this.delegate.removeClass(p,h)}setStyle(p,h,g,z){this.delegate.setStyle(p,h,g,z)}removeStyle(p,h,g){this.delegate.removeStyle(p,h,g)}setProperty(p,h,g){"@"==h.charAt(0)&&h==ac?this.disableAnimations(p,!!g):this.delegate.setProperty(p,h,g)}setValue(p,h){this.delegate.setValue(p,h)}listen(p,h,g){return this.delegate.listen(p,h,g)}disableAnimations(p,h){this.engine.disableAnimations(p,h)}}class sl extends Kl{constructor(p,h,g,z,E){super(h,g,z,E),this.factory=p,this.namespaceId=h}setProperty(p,h,g){"@"==h.charAt(0)?"."==h.charAt(1)&&h==ac?this.disableAnimations(p,g=void 0===g||!!g):this.engine.process(this.namespaceId,p,h.slice(1),g):this.delegate.setProperty(p,h,g)}listen(p,h,g){if("@"==h.charAt(0)){const z=function Fa(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(p);let E=h.slice(1),q="";return"@"!=E.charAt(0)&&([E,q]=function Jl(T){const p=T.indexOf(".");return[T.substring(0,p),T.slice(p+1)]}(E)),this.engine.listen(this.namespaceId,z,E,q,_e=>{this.factory.scheduleListenerCallback(_e._data||-1,g,_e)})}return this.delegate.listen(p,h,g)}}let Jr=(()=>{class T extends rc{constructor(h,g,z,E){super(h.body,g,z)}ngOnDestroy(){this.flush()}}return T.\u0275fac=function(h){return new(h||T)(i.LFG(fn.K0),i.LFG($r),i.LFG(ta),i.LFG(i.z2F))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();const lc=[{provide:dn._j,useClass:hd},{provide:ta,useFactory:function ia(){return new er}},{provide:rc,useClass:Jr},{provide:i.FYo,useFactory:function Na(T,p,h){return new cc(T,p,h)},deps:[t.se,rc,i.R0b]}],uc=[{provide:$r,useFactory:()=>new pd},{provide:i.QbO,useValue:"BrowserAnimations"},...lc],dc=[{provide:$r,useClass:Yr},{provide:i.QbO,useValue:"NoopAnimations"},...lc];let al=(()=>{class T{static withConfig(h){return{ngModule:T,providers:h.disableAnimations?dc:uc}}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:uc,imports:[t.b2]}),T})();var ql=a(459);a(4715);const qd=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"clinicaltrialFullcolor",data:''},{name:"queueFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceitemFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"geneFullcolor",data:''},{name:"therapyFullcolor",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:''}],_d=function Xd(T){const p=[];return T.forEach(h=>{const g={name:E1(h.name),theme:Du(h.name),icon:h.data};p.push(g)}),p}([{name:"adminOutline",data:''},{name:"adminTwotone",data:''},{name:"adverseresponseOutline",data:''},{name:"assertionOutline",data:''},{name:"assertionTwotone",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"clinicaltrialOutline",data:''},{name:"clinicaltrialTwotone",data:''},{name:"queueOutline",data:''},{name:"queueTwotone",data:''},{name:"combinationOutline",data:''},{name:"combinedOutline",data:''},{name:"commentOutline",data:''},{name:"commentTwotone",data:''},{name:"commongermlineOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorOutline",data:''},{name:"curatorTwotone",data:''},{name:"diagnosticOutline",data:''},{name:"diseaseOutline",data:''},{name:"diseaseTwotone",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"editorOutline",data:''},{name:"editorTwotone",data:''},{name:"eventOutline",data:''},{name:"eventTwotone",data:''},{name:"evidenceOutline",data:''},{name:"evidenceTwotone",data:''},{name:"evidenceitemOutline",data:''},{name:"evidenceitemTwotone",data:''},{name:"flagOutline",data:''},{name:"flagTwotone",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"geneOutline",data:''},{name:"geneTwotone",data:''},{name:"levelaOutline",data:''},{name:"levelbOutline",data:''},{name:"levelcOutline",data:''},{name:"leveldOutline",data:''},{name:"leveleOutline",data:''},{name:"therapyOutline",data:''},{name:"therapyTwotone",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"molecularprofileTwotone",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"oncogenictypeOutline",data:''},{name:"oncogenicsignificanceOutline",data:''},{name:"oncogenicityOutline",data:''},{name:"orcid",data:''},{name:"organizationOutline",data:''},{name:"organizationTwotone",data:''},{name:"pathogenicOutline",data:''},{name:"phenotypeOutline",data:''},{name:"phenotypeTwotone",data:''},{name:"pooroutcomeOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"predispositionOutline",data:''},{name:"prognosticOutline",data:''},{name:"protectivenessOutline",data:''},{name:"raregermlineOutline",data:''},{name:"rating1Outline",data:''},{name:"rating2Outline",data:''},{name:"rating3Outline",data:''},{name:"rating4Outline",data:''},{name:"rating5Outline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"revisionOutline",data:''},{name:"revisionTwotone",data:''},{name:"sensitivityresponseOutline",data:''},{name:"sequentialOutline",data:''},{name:"somaticOutline",data:''},{name:"sourceOutline",data:''},{name:"sourceTwotone",data:''},{name:"substitutesOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"unknownOutline",data:''},{name:"userOutline",data:''},{name:"userTwotone",data:''},{name:"variantOutline",data:''},{name:"variantTwotone",data:''},{name:"variantgroupOutline",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeOutline",data:''},{name:"varianttypeTwotone",data:''}]);function E1(T){return"civic-"+function cl(T){return T.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(T.replace(/Outline|Fill|TwoTone/i,""))}function Du(T){return T.includes("Twotone")?"twotone":T.includes("Outline")?"outline":T.includes("Fill")?"fill":"outline"}var ep=a(279),wc=a(1752),Ol=a(4190);const tp=[{path:"",loadChildren:()=>a.e(9641).then(a.bind(a,9641)).then(T=>T.LayoutModule)}],yd={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let x1=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({imports:[Ol.Bz.forRoot(tp,yd),Ol.Bz]}),T})();var D1=a(553),Ua=a(551),Ou=a(7473),O1=a(67),w1=a(342),wl=a(3903),Cd=a(2840),np=a(855),op=a(1958),ip=a(8091);function rp(T,p){if(1&T&&i._uU(0),2&T){const h=i.oxw().ngIf;i.AsE(" ",h.name," ",h.message," ")}}function sp(T,p){1&T&&i.GkF(0)}const zd=function(T){return{error:T}};function wu(T,p){if(1&T&&i.YNc(0,sp,1,0,"ng-container",8),2&T){const h=i.oxw().ngIf,g=i.MAs(7);i.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",i.VKq(2,zd,h))}}function Td(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(h);const z=i.oxw().error;i.oxw();const E=i.MAs(11),q=i.MAs(9),_e=i.oxw();return i.KtG(_e.showModal("Backtrace for '"+z.message+"'",z.backtrace,E,q))}),i._uU(1," View Backtrace "),i.qZA()}}function P1(T,p){if(1&T&&(i._uU(0),i.YNc(1,Td,2,0,"button",9)),2&T){const h=p.error;i.hij(" ",h.message," "),i.xp6(1),i.Q6J("ngIf",h.backtrace.length>0)}}function ap(T,p){if(1&T&&(i.TgZ(0,"pre",11),i._uU(1),i.qZA()),2&T){const h=p.$implicit;i.xp6(1),i.Oqu(h.backtrace)}}function cp(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"button",12),i.NdJ("click",function(){i.CHM(h);const z=i.oxw(2);return i.KtG(z.copyToClipboard())}),i._uU(1," Copy to Clipboard "),i.qZA(),i.TgZ(2,"button",13),i.NdJ("click",function(){const E=i.CHM(h).modalRef,q=i.oxw(2);return i.KtG(q.hideModal(E))}),i._uU(3," OK "),i.qZA()}}function I1(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"div",1)(1,"nz-alert",2),i.NdJ("nzOnClose",function(){i.CHM(h);const z=i.oxw();return i.KtG(z.onClose())}),i.qZA(),i.YNc(2,rp,1,2,"ng-template",null,3,i.W1O),i.YNc(4,wu,1,4,"ng-template",null,4,i.W1O),i.YNc(6,P1,2,2,"ng-template",null,5,i.W1O),i.YNc(8,ap,2,1,"ng-template",null,6,i.W1O),i.YNc(10,cp,4,0,"ng-template",null,7,i.W1O),i.qZA()}if(2&T){const h=i.MAs(3),g=i.MAs(5);i.xp6(1),i.Q6J("nzMessage",h)("nzDescription",g)}}let Md=(()=>{class T{constructor(h,g,z){this.modal=g,this.clipboard=z,this.modalVisible=!1,this.errors=h}showModal(h,g,z,E){this.modalContent=g.join("\n"),this.modal.create({nzTitle:h,nzFooter:z,nzContent:E,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(h){h.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}}return T.\u0275fac=function(h){return new(h||T)(i.Y36(Ou.Y),i.Y36(O1.Sf),i.Y36(w1.TU))},T.\u0275cmp=i.Xpm({type:T,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,"ngTemplateOutlet","ngTemplateOutletContext"],["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(h,g){1&h&&(i.YNc(0,I1,12,2,"div",0),i.ALo(1,"ngrxPush")),2&h&&i.Q6J("ngIf",i.lcZ(1,1,g.errors.networkError$))},dependencies:[fn.O5,fn.tP,wl.r,Cd.ix,np.w,op.dQ,ip.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}"],changeDetection:0}),T})(),ja=(()=>{class T{constructor(h,g){this.iconService=h,this.router=g,this.addIcons(qd),D1.N.production&&this.router.events.subscribe(z=>{z instanceof Ol.m2&>ag("config","UA-60119642-1",{page_path:z.urlAfterRedirects})})}addIcons(h){h.forEach(g=>{const E="civic:"+g.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(E,g.data)})}}return T.\u0275fac=function(h){return new(h||T)(i.Y36(Ua.H5),i.Y36(Ol.F0))},T.\u0275cmp=i.Xpm({type:T,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(h,g){1&h&&(i.TgZ(0,"div",0),i._UZ(1,"cvc-network-error-alert"),i.qZA(),i.TgZ(2,"div",1),i._UZ(3,"router-outlet"),i.qZA())},dependencies:[Ol.lC,Md],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.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}"]}),T})();var A1=a(8632),Kn=a(655),Li=a(3555),Pu=a(5907),Ga=a(692),Iu=a(7095),bd=function(){function T(){this.getFragmentDoc=(0,Pu.re)(Iu.Yk)}return T.prototype.batch=function(p){var z,h=this;return this.performTransaction(function(){return z=p.update(h)},"string"==typeof p.optimistic?p.optimistic:!1===p.optimistic?null:void 0),z},T.prototype.recordOptimisticTransaction=function(p,h){this.performTransaction(p,h)},T.prototype.transformDocument=function(p){return p},T.prototype.transformForLink=function(p){return p},T.prototype.identify=function(p){},T.prototype.gc=function(){return[]},T.prototype.modify=function(p){return!1},T.prototype.readQuery=function(p,h){return void 0===h&&(h=!!p.optimistic),this.read((0,Kn.pi)((0,Kn.pi)({},p),{rootId:p.id||"ROOT_QUERY",optimistic:h}))},T.prototype.readFragment=function(p,h){return void 0===h&&(h=!!p.optimistic),this.read((0,Kn.pi)((0,Kn.pi)({},p),{query:this.getFragmentDoc(p.fragment,p.fragmentName),rootId:p.id,optimistic:h}))},T.prototype.writeQuery=function(p){var h=p.id,g=p.data,z=(0,Kn._T)(p,["id","data"]);return this.write(Object.assign(z,{dataId:h||"ROOT_QUERY",result:g}))},T.prototype.writeFragment=function(p){var h=p.id,g=p.data,z=p.fragment,E=p.fragmentName,q=(0,Kn._T)(p,["id","data","fragment","fragmentName"]);return this.write(Object.assign(q,{query:this.getFragmentDoc(z,E),dataId:h,result:g}))},T.prototype.updateQuery=function(p,h){return this.batch({update:function(g){var z=g.readQuery(p),E=h(z);return null==E?z:(g.writeQuery((0,Kn.pi)((0,Kn.pi)({},p),{data:E})),E)}})},T.prototype.updateFragment=function(p,h){return this.batch({update:function(g){var z=g.readFragment(p),E=h(z);return null==E?z:(g.writeFragment((0,Kn.pi)((0,Kn.pi)({},p),{data:E})),E)}})},T}(),F1=function(T){function p(h,g,z,E){var q,_e=T.call(this,h)||this;if(_e.message=h,_e.path=g,_e.query=z,_e.variables=E,Array.isArray(_e.path)){_e.missing=_e.message;for(var xe=_e.path.length-1;xe>=0;--xe)_e.missing=((q={})[_e.path[xe]]=_e.missing,q)}else _e.missing=_e.path;return _e.__proto__=p.prototype,_e}return(0,Kn.ZT)(p,T),p}(Error),zo=a(9173),Pl=a(6140),N1=a(5560),Pc=a(2794),Ic=a(9990),Qa=a(8725),ys=a(6630),Wa=a(2954),rs=a(1352);function k1(T){return __DEV__&&function L1(T){var p=new Set([T]);return p.forEach(function(h){(0,rs.s)(h)&&function Il(T){if(__DEV__&&!Object.isFrozen(T))try{Object.freeze(T)}catch(p){if(p instanceof TypeError)return null;throw p}return T}(h)===h&&Object.getOwnPropertyNames(h).forEach(function(g){(0,rs.s)(h[g])&&p.add(h[g])})}),T}(T),T}var Au=a(1823),ki=a(6001),tr=Object.prototype.hasOwnProperty;function Al(T){return null==T}function R1(T,p){var h=T.__typename,g=T.id,z=T._id;if("string"==typeof h&&(p&&(p.keyObject=Al(g)?Al(z)?void 0:{_id:z}:{id:g}),Al(g)&&!Al(z)&&(g=z),!Al(g)))return"".concat(h,":").concat("number"==typeof g||"string"==typeof g?g:JSON.stringify(g))}var V1={dataIdFromObject:R1,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Cs(T){var p=T.canonizeResults;return void 0===p?V1.canonizeResults:p}var Sd=/^[_a-z][_0-9a-z]*/i;function ma(T){var p=T.match(Sd);return p?p[0]:T}function Fu(T,p,h){return!!(0,rs.s)(p)&&((0,ki.k)(p)?p.every(function(g){return Fu(T,g,h)}):T.selections.every(function(g){if((0,zo.My)(g)&&(0,Wa.LZ)(g,h)){var z=(0,zo.u2)(g);return tr.call(p,z)&&(!g.selectionSet||Fu(g.selectionSet,p[z],h))}return!0}))}function Nc(T){return(0,rs.s)(T)&&!(0,zo.Yk)(T)&&!(0,ki.k)(T)}function Ed(T,p){var h=(0,Iu.F)((0,Qa.kU)(T));return{fragmentMap:h,lookupFragment:function(g){var z=h[g];return!z&&p&&(z=p.lookup(g)),z||null}}}var T,p,ga=Object.create(null),Lc=function(){return ga},Nu=Object.create(null),kc=function(){function T(p,h){var g=this;this.policies=p,this.group=h,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(z,E){return k1((0,zo.Yk)(z)?g.get(z.__ref,E):z&&z[E])},this.canRead=function(z){return(0,zo.Yk)(z)?g.has(z.__ref):"object"==typeof z},this.toReference=function(z,E){if("string"==typeof z)return(0,zo.kQ)(z);if((0,zo.Yk)(z))return z;var q=g.policies.identify(z)[0];if(q){var _e=(0,zo.kQ)(q);return E&&g.merge(q,z),_e}}}return T.prototype.toObject=function(){return(0,Kn.pi)({},this.data)},T.prototype.has=function(p){return void 0!==this.lookup(p,!0)},T.prototype.get=function(p,h){if(this.group.depend(p,h),tr.call(this.data,p)){var g=this.data[p];if(g&&tr.call(g,h))return g[h]}return"__typename"===h&&tr.call(this.policies.rootTypenamesById,p)?this.policies.rootTypenamesById[p]:this instanceof _a?this.parent.get(p,h):void 0},T.prototype.lookup=function(p,h){return h&&this.group.depend(p,"__exists"),tr.call(this.data,p)?this.data[p]:this instanceof _a?this.parent.lookup(p,h):this.policies.rootTypenamesById[p]?Object.create(null):void 0},T.prototype.merge=function(p,h){var z,g=this;(0,zo.Yk)(p)&&(p=p.__ref),(0,zo.Yk)(h)&&(h=h.__ref);var E="string"==typeof p?this.lookup(z=p):p,q="string"==typeof h?this.lookup(z=h):h;if(q){__DEV__?(0,Li.kG)("string"==typeof z,"store.merge expects a string ID"):(0,Li.kG)("string"==typeof z,1);var _e=new ys.w0(up).merge(E,q);if(this.data[z]=_e,_e!==E&&(delete this.refs[z],this.group.caching)){var xe=Object.create(null);E||(xe.__exists=1),Object.keys(q).forEach(function(Ke){if(!E||E[Ke]!==_e[Ke]){xe[Ke]=1;var ft=ma(Ke);ft!==Ke&&!g.policies.hasKeyArgs(_e.__typename,ft)&&(xe[ft]=1),void 0===_e[Ke]&&!(g instanceof _a)&&delete _e[Ke]}}),xe.__typename&&!(E&&E.__typename)&&this.policies.rootTypenamesById[z]===_e.__typename&&delete xe.__typename,Object.keys(xe).forEach(function(Ke){return g.group.dirty(z,Ke)})}}},T.prototype.modify=function(p,h){var g=this,z=this.lookup(p);if(z){var E=Object.create(null),q=!1,_e=!0,xe={DELETE:ga,INVALIDATE:Nu,isReference:zo.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Ke,ft){return g.policies.readField("string"==typeof Ke?{fieldName:Ke,from:ft||(0,zo.kQ)(p)}:Ke,{store:g})}};if(Object.keys(z).forEach(function(Ke){var ft=ma(Ke),xt=z[Ke];if(void 0!==xt){var $t="function"==typeof h?h:h[Ke]||h[ft];if($t){var Gt=$t===Lc?ga:$t(k1(xt),(0,Kn.pi)((0,Kn.pi)({},xe),{fieldName:ft,storeFieldName:Ke,storage:g.getStorage(p,Ke)}));Gt===Nu?g.group.dirty(p,Ke):(Gt===ga&&(Gt=void 0),Gt!==xt&&(E[Ke]=Gt,q=!0,xt=Gt))}void 0!==xt&&(_e=!1)}}),q)return this.merge(p,E),_e&&(this instanceof _a?this.data[p]=void 0:delete this.data[p],this.group.dirty(p,"__exists")),!0}return!1},T.prototype.delete=function(p,h,g){var z,E=this.lookup(p);if(E){var q=this.getFieldValue(E,"__typename"),_e=h&&g?this.policies.getStoreFieldName({typename:q,fieldName:h,args:g}):h;return this.modify(p,_e?((z={})[_e]=Lc,z):Lc)}return!1},T.prototype.evict=function(p,h){var g=!1;return p.id&&(tr.call(this.data,p.id)&&(g=this.delete(p.id,p.fieldName,p.args)),this instanceof _a&&this!==h&&(g=this.parent.evict(p,h)||g),(p.fieldName||g)&&this.group.dirty(p.id,p.fieldName||"__exists")),g},T.prototype.clear=function(){this.replace(null)},T.prototype.extract=function(){var p=this,h=this.toObject(),g=[];return this.getRootIdSet().forEach(function(z){tr.call(p.policies.rootTypenamesById,z)||g.push(z)}),g.length&&(h.__META={extraRootIds:g.sort()}),h},T.prototype.replace=function(p){var h=this;if(Object.keys(this.data).forEach(function(E){p&&tr.call(p,E)||h.delete(E)}),p){var g=p.__META,z=(0,Kn._T)(p,["__META"]);Object.keys(z).forEach(function(E){h.merge(E,z[E])}),g&&g.extraRootIds.forEach(this.retain,this)}},T.prototype.retain=function(p){return this.rootIds[p]=(this.rootIds[p]||0)+1},T.prototype.release=function(p){if(this.rootIds[p]>0){var h=--this.rootIds[p];return h||delete this.rootIds[p],h}return 0},T.prototype.getRootIdSet=function(p){return void 0===p&&(p=new Set),Object.keys(this.rootIds).forEach(p.add,p),this instanceof _a?this.parent.getRootIdSet(p):Object.keys(this.policies.rootTypenamesById).forEach(p.add,p),p},T.prototype.gc=function(){var p=this,h=this.getRootIdSet(),g=this.toObject();h.forEach(function(q){tr.call(g,q)&&(Object.keys(p.findChildRefIds(q)).forEach(h.add,h),delete g[q])});var z=Object.keys(g);if(z.length){for(var E=this;E instanceof _a;)E=E.parent;z.forEach(function(q){return E.delete(q)})}return z},T.prototype.findChildRefIds=function(p){if(!tr.call(this.refs,p)){var h=this.refs[p]=Object.create(null),g=this.data[p];if(!g)return h;var z=new Set([g]);z.forEach(function(E){(0,zo.Yk)(E)&&(h[E.__ref]=!0),(0,rs.s)(E)&&Object.keys(E).forEach(function(q){var _e=E[q];(0,rs.s)(_e)&&z.add(_e)})})}return this.refs[p]},T.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},T}(),H1=function(){function T(p,h){void 0===h&&(h=null),this.caching=p,this.parent=h,this.d=null,this.resetCaching()}return T.prototype.resetCaching=function(){this.d=this.caching?(0,Pu.dP)():null,this.keyMaker=new Au.B(Pc.mr)},T.prototype.depend=function(p,h){if(this.d){this.d(Lu(p,h));var g=ma(h);g!==h&&this.d(Lu(p,g)),this.parent&&this.parent.depend(p,h)}},T.prototype.dirty=function(p,h){this.d&&this.d.dirty(Lu(p,h),"__exists"===h?"forget":"setDirty")},T}();function Lu(T,p){return p+"#"+T}function va(T,p){Rc(T)&&T.group.depend(p,"__exists")}p=function(h){function g(z){var q=z.resultCaching,xe=z.seed,Ke=h.call(this,z.policies,new H1(void 0===q||q))||this;return Ke.stump=new lp(Ke),Ke.storageTrie=new Au.B(Pc.mr),xe&&Ke.replace(xe),Ke}return(0,Kn.ZT)(g,h),g.prototype.addLayer=function(z,E){return this.stump.addLayer(z,E)},g.prototype.removeLayer=function(){return this},g.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},g}(T=kc||(kc={})),T.Root=p;var _a=function(T){function p(h,g,z,E){var q=T.call(this,g.policies,E)||this;return q.id=h,q.parent=g,q.replay=z,q.group=E,z(q),q}return(0,Kn.ZT)(p,T),p.prototype.addLayer=function(h,g){return new p(h,this,g,this.group)},p.prototype.removeLayer=function(h){var g=this,z=this.parent.removeLayer(h);return h===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(E){var q=g.data[E],_e=z.lookup(E);_e?q?q!==_e&&Object.keys(q).forEach(function(xe){(0,Ga.D)(q[xe],_e[xe])||g.group.dirty(E,xe)}):(g.group.dirty(E,"__exists"),Object.keys(_e).forEach(function(xe){g.group.dirty(E,xe)})):g.delete(E)}),z):z===this.parent?this:z.addLayer(this.id,this.replay)},p.prototype.toObject=function(){return(0,Kn.pi)((0,Kn.pi)({},this.parent.toObject()),this.data)},p.prototype.findChildRefIds=function(h){var g=this.parent.findChildRefIds(h);return tr.call(this.data,h)?(0,Kn.pi)((0,Kn.pi)({},g),T.prototype.findChildRefIds.call(this,h)):g},p.prototype.getStorage=function(){for(var h=this.parent;h.parent;)h=h.parent;return h.getStorage.apply(h,arguments)},p}(kc),lp=function(T){function p(h){return T.call(this,"EntityStore.Stump",h,function(){},new H1(h.group.caching,h.group))||this}return(0,Kn.ZT)(p,T),p.prototype.removeLayer=function(){return this},p.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},p}(_a);function up(T,p,h){var g=T[h],z=p[h];return(0,Ga.D)(g,z)?g:z}function Rc(T){return!!(T instanceof kc&&T.group.caching)}var ya=a(1789);function zs(T){return[T.selectionSet,T.objectOrReference,T.context,T.context.canonizeResults]}var Vc=function(){function T(p){var h=this;this.knownResults=new(Pc.mr?WeakMap:Map),this.config=(0,Ic.o)(p,{addTypename:!1!==p.addTypename,canonizeResults:Cs(p)}),this.canon=p.canon||new ya.h,this.executeSelectionSet=(0,Pu.re)(function(g){var z,E=g.context.canonizeResults,q=zs(g);q[3]=!E;var _e=(z=h.executeSelectionSet).peek.apply(z,q);return _e?E?(0,Kn.pi)((0,Kn.pi)({},_e),{result:h.canon.admit(_e.result)}):_e:(va(g.context.store,g.enclosingRef.__ref),h.execSelectionSetImpl(g))},{max:this.config.resultCacheMaxSize,keyArgs:zs,makeCacheKey:function(g,z,E,q){if(Rc(E.store))return E.store.makeCacheKey(g,(0,zo.Yk)(z)?z.__ref:z,E.varString,q)}}),this.executeSubSelectedArray=(0,Pu.re)(function(g){return va(g.context.store,g.enclosingRef.__ref),h.execSubSelectedArrayImpl(g)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(g){var z=g.field,E=g.array,q=g.context;if(Rc(q.store))return q.store.makeCacheKey(z,E,q.varString)}})}return T.prototype.resetCanon=function(){this.canon=new ya.h},T.prototype.diffQueryAgainstStore=function(p){var h=p.store,g=p.query,z=p.rootId,E=void 0===z?"ROOT_QUERY":z,q=p.variables,_e=p.returnPartialData,xe=void 0===_e||_e,Ke=p.canonizeResults,ft=void 0===Ke?this.config.canonizeResults:Ke,xt=this.config.cache.policies;q=(0,Kn.pi)((0,Kn.pi)({},(0,Qa.O4)((0,Qa.iW)(g))),q);var Kt,$t=(0,zo.kQ)(E),Gt=this.executeSelectionSet({selectionSet:(0,Qa.p$)(g).selectionSet,objectOrReference:$t,enclosingRef:$t,context:(0,Kn.pi)({store:h,query:g,policies:xt,variables:q,varString:(0,ya.B)(q),canonizeResults:ft},Ed(g,this.config.fragments))});if(Gt.missing&&(Kt=[new F1(_r(Gt.missing),Gt.missing,g,q)],!xe))throw Kt[0];return{result:Gt.result,complete:!Kt,missing:Kt}},T.prototype.isFresh=function(p,h,g,z){if(Rc(z.store)&&this.knownResults.get(p)===g){var E=this.executeSelectionSet.peek(g,h,z,this.canon.isKnown(p));if(E&&p===E.result)return!0}return!1},T.prototype.execSelectionSetImpl=function(p){var h=this,g=p.selectionSet,z=p.objectOrReference,E=p.enclosingRef,q=p.context;if((0,zo.Yk)(z)&&!q.policies.rootTypenamesById[z.__ref]&&!q.store.has(z.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(z.__ref," object")};var $t,_e=q.variables,xe=q.policies,ft=q.store.getFieldValue(z,"__typename"),xt=[],Gt=new ys.w0;function Kt(on,gn){var $n;return on.missing&&($t=Gt.merge($t,(($n={})[gn]=on.missing,$n))),on.result}this.config.addTypename&&"string"==typeof ft&&!xe.rootIdsByTypename[ft]&&xt.push({__typename:ft});var Qt=new Set(g.selections);Qt.forEach(function(on){var gn,$n;if((0,Wa.LZ)(on,_e))if((0,zo.My)(on)){var Ln=xe.readField({fieldName:on.name.value,field:on,variables:q.variables,from:z},q),ao=(0,zo.u2)(on);void 0===Ln?Pl.Gw.added(on)||($t=Gt.merge($t,((gn={})[ao]="Can't find field '".concat(on.name.value,"' on ").concat((0,zo.Yk)(z)?z.__ref+" object":"object "+JSON.stringify(z,null,2)),gn))):(0,ki.k)(Ln)?Ln=Kt(h.executeSubSelectedArray({field:on,array:Ln,enclosingRef:E,context:q}),ao):on.selectionSet?null!=Ln&&(Ln=Kt(h.executeSelectionSet({selectionSet:on.selectionSet,objectOrReference:Ln,enclosingRef:(0,zo.Yk)(Ln)?Ln:E,context:q}),ao)):q.canonizeResults&&(Ln=h.canon.pass(Ln)),void 0!==Ln&&xt.push((($n={})[ao]=Ln,$n))}else{var So=(0,Iu.hi)(on,q.lookupFragment);if(!So&&on.kind===N1.h.FRAGMENT_SPREAD)throw __DEV__?new Li.ej("No fragment named ".concat(on.name.value)):new Li.ej(5);So&&xe.fragmentMatches(So,ft)&&So.selectionSet.selections.forEach(Qt.add,Qt)}});var En={result:(0,ys.bw)(xt),missing:$t},Yn=q.canonizeResults?this.canon.admit(En):k1(En);return Yn.result&&this.knownResults.set(Yn.result,g),Yn},T.prototype.execSubSelectedArrayImpl=function(p){var _e,h=this,g=p.field,z=p.array,E=p.enclosingRef,q=p.context,xe=new ys.w0;function Ke(ft,xt){var $t;return ft.missing&&(_e=xe.merge(_e,(($t={})[xt]=ft.missing,$t))),ft.result}return g.selectionSet&&(z=z.filter(q.store.canRead)),z=z.map(function(ft,xt){return null===ft?null:(0,ki.k)(ft)?Ke(h.executeSubSelectedArray({field:g,array:ft,enclosingRef:E,context:q}),xt):g.selectionSet?Ke(h.executeSelectionSet({selectionSet:g.selectionSet,objectOrReference:ft,enclosingRef:(0,zo.Yk)(ft)?ft:E,context:q}),xt):(__DEV__&&function xd(T,p,h){if(!p.selectionSet){var g=new Set([h]);g.forEach(function(z){(0,rs.s)(z)&&(__DEV__?(0,Li.kG)(!(0,zo.Yk)(z),"Missing selection set for object of type ".concat(function Fc(T,p){return(0,zo.Yk)(p)?T.get(p.__ref,"__typename"):p&&p.__typename}(T,z)," returned for query field ").concat(p.name.value)):(0,Li.kG)(!(0,zo.Yk)(z),6),Object.values(z).forEach(g.add,g))})}}(q.store,g,ft),ft)}),{result:q.canonizeResults?this.canon.admit(z):z,missing:_e}},T}();function _r(T){try{JSON.stringify(T,function(p,h){if("string"==typeof h)throw h;return h})}catch(p){return p}}var dp=a(5078),pp=a(6726),Fl=a(3088),Y1=Object.create(null);function ku(T){var p=JSON.stringify(T);return Y1[p]||(Y1[p]=Object.create(null))}function $1(T){var p=ku(T);return p.keyFieldsFn||(p.keyFieldsFn=function(h,g){var z=function(q,_e){return g.readField(_e,q)},E=g.keyObject=Ru(T,function(q){var _e=Ts(g.storeObject,q,z);return void 0===_e&&h!==g.storeObject&&tr.call(h,q[0])&&(_e=Ts(h,q,ss)),__DEV__?(0,Li.kG)(void 0!==_e,"Missing field '".concat(q.join("."),"' while extracting keyFields from ").concat(JSON.stringify(h))):(0,Li.kG)(void 0!==_e,2),_e});return"".concat(g.typename,":").concat(JSON.stringify(E))})}function U1(T){var p=ku(T);return p.keyArgsFn||(p.keyArgsFn=function(h,g){var z=g.field,E=g.variables,q=g.fieldName,_e=Ru(T,function(Ke){var ft=Ke[0],xt=ft.charAt(0);if("@"!==xt)if("$"!==xt){if(h)return Ts(h,Ke)}else{var Qt=ft.slice(1);if(E&&tr.call(E,Qt)){var hn=Ke.slice(0);return hn[0]=Qt,Ts(E,hn)}}else if(z&&(0,ki.O)(z.directives)){var $t=ft.slice(1),Gt=z.directives.find(function(En){return En.name.value===$t}),Kt=Gt&&(0,zo.NC)(Gt,E);return Kt&&Ts(Kt,Ke.slice(1))}}),xe=JSON.stringify(_e);return(h||"{}"!==xe)&&(q+=":"+xe),q})}function Ru(T,p){var h=new ys.w0;return Nl(T).reduce(function(g,z){var E,q=p(z);if(void 0!==q){for(var _e=z.length-1;_e>=0;--_e)(E={})[z[_e]]=q,q=E;g=h.merge(g,q)}return g},Object.create(null))}function Nl(T){var p=ku(T);if(!p.paths){var h=p.paths=[],g=[];T.forEach(function(z,E){(0,ki.k)(z)?(Nl(z).forEach(function(q){return h.push(g.concat(q))}),g.length=0):(g.push(z),(0,ki.k)(T[E+1])||(h.push(g.slice(0)),g.length=0))})}return p.paths}function ss(T,p){return T[p]}function Ts(T,p,h){return h=h||ss,j1(p.reduce(function g(z,E){return(0,ki.k)(z)?z.map(function(q){return g(q,E)}):z&&h(z,E)},T))}function j1(T){return(0,rs.s)(T)?(0,ki.k)(T)?T.map(j1):Ru(Object.keys(T).sort(),function(p){return Ts(T,p)}):T}function Vu(T){return void 0!==T.args?T.args:T.field?(0,zo.NC)(T.field,T.variables):null}zo.PT.setStringify(ya.B);var Od=function(){},wd=function(T,p){return p.fieldName},hp=function(T,p,h){return(0,h.mergeObjects)(T,p)},fp=function(T,p){return p},G1=function(){function T(p){this.config=p,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,Kn.pi)({dataIdFromObject:R1},p),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),p.possibleTypes&&this.addPossibleTypes(p.possibleTypes),p.typePolicies&&this.addTypePolicies(p.typePolicies)}return T.prototype.identify=function(p,h){var g,z=this,E=h&&(h.typename||(null===(g=h.storeObject)||void 0===g?void 0:g.__typename))||p.__typename;if(E===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var xe,q=h&&h.storeObject||p,_e=(0,Kn.pi)((0,Kn.pi)({},h),{typename:E,storeObject:q,readField:h&&h.readField||function(){var $t=Q1(arguments,q);return z.readField($t,{store:z.cache.data,variables:$t.variables})}}),Ke=E&&this.getTypePolicy(E),ft=Ke&&Ke.keyFn||this.config.dataIdFromObject;ft;){var xt=ft((0,Kn.pi)((0,Kn.pi)({},p),q),_e);if(!(0,ki.k)(xt)){xe=xt;break}ft=$1(xt)}return xe=xe?String(xe):void 0,_e.keyObject?[xe,_e.keyObject]:[xe]},T.prototype.addTypePolicies=function(p){var h=this;Object.keys(p).forEach(function(g){var z=p[g],E=z.queryType,q=z.mutationType,_e=z.subscriptionType,xe=(0,Kn._T)(z,["queryType","mutationType","subscriptionType"]);E&&h.setRootTypename("Query",g),q&&h.setRootTypename("Mutation",g),_e&&h.setRootTypename("Subscription",g),tr.call(h.toBeAdded,g)?h.toBeAdded[g].push(xe):h.toBeAdded[g]=[xe]})},T.prototype.updateTypePolicy=function(p,h){var g=this,z=this.getTypePolicy(p),E=h.keyFields,q=h.fields;function _e(xe,Ke){xe.merge="function"==typeof Ke?Ke:!0===Ke?hp:!1===Ke?fp:xe.merge}_e(z,h.merge),z.keyFn=!1===E?Od:(0,ki.k)(E)?$1(E):"function"==typeof E?E:z.keyFn,q&&Object.keys(q).forEach(function(xe){var Ke=g.getFieldPolicy(p,xe,!0),ft=q[xe];if("function"==typeof ft)Ke.read=ft;else{var xt=ft.keyArgs,$t=ft.read,Gt=ft.merge;Ke.keyFn=!1===xt?wd:(0,ki.k)(xt)?U1(xt):"function"==typeof xt?xt:Ke.keyFn,"function"==typeof $t&&(Ke.read=$t),_e(Ke,Gt)}Ke.read&&Ke.merge&&(Ke.keyFn=Ke.keyFn||wd)})},T.prototype.setRootTypename=function(p,h){void 0===h&&(h=p);var g="ROOT_"+p.toUpperCase(),z=this.rootTypenamesById[g];h!==z&&(__DEV__?(0,Li.kG)(!z||z===p,"Cannot change root ".concat(p," __typename more than once")):(0,Li.kG)(!z||z===p,3),z&&delete this.rootIdsByTypename[z],this.rootIdsByTypename[h]=g,this.rootTypenamesById[g]=h)},T.prototype.addPossibleTypes=function(p){var h=this;this.usingPossibleTypes=!0,Object.keys(p).forEach(function(g){h.getSupertypeSet(g,!0),p[g].forEach(function(z){h.getSupertypeSet(z,!0).add(g);var E=z.match(Sd);(!E||E[0]!==z)&&h.fuzzySubtypes.set(z,new RegExp(z))})})},T.prototype.getTypePolicy=function(p){var h=this;if(!tr.call(this.typePolicies,p)){var g=this.typePolicies[p]=Object.create(null);g.fields=Object.create(null);var z=this.supertypeMap.get(p);z&&z.size&&z.forEach(function(q){var _e=h.getTypePolicy(q),xe=_e.fields,Ke=(0,Kn._T)(_e,["fields"]);Object.assign(g,Ke),Object.assign(g.fields,xe)})}var E=this.toBeAdded[p];return E&&E.length&&E.splice(0).forEach(function(q){h.updateTypePolicy(p,q)}),this.typePolicies[p]},T.prototype.getFieldPolicy=function(p,h,g){if(p){var z=this.getTypePolicy(p).fields;return z[h]||g&&(z[h]=Object.create(null))}},T.prototype.getSupertypeSet=function(p,h){var g=this.supertypeMap.get(p);return!g&&h&&this.supertypeMap.set(p,g=new Set),g},T.prototype.fragmentMatches=function(p,h,g,z){var E=this;if(!p.typeCondition)return!0;if(!h)return!1;var q=p.typeCondition.name.value;if(h===q)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(q))for(var _e=this.getSupertypeSet(h,!0),xe=[_e],Ke=function(Kt){var Qt=E.getSupertypeSet(Kt,!1);Qt&&Qt.size&&xe.indexOf(Qt)<0&&xe.push(Qt)},ft=!(!g||!this.fuzzySubtypes.size),xt=!1,$t=0;$t1?T[1]:p}:(q=(0,Kn.pi)({},g),tr.call(q,"from")||(q.from=p)),__DEV__&&void 0===q.from&&__DEV__&&Li.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function Dd(T){var p=(0,pp.X)("stringifyForDisplay");return JSON.stringify(T,function(h,g){return void 0===g?p:g}).split(JSON.stringify(p)).join("")}(Array.from(T)))),void 0===q.variables&&(q.variables=h),q}function Bc(T){return function(h,g){if((0,ki.k)(h)||(0,ki.k)(g))throw __DEV__?new Li.ej("Cannot automatically merge arrays"):new Li.ej(4);if((0,rs.s)(h)&&(0,rs.s)(g)){var z=T.getFieldValue(h,"__typename"),E=T.getFieldValue(g,"__typename");if(z&&E&&z!==E)return g;if((0,zo.Yk)(h)&&Nc(g))return T.merge(h.__ref,g),h;if(Nc(h)&&(0,zo.Yk)(g))return T.merge(h,g.__ref),g;if(Nc(h)&&Nc(g))return(0,Kn.pi)((0,Kn.pi)({},h),g)}return g}}function Hu(T,p,h){var g="".concat(p).concat(h),z=T.flavors.get(g);return z||T.flavors.set(g,z=T.clientOnly===p&&T.deferred===h?T:(0,Kn.pi)((0,Kn.pi)({},T),{clientOnly:p,deferred:h})),z}var mp=function(){function T(p,h,g){this.cache=p,this.reader=h,this.fragments=g}return T.prototype.writeToStore=function(p,h){var g=this,z=h.query,E=h.result,q=h.dataId,_e=h.variables,xe=h.overwrite,Ke=(0,Qa.$H)(z),ft=function B1(){return new ys.w0}();_e=(0,Kn.pi)((0,Kn.pi)({},(0,Qa.O4)(Ke)),_e);var xt=(0,Kn.pi)((0,Kn.pi)({store:p,written:Object.create(null),merge:function(Gt,Kt){return ft.merge(Gt,Kt)},variables:_e,varString:(0,ya.B)(_e)},Ed(z,this.fragments)),{overwrite:!!xe,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),$t=this.processSelectionSet({result:E||Object.create(null),dataId:q,selectionSet:Ke.selectionSet,mergeTree:{map:new Map},context:xt});if(!(0,zo.Yk)($t))throw __DEV__?new Li.ej("Could not identify object ".concat(JSON.stringify(E))):new Li.ej(7);return xt.incomingById.forEach(function(Gt,Kt){var Qt=Gt.storeObject,hn=Gt.mergeTree,En=Gt.fieldNodeSet,Yn=(0,zo.kQ)(Kt);if(hn&&hn.map.size){var on=g.applyMerges(hn,Yn,Qt,xt);if((0,zo.Yk)(on))return;Qt=on}if(__DEV__&&!xt.overwrite){var gn=Object.create(null);En.forEach(function(ao){ao.selectionSet&&(gn[ao.name.value]=!0)}),Object.keys(Qt).forEach(function(ao){(function(ao){return!0===gn[ma(ao)]})(ao)&&!function(ao){var So=hn&&hn.map.get(ao);return!!(So&&So.info&&So.info.merge)}(ao)&&function K1(T,p,h,g){var z=function(xt){var $t=g.getFieldValue(xt,h);return"object"==typeof $t&&$t},E=z(T);if(E){var q=z(p);if(q&&!(0,zo.Yk)(E)&&!(0,Ga.D)(E,q)&&!Object.keys(E).every(function(xt){return void 0!==g.getFieldValue(q,xt)})){var _e=g.getFieldValue(T,"__typename")||g.getFieldValue(p,"__typename"),xe=ma(h),Ke="".concat(_e,".").concat(xe);if(!Z1.has(Ke)){Z1.add(Ke);var ft=[];!(0,ki.k)(E)&&!(0,ki.k)(q)&&[E,q].forEach(function(xt){var $t=g.getFieldValue(xt,"__typename");"string"==typeof $t&&!ft.includes($t)&&ft.push($t)}),__DEV__&&Li.kG.warn("Cache data may be lost when replacing the ".concat(xe," field of a ").concat(_e," object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(ft.length?"either ensure all objects of type "+ft.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(Ke," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(E).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(q).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"))}}}}(Yn,Qt,ao,xt.store)})}p.merge(Kt,Qt)}),p.retain($t.__ref),$t},T.prototype.processSelectionSet=function(p){var h=this,g=p.dataId,z=p.result,E=p.selectionSet,q=p.context,_e=p.mergeTree,xe=this.cache.policies,Ke=Object.create(null),ft=g&&xe.rootTypenamesById[g]||(0,zo.qw)(z,E,q.fragmentMap)||g&&q.store.get(g,"__typename");"string"==typeof ft&&(Ke.__typename=ft);var xt=function(){var on=Q1(arguments,Ke,q.variables);if((0,zo.Yk)(on.from)){var gn=q.incomingById.get(on.from.__ref);if(gn){var $n=xe.readField((0,Kn.pi)((0,Kn.pi)({},on),{from:gn.storeObject}),q);if(void 0!==$n)return $n}}return xe.readField(on,q)},$t=new Set;this.flattenFields(E,z,q,ft).forEach(function(on,gn){var $n,Ln=(0,zo.u2)(gn),ao=z[Ln];if($t.add(gn),void 0!==ao){var So=xe.getStoreFieldName({typename:ft,fieldName:gn.name.value,field:gn,variables:on.variables}),xi=Id(_e,So),Si=h.processFieldValue(ao,gn,gn.selectionSet?Hu(on,!1,!1):on,xi),as=void 0;gn.selectionSet&&((0,zo.Yk)(Si)||Nc(Si))&&(as=xt("__typename",Si));var Hi=xe.getMergeFunction(ft,gn.name.value,as);Hi?xi.info={field:gn,typename:ft,merge:Hi}:kl(_e,So),Ke=on.merge(Ke,(($n={})[So]=Si,$n))}else __DEV__&&!on.clientOnly&&!on.deferred&&!Pl.Gw.added(gn)&&!xe.getReadFunction(ft,gn.name.value)&&__DEV__&&Li.kG.error("Missing field '".concat((0,zo.u2)(gn),"' while writing result ").concat(JSON.stringify(z,null,2)).substring(0,1e3))});try{var Gt=xe.identify(z,{typename:ft,selectionSet:E,fragmentMap:q.fragmentMap,storeObject:Ke,readField:xt}),Qt=Gt[1];g=g||Gt[0],Qt&&(Ke=q.merge(Ke,Qt))}catch(on){if(!g)throw on}if("string"==typeof g){var hn=(0,zo.kQ)(g),En=q.written[g]||(q.written[g]=[]);if(En.indexOf(E)>=0||(En.push(E),this.reader&&this.reader.isFresh(z,hn,E,q)))return hn;var Yn=q.incomingById.get(g);return Yn?(Yn.storeObject=q.merge(Yn.storeObject,Ke),Yn.mergeTree=W1(Yn.mergeTree,_e),$t.forEach(function(on){return Yn.fieldNodeSet.add(on)})):q.incomingById.set(g,{storeObject:Ke,mergeTree:Ll(_e)?void 0:_e,fieldNodeSet:$t}),hn}return Ke},T.prototype.processFieldValue=function(p,h,g,z){var E=this;return h.selectionSet&&null!==p?(0,ki.k)(p)?p.map(function(q,_e){var xe=E.processFieldValue(q,h,g,Id(z,_e));return kl(z,_e),xe}):this.processSelectionSet({result:p,selectionSet:h.selectionSet,context:g,mergeTree:z}):__DEV__?(0,dp.X)(p):p},T.prototype.flattenFields=function(p,h,g,z){void 0===z&&(z=(0,zo.qw)(h,p,g.fragmentMap));var E=new Map,q=this.cache.policies,_e=new Au.B(!1);return function xe(Ke,ft){var xt=_e.lookup(Ke,ft.clientOnly,ft.deferred);xt.visited||(xt.visited=!0,Ke.selections.forEach(function($t){if((0,Wa.LZ)($t,g.variables)){var Gt=ft.clientOnly,Kt=ft.deferred;if(!(Gt&&Kt)&&(0,ki.O)($t.directives)&&$t.directives.forEach(function(En){var Yn=En.name.value;if("client"===Yn&&(Gt=!0),"defer"===Yn){var on=(0,zo.NC)(En,g.variables);(!on||!1!==on.if)&&(Kt=!0)}}),(0,zo.My)($t)){var Qt=E.get($t);Qt&&(Gt=Gt&&Qt.clientOnly,Kt=Kt&&Qt.deferred),E.set($t,Hu(g,Gt,Kt))}else{var hn=(0,Iu.hi)($t,g.lookupFragment);if(!hn&&$t.kind===N1.h.FRAGMENT_SPREAD)throw __DEV__?new Li.ej("No fragment named ".concat($t.name.value)):new Li.ej(8);hn&&q.fragmentMatches(hn,z,h,g.variables)&&xe(hn.selectionSet,Hu(g,Gt,Kt))}}}))}(p,g),E},T.prototype.applyMerges=function(p,h,g,z,E){var q,_e=this;if(p.map.size&&!(0,zo.Yk)(g)){var xe=(0,ki.k)(g)||!(0,zo.Yk)(h)&&!Nc(h)?void 0:h,Ke=g;xe&&!E&&(E=[(0,zo.Yk)(xe)?xe.__ref:xe]);var ft,xt=function($t,Gt){return(0,ki.k)($t)?"number"==typeof Gt?$t[Gt]:void 0:z.store.getFieldValue($t,String(Gt))};p.map.forEach(function($t,Gt){var Kt=xt(xe,Gt),Qt=xt(Ke,Gt);if(void 0!==Qt){E&&E.push(Gt);var hn=_e.applyMerges($t,Kt,Qt,z,E);hn!==Qt&&(ft=ft||new Map).set(Gt,hn),E&&(0,Li.kG)(E.pop()===Gt)}}),ft&&(g=(0,ki.k)(Ke)?Ke.slice(0):(0,Kn.pi)({},Ke),ft.forEach(function($t,Gt){g[Gt]=$t}))}return p.info?this.cache.policies.runMergeFunction(h,g,p.info,z,E&&(q=z.store).getStorage.apply(q,E)):g},T}(),Pd=[];function Id(T,p){var h=T.map;return h.has(p)||h.set(p,Pd.pop()||{map:new Map}),h.get(p)}function W1(T,p){if(T===p||!p||Ll(p))return T;if(!T||Ll(T))return p;var h=T.info&&p.info?(0,Kn.pi)((0,Kn.pi)({},T.info),p.info):T.info||p.info,g=T.map.size&&p.map.size,E={info:h,map:g?new Map:T.map.size?T.map:p.map};if(g){var q=new Set(p.map.keys());T.map.forEach(function(_e,xe){E.map.set(xe,W1(_e,p.map.get(xe))),q.delete(xe)}),q.forEach(function(_e){E.map.set(_e,W1(p.map.get(_e),T.map.get(_e)))})}return E}function Ll(T){return!T||!(T.info||T.map.size)}function kl(T,p){var h=T.map,g=h.get(p);g&&Ll(g)&&(Pd.push(g),h.delete(p))}var Z1=new Set,gp=function(T){function p(h){void 0===h&&(h={});var g=T.call(this)||this;return g.watches=new Set,g.typenameDocumentCache=new Map,g.makeVar=Fl.QS,g.txCount=0,g.config=function Ac(T){return(0,Ic.o)(V1,T)}(h),g.addTypename=!!g.config.addTypename,g.policies=new G1({cache:g,dataIdFromObject:g.config.dataIdFromObject,possibleTypes:g.config.possibleTypes,typePolicies:g.config.typePolicies}),g.init(),g}return(0,Kn.ZT)(p,T),p.prototype.init=function(){var h=this.data=new kc.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=h.stump,this.resetResultCache()},p.prototype.resetResultCache=function(h){var g=this,z=this.storeReader,E=this.config.fragments;this.storeWriter=new mp(this,this.storeReader=new Vc({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Cs(this.config),canon:h?void 0:z&&z.canon,fragments:E}),E),this.maybeBroadcastWatch=(0,Pu.re)(function(q,_e){return g.broadcastWatch(q,_e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(q){var _e=q.optimistic?g.optimisticData:g.data;if(Rc(_e))return _e.makeCacheKey(q.query,q.callback,(0,ya.B)({optimistic:q.optimistic,id:q.id,variables:q.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(q){return q.resetCaching()})},p.prototype.restore=function(h){return this.init(),h&&this.data.replace(h),this},p.prototype.extract=function(h){return void 0===h&&(h=!1),(h?this.optimisticData:this.data).extract()},p.prototype.read=function(h){var g=h.returnPartialData,z=void 0!==g&&g;try{return this.storeReader.diffQueryAgainstStore((0,Kn.pi)((0,Kn.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:z})).result||null}catch(E){if(E instanceof F1)return null;throw E}},p.prototype.write=function(h){try{return++this.txCount,this.storeWriter.writeToStore(this.data,h)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.modify=function(h){if(tr.call(h,"id")&&!h.id)return!1;var g=h.optimistic?this.optimisticData:this.data;try{return++this.txCount,g.modify(h.id||"ROOT_QUERY",h.fields)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.diff=function(h){return this.storeReader.diffQueryAgainstStore((0,Kn.pi)((0,Kn.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,rootId:h.id||"ROOT_QUERY",config:this.config}))},p.prototype.watch=function(h){var g=this;return this.watches.size||(0,Fl._v)(this),this.watches.add(h),h.immediate&&this.maybeBroadcastWatch(h),function(){g.watches.delete(h)&&!g.watches.size&&(0,Fl.li)(g),g.maybeBroadcastWatch.forget(h)}},p.prototype.gc=function(h){ya.B.reset();var g=this.optimisticData.gc();return h&&!this.txCount&&(h.resetResultCache?this.resetResultCache(h.resetResultIdentities):h.resetResultIdentities&&this.storeReader.resetCanon()),g},p.prototype.retain=function(h,g){return(g?this.optimisticData:this.data).retain(h)},p.prototype.release=function(h,g){return(g?this.optimisticData:this.data).release(h)},p.prototype.identify=function(h){if((0,zo.Yk)(h))return h.__ref;try{return this.policies.identify(h)[0]}catch(g){__DEV__&&Li.kG.warn(g)}},p.prototype.evict=function(h){if(!h.id){if(tr.call(h,"id"))return!1;h=(0,Kn.pi)((0,Kn.pi)({},h),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(h,this.data)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.reset=function(h){var g=this;return this.init(),ya.B.reset(),h&&h.discardWatches?(this.watches.forEach(function(z){return g.maybeBroadcastWatch.forget(z)}),this.watches.clear(),(0,Fl.li)(this)):this.broadcastWatches(),Promise.resolve()},p.prototype.removeOptimistic=function(h){var g=this.optimisticData.removeLayer(h);g!==this.optimisticData&&(this.optimisticData=g,this.broadcastWatches())},p.prototype.batch=function(h){var Ke,g=this,z=h.update,E=h.optimistic,q=void 0===E||E,_e=h.removeOptimistic,xe=h.onWatchUpdated,ft=function($t){var Kt=g.data,Qt=g.optimisticData;++g.txCount,$t&&(g.data=g.optimisticData=$t);try{return Ke=z(g)}finally{--g.txCount,g.data=Kt,g.optimisticData=Qt}},xt=new Set;return xe&&!this.txCount&&this.broadcastWatches((0,Kn.pi)((0,Kn.pi)({},h),{onWatchUpdated:function($t){return xt.add($t),!1}})),"string"==typeof q?this.optimisticData=this.optimisticData.addLayer(q,ft):!1===q?ft(this.data):ft(),"string"==typeof _e&&(this.optimisticData=this.optimisticData.removeLayer(_e)),xe&&xt.size?(this.broadcastWatches((0,Kn.pi)((0,Kn.pi)({},h),{onWatchUpdated:function($t,Gt){var Kt=xe.call(this,$t,Gt);return!1!==Kt&&xt.delete($t),Kt}})),xt.size&&xt.forEach(function($t){return g.maybeBroadcastWatch.dirty($t)})):this.broadcastWatches(h),Ke},p.prototype.performTransaction=function(h,g){return this.batch({update:h,optimistic:g||null!==g})},p.prototype.transformDocument=function(h){if(this.addTypename){var g=this.typenameDocumentCache.get(h);return g||(g=(0,Pl.Gw)(h),this.typenameDocumentCache.set(h,g),this.typenameDocumentCache.set(g,g)),g}return h},p.prototype.transformForLink=function(h){var g=this.config.fragments;return g?g.transform(h):h},p.prototype.broadcastWatches=function(h){var g=this;this.txCount||this.watches.forEach(function(z){return g.maybeBroadcastWatch(z,h)})},p.prototype.broadcastWatch=function(h,g){var z=h.lastDiff,E=this.diff(h);g&&(h.optimistic&&"string"==typeof g.optimistic&&(E.fromOptimisticTransaction=!0),g.onWatchUpdated&&!1===g.onWatchUpdated.call(this,h,E,z))||(!z||!(0,Ga.D)(z.result,E.result))&&h.callback(h.lastDiff=E,z)},p}(bd);const Ad={possibleTypes:{CommentBodySegment:["CommentTagSegment","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Flag","Gene","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Flag","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","EvidenceItem","Gene","MolecularProfile","Revision","Source","SourcePopover","SourceSuggestion","Variant","VariantGroup"],Flaggable:["Assertion","BrowseGene","EvidenceItem","Gene","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Gene","Variant"],MolecularProfileSegment:["Gene","MolecularProfileTextSegment","Variant"],WithRevisions:["Assertion","EvidenceItem","Gene","MolecularProfile","Variant","VariantGroup"]}};var Yu=a(9111),Bs=a(7691),J1=a(86),vp=a(7619);class Hc extends A1.i{constructor(p,h){super(),(0,Bs.Z)(this,"httpClient",void 0),(0,Bs.Z)(this,"options",void 0),(0,Bs.Z)(this,"requester",void 0),(0,Bs.Z)(this,"print",J1.S),this.httpClient=p,this.options=h,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=g=>new vp.y(z=>{const E=g.getContext(),q=(Yn,on)=>function Ca(...T){const p=T.find(h=>typeof h<"u");return typeof p>"u"?T[T.length-1]:p}(E[Yn],this.options[Yn],on);let _e=q("method","POST");const xe=q("includeQuery",!0),Ke=q("includeExtensions",!1),ft=q("uri","graphql"),xt=q("withCredentials"),$t=q("useMultipart"),Gt=!0===this.options.useGETForQueries,Kt=g.query.definitions.some(Yn=>"OperationDefinition"===Yn.kind&&"query"===Yn.operation);Gt&&Kt&&(_e="GET");const Qt={method:_e,url:"function"==typeof ft?ft(g):ft,body:{operationName:g.operationName,variables:g.variables},options:{withCredentials:xt,useMultipart:$t,headers:this.options.headers}};Ke&&(Qt.body.extensions=g.extensions),xe&&(Qt.body.query=this.print(g.query));const hn=function q1(T){let p=T.headers&&T.headers instanceof bn.WM?T.headers:new bn.WM(T.headers);if(T.clientAwareness){const{name:h,version:g}=T.clientAwareness;h&&!p.has("apollographql-client-name")&&(p=p.set("apollographql-client-name",h)),g&&!p.has("apollographql-client-version")&&(p=p.set("apollographql-client-version",g))}return p}(E);Qt.options.headers=((T,p)=>T&&p?p.keys().reduce((g,z)=>g.set(z,p.getAll(z)),T):p||T)(Qt.options.headers,hn);const En=((T,p,h)=>{const g=-1!==["POST","PUT","PATCH"].indexOf(T.method.toUpperCase()),E=T.body.length;let _e,q=T.options&&T.options.useMultipart;if(q){if(E)return new v.y(Ke=>Ke.error(new Error("File upload is not available when combined with Batching")));if(!g)return new v.y(Ke=>Ke.error(new Error("File upload is not available when GET is used")));if(!h)return new v.y(Ke=>Ke.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));_e=h(T.body),q=!!_e.files.size}let xe={};if(E){if(!g)return new v.y(Ke=>Ke.error(new Error("Batching is not available for GET requests")));xe={body:T.body}}else xe=g?{body:q?_e.clone:T.body}:{params:Object.keys(T.body).reduce((xt,$t)=>{const Gt=T.body[$t];return xt[$t]=-1!==["variables","extensions"].indexOf($t.toLowerCase())?JSON.stringify(Gt):Gt,xt},{})};if(q&&g){const Ke=new FormData;Ke.append("operations",JSON.stringify(xe.body));const ft={},xt=_e.files;let $t=0;xt.forEach(Gt=>{ft[++$t]=Gt}),Ke.append("map",JSON.stringify(ft)),$t=0,xt.forEach((Gt,Kt)=>{Ke.append(++$t+"",Kt,Kt.name)}),xe.body=Ke}return p.request(T.method,T.url,{observe:"response",responseType:"json",reportProgress:!1,...xe,...T.options})})(Qt,this.httpClient,this.options.extractFiles).subscribe({next:Yn=>{g.setContext({response:Yn}),z.next(Yn.body)},error:Yn=>z.error(Yn),complete:()=>z.complete()});return()=>{En.closed||En.unsubscribe()}})}request(p){return this.requester(p)}}let eh=(()=>{class T{constructor(h){(0,Bs.Z)(this,"httpClient",void 0),this.httpClient=h}create(h){return new Hc(this.httpClient,h)}}return(0,Bs.Z)(T,"\u0275fac",function(h){return new(h||T)(i.LFG(bn.eN))}),(0,Bs.Z)(T,"\u0275prov",i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})),T})();function vi(T){return void 0===T&&(T=!1),{keyArgs:T,read:function(p,h){var g=h.canRead,z=h.readField;if(!p)return p;var E=[],q="",_e="";p.edges.forEach(function(xt){g(z("node",xt))&&(E.push(xt),xt.cursor&&(q=q||xt.cursor||"",_e=xt.cursor||_e))}),E.length>1&&q===_e&&(q="");var xe=p.pageInfo||{},Ke=xe.startCursor,ft=xe.endCursor;return(0,Kn.pi)((0,Kn.pi)({},Rl(p)),{edges:E,pageInfo:(0,Kn.pi)((0,Kn.pi)({},p.pageInfo),{startCursor:Ke||q,endCursor:ft||_e})})},merge:function(p,h,g){var z=g.args,E=g.isReference,q=g.readField;if(p||(p={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!h)return p;var _e=h.edges?h.edges.map(function(So){return E(So=(0,Kn.pi)({},So))&&(So.cursor=q("cursor",So)),So}):[];if(h.pageInfo){var xe=h.pageInfo,Ke=xe.startCursor,ft=xe.endCursor,xt=_e[0],$t=_e[_e.length-1];xt&&Ke&&(xt.cursor=Ke),$t&&ft&&($t.cursor=ft);var Gt=xt&&xt.cursor;Gt&&!Ke&&(h=(0,ys.Ee)(h,{pageInfo:{startCursor:Gt}}));var Kt=$t&&$t.cursor;Kt&&!ft&&(h=(0,ys.Ee)(h,{pageInfo:{endCursor:Kt}}))}var Qt=p.edges,hn=[];if(z&&z.after)(En=Qt.findIndex(function(So){return So.cursor===z.after}))>=0&&(Qt=Qt.slice(0,En+1));else if(z&&z.before){var En;hn=(En=Qt.findIndex(function(xi){return xi.cursor===z.before}))<0?Qt:Qt.slice(En),Qt=[]}else h.edges&&(Qt=[]);var Yn=(0,Kn.ev)((0,Kn.ev)((0,Kn.ev)([],Qt,!0),_e,!0),hn,!0),on=(0,Kn.pi)((0,Kn.pi)({},h.pageInfo),p.pageInfo);if(h.pageInfo){var gn=h.pageInfo,$n=gn.hasPreviousPage,Ln=gn.hasNextPage,ao=(Ke=gn.startCursor,ft=gn.endCursor,(0,Kn._T)(gn,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(on,ao),Qt.length||(void 0!==$n&&(on.hasPreviousPage=$n),void 0!==Ke&&(on.startCursor=Ke)),hn.length||(void 0!==Ln&&(on.hasNextPage=Ln),void 0!==ft&&(on.endCursor=ft))}return(0,Kn.pi)((0,Kn.pi)((0,Kn.pi)({},Rl(p)),Rl(h)),{edges:Yn,pageInfo:on})}}}var Rl=function(T){return(0,Kn._T)(T,Cp)},Cp=["edges","pageInfo"];const X1={Gene:{fields:{comments:vi(),revisions:vi(),events:vi(),variants:vi()}},Query:{fields:{browseGenes:vi(["entrezSymbol","therapayName","geneAlias","diseaseName"]),browseVariants:vi(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId"]),browseMolecularProfiles:vi(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:vi(["name","geneNames","variantNames","variantId"]),browseSources:vi(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:vi(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:vi(["name","doid","geneNames","id"]),events:vi(["subject","organizationId","originatingUserId","eventType"]),variants:vi(["geneId","name"]),molecularProfiles:vi(["geneId","name","evidenceStatusFilter"]),comments:vi(["originatingUserId","subject"]),evidenceItems:vi(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:vi(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:vi(["name","id"]),flags:vi(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:vi(["hpoId","name","id"]),variantTypes:vi(["soid","name","id"]),therapies:vi(["ncitId","name","id"]),clinicalTrials:vi(["nctId","name","id"]),notifications:vi(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:vi(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:vi(["userName","orgName","userRole"])}},User:{fields:{mostRecentOrg:{read:(T,{readField:p})=>{const h=p("mostRecentOrganizationId"),g=p("organizations");if(h&&g)return g.find(z=>z.__ref===`Organization:${h}`)}}}}},ed=X1;function zp(T){let p=T.create({uri:"/api/graphql",withCredentials:!0});return{link:new A1.i((g,z)=>(g.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),z(g))).concat(p),cache:new gp({possibleTypes:Ad.possibleTypes,typePolicies:ed}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}}}}let td=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:[{provide:Yu.BV,useValue:{useInitialLoading:!0}},{provide:Yu.zu,useFactory:zp,deps:[eh]}],imports:[Yu.VG]}),T})();var Rd=a(2392);let Vd=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({imports:[fn.ez,wl.L,Cd.sL,O1.Qp,Rd.ZJ]}),T})(),Za=(()=>{class T{handleError(h){/Loading chunk [\d]+ failed/.test(h.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload()}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();var Tp=a(706);function nd(T){return()=>T.get("/api/status")}(0,fn.qS)(Nn);let Uu=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T,bootstrap:[ja]}),T.\u0275inj=i.cJS({providers:[ql.N,{provide:i.qLn,useClass:Za},{provide:wc.u7,useValue:wc.iF},{provide:i.ip1,useFactory:nd,deps:[bn.eN],multi:!0}],imports:[x1,al,t.b2,td,bn.JF,bn.PD,bn.Ed,ep.s,Ua.PV.forRoot(_d),Tp.S,Vd]}),T})();if(D1.N.production)(0,i.G48)();else{const T=function bt(){return new oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();T.unplug(T.find(nr)),T.show(),T.log()}t.q6().bootstrapModule(Uu).catch(T=>console.error(T))},530:(It,be,a)=>{a.d(be,{g7:()=>I});var t=null,i={},v=1;function s(R){try{return R()}catch{}}var L="@wry/context:Slot",$=s(function(){return globalThis})||s(function(){return global})||Object.create(null),I=$[L]||Array[L]||function(R){try{Object.defineProperty($,L,{value:R,enumerable:!1,writable:!1,configurable:!0})}finally{return R}}(function(){function R(){this.id=["slot",v++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return R.prototype.hasValue=function(){for(var pe=t;pe;pe=pe.parent)if(this.id in pe.slots){var me=pe.slots[this.id];if(me===i)break;return pe!==t&&(t.slots[this.id]=me),!0}return t&&(t.slots[this.id]=i),!1},R.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},R.prototype.withValue=function(pe,me,Z,A){var V,O=((V={__proto__:null})[this.id]=pe,V),P=t;t={parent:P,slots:O};try{return me.apply(A,Z)}finally{t=P}},R.bind=function(pe){var me=t;return function(){var Z=t;try{return t=me,pe.apply(this,arguments)}finally{t=Z}}},R.noContext=function(pe,me,Z){if(!t)return pe.apply(Z,me);var A=t;try{return t=null,pe.apply(Z,me)}finally{t=A}},R}())},692:(It,be,a)=>{a.d(be,{D:()=>L});var t=Object.prototype,i=t.toString,v=t.hasOwnProperty,d=Function.prototype.toString,s=new Map;function L(U,w){try{return j(U,w)}finally{s.clear()}}function j(U,w){if(U===w)return!0;var M=i.call(U);if(M!==i.call(w))return!1;switch(M){case"[object Array]":if(U.length!==w.length)return!1;case"[object Object]":if(k(U,w))return!0;var R=$(U),pe=$(w),me=R.length;if(me!==pe.length)return!1;for(var Z=0;Z=0&&U.indexOf(w,M)===M}(fe,S)}return!1}function $(U){return Object.keys(U).filter(I,U)}function I(U){return void 0!==this[U]}var S="{ [native code] }";function k(U,w){var M=s.get(U);if(M){if(M.has(w))return!0}else s.set(U,M=new Set);return M.add(w),!1}},9377:(It,be,a)=>{a.d(be,{Ps:()=>ie});var t=a(655);function v(at,Xe){if(!at)throw new Error(Xe??"Unexpected invariant triggered.")}const d=/\r\n|[\n\r]/g;function s(at,Xe){let it=0,Ot=1;for(const Pt of at.body.matchAll(d)){if("number"==typeof Pt.index||v(!1),Pt.index>=Xe)break;it=Pt.index+Pt[0].length,Ot+=1}return{line:Ot,column:Xe+1-it}}function j(at,Xe){const it=at.locationOffset.column-1,Ot="".padStart(it)+at.body,Pt=Xe.line-1,kt=Xe.line+(at.locationOffset.line-1),K=Xe.column+(1===Xe.line?it:0),N=`${at.name}:${kt}:${K}\n`,J=Ot.split(/\r\n|[\n\r]/g),Me=J[Pt];if(Me.length>120){const zt=Math.floor(K/80),nt=K%80,We=[];for(let ot=0;ot["|",ot]),["|","^".padStart(nt)],["|",We[zt+1]]])}return N+$([[kt-1+" |",J[Pt-1]],[`${kt} |`,Me],["|","^".padStart(K)],[`${kt+1} |`,J[Pt+1]]])}function $(at){const Xe=at.filter(([Ot,Pt])=>void 0!==Pt),it=Math.max(...Xe.map(([Ot])=>Ot.length));return Xe.map(([Ot,Pt])=>Ot.padStart(it)+(Pt?" "+Pt:"")).join("\n")}class S extends Error{constructor(Xe,...it){var Ot,Pt,Wt;const{nodes:kt,source:Je,positions:K,path:N,originalError:J,extensions:Me}=function I(at){const Xe=at[0];return null==Xe||"kind"in Xe||"length"in Xe?{nodes:Xe,source:at[1],positions:at[2],path:at[3],originalError:at[4],extensions:at[5]}:Xe}(it);super(Xe),this.name="GraphQLError",this.path=N??void 0,this.originalError=J??void 0,this.nodes=F(Array.isArray(kt)?kt:kt?[kt]:void 0);const zt=F(null===(Ot=this.nodes)||void 0===Ot?void 0:Ot.map(We=>We.loc).filter(We=>null!=We));this.source=Je??(null==zt||null===(Pt=zt[0])||void 0===Pt?void 0:Pt.source),this.positions=K??zt?.map(We=>We.start),this.locations=K&&Je?K.map(We=>s(Je,We)):zt?.map(We=>s(We.source,We.start));const nt=function i(at){return"object"==typeof at&&null!==at}(J?.extensions)?J?.extensions:void 0;this.extensions=null!==(Wt=Me??nt)&&void 0!==Wt?Wt:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=J&&J.stack?Object.defineProperty(this,"stack",{value:J.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,S):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let Xe=this.message;if(this.nodes)for(const it of this.nodes)it.loc&&(Xe+="\n\n"+j((at=it.loc).source,s(at.source,at.start)));else if(this.source&&this.locations)for(const it of this.locations)Xe+="\n\n"+j(this.source,it);var at;return Xe}toJSON(){const Xe={message:this.message};return null!=this.locations&&(Xe.locations=this.locations),null!=this.path&&(Xe.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(Xe.extensions=this.extensions),Xe}}function F(at){return void 0===at||0===at.length?void 0:at}function w(at,Xe,it){return new S(`Syntax Error: ${it}`,{source:at,positions:[Xe]})}var M=a(2236),e=(()=>((e=e||{}).QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e))(),R=a(5560),pe=a(7571),me=a(7116),Z=(()=>((Z=Z||{}).SOF="",Z.EOF="",Z.BANG="!",Z.DOLLAR="$",Z.AMP="&",Z.PAREN_L="(",Z.PAREN_R=")",Z.SPREAD="...",Z.COLON=":",Z.EQUALS="=",Z.AT="@",Z.BRACKET_L="[",Z.BRACKET_R="]",Z.BRACE_L="{",Z.PIPE="|",Z.BRACE_R="}",Z.NAME="Name",Z.INT="Int",Z.FLOAT="Float",Z.STRING="String",Z.BLOCK_STRING="BlockString",Z.COMMENT="Comment",Z))();class A{constructor(Xe){const it=new M.WU(Z.SOF,0,0,0,0);this.source=Xe,this.lastToken=it,this.token=it,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let Xe=this.token;if(Xe.kind!==Z.EOF)do{if(Xe.next)Xe=Xe.next;else{const it=fe(this,Xe.end);Xe.next=it,it.prev=Xe,Xe=it}}while(Xe.kind===Z.COMMENT);return Xe}}function O(at){return at>=0&&at<=55295||at>=57344&&at<=1114111}function P(at,Xe){return D(at.charCodeAt(Xe))&&re(at.charCodeAt(Xe+1))}function D(at){return at>=55296&&at<=56319}function re(at){return at>=56320&&at<=57343}function ae(at,Xe){const it=at.source.body.codePointAt(Xe);if(void 0===it)return Z.EOF;if(it>=32&&it<=126){const Ot=String.fromCodePoint(it);return'"'===Ot?"'\"'":`"${Ot}"`}return"U+"+it.toString(16).toUpperCase().padStart(4,"0")}function Q(at,Xe,it,Ot,Pt){return new M.WU(Xe,it,Ot,at.line,1+it-at.lineStart,Pt)}function fe(at,Xe){const it=at.source.body,Ot=it.length;let Pt=Xe;for(;Pt=48&&at<=57?at-48:at>=65&&at<=70?at-55:at>=97&&at<=102?at-87:-1}function Ct(at,Xe){const it=at.source.body;switch(it.charCodeAt(Xe+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw w(at.source,Xe,`Invalid character escape sequence: "${it.slice(Xe,Xe+2)}".`)}function Lt(at,Xe){const it=at.source.body,Ot=it.length;let Pt=at.lineStart,Wt=Xe+3,kt=Wt,Je="";const K=[];for(;Wtthis.parseValueLiteral(Xe),Z.BRACKET_R)})}parseObject(Xe){return this.node(this._lexer.token,{kind:R.h.OBJECT,fields:this.any(Z.BRACE_L,()=>this.parseObjectField(Xe),Z.BRACE_R)})}parseObjectField(Xe){const it=this._lexer.token,Ot=this.parseName();return this.expectToken(Z.COLON),this.node(it,{kind:R.h.OBJECT_FIELD,name:Ot,value:this.parseValueLiteral(Xe)})}parseDirectives(Xe){const it=[];for(;this.peek(Z.AT);)it.push(this.parseDirective(Xe));return it}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(Xe){const it=this._lexer.token;return this.expectToken(Z.AT),this.node(it,{kind:R.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(Xe)})}parseTypeReference(){const Xe=this._lexer.token;let it;if(this.expectOptionalToken(Z.BRACKET_L)){const Ot=this.parseTypeReference();this.expectToken(Z.BRACKET_R),it=this.node(Xe,{kind:R.h.LIST_TYPE,type:Ot})}else it=this.parseNamedType();return this.expectOptionalToken(Z.BANG)?this.node(Xe,{kind:R.h.NON_NULL_TYPE,type:it}):it}parseNamedType(){return this.node(this._lexer.token,{kind:R.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Z.STRING)||this.peek(Z.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("schema");const Ot=this.parseConstDirectives(),Pt=this.many(Z.BRACE_L,this.parseOperationTypeDefinition,Z.BRACE_R);return this.node(Xe,{kind:R.h.SCHEMA_DEFINITION,description:it,directives:Ot,operationTypes:Pt})}parseOperationTypeDefinition(){const Xe=this._lexer.token,it=this.parseOperationType();this.expectToken(Z.COLON);const Ot=this.parseNamedType();return this.node(Xe,{kind:R.h.OPERATION_TYPE_DEFINITION,operation:it,type:Ot})}parseScalarTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("scalar");const Ot=this.parseName(),Pt=this.parseConstDirectives();return this.node(Xe,{kind:R.h.SCALAR_TYPE_DEFINITION,description:it,name:Ot,directives:Pt})}parseObjectTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("type");const Ot=this.parseName(),Pt=this.parseImplementsInterfaces(),Wt=this.parseConstDirectives(),kt=this.parseFieldsDefinition();return this.node(Xe,{kind:R.h.OBJECT_TYPE_DEFINITION,description:it,name:Ot,interfaces:Pt,directives:Wt,fields:kt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Z.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Z.BRACE_L,this.parseFieldDefinition,Z.BRACE_R)}parseFieldDefinition(){const Xe=this._lexer.token,it=this.parseDescription(),Ot=this.parseName(),Pt=this.parseArgumentDefs();this.expectToken(Z.COLON);const Wt=this.parseTypeReference(),kt=this.parseConstDirectives();return this.node(Xe,{kind:R.h.FIELD_DEFINITION,description:it,name:Ot,arguments:Pt,type:Wt,directives:kt})}parseArgumentDefs(){return this.optionalMany(Z.PAREN_L,this.parseInputValueDef,Z.PAREN_R)}parseInputValueDef(){const Xe=this._lexer.token,it=this.parseDescription(),Ot=this.parseName();this.expectToken(Z.COLON);const Pt=this.parseTypeReference();let Wt;this.expectOptionalToken(Z.EQUALS)&&(Wt=this.parseConstValueLiteral());const kt=this.parseConstDirectives();return this.node(Xe,{kind:R.h.INPUT_VALUE_DEFINITION,description:it,name:Ot,type:Pt,defaultValue:Wt,directives:kt})}parseInterfaceTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("interface");const Ot=this.parseName(),Pt=this.parseImplementsInterfaces(),Wt=this.parseConstDirectives(),kt=this.parseFieldsDefinition();return this.node(Xe,{kind:R.h.INTERFACE_TYPE_DEFINITION,description:it,name:Ot,interfaces:Pt,directives:Wt,fields:kt})}parseUnionTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("union");const Ot=this.parseName(),Pt=this.parseConstDirectives(),Wt=this.parseUnionMemberTypes();return this.node(Xe,{kind:R.h.UNION_TYPE_DEFINITION,description:it,name:Ot,directives:Pt,types:Wt})}parseUnionMemberTypes(){return this.expectOptionalToken(Z.EQUALS)?this.delimitedMany(Z.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("enum");const Ot=this.parseName(),Pt=this.parseConstDirectives(),Wt=this.parseEnumValuesDefinition();return this.node(Xe,{kind:R.h.ENUM_TYPE_DEFINITION,description:it,name:Ot,directives:Pt,values:Wt})}parseEnumValuesDefinition(){return this.optionalMany(Z.BRACE_L,this.parseEnumValueDefinition,Z.BRACE_R)}parseEnumValueDefinition(){const Xe=this._lexer.token,it=this.parseDescription(),Ot=this.parseEnumValueName(),Pt=this.parseConstDirectives();return this.node(Xe,{kind:R.h.ENUM_VALUE_DEFINITION,description:it,name:Ot,directives:Pt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw w(this._lexer.source,this._lexer.token.start,`${Jt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("input");const Ot=this.parseName(),Pt=this.parseConstDirectives(),Wt=this.parseInputFieldsDefinition();return this.node(Xe,{kind:R.h.INPUT_OBJECT_TYPE_DEFINITION,description:it,name:Ot,directives:Pt,fields:Wt})}parseInputFieldsDefinition(){return this.optionalMany(Z.BRACE_L,this.parseInputValueDef,Z.BRACE_R)}parseTypeSystemExtension(){const Xe=this._lexer.lookahead();if(Xe.kind===Z.NAME)switch(Xe.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(Xe)}parseSchemaExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const it=this.parseConstDirectives(),Ot=this.optionalMany(Z.BRACE_L,this.parseOperationTypeDefinition,Z.BRACE_R);if(0===it.length&&0===Ot.length)throw this.unexpected();return this.node(Xe,{kind:R.h.SCHEMA_EXTENSION,directives:it,operationTypes:Ot})}parseScalarTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const it=this.parseName(),Ot=this.parseConstDirectives();if(0===Ot.length)throw this.unexpected();return this.node(Xe,{kind:R.h.SCALAR_TYPE_EXTENSION,name:it,directives:Ot})}parseObjectTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const it=this.parseName(),Ot=this.parseImplementsInterfaces(),Pt=this.parseConstDirectives(),Wt=this.parseFieldsDefinition();if(0===Ot.length&&0===Pt.length&&0===Wt.length)throw this.unexpected();return this.node(Xe,{kind:R.h.OBJECT_TYPE_EXTENSION,name:it,interfaces:Ot,directives:Pt,fields:Wt})}parseInterfaceTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const it=this.parseName(),Ot=this.parseImplementsInterfaces(),Pt=this.parseConstDirectives(),Wt=this.parseFieldsDefinition();if(0===Ot.length&&0===Pt.length&&0===Wt.length)throw this.unexpected();return this.node(Xe,{kind:R.h.INTERFACE_TYPE_EXTENSION,name:it,interfaces:Ot,directives:Pt,fields:Wt})}parseUnionTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const it=this.parseName(),Ot=this.parseConstDirectives(),Pt=this.parseUnionMemberTypes();if(0===Ot.length&&0===Pt.length)throw this.unexpected();return this.node(Xe,{kind:R.h.UNION_TYPE_EXTENSION,name:it,directives:Ot,types:Pt})}parseEnumTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const it=this.parseName(),Ot=this.parseConstDirectives(),Pt=this.parseEnumValuesDefinition();if(0===Ot.length&&0===Pt.length)throw this.unexpected();return this.node(Xe,{kind:R.h.ENUM_TYPE_EXTENSION,name:it,directives:Ot,values:Pt})}parseInputObjectTypeExtension(){const Xe=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const it=this.parseName(),Ot=this.parseConstDirectives(),Pt=this.parseInputFieldsDefinition();if(0===Ot.length&&0===Pt.length)throw this.unexpected();return this.node(Xe,{kind:R.h.INPUT_OBJECT_TYPE_EXTENSION,name:it,directives:Ot,fields:Pt})}parseDirectiveDefinition(){const Xe=this._lexer.token,it=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Z.AT);const Ot=this.parseName(),Pt=this.parseArgumentDefs(),Wt=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const kt=this.parseDirectiveLocations();return this.node(Xe,{kind:R.h.DIRECTIVE_DEFINITION,description:it,name:Ot,arguments:Pt,repeatable:Wt,locations:kt})}parseDirectiveLocations(){return this.delimitedMany(Z.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const Xe=this._lexer.token,it=this.parseName();if(Object.prototype.hasOwnProperty.call(e,it.value))return it;throw this.unexpected(Xe)}node(Xe,it){return!0!==this._options.noLocation&&(it.loc=new M.Ye(Xe,this._lexer.lastToken,this._lexer.source)),it}peek(Xe){return this._lexer.token.kind===Xe}expectToken(Xe){const it=this._lexer.token;if(it.kind===Xe)return this.advanceLexer(),it;throw w(this._lexer.source,it.start,`Expected ${_n(Xe)}, found ${Jt(it)}.`)}expectOptionalToken(Xe){return this._lexer.token.kind===Xe&&(this.advanceLexer(),!0)}expectKeyword(Xe){const it=this._lexer.token;if(it.kind!==Z.NAME||it.value!==Xe)throw w(this._lexer.source,it.start,`Expected "${Xe}", found ${Jt(it)}.`);this.advanceLexer()}expectOptionalKeyword(Xe){const it=this._lexer.token;return it.kind===Z.NAME&&it.value===Xe&&(this.advanceLexer(),!0)}unexpected(Xe){const it=Xe??this._lexer.token;return w(this._lexer.source,it.start,`Unexpected ${Jt(it)}.`)}any(Xe,it,Ot){this.expectToken(Xe);const Pt=[];for(;!this.expectOptionalToken(Ot);)Pt.push(it.call(this));return Pt}optionalMany(Xe,it,Ot){if(this.expectOptionalToken(Xe)){const Pt=[];do{Pt.push(it.call(this))}while(!this.expectOptionalToken(Ot));return Pt}return[]}many(Xe,it,Ot){this.expectToken(Xe);const Pt=[];do{Pt.push(it.call(this))}while(!this.expectOptionalToken(Ot));return Pt}delimitedMany(Xe,it){this.expectOptionalToken(Xe);const Ot=[];do{Ot.push(it.call(this))}while(this.expectOptionalToken(Xe));return Ot}advanceLexer(){const{maxTokens:Xe}=this._options,it=this._lexer.advance();if(void 0!==Xe&&it.kind!==Z.EOF&&(++this._tokenCounter,this._tokenCounter>Xe))throw w(this._lexer.source,it.start,`Document contains more that ${Xe} tokens. Parsing aborted.`)}}function Jt(at){const Xe=at.value;return _n(at.kind)+(null!=Xe?` "${Xe}"`:"")}function _n(at){return function V(at){return at===Z.BANG||at===Z.DOLLAR||at===Z.AMP||at===Z.PAREN_L||at===Z.PAREN_R||at===Z.SPREAD||at===Z.COLON||at===Z.EQUALS||at===Z.AT||at===Z.BRACKET_L||at===Z.BRACKET_R||at===Z.BRACE_L||at===Z.PIPE||at===Z.BRACE_R}(at)?`"${at}"`:at}var On=new Map,cn=new Map,wt=!0,Ve=!1;function Be(at){return at.replace(/[\s,]+/g," ").trim()}function De(at){var Xe=Be(at);if(!On.has(Xe)){var it=function rt(at,Xe){return new Bt(at,Xe).parseDocument()}(at,{experimentalFragmentVariables:Ve,allowLegacyFragmentVariables:Ve});if(!it||"Document"!==it.kind)throw new Error("Not a valid GraphQL document.");On.set(Xe,function Ne(at){var Xe=new Set(at.definitions);Xe.forEach(function(Ot){Ot.loc&&delete Ot.loc,Object.keys(Ot).forEach(function(Pt){var Wt=Ot[Pt];Wt&&"object"==typeof Wt&&Xe.add(Wt)})});var it=at.loc;return it&&(delete it.startToken,delete it.endToken),at}(function je(at){var Xe=new Set,it=[];return at.definitions.forEach(function(Ot){if("FragmentDefinition"===Ot.kind){var Pt=Ot.name.value,Wt=function He(at){return Be(at.source.body.substring(at.start,at.end))}(Ot.loc),kt=cn.get(Pt);kt&&!kt.has(Wt)?wt&&console.warn("Warning: fragment with name "+Pt+" 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"):kt||cn.set(Pt,kt=new Set),kt.add(Wt),Xe.has(Wt)||(Xe.add(Wt),it.push(Ot))}else it.push(Ot)}),(0,t.pi)((0,t.pi)({},at),{definitions:it})}(it)))}return On.get(Xe)}function ie(at){for(var Xe=[],it=1;it{a.d(be,{dP:()=>yt,re:()=>Sn});var t=function(){return Object.create(null)},i=Array.prototype,v=i.forEach,d=i.slice,s=function(){function rt(Ye,st){void 0===Ye&&(Ye=!0),void 0===st&&(st=t),this.weakness=Ye,this.makeData=st}return rt.prototype.lookup=function(){for(var Ye=[],st=0;stthis.max;)this.delete(this.oldest.key)},rt.prototype.delete=function(Ye){var st=this.map.get(Ye);return!!st&&(st===this.newest&&(this.newest=st.older),st===this.oldest&&(this.oldest=st.newer),st.newer&&(st.newer.older=st.older),st.older&&(st.older.newer=st.newer),this.map.delete(Ye),this.dispose(st.value,Ye),!0)},rt}(),S=new j.g7,k=Object.prototype.hasOwnProperty,U=void 0===(F=Array.from)?function(rt){var Ye=[];return rt.forEach(function(st){return Ye.push(st)}),Ye}:F;function w(rt){var Ye=rt.unsubscribe;"function"==typeof Ye&&(rt.unsubscribe=void 0,Ye())}var M=[],e=100;function R(rt,Ye){if(!rt)throw new Error(Ye||"assertion failure")}function me(rt){switch(rt.length){case 0:throw new Error("unknown value");case 1:return rt[0];case 2:throw rt[1]}}var A=function(){function rt(Ye){this.fn=Ye,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++rt.count}return rt.prototype.peek=function(){if(1===this.value.length&&!D(this))return V(this),this.value[0]},rt.prototype.recompute=function(Ye){return R(!this.recomputing,"already recomputing"),V(this),D(this)?function O(rt,Ye){return ke(rt),S.withValue(rt,P,[rt,Ye]),function Ft(rt,Ye){if("function"==typeof rt.subscribe)try{w(rt),rt.unsubscribe=rt.subscribe.apply(null,Ye)}catch{return rt.setDirty(),!1}return!0}(rt,Ye)&&function re(rt){rt.dirty=!1,!D(rt)&&Q(rt)}(rt),me(rt.value)}(this,Ye):me(this.value)},rt.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ae(this),w(this))},rt.prototype.dispose=function(){var Ye=this;this.setDirty(),ke(this),fe(this,function(st,Ze){st.setDirty(),Rt(st,Ye)})},rt.prototype.forget=function(){this.dispose()},rt.prototype.dependOn=function(Ye){Ye.add(this),this.deps||(this.deps=M.pop()||new Set),this.deps.add(Ye)},rt.prototype.forgetDeps=function(){var Ye=this;this.deps&&(U(this.deps).forEach(function(st){return st.delete(Ye)}),this.deps.clear(),M.push(this.deps),this.deps=null)},rt.count=0,rt}();function V(rt){var Ye=S.getValue();if(Ye)return rt.parents.add(Ye),Ye.childValues.has(rt)||Ye.childValues.set(rt,[]),D(rt)?ue(Ye,rt):ge(Ye,rt),Ye}function P(rt,Ye){rt.recomputing=!0,rt.value.length=0;try{rt.value[0]=rt.fn.apply(null,Ye)}catch(st){rt.value[1]=st}rt.recomputing=!1}function D(rt){return rt.dirty||!(!rt.dirtyChildren||!rt.dirtyChildren.size)}function ae(rt){fe(rt,ue)}function Q(rt){fe(rt,ge)}function fe(rt,Ye){var st=rt.parents.size;if(st)for(var Ze=U(rt.parents),Bt=0;Bt0&&st===Ye.length&&rt[st-1]===Ye[st-1]}(st,Ye.value)||rt.setDirty(),Se(rt,Ye),!D(rt)&&Q(rt)}function Se(rt,Ye){var st=rt.dirtyChildren;st&&(st.delete(Ye),0===st.size&&(M.length0&&rt.childValues.forEach(function(Ye,st){Rt(rt,st)}),rt.forgetDeps(),R(null===rt.dirtyChildren)}function Rt(rt,Ye){Ye.parents.delete(rt),rt.childValues.delete(Ye),Se(rt,Ye)}var Mt={setDirty:!0,dispose:!0,forget:!0};function yt(rt){var Ye=new Map,st=rt&&rt.subscribe;function Ze(Bt){var Jt=S.getValue();if(Jt){var _n=Ye.get(Bt);_n||Ye.set(Bt,_n=new Set),Jt.dependOn(_n),"function"==typeof st&&(w(_n),_n.unsubscribe=st(Bt))}}return Ze.dirty=function(Jt,_n){var On=Ye.get(Jt);if(On){var cn=_n&&k.call(Mt,_n)?_n:"setDirty";U(On).forEach(function(wt){return wt[cn]()}),Ye.delete(Jt),w(On)}},Ze}function Ct(){var rt=new s("function"==typeof WeakMap);return function(){return rt.lookupArray(arguments)}}Ct();var rn=new Set;function Sn(rt,Ye){void 0===Ye&&(Ye=Object.create(null));var st=new I(Ye.max||Math.pow(2,16),function(wt){return wt.dispose()}),Ze=Ye.keyArgs,Bt=Ye.makeCacheKey||Ct(),Jt=function(){var wt=Bt.apply(null,Ze?Ze.apply(null,arguments):arguments);if(void 0===wt)return rt.apply(null,arguments);var Ve=st.get(wt);Ve||(st.set(wt,Ve=new A(rt)),Ve.subscribe=Ye.subscribe,Ve.forget=function(){return st.delete(wt)});var Be=Ve.recompute(Array.prototype.slice.call(arguments));return st.set(wt,Ve),rn.add(st),S.hasValue()||(rn.forEach(function(He){return He.clean()}),rn.clear()),Be};function _n(wt){var Ve=st.get(wt);Ve&&Ve.setDirty()}function On(wt){var Ve=st.get(wt);if(Ve)return Ve.peek()}function cn(wt){return st.delete(wt)}return Object.defineProperty(Jt,"size",{get:function(){return st.map.size},configurable:!1,enumerable:!1}),Jt.dirtyKey=_n,Jt.dirty=function(){_n(Bt.apply(null,arguments))},Jt.peekKey=On,Jt.peek=function(){return On(Bt.apply(null,arguments))},Jt.forgetKey=cn,Jt.forget=function(){return cn(Bt.apply(null,arguments))},Jt.makeCacheKey=Bt,Jt.getKey=Ze?function(){return Bt.apply(null,Ze.apply(null,arguments))}:Bt,Object.freeze(Jt)}},4223:(It,be,a)=>{a.d(be,{j:()=>i});var t=a(2185);function i(...v){return d=>(0,t.j)(...v)(d)}},5676:(It,be,a)=>{function t(j){return null!=j}a.d(be,{ep:()=>t,lm:()=>i});const i=t},5619:(It,be,a)=>{a.d(be,{X:()=>i});var t=a(8645);class i extends t.x{constructor(d){super(),this._value=d}get value(){return this.getValue()}_subscribe(d){const s=super._subscribe(d);return!s.closed&&d.next(this._value),s}getValue(){const{hasError:d,thrownError:s,_value:L}=this;if(d)throw s;return this._throwIfClosed(),L}next(d){super.next(this._value=d)}}},5592:(It,be,a)=>{a.d(be,{y:()=>$});var t=a(305),i=a(7394),v=a(4850),d=a(8407),s=a(2653),L=a(4674),j=a(1441);let $=(()=>{class k{constructor(w){w&&(this._subscribe=w)}lift(w){const M=new k;return M.source=this,M.operator=w,M}subscribe(w,M,e){const R=function F(k){return k&&k instanceof t.Lv||function S(k){return k&&(0,L.m)(k.next)&&(0,L.m)(k.error)&&(0,L.m)(k.complete)}(k)&&(0,i.Nn)(k)}(w)?w:new t.Hp(w,M,e);return(0,j.x)(()=>{const{operator:pe,source:me}=this;R.add(pe?pe.call(R,me):me?this._subscribe(R):this._trySubscribe(R))}),R}_trySubscribe(w){try{return this._subscribe(w)}catch(M){w.error(M)}}forEach(w,M){return new(M=I(M))((e,R)=>{const pe=new t.Hp({next:me=>{try{w(me)}catch(Z){R(Z),pe.unsubscribe()}},error:R,complete:e});this.subscribe(pe)})}_subscribe(w){var M;return null===(M=this.source)||void 0===M?void 0:M.subscribe(w)}[v.L](){return this}pipe(...w){return(0,d.U)(w)(this)}toPromise(w){return new(w=I(w))((M,e)=>{let R;this.subscribe(pe=>R=pe,pe=>e(pe),()=>M(R))})}}return k.create=U=>new k(U),k})();function I(k){var U;return null!==(U=k??s.config.Promise)&&void 0!==U?U:Promise}},7328:(It,be,a)=>{a.d(be,{t:()=>v});var t=a(8645),i=a(4552);class v extends t.x{constructor(s=1/0,L=1/0,j=i.l){super(),this._bufferSize=s,this._windowTime=L,this._timestampProvider=j,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=L===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,L)}next(s){const{isStopped:L,_buffer:j,_infiniteTimeWindow:$,_timestampProvider:I,_windowTime:S}=this;L||(j.push(s),!$&&j.push(I.now()+S)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const L=this._innerSubscribe(s),{_infiniteTimeWindow:j,_buffer:$}=this,I=$.slice();for(let S=0;S{a.d(be,{x:()=>j});var t=a(5592),i=a(7394);const d=(0,a(2306).d)(I=>function(){I(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=a(9039),L=a(1441);let j=(()=>{class I extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(F){const k=new $(this,this);return k.operator=F,k}_throwIfClosed(){if(this.closed)throw new d}next(F){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const k of this.currentObservers)k.next(F)}})}error(F){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=F;const{observers:k}=this;for(;k.length;)k.shift().error(F)}})}complete(){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:F}=this;for(;F.length;)F.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var F;return(null===(F=this.observers)||void 0===F?void 0:F.length)>0}_trySubscribe(F){return this._throwIfClosed(),super._trySubscribe(F)}_subscribe(F){return this._throwIfClosed(),this._checkFinalizedStatuses(F),this._innerSubscribe(F)}_innerSubscribe(F){const{hasError:k,isStopped:U,observers:w}=this;return k||U?i.Lc:(this.currentObservers=null,w.push(F),new i.w0(()=>{this.currentObservers=null,(0,s.P)(w,F)}))}_checkFinalizedStatuses(F){const{hasError:k,thrownError:U,isStopped:w}=this;k?F.error(U):w&&F.complete()}asObservable(){const F=new t.y;return F.source=this,F}}return I.create=(S,F)=>new $(S,F),I})();class $ extends j{constructor(S,F){super(),this.destination=S,this.source=F}next(S){var F,k;null===(k=null===(F=this.destination)||void 0===F?void 0:F.next)||void 0===k||k.call(F,S)}error(S){var F,k;null===(k=null===(F=this.destination)||void 0===F?void 0:F.error)||void 0===k||k.call(F,S)}complete(){var S,F;null===(F=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===F||F.call(S)}_subscribe(S){var F,k;return null!==(k=null===(F=this.source)||void 0===F?void 0:F.subscribe(S))&&void 0!==k?k:i.Lc}}},305:(It,be,a)=>{a.d(be,{Hp:()=>e,Lv:()=>k});var t=a(4674),i=a(7394),v=a(2653),d=a(3894),s=a(2420);const L=I("C",void 0,void 0);function I(A,V,O){return{kind:A,value:V,error:O}}var S=a(7599),F=a(1441);class k extends i.w0{constructor(V){super(),this.isStopped=!1,V?(this.destination=V,(0,i.Nn)(V)&&V.add(this)):this.destination=Z}static create(V,O,P){return new e(V,O,P)}next(V){this.isStopped?me(function $(A){return I("N",A,void 0)}(V),this):this._next(V)}error(V){this.isStopped?me(function j(A){return I("E",void 0,A)}(V),this):(this.isStopped=!0,this._error(V))}complete(){this.isStopped?me(L,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(V){this.destination.next(V)}_error(V){try{this.destination.error(V)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const U=Function.prototype.bind;function w(A,V){return U.call(A,V)}class M{constructor(V){this.partialObserver=V}next(V){const{partialObserver:O}=this;if(O.next)try{O.next(V)}catch(P){R(P)}}error(V){const{partialObserver:O}=this;if(O.error)try{O.error(V)}catch(P){R(P)}else R(V)}complete(){const{partialObserver:V}=this;if(V.complete)try{V.complete()}catch(O){R(O)}}}class e extends k{constructor(V,O,P){let D;if(super(),(0,t.m)(V)||!V)D={next:V??void 0,error:O??void 0,complete:P??void 0};else{let re;this&&v.config.useDeprecatedNextContext?(re=Object.create(V),re.unsubscribe=()=>this.unsubscribe(),D={next:V.next&&w(V.next,re),error:V.error&&w(V.error,re),complete:V.complete&&w(V.complete,re)}):D=V}this.destination=new M(D)}}function R(A){v.config.useDeprecatedSynchronousErrorHandling?(0,F.O)(A):(0,d.h)(A)}function me(A,V){const{onStoppedNotification:O}=v.config;O&&S.z.setTimeout(()=>O(A,V))}const Z={closed:!0,next:s.Z,error:function pe(A){throw A},complete:s.Z}},7394:(It,be,a)=>{a.d(be,{Lc:()=>L,w0:()=>s,Nn:()=>j});var t=a(4674);const v=(0,a(2306).d)(I=>function(F){I(this),this.message=F?`${F.length} errors occurred during unsubscription:\n${F.map((k,U)=>`${U+1}) ${k.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=F});var d=a(9039);class s{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:F}=this;if(F)if(this._parentage=null,Array.isArray(F))for(const w of F)w.remove(this);else F.remove(this);const{initialTeardown:k}=this;if((0,t.m)(k))try{k()}catch(w){S=w instanceof v?w.errors:[w]}const{_finalizers:U}=this;if(U){this._finalizers=null;for(const w of U)try{$(w)}catch(M){S=S??[],M instanceof v?S=[...S,...M.errors]:S.push(M)}}if(S)throw new v(S)}}add(S){var F;if(S&&S!==this)if(this.closed)$(S);else{if(S instanceof s){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(F=this._finalizers)&&void 0!==F?F:[]).push(S)}}_hasParent(S){const{_parentage:F}=this;return F===S||Array.isArray(F)&&F.includes(S)}_addParent(S){const{_parentage:F}=this;this._parentage=Array.isArray(F)?(F.push(S),F):F?[F,S]:S}_removeParent(S){const{_parentage:F}=this;F===S?this._parentage=null:Array.isArray(F)&&(0,d.P)(F,S)}remove(S){const{_finalizers:F}=this;F&&(0,d.P)(F,S),S instanceof s&&S._removeParent(this)}}s.EMPTY=(()=>{const I=new s;return I.closed=!0,I})();const L=s.EMPTY;function j(I){return I instanceof s||I&&"closed"in I&&(0,t.m)(I.remove)&&(0,t.m)(I.add)&&(0,t.m)(I.unsubscribe)}function $(I){(0,t.m)(I)?I():I.unsubscribe()}},2653:(It,be,a)=>{a.d(be,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(It,be,a)=>{a.d(be,{c:()=>L});var t=a(5592),i=a(7394),v=a(6196),d=a(8251),s=a(9360);class L extends t.y{constructor($,I){super(),this.source=$,this.subjectFactory=I,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)($)&&(this.lift=$.lift)}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:$}=this;this._subject=this._connection=null,$?.unsubscribe()}connect(){let $=this._connection;if(!$){$=this._connection=new i.w0;const I=this.getSubject();$.add(this.source.subscribe((0,d.x)(I,void 0,()=>{this._teardown(),I.complete()},S=>{this._teardown(),I.error(S)},()=>this._teardown()))),$.closed&&(this._connection=null,$=i.w0.EMPTY)}return $}refCount(){return(0,v.x)()(this)}}},2572:(It,be,a)=>{a.d(be,{a:()=>S});var t=a(5592),i=a(7453),v=a(9666),d=a(2737),s=a(7400),L=a(9940),j=a(2714),$=a(8251),I=a(7103);function S(...U){const w=(0,L.yG)(U),M=(0,L.jO)(U),{args:e,keys:R}=(0,i.D)(U);if(0===e.length)return(0,v.D)([],w);const pe=new t.y(function F(U,w,M=d.y){return e=>{k(w,()=>{const{length:R}=U,pe=new Array(R);let me=R,Z=R;for(let A=0;A{const V=(0,v.D)(U[A],w);let O=!1;V.subscribe((0,$.x)(e,P=>{pe[A]=P,O||(O=!0,Z--),Z||e.next(M(pe.slice()))},()=>{--me||e.complete()}))},e)},e)}}(e,w,R?me=>(0,j.n)(R,me):d.y));return M?pe.pipe((0,s.Z)(M)):pe}function k(U,w,M){U?(0,I.f)(M,U,w):w()}},5211:(It,be,a)=>{a.d(be,{z:()=>s});var t=a(7537),v=a(9940),d=a(9666);function s(...L){return function i(){return(0,t.J)(1)}()((0,d.D)(L,(0,v.yG)(L)))}},4911:(It,be,a)=>{a.d(be,{P:()=>v});var t=a(5592),i=a(4829);function v(d){return new t.y(s=>{(0,i.Xf)(d()).subscribe(s)})}},6232:(It,be,a)=>{a.d(be,{E:()=>i});const i=new(a(5592).y)(s=>s.complete())},9315:(It,be,a)=>{a.d(be,{D:()=>$});var t=a(5592),i=a(7453),v=a(4829),d=a(9940),s=a(8251),L=a(7400),j=a(2714);function $(...I){const S=(0,d.jO)(I),{args:F,keys:k}=(0,i.D)(I),U=new t.y(w=>{const{length:M}=F;if(!M)return void w.complete();const e=new Array(M);let R=M,pe=M;for(let me=0;me{Z||(Z=!0,pe--),e[me]=A},()=>R--,void 0,()=>{(!R||!Z)&&(pe||w.next(k?(0,j.n)(k,e):e),w.complete())}))}});return S?U.pipe((0,L.Z)(S)):U}},9666:(It,be,a)=>{a.d(be,{D:()=>O});var t=a(4829),i=a(3093),v=a(9360);function d(P,D=0){return(0,v.e)((re,ae)=>{ae.add(P.schedule(()=>re.subscribe(ae),D))})}var j=a(5592),I=a(4971),S=a(4674),F=a(7103);function U(P,D){if(!P)throw new Error("Iterable cannot be null");return new j.y(re=>{(0,F.f)(re,D,()=>{const ae=P[Symbol.asyncIterator]();(0,F.f)(re,D,()=>{ae.next().then(Q=>{Q.done?re.complete():re.next(Q.value)})},0,!0)})})}var w=a(8382),M=a(4026),e=a(4266),R=a(3664),pe=a(5726),me=a(9853),Z=a(541);function O(P,D){return D?function V(P,D){if(null!=P){if((0,w.c)(P))return function s(P,D){return(0,t.Xf)(P).pipe(d(D),(0,i.Q)(D))}(P,D);if((0,e.z)(P))return function $(P,D){return new j.y(re=>{let ae=0;return D.schedule(function(){ae===P.length?re.complete():(re.next(P[ae++]),re.closed||this.schedule())})})}(P,D);if((0,M.t)(P))return function L(P,D){return(0,t.Xf)(P).pipe(d(D),(0,i.Q)(D))}(P,D);if((0,pe.D)(P))return U(P,D);if((0,R.T)(P))return function k(P,D){return new j.y(re=>{let ae;return(0,F.f)(re,D,()=>{ae=P[I.h](),(0,F.f)(re,D,()=>{let Q,fe;try{({value:Q,done:fe}=ae.next())}catch(ue){return void re.error(ue)}fe?re.complete():re.next(Q)},0,!0)}),()=>(0,S.m)(ae?.return)&&ae.return()})}(P,D);if((0,Z.L)(P))return function A(P,D){return U((0,Z.Q)(P),D)}(P,D)}throw(0,me.z)(P)}(P,D):(0,t.Xf)(P)}},2438:(It,be,a)=>{a.d(be,{R:()=>S});var t=a(4829),i=a(5592),v=a(1631),d=a(4266),s=a(4674),L=a(7400);const j=["addListener","removeListener"],$=["addEventListener","removeEventListener"],I=["on","off"];function S(M,e,R,pe){if((0,s.m)(R)&&(pe=R,R=void 0),pe)return S(M,e,R).pipe((0,L.Z)(pe));const[me,Z]=function w(M){return(0,s.m)(M.addEventListener)&&(0,s.m)(M.removeEventListener)}(M)?$.map(A=>V=>M[A](e,V,R)):function k(M){return(0,s.m)(M.addListener)&&(0,s.m)(M.removeListener)}(M)?j.map(F(M,e)):function U(M){return(0,s.m)(M.on)&&(0,s.m)(M.off)}(M)?I.map(F(M,e)):[];if(!me&&(0,d.z)(M))return(0,v.z)(A=>S(A,e,R))((0,t.Xf)(M));if(!me)throw new TypeError("Invalid event target");return new i.y(A=>{const V=(...O)=>A.next(1Z(V)})}function F(M,e){return R=>pe=>M[R](e,pe)}},2428:(It,be,a)=>{a.d(be,{s:()=>i});var t=a(4911);function i(v,d,s){return(0,t.P)(()=>v()?d:s)}},4829:(It,be,a)=>{a.d(be,{Xf:()=>U});var t=a(655),i=a(4266),v=a(4026),d=a(5592),s=a(8382),L=a(5726),j=a(9853),$=a(3664),I=a(541),S=a(4674),F=a(3894),k=a(4850);function U(A){if(A instanceof d.y)return A;if(null!=A){if((0,s.c)(A))return function w(A){return new d.y(V=>{const O=A[k.L]();if((0,S.m)(O.subscribe))return O.subscribe(V);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(A);if((0,i.z)(A))return function M(A){return new d.y(V=>{for(let O=0;O{A.then(O=>{V.closed||(V.next(O),V.complete())},O=>V.error(O)).then(null,F.h)})}(A);if((0,L.D)(A))return pe(A);if((0,$.T)(A))return function R(A){return new d.y(V=>{for(const O of A)if(V.next(O),V.closed)return;V.complete()})}(A);if((0,I.L)(A))return function me(A){return pe((0,I.Q)(A))}(A)}throw(0,j.z)(A)}function pe(A){return new d.y(V=>{(function Z(A,V){var O,P,D,re;return(0,t.mG)(this,void 0,void 0,function*(){try{for(O=(0,t.KL)(A);!(P=yield O.next()).done;)if(V.next(P.value),V.closed)return}catch(ae){D={error:ae}}finally{try{P&&!P.done&&(re=O.return)&&(yield re.call(O))}finally{if(D)throw D.error}}V.complete()})})(A,V).catch(O=>V.error(O))})}},1687:(It,be,a)=>{a.d(be,{F:()=>v});var t=a(6321),i=a(4825);function v(d=0,s=t.z){return d<0&&(d=0),(0,i.H)(d,d,s)}},3019:(It,be,a)=>{a.d(be,{T:()=>L});var t=a(7537),i=a(4829),v=a(6232),d=a(9940),s=a(9666);function L(...j){const $=(0,d.yG)(j),I=(0,d._6)(j,1/0),S=j;return S.length?1===S.length?(0,i.Xf)(S[0]):(0,t.J)(I)((0,s.D)(S,$)):v.E}},2096:(It,be,a)=>{a.d(be,{of:()=>v});var t=a(9940),i=a(9666);function v(...d){const s=(0,t.yG)(d);return(0,i.D)(d,s)}},8504:(It,be,a)=>{a.d(be,{_:()=>v});var t=a(5592),i=a(4674);function v(d,s){const L=(0,i.m)(d)?d:()=>d,j=$=>$.error(L());return new t.y(s?$=>s.schedule(j,0,$):j)}},4825:(It,be,a)=>{a.d(be,{H:()=>s});var t=a(5592),i=a(6321),v=a(671);function s(L=0,j,$=i.P){let I=-1;return null!=j&&((0,v.K)(j)?$=j:I=j),new t.y(S=>{let F=function d(L){return L instanceof Date&&!isNaN(L)}(L)?+L-$.now():L;F<0&&(F=0);let k=0;return $.schedule(function(){S.closed||(S.next(k++),0<=I?this.schedule(void 0,I):S.complete())},F)})}},8251:(It,be,a)=>{a.d(be,{x:()=>i});var t=a(305);function i(d,s,L,j,$){return new v(d,s,L,j,$)}class v extends t.Lv{constructor(s,L,j,$,I,S){super(s),this.onFinalize=I,this.shouldUnsubscribe=S,this._next=L?function(F){try{L(F)}catch(k){s.error(k)}}:super._next,this._error=$?function(F){try{$(F)}catch(k){s.error(k)}finally{this.unsubscribe()}}:super._error,this._complete=j?function(){try{j()}catch(F){s.error(F)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:L}=this;super.unsubscribe(),!L&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},9028:(It,be,a)=>{a.d(be,{e:()=>j});var t=a(6321),i=a(9360),v=a(4829),d=a(8251),L=a(4825);function j($,I=t.z){return function s($){return(0,i.e)((I,S)=>{let F=!1,k=null,U=null,w=!1;const M=()=>{if(U?.unsubscribe(),U=null,F){F=!1;const R=k;k=null,S.next(R)}w&&S.complete()},e=()=>{U=null,w&&S.complete()};I.subscribe((0,d.x)(S,R=>{F=!0,k=R,U||(0,v.Xf)($(R)).subscribe(U=(0,d.x)(S,M,e))},()=>{w=!0,(!F||!U||U.closed)&&S.complete()}))})}(()=>(0,L.H)($,I))}},6306:(It,be,a)=>{a.d(be,{K:()=>d});var t=a(4829),i=a(8251),v=a(9360);function d(s){return(0,v.e)((L,j)=>{let S,$=null,I=!1;$=L.subscribe((0,i.x)(j,void 0,void 0,F=>{S=(0,t.Xf)(s(F,d(s)(L))),$?($.unsubscribe(),$=null,S.subscribe(j)):I=!0})),I&&($.unsubscribe(),$=null,S.subscribe(j))})}},6328:(It,be,a)=>{a.d(be,{b:()=>v});var t=a(1631),i=a(4674);function v(d,s){return(0,i.m)(s)?(0,t.z)(d,s,1):(0,t.z)(d,1)}},3620:(It,be,a)=>{a.d(be,{b:()=>d});var t=a(6321),i=a(9360),v=a(8251);function d(s,L=t.z){return(0,i.e)((j,$)=>{let I=null,S=null,F=null;const k=()=>{if(I){I.unsubscribe(),I=null;const w=S;S=null,$.next(w)}};function U(){const w=F+s,M=L.now();if(M{S=w,F=L.now(),I||(I=L.schedule(U,s),$.add(I))},()=>{k(),$.complete()},void 0,()=>{S=I=null}))})}},3572:(It,be,a)=>{a.d(be,{d:()=>v});var t=a(9360),i=a(8251);function v(d){return(0,t.e)((s,L)=>{let j=!1;s.subscribe((0,i.x)(L,$=>{j=!0,L.next($)},()=>{j||L.next(d),L.complete()}))})}},5177:(It,be,a)=>{a.d(be,{g:()=>U});var t=a(6321),i=a(5211),v=a(8180),d=a(9360),s=a(8251),L=a(2420),$=a(975),I=a(1631),S=a(4829);function F(w,M){return M?e=>(0,i.z)(M.pipe((0,v.q)(1),function j(){return(0,d.e)((w,M)=>{w.subscribe((0,s.x)(M,L.Z))})}()),e.pipe(F(w))):(0,I.z)((e,R)=>(0,S.Xf)(w(e,R)).pipe((0,v.q)(1),(0,$.h)(e)))}var k=a(4825);function U(w,M=t.z){const e=(0,k.H)(w,M);return F(()=>e)}},3997:(It,be,a)=>{a.d(be,{x:()=>d});var t=a(2737),i=a(9360),v=a(8251);function d(L,j=t.y){return L=L??s,(0,i.e)(($,I)=>{let S,F=!0;$.subscribe((0,v.x)(I,k=>{const U=j(k);(F||!L(S,U))&&(F=!1,S=U,I.next(k))}))})}function s(L,j){return L===j}},2181:(It,be,a)=>{a.d(be,{h:()=>v});var t=a(9360),i=a(8251);function v(d,s){return(0,t.e)((L,j)=>{let $=0;L.subscribe((0,i.x)(j,I=>d.call(s,I,$++)&&j.next(I)))})}},4716:(It,be,a)=>{a.d(be,{x:()=>i});var t=a(9360);function i(v){return(0,t.e)((d,s)=>{try{d.subscribe(s)}finally{s.add(v)}})}},1374:(It,be,a)=>{a.d(be,{P:()=>j});var t=a(6973),i=a(2181),v=a(8180),d=a(3572),s=a(3026),L=a(2737);function j($,I){const S=arguments.length>=2;return F=>F.pipe($?(0,i.h)((k,U)=>$(k,U,F)):L.y,(0,v.q)(1),S?(0,d.d)(I):(0,s.T)(()=>new t.K))}},7398:(It,be,a)=>{a.d(be,{U:()=>v});var t=a(9360),i=a(8251);function v(d,s){return(0,t.e)((L,j)=>{let $=0;L.subscribe((0,i.x)(j,I=>{j.next(d.call(s,I,$++))}))})}},975:(It,be,a)=>{a.d(be,{h:()=>i});var t=a(7398);function i(v){return(0,t.U)(()=>v)}},7537:(It,be,a)=>{a.d(be,{J:()=>v});var t=a(1631),i=a(2737);function v(d=1/0){return(0,t.z)(i.y,d)}},1631:(It,be,a)=>{a.d(be,{z:()=>$});var t=a(7398),i=a(4829),v=a(9360),d=a(7103),s=a(8251),j=a(4674);function $(I,S,F=1/0){return(0,j.m)(S)?$((k,U)=>(0,t.U)((w,M)=>S(k,w,U,M))((0,i.Xf)(I(k,U))),F):("number"==typeof S&&(F=S),(0,v.e)((k,U)=>function L(I,S,F,k,U,w,M,e){const R=[];let pe=0,me=0,Z=!1;const A=()=>{Z&&!R.length&&!pe&&S.complete()},V=P=>pe{w&&S.next(P),pe++;let D=!1;(0,i.Xf)(F(P,me++)).subscribe((0,s.x)(S,re=>{U?.(re),w?V(re):S.next(re)},()=>{D=!0},void 0,()=>{if(D)try{for(pe--;R.length&&peO(re)):O(re)}A()}catch(re){S.error(re)}}))};return I.subscribe((0,s.x)(S,V,()=>{Z=!0,A()})),()=>{e?.()}}(k,U,I,F)))}},3093:(It,be,a)=>{a.d(be,{Q:()=>d});var t=a(7103),i=a(9360),v=a(8251);function d(s,L=0){return(0,i.e)((j,$)=>{j.subscribe((0,v.x)($,I=>(0,t.f)($,s,()=>$.next(I),L),()=>(0,t.f)($,s,()=>$.complete(),L),I=>(0,t.f)($,s,()=>$.error(I),L)))})}},9384:(It,be,a)=>{a.d(be,{G:()=>v});var t=a(9360),i=a(8251);function v(){return(0,t.e)((d,s)=>{let L,j=!1;d.subscribe((0,i.x)(s,$=>{const I=L;L=$,j&&s.next([I,$]),j=!0}))})}},2185:(It,be,a)=>{a.d(be,{j:()=>i});var t=a(7398);function i(...v){const d=v.length;if(0===d)throw new Error("list of properties cannot be empty.");return(0,t.U)(s=>{let L=s;for(let j=0;j{a.d(be,{x:()=>v});var t=a(9360),i=a(8251);function v(){return(0,t.e)((d,s)=>{let L=null;d._refCount++;const j=(0,i.x)(s,void 0,void 0,void 0,()=>{if(!d||d._refCount<=0||0<--d._refCount)return void(L=null);const $=d._connection,I=L;L=null,$&&(!I||$===I)&&$.unsubscribe(),s.unsubscribe()});d.subscribe(j),j.closed||(L=d.connect())})}},6699:(It,be,a)=>{a.d(be,{R:()=>d});var t=a(9360),i=a(8251);function d(s,L){return(0,t.e)(function v(s,L,j,$,I){return(S,F)=>{let k=j,U=L,w=0;S.subscribe((0,i.x)(F,M=>{const e=w++;U=k?s(U,M,e):(k=!0,M),$&&F.next(U)},I&&(()=>{k&&F.next(U),F.complete()})))}}(s,L,arguments.length>=2,!0))}},3020:(It,be,a)=>{a.d(be,{B:()=>s});var t=a(4829),i=a(8645),v=a(305),d=a(9360);function s(j={}){const{connector:$=(()=>new i.x),resetOnError:I=!0,resetOnComplete:S=!0,resetOnRefCountZero:F=!0}=j;return k=>{let U,w,M,e=0,R=!1,pe=!1;const me=()=>{w?.unsubscribe(),w=void 0},Z=()=>{me(),U=M=void 0,R=pe=!1},A=()=>{const V=U;Z(),V?.unsubscribe()};return(0,d.e)((V,O)=>{e++,!pe&&!R&&me();const P=M=M??$();O.add(()=>{e--,0===e&&!pe&&!R&&(w=L(A,F))}),P.subscribe(O),!U&&e>0&&(U=new v.Hp({next:D=>P.next(D),error:D=>{pe=!0,me(),w=L(Z,I,D),P.error(D)},complete:()=>{R=!0,me(),w=L(Z,S),P.complete()}}),(0,t.Xf)(V).subscribe(U))})(k)}}function L(j,$,...I){if(!0===$)return void j();if(!1===$)return;const S=new v.Hp({next:()=>{S.unsubscribe(),j()}});return(0,t.Xf)($(...I)).subscribe(S)}},7081:(It,be,a)=>{a.d(be,{d:()=>v});var t=a(7328),i=a(3020);function v(d,s,L){let j,$=!1;return d&&"object"==typeof d?({bufferSize:j=1/0,windowTime:s=1/0,refCount:$=!1,scheduler:L}=d):j=d??1/0,(0,i.B)({connector:()=>new t.t(j,s,L),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$})}},836:(It,be,a)=>{a.d(be,{T:()=>i});var t=a(2181);function i(v){return(0,t.h)((d,s)=>v<=s)}},7921:(It,be,a)=>{a.d(be,{O:()=>d});var t=a(5211),i=a(9940),v=a(9360);function d(...s){const L=(0,i.yG)(s);return(0,v.e)((j,$)=>{(L?(0,t.z)(s,j,L):(0,t.z)(s,j)).subscribe($)})}},4664:(It,be,a)=>{a.d(be,{w:()=>d});var t=a(4829),i=a(9360),v=a(8251);function d(s,L){return(0,i.e)((j,$)=>{let I=null,S=0,F=!1;const k=()=>F&&!I&&$.complete();j.subscribe((0,v.x)($,U=>{I?.unsubscribe();let w=0;const M=S++;(0,t.Xf)(s(U,M)).subscribe(I=(0,v.x)($,e=>$.next(L?L(U,e,M,w++):e),()=>{I=null,k()}))},()=>{F=!0,k()}))})}},8180:(It,be,a)=>{a.d(be,{q:()=>d});var t=a(6232),i=a(9360),v=a(8251);function d(s){return s<=0?()=>t.E:(0,i.e)((L,j)=>{let $=0;L.subscribe((0,v.x)(j,I=>{++$<=s&&(j.next(I),s<=$&&j.complete())}))})}},9773:(It,be,a)=>{a.d(be,{R:()=>s});var t=a(9360),i=a(8251),v=a(4829),d=a(2420);function s(L){return(0,t.e)((j,$)=>{(0,v.Xf)(L).subscribe((0,i.x)($,()=>$.complete(),d.Z)),!$.closed&&j.subscribe($)})}},812:(It,be,a)=>{a.d(be,{o:()=>v});var t=a(9360),i=a(8251);function v(d,s=!1){return(0,t.e)((L,j)=>{let $=0;L.subscribe((0,i.x)(j,I=>{const S=d(I,$++);(S||s)&&j.next(I),!S&&j.complete()}))})}},9397:(It,be,a)=>{a.d(be,{b:()=>s});var t=a(4674),i=a(9360),v=a(8251),d=a(2737);function s(L,j,$){const I=(0,t.m)(L)||j||$?{next:L,error:j,complete:$}:L;return I?(0,i.e)((S,F)=>{var k;null===(k=I.subscribe)||void 0===k||k.call(I);let U=!0;S.subscribe((0,v.x)(F,w=>{var M;null===(M=I.next)||void 0===M||M.call(I,w),F.next(w)},()=>{var w;U=!1,null===(w=I.complete)||void 0===w||w.call(I),F.complete()},w=>{var M;U=!1,null===(M=I.error)||void 0===M||M.call(I,w),F.error(w)},()=>{var w,M;U&&(null===(w=I.unsubscribe)||void 0===w||w.call(I)),null===(M=I.finalize)||void 0===M||M.call(I)}))}):d.y}},8753:(It,be,a)=>{a.d(be,{p:()=>j});var t=a(6321),i=a(9360),v=a(8251),d=a(4829),L=a(4825);function j($,I=t.z,S){const F=(0,L.H)($,I);return function s($,I){return(0,i.e)((S,F)=>{const{leading:k=!0,trailing:U=!1}=I??{};let w=!1,M=null,e=null,R=!1;const pe=()=>{e?.unsubscribe(),e=null,U&&(A(),R&&F.complete())},me=()=>{e=null,R&&F.complete()},Z=V=>e=(0,d.Xf)($(V)).subscribe((0,v.x)(F,pe,me)),A=()=>{if(w){w=!1;const V=M;M=null,F.next(V),!R&&Z(V)}};S.subscribe((0,v.x)(F,V=>{w=!0,M=V,(!e||e.closed)&&(k?A():Z(V))},()=>{R=!0,(!(U&&w&&e)||e.closed)&&F.complete()}))})}(()=>F,S)}},3026:(It,be,a)=>{a.d(be,{T:()=>d});var t=a(6973),i=a(9360),v=a(8251);function d(L=s){return(0,i.e)((j,$)=>{let I=!1;j.subscribe((0,v.x)($,S=>{I=!0,$.next(S)},()=>I?$.complete():$.error(L())))})}function s(){return new t.K}},2460:(It,be,a)=>{a.d(be,{M:()=>j});var t=a(9360),i=a(8251),v=a(4829),d=a(2737),s=a(2420),L=a(9940);function j(...$){const I=(0,L.jO)($);return(0,t.e)((S,F)=>{const k=$.length,U=new Array(k);let w=$.map(()=>!1),M=!1;for(let e=0;e{U[e]=R,!M&&!w[e]&&(w[e]=!0,(M=w.every(d.y))&&(w=null))},s.Z));S.subscribe((0,i.x)(F,e=>{if(M){const R=[e,...U];F.next(I?I(...R):R)}}))})}},1954:(It,be,a)=>{a.d(be,{o:()=>s});var t=a(7394);class i extends t.w0{constructor(j,$){super()}schedule(j,$=0){return this}}const v={setInterval(L,j,...$){const{delegate:I}=v;return I?.setInterval?I.setInterval(L,j,...$):setInterval(L,j,...$)},clearInterval(L){const{delegate:j}=v;return(j?.clearInterval||clearInterval)(L)},delegate:void 0};var d=a(9039);class s extends i{constructor(j,$){super(j,$),this.scheduler=j,this.work=$,this.pending=!1}schedule(j,$=0){var I;if(this.closed)return this;this.state=j;const S=this.id,F=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(F,S,$)),this.pending=!0,this.delay=$,this.id=null!==(I=this.id)&&void 0!==I?I:this.requestAsyncId(F,this.id,$),this}requestAsyncId(j,$,I=0){return v.setInterval(j.flush.bind(j,this),I)}recycleAsyncId(j,$,I=0){if(null!=I&&this.delay===I&&!1===this.pending)return $;null!=$&&v.clearInterval($)}execute(j,$){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const I=this._execute(j,$);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(j,$){let S,I=!1;try{this.work(j)}catch(F){I=!0,S=F||new Error("Scheduled action threw falsy error")}if(I)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:j,scheduler:$}=this,{actions:I}=$;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.P)(I,this),null!=j&&(this.id=this.recycleAsyncId($,j,null)),this.delay=null,super.unsubscribe()}}}},2631:(It,be,a)=>{a.d(be,{v:()=>v});var t=a(4552);class i{constructor(s,L=i.now){this.schedulerActionCtor=s,this.now=L}schedule(s,L=0,j){return new this.schedulerActionCtor(this,s).schedule(j,L)}}i.now=t.l.now;class v extends i{constructor(s,L=i.now){super(s,L),this.actions=[],this._active=!1}flush(s){const{actions:L}=this;if(this._active)return void L.push(s);let j;this._active=!0;do{if(j=s.execute(s.state,s.delay))break}while(s=L.shift());if(this._active=!1,j){for(;s=L.shift();)s.unsubscribe();throw j}}}},927:(It,be,a)=>{a.d(be,{Z:()=>j});var t=a(1954),i=a(7394);const v={schedule(I){let S=requestAnimationFrame,F=cancelAnimationFrame;const{delegate:k}=v;k&&(S=k.requestAnimationFrame,F=k.cancelAnimationFrame);const U=S(w=>{F=void 0,I(w)});return new i.w0(()=>F?.(U))},requestAnimationFrame(...I){const{delegate:S}=v;return(S?.requestAnimationFrame||requestAnimationFrame)(...I)},cancelAnimationFrame(...I){const{delegate:S}=v;return(S?.cancelAnimationFrame||cancelAnimationFrame)(...I)},delegate:void 0};var s=a(2631);const j=new class L extends s.v{flush(S){this._active=!0;const F=this._scheduled;this._scheduled=void 0;const{actions:k}=this;let U;S=S||k.shift();do{if(U=S.execute(S.state,S.delay))break}while((S=k[0])&&S.id===F&&k.shift());if(this._active=!1,U){for(;(S=k[0])&&S.id===F&&k.shift();)S.unsubscribe();throw U}}}(class d extends t.o{constructor(S,F){super(S,F),this.scheduler=S,this.work=F}requestAsyncId(S,F,k=0){return null!==k&&k>0?super.requestAsyncId(S,F,k):(S.actions.push(this),S._scheduled||(S._scheduled=v.requestAnimationFrame(()=>S.flush(void 0))))}recycleAsyncId(S,F,k=0){var U;if(null!=k?k>0:this.delay>0)return super.recycleAsyncId(S,F,k);const{actions:w}=S;null!=F&&(null===(U=w[w.length-1])||void 0===U?void 0:U.id)!==F&&(v.cancelAnimationFrame(F),S._scheduled=void 0)}})},6410:(It,be,a)=>{a.d(be,{E:()=>w});var t=a(1954);let v,i=1;const d={};function s(e){return e in d&&(delete d[e],!0)}const L={setImmediate(e){const R=i++;return d[R]=!0,v||(v=Promise.resolve()),v.then(()=>s(R)&&e()),R},clearImmediate(e){s(e)}},{setImmediate:$,clearImmediate:I}=L,S={setImmediate(...e){const{delegate:R}=S;return(R?.setImmediate||$)(...e)},clearImmediate(e){const{delegate:R}=S;return(R?.clearImmediate||I)(e)},delegate:void 0};var k=a(2631);const w=new class U extends k.v{flush(R){this._active=!0;const pe=this._scheduled;this._scheduled=void 0;const{actions:me}=this;let Z;R=R||me.shift();do{if(Z=R.execute(R.state,R.delay))break}while((R=me[0])&&R.id===pe&&me.shift());if(this._active=!1,Z){for(;(R=me[0])&&R.id===pe&&me.shift();)R.unsubscribe();throw Z}}}(class F extends t.o{constructor(R,pe){super(R,pe),this.scheduler=R,this.work=pe}requestAsyncId(R,pe,me=0){return null!==me&&me>0?super.requestAsyncId(R,pe,me):(R.actions.push(this),R._scheduled||(R._scheduled=S.setImmediate(R.flush.bind(R,void 0))))}recycleAsyncId(R,pe,me=0){var Z;if(null!=me?me>0:this.delay>0)return super.recycleAsyncId(R,pe,me);const{actions:A}=R;null!=pe&&(null===(Z=A[A.length-1])||void 0===Z?void 0:Z.id)!==pe&&(S.clearImmediate(pe),R._scheduled===pe&&(R._scheduled=void 0))}})},6321:(It,be,a)=>{a.d(be,{P:()=>d,z:()=>v});var t=a(1954);const v=new(a(2631).v)(t.o),d=v},4552:(It,be,a)=>{a.d(be,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(It,be,a)=>{a.d(be,{z:()=>t});const t={setTimeout(i,v,...d){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(i,v,...d):setTimeout(i,v,...d)},clearTimeout(i){const{delegate:v}=t;return(v?.clearTimeout||clearTimeout)(i)},delegate:void 0}},4971:(It,be,a)=>{a.d(be,{h:()=>i});const i=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(It,be,a)=>{a.d(be,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(It,be,a)=>{a.d(be,{K:()=>i});const i=(0,a(2306).d)(v=>function(){v(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(It,be,a)=>{a.d(be,{_6:()=>L,jO:()=>d,yG:()=>s});var t=a(4674),i=a(671);function v(j){return j[j.length-1]}function d(j){return(0,t.m)(v(j))?j.pop():void 0}function s(j){return(0,i.K)(v(j))?j.pop():void 0}function L(j,$){return"number"==typeof v(j)?j.pop():$}},7453:(It,be,a)=>{a.d(be,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:i,prototype:v,keys:d}=Object;function s(j){if(1===j.length){const $=j[0];if(t($))return{args:$,keys:null};if(function L(j){return j&&"object"==typeof j&&i(j)===v}($)){const I=d($);return{args:I.map(S=>$[S]),keys:I}}}return{args:j,keys:null}}},9039:(It,be,a)=>{function t(i,v){if(i){const d=i.indexOf(v);0<=d&&i.splice(d,1)}}a.d(be,{P:()=>t})},2306:(It,be,a)=>{function t(i){const d=i(s=>{Error.call(s),s.stack=(new Error).stack});return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d}a.d(be,{d:()=>t})},2714:(It,be,a)=>{function t(i,v){return i.reduce((d,s,L)=>(d[s]=v[L],d),{})}a.d(be,{n:()=>t})},1441:(It,be,a)=>{a.d(be,{O:()=>d,x:()=>v});var t=a(2653);let i=null;function v(s){if(t.config.useDeprecatedSynchronousErrorHandling){const L=!i;if(L&&(i={errorThrown:!1,error:null}),s(),L){const{errorThrown:j,error:$}=i;if(i=null,j)throw $}}else s()}function d(s){t.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=s)}},7103:(It,be,a)=>{function t(i,v,d,s=0,L=!1){const j=v.schedule(function(){d(),L?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(j),!L)return j}a.d(be,{f:()=>t})},2737:(It,be,a)=>{function t(i){return i}a.d(be,{y:()=>t})},4266:(It,be,a)=>{a.d(be,{z:()=>t});const t=i=>i&&"number"==typeof i.length&&"function"!=typeof i},5726:(It,be,a)=>{a.d(be,{D:()=>i});var t=a(4674);function i(v){return Symbol.asyncIterator&&(0,t.m)(v?.[Symbol.asyncIterator])}},4674:(It,be,a)=>{function t(i){return"function"==typeof i}a.d(be,{m:()=>t})},8382:(It,be,a)=>{a.d(be,{c:()=>v});var t=a(4850),i=a(4674);function v(d){return(0,i.m)(d[t.L])}},3664:(It,be,a)=>{a.d(be,{T:()=>v});var t=a(4971),i=a(4674);function v(d){return(0,i.m)(d?.[t.h])}},2664:(It,be,a)=>{a.d(be,{b:()=>v});var t=a(5592),i=a(4674);function v(d){return!!d&&(d instanceof t.y||(0,i.m)(d.lift)&&(0,i.m)(d.subscribe))}},4026:(It,be,a)=>{a.d(be,{t:()=>i});var t=a(4674);function i(v){return(0,t.m)(v?.then)}},541:(It,be,a)=>{a.d(be,{L:()=>d,Q:()=>v});var t=a(655),i=a(4674);function v(s){return(0,t.FC)(this,arguments,function*(){const j=s.getReader();try{for(;;){const{value:$,done:I}=yield(0,t.qq)(j.read());if(I)return yield(0,t.qq)(void 0);yield yield(0,t.qq)($)}}finally{j.releaseLock()}})}function d(s){return(0,i.m)(s?.getReader)}},671:(It,be,a)=>{a.d(be,{K:()=>i});var t=a(4674);function i(v){return v&&(0,t.m)(v.schedule)}},9360:(It,be,a)=>{a.d(be,{A:()=>i,e:()=>v});var t=a(4674);function i(d){return(0,t.m)(d?.lift)}function v(d){return s=>{if(i(s))return s.lift(function(L){try{return d(L,this)}catch(j){this.error(j)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(It,be,a)=>{a.d(be,{Z:()=>d});var t=a(7398);const{isArray:i}=Array;function d(s){return(0,t.U)(L=>function v(s,L){return i(L)?s(...L):s(L)}(s,L))}},2420:(It,be,a)=>{function t(){}a.d(be,{Z:()=>t})},8407:(It,be,a)=>{a.d(be,{U:()=>v,z:()=>i});var t=a(2737);function i(...d){return v(d)}function v(d){return 0===d.length?t.y:1===d.length?d[0]:function(L){return d.reduce((j,$)=>$(j),L)}}},3894:(It,be,a)=>{a.d(be,{h:()=>v});var t=a(2653),i=a(7599);function v(d){i.z.setTimeout(()=>{const{onUnhandledError:s}=t.config;if(!s)throw d;s(d)})}},9853:(It,be,a)=>{function t(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(be,{z:()=>t})},3742:(It,be,a)=>{function t(P){return P!==String(parseFloat(P))}a.d(be,{o6:()=>O});var s=Object.getOwnPropertyNames?function i(P){return Object.getOwnPropertyNames(P).filter(function(D){return P.propertyIsEnumerable(D)&&t(D)})}:Object.keys?function v(P){return Object.keys(P).filter(t)}:function d(P){var D=[];for(var re in P)P.hasOwnProperty(re)&&P.propertyIsEnumerable(re)&&t(re)&&D.push(re);return D},L=function(){function P(D){this.enumObj=D,this.keysList=Object.freeze(s(D));for(var re=this.keysList.length,ae=new Array(re),Q=new Map,fe=0;fe=re.length,value:re.keysList[ae]};return++ae,fe}})[Symbol.iterator]=function(){return this},D},P.prototype.values=function(){var D,re=this,ae=0;return(D={next:function(){var fe={done:ae>=re.length,value:re.valuesList[ae]};return++ae,fe}})[Symbol.iterator]=function(){return this},D},P.prototype.entries=function(){var D,re=this,ae=0;return(D={next:function(){var fe={done:ae>=re.length,value:re[ae]};return++ae,fe}})[Symbol.iterator]=function(){return this},D},P.prototype[Symbol.iterator]=function(){return this.entries()},P.prototype.forEach=function(D,re){for(var ae=this.length,Q=0;Q{a.d(be,{FC:()=>pe,Jh:()=>I,KL:()=>Z,ZT:()=>i,_T:()=>d,ev:()=>e,gn:()=>s,mG:()=>$,pi:()=>v,qq:()=>R});var t=function(Q,fe){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ge){ue.__proto__=ge}||function(ue,ge){for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&(ue[Se]=ge[Se])})(Q,fe)};function i(Q,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function ue(){this.constructor=Q}t(Q,fe),Q.prototype=null===fe?Object.create(fe):(ue.prototype=fe.prototype,new ue)}var v=function(){return v=Object.assign||function(fe){for(var ue,ge=1,Se=arguments.length;ge=0;Ft--)(Rt=Q[Ft])&&(ke=(Se<3?Rt(ke):Se>3?Rt(fe,ue,ke):Rt(fe,ue))||ke);return Se>3&&ke&&Object.defineProperty(fe,ue,ke),ke}function $(Q,fe,ue,ge){return new(ue||(ue=Promise))(function(ke,Rt){function Ft(Ct){try{yt(ge.next(Ct))}catch(Lt){Rt(Lt)}}function Mt(Ct){try{yt(ge.throw(Ct))}catch(Lt){Rt(Lt)}}function yt(Ct){Ct.done?ke(Ct.value):function Se(ke){return ke instanceof ue?ke:new ue(function(Rt){Rt(ke)})}(Ct.value).then(Ft,Mt)}yt((ge=ge.apply(Q,fe||[])).next())})}function I(Q,fe){var ge,Se,ke,Rt,ue={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return Rt={next:Ft(0),throw:Ft(1),return:Ft(2)},"function"==typeof Symbol&&(Rt[Symbol.iterator]=function(){return this}),Rt;function Ft(yt){return function(Ct){return function Mt(yt){if(ge)throw new TypeError("Generator is already executing.");for(;Rt&&(Rt=0,yt[0]&&(ue=0)),ue;)try{if(ge=1,Se&&(ke=2&yt[0]?Se.return:yt[0]?Se.throw||((ke=Se.return)&&ke.call(Se),0):Se.next)&&!(ke=ke.call(Se,yt[1])).done)return ke;switch(Se=0,ke&&(yt=[2&yt[0],ke.value]),yt[0]){case 0:case 1:ke=yt;break;case 4:return ue.label++,{value:yt[1],done:!1};case 5:ue.label++,Se=yt[1],yt=[0];continue;case 7:yt=ue.ops.pop(),ue.trys.pop();continue;default:if(!(ke=(ke=ue.trys).length>0&&ke[ke.length-1])&&(6===yt[0]||2===yt[0])){ue=0;continue}if(3===yt[0]&&(!ke||yt[1]>ke[0]&&yt[1]1||Ft(rn,Sn)})})}function Ft(rn,Sn){try{!function Mt(rn){rn.value instanceof R?Promise.resolve(rn.value.v).then(yt,Ct):Lt(ke[0][2],rn)}(ge[rn](Sn))}catch(rt){Lt(ke[0][3],rt)}}function yt(rn){Ft("next",rn)}function Ct(rn){Ft("throw",rn)}function Lt(rn,Sn){rn(Sn),ke.shift(),ke.length&&Ft(ke[0][0],ke[0][1])}}function Z(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ue,fe=Q[Symbol.asyncIterator];return fe?fe.call(Q):(Q=function k(Q){var fe="function"==typeof Symbol&&Symbol.iterator,ue=fe&&Q[fe],ge=0;if(ue)return ue.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&ge>=Q.length&&(Q=void 0),{value:Q&&Q[ge++],done:!Q}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),ue={},ge("next"),ge("throw"),ge("return"),ue[Symbol.asyncIterator]=function(){return this},ue);function ge(ke){ue[ke]=Q[ke]&&function(Rt){return new Promise(function(Ft,Mt){!function Se(ke,Rt,Ft,Mt){Promise.resolve(Mt).then(function(yt){ke({value:yt,done:Ft})},Rt)}(Ft,Mt,(Rt=Q[ke](Rt)).done,Rt.value)})}}}},7691:(It,be,a)=>{function t(s){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(s)}function d(s,L,j){return(L=function v(s){var L=function i(s,L){if("object"!==t(s)||null===s)return s;var j=s[Symbol.toPrimitive];if(void 0!==j){var $=j.call(s,L||"default");if("object"!==t($))return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(s)}(s,"string");return"symbol"===t(L)?L:String(L)}(L))in s?Object.defineProperty(s,L,{value:j,enumerable:!0,configurable:!0,writable:!0}):s[L]=j,s}a.d(be,{Z:()=>d})},6825:(It,be,a)=>{a.d(be,{EY:()=>e,IO:()=>M,LC:()=>i,SB:()=>I,X$:()=>d,ZE:()=>pe,ZN:()=>R,_j:()=>t,eR:()=>F,jt:()=>s,k1:()=>me,l3:()=>v,oB:()=>$,vP:()=>j});class t{}class i{}const v="*";function d(Z,A){return{type:7,name:Z,definitions:A,options:{}}}function s(Z,A=null){return{type:4,styles:A,timings:Z}}function j(Z,A=null){return{type:2,steps:Z,options:A}}function $(Z){return{type:6,styles:Z,offset:null}}function I(Z,A,V){return{type:0,name:Z,styles:A,options:V}}function F(Z,A,V=null){return{type:1,expr:Z,animation:A,options:V}}function M(Z,A,V=null){return{type:11,selector:Z,animation:A,options:V}}function e(Z,A){return{type:12,timings:Z,animation:A}}class R{constructor(A=0,V=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=A+V}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(A=>A()),this._onDoneFns=[])}onStart(A){this._originalOnStartFns.push(A),this._onStartFns.push(A)}onDone(A){this._originalOnDoneFns.push(A),this._onDoneFns.push(A)}onDestroy(A){this._onDestroyFns.push(A)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(A=>A()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(A=>A()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(A){this._position=this.totalTime?A*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(A){const V="start"==A?this._onStartFns:this._onDoneFns;V.forEach(O=>O()),V.length=0}}class pe{constructor(A){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=A;let V=0,O=0,P=0;const D=this.players.length;0==D?queueMicrotask(()=>this._onFinish()):this.players.forEach(re=>{re.onDone(()=>{++V==D&&this._onFinish()}),re.onDestroy(()=>{++O==D&&this._onDestroy()}),re.onStart(()=>{++P==D&&this._onStart()})}),this.totalTime=this.players.reduce((re,ae)=>Math.max(re,ae.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(A=>A()),this._onDoneFns=[])}init(){this.players.forEach(A=>A.init())}onStart(A){this._onStartFns.push(A)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(A=>A()),this._onStartFns=[])}onDone(A){this._onDoneFns.push(A)}onDestroy(A){this._onDestroyFns.push(A)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(A=>A.play())}pause(){this.players.forEach(A=>A.pause())}restart(){this.players.forEach(A=>A.restart())}finish(){this._onFinish(),this.players.forEach(A=>A.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(A=>A.destroy()),this._onDestroyFns.forEach(A=>A()),this._onDestroyFns=[])}reset(){this.players.forEach(A=>A.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(A){const V=A*this.totalTime;this.players.forEach(O=>{const P=O.totalTime?Math.min(1,V/O.totalTime):1;O.setPosition(P)})}getPosition(){const A=this.players.reduce((V,O)=>null===V||O.totalTime>V.totalTime?O:V,null);return null!=A?A.getPosition():0}beforeDestroy(){this.players.forEach(A=>{A.beforeDestroy&&A.beforeDestroy()})}triggerCallback(A){const V="start"==A?this._onStartFns:this._onDoneFns;V.forEach(O=>O()),V.length=0}}const me="!"},4300:(It,be,a)=>{a.d(be,{Em:()=>ke,X6:()=>Ne,kH:()=>Je,qV:()=>On,rt:()=>zt,tE:()=>kt,yG:()=>De});var t=a(6814),i=a(5879),v=a(2831),d=a(8645),s=a(7394),L=a(5619),j=a(2096),$=a(6028),I=a(9397),S=a(3620),F=a(2181),k=a(7398),U=a(8180),w=a(836),M=a(3997),e=a(9773),R=a(2495),pe=a(7131),me=a(1088);class ge{constructor(We){this._items=We,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new d.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ot=>ot.disabled,this._pressedLetters=[],this.tabOut=new d.x,this.change=new d.x,We instanceof i.n_E&&(this._itemChangesSubscription=We.changes.subscribe(ot=>{if(this._activeItem){const St=ot.toArray().indexOf(this._activeItem);St>-1&&St!==this._activeItemIndex&&(this._activeItemIndex=St)}}))}skipPredicate(We){return this._skipPredicateFn=We,this}withWrap(We=!0){return this._wrap=We,this}withVerticalOrientation(We=!0){return this._vertical=We,this}withHorizontalOrientation(We){return this._horizontal=We,this}withAllowedModifierKeys(We){return this._allowedModifierKeys=We,this}withTypeAhead(We=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(ot=>this._pressedLetters.push(ot)),(0,S.b)(We),(0,F.h)(()=>this._pressedLetters.length>0),(0,k.U)(()=>this._pressedLetters.join(""))).subscribe(ot=>{const Vt=this._getItemsArray();for(let St=1;St!We[mn]||this._allowedModifierKeys.indexOf(mn)>-1);switch(ot){case $.Mf:return void this.tabOut.next();case $.JH:if(this._vertical&&St){this.setNextItemActive();break}return;case $.LH:if(this._vertical&&St){this.setPreviousItemActive();break}return;case $.SV:if(this._horizontal&&St){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case $.oh:if(this._horizontal&&St){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case $.Sd:if(this._homeAndEnd&&St){this.setFirstItemActive();break}return;case $.uR:if(this._homeAndEnd&&St){this.setLastItemActive();break}return;case $.Ku:if(this._pageUpAndDown.enabled&&St){const mn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(mn>0?mn:0,1);break}return;case $.VM:if(this._pageUpAndDown.enabled&&St){const mn=this._activeItemIndex+this._pageUpAndDown.delta,Qe=this._getItemsArray().length;this._setActiveItemByIndex(mn=$.A&&ot<=$.Z||ot>=$.xE&&ot<=$.aO)&&this._letterKeyStream.next(String.fromCharCode(ot))))}this._pressedLetters=[],We.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(We){const ot=this._getItemsArray(),Vt="number"==typeof We?We:ot.indexOf(We);this._activeItem=ot[Vt]??null,this._activeItemIndex=Vt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(We){this._wrap?this._setActiveInWrapMode(We):this._setActiveInDefaultMode(We)}_setActiveInWrapMode(We){const ot=this._getItemsArray();for(let Vt=1;Vt<=ot.length;Vt++){const St=(this._activeItemIndex+We*Vt+ot.length)%ot.length;if(!this._skipPredicateFn(ot[St]))return void this.setActiveItem(St)}}_setActiveInDefaultMode(We){this._setActiveItemByIndex(this._activeItemIndex+We,We)}_setActiveItemByIndex(We,ot){const Vt=this._getItemsArray();if(Vt[We]){for(;this._skipPredicateFn(Vt[We]);)if(!Vt[We+=ot])return;this.setActiveItem(We)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ke extends ge{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(We){return this._origin=We,this}setActiveItem(We){super.setActiveItem(We),this.activeItem&&this.activeItem.focus(this._origin)}}let Ft=(()=>{class nt{constructor(ot){this._platform=ot}isDisabled(ot){return ot.hasAttribute("disabled")}isVisible(ot){return function yt(nt){return!!(nt.offsetWidth||nt.offsetHeight||"function"==typeof nt.getClientRects&&nt.getClientRects().length)}(ot)&&"visible"===getComputedStyle(ot).visibility}isTabbable(ot){if(!this._platform.isBrowser)return!1;const Vt=function Mt(nt){try{return nt.frameElement}catch{return null}}(function Jt(nt){return nt.ownerDocument&&nt.ownerDocument.defaultView||window}(ot));if(Vt&&(-1===st(Vt)||!this.isVisible(Vt)))return!1;let St=ot.nodeName.toLowerCase(),mn=st(ot);return ot.hasAttribute("contenteditable")?-1!==mn:!("iframe"===St||"object"===St||this._platform.WEBKIT&&this._platform.IOS&&!function Ze(nt){let We=nt.nodeName.toLowerCase(),ot="input"===We&&nt.type;return"text"===ot||"password"===ot||"select"===We||"textarea"===We}(ot))&&("audio"===St?!!ot.hasAttribute("controls")&&-1!==mn:"video"===St?-1!==mn&&(null!==mn||this._platform.FIREFOX||ot.hasAttribute("controls")):ot.tabIndex>=0)}isFocusable(ot,Vt){return function Bt(nt){return!function Lt(nt){return function Sn(nt){return"input"==nt.nodeName.toLowerCase()}(nt)&&"hidden"==nt.type}(nt)&&(function Ct(nt){let We=nt.nodeName.toLowerCase();return"input"===We||"select"===We||"button"===We||"textarea"===We}(nt)||function rn(nt){return function rt(nt){return"a"==nt.nodeName.toLowerCase()}(nt)&&nt.hasAttribute("href")}(nt)||nt.hasAttribute("contenteditable")||Ye(nt))}(ot)&&!this.isDisabled(ot)&&(Vt?.ignoreVisibility||this.isVisible(ot))}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.LFG(v.t4))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Ye(nt){if(!nt.hasAttribute("tabindex")||void 0===nt.tabIndex)return!1;let We=nt.getAttribute("tabindex");return!(!We||isNaN(parseInt(We,10)))}function st(nt){if(!Ye(nt))return null;const We=parseInt(nt.getAttribute("tabindex")||"",10);return isNaN(We)?-1:We}class _n{get enabled(){return this._enabled}set enabled(We){this._enabled=We,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}constructor(We,ot,Vt,St,mn=!1){this._element=We,this._checker=ot,this._ngZone=Vt,this._document=St,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,mn||this.attachAnchors()}destroy(){const We=this._startAnchor,ot=this._endAnchor;We&&(We.removeEventListener("focus",this.startAnchorListener),We.remove()),ot&&(ot.removeEventListener("focus",this.endAnchorListener),ot.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(We){return new Promise(ot=>{this._executeOnStable(()=>ot(this.focusInitialElement(We)))})}focusFirstTabbableElementWhenReady(We){return new Promise(ot=>{this._executeOnStable(()=>ot(this.focusFirstTabbableElement(We)))})}focusLastTabbableElementWhenReady(We){return new Promise(ot=>{this._executeOnStable(()=>ot(this.focusLastTabbableElement(We)))})}_getRegionBoundary(We){const ot=this._element.querySelectorAll(`[cdk-focus-region-${We}], [cdkFocusRegion${We}], [cdk-focus-${We}]`);return"start"==We?ot.length?ot[0]:this._getFirstTabbableElement(this._element):ot.length?ot[ot.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(We){const ot=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ot){if(!this._checker.isFocusable(ot)){const Vt=this._getFirstTabbableElement(ot);return Vt?.focus(We),!!Vt}return ot.focus(We),!0}return this.focusFirstTabbableElement(We)}focusFirstTabbableElement(We){const ot=this._getRegionBoundary("start");return ot&&ot.focus(We),!!ot}focusLastTabbableElement(We){const ot=this._getRegionBoundary("end");return ot&&ot.focus(We),!!ot}hasAttached(){return this._hasAttached}_getFirstTabbableElement(We){if(this._checker.isFocusable(We)&&this._checker.isTabbable(We))return We;const ot=We.children;for(let Vt=0;Vt=0;Vt--){const St=ot[Vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ot[Vt]):null;if(St)return St}return null}_createAnchor(){const We=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,We),We.classList.add("cdk-visually-hidden"),We.classList.add("cdk-focus-trap-anchor"),We.setAttribute("aria-hidden","true"),We}_toggleAnchorTabIndex(We,ot){We?ot.setAttribute("tabindex","0"):ot.removeAttribute("tabindex")}toggleAnchors(We){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(We,this._startAnchor),this._toggleAnchorTabIndex(We,this._endAnchor))}_executeOnStable(We){this._ngZone.isStable?We():this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(We)}}let On=(()=>{class nt{constructor(ot,Vt,St){this._checker=ot,this._ngZone=Vt,this._document=St}create(ot,Vt=!1){return new _n(ot,this._checker,this._ngZone,this._document,Vt)}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.LFG(Ft),i.LFG(i.R0b),i.LFG(t.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Ne(nt){return 0===nt.buttons||0===nt.offsetX&&0===nt.offsetY}function De(nt){const We=nt.touches&&nt.touches[0]||nt.changedTouches&&nt.changedTouches[0];return!(!We||-1!==We.identifier||null!=We.radiusX&&1!==We.radiusX||null!=We.radiusY&&1!==We.radiusY)}const ie=new i.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[$.zL,$.jx,$.b2,$.MW,$.JU]},qe=(0,v.i$)({passive:!0,capture:!0});let ct=(()=>{class nt{get mostRecentModality(){return this._modality.value}constructor(ot,Vt,St,mn){this._platform=ot,this._mostRecentTarget=null,this._modality=new L.X(null),this._lastTouchMs=0,this._onKeydown=Qe=>{this._options?.ignoreKeys?.some(dt=>dt===Qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(Qe))},this._onMousedown=Qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ne(Qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(Qe))},this._onTouchstart=Qe=>{De(Qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(Qe))},this._options={...Ce,...mn},this.modalityDetected=this._modality.pipe((0,w.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),ot.isBrowser&&Vt.runOutsideAngular(()=>{St.addEventListener("keydown",this._onKeydown,qe),St.addEventListener("mousedown",this._onMousedown,qe),St.addEventListener("touchstart",this._onTouchstart,qe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.LFG(v.t4),i.LFG(i.R0b),i.LFG(t.K0),i.LFG(ie,8))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Pt=new i.OlP("cdk-focus-monitor-default-options"),Wt=(0,v.i$)({passive:!0,capture:!0});let kt=(()=>{class nt{constructor(ot,Vt,St,mn,Qe){this._ngZone=ot,this._platform=Vt,this._inputModalityDetector=St,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new d.x,this._rootNodeFocusAndBlurListener=dt=>{for(let ze=(0,v.sA)(dt);ze;ze=ze.parentElement)"focus"===dt.type?this._onFocus(dt,ze):this._onBlur(dt,ze)},this._document=mn,this._detectionMode=Qe?.detectionMode||0}monitor(ot,Vt=!1){const St=(0,R.fI)(ot);if(!this._platform.isBrowser||1!==St.nodeType)return(0,j.of)();const mn=(0,v.kV)(St)||this._getDocument(),Qe=this._elementInfo.get(St);if(Qe)return Vt&&(Qe.checkChildren=!0),Qe.subject;const dt={checkChildren:Vt,subject:new d.x,rootNode:mn};return this._elementInfo.set(St,dt),this._registerGlobalListeners(dt),dt.subject}stopMonitoring(ot){const Vt=(0,R.fI)(ot),St=this._elementInfo.get(Vt);St&&(St.subject.complete(),this._setClasses(Vt),this._elementInfo.delete(Vt),this._removeGlobalListeners(St))}focusVia(ot,Vt,St){const mn=(0,R.fI)(ot);mn===this._getDocument().activeElement?this._getClosestElementsInfo(mn).forEach(([dt,se])=>this._originChanged(dt,Vt,se)):(this._setOrigin(Vt),"function"==typeof mn.focus&&mn.focus(St))}ngOnDestroy(){this._elementInfo.forEach((ot,Vt)=>this.stopMonitoring(Vt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ot){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ot)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ot&&this._isLastInteractionFromInputLabel(ot)?"mouse":"program"}_shouldBeAttributedToTouch(ot){return 1===this._detectionMode||!!ot?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ot,Vt){ot.classList.toggle("cdk-focused",!!Vt),ot.classList.toggle("cdk-touch-focused","touch"===Vt),ot.classList.toggle("cdk-keyboard-focused","keyboard"===Vt),ot.classList.toggle("cdk-mouse-focused","mouse"===Vt),ot.classList.toggle("cdk-program-focused","program"===Vt)}_setOrigin(ot,Vt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ot,this._originFromTouchInteraction="touch"===ot&&Vt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ot,Vt){const St=this._elementInfo.get(Vt),mn=(0,v.sA)(ot);!St||!St.checkChildren&&Vt!==mn||this._originChanged(Vt,this._getFocusOrigin(mn),St)}_onBlur(ot,Vt){const St=this._elementInfo.get(Vt);!St||St.checkChildren&&ot.relatedTarget instanceof Node&&Vt.contains(ot.relatedTarget)||(this._setClasses(Vt),this._emitOrigin(St,null))}_emitOrigin(ot,Vt){ot.subject.observers.length&&this._ngZone.run(()=>ot.subject.next(Vt))}_registerGlobalListeners(ot){if(!this._platform.isBrowser)return;const Vt=ot.rootNode,St=this._rootNodeFocusListenerCount.get(Vt)||0;St||this._ngZone.runOutsideAngular(()=>{Vt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wt),Vt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wt)}),this._rootNodeFocusListenerCount.set(Vt,St+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,e.R)(this._stopInputModalityDetector)).subscribe(mn=>{this._setOrigin(mn,!0)}))}_removeGlobalListeners(ot){const Vt=ot.rootNode;if(this._rootNodeFocusListenerCount.has(Vt)){const St=this._rootNodeFocusListenerCount.get(Vt);St>1?this._rootNodeFocusListenerCount.set(Vt,St-1):(Vt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wt),Vt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wt),this._rootNodeFocusListenerCount.delete(Vt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ot,Vt,St){this._setClasses(ot,Vt),this._emitOrigin(St,Vt),this._lastFocusOrigin=Vt}_getClosestElementsInfo(ot){const Vt=[];return this._elementInfo.forEach((St,mn)=>{(mn===ot||St.checkChildren&&mn.contains(ot))&&Vt.push([mn,St])}),Vt}_isLastInteractionFromInputLabel(ot){const{_mostRecentTarget:Vt,mostRecentModality:St}=this._inputModalityDetector;if("mouse"!==St||!Vt||Vt===ot||"INPUT"!==ot.nodeName&&"TEXTAREA"!==ot.nodeName||ot.disabled)return!1;const mn=ot.labels;if(mn)for(let Qe=0;Qe{class nt{constructor(ot,Vt){this._elementRef=ot,this._focusMonitor=Vt,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ot=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ot,1===ot.nodeType&&ot.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Vt=>{this._focusOrigin=Vt,this.cdkFocusChange.emit(Vt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.Y36(i.SBq),i.Y36(kt))},nt.\u0275dir=i.lG2({type:nt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),nt})();const K="cdk-high-contrast-black-on-white",N="cdk-high-contrast-white-on-black",J="cdk-high-contrast-active";let Me=(()=>{class nt{constructor(ot,Vt){this._platform=ot,this._document=Vt,this._breakpointSubscription=(0,i.f3M)(me.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ot=this._document.createElement("div");ot.style.backgroundColor="rgb(1,2,3)",ot.style.position="absolute",this._document.body.appendChild(ot);const Vt=this._document.defaultView||window,St=Vt&&Vt.getComputedStyle?Vt.getComputedStyle(ot):null,mn=(St&&St.backgroundColor||"").replace(/ /g,"");switch(ot.remove(),mn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ot=this._document.body.classList;ot.remove(J,K,N),this._hasCheckedHighContrastMode=!0;const Vt=this.getHighContrastMode();1===Vt?ot.add(J,K):2===Vt&&ot.add(J,N)}}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.LFG(v.t4),i.LFG(t.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),zt=(()=>{class nt{constructor(ot){ot._applyBodyHighContrastModeCssClasses()}}return nt.\u0275fac=function(ot){return new(ot||nt)(i.LFG(Me))},nt.\u0275mod=i.oAB({type:nt}),nt.\u0275inj=i.cJS({imports:[pe.Q8]}),nt})()},9388:(It,be,a)=>{a.d(be,{Is:()=>j,vT:()=>I});var t=a(5879),i=a(6814);const v=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function d(){return(0,t.f3M)(i.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let j=(()=>{class S{constructor(k){this.value="ltr",this.change=new t.vpe,k&&(this.value=function L(S){const F=S?.toLowerCase()||"";return"auto"===F&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===F?"rtl":"ltr"}((k.body?k.body.dir:null)||(k.documentElement?k.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return S.\u0275fac=function(k){return new(k||S)(t.LFG(v,8))},S.\u0275prov=t.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),I=(()=>{class S{}return S.\u0275fac=function(k){return new(k||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({}),S})()},342:(It,be,a)=>{a.d(be,{Iq:()=>j,TU:()=>d});var t=a(6814),i=a(5879);class v{constructor(I,S){this._document=S;const F=this._textarea=this._document.createElement("textarea"),k=F.style;k.position="fixed",k.top=k.opacity="0",k.left="-999em",F.setAttribute("aria-hidden","true"),F.value=I,F.readOnly=!0,this._document.body.appendChild(F)}copy(){const I=this._textarea;let S=!1;try{if(I){const F=this._document.activeElement;I.select(),I.setSelectionRange(0,I.value.length),S=this._document.execCommand("copy"),F&&F.focus()}}catch{}return S}destroy(){const I=this._textarea;I&&(I.remove(),this._textarea=void 0)}}let d=(()=>{class ${constructor(S){this._document=S}copy(S){const F=this.beginCopy(S),k=F.copy();return F.destroy(),k}beginCopy(S){return new v(S,this._document)}}return $.\u0275fac=function(S){return new(S||$)(i.LFG(t.K0))},$.\u0275prov=i.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),j=(()=>{class ${}return $.\u0275fac=function(S){return new(S||$)},$.\u0275mod=i.oAB({type:$}),$.\u0275inj=i.cJS({}),$})()},2495:(It,be,a)=>{a.d(be,{Eq:()=>s,HM:()=>L,Ig:()=>i,fI:()=>j,su:()=>v,t6:()=>d});var t=a(5879);function i(I){return null!=I&&"false"!=`${I}`}function v(I,S=0){return d(I)?Number(I):S}function d(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function s(I){return Array.isArray(I)?I:[I]}function L(I){return null==I?"":"string"==typeof I?I:`${I}px`}function j(I){return I instanceof t.SBq?I.nativeElement:I}},6028:(It,be,a)=>{a.d(be,{A:()=>Lt,JH:()=>Z,JU:()=>L,K5:()=>s,Ku:()=>U,LH:()=>pe,L_:()=>k,MW:()=>at,Mf:()=>v,SV:()=>me,Sd:()=>e,VM:()=>w,Vb:()=>Ti,Z:()=>Cn,ZH:()=>i,aO:()=>Rt,b2:()=>oi,hY:()=>F,jx:()=>j,oh:()=>R,uR:()=>M,xE:()=>D,zL:()=>$});const i=8,v=9,s=13,L=16,j=17,$=18,F=27,k=32,U=33,w=34,M=35,e=36,R=37,pe=38,me=39,Z=40,D=48,Rt=57,Lt=65,Cn=90,at=91,oi=224;function Ti(Fn,...Mi){return Mi.length?Mi.some(bi=>Fn[bi]):Fn.altKey||Fn.shiftKey||Fn.ctrlKey||Fn.metaKey}},1088:(It,be,a)=>{a.d(be,{Yg:()=>Z,vx:()=>R,xu:()=>w});var t=a(5879),i=a(2495),v=a(8645),d=a(2572),s=a(5211),L=a(5592),j=a(8180),$=a(836),I=a(3620),S=a(7398),F=a(7921),k=a(9773),U=a(2831);let w=(()=>{class O{}return O.\u0275fac=function(D){return new(D||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({}),O})();const M=new Set;let e,R=(()=>{class O{constructor(D,re){this._platform=D,this._nonce=re,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):me}matchMedia(D){return(this._platform.WEBKIT||this._platform.BLINK)&&function pe(O,P){if(!M.has(O))try{e||(e=document.createElement("style"),P&&(e.nonce=P),e.setAttribute("type","text/css"),document.head.appendChild(e)),e.sheet&&(e.sheet.insertRule(`@media ${O} {body{ }}`,0),M.add(O))}catch(D){console.error(D)}}(D,this._nonce),this._matchMedia(D)}}return O.\u0275fac=function(D){return new(D||O)(t.LFG(U.t4),t.LFG(t.Ojb,8))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();function me(O){return{matches:"all"===O||""===O,media:O,addListener:()=>{},removeListener:()=>{}}}let Z=(()=>{class O{constructor(D,re){this._mediaMatcher=D,this._zone=re,this._queries=new Map,this._destroySubject=new v.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(D){return A((0,i.Eq)(D)).some(ae=>this._registerQuery(ae).mql.matches)}observe(D){const ae=A((0,i.Eq)(D)).map(fe=>this._registerQuery(fe).observable);let Q=(0,d.a)(ae);return Q=(0,s.z)(Q.pipe((0,j.q)(1)),Q.pipe((0,$.T)(1),(0,I.b)(0))),Q.pipe((0,S.U)(fe=>{const ue={matches:!1,breakpoints:{}};return fe.forEach(({matches:ge,query:Se})=>{ue.matches=ue.matches||ge,ue.breakpoints[Se]=ge}),ue}))}_registerQuery(D){if(this._queries.has(D))return this._queries.get(D);const re=this._mediaMatcher.matchMedia(D),Q={observable:new L.y(fe=>{const ue=ge=>this._zone.run(()=>fe.next(ge));return re.addListener(ue),()=>{re.removeListener(ue)}}).pipe((0,F.O)(re),(0,S.U)(({matches:fe})=>({query:D,matches:fe})),(0,k.R)(this._destroySubject)),mql:re};return this._queries.set(D,Q),Q}}return O.\u0275fac=function(D){return new(D||O)(t.LFG(R),t.LFG(t.R0b))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();function A(O){return O.map(P=>P.split(",")).reduce((P,D)=>P.concat(D)).map(P=>P.trim())}},7131:(It,be,a)=>{a.d(be,{Q8:()=>s});var t=a(5879);let i=(()=>{class L{create($){return typeof MutationObserver>"u"?null:new MutationObserver($)}}return L.\u0275fac=function($){return new($||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),s=(()=>{class L{}return L.\u0275fac=function($){return new($||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[i]}),L})()},9594:(It,be,a)=>{a.d(be,{Iu:()=>Ft,U8:()=>je,X_:()=>D,aV:()=>_n,pI:()=>Ve,tR:()=>re,xu:()=>wt});var t=a(532),i=a(6814),v=a(5879),d=a(2495),s=a(2831),L=a(2181),j=a(8180),$=a(9773),I=a(812),S=a(9388),F=a(8484),k=a(8645),U=a(7394),w=a(3019),M=a(6028);const e=(0,s.Mq)();class R{constructor(ie,Ce){this._viewportRuler=ie,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ce}attach(){}enable(){if(this._canBeEnabled()){const ie=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ie.style.left||"",this._previousHTMLStyles.top=ie.style.top||"",ie.style.left=(0,d.HM)(-this._previousScrollPosition.left),ie.style.top=(0,d.HM)(-this._previousScrollPosition.top),ie.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ie=this._document.documentElement,ve=ie.style,qe=this._document.body.style,ct=ve.scrollBehavior||"",Zt=qe.scrollBehavior||"";this._isEnabled=!1,ve.left=this._previousHTMLStyles.left,ve.top=this._previousHTMLStyles.top,ie.classList.remove("cdk-global-scrollblock"),e&&(ve.scrollBehavior=qe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e&&(ve.scrollBehavior=ct,qe.scrollBehavior=Zt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ce=this._document.body,ve=this._viewportRuler.getViewportSize();return Ce.scrollHeight>ve.height||Ce.scrollWidth>ve.width}}class me{constructor(ie,Ce,ve,qe){this._scrollDispatcher=ie,this._ngZone=Ce,this._viewportRuler=ve,this._config=qe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ie){this._overlayRef=ie}enable(){if(this._scrollSubscription)return;const ie=this._scrollDispatcher.scrolled(0).pipe((0,L.h)(Ce=>!Ce||!this._overlayRef.overlayElement.contains(Ce.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ie.subscribe(()=>{const Ce=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ce-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ie.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Z{enable(){}disable(){}attach(){}}function A(De,ie){return ie.some(Ce=>De.bottomCe.bottom||De.rightCe.right)}function V(De,ie){return ie.some(Ce=>De.topCe.bottom||De.leftCe.right)}class O{constructor(ie,Ce,ve,qe){this._scrollDispatcher=ie,this._viewportRuler=Ce,this._ngZone=ve,this._config=qe,this._scrollSubscription=null}attach(ie){this._overlayRef=ie}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 Ce=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ve,height:qe}=this._viewportRuler.getViewportSize();A(Ce,[{width:ve,height:qe,bottom:qe,right:ve,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 P=(()=>{class De{constructor(Ce,ve,qe,ct){this._scrollDispatcher=Ce,this._viewportRuler=ve,this._ngZone=qe,this.noop=()=>new Z,this.close=Zt=>new me(this._scrollDispatcher,this._ngZone,this._viewportRuler,Zt),this.block=()=>new R(this._viewportRuler,this._document),this.reposition=Zt=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,Zt),this._document=ct}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(t.mF),v.LFG(t.rL),v.LFG(v.R0b),v.LFG(i.K0))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();class D{constructor(ie){if(this.scrollStrategy=new Z,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ie){const Ce=Object.keys(ie);for(const ve of Ce)void 0!==ie[ve]&&(this[ve]=ie[ve])}}}class re{constructor(ie,Ce,ve,qe,ct){this.offsetX=ve,this.offsetY=qe,this.panelClass=ct,this.originX=ie.originX,this.originY=ie.originY,this.overlayX=Ce.overlayX,this.overlayY=Ce.overlayY}}class Q{constructor(ie,Ce){this.connectionPair=ie,this.scrollableViewProperties=Ce}}let ge=(()=>{class De{constructor(Ce){this._attachedOverlays=[],this._document=Ce}ngOnDestroy(){this.detach()}add(Ce){this.remove(Ce),this._attachedOverlays.push(Ce)}remove(Ce){const ve=this._attachedOverlays.indexOf(Ce);ve>-1&&this._attachedOverlays.splice(ve,1),0===this._attachedOverlays.length&&this.detach()}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(i.K0))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Se=(()=>{class De extends ge{constructor(Ce,ve){super(Ce),this._ngZone=ve,this._keydownListener=qe=>{const ct=this._attachedOverlays;for(let Zt=ct.length-1;Zt>-1;Zt--)if(ct[Zt]._keydownEvents.observers.length>0){const Cn=ct[Zt]._keydownEvents;this._ngZone?this._ngZone.run(()=>Cn.next(qe)):Cn.next(qe);break}}}add(Ce){super.add(Ce),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(i.K0),v.LFG(v.R0b,8))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),ke=(()=>{class De extends ge{constructor(Ce,ve,qe){super(Ce),this._platform=ve,this._ngZone=qe,this._cursorStyleIsSet=!1,this._pointerDownListener=ct=>{this._pointerDownEventTarget=(0,s.sA)(ct)},this._clickListener=ct=>{const Zt=(0,s.sA)(ct),Cn="click"===ct.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Zt;this._pointerDownEventTarget=null;const at=this._attachedOverlays.slice();for(let Xe=at.length-1;Xe>-1;Xe--){const it=at[Xe];if(it._outsidePointerEvents.observers.length<1||!it.hasAttached())continue;if(it.overlayElement.contains(Zt)||it.overlayElement.contains(Cn))break;const Ot=it._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ot.next(ct)):Ot.next(ct)}}}add(Ce){if(super.add(Ce),!this._isAttached){const ve=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ve)):this._addEventListeners(ve),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ve.style.cursor,ve.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Ce=this._document.body;Ce.removeEventListener("pointerdown",this._pointerDownListener,!0),Ce.removeEventListener("click",this._clickListener,!0),Ce.removeEventListener("auxclick",this._clickListener,!0),Ce.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ce.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ce){Ce.addEventListener("pointerdown",this._pointerDownListener,!0),Ce.addEventListener("click",this._clickListener,!0),Ce.addEventListener("auxclick",this._clickListener,!0),Ce.addEventListener("contextmenu",this._clickListener,!0)}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(i.K0),v.LFG(s.t4),v.LFG(v.R0b,8))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Rt=(()=>{class De{constructor(Ce,ve){this._platform=ve,this._document=Ce}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ce="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const qe=this._document.querySelectorAll(`.${Ce}[platform="server"], .${Ce}[platform="test"]`);for(let ct=0;ctthis._backdropClick.next(Ot),this._backdropTransitionendHandler=Ot=>{this._disposeBackdrop(Ot.target)},this._keydownEvents=new k.x,this._outsidePointerEvents=new k.x,qe.scrollStrategy&&(this._scrollStrategy=qe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=qe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ie){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ce=this._portalOutlet.attach(ie);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,j.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),"function"==typeof Ce?.onDestroy&&Ce.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ce}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ie=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ie}dispose(){const ie=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ie&&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(ie){ie!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ie,this.hasAttached()&&(ie.attach(this),this.updatePosition()))}updateSize(ie){this._config={...this._config,...ie},this._updateElementSize()}setDirection(ie){this._config={...this._config,direction:ie},this._updateElementDirection()}addPanelClass(ie){this._pane&&this._toggleClasses(this._pane,ie,!0)}removePanelClass(ie){this._pane&&this._toggleClasses(this._pane,ie,!1)}getDirection(){const ie=this._config.direction;return ie?"string"==typeof ie?ie:ie.value:"ltr"}updateScrollStrategy(ie){ie!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ie,this.hasAttached()&&(ie.attach(this),ie.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ie=this._pane.style;ie.width=(0,d.HM)(this._config.width),ie.height=(0,d.HM)(this._config.height),ie.minWidth=(0,d.HM)(this._config.minWidth),ie.minHeight=(0,d.HM)(this._config.minHeight),ie.maxWidth=(0,d.HM)(this._config.maxWidth),ie.maxHeight=(0,d.HM)(this._config.maxHeight)}_togglePointerEvents(ie){this._pane.style.pointerEvents=ie?"":"none"}_attachBackdrop(){const ie="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ie)})}):this._backdropElement.classList.add(ie)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ie=this._backdropElement;if(ie){if(this._animationsDisabled)return void this._disposeBackdrop(ie);ie.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ie.addEventListener("transitionend",this._backdropTransitionendHandler)}),ie.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ie)},500))}}_toggleClasses(ie,Ce,ve){const qe=(0,d.Eq)(Ce||[]).filter(ct=>!!ct);qe.length&&(ve?ie.classList.add(...qe):ie.classList.remove(...qe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ie=this._ngZone.onStable.pipe((0,$.R)((0,w.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()),ie.unsubscribe())})})}_disposeScrollStrategy(){const ie=this._scrollStrategy;ie&&(ie.disable(),ie.detach&&ie.detach())}_disposeBackdrop(ie){ie&&(ie.removeEventListener("click",this._backdropClickHandler),ie.removeEventListener("transitionend",this._backdropTransitionendHandler),ie.remove(),this._backdropElement===ie&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Mt="cdk-overlay-connected-position-bounding-box",yt=/([A-Za-z%]+)$/;class Ct{get positions(){return this._preferredPositions}constructor(ie,Ce,ve,qe,ct){this._viewportRuler=Ce,this._document=ve,this._platform=qe,this._overlayContainer=ct,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new k.x,this._resizeSubscription=U.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ie)}attach(ie){this._validatePositions(),ie.hostElement.classList.add(Mt),this._overlayRef=ie,this._boundingBox=ie.hostElement,this._pane=ie.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ie=this._originRect,Ce=this._overlayRect,ve=this._viewportRect,qe=this._containerRect,ct=[];let Zt;for(let Cn of this._preferredPositions){let at=this._getOriginPoint(ie,qe,Cn),Xe=this._getOverlayPoint(at,Ce,Cn),it=this._getOverlayFit(Xe,Ce,ve,Cn);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Cn,at);this._canFitWithFlexibleDimensions(it,Xe,ve)?ct.push({position:Cn,origin:at,overlayRect:Ce,boundingBoxRect:this._calculateBoundingBoxRect(at,Cn)}):(!Zt||Zt.overlayFit.visibleAreaat&&(at=it,Cn=Xe)}return this._isPushed=!1,void this._applyPosition(Cn.position,Cn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Zt.position,Zt.originPoint);this._applyPosition(Zt.position,Zt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ie=this._lastPosition;if(ie){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ce=this._getOriginPoint(this._originRect,this._containerRect,ie);this._applyPosition(ie,Ce)}else this.apply()}withScrollableContainers(ie){return this._scrollables=ie,this}withPositions(ie){return this._preferredPositions=ie,-1===ie.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ie){return this._viewportMargin=ie,this}withFlexibleDimensions(ie=!0){return this._hasFlexibleDimensions=ie,this}withGrowAfterOpen(ie=!0){return this._growAfterOpen=ie,this}withPush(ie=!0){return this._canPush=ie,this}withLockedPosition(ie=!0){return this._positionLocked=ie,this}setOrigin(ie){return this._origin=ie,this}withDefaultOffsetX(ie){return this._offsetX=ie,this}withDefaultOffsetY(ie){return this._offsetY=ie,this}withTransformOriginOn(ie){return this._transformOriginSelector=ie,this}_getOriginPoint(ie,Ce,ve){let qe,ct;if("center"==ve.originX)qe=ie.left+ie.width/2;else{const Zt=this._isRtl()?ie.right:ie.left,Cn=this._isRtl()?ie.left:ie.right;qe="start"==ve.originX?Zt:Cn}return Ce.left<0&&(qe-=Ce.left),ct="center"==ve.originY?ie.top+ie.height/2:"top"==ve.originY?ie.top:ie.bottom,Ce.top<0&&(ct-=Ce.top),{x:qe,y:ct}}_getOverlayPoint(ie,Ce,ve){let qe,ct;return qe="center"==ve.overlayX?-Ce.width/2:"start"===ve.overlayX?this._isRtl()?-Ce.width:0:this._isRtl()?0:-Ce.width,ct="center"==ve.overlayY?-Ce.height/2:"top"==ve.overlayY?0:-Ce.height,{x:ie.x+qe,y:ie.y+ct}}_getOverlayFit(ie,Ce,ve,qe){const ct=Sn(Ce);let{x:Zt,y:Cn}=ie,at=this._getOffset(qe,"x"),Xe=this._getOffset(qe,"y");at&&(Zt+=at),Xe&&(Cn+=Xe);let Pt=0-Cn,Wt=Cn+ct.height-ve.height,kt=this._subtractOverflows(ct.width,0-Zt,Zt+ct.width-ve.width),Je=this._subtractOverflows(ct.height,Pt,Wt),K=kt*Je;return{visibleArea:K,isCompletelyWithinViewport:ct.width*ct.height===K,fitsInViewportVertically:Je===ct.height,fitsInViewportHorizontally:kt==ct.width}}_canFitWithFlexibleDimensions(ie,Ce,ve){if(this._hasFlexibleDimensions){const qe=ve.bottom-Ce.y,ct=ve.right-Ce.x,Zt=rn(this._overlayRef.getConfig().minHeight),Cn=rn(this._overlayRef.getConfig().minWidth);return(ie.fitsInViewportVertically||null!=Zt&&Zt<=qe)&&(ie.fitsInViewportHorizontally||null!=Cn&&Cn<=ct)}return!1}_pushOverlayOnScreen(ie,Ce,ve){if(this._previousPushAmount&&this._positionLocked)return{x:ie.x+this._previousPushAmount.x,y:ie.y+this._previousPushAmount.y};const qe=Sn(Ce),ct=this._viewportRect,Zt=Math.max(ie.x+qe.width-ct.width,0),Cn=Math.max(ie.y+qe.height-ct.height,0),at=Math.max(ct.top-ve.top-ie.y,0),Xe=Math.max(ct.left-ve.left-ie.x,0);let it=0,Ot=0;return it=qe.width<=ct.width?Xe||-Zt:ie.xkt&&!this._isInitialRender&&!this._growAfterOpen&&(Zt=ie.y-kt/2)}if("end"===Ce.overlayX&&!qe||"start"===Ce.overlayX&&qe)Pt=ve.width-ie.x+this._viewportMargin,it=ie.x-this._viewportMargin;else if("start"===Ce.overlayX&&!qe||"end"===Ce.overlayX&&qe)Ot=ie.x,it=ve.right-ie.x;else{const Wt=Math.min(ve.right-ie.x+ve.left,ie.x),kt=this._lastBoundingBoxSize.width;it=2*Wt,Ot=ie.x-Wt,it>kt&&!this._isInitialRender&&!this._growAfterOpen&&(Ot=ie.x-kt/2)}return{top:Zt,left:Ot,bottom:Cn,right:Pt,width:it,height:ct}}_setBoundingBoxStyles(ie,Ce){const ve=this._calculateBoundingBoxRect(ie,Ce);!this._isInitialRender&&!this._growAfterOpen&&(ve.height=Math.min(ve.height,this._lastBoundingBoxSize.height),ve.width=Math.min(ve.width,this._lastBoundingBoxSize.width));const qe={};if(this._hasExactPosition())qe.top=qe.left="0",qe.bottom=qe.right=qe.maxHeight=qe.maxWidth="",qe.width=qe.height="100%";else{const ct=this._overlayRef.getConfig().maxHeight,Zt=this._overlayRef.getConfig().maxWidth;qe.height=(0,d.HM)(ve.height),qe.top=(0,d.HM)(ve.top),qe.bottom=(0,d.HM)(ve.bottom),qe.width=(0,d.HM)(ve.width),qe.left=(0,d.HM)(ve.left),qe.right=(0,d.HM)(ve.right),qe.alignItems="center"===Ce.overlayX?"center":"end"===Ce.overlayX?"flex-end":"flex-start",qe.justifyContent="center"===Ce.overlayY?"center":"bottom"===Ce.overlayY?"flex-end":"flex-start",ct&&(qe.maxHeight=(0,d.HM)(ct)),Zt&&(qe.maxWidth=(0,d.HM)(Zt))}this._lastBoundingBoxSize=ve,Lt(this._boundingBox.style,qe)}_resetBoundingBoxStyles(){Lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ie,Ce){const ve={},qe=this._hasExactPosition(),ct=this._hasFlexibleDimensions,Zt=this._overlayRef.getConfig();if(qe){const it=this._viewportRuler.getViewportScrollPosition();Lt(ve,this._getExactOverlayY(Ce,ie,it)),Lt(ve,this._getExactOverlayX(Ce,ie,it))}else ve.position="static";let Cn="",at=this._getOffset(Ce,"x"),Xe=this._getOffset(Ce,"y");at&&(Cn+=`translateX(${at}px) `),Xe&&(Cn+=`translateY(${Xe}px)`),ve.transform=Cn.trim(),Zt.maxHeight&&(qe?ve.maxHeight=(0,d.HM)(Zt.maxHeight):ct&&(ve.maxHeight="")),Zt.maxWidth&&(qe?ve.maxWidth=(0,d.HM)(Zt.maxWidth):ct&&(ve.maxWidth="")),Lt(this._pane.style,ve)}_getExactOverlayY(ie,Ce,ve){let qe={top:"",bottom:""},ct=this._getOverlayPoint(Ce,this._overlayRect,ie);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,ve)),"bottom"===ie.overlayY?qe.bottom=this._document.documentElement.clientHeight-(ct.y+this._overlayRect.height)+"px":qe.top=(0,d.HM)(ct.y),qe}_getExactOverlayX(ie,Ce,ve){let Zt,qe={left:"",right:""},ct=this._getOverlayPoint(Ce,this._overlayRect,ie);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,ve)),Zt=this._isRtl()?"end"===ie.overlayX?"left":"right":"end"===ie.overlayX?"right":"left","right"===Zt?qe.right=this._document.documentElement.clientWidth-(ct.x+this._overlayRect.width)+"px":qe.left=(0,d.HM)(ct.x),qe}_getScrollVisibility(){const ie=this._getOriginRect(),Ce=this._pane.getBoundingClientRect(),ve=this._scrollables.map(qe=>qe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:V(ie,ve),isOriginOutsideView:A(ie,ve),isOverlayClipped:V(Ce,ve),isOverlayOutsideView:A(Ce,ve)}}_subtractOverflows(ie,...Ce){return Ce.reduce((ve,qe)=>ve-Math.max(qe,0),ie)}_getNarrowedViewportRect(){const ie=this._document.documentElement.clientWidth,Ce=this._document.documentElement.clientHeight,ve=this._viewportRuler.getViewportScrollPosition();return{top:ve.top+this._viewportMargin,left:ve.left+this._viewportMargin,right:ve.left+ie-this._viewportMargin,bottom:ve.top+Ce-this._viewportMargin,width:ie-2*this._viewportMargin,height:Ce-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ie,Ce){return"x"===Ce?null==ie.offsetX?this._offsetX:ie.offsetX:null==ie.offsetY?this._offsetY:ie.offsetY}_validatePositions(){}_addPanelClasses(ie){this._pane&&(0,d.Eq)(ie).forEach(Ce=>{""!==Ce&&-1===this._appliedPanelClasses.indexOf(Ce)&&(this._appliedPanelClasses.push(Ce),this._pane.classList.add(Ce))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ie=>{this._pane.classList.remove(ie)}),this._appliedPanelClasses=[])}_getOriginRect(){const ie=this._origin;if(ie instanceof v.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}}}function Lt(De,ie){for(let Ce in ie)ie.hasOwnProperty(Ce)&&(De[Ce]=ie[Ce]);return De}function rn(De){if("number"!=typeof De&&null!=De){const[ie,Ce]=De.split(yt);return Ce&&"px"!==Ce?null:parseFloat(ie)}return De||null}function Sn(De){return{top:Math.floor(De.top),right:Math.floor(De.right),bottom:Math.floor(De.bottom),left:Math.floor(De.left),width:Math.floor(De.width),height:Math.floor(De.height)}}const st="cdk-global-overlay-wrapper";class Ze{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ie){const Ce=ie.getConfig();this._overlayRef=ie,this._width&&!Ce.width&&ie.updateSize({width:this._width}),this._height&&!Ce.height&&ie.updateSize({height:this._height}),ie.hostElement.classList.add(st),this._isDisposed=!1}top(ie=""){return this._bottomOffset="",this._topOffset=ie,this._alignItems="flex-start",this}left(ie=""){return this._xOffset=ie,this._xPosition="left",this}bottom(ie=""){return this._topOffset="",this._bottomOffset=ie,this._alignItems="flex-end",this}right(ie=""){return this._xOffset=ie,this._xPosition="right",this}start(ie=""){return this._xOffset=ie,this._xPosition="start",this}end(ie=""){return this._xOffset=ie,this._xPosition="end",this}width(ie=""){return this._overlayRef?this._overlayRef.updateSize({width:ie}):this._width=ie,this}height(ie=""){return this._overlayRef?this._overlayRef.updateSize({height:ie}):this._height=ie,this}centerHorizontally(ie=""){return this.left(ie),this._xPosition="center",this}centerVertically(ie=""){return this.top(ie),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ie=this._overlayRef.overlayElement.style,Ce=this._overlayRef.hostElement.style,ve=this._overlayRef.getConfig(),{width:qe,height:ct,maxWidth:Zt,maxHeight:Cn}=ve,at=!("100%"!==qe&&"100vw"!==qe||Zt&&"100%"!==Zt&&"100vw"!==Zt),Xe=!("100%"!==ct&&"100vh"!==ct||Cn&&"100%"!==Cn&&"100vh"!==Cn),it=this._xPosition,Ot=this._xOffset,Pt="rtl"===this._overlayRef.getConfig().direction;let Wt="",kt="",Je="";at?Je="flex-start":"center"===it?(Je="center",Pt?kt=Ot:Wt=Ot):Pt?"left"===it||"end"===it?(Je="flex-end",Wt=Ot):("right"===it||"start"===it)&&(Je="flex-start",kt=Ot):"left"===it||"start"===it?(Je="flex-start",Wt=Ot):("right"===it||"end"===it)&&(Je="flex-end",kt=Ot),ie.position=this._cssPosition,ie.marginLeft=at?"0":Wt,ie.marginTop=Xe?"0":this._topOffset,ie.marginBottom=this._bottomOffset,ie.marginRight=at?"0":kt,Ce.justifyContent=Je,Ce.alignItems=Xe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ie=this._overlayRef.overlayElement.style,Ce=this._overlayRef.hostElement,ve=Ce.style;Ce.classList.remove(st),ve.justifyContent=ve.alignItems=ie.marginTop=ie.marginBottom=ie.marginLeft=ie.marginRight=ie.position="",this._overlayRef=null,this._isDisposed=!0}}let Bt=(()=>{class De{constructor(Ce,ve,qe,ct){this._viewportRuler=Ce,this._document=ve,this._platform=qe,this._overlayContainer=ct}global(){return new Ze}flexibleConnectedTo(Ce){return new Ct(Ce,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(t.rL),v.LFG(i.K0),v.LFG(s.t4),v.LFG(Rt))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Jt=0,_n=(()=>{class De{constructor(Ce,ve,qe,ct,Zt,Cn,at,Xe,it,Ot,Pt,Wt){this.scrollStrategies=Ce,this._overlayContainer=ve,this._componentFactoryResolver=qe,this._positionBuilder=ct,this._keyboardDispatcher=Zt,this._injector=Cn,this._ngZone=at,this._document=Xe,this._directionality=it,this._location=Ot,this._outsideClickDispatcher=Pt,this._animationsModuleType=Wt}create(Ce){const ve=this._createHostElement(),qe=this._createPaneElement(ve),ct=this._createPortalOutlet(qe),Zt=new D(Ce);return Zt.direction=Zt.direction||this._directionality.value,new Ft(ct,ve,qe,Zt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ce){const ve=this._document.createElement("div");return ve.id="cdk-overlay-"+Jt++,ve.classList.add("cdk-overlay-pane"),Ce.appendChild(ve),ve}_createHostElement(){const Ce=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ce),Ce}_createPortalOutlet(Ce){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new F.u0(Ce,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.LFG(P),v.LFG(Rt),v.LFG(v._Vd),v.LFG(Bt),v.LFG(Se),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(i.K0),v.LFG(S.Is),v.LFG(i.Ye),v.LFG(ke),v.LFG(v.QbO,8))},De.\u0275prov=v.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const On=[{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"}],cn=new v.OlP("cdk-connected-overlay-scroll-strategy");let wt=(()=>{class De{constructor(Ce){this.elementRef=Ce}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.Y36(v.SBq))},De.\u0275dir=v.lG2({type:De,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),De})(),Ve=(()=>{class De{get offsetX(){return this._offsetX}set offsetX(Ce){this._offsetX=Ce,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Ce){this._offsetY=Ce,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ce){this._hasBackdrop=(0,d.Ig)(Ce)}get lockPosition(){return this._lockPosition}set lockPosition(Ce){this._lockPosition=(0,d.Ig)(Ce)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Ce){this._flexibleDimensions=(0,d.Ig)(Ce)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Ce){this._growAfterOpen=(0,d.Ig)(Ce)}get push(){return this._push}set push(Ce){this._push=(0,d.Ig)(Ce)}constructor(Ce,ve,qe,ct,Zt){this._overlay=Ce,this._dir=Zt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=U.w0.EMPTY,this._attachSubscription=U.w0.EMPTY,this._detachSubscription=U.w0.EMPTY,this._positionSubscription=U.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new F.UE(ve,qe),this._scrollStrategyFactory=ct,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(Ce){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Ce.origin&&this.open&&this._position.apply()),Ce.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=On);const Ce=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ce.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Ce.detachments().subscribe(()=>this.detach.emit()),Ce.keydownEvents().subscribe(ve=>{this.overlayKeydown.next(ve),ve.keyCode===M.hY&&!this.disableClose&&!(0,M.Vb)(ve)&&(ve.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ve=>{this.overlayOutsideClick.next(ve)})}_buildConfig(){const Ce=this._position=this.positionStrategy||this._createPositionStrategy(),ve=new D({direction:this._dir,positionStrategy:Ce,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ve.width=this.width),(this.height||0===this.height)&&(ve.height=this.height),(this.minWidth||0===this.minWidth)&&(ve.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ve.minHeight=this.minHeight),this.backdropClass&&(ve.backdropClass=this.backdropClass),this.panelClass&&(ve.panelClass=this.panelClass),ve}_updatePositionStrategy(Ce){const ve=this.positions.map(qe=>({originX:qe.originX,originY:qe.originY,overlayX:qe.overlayX,overlayY:qe.overlayY,offsetX:qe.offsetX||this.offsetX,offsetY:qe.offsetY||this.offsetY,panelClass:qe.panelClass||void 0}));return Ce.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ve).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Ce=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Ce),Ce}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof wt?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(Ce=>{this.backdropClick.emit(Ce)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,I.o)(()=>this.positionChange.observers.length>0)).subscribe(Ce=>{this.positionChange.emit(Ce),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return De.\u0275fac=function(Ce){return new(Ce||De)(v.Y36(_n),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(cn),v.Y36(S.Is,8))},De.\u0275dir=v.lG2({type:De,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"],standalone:!0,features:[v.TTD]}),De})();const He={provide:cn,deps:[_n],useFactory:function Be(De){return()=>De.scrollStrategies.reposition()}};let je=(()=>{class De{}return De.\u0275fac=function(Ce){return new(Ce||De)},De.\u0275mod=v.oAB({type:De}),De.\u0275inj=v.cJS({providers:[_n,He],imports:[S.vT,F.eL,t.Cl,t.Cl]}),De})()},2831:(It,be,a)=>{a.d(be,{Mq:()=>w,Oy:()=>A,_i:()=>M,i$:()=>F,kV:()=>pe,sA:()=>Z,t4:()=>d,ud:()=>s});var t=a(5879),i=a(6814);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let I,k,U,e,d=(()=>{class V{constructor(P){this._platformId=P,this.isBrowser=this._platformId?(0,i.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&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return V.\u0275fac=function(P){return new(P||V)(t.LFG(t.Lbi))},V.\u0275prov=t.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),s=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({}),V})();function F(V){return function S(){if(null==I&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?V:!!V.capture}function w(){if(null==U){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return U=!1,U;if("scrollBehavior"in document.documentElement.style)U=!0;else{const V=Element.prototype.scrollTo;U=!!V&&!/\{\s*\[native code\]\s*\}/.test(V.toString())}}return U}function M(){if("object"!=typeof document||!document)return 0;if(null==k){const V=document.createElement("div"),O=V.style;V.dir="rtl",O.width="1px",O.overflow="auto",O.visibility="hidden",O.pointerEvents="none",O.position="absolute";const P=document.createElement("div"),D=P.style;D.width="2px",D.height="1px",V.appendChild(P),document.body.appendChild(V),k=0,0===V.scrollLeft&&(V.scrollLeft=1,k=0===V.scrollLeft?1:2),V.remove()}return k}function pe(V){if(function R(){if(null==e){const V=typeof document<"u"?document.head:null;e=!(!V||!V.createShadowRoot&&!V.attachShadow)}return e}()){const O=V.getRootNode?V.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&O instanceof ShadowRoot)return O}return null}function Z(V){return V.composedPath?V.composedPath()[0]:V.target}function A(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(It,be,a)=>{a.d(be,{C5:()=>S,Pl:()=>me,UE:()=>F,eL:()=>A,en:()=>U,u0:()=>M});var t=a(5879),i=a(6814);class I{attach(P){return this._attachedHost=P,P.attach(this)}detach(){let P=this._attachedHost;null!=P&&(this._attachedHost=null,P.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(P){this._attachedHost=P}}class S extends I{constructor(P,D,re,ae,Q){super(),this.component=P,this.viewContainerRef=D,this.injector=re,this.componentFactoryResolver=ae,this.projectableNodes=Q}}class F extends I{constructor(P,D,re,ae){super(),this.templateRef=P,this.viewContainerRef=D,this.context=re,this.injector=ae}get origin(){return this.templateRef.elementRef}attach(P,D=this.context){return this.context=D,super.attach(P)}detach(){return this.context=void 0,super.detach()}}class k extends I{constructor(P){super(),this.element=P instanceof t.SBq?P.nativeElement:P}}class U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(P){return P instanceof S?(this._attachedPortal=P,this.attachComponentPortal(P)):P instanceof F?(this._attachedPortal=P,this.attachTemplatePortal(P)):this.attachDomPortal&&P instanceof k?(this._attachedPortal=P,this.attachDomPortal(P)):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(P){this._disposeFn=P}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class M extends U{constructor(P,D,re,ae,Q){super(),this.outletElement=P,this._componentFactoryResolver=D,this._appRef=re,this._defaultInjector=ae,this.attachDomPortal=fe=>{const ue=fe.element,ge=this._document.createComment("dom-portal");ue.parentNode.insertBefore(ge,ue),this.outletElement.appendChild(ue),this._attachedPortal=fe,super.setDisposeFn(()=>{ge.parentNode&&ge.parentNode.replaceChild(ue,ge)})},this._document=Q}attachComponentPortal(P){const re=(P.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(P.component);let ae;return P.viewContainerRef?(ae=P.viewContainerRef.createComponent(re,P.viewContainerRef.length,P.injector||P.viewContainerRef.injector,P.projectableNodes||void 0),this.setDisposeFn(()=>ae.destroy())):(ae=re.create(P.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(ae.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ae.hostView),ae.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ae)),this._attachedPortal=P,ae}attachTemplatePortal(P){let D=P.viewContainerRef,re=D.createEmbeddedView(P.templateRef,P.context,{injector:P.injector});return re.rootNodes.forEach(ae=>this.outletElement.appendChild(ae)),re.detectChanges(),this.setDisposeFn(()=>{let ae=D.indexOf(re);-1!==ae&&D.remove(ae)}),this._attachedPortal=P,re}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(P){return P.hostView.rootNodes[0]}}let me=(()=>{class O extends U{constructor(D,re,ae){super(),this._componentFactoryResolver=D,this._viewContainerRef=re,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=Q=>{const fe=Q.element,ue=this._document.createComment("dom-portal");Q.setAttachedHost(this),fe.parentNode.insertBefore(ue,fe),this._getRootNode().appendChild(fe),this._attachedPortal=Q,super.setDisposeFn(()=>{ue.parentNode&&ue.parentNode.replaceChild(fe,ue)})},this._document=ae}get portal(){return this._attachedPortal}set portal(D){this.hasAttached()&&!D&&!this._isInitialized||(this.hasAttached()&&super.detach(),D&&super.attach(D),this._attachedPortal=D||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(D){D.setAttachedHost(this);const re=null!=D.viewContainerRef?D.viewContainerRef:this._viewContainerRef,Q=(D.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(D.component),fe=re.createComponent(Q,re.length,D.injector||re.injector,D.projectableNodes||void 0);return re!==this._viewContainerRef&&this._getRootNode().appendChild(fe.hostView.rootNodes[0]),super.setDisposeFn(()=>fe.destroy()),this._attachedPortal=D,this._attachedRef=fe,this.attached.emit(fe),fe}attachTemplatePortal(D){D.setAttachedHost(this);const re=this._viewContainerRef.createEmbeddedView(D.templateRef,D.context,{injector:D.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=D,this._attachedRef=re,this.attached.emit(re),re}_getRootNode(){const D=this._viewContainerRef.element.nativeElement;return D.nodeType===D.ELEMENT_NODE?D:D.parentNode}}return O.\u0275fac=function(D){return new(D||O)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(i.K0))},O.\u0275dir=t.lG2({type:O,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),O})(),A=(()=>{class O{}return O.\u0275fac=function(D){return new(D||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({}),O})()},532:(It,be,a)=>{a.d(be,{xd:()=>yt,ZD:()=>Ve,x0:()=>On,N7:()=>Jt,mF:()=>Lt,Cl:()=>Be,rL:()=>rt});var t=a(2495),i=a(5879),v=a(8645),d=a(2096),s=a(5592),L=a(2438),j=a(927),$=a(6410),I=a(7394),S=a(2664),F=a(3997),k=a(9028),U=a(2181),w=a(9773),M=a(7921),e=a(9384),R=a(4664),pe=a(7081),me=a(2831),Z=a(6814),A=a(9388),V=a(3168);class O{}class D extends O{constructor(je){super(),this._data=je}connect(){return(0,S.b)(this._data)?this._data:(0,d.of)(this._data)}disconnect(){}}class ae{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(je,Ne,De,ie,Ce){je.forEachOperation((ve,qe,ct)=>{let Zt,Cn;null==ve.previousIndex?(Zt=this._insertView(()=>De(ve,qe,ct),ct,Ne,ie(ve)),Cn=Zt?1:0):null==ct?(this._detachAndCacheView(qe,Ne),Cn=3):(Zt=this._moveView(qe,ct,Ne,ie(ve)),Cn=2),Ce&&Ce({context:Zt?.context,operation:Cn,record:ve})})}detach(){for(const je of this._viewCache)je.destroy();this._viewCache=[]}_insertView(je,Ne,De,ie){const Ce=this._insertViewFromCache(Ne,De);if(Ce)return void(Ce.context.$implicit=ie);const ve=je();return De.createEmbeddedView(ve.templateRef,ve.context,ve.index)}_detachAndCacheView(je,Ne){const De=Ne.detach(je);this._maybeCacheView(De,Ne)}_moveView(je,Ne,De,ie){const Ce=De.get(je);return De.move(Ce,Ne),Ce.context.$implicit=ie,Ce}_maybeCacheView(je,Ne){if(this._viewCache.length0?Ce/this._itemSize:0;if(Ne.end>ie){const ct=Math.ceil(De/this._itemSize),Zt=Math.max(0,Math.min(ve,ie-ct));ve!=Zt&&(ve=Zt,Ce=Zt*this._itemSize,Ne.start=Math.floor(ve)),Ne.end=Math.max(0,Math.min(ie,Ne.start+ct))}const qe=Ce-Ne.start*this._itemSize;if(qe0&&(Ne.end=Math.min(ie,Ne.end+Zt),Ne.start=Math.max(0,Math.floor(ve-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Ne),this._viewport.setRenderedContentOffset(this._itemSize*Ne.start),this._scrolledIndexChange.next(Math.floor(ve))}}function Mt(He){return He._scrollStrategy}let yt=(()=>{class He{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ft(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Ne){this._itemSize=(0,t.su)(Ne)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Ne){this._minBufferPx=(0,t.su)(Ne)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Ne){this._maxBufferPx=(0,t.su)(Ne)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return He.\u0275fac=function(Ne){return new(Ne||He)},He.\u0275dir=i.lG2({type:He,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[i._Bn([{provide:Rt,useFactory:Mt,deps:[(0,i.Gpc)(()=>He)]}]),i.TTD]}),He})(),Lt=(()=>{class He{constructor(Ne,De,ie){this._ngZone=Ne,this._platform=De,this._scrolled=new v.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ie}register(Ne){this.scrollContainers.has(Ne)||this.scrollContainers.set(Ne,Ne.elementScrolled().subscribe(()=>this._scrolled.next(Ne)))}deregister(Ne){const De=this.scrollContainers.get(Ne);De&&(De.unsubscribe(),this.scrollContainers.delete(Ne))}scrolled(Ne=20){return this._platform.isBrowser?new s.y(De=>{this._globalSubscription||this._addGlobalListener();const ie=Ne>0?this._scrolled.pipe((0,k.e)(Ne)).subscribe(De):this._scrolled.subscribe(De);return this._scrolledCount++,()=>{ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,d.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Ne,De)=>this.deregister(De)),this._scrolled.complete()}ancestorScrolled(Ne,De){const ie=this.getAncestorScrollContainers(Ne);return this.scrolled(De).pipe((0,U.h)(Ce=>!Ce||ie.indexOf(Ce)>-1))}getAncestorScrollContainers(Ne){const De=[];return this.scrollContainers.forEach((ie,Ce)=>{this._scrollableContainsElement(Ce,Ne)&&De.push(Ce)}),De}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Ne,De){let ie=(0,t.fI)(De),Ce=Ne.getElementRef().nativeElement;do{if(ie==Ce)return!0}while(ie=ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Ne=this._getWindow();return(0,L.R)(Ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.LFG(i.R0b),i.LFG(me.t4),i.LFG(Z.K0,8))},He.\u0275prov=i.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),rn=(()=>{class He{constructor(Ne,De,ie,Ce){this.elementRef=Ne,this.scrollDispatcher=De,this.ngZone=ie,this.dir=Ce,this._destroyed=new v.x,this._elementScrolled=new s.y(ve=>this.ngZone.runOutsideAngular(()=>(0,L.R)(this.elementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroyed)).subscribe(ve)))}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(Ne){const De=this.elementRef.nativeElement,ie=this.dir&&"rtl"==this.dir.value;null==Ne.left&&(Ne.left=ie?Ne.end:Ne.start),null==Ne.right&&(Ne.right=ie?Ne.start:Ne.end),null!=Ne.bottom&&(Ne.top=De.scrollHeight-De.clientHeight-Ne.bottom),ie&&0!=(0,me._i)()?(null!=Ne.left&&(Ne.right=De.scrollWidth-De.clientWidth-Ne.left),2==(0,me._i)()?Ne.left=Ne.right:1==(0,me._i)()&&(Ne.left=Ne.right?-Ne.right:Ne.right)):null!=Ne.right&&(Ne.left=De.scrollWidth-De.clientWidth-Ne.right),this._applyScrollToOptions(Ne)}_applyScrollToOptions(Ne){const De=this.elementRef.nativeElement;(0,me.Mq)()?De.scrollTo(Ne):(null!=Ne.top&&(De.scrollTop=Ne.top),null!=Ne.left&&(De.scrollLeft=Ne.left))}measureScrollOffset(Ne){const De="left",Ce=this.elementRef.nativeElement;if("top"==Ne)return Ce.scrollTop;if("bottom"==Ne)return Ce.scrollHeight-Ce.clientHeight-Ce.scrollTop;const ve=this.dir&&"rtl"==this.dir.value;return"start"==Ne?Ne=ve?"right":De:"end"==Ne&&(Ne=ve?De:"right"),ve&&2==(0,me._i)()?Ne==De?Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft:Ce.scrollLeft:ve&&1==(0,me._i)()?Ne==De?Ce.scrollLeft+Ce.scrollWidth-Ce.clientWidth:-Ce.scrollLeft:Ne==De?Ce.scrollLeft:Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.Y36(i.SBq),i.Y36(Lt),i.Y36(i.R0b),i.Y36(A.Is,8))},He.\u0275dir=i.lG2({type:He,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),He})(),rt=(()=>{class He{constructor(Ne,De,ie){this._platform=Ne,this._change=new v.x,this._changeListener=Ce=>{this._change.next(Ce)},this._document=ie,De.runOutsideAngular(()=>{if(Ne.isBrowser){const Ce=this._getWindow();Ce.addEventListener("resize",this._changeListener),Ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Ne=this._getWindow();Ne.removeEventListener("resize",this._changeListener),Ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Ne}getViewportRect(){const Ne=this.getViewportScrollPosition(),{width:De,height:ie}=this.getViewportSize();return{top:Ne.top,left:Ne.left,bottom:Ne.top+ie,right:Ne.left+De,height:ie,width:De}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Ne=this._document,De=this._getWindow(),ie=Ne.documentElement,Ce=ie.getBoundingClientRect();return{top:-Ce.top||Ne.body.scrollTop||De.scrollY||ie.scrollTop||0,left:-Ce.left||Ne.body.scrollLeft||De.scrollX||ie.scrollLeft||0}}change(Ne=20){return Ne>0?this._change.pipe((0,k.e)(Ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Ne.innerWidth,height:Ne.innerHeight}:{width:0,height:0}}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.LFG(me.t4),i.LFG(i.R0b),i.LFG(Z.K0,8))},He.\u0275prov=i.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();const Ye=new i.OlP("VIRTUAL_SCROLLABLE");let st=(()=>{class He extends rn{constructor(Ne,De,ie,Ce){super(Ne,De,ie,Ce)}measureViewportSize(Ne){const De=this.elementRef.nativeElement;return"horizontal"===Ne?De.clientWidth:De.clientHeight}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.Y36(i.SBq),i.Y36(Lt),i.Y36(i.R0b),i.Y36(A.Is,8))},He.\u0275dir=i.lG2({type:He,features:[i.qOj]}),He})();const Bt=typeof requestAnimationFrame<"u"?j.Z:$.E;let Jt=(()=>{class He extends st{get orientation(){return this._orientation}set orientation(Ne){this._orientation!==Ne&&(this._orientation=Ne,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Ne){this._appendOnly=(0,t.Ig)(Ne)}constructor(Ne,De,ie,Ce,ve,qe,ct,Zt){super(Ne,qe,ie,ve),this.elementRef=Ne,this._changeDetectorRef=De,this._scrollStrategy=Ce,this.scrollable=Zt,this._platform=(0,i.f3M)(me.t4),this._detachedSubject=new v.x,this._renderedRangeSubject=new v.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(Cn=>this._scrollStrategy.scrolledIndexChange.subscribe(at=>Promise.resolve().then(()=>this.ngZone.run(()=>Cn.next(at))))),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=I.w0.EMPTY,this._viewportChanges=ct.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,M.O)(null),(0,k.e)(0,Bt)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Ne){this.ngZone.runOutsideAngular(()=>{this._forOf=Ne,this._forOf.dataStream.pipe((0,w.R)(this._detachedSubject)).subscribe(De=>{const ie=De.length;ie!==this._dataLength&&(this._dataLength=ie,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Ne){return this.getElementRef().nativeElement.getBoundingClientRect()[Ne]}setTotalContentSize(Ne){this._totalContentSize!==Ne&&(this._totalContentSize=Ne,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Ne){(function Ze(He,je){return He.start==je.start&&He.end==je.end})(this._renderedRange,Ne)||(this.appendOnly&&(Ne={start:0,end:Math.max(this._renderedRange.end,Ne.end)}),this._renderedRangeSubject.next(this._renderedRange=Ne),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Ne,De="to-start"){Ne=this.appendOnly&&"to-start"===De?0:Ne;const Ce="horizontal"==this.orientation,ve=Ce?"X":"Y";let ct=`translate${ve}(${Number((Ce&&this.dir&&"rtl"==this.dir.value?-1:1)*Ne)}px)`;this._renderedContentOffset=Ne,"to-end"===De&&(ct+=` translate${ve}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=ct&&(this._renderedContentTransform=ct,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Ne,De="auto"){const ie={behavior:De};"horizontal"===this.orientation?ie.start=Ne:ie.top=Ne,this.scrollable.scrollTo(ie)}scrollToIndex(Ne,De="auto"){this._scrollStrategy.scrollToIndex(Ne,De)}measureScrollOffset(Ne){let De;return De=this.scrollable==this?ie=>super.measureScrollOffset(ie):ie=>this.scrollable.measureScrollOffset(ie),Math.max(0,De(Ne??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Ne){let De;const ve="rtl"==this.dir?.value;De="start"==Ne?ve?"right":"left":"end"==Ne?ve?"left":"right":Ne||("horizontal"===this.orientation?"left":"top");const qe=this.scrollable.measureBoundingClientRectWithScrollOffset(De);return this.elementRef.nativeElement.getBoundingClientRect()[De]-qe}measureRenderedContentSize(){const Ne=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Ne.offsetWidth:Ne.offsetHeight}measureRangeSize(Ne){return this._forOf?this._forOf.measureRangeSize(Ne,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Ne){Ne&&this._runAfterChangeDetection.push(Ne),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 Ne=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const De of Ne)De()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Rt,8),i.Y36(A.Is,8),i.Y36(Lt),i.Y36(rt),i.Y36(Ye,8))},He.\u0275cmp=i.Xpm({type:He,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Ne,De){if(1&Ne&&i.Gf(Se,7),2&Ne){let ie;i.iGM(ie=i.CRH())&&(De._contentWrapper=ie.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Ne,De){2&Ne&&i.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===De.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==De.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[i._Bn([{provide:rn,useFactory:(je,Ne)=>je||Ne,deps:[[new i.FiY,new i.tBr(Ye)],He]}]),i.qOj,i.jDz],ngContentSelectors:ke,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Ne,De){1&Ne&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA(),i._UZ(3,"div",2)),2&Ne&&(i.xp6(3),i.Udp("width",De._totalContentWidth)("height",De._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-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{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),He})();function _n(He,je,Ne){if(!Ne.getBoundingClientRect)return 0;const ie=Ne.getBoundingClientRect();return"horizontal"===He?"start"===je?ie.left:ie.right:"start"===je?ie.top:ie.bottom}let On=(()=>{class He{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Ne){this._cdkVirtualForOf=Ne,function P(He){return He&&"function"==typeof He.connect&&!(He instanceof V.c)}(Ne)?this._dataSourceChanges.next(Ne):this._dataSourceChanges.next(new D((0,S.b)(Ne)?Ne:Array.from(Ne||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Ne){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Ne?(De,ie)=>Ne(De+(this._renderedRange?this._renderedRange.start:0),ie):void 0}set cdkVirtualForTemplate(Ne){Ne&&(this._needsUpdate=!0,this._template=Ne)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Ne){this._viewRepeater.viewCacheSize=(0,t.su)(Ne)}constructor(Ne,De,ie,Ce,ve,qe){this._viewContainerRef=Ne,this._template=De,this._differs=ie,this._viewRepeater=Ce,this._viewport=ve,this.viewChange=new v.x,this._dataSourceChanges=new v.x,this.dataStream=this._dataSourceChanges.pipe((0,M.O)(null),(0,e.G)(),(0,R.w)(([ct,Zt])=>this._changeDataSource(ct,Zt)),(0,pe.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new v.x,this.dataStream.subscribe(ct=>{this._data=ct,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,w.R)(this._destroyed)).subscribe(ct=>{this._renderedRange=ct,this.viewChange.observers.length&&qe.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(Ne,De){if(Ne.start>=Ne.end)return 0;const ie=Ne.start-this._renderedRange.start,Ce=Ne.end-Ne.start;let ve,qe;for(let ct=0;ct-1;ct--){const Zt=this._viewContainerRef.get(ct+ie);if(Zt&&Zt.rootNodes.length){qe=Zt.rootNodes[Zt.rootNodes.length-1];break}}return ve&&qe?_n(De,"end",qe)-_n(De,"start",ve):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Ne=this._differ.diff(this._renderedItems);Ne?this._applyChanges(Ne):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((Ne,De)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Ne,De):De)),this._needsUpdate=!0)}_changeDataSource(Ne,De){return Ne&&Ne.disconnect(this),this._needsUpdate=!0,De?De.connect(this):(0,d.of)()}_updateContext(){const Ne=this._data.length;let De=this._viewContainerRef.length;for(;De--;){const ie=this._viewContainerRef.get(De);ie.context.index=this._renderedRange.start+De,ie.context.count=Ne,this._updateComputedContextProperties(ie.context),ie.detectChanges()}}_applyChanges(Ne){this._viewRepeater.applyChanges(Ne,this._viewContainerRef,(Ce,ve,qe)=>this._getEmbeddedViewArgs(Ce,qe),Ce=>Ce.item),Ne.forEachIdentityChange(Ce=>{this._viewContainerRef.get(Ce.currentIndex).context.$implicit=Ce.item});const De=this._data.length;let ie=this._viewContainerRef.length;for(;ie--;){const Ce=this._viewContainerRef.get(ie);Ce.context.index=this._renderedRange.start+ie,Ce.context.count=De,this._updateComputedContextProperties(Ce.context)}}_updateComputedContextProperties(Ne){Ne.first=0===Ne.index,Ne.last=Ne.index===Ne.count-1,Ne.even=Ne.index%2==0,Ne.odd=!Ne.even}_getEmbeddedViewArgs(Ne,De){return{templateRef:this._template,context:{$implicit:Ne.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:De}}}return He.\u0275fac=function(Ne){return new(Ne||He)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ge),i.Y36(Jt,4),i.Y36(i.R0b))},He.\u0275dir=i.lG2({type:He,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[i._Bn([{provide:ge,useClass:ae}])]}),He})(),Ve=(()=>{class He{}return He.\u0275fac=function(Ne){return new(Ne||He)},He.\u0275mod=i.oAB({type:He}),He.\u0275inj=i.cJS({}),He})(),Be=(()=>{class He{}return He.\u0275fac=function(Ne){return new(Ne||He)},He.\u0275mod=i.oAB({type:He}),He.\u0275inj=i.cJS({imports:[A.vT,Ve,A.vT,Ve]}),He})()},6814:(It,be,a)=>{a.d(be,{Do:()=>e,ED:()=>Ui,EM:()=>Go,HT:()=>d,JF:()=>ko,JJ:()=>en,K0:()=>L,Mx:()=>jo,NF:()=>yo,Nd:()=>nn,O5:()=>oi,Ov:()=>Zo,PC:()=>Xi,PM:()=>_o,RF:()=>bi,S$:()=>U,Ts:()=>bt,V_:()=>$,Ye:()=>R,b0:()=>M,bD:()=>Hn,dv:()=>rn,ez:()=>In,gd:()=>Zi,i8:()=>Ko,iq:()=>Oi,mk:()=>eo,n9:()=>nr,q:()=>v,qS:()=>Ao,rS:()=>ji,sg:()=>xo,tP:()=>pr,uU:()=>Ue,wE:()=>Q,w_:()=>s,zE:()=>or});var t=a(5879);let i=null;function v(){return i}function d(ne){i||(i=ne)}class s{}const L=new t.OlP("DocumentToken");let j=(()=>{class ne{historyGo(he){throw new Error("Not implemented")}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:function(){return(0,t.f3M)(I)},providedIn:"platform"}),ne})();const $=new t.OlP("Location Initialized");let I=(()=>{class ne extends j{constructor(){super(),this._doc=(0,t.f3M)(L),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(he){const et=v().getGlobalEventTarget(this._doc,"window");return et.addEventListener("popstate",he,!1),()=>et.removeEventListener("popstate",he)}onHashChange(he){const et=v().getGlobalEventTarget(this._doc,"window");return et.addEventListener("hashchange",he,!1),()=>et.removeEventListener("hashchange",he)}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(he){this._location.pathname=he}pushState(he,et,At){this._history.pushState(he,et,At)}replaceState(he,et,At){this._history.replaceState(he,et,At)}forward(){this._history.forward()}back(){this._history.back()}historyGo(he=0){this._history.go(he)}getState(){return this._history.state}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:function(){return new ne},providedIn:"platform"}),ne})();function S(ne,Fe){if(0==ne.length)return Fe;if(0==Fe.length)return ne;let he=0;return ne.endsWith("/")&&he++,Fe.startsWith("/")&&he++,2==he?ne+Fe.substring(1):1==he?ne+Fe:ne+"/"+Fe}function F(ne){const Fe=ne.match(/#|\?|$/),he=Fe&&Fe.index||ne.length;return ne.slice(0,he-("/"===ne[he-1]?1:0))+ne.slice(he)}function k(ne){return ne&&"?"!==ne[0]?"?"+ne:ne}let U=(()=>{class ne{historyGo(he){throw new Error("Not implemented")}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:function(){return(0,t.f3M)(M)},providedIn:"root"}),ne})();const w=new t.OlP("appBaseHref");let M=(()=>{class ne extends U{constructor(he,et){super(),this._platformLocation=he,this._removeListenerFns=[],this._baseHref=et??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}prepareExternalUrl(he){return S(this._baseHref,he)}path(he=!1){const et=this._platformLocation.pathname+k(this._platformLocation.search),At=this._platformLocation.hash;return At&&he?`${et}${At}`:et}pushState(he,et,At,pn){const Tn=this.prepareExternalUrl(At+k(pn));this._platformLocation.pushState(he,et,Tn)}replaceState(he,et,At,pn){const Tn=this.prepareExternalUrl(At+k(pn));this._platformLocation.replaceState(he,et,Tn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(he=0){this._platformLocation.historyGo?.(he)}}return ne.\u0275fac=function(he){return new(he||ne)(t.LFG(j),t.LFG(w,8))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),e=(()=>{class ne extends U{constructor(he,et){super(),this._platformLocation=he,this._baseHref="",this._removeListenerFns=[],null!=et&&(this._baseHref=et)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}path(he=!1){let et=this._platformLocation.hash;return null==et&&(et="#"),et.length>0?et.substring(1):et}prepareExternalUrl(he){const et=S(this._baseHref,he);return et.length>0?"#"+et:et}pushState(he,et,At,pn){let Tn=this.prepareExternalUrl(At+k(pn));0==Tn.length&&(Tn=this._platformLocation.pathname),this._platformLocation.pushState(he,et,Tn)}replaceState(he,et,At,pn){let Tn=this.prepareExternalUrl(At+k(pn));0==Tn.length&&(Tn=this._platformLocation.pathname),this._platformLocation.replaceState(he,et,Tn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(he=0){this._platformLocation.historyGo?.(he)}}return ne.\u0275fac=function(he){return new(he||ne)(t.LFG(j),t.LFG(w,8))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),R=(()=>{class ne{constructor(he){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=he;const et=this._locationStrategy.getBaseHref();this._basePath=function A(ne){if(new RegExp("^(https?:)?//").test(ne)){const[,he]=ne.split(/\/\/[^\/]+/);return he}return ne}(F(Z(et))),this._locationStrategy.onPopState(At=>{this._subject.emit({url:this.path(!0),pop:!0,state:At.state,type:At.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(he=!1){return this.normalize(this._locationStrategy.path(he))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(he,et=""){return this.path()==this.normalize(he+k(et))}normalize(he){return ne.stripTrailingSlash(function me(ne,Fe){if(!ne||!Fe.startsWith(ne))return Fe;const he=Fe.substring(ne.length);return""===he||["/",";","?","#"].includes(he[0])?he:Fe}(this._basePath,Z(he)))}prepareExternalUrl(he){return he&&"/"!==he[0]&&(he="/"+he),this._locationStrategy.prepareExternalUrl(he)}go(he,et="",At=null){this._locationStrategy.pushState(At,"",he,et),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+k(et)),At)}replaceState(he,et="",At=null){this._locationStrategy.replaceState(At,"",he,et),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+k(et)),At)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(he=0){this._locationStrategy.historyGo?.(he)}onUrlChange(he){return this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(et=>{this._notifyUrlChangeListeners(et.url,et.state)})),()=>{const et=this._urlChangeListeners.indexOf(he);this._urlChangeListeners.splice(et,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(he="",et){this._urlChangeListeners.forEach(At=>At(he,et))}subscribe(he,et,At){return this._subject.subscribe({next:he,error:et,complete:At})}}return ne.normalizeQueryParams=k,ne.joinWithSlash=S,ne.stripTrailingSlash=F,ne.\u0275fac=function(he){return new(he||ne)(t.LFG(U))},ne.\u0275prov=t.Yz7({token:ne,factory:function(){return function pe(){return new R((0,t.LFG)(U))}()},providedIn:"root"}),ne})();function Z(ne){return ne.replace(/\/index.html$/,"")}var O=(()=>((O=O||{})[O.Decimal=0]="Decimal",O[O.Percent=1]="Percent",O[O.Currency=2]="Currency",O[O.Scientific=3]="Scientific",O))(),P=(()=>((P=P||{})[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",P))(),D=(()=>((D=D||{})[D.Format=0]="Format",D[D.Standalone=1]="Standalone",D))(),re=(()=>((re=re||{})[re.Narrow=0]="Narrow",re[re.Abbreviated=1]="Abbreviated",re[re.Wide=2]="Wide",re[re.Short=3]="Short",re))(),ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.Medium=1]="Medium",ae[ae.Long=2]="Long",ae[ae.Full=3]="Full",ae))(),Q=(()=>((Q=Q||{})[Q.Decimal=0]="Decimal",Q[Q.Group=1]="Group",Q[Q.List=2]="List",Q[Q.PercentSign=3]="PercentSign",Q[Q.PlusSign=4]="PlusSign",Q[Q.MinusSign=5]="MinusSign",Q[Q.Exponential=6]="Exponential",Q[Q.SuperscriptingExponent=7]="SuperscriptingExponent",Q[Q.PerMille=8]="PerMille",Q[Q.Infinity=9]="Infinity",Q[Q.NaN=10]="NaN",Q[Q.TimeSeparator=11]="TimeSeparator",Q[Q.CurrencyDecimal=12]="CurrencyDecimal",Q[Q.CurrencyGroup=13]="CurrencyGroup",Q))();function yt(ne,Fe){return wt((0,t.cg1)(ne)[t.wAp.DateFormat],Fe)}function Ct(ne,Fe){return wt((0,t.cg1)(ne)[t.wAp.TimeFormat],Fe)}function Lt(ne,Fe){return wt((0,t.cg1)(ne)[t.wAp.DateTimeFormat],Fe)}function rn(ne,Fe){const he=(0,t.cg1)(ne),et=he[t.wAp.NumberSymbols][Fe];if(typeof et>"u"){if(Fe===Q.CurrencyDecimal)return he[t.wAp.NumberSymbols][Q.Decimal];if(Fe===Q.CurrencyGroup)return he[t.wAp.NumberSymbols][Q.Group]}return et}const Bt=t.kL8;function Jt(ne){if(!ne[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ne[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function wt(ne,Fe){for(let he=Fe;he>-1;he--)if(typeof ne[he]<"u")return ne[he];throw new Error("Locale data API: locale data undefined")}function Ve(ne){const[Fe,he]=ne.split(":");return{hours:+Fe,minutes:+he}}const Ne=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},ie=/((?:[^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 Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.ShortGMT=1]="ShortGMT",Ce[Ce.Long=2]="Long",Ce[Ce.Extended=3]="Extended",Ce))(),ve=(()=>((ve=ve||{})[ve.FullYear=0]="FullYear",ve[ve.Month=1]="Month",ve[ve.Date=2]="Date",ve[ve.Hours=3]="Hours",ve[ve.Minutes=4]="Minutes",ve[ve.Seconds=5]="Seconds",ve[ve.FractionalSeconds=6]="FractionalSeconds",ve[ve.Day=7]="Day",ve))(),qe=(()=>((qe=qe||{})[qe.DayPeriods=0]="DayPeriods",qe[qe.Days=1]="Days",qe[qe.Months=2]="Months",qe[qe.Eras=3]="Eras",qe))();function ct(ne,Fe,he,et){let At=function Qe(ne){if(se(ne))return ne;if("number"==typeof ne&&!isNaN(ne))return new Date(ne);if("string"==typeof ne){if(ne=ne.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ne)){const[At,pn=1,Tn=1]=ne.split("-").map(no=>+no);return Zt(At,pn-1,Tn)}const he=parseFloat(ne);if(!isNaN(ne-he))return new Date(he);let et;if(et=ne.match(Ne))return function dt(ne){const Fe=new Date(0);let he=0,et=0;const At=ne[8]?Fe.setUTCFullYear:Fe.setFullYear,pn=ne[8]?Fe.setUTCHours:Fe.setHours;ne[9]&&(he=Number(ne[9]+ne[10]),et=Number(ne[9]+ne[11])),At.call(Fe,Number(ne[1]),Number(ne[2])-1,Number(ne[3]));const Tn=Number(ne[4]||0)-he,no=Number(ne[5]||0)-et,Qo=Number(ne[6]||0),mo=Math.floor(1e3*parseFloat("0."+(ne[7]||0)));return pn.call(Fe,Tn,no,Qo,mo),Fe}(et)}const Fe=new Date(ne);if(!se(Fe))throw new Error(`Unable to convert "${ne}" into a date`);return Fe}(ne);Fe=Cn(he,Fe)||Fe;let no,Tn=[];for(;Fe;){if(no=ie.exec(Fe),!no){Tn.push(Fe);break}{Tn=Tn.concat(no.slice(1));const Bo=Tn.pop();if(!Bo)break;Fe=Bo}}let Qo=At.getTimezoneOffset();et&&(Qo=Vt(et,Qo),At=function mn(ne,Fe,he){const et=he?-1:1,At=ne.getTimezoneOffset();return function St(ne,Fe){return(ne=new Date(ne.getTime())).setMinutes(ne.getMinutes()+Fe),ne}(ne,et*(Vt(Fe,At)-At))}(At,et,!0));let mo="";return Tn.forEach(Bo=>{const wo=function ot(ne){if(We[ne])return We[ne];let Fe;switch(ne){case"G":case"GG":case"GGG":Fe=Wt(qe.Eras,re.Abbreviated);break;case"GGGG":Fe=Wt(qe.Eras,re.Wide);break;case"GGGGG":Fe=Wt(qe.Eras,re.Narrow);break;case"y":Fe=Ot(ve.FullYear,1,0,!1,!0);break;case"yy":Fe=Ot(ve.FullYear,2,0,!0,!0);break;case"yyy":Fe=Ot(ve.FullYear,3,0,!1,!0);break;case"yyyy":Fe=Ot(ve.FullYear,4,0,!1,!0);break;case"Y":Fe=nt(1);break;case"YY":Fe=nt(2,!0);break;case"YYY":Fe=nt(3);break;case"YYYY":Fe=nt(4);break;case"M":case"L":Fe=Ot(ve.Month,1,1);break;case"MM":case"LL":Fe=Ot(ve.Month,2,1);break;case"MMM":Fe=Wt(qe.Months,re.Abbreviated);break;case"MMMM":Fe=Wt(qe.Months,re.Wide);break;case"MMMMM":Fe=Wt(qe.Months,re.Narrow);break;case"LLL":Fe=Wt(qe.Months,re.Abbreviated,D.Standalone);break;case"LLLL":Fe=Wt(qe.Months,re.Wide,D.Standalone);break;case"LLLLL":Fe=Wt(qe.Months,re.Narrow,D.Standalone);break;case"w":Fe=zt(1);break;case"ww":Fe=zt(2);break;case"W":Fe=zt(1,!0);break;case"d":Fe=Ot(ve.Date,1);break;case"dd":Fe=Ot(ve.Date,2);break;case"c":case"cc":Fe=Ot(ve.Day,1);break;case"ccc":Fe=Wt(qe.Days,re.Abbreviated,D.Standalone);break;case"cccc":Fe=Wt(qe.Days,re.Wide,D.Standalone);break;case"ccccc":Fe=Wt(qe.Days,re.Narrow,D.Standalone);break;case"cccccc":Fe=Wt(qe.Days,re.Short,D.Standalone);break;case"E":case"EE":case"EEE":Fe=Wt(qe.Days,re.Abbreviated);break;case"EEEE":Fe=Wt(qe.Days,re.Wide);break;case"EEEEE":Fe=Wt(qe.Days,re.Narrow);break;case"EEEEEE":Fe=Wt(qe.Days,re.Short);break;case"a":case"aa":case"aaa":Fe=Wt(qe.DayPeriods,re.Abbreviated);break;case"aaaa":Fe=Wt(qe.DayPeriods,re.Wide);break;case"aaaaa":Fe=Wt(qe.DayPeriods,re.Narrow);break;case"b":case"bb":case"bbb":Fe=Wt(qe.DayPeriods,re.Abbreviated,D.Standalone,!0);break;case"bbbb":Fe=Wt(qe.DayPeriods,re.Wide,D.Standalone,!0);break;case"bbbbb":Fe=Wt(qe.DayPeriods,re.Narrow,D.Standalone,!0);break;case"B":case"BB":case"BBB":Fe=Wt(qe.DayPeriods,re.Abbreviated,D.Format,!0);break;case"BBBB":Fe=Wt(qe.DayPeriods,re.Wide,D.Format,!0);break;case"BBBBB":Fe=Wt(qe.DayPeriods,re.Narrow,D.Format,!0);break;case"h":Fe=Ot(ve.Hours,1,-12);break;case"hh":Fe=Ot(ve.Hours,2,-12);break;case"H":Fe=Ot(ve.Hours,1);break;case"HH":Fe=Ot(ve.Hours,2);break;case"m":Fe=Ot(ve.Minutes,1);break;case"mm":Fe=Ot(ve.Minutes,2);break;case"s":Fe=Ot(ve.Seconds,1);break;case"ss":Fe=Ot(ve.Seconds,2);break;case"S":Fe=Ot(ve.FractionalSeconds,1);break;case"SS":Fe=Ot(ve.FractionalSeconds,2);break;case"SSS":Fe=Ot(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Fe=Je(Ce.Short);break;case"ZZZZZ":Fe=Je(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Fe=Je(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Fe=Je(Ce.Long);break;default:return null}return We[ne]=Fe,Fe}(Bo);mo+=wo?wo(At,he,Qo):"''"===Bo?"'":Bo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mo}function Zt(ne,Fe,he){const et=new Date(0);return et.setFullYear(ne,Fe,he),et.setHours(0,0,0),et}function Cn(ne,Fe){const he=function ue(ne){return(0,t.cg1)(ne)[t.wAp.LocaleId]}(ne);if(De[he]=De[he]||{},De[he][Fe])return De[he][Fe];let et="";switch(Fe){case"shortDate":et=yt(ne,ae.Short);break;case"mediumDate":et=yt(ne,ae.Medium);break;case"longDate":et=yt(ne,ae.Long);break;case"fullDate":et=yt(ne,ae.Full);break;case"shortTime":et=Ct(ne,ae.Short);break;case"mediumTime":et=Ct(ne,ae.Medium);break;case"longTime":et=Ct(ne,ae.Long);break;case"fullTime":et=Ct(ne,ae.Full);break;case"short":const At=Cn(ne,"shortTime"),pn=Cn(ne,"shortDate");et=at(Lt(ne,ae.Short),[At,pn]);break;case"medium":const Tn=Cn(ne,"mediumTime"),no=Cn(ne,"mediumDate");et=at(Lt(ne,ae.Medium),[Tn,no]);break;case"long":const Qo=Cn(ne,"longTime"),mo=Cn(ne,"longDate");et=at(Lt(ne,ae.Long),[Qo,mo]);break;case"full":const Bo=Cn(ne,"fullTime"),wo=Cn(ne,"fullDate");et=at(Lt(ne,ae.Full),[Bo,wo])}return et&&(De[he][Fe]=et),et}function at(ne,Fe){return Fe&&(ne=ne.replace(/\{([^}]+)}/g,function(he,et){return null!=Fe&&et in Fe?Fe[et]:he})),ne}function Xe(ne,Fe,he="-",et,At){let pn="";(ne<0||At&&ne<=0)&&(At?ne=1-ne:(ne=-ne,pn=he));let Tn=String(ne);for(;Tn.length0||no>-he)&&(no+=he),ne===ve.Hours)0===no&&-12===he&&(no=12);else if(ne===ve.FractionalSeconds)return function it(ne,Fe){return Xe(ne,3).substring(0,Fe)}(no,Fe);const Qo=rn(Tn,Q.MinusSign);return Xe(no,Fe,Qo,et,At)}}function Wt(ne,Fe,he=D.Format,et=!1){return function(At,pn){return function kt(ne,Fe,he,et,At,pn){switch(he){case qe.Months:return function ke(ne,Fe,he){const et=(0,t.cg1)(ne),pn=wt([et[t.wAp.MonthsFormat],et[t.wAp.MonthsStandalone]],Fe);return wt(pn,he)}(Fe,At,et)[ne.getMonth()];case qe.Days:return function Se(ne,Fe,he){const et=(0,t.cg1)(ne),pn=wt([et[t.wAp.DaysFormat],et[t.wAp.DaysStandalone]],Fe);return wt(pn,he)}(Fe,At,et)[ne.getDay()];case qe.DayPeriods:const Tn=ne.getHours(),no=ne.getMinutes();if(pn){const mo=function _n(ne){const Fe=(0,t.cg1)(ne);return Jt(Fe),(Fe[t.wAp.ExtraData][2]||[]).map(et=>"string"==typeof et?Ve(et):[Ve(et[0]),Ve(et[1])])}(Fe),Bo=function On(ne,Fe,he){const et=(0,t.cg1)(ne);Jt(et);const pn=wt([et[t.wAp.ExtraData][0],et[t.wAp.ExtraData][1]],Fe)||[];return wt(pn,he)||[]}(Fe,At,et),wo=mo.findIndex(gi=>{if(Array.isArray(gi)){const[Wo,Ci]=gi,zi=Tn>=Wo.hours&&no>=Wo.minutes,co=Tn0?Math.floor(At/60):Math.ceil(At/60);switch(ne){case Ce.Short:return(At>=0?"+":"")+Xe(Tn,2,pn)+Xe(Math.abs(At%60),2,pn);case Ce.ShortGMT:return"GMT"+(At>=0?"+":"")+Xe(Tn,1,pn);case Ce.Long:return"GMT"+(At>=0?"+":"")+Xe(Tn,2,pn)+":"+Xe(Math.abs(At%60),2,pn);case Ce.Extended:return 0===et?"Z":(At>=0?"+":"")+Xe(Tn,2,pn)+":"+Xe(Math.abs(At%60),2,pn);default:throw new Error(`Unknown zone width "${ne}"`)}}}const K=0,N=4;function Me(ne){return Zt(ne.getFullYear(),ne.getMonth(),ne.getDate()+(N-ne.getDay()))}function zt(ne,Fe=!1){return function(he,et){let At;if(Fe){const pn=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,Tn=he.getDate();At=1+Math.floor((Tn+pn)/7)}else{const pn=Me(he),Tn=function J(ne){const Fe=Zt(ne,K,1).getDay();return Zt(ne,0,1+(Fe<=N?N:N+7)-Fe)}(pn.getFullYear()),no=pn.getTime()-Tn.getTime();At=1+Math.round(no/6048e5)}return Xe(At,ne,rn(et,Q.MinusSign))}}function nt(ne,Fe=!1){return function(he,et){return Xe(Me(he).getFullYear(),ne,rn(et,Q.MinusSign),Fe)}}const We={};function Vt(ne,Fe){ne=ne.replace(/:/g,"");const he=Date.parse("Jan 01, 1970 00:00:00 "+ne)/6e4;return isNaN(he)?Fe:he}function se(ne){return ne instanceof Date&&!isNaN(ne.valueOf())}const ze=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(ne){const Fe=parseInt(ne);if(isNaN(Fe))throw new Error("Invalid integer literal when parsing "+ne);return Fe}let Vn=(()=>{class ne{}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275prov=t.Yz7({token:ne,factory:function(he){let et=null;return he?et=new he:(At=t.LFG(t.soG),et=new Xn(At)),et;var At},providedIn:"root"}),ne})();let Xn=(()=>{class ne extends Vn{constructor(he){super(),this.locale=he}getPluralCategory(he,et){switch(Bt(et||this.locale)(he)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}return ne.\u0275fac=function(he){return new(he||ne)(t.LFG(t.soG))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function Ao(ne,Fe,he){return(0,t.dwT)(ne,Fe,he)}function jo(ne,Fe){Fe=encodeURIComponent(Fe);for(const he of ne.split(";")){const et=he.indexOf("="),[At,pn]=-1==et?[he,""]:[he.slice(0,et),he.slice(et+1)];if(At.trim()===Fe)return decodeURIComponent(pn)}return null}const ei=/\s+/,bo=[];let eo=(()=>{class ne{constructor(he,et,At,pn){this._iterableDiffers=he,this._keyValueDiffers=et,this._ngEl=At,this._renderer=pn,this.initialClasses=bo,this.stateMap=new Map}set klass(he){this.initialClasses=null!=he?he.trim().split(ei):bo}set ngClass(he){this.rawClass="string"==typeof he?he.trim().split(ei):he}ngDoCheck(){for(const et of this.initialClasses)this._updateState(et,!0);const he=this.rawClass;if(Array.isArray(he)||he instanceof Set)for(const et of he)this._updateState(et,!0);else if(null!=he)for(const et of Object.keys(he))this._updateState(et,!!he[et]);this._applyStateDiff()}_updateState(he,et){const At=this.stateMap.get(he);void 0!==At?(At.enabled!==et&&(At.changed=!0,At.enabled=et),At.touched=!0):this.stateMap.set(he,{enabled:et,changed:!0,touched:!0})}_applyStateDiff(){for(const he of this.stateMap){const et=he[0],At=he[1];At.changed?(this._toggleClass(et,At.enabled),At.changed=!1):At.touched||(At.enabled&&this._toggleClass(et,!1),this.stateMap.delete(et)),At.touched=!1}}_toggleClass(he,et){(he=he.trim()).length>0&&he.split(ei).forEach(At=>{et?this._renderer.addClass(this._ngEl.nativeElement,At):this._renderer.removeClass(this._ngEl.nativeElement,At)})}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ne})();class Fo{constructor(Fe,he,et,At){this.$implicit=Fe,this.ngForOf=he,this.index=et,this.count=At}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 xo=(()=>{class ne{set ngForOf(he){this._ngForOf=he,this._ngForOfDirty=!0}set ngForTrackBy(he){this._trackByFn=he}get ngForTrackBy(){return this._trackByFn}constructor(he,et,At){this._viewContainer=he,this._template=et,this._differs=At,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(he){he&&(this._template=he)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const he=this._ngForOf;!this._differ&&he&&(this._differ=this._differs.find(he).create(this.ngForTrackBy))}if(this._differ){const he=this._differ.diff(this._ngForOf);he&&this._applyChanges(he)}}_applyChanges(he){const et=this._viewContainer;he.forEachOperation((At,pn,Tn)=>{if(null==At.previousIndex)et.createEmbeddedView(this._template,new Fo(At.item,this._ngForOf,-1,-1),null===Tn?void 0:Tn);else if(null==Tn)et.remove(null===pn?void 0:pn);else if(null!==pn){const no=et.get(pn);et.move(no,Tn),Do(no,At)}});for(let At=0,pn=et.length;At{Do(et.get(At.currentIndex),At)})}static ngTemplateContextGuard(he,et){return!0}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ne})();function Do(ne,Fe){ne.context.$implicit=Fe.item}let oi=(()=>{class ne{constructor(he,et){this._viewContainer=he,this._context=new Ti,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=et}set ngIf(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}set ngIfThen(he){Fn("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}set ngIfElse(he){Fn("ngIfElse",he),this._elseTemplateRef=he,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(he,et){return!0}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.s_b),t.Y36(t.Rgc))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ne})();class Ti{constructor(){this.$implicit=null,this.ngIf=null}}function Fn(ne,Fe){if(Fe&&!Fe.createEmbeddedView)throw new Error(`${ne} must be a TemplateRef, but received '${(0,t.AaK)(Fe)}'.`)}class Mi{constructor(Fe,he){this._viewContainerRef=Fe,this._templateRef=he,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Fe){Fe&&!this._created?this.create():!Fe&&this._created&&this.destroy()}}let bi=(()=>{class ne{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(he){this._defaultViews.push(he)}_matchCase(he){const et=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||et,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),et}_updateDefaultCases(he){if(this._defaultViews.length>0&&he!==this._defaultUsed){this._defaultUsed=he;for(const et of this._defaultViews)et.enforceState(he)}}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ne})(),nr=(()=>{class ne{constructor(he,et,At){this.ngSwitch=At,At._addCase(),this._view=new Mi(he,et)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(bi,9))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ne})(),Ui=(()=>{class ne{constructor(he,et,At){At._addDefault(new Mi(he,et))}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(bi,9))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ne})(),Oi=(()=>{class ne{constructor(he){this._localization=he,this._caseViews={}}set ngPlural(he){this._updateView(he)}addCase(he,et){this._caseViews[he]=et}_updateView(he){this._clearViews();const At=function vo(ne,Fe,he,et){let At=`=${ne}`;if(Fe.indexOf(At)>-1||(At=he.getPluralCategory(ne,et),Fe.indexOf(At)>-1))return At;if(Fe.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${ne}"`)}(he,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[At])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(he){he&&(this._activeView=he,this._activeView.create())}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(Vn))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),ne})(),or=(()=>{class ne{constructor(he,et,At,pn){this.value=he;const Tn=!isNaN(Number(he));pn.addCase(Tn?`=${he}`:he,new Mi(At,et))}}return ne.\u0275fac=function(he){return new(he||ne)(t.$8M("ngPluralCase"),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(Oi,1))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngPluralCase",""]],standalone:!0}),ne})(),Xi=(()=>{class ne{constructor(he,et,At){this._ngEl=he,this._differs=et,this._renderer=At,this._ngStyle=null,this._differ=null}set ngStyle(he){this._ngStyle=he,!this._differ&&he&&(this._differ=this._differs.find(he).create())}ngDoCheck(){if(this._differ){const he=this._differ.diff(this._ngStyle);he&&this._applyChanges(he)}}_setStyle(he,et){const[At,pn]=he.split("."),Tn=-1===At.indexOf("-")?void 0:t.JOm.DashCase;null!=et?this._renderer.setStyle(this._ngEl.nativeElement,At,pn?`${et}${pn}`:et,Tn):this._renderer.removeStyle(this._ngEl.nativeElement,At,Tn)}_applyChanges(he){he.forEachRemovedItem(et=>this._setStyle(et.key,null)),he.forEachAddedItem(et=>this._setStyle(et.key,et.currentValue)),he.forEachChangedItem(et=>this._setStyle(et.key,et.currentValue))}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ne})(),pr=(()=>{class ne{constructor(he){this._viewContainerRef=he,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(he){if(he.ngTemplateOutlet||he.ngTemplateOutletInjector){const et=this._viewContainerRef;if(this._viewRef&&et.remove(et.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:At,ngTemplateOutletContext:pn,ngTemplateOutletInjector:Tn}=this;this._viewRef=et.createEmbeddedView(At,pn,Tn?{injector:Tn}:void 0)}else this._viewRef=null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.s_b))},ne.\u0275dir=t.lG2({type:ne,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),ne})();function lo(ne,Fe){return new t.vHH(2100,!1)}class Oo{createSubscription(Fe,he){return(0,t.rg0)(()=>Fe.subscribe({next:he,error:et=>{throw et}}))}dispose(Fe){(0,t.rg0)(()=>Fe.unsubscribe())}}class Po{createSubscription(Fe,he){return Fe.then(he,et=>{throw et})}dispose(Fe){}}const qo=new Po,Vo=new Oo;let Zo=(()=>{class ne{constructor(he){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=he}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(he){return this._obj?he!==this._obj?(this._dispose(),this.transform(he)):this._latestValue:(he&&this._subscribe(he),this._latestValue)}_subscribe(he){this._obj=he,this._strategy=this._selectStrategy(he),this._subscription=this._strategy.createSubscription(he,et=>this._updateLatestValue(he,et))}_selectStrategy(he){if((0,t.QGY)(he))return qo;if((0,t.F4k)(he))return Vo;throw lo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(he,et){he===this._obj&&(this._latestValue=et,this._ref.markForCheck())}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.sBO,16))},ne.\u0275pipe=t.Yjl({name:"async",type:ne,pure:!1,standalone:!0}),ne})(),Ko=(()=>{class ne{transform(he){if(null==he)return null;if("string"!=typeof he)throw lo();return he.toLowerCase()}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275pipe=t.Yjl({name:"lowercase",type:ne,pure:!0,standalone:!0}),ne})();const _i=/(?:[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 ji=(()=>{class ne{transform(he){if(null==he)return null;if("string"!=typeof he)throw lo();return he.replace(_i,et=>et[0].toUpperCase()+et.slice(1).toLowerCase())}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275pipe=t.Yjl({name:"titlecase",type:ne,pure:!0,standalone:!0}),ne})(),Zi=(()=>{class ne{transform(he){if(null==he)return null;if("string"!=typeof he)throw lo();return he.toUpperCase()}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275pipe=t.Yjl({name:"uppercase",type:ne,pure:!0,standalone:!0}),ne})();const jn=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),so=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ue=(()=>{class ne{constructor(he,et,At){this.locale=he,this.defaultTimezone=et,this.defaultOptions=At}transform(he,et,At,pn){if(null==he||""===he||he!=he)return null;try{return ct(he,et??this.defaultOptions?.dateFormat??"mediumDate",pn||this.locale,At??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Tn){throw lo()}}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.soG,16),t.Y36(jn,24),t.Y36(so,24))},ne.\u0275pipe=t.Yjl({name:"date",type:ne,pure:!0,standalone:!0}),ne})(),bt=(()=>{class ne{transform(he){return JSON.stringify(he,null,2)}}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275pipe=t.Yjl({name:"json",type:ne,pure:!1,standalone:!0}),ne})(),nn=(()=>{class ne{constructor(he){this.differs=he,this.keyValues=[],this.compareFn=fn}transform(he,et=fn){if(!he||!(he instanceof Map)&&"object"!=typeof he)return null;this.differ||(this.differ=this.differs.find(he).create());const At=this.differ.diff(he),pn=et!==this.compareFn;return At&&(this.keyValues=[],At.forEachItem(Tn=>{this.keyValues.push(function Ht(ne,Fe){return{key:ne,value:Fe}}(Tn.key,Tn.currentValue))})),(At||pn)&&(this.keyValues.sort(et),this.compareFn=et),this.keyValues}}return ne.\u0275fac=function(he){return new(he||ne)(t.Y36(t.aQg,16))},ne.\u0275pipe=t.Yjl({name:"keyvalue",type:ne,pure:!1,standalone:!0}),ne})();function fn(ne,Fe){const he=ne.key,et=Fe.key;if(he===et)return 0;if(void 0===he)return 1;if(void 0===et)return-1;if(null===he)return 1;if(null===et)return-1;if("string"==typeof he&&"string"==typeof et)return he{class ne{constructor(he){this._locale=he}transform(he,et,At){if(!function bn(ne){return!(null==ne||""===ne||ne!=ne)}(he))return null;At=At||this._locale;try{return function $e(ne,Fe,he){return function ee(ne,Fe,he,et,At,pn,Tn=!1){let no="",Qo=!1;if(isFinite(ne)){let mo=function qt(ne){let et,At,pn,Tn,no,Fe=Math.abs(ne)+"",he=0;for((At=Fe.indexOf("."))>-1&&(Fe=Fe.replace(".","")),(pn=Fe.search(/e/i))>0?(At<0&&(At=pn),At+=+Fe.slice(pn+1),Fe=Fe.substring(0,pn)):At<0&&(At=Fe.length),pn=0;"0"===Fe.charAt(pn);pn++);if(pn===(no=Fe.length))et=[0],At=1;else{for(no--;"0"===Fe.charAt(no);)no--;for(At-=pn,et=[],Tn=0;pn<=no;pn++,Tn++)et[Tn]=Number(Fe.charAt(pn))}return At>22&&(et=et.splice(0,21),he=At-1,At=1),{digits:et,exponent:he,integerLen:At}}(ne);Tn&&(mo=function Xt(ne){if(0===ne.digits[0])return ne;const Fe=ne.digits.length-ne.integerLen;return ne.exponent?ne.exponent+=2:(0===Fe?ne.digits.push(0,0):1===Fe&&ne.digits.push(0),ne.integerLen+=2),ne}(mo));let Bo=Fe.minInt,wo=Fe.minFrac,gi=Fe.maxFrac;if(pn){const ar=pn.match(ze);if(null===ar)throw new Error(`${pn} is not a valid digit info`);const kr=ar[1],Dr=ar[3],cr=ar[5];null!=kr&&(Bo=zn(kr)),null!=Dr&&(wo=zn(Dr)),null!=cr?gi=zn(cr):null!=Dr&&wo>gi&&(gi=wo)}!function Un(ne,Fe,he){if(Fe>he)throw new Error(`The minimum number of digits after fraction (${Fe}) is higher than the maximum (${he}).`);let et=ne.digits,At=et.length-ne.integerLen;const pn=Math.min(Math.max(Fe,At),he);let Tn=pn+ne.integerLen,no=et[Tn];if(Tn>0){et.splice(Math.max(ne.integerLen,Tn));for(let wo=Tn;wo=5)if(Tn-1<0){for(let wo=0;wo>Tn;wo--)et.unshift(0),ne.integerLen++;et.unshift(1),ne.integerLen++}else et[Tn-1]++;for(;At=mo?Ci.pop():Qo=!1),gi>=10?1:0},0);Bo&&(et.unshift(Bo),ne.integerLen++)}(mo,wo,gi);let Wo=mo.digits,Ci=mo.integerLen;const zi=mo.exponent;let co=[];for(Qo=Wo.every(ar=>!ar);Ci0?co=Wo.splice(Ci,Wo.length):(co=Wo,Wo=[0]);const gr=[];for(Wo.length>=Fe.lgSize&&gr.unshift(Wo.splice(-Fe.lgSize,Wo.length).join(""));Wo.length>Fe.gSize;)gr.unshift(Wo.splice(-Fe.gSize,Wo.length).join(""));Wo.length&&gr.unshift(Wo.join("")),no=gr.join(rn(he,et)),co.length&&(no+=rn(he,At)+co.join("")),zi&&(no+=rn(he,Q.Exponential)+"+"+zi)}else no=rn(he,Q.Infinity);return no=ne<0&&!Qo?Fe.negPre+no+Fe.negSuf:Fe.posPre+no+Fe.posSuf,no}(ne,function Tt(ne,Fe="-"){const he={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},et=ne.split(";"),At=et[0],pn=et[1],Tn=-1!==At.indexOf(".")?At.split("."):[At.substring(0,At.lastIndexOf("0")+1),At.substring(At.lastIndexOf("0")+1)],no=Tn[0],Qo=Tn[1]||"";he.posPre=no.substring(0,no.indexOf("#"));for(let Bo=0;Bo{class ne{}return ne.\u0275fac=function(he){return new(he||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({}),ne})();const Hn="browser",Gn="server";function yo(ne){return ne===Hn}function _o(ne){return ne===Gn}let Go=(()=>{class ne{}return ne.\u0275prov=(0,t.Yz7)({token:ne,providedIn:"root",factory:()=>new Co((0,t.LFG)(L),window)}),ne})();class Co{constructor(Fe,he){this.document=Fe,this.window=he,this.offset=()=>[0,0]}setOffset(Fe){this.offset=Array.isArray(Fe)?()=>Fe:Fe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Fe){this.supportsScrolling()&&this.window.scrollTo(Fe[0],Fe[1])}scrollToAnchor(Fe){if(!this.supportsScrolling())return;const he=function yi(ne,Fe){const he=ne.getElementById(Fe)||ne.getElementsByName(Fe)[0];if(he)return he;if("function"==typeof ne.createTreeWalker&&ne.body&&"function"==typeof ne.body.attachShadow){const et=ne.createTreeWalker(ne.body,NodeFilter.SHOW_ELEMENT);let At=et.currentNode;for(;At;){const pn=At.shadowRoot;if(pn){const Tn=pn.getElementById(Fe)||pn.querySelector(`[name="${Fe}"]`);if(Tn)return Tn}At=et.nextNode()}}return null}(this.document,Fe);he&&(this.scrollToElement(he),he.focus())}setHistoryScrollRestoration(Fe){if(this.supportScrollRestoration()){const he=this.window.history;he&&he.scrollRestoration&&(he.scrollRestoration=Fe)}}scrollToElement(Fe){const he=Fe.getBoundingClientRect(),et=he.left+this.window.pageXOffset,At=he.top+this.window.pageYOffset,pn=this.offset();this.window.scrollTo(et-pn[0],At-pn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Fe=fi(this.window.history)||fi(Object.getPrototypeOf(this.window.history));return!(!Fe||!Fe.writable&&!Fe.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function fi(ne){return Object.getOwnPropertyDescriptor(ne,"scrollRestoration")}class ko{}},9862:(It,be,a)=>{a.d(be,{Ed:()=>mt,JF:()=>ze,PD:()=>se,WM:()=>U,eN:()=>Mt,jN:()=>k});var t=a(5879),i=a(2096),v=a(5592),d=a(9666),s=a(6328),L=a(2181),j=a(7398),$=a(4716),I=a(4664),S=a(6814);class F{}class k{}class U{constructor(H){this.normalizedNames=new Map,this.lazyUpdate=null,H?"string"==typeof H?this.lazyInit=()=>{this.headers=new Map,H.split("\n").forEach(Te=>{const $e=Te.indexOf(":");if($e>0){const Tt=Te.slice(0,$e),Xt=Tt.toLowerCase(),qt=Te.slice($e+1).trim();this.maybeSetNormalizedName(Tt,Xt),this.headers.has(Xt)?this.headers.get(Xt).push(qt):this.headers.set(Xt,[qt])}})}:typeof Headers<"u"&&H instanceof Headers?(this.headers=new Map,H.forEach((Te,$e)=>{this.setHeaderEntries($e,Te)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(H).forEach(([Te,$e])=>{this.setHeaderEntries(Te,$e)})}:this.headers=new Map}has(H){return this.init(),this.headers.has(H.toLowerCase())}get(H){this.init();const Te=this.headers.get(H.toLowerCase());return Te&&Te.length>0?Te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(H){return this.init(),this.headers.get(H.toLowerCase())||null}append(H,Te){return this.clone({name:H,value:Te,op:"a"})}set(H,Te){return this.clone({name:H,value:Te,op:"s"})}delete(H,Te){return this.clone({name:H,value:Te,op:"d"})}maybeSetNormalizedName(H,Te){this.normalizedNames.has(Te)||this.normalizedNames.set(Te,H)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(H=>this.applyUpdate(H)),this.lazyUpdate=null))}copyFrom(H){H.init(),Array.from(H.headers.keys()).forEach(Te=>{this.headers.set(Te,H.headers.get(Te)),this.normalizedNames.set(Te,H.normalizedNames.get(Te))})}clone(H){const Te=new U;return Te.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,Te.lazyUpdate=(this.lazyUpdate||[]).concat([H]),Te}applyUpdate(H){const Te=H.name.toLowerCase();switch(H.op){case"a":case"s":let $e=H.value;if("string"==typeof $e&&($e=[$e]),0===$e.length)return;this.maybeSetNormalizedName(H.name,Te);const Tt=("a"===H.op?this.headers.get(Te):void 0)||[];Tt.push(...$e),this.headers.set(Te,Tt);break;case"d":const Xt=H.value;if(Xt){let qt=this.headers.get(Te);if(!qt)return;qt=qt.filter(Un=>-1===Xt.indexOf(Un)),0===qt.length?(this.headers.delete(Te),this.normalizedNames.delete(Te)):this.headers.set(Te,qt)}else this.headers.delete(Te),this.normalizedNames.delete(Te)}}setHeaderEntries(H,Te){const $e=(Array.isArray(Te)?Te:[Te]).map(Xt=>Xt.toString()),Tt=H.toLowerCase();this.headers.set(Tt,$e),this.maybeSetNormalizedName(H,Tt)}forEach(H){this.init(),Array.from(this.normalizedNames.keys()).forEach(Te=>H(this.normalizedNames.get(Te),this.headers.get(Te)))}}class M{encodeKey(H){return me(H)}encodeValue(H){return me(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}const R=/%(\d[a-f0-9])/gi,pe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(ee){return encodeURIComponent(ee).replace(R,(H,Te)=>pe[Te]??H)}function Z(ee){return`${ee}`}class A{constructor(H={}){if(this.updates=null,this.cloneFrom=null,this.encoder=H.encoder||new M,H.fromString){if(H.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function e(ee,H){const Te=new Map;return ee.length>0&&ee.replace(/^\?/,"").split("&").forEach(Tt=>{const Xt=Tt.indexOf("="),[qt,Un]=-1==Xt?[H.decodeKey(Tt),""]:[H.decodeKey(Tt.slice(0,Xt)),H.decodeValue(Tt.slice(Xt+1))],zn=Te.get(qt)||[];zn.push(Un),Te.set(qt,zn)}),Te}(H.fromString,this.encoder)}else H.fromObject?(this.map=new Map,Object.keys(H.fromObject).forEach(Te=>{const $e=H.fromObject[Te],Tt=Array.isArray($e)?$e.map(Z):[Z($e)];this.map.set(Te,Tt)})):this.map=null}has(H){return this.init(),this.map.has(H)}get(H){this.init();const Te=this.map.get(H);return Te?Te[0]:null}getAll(H){return this.init(),this.map.get(H)||null}keys(){return this.init(),Array.from(this.map.keys())}append(H,Te){return this.clone({param:H,value:Te,op:"a"})}appendAll(H){const Te=[];return Object.keys(H).forEach($e=>{const Tt=H[$e];Array.isArray(Tt)?Tt.forEach(Xt=>{Te.push({param:$e,value:Xt,op:"a"})}):Te.push({param:$e,value:Tt,op:"a"})}),this.clone(Te)}set(H,Te){return this.clone({param:H,value:Te,op:"s"})}delete(H,Te){return this.clone({param:H,value:Te,op:"d"})}toString(){return this.init(),this.keys().map(H=>{const Te=this.encoder.encodeKey(H);return this.map.get(H).map($e=>Te+"="+this.encoder.encodeValue($e)).join("&")}).filter(H=>""!==H).join("&")}clone(H){const Te=new A({encoder:this.encoder});return Te.cloneFrom=this.cloneFrom||this,Te.updates=(this.updates||[]).concat(H),Te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(H=>this.map.set(H,this.cloneFrom.map.get(H))),this.updates.forEach(H=>{switch(H.op){case"a":case"s":const Te=("a"===H.op?this.map.get(H.param):void 0)||[];Te.push(Z(H.value)),this.map.set(H.param,Te);break;case"d":if(void 0===H.value){this.map.delete(H.param);break}{let $e=this.map.get(H.param)||[];const Tt=$e.indexOf(Z(H.value));-1!==Tt&&$e.splice(Tt,1),$e.length>0?this.map.set(H.param,$e):this.map.delete(H.param)}}}),this.cloneFrom=this.updates=null)}}class O{constructor(){this.map=new Map}set(H,Te){return this.map.set(H,Te),this}get(H){return this.map.has(H)||this.map.set(H,H.defaultValue()),this.map.get(H)}delete(H){return this.map.delete(H),this}has(H){return this.map.has(H)}keys(){return this.map.keys()}}function D(ee){return typeof ArrayBuffer<"u"&&ee instanceof ArrayBuffer}function re(ee){return typeof Blob<"u"&&ee instanceof Blob}function ae(ee){return typeof FormData<"u"&&ee instanceof FormData}class fe{constructor(H,Te,$e,Tt){let Xt;if(this.url=Te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=H.toUpperCase(),function P(ee){switch(ee){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Tt?(this.body=void 0!==$e?$e:null,Xt=Tt):Xt=$e,Xt&&(this.reportProgress=!!Xt.reportProgress,this.withCredentials=!!Xt.withCredentials,Xt.responseType&&(this.responseType=Xt.responseType),Xt.headers&&(this.headers=Xt.headers),Xt.context&&(this.context=Xt.context),Xt.params&&(this.params=Xt.params)),this.headers||(this.headers=new U),this.context||(this.context=new O),this.params){const qt=this.params.toString();if(0===qt.length)this.urlWithParams=Te;else{const Un=Te.indexOf("?");this.urlWithParams=Te+(-1===Un?"?":UnXn.set(Ao,H.setHeaders[Ao]),zn)),H.setParams&&(Vn=Object.keys(H.setParams).reduce((Xn,Ao)=>Xn.set(Ao,H.setParams[Ao]),Vn)),new fe(Te,$e,Xt,{params:Vn,headers:zn,context:vo,reportProgress:Un,responseType:Tt,withCredentials:qt})}}var ue=(()=>((ue=ue||{})[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue))();class ge{constructor(H,Te=200,$e="OK"){this.headers=H.headers||new U,this.status=void 0!==H.status?H.status:Te,this.statusText=H.statusText||$e,this.url=H.url||null,this.ok=this.status>=200&&this.status<300}}class Se extends ge{constructor(H={}){super(H),this.type=ue.ResponseHeader}clone(H={}){return new Se({headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class ke extends ge{constructor(H={}){super(H),this.type=ue.Response,this.body=void 0!==H.body?H.body:null}clone(H={}){return new ke({body:void 0!==H.body?H.body:this.body,headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class Rt extends ge{constructor(H){super(H,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${H.url||"(unknown url)"}`:`Http failure response for ${H.url||"(unknown url)"}: ${H.status} ${H.statusText}`,this.error=H.error||null}}function Ft(ee,H){return{body:H,headers:ee.headers,context:ee.context,observe:ee.observe,params:ee.params,reportProgress:ee.reportProgress,responseType:ee.responseType,withCredentials:ee.withCredentials}}let Mt=(()=>{class ee{constructor(Te){this.handler=Te}request(Te,$e,Tt={}){let Xt;if(Te instanceof fe)Xt=Te;else{let zn,Vn;zn=Tt.headers instanceof U?Tt.headers:new U(Tt.headers),Tt.params&&(Vn=Tt.params instanceof A?Tt.params:new A({fromObject:Tt.params})),Xt=new fe(Te,$e,void 0!==Tt.body?Tt.body:null,{headers:zn,context:Tt.context,params:Vn,reportProgress:Tt.reportProgress,responseType:Tt.responseType||"json",withCredentials:Tt.withCredentials})}const qt=(0,i.of)(Xt).pipe((0,s.b)(zn=>this.handler.handle(zn)));if(Te instanceof fe||"events"===Tt.observe)return qt;const Un=qt.pipe((0,L.h)(zn=>zn instanceof ke));switch(Tt.observe||"body"){case"body":switch(Xt.responseType){case"arraybuffer":return Un.pipe((0,j.U)(zn=>{if(null!==zn.body&&!(zn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zn.body}));case"blob":return Un.pipe((0,j.U)(zn=>{if(null!==zn.body&&!(zn.body instanceof Blob))throw new Error("Response is not a Blob.");return zn.body}));case"text":return Un.pipe((0,j.U)(zn=>{if(null!==zn.body&&"string"!=typeof zn.body)throw new Error("Response is not a string.");return zn.body}));default:return Un.pipe((0,j.U)(zn=>zn.body))}case"response":return Un;default:throw new Error(`Unreachable: unhandled observe type ${Tt.observe}}`)}}delete(Te,$e={}){return this.request("DELETE",Te,$e)}get(Te,$e={}){return this.request("GET",Te,$e)}head(Te,$e={}){return this.request("HEAD",Te,$e)}jsonp(Te,$e){return this.request("JSONP",Te,{params:(new A).append($e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,$e={}){return this.request("OPTIONS",Te,$e)}patch(Te,$e,Tt={}){return this.request("PATCH",Te,Ft(Tt,$e))}post(Te,$e,Tt={}){return this.request("POST",Te,Ft(Tt,$e))}put(Te,$e,Tt={}){return this.request("PUT",Te,Ft(Tt,$e))}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(F))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function st(ee,H){return H(ee)}function Ze(ee,H){return(Te,$e)=>H.intercept(Te,{handle:Tt=>ee(Tt,$e)})}const Jt=new t.OlP(""),_n=new t.OlP(""),On=new t.OlP("");function cn(){let ee=null;return(H,Te)=>{null===ee&&(ee=((0,t.f3M)(Jt,{optional:!0})??[]).reduceRight(Ze,st));const $e=(0,t.f3M)(t.HDt),Tt=$e.add();return ee(H,Te).pipe((0,$.x)(()=>$e.remove(Tt)))}}let Be,wt=(()=>{class ee extends F{constructor(Te,$e){super(),this.backend=Te,this.injector=$e,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(Te){if(null===this.chain){const Tt=Array.from(new Set([...this.injector.get(_n),...this.injector.get(On,[])]));this.chain=Tt.reduceRight((Xt,qt)=>function Bt(ee,H,Te){return($e,Tt)=>Te.runInContext(()=>H($e,Xt=>ee(Xt,Tt)))}(Xt,qt,this.injector),st)}const $e=this.pendingTasks.add();return this.chain(Te,Tt=>this.backend.handle(Tt)).pipe((0,$.x)(()=>this.pendingTasks.remove($e)))}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(k),t.LFG(t.lqb))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),Ve=0;class ie{}function Ce(){return"object"==typeof window?window:{}}let ve=(()=>{class ee{constructor(Te,$e){this.callbackMap=Te,this.document=$e,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Ve++}handle(Te){if("JSONP"!==Te.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Te.responseType)throw new Error("JSONP requests must use Json response type.");if(Te.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new v.y($e=>{const Tt=this.nextCallback(),Xt=Te.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Tt}$1`),qt=this.document.createElement("script");qt.src=Xt;let Un=null,zn=!1;this.callbackMap[Tt]=Ao=>{delete this.callbackMap[Tt],Un=Ao,zn=!0};const Vn=()=>{qt.parentNode&&qt.parentNode.removeChild(qt),delete this.callbackMap[Tt]};return qt.addEventListener("load",Ao=>{this.resolvedPromise.then(()=>{Vn(),zn?($e.next(new ke({body:Un,status:200,statusText:"OK",url:Xt})),$e.complete()):$e.error(new Rt({url:Xt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),qt.addEventListener("error",Ao=>{Vn(),$e.error(new Rt({error:Ao,status:0,statusText:"JSONP Error",url:Xt}))}),this.document.body.appendChild(qt),$e.next({type:ue.Sent}),()=>{zn||this.removeListeners(qt),Vn()}})}removeListeners(Te){Be||(Be=this.document.implementation.createHTMLDocument()),Be.adoptNode(Te)}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(ie),t.LFG(S.K0))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function qe(ee,H){return"JSONP"===ee.method?(0,t.f3M)(ve).handle(ee):H(ee)}const Zt=/^\)\]\}',?\n/;let at=(()=>{class ee{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new t.vHH(-2800,!1);const $e=this.xhrFactory;return($e.\u0275loadImpl?(0,d.D)($e.\u0275loadImpl()):(0,i.of)(null)).pipe((0,I.w)(()=>new v.y(Xt=>{const qt=$e.build();if(qt.open(Te.method,Te.urlWithParams),Te.withCredentials&&(qt.withCredentials=!0),Te.headers.forEach((bo,eo)=>qt.setRequestHeader(bo,eo.join(","))),Te.headers.has("Accept")||qt.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const bo=Te.detectContentTypeHeader();null!==bo&&qt.setRequestHeader("Content-Type",bo)}if(Te.responseType){const bo=Te.responseType.toLowerCase();qt.responseType="json"!==bo?bo:"text"}const Un=Te.serializeBody();let zn=null;const Vn=()=>{if(null!==zn)return zn;const bo=qt.statusText||"OK",eo=new U(qt.getAllResponseHeaders()),hi=function Cn(ee){return"responseURL"in ee&&ee.responseURL?ee.responseURL:/^X-Request-URL:/m.test(ee.getAllResponseHeaders())?ee.getResponseHeader("X-Request-URL"):null}(qt)||Te.url;return zn=new Se({headers:eo,status:qt.status,statusText:bo,url:hi}),zn},vo=()=>{let{headers:bo,status:eo,statusText:hi,url:si}=Vn(),Fo=null;204!==eo&&(Fo=typeof qt.response>"u"?qt.responseText:qt.response),0===eo&&(eo=Fo?200:0);let xo=eo>=200&&eo<300;if("json"===Te.responseType&&"string"==typeof Fo){const Do=Fo;Fo=Fo.replace(Zt,"");try{Fo=""!==Fo?JSON.parse(Fo):null}catch(Ri){Fo=Do,xo&&(xo=!1,Fo={error:Ri,text:Fo})}}xo?(Xt.next(new ke({body:Fo,headers:bo,status:eo,statusText:hi,url:si||void 0})),Xt.complete()):Xt.error(new Rt({error:Fo,headers:bo,status:eo,statusText:hi,url:si||void 0}))},Xn=bo=>{const{url:eo}=Vn(),hi=new Rt({error:bo,status:qt.status||0,statusText:qt.statusText||"Unknown Error",url:eo||void 0});Xt.error(hi)};let Ao=!1;const jo=bo=>{Ao||(Xt.next(Vn()),Ao=!0);let eo={type:ue.DownloadProgress,loaded:bo.loaded};bo.lengthComputable&&(eo.total=bo.total),"text"===Te.responseType&&qt.responseText&&(eo.partialText=qt.responseText),Xt.next(eo)},ei=bo=>{let eo={type:ue.UploadProgress,loaded:bo.loaded};bo.lengthComputable&&(eo.total=bo.total),Xt.next(eo)};return qt.addEventListener("load",vo),qt.addEventListener("error",Xn),qt.addEventListener("timeout",Xn),qt.addEventListener("abort",Xn),Te.reportProgress&&(qt.addEventListener("progress",jo),null!==Un&&qt.upload&&qt.upload.addEventListener("progress",ei)),qt.send(Un),Xt.next({type:ue.Sent}),()=>{qt.removeEventListener("error",Xn),qt.removeEventListener("abort",Xn),qt.removeEventListener("load",vo),qt.removeEventListener("timeout",Xn),Te.reportProgress&&(qt.removeEventListener("progress",jo),null!==Un&&qt.upload&&qt.upload.removeEventListener("progress",ei)),qt.readyState!==qt.DONE&&qt.abort()}})))}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(S.JF))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const Xe=new t.OlP("XSRF_ENABLED"),it="XSRF-TOKEN",Ot=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>it}),Pt="X-XSRF-TOKEN",Wt=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Pt});class kt{}let Je=(()=>{class ee{constructor(Te,$e,Tt){this.doc=Te,this.platform=$e,this.cookieName=Tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,S.Mx)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(S.K0),t.LFG(t.Lbi),t.LFG(Ot))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function K(ee,H){const Te=ee.url.toLowerCase();if(!(0,t.f3M)(Xe)||"GET"===ee.method||"HEAD"===ee.method||Te.startsWith("http://")||Te.startsWith("https://"))return H(ee);const $e=(0,t.f3M)(kt).getToken(),Tt=(0,t.f3M)(Wt);return null!=$e&&!ee.headers.has(Tt)&&(ee=ee.clone({headers:ee.headers.set(Tt,$e)})),H(ee)}let N=(()=>{class ee{constructor(Te){this.injector=Te}intercept(Te,$e){return this.injector.runInContext(()=>K(Te,Tt=>$e.handle(Tt)))}}return ee.\u0275fac=function(Te){return new(Te||ee)(t.LFG(t.lqb))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac}),ee})();var J=(()=>((J=J||{})[J.Interceptors=0]="Interceptors",J[J.LegacyInterceptors=1]="LegacyInterceptors",J[J.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",J[J.NoXsrfProtection=3]="NoXsrfProtection",J[J.JsonpSupport=4]="JsonpSupport",J[J.RequestsMadeViaParent=5]="RequestsMadeViaParent",J[J.Fetch=6]="Fetch",J))();function Me(ee,H){return{\u0275kind:ee,\u0275providers:H}}function zt(...ee){const H=[Mt,at,wt,{provide:F,useExisting:wt},{provide:k,useExisting:at},{provide:_n,useValue:K,multi:!0},{provide:Xe,useValue:!0},{provide:kt,useClass:Je}];for(const Te of ee)H.push(...Te.\u0275providers);return(0,t.MR2)(H)}const We=new t.OlP("LEGACY_INTERCEPTOR_FN");function Vt({cookieName:ee,headerName:H}){const Te=[];return void 0!==ee&&Te.push({provide:Ot,useValue:ee}),void 0!==H&&Te.push({provide:Wt,useValue:H}),Me(J.CustomXsrfConfiguration,Te)}let se=(()=>{class ee{static disable(){return{ngModule:ee,providers:[Me(J.NoXsrfProtection,[{provide:Xe,useValue:!1}]).\u0275providers]}}static withOptions(Te={}){return{ngModule:ee,providers:Vt(Te).\u0275providers}}}return ee.\u0275fac=function(Te){return new(Te||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({providers:[N,{provide:Jt,useExisting:N,multi:!0},{provide:kt,useClass:Je},Vt({cookieName:it,headerName:Pt}).\u0275providers,{provide:Xe,useValue:!0}]}),ee})(),ze=(()=>{class ee{}return ee.\u0275fac=function(Te){return new(Te||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({providers:[zt(Me(J.LegacyInterceptors,[{provide:We,useFactory:cn},{provide:_n,useExisting:We,multi:!0}]))]}),ee})(),mt=(()=>{class ee{}return ee.\u0275fac=function(Te){return new(Te||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({providers:[Me(J.JsonpSupport,[ve,{provide:ie,useFactory:Ce},{provide:_n,useValue:qe,multi:!0}]).\u0275providers]}),ee})()},5879:(It,be,a)=>{a.d(be,{$8M:()=>fc,$WT:()=>qo,$Z:()=>Mh,AFp:()=>Kt,ALo:()=>d6,AaK:()=>k,Akn:()=>$c,AsE:()=>e3,B6R:()=>nr,BQk:()=>H4,CHM:()=>Wc,CRH:()=>O6,Ckj:()=>Yu,DdM:()=>e6,Dn7:()=>f6,DyG:()=>fl,EEQ:()=>Pi,EJc:()=>x_,EiD:()=>Z1,EpF:()=>_0,F$t:()=>b0,F4k:()=>y0,FYo:()=>sh,FiY:()=>os,G48:()=>K_,Gf:()=>x6,GfV:()=>ah,GkF:()=>H2,Gpc:()=>M,Gre:()=>nf,GuJ:()=>ee,HDt:()=>q6,Hsn:()=>S0,Ikx:()=>t3,JOm:()=>Or,JVY:()=>xd,JZr:()=>Z,Jf7:()=>c4,Jzz:()=>rf,KtG:()=>Xs,L6k:()=>dp,LAX:()=>Dd,LFG:()=>ot,LSH:()=>Bs,Lbi:()=>En,Lck:()=>zv,MAs:()=>m0,MGl:()=>Y4,MMx:()=>Gf,MR2:()=>Rl,NdJ:()=>$2,O4$:()=>ht,Ojb:()=>gn,OlP:()=>li,Oqu:()=>X2,P3R:()=>q1,PXZ:()=>H_,Q6J:()=>R2,QGY:()=>Y2,QbO:()=>on,Qsj:()=>t4,R0b:()=>Es,RDi:()=>Ed,Rgc:()=>Qh,SBq:()=>Wu,Sil:()=>O_,Suo:()=>D6,TTD:()=>ws,TgZ:()=>R4,Tol:()=>B0,Udp:()=>K2,UuU:()=>oh,VKq:()=>t6,VuI:()=>T5,W1O:()=>A6,WD2:()=>Nr,WFA:()=>U2,WLB:()=>n6,X6Q:()=>Z_,XFs:()=>Ce,Xpm:()=>bi,Xq5:()=>q3,Xts:()=>$u,Y36:()=>Ku,YKP:()=>Uf,YNc:()=>p0,Yjl:()=>hr,Yz7:()=>Jt,Z0I:()=>wt,ZZ4:()=>R3,_Bn:()=>$f,_UZ:()=>B2,_Vd:()=>id,_c5:()=>p5,_uU:()=>Q0,aQg:()=>V3,c2e:()=>J6,cJS:()=>On,cg1:()=>o3,d8E:()=>n3,dDg:()=>k_,dqk:()=>at,dwT:()=>Tg,eBb:()=>pp,eFA:()=>pm,eJc:()=>T3,ekj:()=>J2,eoX:()=>cm,f3M:()=>St,g9A:()=>hn,gM2:()=>m6,h0i:()=>Wp,hGG:()=>h5,hYB:()=>G2,hij:()=>j4,iGM:()=>E6,ifc:()=>Yt,ip1:()=>K6,jDz:()=>Qf,kEZ:()=>o6,kL8:()=>mf,l5B:()=>i6,lG2:()=>pr,lcZ:()=>p6,lqb:()=>g,lri:()=>sm,mCW:()=>Nl,n5z:()=>ul,n_E:()=>K4,oAB:()=>Oi,oJD:()=>Ad,oxw:()=>M0,pB0:()=>Fl,q3G:()=>Qi,qFp:()=>b5,qLn:()=>rd,qOj:()=>w2,qZA:()=>V4,qbA:()=>r6,qzn:()=>Vc,rWj:()=>am,rg0:()=>xr,s9C:()=>j2,sBO:()=>J_,s_b:()=>q4,soG:()=>e2,tBr:()=>vc,tb:()=>I3,tp0:()=>Ba,uIk:()=>I2,vHH:()=>A,vpe:()=>Yl,wAp:()=>Eo,xi3:()=>h6,xp6:()=>vh,ynx:()=>B4,z2F:()=>Jp,z3N:()=>zs,zSh:()=>nd,zs3:()=>cs});var t=a(8645),i=a(7394),v=a(5619),d=a(5592),s=a(3019),L=a(2096),j=a(3020),$=a(4664),I=a(3997);function S(n){for(let o in n)if(n[o]===S)return o;throw Error("Could not find renamed property on target object.")}function F(n,o){for(const r in o)o.hasOwnProperty(r)&&!n.hasOwnProperty(r)&&(n[r]=o[r])}function k(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(k).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const o=n.toString();if(null==o)return""+o;const r=o.indexOf("\n");return-1===r?o:o.substring(0,r)}function U(n,o){return null==n||""===n?null===o?"":o:null==o||""===o?n:n+" "+o}const w=S({__forward_ref__:S});function M(n){return n.__forward_ref__=M,n.toString=function(){return k(this())},n}function e(n){return R(n)?n():n}function R(n){return"function"==typeof n&&n.hasOwnProperty(w)&&n.__forward_ref__===M}function pe(n){return n&&!!n.\u0275providers}const Z="https://g.co/ng/security#xss";class A extends Error{constructor(o,r){super(function V(n,o){return`NG0${Math.abs(n)}${o?": "+o:""}`}(o,r)),this.code=o}}function O(n){return"string"==typeof n?n:null==n?"":String(n)}function Q(n,o){throw new A(-201,!1)}function rt(n,o){null==n&&function Ye(n,o,r,l){throw new Error(`ASSERTION ERROR: ${n}`+(null==l?"":` [Expected=> ${r} ${l} ${o} <=Actual]`))}(o,n,null,"!=")}function Jt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function On(n){return{providers:n.providers||[],imports:n.imports||[]}}function cn(n){return Ve(n,je)||Ve(n,De)}function wt(n){return null!==cn(n)}function Ve(n,o){return n.hasOwnProperty(o)?n[o]:null}function He(n){return n&&(n.hasOwnProperty(Ne)||n.hasOwnProperty(ie))?n[Ne]:null}const je=S({\u0275prov:S}),Ne=S({\u0275inj:S}),De=S({ngInjectableDef:S}),ie=S({ngInjectorDef:S});var Ce=(()=>((Ce=Ce||{})[Ce.Default=0]="Default",Ce[Ce.Host=1]="Host",Ce[Ce.Self=2]="Self",Ce[Ce.SkipSelf=4]="SkipSelf",Ce[Ce.Optional=8]="Optional",Ce))();let ve;function ct(n){const o=ve;return ve=n,o}function Zt(n,o,r){const l=cn(n);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:r&Ce.Optional?null:void 0!==o?o:void Q(k(n))}const at=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Pt={},Wt="__NG_DI_FLAG__",kt="ngTempTokenPath",K=/\n/gm,J="__source";let Me;function nt(n){const o=Me;return Me=n,o}function We(n,o=Ce.Default){if(void 0===Me)throw new A(-203,!1);return null===Me?Zt(n,void 0,o):Me.get(n,o&Ce.Optional?null:void 0,o)}function ot(n,o=Ce.Default){return(function qe(){return ve}()||We)(e(n),o)}function St(n,o=Ce.Default){return ot(n,mn(o))}function mn(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Qe(n){const o=[];for(let r=0;r((lt=lt||{})[lt.OnPush=0]="OnPush",lt[lt.Default=1]="Default",lt))(),Yt=(()=>{return(n=Yt||(Yt={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Yt;var n})();const un={},Nt=[],pt=S({\u0275cmp:S}),gt=S({\u0275dir:S}),ee=S({\u0275pipe:S}),H=S({\u0275mod:S}),Te=S({\u0275fac:S}),$e=S({__NG_ELEMENT_ID__:S}),Tt=S({__NG_ENV_ID__:S});function Xt(n,o,r){let l=n.length;for(;;){const f=n.indexOf(o,r);if(-1===f)return f;if(0===f||n.charCodeAt(f-1)<=32){const _=o.length;if(f+_===l||n.charCodeAt(f+_)<=32)return f}r=f+1}}function qt(n,o,r){let l=0;for(;lo){b=_-1;break}}}for(;__?"":f[Et+1].toLowerCase();const ln=8&l?tn:null;if(ln&&-1!==Xt(ln,we,0)||2&l&&we!==tn){if(eo(l))return!1;b=!0}}}}else{if(!b&&!eo(l)&&!eo(te))return!1;if(b&&eo(te))continue;b=!1,l=te|1&l}}return eo(l)||b}function eo(n){return 0==(1&n)}function hi(n,o,r,l){if(null===o)return-1;let f=0;if(l||!r){let _=!1;for(;f-1)for(r++;r0?'="'+Y+'"':"")+"]"}else 8&l?f+="."+b:4&l&&(f+=" "+b);else""!==f&&!eo(b)&&(o+=oi(_,f),f=""),l=b,_=_||!eo(l);r++}return""!==f&&(o+=oi(_,f)),o}function bi(n){return Pe(()=>{const o=Zo(n),r={...o,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===lt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Yt.Emulated,styles:n.styles||Nt,_:null,schemas:n.schemas||null,tView:null,id:""};Ko(r);const l=n.dependencies;return r.directiveDefs=_i(l,!1),r.pipeDefs=_i(l,!0),r.id=function Zi(n){let o=0;const r=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const f of r)o=Math.imul(31,o)+f.charCodeAt(0)<<0;return o+=2147483648,"c"+o}(r),r})}function nr(n,o,r){const l=n.\u0275cmp;l.directiveDefs=_i(o,!1),l.pipeDefs=_i(r,!0)}function Ui(n){return lo(n)||Oo(n)}function Pr(n){return null!==n}function Oi(n){return Pe(()=>({type:n.type,bootstrap:n.bootstrap||Nt,declarations:n.declarations||Nt,imports:n.imports||Nt,exports:n.exports||Nt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Xi(n,o){if(null==n)return un;const r={};for(const l in n)if(n.hasOwnProperty(l)){let f=n[l],_=f;Array.isArray(f)&&(_=f[1],f=f[0]),r[f]=l,o&&(o[f]=_)}return r}function pr(n){return Pe(()=>{const o=Zo(n);return Ko(o),o})}function hr(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function lo(n){return n[pt]||null}function Oo(n){return n[gt]||null}function Po(n){return n[ee]||null}function qo(n){const o=lo(n)||Oo(n)||Po(n);return null!==o&&o.standalone}function Vo(n,o){const r=n[H]||null;if(!r&&!0===o)throw new Error(`Type ${k(n)} does not have '\u0275mod' property.`);return r}function Zo(n){const o={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:o,inputTransforms:null,inputConfig:n.inputs||un,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||Nt,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xi(n.inputs,o),outputs:Xi(n.outputs)}}function Ko(n){n.features?.forEach(o=>o(n))}function _i(n,o){if(!n)return null;const r=o?Po:Ui;return()=>("function"==typeof n?n():n).map(l=>r(l)).filter(Pr)}const Xo=0,jn=1,so=2,Ue=3,oe=4,Oe=5,Ge=6,bt=7,Ht=8,nn=9,fn=10,en=11,vn=12,Nn=13,bn=14,dn=15,xn=16,Wn=17,In=18,Hn=19,Gn=20,Zn=21,to=22,yo=23,_o=24,Jn=25,To=1,Go=2,Co=7,yi=9,ko=11;function ii(n){return Array.isArray(n)&&"object"==typeof n[To]}function mi(n){return Array.isArray(n)&&!0===n[To]}function ir(n){return 0!=(4&n.flags)}function Ii(n){return n.componentOffset>-1}function Ji(n){return 1==(1&n.flags)}function di(n){return!!n.template}function Le(n){return 0!=(512&n[so])}function ai(n,o){return n.hasOwnProperty(Te)?n[Te]:null}let hs=at.WeakRef??class Gs{constructor(o){this.ref=o}deref(){return this.ref}},$r=0,rr=null,Ur=!1;function ri(n){const o=rr;return rr=n,o}class fr{constructor(){this.id=$r++,this.ref=function Ds(n){return new hs(n)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[o,r]of this.producers){const l=r.producerNode.deref();if(null!=l&&r.atTrackingVersion===this.trackingVersion){if(l.producerPollStatus(r.seenValueVersion))return!0}else this.producers.delete(o),l?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const o=Ur;Ur=!0;try{for(const[r,l]of this.consumers){const f=l.consumerNode.deref();null!=f&&f.trackingVersion===l.atTrackingVersion?f.onConsumerDependencyMayHaveChanged():(this.consumers.delete(r),f?.producers.delete(this.id))}}finally{Ur=o}}producerAccessed(){if(Ur)throw new Error("");if(null===rr)return;let o=rr.producers.get(this.id);void 0===o?(o={consumerNode:rr.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:rr.trackingVersion},rr.producers.set(this.id,o),this.consumers.set(rr.id,o)):(o.seenValueVersion=this.valueVersion,o.atTrackingVersion=rr.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==rr?.consumerAllowSignalWrites}producerPollStatus(o){return this.valueVersion!==o||(this.onProducerUpdateValueVersion(),this.valueVersion!==o)}}let fs=null;function xr(n){const o=ri(null);try{return n()}finally{ri(o)}}const sr=()=>{};class Xr extends fr{constructor(o,r,l){super(),this.watch=o,this.schedule=r,this.dirty=!1,this.cleanupFn=sr,this.registerOnCleanup=f=>{this.cleanupFn=f},this.consumerAllowSignalWrites=l}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const o=ri(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=sr,this.watch(this.registerOnCleanup)}finally{ri(o)}}cleanup(){this.cleanupFn()}}class Nr{constructor(o,r,l){this.previousValue=o,this.currentValue=r,this.firstChange=l}isFirstChange(){return this.firstChange}}function ws(){return es}function es(n){return n.type.prototype.ngOnChanges&&(n.setInput=Ps),Ws}function Ws(){const n=Sa(this),o=n?.current;if(o){const r=n.previous;if(r===un)n.previous=o;else for(let l in o)r[l]=o[l];n.current=null,this.ngOnChanges(o)}}function Ps(n,o,r,l){const f=this.declaredInputs[r],_=Sa(n)||function Zs(n,o){return n[Is]=o}(n,{previous:un,current:null}),b=_.current||(_.current={}),Y=_.previous,te=Y[f];b[f]=new Nr(te&&te.currentValue,o,Y===un),n[l]=o}ws.ngInherit=!0;const Is="__ngSimpleChanges__";function Sa(n){return n[Is]||null}const Gi=function(n,o,r){},Fi="svg";function ci(n){for(;Array.isArray(n);)n=n[Xo];return n}function ne(n,o){return ci(o[n])}function Fe(n,o){return ci(o[n.index])}function et(n,o){return n.data[o]}function At(n,o){return n[o]}function pn(n,o){const r=o[n];return ii(r)?r:r[Xo]}function mo(n,o){return null==o?null:n[o]}function Bo(n){n[Wn]=0}function wo(n){1024&n[so]||(n[so]|=1024,Wo(n,1))}function gi(n){1024&n[so]&&(n[so]&=-1025,Wo(n,-1))}function Wo(n,o){let r=n[Ue];if(null===r)return;r[Oe]+=o;let l=r;for(r=r[Ue];null!==r&&(1===o&&1===l[Oe]||-1===o&&0===l[Oe]);)r[Oe]+=o,l=r,r=r[Ue]}const co={lFrame:tl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ea(){return co.bindingsEnabled}function Gr(){return null!==co.skipHydrationRootTNode}function wn(){return co.lFrame.lView}function Ho(){return co.lFrame.tView}function Wc(n){return co.lFrame.contextLView=n,n[Ht]}function Xs(n){return co.lFrame.contextLView=null,n}function Ei(){let n=ts();for(;null!==n&&64===n.type;)n=n.parent;return n}function ts(){return co.lFrame.currentTNode}function lr(n,o){const r=co.lFrame;r.currentTNode=n,r.isParent=o}function ea(){return co.lFrame.isParent}function Zc(){co.lFrame.isParent=!1}function er(){const n=co.lFrame;let o=n.bindingRootIndex;return-1===o&&(o=n.bindingRootIndex=n.tView.bindingStartIndex),o}function As(){return co.lFrame.bindingIndex++}function Zr(n){const o=co.lFrame,r=o.bindingIndex;return o.bindingIndex=o.bindingIndex+n,r}function qc(n,o){const r=co.lFrame;r.bindingIndex=r.bindingRootIndex=n,Da(o)}function Da(n){co.lFrame.currentDirectiveIndex=n}function Oa(n){const o=co.lFrame.currentDirectiveIndex;return-1===o?null:n[o]}function wa(){return co.lFrame.currentQueryIndex}function Pa(n){co.lFrame.currentQueryIndex=n}function oc(n){const o=n[jn];return 2===o.type?o.declTNode:1===o.type?n[Ge]:null}function Ia(n,o,r){if(r&Ce.SkipSelf){let f=o,_=n;for(;!(f=f.parent,null!==f||r&Ce.Host||(f=oc(_),null===f||(_=_[bn],10&f.type))););if(null===f)return!1;o=f,n=_}const l=co.lFrame=Aa();return l.currentTNode=o,l.lView=n,!0}function el(n){const o=Aa(),r=n[jn];co.lFrame=o,o.currentTNode=r.firstChild,o.lView=n,o.tView=r,o.contextLView=n,o.bindingIndex=r.bindingStartIndex,o.inI18n=!1}function Aa(){const n=co.lFrame,o=null===n?null:n.child;return null===o?tl(n):o}function tl(n){const o={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:n,child:null,inI18n:!1};return null!==n&&(n.child=o),o}function nl(){const n=co.lFrame;return co.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ol=nl;function ic(){const n=nl();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function x(){return co.lFrame.selectedIndex}function ce(n){co.lFrame.selectedIndex=n}function Ie(){const n=co.lFrame;return et(n.tView,n.selectedIndex)}function ht(){co.lFrame.currentNamespace=Fi}let ro=!0;function Yo(){return ro}function wi(n){ro=n}function Br(n,o){for(let r=o.directiveStart,l=o.directiveEnd;r=l)break}else o[te]<0&&(n[Wn]+=65536),(Y<_||-1==_)&&(Gl(n,r,o,te),n[Wn]=(4294901760&n[Wn])+te+2),te++}function jl(n,o){Gi(4,n,o);const r=ri(null);try{o.call(n)}finally{ri(r),Gi(5,n,o)}}function Gl(n,o,r,l){const f=r[l]<0,_=r[l+1],Y=n[f?-r[l]:r[l]];f?n[so]>>13>16&&(3&n[so])===o&&(n[so]+=8192,jl(Y,_)):jl(Y,_)}const oa=-1;class Fs{constructor(o,r,l){this.factory=o,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=l}}function Wl(n){return n!==oa}function sc(n){return 32767&n}function ms(n,o){let r=function Zl(n){return n>>16}(n),l=o;for(;r>0;)l=l[bn],r--;return l}let ac=!0;function cc(n){const o=ac;return ac=n,o}const sl=255,Fa=5;let Jl=0;const Jr={};function Na(n,o){const r=uc(n,o);if(-1!==r)return r;const l=o[jn];l.firstCreatePass&&(n.injectorIndex=o.length,lc(l.data,n),lc(o,null),lc(l.blueprint,null));const f=dc(n,o),_=n.injectorIndex;if(Wl(f)){const b=sc(f),Y=ms(f,o),te=Y[jn].data;for(let we=0;we<8;we++)o[_+we]=Y[b+we]|te[b+we]}return o[_+8]=f,_}function lc(n,o){n.push(0,0,0,0,0,0,0,0,o)}function uc(n,o){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===o[n.injectorIndex+8]?-1:n.injectorIndex}function dc(n,o){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let r=0,l=null,f=o;for(;null!==f;){if(l=dl(f),null===l)return oa;if(r++,f=f[bn],-1!==l.injectorIndex)return l.injectorIndex|r<<16}return oa}function al(n,o,r){!function ia(n,o,r){let l;"string"==typeof r?l=r.charCodeAt(0)||0:r.hasOwnProperty($e)&&(l=r[$e]),null==l&&(l=r[$e]=Jl++);const f=l&sl;o.data[n+(f>>Fa)]|=1<=0?o&sl:tu:o}(r);if("function"==typeof _){if(!Ia(o,n,l))return l&Ce.Host?o1(f,0,l):r1(o,r,l,f);try{const b=_(l);if(null!=b||l&Ce.Optional)return b;Q()}finally{ol()}}else if("number"==typeof _){let b=null,Y=uc(n,o),te=oa,we=l&Ce.Host?o[dn][Ge]:null;for((-1===Y||l&Ce.SkipSelf)&&(te=-1===Y?dc(n,o):o[Y+8],te!==oa&&ll(l,!1)?(b=o[jn],Y=sc(te),o=ms(te,o)):Y=-1);-1!==Y;){const tt=o[jn];if(eu(_,Y,tt.data)){const Et=pc(Y,o,r,b,l,we);if(Et!==Jr)return Et}te=o[Y+8],te!==oa&&ll(l,o[jn].data[Y+8]===we)&&eu(_,Y,o)?(b=tt,Y=sc(te),o=ms(te,o)):Y=-1}}return f}function pc(n,o,r,l,f,_){const b=o[jn],Y=b.data[n+8],tt=La(Y,b,r,null==l?Ii(Y)&&ac:l!=b&&0!=(3&Y.type),f&Ce.Host&&_===Y);return null!==tt?ns(o,b,tt,Y):Jr}function La(n,o,r,l,f){const _=n.providerIndexes,b=o.data,Y=1048575&_,te=n.directiveStart,tt=_>>20,tn=f?Y+tt:n.directiveEnd;for(let ln=l?Y:Y+tt;ln=te&&Dn.type===r)return ln}if(f){const ln=b[te];if(ln&&di(ln)&&ln.type===r)return te}return null}function ns(n,o,r,l){let f=n[r];const _=o.data;if(function rc(n){return n instanceof Fs}(f)){const b=f;b.resolving&&function D(n,o){const r=o?`. Dependency path: ${o.join(" > ")} > ${n}`:"";throw new A(-200,`Circular dependency in DI detected for ${n}${r}`)}(function P(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():O(n)}(_[r]));const Y=cc(b.canSeeViewProviders);b.resolving=!0;const te=b.injectImpl?ct(b.injectImpl):null;Ia(n,l,Ce.Default);try{f=n[r]=b.factory(void 0,_,n,l),o.firstCreatePass&&r>=l.directiveStart&&function Kr(n,o,r){const{ngOnChanges:l,ngOnInit:f,ngDoCheck:_}=o.type.prototype;if(l){const b=es(o);(r.preOrderHooks??=[]).push(n,b),(r.preOrderCheckHooks??=[]).push(n,b)}f&&(r.preOrderHooks??=[]).push(0-n,f),_&&((r.preOrderHooks??=[]).push(n,_),(r.preOrderCheckHooks??=[]).push(n,_))}(r,_[r],o)}finally{null!==te&&ct(te),cc(Y),b.resolving=!1,ol()}}return f}function eu(n,o,r){return!!(r[o+(n>>Fa)]&1<{const o=n.prototype.constructor,r=o[Te]||hc(o),l=Object.prototype;let f=Object.getPrototypeOf(n.prototype).constructor;for(;f&&f!==l;){const _=f[Te]||hc(f);if(_&&_!==r)return _;f=Object.getPrototypeOf(f)}return _=>new _})}function hc(n){return R(n)?()=>{const o=hc(e(n));return o&&o()}:ai(n)}function dl(n){const o=n[jn],r=o.type;return 2===r?o.declTNode:1===r?n[Ge]:null}function fc(n){return function n1(n,o){if("class"===o)return n.classes;if("style"===o)return n.styles;const r=n.attrs;if(r){const l=r.length;let f=0;for(;f{const l=function gs(n){return function(...r){if(n){const l=n(...r);for(const f in l)this[f]=l[f]}}}(o);function f(..._){if(this instanceof f)return l.apply(this,_),this;const b=new f(..._);return Y.annotation=b,Y;function Y(te,we,tt){const Et=te.hasOwnProperty(Ls)?te[Ls]:Object.defineProperty(te,Ls,{value:[]})[Ls];for(;Et.length<=tt;)Et.push(null);return(Et[tt]=Et[tt]||[]).push(b),te}}return r&&(f.prototype=Object.create(r.prototype)),f.prototype.ngMetadataName=n,f.annotationCls=f,f})}const fl=Function;function ua(n,o){n.forEach(r=>Array.isArray(r)?ua(r,o):o(r))}function ml(n,o,r){o>=n.length?n.push(r):n.splice(o,0,r)}function ka(n,o){return o>=n.length-1?n.pop():n.splice(o,1)[0]}function da(n,o){const r=[];for(let l=0;l=0?n[1|l]=r:(l=~l,function mc(n,o,r,l){let f=n.length;if(f==o)n.push(r,l);else if(1===f)n.push(l,n[0]),n[0]=r;else{for(f--,n.push(n[f-1],n[f]);f>o;)n[f]=n[f-2],f--;n[o]=r,n[o+1]=l}}(n,l,o,r)),l}function Ra(n,o){const r=vs(n,o);if(r>=0)return n[1|r]}function vs(n,o){return function gl(n,o,r){let l=0,f=n.length>>r;for(;f!==l;){const _=l+(f-l>>1),b=n[_<o?f=_:l=_+1}return~(f<({token:n})),-1),os=dt(sa("Optional"),8),Ba=dt(sa("SkipSelf"),4);function ha(n){return 128==(128&n.flags)}var Or=(()=>((Or=Or||{})[Or.Important=1]="Important",Or[Or.DashCase=2]="DashCase",Or))();const Tu=/^>|^->||--!>|)/,Ec="\u200b$1\u200b";const xc=new Map;let Mu=0;function Eu(n){return xc.get(n)||null}class xu{get lView(){return Eu(this.lViewId)}constructor(o,r,l){this.lViewId=o,this.nodeIndex=r,this.native=l}}function Pi(n){let o=fa(n);if(o){if(ii(o)){const r=o;let l,f,_;if(C(n)){if(l=function vd(n,o){const r=n[jn].components;if(r)for(let l=0;l=0){const Y=ci(_[b]),te=Dc(_,b,Y);qi(Y,te),o=te;break}}}}return o||null}function Dc(n,o,r){return new xu(n[Hn],o,r)}const Oc="__ngContext__";function qi(n,o){ii(o)?(n[Oc]=o[Hn],function Su(n){xc.set(n[Hn],n)}(o)):n[Oc]=o}function fa(n){const o=n[Oc];return"number"==typeof o?Eu(o):o||null}function C(n){return n&&n.constructor&&n.constructor.\u0275cmp}function le(n,o){const r=n[jn];for(let l=Jn;lo.replace(Vs,Ec))}(o))}function wl(n,o,r){return n.createElement(o,r)}function zd(n,o){const r=n[yi],l=r.indexOf(o);gi(o),r.splice(l,1)}function wu(n,o){if(n.length<=ko)return;const r=ko+o,l=n[r];if(l){const f=l[xn];null!==f&&f!==n&&zd(f,l),o>0&&(n[r-1][oe]=l[oe]);const _=ka(n,ko+o);!function Cd(n,o){Il(n,o,o[en],2,null,null),o[Xo]=null,o[Ge]=null}(l[jn],l);const b=_[In];null!==b&&b.detachView(_[jn]),l[Ue]=null,l[oe]=null,l[so]&=-129}return l}function Td(n,o){if(!(256&o[so])){const r=o[en];o[yo]?.destroy(),o[_o]?.destroy(),r.destroyNode&&Il(n,o,r,3,null,null),function ip(n){let o=n[vn];if(!o)return P1(n[jn],n);for(;o;){let r=null;if(ii(o))r=o[vn];else{const l=o[ko];l&&(r=l)}if(!r){for(;o&&!o[oe]&&o!==n;)ii(o)&&P1(o[jn],o),o=o[Ue];null===o&&(o=n),ii(o)&&P1(o[jn],o),r=o&&o[oe]}o=r}}(o)}}function P1(n,o){if(!(256&o[so])){o[so]&=-129,o[so]|=256,function cp(n,o){let r;if(null!=n&&null!=(r=n.destroyHooks))for(let l=0;l=0?l[b]():l[-b].unsubscribe(),_+=2}else r[_].call(l[r[_+1]]);null!==l&&(o[bt]=null);const f=o[Zn];if(null!==f){o[Zn]=null;for(let _=0;_-1){const{encapsulation:_}=n.data[l.directiveStart+f];if(_===Yt.None||_===Yt.Emulated)return null}return Fe(l,r)}}(n,o.parent,r)}function ja(n,o,r,l,f){n.insertBefore(o,r,l,f)}function A1(n,o,r){n.appendChild(o,r)}function Kn(n,o,r,l,f){null!==l?ja(n,o,r,l,f):A1(n,o,r)}function Ga(n,o){return n.parentNode(o)}function bd(n,o,r){return zo(n,o,r)}let Pl,Ac,B1,Lc,zo=function F1(n,o,r){return 40&n.type?Fe(n,r):null};function Pc(n,o,r,l){const f=I1(n,l,o),_=o[en],Y=bd(l.parent||o[Ge],l,o);if(null!=f)if(Array.isArray(r))for(let te=0;ten,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ac}()?.createHTML(n)||n}function Ed(n){B1=n}function ga(){if(void 0!==B1)return B1;if(typeof document<"u")return document;throw new A(210,!1)}function Nu(){if(void 0===Lc&&(Lc=null,at.trustedTypes))try{Lc=at.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Lc}function kc(n){return Nu()?.createHTML(n)||n}function Lu(n){return Nu()?.createScriptURL(n)||n}class va{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Z})`}}class _a extends va{getTypeName(){return"HTML"}}class lp extends va{getTypeName(){return"Style"}}class up extends va{getTypeName(){return"Script"}}class Rc extends va{getTypeName(){return"URL"}}class ya extends va{getTypeName(){return"ResourceURL"}}function zs(n){return n instanceof va?n.changingThisBreaksApplicationSecurity:n}function Vc(n,o){const r=function _r(n){return n instanceof va&&n.getTypeName()||null}(n);if(null!=r&&r!==o){if("ResourceURL"===r&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${r} (see ${Z})`)}return r===o}function xd(n){return new _a(n)}function dp(n){return new lp(n)}function pp(n){return new up(n)}function Dd(n){return new Rc(n)}function Fl(n){return new ya(n)}class ku{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const r=(new window.DOMParser).parseFromString(Fc(o),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(o):(r.removeChild(r.firstChild),r)}catch{return null}}}class $1{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const r=this.inertDocument.createElement("template");return r.innerHTML=Fc(o),r}}const Ru=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nl(n){return(n=String(n)).match(Ru)?n:"unsafe:"+n}function ss(n){const o={};for(const r of n.split(","))o[r]=!0;return o}function Ts(...n){const o={};for(const r of n)for(const l in r)r.hasOwnProperty(l)&&(o[l]=!0);return o}const j1=ss("area,br,col,hr,img,wbr"),Vu=ss("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=ss("rp,rt"),G1=Ts(j1,Ts(Vu,ss("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ts(Od,ss("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ts(Od,Vu)),Bu=ss("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Hu=Ts(Bu,ss("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ss("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),mp=ss("script,style,template");class Pd{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let r=o.firstChild,l=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?l=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,l&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let f=this.checkClobberedElement(r,r.nextSibling);if(f){r=f;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(o){const r=o.nodeName.toLowerCase();if(!G1.hasOwnProperty(r))return this.sanitizedSomething=!0,!mp.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const l=o.attributes;for(let f=0;f"),!0}endElement(o){const r=o.nodeName.toLowerCase();G1.hasOwnProperty(r)&&!j1.hasOwnProperty(r)&&(this.buf.push(""))}chars(o){this.buf.push(Ll(o))}checkClobberedElement(o,r){if(r&&(o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${o.outerHTML}`);return r}}const Id=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,W1=/([^\#-~ |!])/g;function Ll(n){return n.replace(/&/g,"&").replace(Id,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(W1,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let kl;function Z1(n,o){let r=null;try{kl=kl||function Y1(n){const o=new $1(n);return function U1(){try{return!!(new window.DOMParser).parseFromString(Fc(""),"text/html")}catch{return!1}}()?new ku(o):o}(n);let l=o?String(o):"";r=kl.getInertBodyElement(l);let f=5,_=l;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,l=_,_=r.innerHTML,r=kl.getInertBodyElement(l)}while(l!==_);return Fc((new Pd).sanitizeChildren(K1(r)||r))}finally{if(r){const l=K1(r)||r;for(;l.firstChild;)l.removeChild(l.firstChild)}}}function K1(n){return"content"in n&&function gp(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Qi=(()=>((Qi=Qi||{})[Qi.NONE=0]="NONE",Qi[Qi.HTML=1]="HTML",Qi[Qi.STYLE=2]="STYLE",Qi[Qi.SCRIPT=3]="SCRIPT",Qi[Qi.URL=4]="URL",Qi[Qi.RESOURCE_URL=5]="RESOURCE_URL",Qi))();function Ad(n){const o=za();return o?kc(o.sanitize(Qi.HTML,n)||""):Vc(n,"HTML")?kc(zs(n)):Z1(ga(),O(n))}function Yu(n){const o=za();return o?o.sanitize(Qi.STYLE,n)||"":Vc(n,"Style")?zs(n):O(n)}function Bs(n){const o=za();return o?o.sanitize(Qi.URL,n)||"":Vc(n,"URL")?zs(n):Nl(O(n))}function J1(n){const o=za();if(o)return Lu(o.sanitize(Qi.RESOURCE_URL,n)||"");if(Vc(n,"ResourceURL"))return Lu(zs(n));throw new A(904,!1)}function q1(n,o,r){return function Ca(n,o){return"src"===o&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===o&&("base"===n||"link"===n)?J1:Bs}(o,r)(n)}function za(){const n=wn();return n&&n[fn].sanitizer}class li{constructor(o,r){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Jt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const $u=new li("ENVIRONMENT_INITIALIZER"),_p=new li("INJECTOR",-1),yp=new li("INJECTOR_DEF_TYPES");class vi{get(o,r=Pt){if(r===Pt){const l=new Error(`NullInjectorError: No provider for ${k(o)}!`);throw l.name="NullInjectorError",l}return r}}function Rl(n){return{\u0275providers:n}}function Cp(...n){return{\u0275providers:Ld(0,n),\u0275fromNgModule:!0}}function Ld(n,...o){const r=[],l=new Set;let f;return ua(o,_=>{const b=_;X1(b,r,[],l)&&(f||=[],f.push(b))}),void 0!==f&&kd(f,r),r}function kd(n,o){for(let r=0;r{o.push(_)})}}function X1(n,o,r,l){if(!(n=e(n)))return!1;let f=null,_=He(n);const b=!_&&lo(n);if(_||b){if(b&&!b.standalone)return!1;f=n}else{const te=n.ngModule;if(_=He(te),!_)return!1;f=te}const Y=l.has(f);if(b){if(Y)return!1;if(l.add(f),b.dependencies){const te="function"==typeof b.dependencies?b.dependencies():b.dependencies;for(const we of te)X1(we,o,r,l)}}else{if(!_)return!1;{if(null!=_.imports&&!Y){let we;l.add(f);try{ua(_.imports,tt=>{X1(tt,o,r,l)&&(we||=[],we.push(tt))})}finally{}void 0!==we&&kd(we,o)}if(!Y){const we=ai(f)||(()=>new f);o.push({provide:f,useFactory:we,deps:Nt},{provide:yp,useValue:f,multi:!0},{provide:$u,useValue:()=>ot(f),multi:!0})}const te=_.providers;null==te||Y||ed(te,tt=>{o.push(tt)})}}return f!==n&&void 0!==n.providers}function ed(n,o){for(let r of n)pe(r)&&(r=r.\u0275providers),Array.isArray(r)?ed(r,o):o(r)}const zp=S({provide:String,useValue:S});function td(n){return null!==n&&"object"==typeof n&&zp in n}function Za(n){return"function"==typeof n}const nd=new li("Set Injector scope."),Uu={},T={};let p;function h(){return void 0===p&&(p=new vi),p}class g{}class z extends g{get destroyed(){return this._destroyed}constructor(o,r,l,f){super(),this.parent=r,this.source=l,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gt(o,b=>this.processProvider(b)),this.records.set(_p,Ke(void 0,this)),f.has("environment")&&this.records.set(g,Ke(void 0,this));const _=this.records.get(nd);null!=_&&"string"==typeof _.value&&this.scopes.add(_.value),this.injectorDefTypes=new Set(this.get(yp.multi,Nt,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of o)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(o){return this.assertNotDestroyed(),this._onDestroyHooks.push(o),()=>this.removeOnDestroy(o)}runInContext(o){this.assertNotDestroyed();const r=nt(this),l=ct(void 0);try{return o()}finally{nt(r),ct(l)}}get(o,r=Pt,l=Ce.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(Tt))return o[Tt](this);l=mn(l);const f=nt(this),_=ct(void 0);try{if(!(l&Ce.SkipSelf)){let Y=this.records.get(o);if(void 0===Y){const te=function $t(n){return"function"==typeof n||"object"==typeof n&&n instanceof li}(o)&&cn(o);Y=te&&this.injectableDefInScope(te)?Ke(E(o),Uu):null,this.records.set(o,Y)}if(null!=Y)return this.hydrate(o,Y)}return(l&Ce.Self?h():this.parent).get(o,r=l&Ce.Optional&&r===Pt?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[kt]=b[kt]||[]).unshift(k(o)),f)throw b;return function ze(n,o,r,l){const f=n[kt];throw o[J]&&f.unshift(o[J]),n.message=function mt(n,o,r,l=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let f=k(o);if(Array.isArray(o))f=o.map(k).join(" -> ");else if("object"==typeof o){let _=[];for(let b in o)if(o.hasOwnProperty(b)){let Y=o[b];_.push(b+":"+("string"==typeof Y?JSON.stringify(Y):k(Y)))}f=`{${_.join(", ")}}`}return`${r}${l?"("+l+")":""}[${f}]: ${n.replace(K,"\n ")}`}("\n"+n.message,f,r,l),n.ngTokenPath=f,n[kt]=null,n}(b,o,"R3InjectorError",this.source)}throw b}finally{ct(_),nt(f)}}resolveInjectorInitializers(){const o=nt(this),r=ct(void 0);try{const l=this.get($u.multi,Nt,Ce.Self);for(const f of l)f()}finally{nt(o),ct(r)}}toString(){const o=[],r=this.records;for(const l of r.keys())o.push(k(l));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processProvider(o){let r=Za(o=e(o))?o:e(o&&o.provide);const l=function _e(n){return td(n)?Ke(void 0,n.useValue):Ke(xe(n),Uu)}(o);if(Za(o)||!0!==o.multi)this.records.get(r);else{let f=this.records.get(r);f||(f=Ke(void 0,Uu,!0),f.factory=()=>Qe(f.multi),this.records.set(r,f)),r=o,f.multi.push(o)}this.records.set(r,l)}hydrate(o,r){return r.value===Uu&&(r.value=T,r.value=r.factory()),"object"==typeof r.value&&r.value&&function xt(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(o){if(!o.providedIn)return!1;const r=e(o.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(o){const r=this._onDestroyHooks.indexOf(o);-1!==r&&this._onDestroyHooks.splice(r,1)}}function E(n){const o=cn(n),r=null!==o?o.factory:ai(n);if(null!==r)return r;if(n instanceof li)throw new A(204,!1);if(n instanceof Function)return function q(n){const o=n.length;if(o>0)throw da(o,"?"),new A(204,!1);const r=function Be(n){return n&&(n[je]||n[De])||null}(n);return null!==r?()=>r.factory(n):()=>new n}(n);throw new A(204,!1)}function xe(n,o,r){let l;if(Za(n)){const f=e(n);return ai(f)||E(f)}if(td(n))l=()=>e(n.useValue);else if(function Vd(n){return!(!n||!n.useFactory)}(n))l=()=>n.useFactory(...Qe(n.deps||[]));else if(function Rd(n){return!(!n||!n.useExisting)}(n))l=()=>ot(e(n.useExisting));else{const f=e(n&&(n.useClass||n.provide));if(!function ft(n){return!!n.deps}(n))return ai(f)||E(f);l=()=>new f(...Qe(n.deps))}return l}function Ke(n,o,r=!1){return{factory:n,value:o,multi:r?[]:void 0}}function Gt(n,o){for(const r of n)Array.isArray(r)?Gt(r,o):r&&pe(r)?Gt(r.\u0275providers,o):o(r)}const Kt=new li("AppId",{providedIn:"root",factory:()=>Qt}),Qt="ng",hn=new li("Platform Initializer"),En=new li("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),on=new li("AnimationModuleType"),gn=new li("CSP nonce",{providedIn:"root",factory:()=>ga().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Di=(n,o)=>null;function ur(n,o){return Di(n,o)}class oh{}class ih{}class qh{resolveComponentFactory(o){throw function Jh(n){const o=Error(`No component factory found for ${k(n)}.`);return o.ngComponent=n,o}(o)}}let id=(()=>{class n{}return n.NULL=new qh,n})();function Xh(){return Qu(Ei(),wn())}function Qu(n,o){return new Wu(Fe(n,o))}let Wu=(()=>{class n{constructor(r){this.nativeElement=r}}return n.__NG_ELEMENT_ID__=Xh,n})();function e4(n){return n instanceof Wu?n.nativeElement:n}class sh{}let t4=(()=>{class n{constructor(){this.destroyNode=null}}return n.__NG_ELEMENT_ID__=()=>function n4(){const n=wn(),r=pn(Ei().index,n);return(ii(r)?r:n)[en]}(),n})(),o4=(()=>{class n{}return n.\u0275prov=Jt({token:n,providedIn:"root",factory:()=>null}),n})();class ah{constructor(o){this.full=o,this.major=o.split(".")[0],this.minor=o.split(".")[1],this.patch=o.split(".").slice(2).join(".")}}const i4=new ah("16.1.5"),Ep={};function Zu(n){for(;n;){n[so]|=64;const o=wc(n);if(Le(n)&&!o)return n;n=o}return null}function xp(n){return n.ngOriginalError}class rd{constructor(){this._console=console}handleError(o){const r=this._findOriginalError(o);this._console.error("ERROR",o),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(o){let r=o&&xp(o);for(;r&&xp(r);)r=xp(r);return r||null}}const uh=new li("",{providedIn:"root",factory:()=>!1});function c4(n){return n.ownerDocument.defaultView}function Ka(n){return n instanceof Function?n():n}class hh extends fr{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(o){this._lView=o}onConsumerDependencyMayHaveChanged(){Zu(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(o,r,l){const f=ri(this);this.trackingVersion++;try{o(r,l)}finally{ri(f)}}destroy(){this.trackingVersion++}}let sd=null;function fh(){return sd??=new hh,sd}function mh(n,o){return n[o]??fh()}function gh(n,o){const r=fh();r.hasReadASignal&&(n[o]=sd,r.lView=n,sd=new hh)}const Lo={};function vh(n){wp(Ho(),wn(),x()+n,!1)}function wp(n,o,r,l){if(!l)if(3==(3&o[so])){const _=n.preOrderCheckHooks;null!==_&&zr(o,_,r)}else{const _=n.preOrderHooks;null!==_&&Bi(o,_,0,r)}ce(r)}function zh(n,o=null,r=null,l){const f=Th(n,o,r,l);return f.resolveInjectorInitializers(),f}function Th(n,o=null,r=null,l,f=new Set){const _=[r||Nt,Cp(n)];return l=l||("object"==typeof n?void 0:k(n)),new z(_,o||h(),l||null,f)}let cs=(()=>{class n{static create(r,l){if(Array.isArray(r))return zh({name:""},l,r,"");{const f=r.name??"";return zh({name:f},r.parent,r.providers,f)}}}return n.THROW_IF_NOT_FOUND=Pt,n.NULL=new vi,n.\u0275prov=Jt({token:n,providedIn:"any",factory:()=>ot(_p)}),n.__NG_ELEMENT_ID__=-1,n})();function Ku(n,o=Ce.Default){const r=wn();return null===r?ot(n,o):ql(Ei(),r,e(n),o)}function Mh(){throw new Error("invalid")}function Ud(n,o,r,l,f,_,b,Y,te,we,tt){const Et=o.blueprint.slice();return Et[Xo]=f,Et[so]=140|l,(null!==we||n&&2048&n[so])&&(Et[so]|=2048),Bo(Et),Et[Ue]=Et[bn]=n,Et[Ht]=r,Et[fn]=b||n&&n[fn],Et[en]=Y||n&&n[en],Et[nn]=te||n&&n[nn]||null,Et[Ge]=_,Et[Hn]=function bu(){return Mu++}(),Et[to]=tt,Et[Gn]=we,Et[dn]=2==o.type?n[dn]:Et,Et}function Ju(n,o,r,l,f){let _=n.data[o];if(null===_)_=function bh(n,o,r,l,f){const _=ts(),b=ea(),te=n.data[o]=function Fp(n,o,r,l,f,_){let b=o?o.injectorIndex:-1,Y=0;return Gr()&&(Y|=128),{type:r,index:l,insertBeforeIndex:null,injectorIndex:b,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:Y,providerIndexes:0,value:f,attrs:_,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:o,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,b?_:_&&_.parent,r,o,l,f);return null===n.firstChild&&(n.firstChild=te),null!==_&&(b?null==_.child&&null!==te.parent&&(_.child=te):null===_.next&&(_.next=te,te.prev=_)),te}(n,o,r,l,f),function Jc(){return co.lFrame.inI18n}()&&(_.flags|=32);else if(64&_.type){_.type=r,_.value=l,_.attrs=f;const b=function Vr(){const n=co.lFrame,o=n.currentTNode;return n.isParent?o:o.parent}();_.injectorIndex=null===b?-1:b.injectorIndex}return lr(_,!0),_}function ad(n,o,r,l){if(0===r)return-1;const f=o.length;for(let _=0;_Jn&&wp(n,o,Jn,!1),Gi(Y?2:0,f),Y)_.runInContext(r,l,f);else{const we=ri(null);try{r(l,f)}finally{ri(we)}}}finally{Y&&null===o[yo]&&gh(o,yo),ce(b),Gi(Y?3:1,f)}}function Ip(n,o,r){if(ir(o)){const l=ri(null);try{const _=o.directiveEnd;for(let b=o.directiveStart;b<_;b++){const Y=n.data[b];Y.contentQueries&&Y.contentQueries(1,r[b],b)}}finally{ri(l)}}}function jd(n,o,r){Ea()&&(function z2(n,o,r,l){const f=r.directiveStart,_=r.directiveEnd;Ii(r)&&function x2(n,o,r){const l=Fe(o,n),f=Ap(r);let b=16;r.signals?b=4096:r.onPush&&(b=64);const Y=Np(n,Ud(n,f,null,b,l,o,null,n[fn].rendererFactory.createRenderer(l,r),null,null,null));n[o.index]=Y}(o,r,n.data[f+r.componentOffset]),n.firstCreatePass||Na(r,o),qi(l,o);const b=r.initialInputs;for(let Y=f;Y<_;Y++){const te=n.data[Y],we=ns(o,n,Y,r);qi(we,o),null!==b&&D2(0,Y-f,we,te,0,b),di(te)&&(pn(r.index,o)[Ht]=ns(o,n,Y,r))}}(n,o,r,Fe(r,o)),64==(64&r.flags)&&S4(n,o,r))}function Gd(n,o,r=Fe){const l=o.localNames;if(null!==l){let f=o.index+1;for(let _=0;_null;function cd(n,o,r,l){for(let f in n)if(n.hasOwnProperty(f)){r=null===r?{}:r;const _=n[f];null===l?xh(r,o,f,_):l.hasOwnProperty(f)&&xh(r,o,l[f],_)}return r}function xh(n,o,r,l){n.hasOwnProperty(r)?n[r].push(o,l):n[r]=[o,l]}function bs(n,o,r,l,f,_,b,Y){const te=Fe(o,r);let tt,we=o.inputs;!Y&&null!=we&&(tt=we[l])?(u(n,r,tt,l,f),Ii(o)&&function T4(n,o){const r=pn(o,n);16&r[so]||(r[so]|=64)}(r,o.index)):3&o.type&&(l=function _2(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(l),f=null!=b?b(f,o.value||"",l):f,_.setProperty(te,l,f))}function Dh(n,o,r,l){if(Ea()){const f=null===l?null:{"":-1},_=function M2(n,o){const r=n.directiveRegistry;let l=null,f=null;if(r)for(let _=0;_0;){const r=n[--o];if("number"==typeof r&&r<0)return r}return 0})(b)!=Y&&b.push(Y),b.push(r,l,_)}}(n,o,l,ad(n,r,f.hostVars,Lo),f)}function Ja(n,o,r,l,f,_){const b=Fe(n,o);!function wh(n,o,r,l,f,_,b){if(null==_)n.removeAttribute(o,f,r);else{const Y=null==b?O(_):b(_,l||"",f);n.setAttribute(o,f,Y,r)}}(o[en],b,_,n.value,r,l,f)}function D2(n,o,r,l,f,_){const b=_[o];if(null!==b)for(let Y=0;Y{class n{constructor(){this.all=new Set,this.queue=new Map}create(r,l,f){const _=typeof Zone>"u"?null:Zone.current,b=new Xr(r,we=>{this.all.has(we)&&this.queue.set(we,_)},f);let Y;this.all.add(b),b.notify();const te=()=>{b.cleanup(),Y?.(),this.all.delete(b),this.queue.delete(b)};return Y=l?.onDestroy(te),{destroy:te}}flush(){if(0!==this.queue.size)for(const[r,l]of this.queue)this.queue.delete(r),l?l.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return n.\u0275prov=Jt({token:n,providedIn:"root",factory:()=>new n}),n})();function $i(n,o,r){let l=r?n.styles:null,f=r?n.classes:null,_=0;if(null!==o)for(let b=0;b0){$3(n,1);const f=n[jn].components;null!==f&&j3(n,f,1)}}function j3(n,o,r){for(let l=0;l-1&&(wu(o,l),ka(r,l))}this._attachedToViewContainer=!1}Td(this._lView[jn],this._lView)}onDestroy(o){!function Ci(n,o){if(256==(256&n[so]))throw new A(911,!1);null===n[Zn]&&(n[Zn]=[]),n[Zn].push(o)}(this._lView,o)}markForCheck(){Zu(this._cdRefInjectingView||this._lView)}detach(){this._lView[so]&=-129}reattach(){this._lView[so]|=128}detectChanges(){Us(this._lView[jn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function op(n,o){Il(n,o,o[en],2,null,null)}(this._lView[jn],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new A(902,!1);this._appRef=o}}class Rm extends Ah{constructor(o){super(o),this._view=o}detectChanges(){const o=this._view;Us(o[jn],o,o[Ht],!1)}checkNoChanges(){}get context(){return null}}class G3 extends id{constructor(o){super(),this.ngModule=o}resolveComponentFactory(o){const r=lo(o);return new Fh(r,this.ngModule)}}function Q3(n){const o=[];for(let r in n)n.hasOwnProperty(r)&&o.push({propName:n[r],templateName:r});return o}class Bm{constructor(o,r){this.injector=o,this.parentInjector=r}get(o,r,l){l=mn(l);const f=this.injector.get(o,Ep,l);return f!==Ep||r===Ep?f:this.parentInjector.get(o,r,l)}}class Fh extends ih{get inputs(){const o=this.componentDef,r=o.inputTransforms,l=Q3(o.inputs);if(null!==r)for(const f of l)r.hasOwnProperty(f.propName)&&(f.transform=r[f.propName]);return l}get outputs(){return Q3(this.componentDef.outputs)}constructor(o,r){super(),this.componentDef=o,this.ngModule=r,this.componentType=o.type,this.selector=function Fn(n){return n.map(Ti).join(",")}(o.selectors),this.ngContentSelectors=o.ngContentSelectors?o.ngContentSelectors:[],this.isBoundToModule=!!r}create(o,r,l,f){let _=(f=f||this.ngModule)instanceof g?f:f?.injector;_&&null!==this.componentDef.getStandaloneInjector&&(_=this.componentDef.getStandaloneInjector(_)||_);const b=_?new Bm(o,_):o,Y=b.get(sh,null);if(null===Y)throw new A(407,!1);const tt={rendererFactory:Y,sanitizer:b.get(o4,null),effectManager:b.get($o,null)},Et=Y.createRenderer(null,this.componentDef),tn=this.componentDef.selectors[0][0]||"div",ln=l?function g4(n,o,r,l){const _=l.get(uh,!1)||r===Yt.ShadowDom,b=n.selectRootElement(o,_);return function v2(n){v4(n)}(b),b}(Et,l,this.componentDef.encapsulation,b):wl(Et,tn,function Vm(n){const o=n.toLowerCase();return"svg"===o?Fi:"math"===o?"math":null}(tn)),qn=this.componentDef.signals?4608:this.componentDef.onPush?576:528,go=Eh(0,null,null,1,0,null,null,null,null,null,null),Pn=Ud(null,go,null,qn,null,null,tt,Et,b,null,null);let Ro,ni;el(Pn);try{const ui=this.componentDef;let ds,s2=null;ui.findHostDirectiveDefs?(ds=[],s2=new Map,ui.findHostDirectiveDefs(ui,ds,s2),ds.push(ui)):ds=[ui];const S5=function Ym(n,o){const r=n[jn],l=Jn;return n[l]=o,Ju(r,l,2,"#host",null)}(Pn,ln),E5=function $m(n,o,r,l,f,_,b){const Y=f[jn];!function Um(n,o,r,l){for(const f of n)o.mergedAttrs=Vn(o.mergedAttrs,f.hostAttrs);null!==o.mergedAttrs&&($i(o,o.mergedAttrs,!0),null!==r&&V1(l,r,o))}(l,n,o,b);let te=null;null!==o&&(te=ur(o,f[nn]));const we=_.rendererFactory.createRenderer(o,r);let tt=16;r.signals?tt=4096:r.onPush&&(tt=64);const Et=Ud(f,Ap(r),null,tt,f[n.index],n,_,we,null,null,te);return Y.firstCreatePass&&Oh(Y,n,l.length-1),Np(f,Et),f[n.index]=Et}(S5,ln,ui,ds,Pn,tt,Et);ni=et(go,Jn),ln&&function Gm(n,o,r,l){if(l)qt(n,r,["ng-version",i4.full]);else{const{attrs:f,classes:_}=function Mi(n){const o=[],r=[];let l=1,f=2;for(;l0&&R1(n,r,_.join(" "))}}(Et,ui,ln,l),void 0!==r&&function Qm(n,o,r){const l=n.projection=[];for(let f=0;f=0;l--){const f=n[l];f.hostVars=o+=f.hostVars,f.hostAttrs=Vn(f.hostAttrs,r=Vn(r,f.hostAttrs))}}(l)}function I4(n){return n===un?{}:n===Nt?[]:n}function Km(n,o){const r=n.viewQuery;n.viewQuery=r?(l,f)=>{o(l,f),r(l,f)}:o}function Jm(n,o){const r=n.contentQueries;n.contentQueries=r?(l,f,_)=>{o(l,f,_),r(l,f,_)}:o}function qm(n,o){const r=n.hostBindings;n.hostBindings=r?(l,f)=>{o(l,f),r(l,f)}:o}function q3(n){const o=n.inputConfig,r={};for(const l in o)if(o.hasOwnProperty(l)){const f=o[l];Array.isArray(f)&&f[2]&&(r[l]=f[2])}n.inputTransforms=r}function A4(n){return!!P2(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function P2(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Bl(n,o,r){return n[o]=r}function Nh(n,o){return n[o]}function us(n,o,r){return!Object.is(n[o],r)&&(n[o]=r,!0)}function Wd(n,o,r,l){const f=us(n,o,r);return us(n,o+1,l)||f}function qa(n,o,r,l,f,_){const b=Wd(n,o,r,l);return Wd(n,o+2,f,_)||b}function I2(n,o,r,l){const f=wn();return us(f,As(),o)&&(Ho(),Ja(Ie(),f,n,o,r,l)),I2}function kp(n,o,r,l){return us(n,As(),r)?o+O(r)+l:Lo}function Rp(n,o,r,l,f,_){const Y=Wd(n,function Wr(){return co.lFrame.bindingIndex}(),r,f);return Zr(2),Y?o+O(r)+l+O(f)+_:Lo}function p0(n,o,r,l,f,_,b,Y){const te=wn(),we=Ho(),tt=n+Jn,Et=we.firstCreatePass?function M8(n,o,r,l,f,_,b,Y,te){const we=o.consts,tt=Ju(o,n,4,b||null,mo(we,Y));Dh(o,r,tt,mo(we,te)),Br(o,tt);const Et=tt.tView=Eh(2,tt,l,f,_,o.directiveRegistry,o.pipeRegistry,null,o.schemas,we,null);return null!==o.queries&&(o.queries.template(o,tt),Et.queries=o.queries.embeddedTView(tt)),tt}(tt,we,te,o,r,l,f,_,b):we.data[tt];lr(Et,!1);const tn=h0(we,te,Et,n);Yo()&&Pc(we,te,tn,Et),qi(tn,te),Np(te,te[tt]=qu(tn,te,tn,Et)),Ji(Et)&&jd(we,te,Et),null!=b&&Gd(te,Et,Y)}let h0=function f0(n,o,r,l){return wi(!0),o[en].createComment("")};function m0(n){return At(function ta(){return co.lFrame.contextLView}(),Jn+n)}function R2(n,o,r){const l=wn();return us(l,As(),o)&&bs(Ho(),Ie(),l,n,o,l[en],r,!1),R2}function V2(n,o,r,l,f){const b=f?"class":"style";u(n,r,o.inputs[b],b,l)}function R4(n,o,r,l){const f=wn(),_=Ho(),b=Jn+n,Y=f[en],te=_.firstCreatePass?function x8(n,o,r,l,f,_){const b=o.consts,te=Ju(o,n,2,l,mo(b,f));return Dh(o,r,te,mo(b,_)),null!==te.attrs&&$i(te,te.attrs,!1),null!==te.mergedAttrs&&$i(te,te.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,te),te}(b,_,f,o,r,l):_.data[b],we=g0(_,f,te,Y,o,n);f[b]=we;const tt=Ji(te);return lr(te,!0),V1(Y,we,te),32!=(32&te.flags)&&Yo()&&Pc(_,f,we,te),0===function kr(){return co.lFrame.elementDepthCount}()&&qi(we,f),function Dr(){co.lFrame.elementDepthCount++}(),tt&&(jd(_,f,te),Ip(_,te,f)),null!==l&&Gd(f,te),R4}function V4(){let n=Ei();ea()?Zc():(n=n.parent,lr(n,!1));const o=n;(function Qr(n){return co.skipHydrationRootTNode===n})(o)&&function Rr(){co.skipHydrationRootTNode=null}(),function cr(){co.lFrame.elementDepthCount--}();const r=Ho();return r.firstCreatePass&&(Br(r,n),ir(n)&&r.queries.elementEnd(n)),null!=o.classesWithoutHost&&function t1(n){return 0!=(8&n.flags)}(o)&&V2(r,o,wn(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function rl(n){return 0!=(16&n.flags)}(o)&&V2(r,o,wn(),o.stylesWithoutHost,!1),V4}function B2(n,o,r,l){return R4(n,o,r,l),V4(),B2}let g0=(n,o,r,l,f,_)=>(wi(!0),wl(l,f,function io(){return co.lFrame.currentNamespace}()));function B4(n,o,r){const l=wn(),f=Ho(),_=n+Jn,b=f.firstCreatePass?function w8(n,o,r,l,f){const _=o.consts,b=mo(_,l),Y=Ju(o,n,8,"ng-container",b);return null!==b&&$i(Y,b,!0),Dh(o,r,Y,mo(_,f)),null!==o.queries&&o.queries.elementStart(o,Y),Y}(_,f,l,o,r):f.data[_];lr(b,!0);const Y=v0(f,l,b,n);return l[_]=Y,Yo()&&Pc(f,l,Y,b),qi(Y,l),Ji(b)&&(jd(f,l,b),Ip(f,b,l)),null!=r&&Gd(l,b),B4}function H4(){let n=Ei();const o=Ho();return ea()?Zc():(n=n.parent,lr(n,!1)),o.firstCreatePass&&(Br(o,n),ir(n)&&o.queries.elementEnd(n)),H4}function H2(n,o,r){return B4(n,o,r),H4(),H2}let v0=(n,o,r,l)=>(wi(!0),w1(o[en],""));function _0(){return wn()}function Y2(n){return!!n&&"function"==typeof n.then}function y0(n){return!!n&&"function"==typeof n.subscribe}function $2(n,o,r,l){const f=wn(),_=Ho(),b=Ei();return C0(_,f,f[en],b,n,o,l),$2}function U2(n,o){const r=Ei(),l=wn(),f=Ho();return C0(f,l,Ih(Oa(f.data),r,l),r,n,o),U2}function C0(n,o,r,l,f,_,b){const Y=Ji(l),we=n.firstCreatePass&&w4(n),tt=o[Ht],Et=O4(o);let tn=!0;if(3&l.type||b){const Bn=Fe(l,o),qn=b?b(Bn):Bn,go=Et.length,Pn=b?ni=>b(ci(ni[l.index])):l.index;let Ro=null;if(!b&&Y&&(Ro=function A8(n,o,r,l){const f=n.cleanup;if(null!=f)for(let _=0;_te?Y[te]:null}"string"==typeof b&&(_+=2)}return null}(n,o,f,l.index)),null!==Ro)(Ro.__ngLastListenerFn__||Ro).__ngNextListenerFn__=_,Ro.__ngLastListenerFn__=_,tn=!1;else{_=T0(l,o,tt,_,!1);const ni=r.listen(qn,f,_);Et.push(_,ni),we&&we.push(f,Pn,go,go+1)}}else _=T0(l,o,tt,_,!1);const ln=l.outputs;let Dn;if(tn&&null!==ln&&(Dn=ln[f])){const Bn=Dn.length;if(Bn)for(let qn=0;qn-1?pn(n.index,o):o);let te=z0(o,r,l,b),we=_.__ngNextListenerFn__;for(;we;)te=z0(o,r,we,b)&&te,we=we.__ngNextListenerFn__;return f&&!1===te&&b.preventDefault(),te}}function M0(n=1){return function B(n){return(co.lFrame.contextLView=function X(n,o){for(;n>0;)o=o[bn],n--;return o}(n,co.lFrame.contextLView))[Ht]}(n)}function F8(n,o){let r=null;const l=function Fo(n){const o=n.attrs;if(null!=o){const r=o.indexOf(5);if(!(1&r))return o[r+1]}return null}(n);for(let f=0;f>17&32767}function Q2(n){return 2|n}function Zd(n){return(131068&n)>>2}function W2(n,o){return-131069&n|o<<2}function Z2(n){return 1|n}function A0(n,o,r,l,f){const _=n[r+1],b=null===o;let Y=l?ud(_):Zd(_),te=!1;for(;0!==Y&&(!1===te||b);){const tt=n[Y+1];B8(n[Y],o)&&(te=!0,n[Y+1]=l?Z2(tt):Q2(tt)),Y=l?ud(tt):Zd(tt)}te&&(n[r+1]=l?Q2(_):Z2(_))}function B8(n,o){return null===n||null==o||(Array.isArray(n)?n[1]:n)===o||!(!Array.isArray(n)||"string"!=typeof o)&&vs(n,o)>=0}const wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function F0(n){return n.substring(wr.key,wr.keyEnd)}function H8(n){return n.substring(wr.value,wr.valueEnd)}function N0(n,o){const r=wr.textEnd;return r===o?-1:(o=wr.keyEnd=function U8(n,o,r){for(;o32;)o++;return o}(n,wr.key=o,r),jp(n,o,r))}function L0(n,o){const r=wr.textEnd;let l=wr.key=jp(n,o,r);return r===l?-1:(l=wr.keyEnd=function j8(n,o,r){let l;for(;o=65&&(-33&l)<=90||l>=48&&l<=57);)o++;return o}(n,l,r),l=R0(n,l,r),l=wr.value=jp(n,l,r),l=wr.valueEnd=function G8(n,o,r){let l=-1,f=-1,_=-1,b=o,Y=b;for(;b32&&(Y=b),_=f,f=l,l=-33&te}return Y}(n,l,r),R0(n,l,r))}function k0(n){wr.key=0,wr.keyEnd=0,wr.value=0,wr.valueEnd=0,wr.textEnd=n.length}function jp(n,o,r){for(;o=0;r=L0(o,r))$0(n,F0(o),H8(o))}function B0(n){jc(X8,Hl,n,!0)}function Hl(n,o){for(let r=function Y8(n){return k0(n),N0(n,jp(n,0,wr.textEnd))}(o);r>=0;r=N0(o,r))vr(n,F0(o),!0)}function Uc(n,o,r,l){const f=wn(),_=Ho(),b=Zr(2);_.firstUpdatePass&&Y0(_,n,b,l),o!==Lo&&us(f,b,o)&&U0(_,_.data[x()],f,f[en],n,f[b+1]=function tg(n,o){return null==n||""===n||("string"==typeof o?n+=o:"object"==typeof n&&(n=k(zs(n)))),n}(o,r),l,b)}function jc(n,o,r,l){const f=Ho(),_=Zr(2);f.firstUpdatePass&&Y0(f,null,_,l);const b=wn();if(r!==Lo&&us(b,_,r)){const Y=f.data[x()];if(G0(Y,l)&&!H0(f,_)){let te=l?Y.classesWithoutHost:Y.stylesWithoutHost;null!==te&&(r=U(te,r||"")),V2(f,Y,b,r,l)}else!function eg(n,o,r,l,f,_,b,Y){f===Lo&&(f=Nt);let te=0,we=0,tt=0=n.expandoStartIndex}function Y0(n,o,r,l){const f=n.data;if(null===f[r+1]){const _=f[x()],b=H0(n,r);G0(_,l)&&null===o&&!b&&(o=!1),o=function W8(n,o,r,l){const f=Oa(n);let _=l?o.residualClasses:o.residualStyles;if(null===f)0===(l?o.classBindings:o.styleBindings)&&(r=Vh(r=q2(null,n,o,r,l),o.attrs,l),_=null);else{const b=o.directiveStylingLast;if(-1===b||n[b]!==f)if(r=q2(f,n,o,r,l),null===_){let te=function Z8(n,o,r){const l=r?o.classBindings:o.styleBindings;if(0!==Zd(l))return n[ud(l)]}(n,o,l);void 0!==te&&Array.isArray(te)&&(te=q2(null,n,o,te[1],l),te=Vh(te,o.attrs,l),function K8(n,o,r,l){n[ud(r?o.classBindings:o.styleBindings)]=l}(n,o,l,te))}else _=function J8(n,o,r){let l;const f=o.directiveEnd;for(let _=1+o.directiveStylingLast;_0)&&(we=!0)):tt=r,f)if(0!==te){const tn=ud(n[Y+1]);n[l+1]=$4(tn,Y),0!==tn&&(n[tn+1]=W2(n[tn+1],l)),n[Y+1]=function L8(n,o){return 131071&n|o<<17}(n[Y+1],l)}else n[l+1]=$4(Y,0),0!==Y&&(n[Y+1]=W2(n[Y+1],l)),Y=l;else n[l+1]=$4(te,0),0===Y?Y=l:n[te+1]=W2(n[te+1],l),te=l;we&&(n[l+1]=Q2(n[l+1])),A0(n,tt,l,!0),A0(n,tt,l,!1),function V8(n,o,r,l,f){const _=f?n.residualClasses:n.residualStyles;null!=_&&"string"==typeof o&&vs(_,o)>=0&&(r[l+1]=Z2(r[l+1]))}(o,tt,n,l,_),b=$4(Y,te),_?o.classBindings=b:o.styleBindings=b}(f,_,o,r,b,l)}}function q2(n,o,r,l,f){let _=null;const b=r.directiveEnd;let Y=r.directiveStylingLast;for(-1===Y?Y=r.directiveStart:Y++;Y0;){const te=n[f],we=Array.isArray(te),tt=we?te[1]:te,Et=null===tt;let tn=r[f+1];tn===Lo&&(tn=Et?Nt:void 0);let ln=Et?Ra(tn,l):tt===l?tn:void 0;if(we&&!U4(ln)&&(ln=Ra(te,l)),U4(ln)&&(Y=ln,b))return Y;const Dn=n[f+1];f=b?ud(Dn):Zd(Dn)}if(null!==o){let te=_?o.residualClasses:o.residualStyles;null!=te&&(Y=Ra(te,l))}return Y}function U4(n){return void 0!==n}function G0(n,o){return 0!=(n.flags&(o?8:16))}function Q0(n,o=""){const r=wn(),l=Ho(),f=n+Jn,_=l.firstCreatePass?Ju(l,f,1,o,null):l.data[f],b=W0(l,r,_,o,n);r[f]=b,Yo()&&Pc(l,r,b,_),lr(_,!1)}let W0=(n,o,r,l,f)=>(wi(!0),function Ou(n,o){return n.createText(o)}(o[en],l));function X2(n){return j4("",n,""),X2}function j4(n,o,r){const l=wn(),f=kp(l,n,o,r);return f!==Lo&&y(l,x(),f),j4}function e3(n,o,r,l,f){const _=wn(),b=Rp(_,n,o,r,l,f);return b!==Lo&&y(_,x(),b),e3}function nf(n,o,r){jc(vr,Hl,kp(wn(),n,o,r),!0)}function rf(n,o,r){$c(kp(wn(),n,o,r))}function t3(n,o,r){const l=wn();return us(l,As(),o)&&bs(Ho(),Ie(),l,n,o,l[en],r,!0),t3}function n3(n,o,r){const l=wn();if(us(l,As(),o)){const _=Ho(),b=Ie();bs(_,b,l,n,o,Ih(Oa(_.data),b,l),r,!0)}return n3}const Kd=void 0;var zg=["en",[["a","p"],["AM","PM"],Kd],[["AM","PM"],Kd,Kd],[["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"]],Kd,[["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"]],Kd,[["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}",Kd,"{1} 'at' {0}",Kd],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cg(n){const r=Math.floor(Math.abs(n)),l=n.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===l?1:5}];let Gp={};function Tg(n,o,r){"string"!=typeof o&&(r=o,o=n[Eo.LocaleId]),o=o.toLowerCase().replace(/_/g,"-"),Gp[o]=n,r&&(Gp[o][Eo.ExtraData]=r)}function o3(n){const o=function Mg(n){return n.toLowerCase().replace(/_/g,"-")}(n);let r=gf(o);if(r)return r;const l=o.split("-")[0];if(r=gf(l),r)return r;if("en"===l)return zg;throw new A(701,!1)}function mf(n){return o3(n)[Eo.PluralCase]}function gf(n){return n in Gp||(Gp[n]=at.ng&&at.ng.common&&at.ng.common.locales&&at.ng.common.locales[n]),Gp[n]}var Eo=(()=>((Eo=Eo||{})[Eo.LocaleId=0]="LocaleId",Eo[Eo.DayPeriodsFormat=1]="DayPeriodsFormat",Eo[Eo.DayPeriodsStandalone=2]="DayPeriodsStandalone",Eo[Eo.DaysFormat=3]="DaysFormat",Eo[Eo.DaysStandalone=4]="DaysStandalone",Eo[Eo.MonthsFormat=5]="MonthsFormat",Eo[Eo.MonthsStandalone=6]="MonthsStandalone",Eo[Eo.Eras=7]="Eras",Eo[Eo.FirstDayOfWeek=8]="FirstDayOfWeek",Eo[Eo.WeekendRange=9]="WeekendRange",Eo[Eo.DateFormat=10]="DateFormat",Eo[Eo.TimeFormat=11]="TimeFormat",Eo[Eo.DateTimeFormat=12]="DateTimeFormat",Eo[Eo.NumberSymbols=13]="NumberSymbols",Eo[Eo.NumberFormats=14]="NumberFormats",Eo[Eo.CurrencyCode=15]="CurrencyCode",Eo[Eo.CurrencySymbol=16]="CurrencySymbol",Eo[Eo.CurrencyName=17]="CurrencyName",Eo[Eo.Currencies=18]="Currencies",Eo[Eo.Directionality=19]="Directionality",Eo[Eo.PluralCase=20]="PluralCase",Eo[Eo.ExtraData=21]="ExtraData",Eo))();const Qp="en-US";let vf=Qp;function a3(n,o,r,l,f){if(n=e(n),Array.isArray(n))for(let _=0;_>20;if(Za(n)||!n.multi){const ln=new Fs(te,f,Ku),Dn=l3(Y,o,f?tt:tt+tn,Et);-1===Dn?(al(Na(we,b),_,Y),c3(_,n,o.length),o.push(Y),we.directiveStart++,we.directiveEnd++,f&&(we.providerIndexes+=1048576),r.push(ln),b.push(ln)):(r[Dn]=ln,b[Dn]=ln)}else{const ln=l3(Y,o,tt+tn,Et),Dn=l3(Y,o,tt,tt+tn),qn=Dn>=0&&r[Dn];if(f&&!qn||!f&&!(ln>=0&&r[ln])){al(Na(we,b),_,Y);const go=function Cv(n,o,r,l,f){const _=new Fs(n,r,Ku);return _.multi=[],_.index=o,_.componentProviders=0,Yf(_,f,l&&!r),_}(f?yv:_v,r.length,f,l,te);!f&&qn&&(r[Dn].providerFactory=go),c3(_,n,o.length,0),o.push(Y),we.directiveStart++,we.directiveEnd++,f&&(we.providerIndexes+=1048576),r.push(go),b.push(go)}else c3(_,n,ln>-1?ln:Dn,Yf(r[f?Dn:ln],te,!f&&l));!f&&l&&qn&&r[Dn].componentProviders++}}}function c3(n,o,r,l){const f=Za(o),_=function Tp(n){return!!n.useClass}(o);if(f||_){const te=(_?e(o.useClass):o).prototype.ngOnDestroy;if(te){const we=n.destroyHooks||(n.destroyHooks=[]);if(!f&&o.multi){const tt=we.indexOf(r);-1===tt?we.push(r,[l,te]):we[tt+1].push(l,te)}else we.push(r,te)}}}function Yf(n,o,r){return r&&n.componentProviders++,n.multi.push(o)-1}function l3(n,o,r,l){for(let f=r;f{r.providersResolver=(l,f)=>function vv(n,o,r){const l=Ho();if(l.firstCreatePass){const f=di(n);a3(r,l.data,l.blueprint,f,!0),a3(o,l.data,l.blueprint,f,!1)}}(l,f?f(n):n,o)}}class Wp{}class Uf{}function zv(n,o){return new d3(n,o??null,[])}class d3 extends Wp{constructor(o,r,l){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new G3(this);const f=Vo(o);this._bootstrapComponents=Ka(f.bootstrap),this._r3Injector=Th(o,r,[{provide:Wp,useValue:this},{provide:id,useValue:this.componentFactoryResolver},...l],k(o),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(o)}get injector(){return this._r3Injector}destroy(){const o=this._r3Injector;!o.destroyed&&o.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class p3 extends Uf{constructor(o){super(),this.moduleType=o}create(o){return new d3(this.moduleType,o,[])}}class jf extends Wp{constructor(o){super(),this.componentFactoryResolver=new G3(this),this.instance=null;const r=new z([...o.providers,{provide:Wp,useValue:this},{provide:id,useValue:this.componentFactoryResolver}],o.parent||h(),o.debugName,new Set(["environment"]));this.injector=r,o.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function Gf(n,o,r=null){return new jf({providers:n,parent:o,debugName:r,runEnvironmentInitializers:!0}).injector}let Mv=(()=>{class n{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const l=Ld(0,r.type),f=l.length>0?Gf([l],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Jt({token:n,providedIn:"environment",factory:()=>new n(ot(g))}),n})();function Qf(n){n.getStandaloneInjector=o=>o.get(Mv).getOrCreateStandaloneInjector(n)}function e6(n,o,r){const l=er()+n,f=wn();return f[l]===Lo?Bl(f,l,r?o.call(r):o()):Nh(f,l)}function t6(n,o,r,l){return s6(wn(),er(),n,o,r,l)}function n6(n,o,r,l,f){return a6(wn(),er(),n,o,r,l,f)}function o6(n,o,r,l,f,_){return c6(wn(),er(),n,o,r,l,f,_)}function i6(n,o,r,l,f,_,b){return l6(wn(),er(),n,o,r,l,f,_,b)}function r6(n,o,r,l,f,_,b,Y){const te=er()+n,we=wn(),tt=qa(we,te,r,l,f,_);return us(we,te+4,b)||tt?Bl(we,te+5,Y?o.call(Y,r,l,f,_,b):o(r,l,f,_,b)):Nh(we,te+5)}function jh(n,o){const r=n[o];return r===Lo?void 0:r}function s6(n,o,r,l,f,_){const b=o+r;return us(n,b,f)?Bl(n,b+1,_?l.call(_,f):l(f)):jh(n,b+1)}function a6(n,o,r,l,f,_,b){const Y=o+r;return Wd(n,Y,f,_)?Bl(n,Y+2,b?l.call(b,f,_):l(f,_)):jh(n,Y+2)}function c6(n,o,r,l,f,_,b,Y){const te=o+r;return function F4(n,o,r,l,f){const _=Wd(n,o,r,l);return us(n,o+2,f)||_}(n,te,f,_,b)?Bl(n,te+3,Y?l.call(Y,f,_,b):l(f,_,b)):jh(n,te+3)}function l6(n,o,r,l,f,_,b,Y,te){const we=o+r;return qa(n,we,f,_,b,Y)?Bl(n,we+4,te?l.call(te,f,_,b,Y):l(f,_,b,Y)):jh(n,we+4)}function d6(n,o){const r=Ho();let l;const f=n+Jn;r.firstCreatePass?(l=function Lv(n,o){if(o)for(let r=o.length-1;r>=0;r--){const l=o[r];if(n===l.name)return l}}(o,r.pipeRegistry),r.data[f]=l,l.onDestroy&&(r.destroyHooks??=[]).push(f,l.onDestroy)):l=r.data[f];const _=l.factory||(l.factory=ai(l.type)),b=ct(Ku);try{const Y=cc(!1),te=_();return cc(Y),function E8(n,o,r,l){r>=n.data.length&&(n.data[r]=null,n.blueprint[r]=null),o[r]=l}(r,wn(),f,te),te}finally{ct(b)}}function p6(n,o,r){const l=n+Jn,f=wn(),_=At(f,l);return Gh(f,l)?s6(f,er(),o,_.transform,r,_):_.transform(r)}function h6(n,o,r,l){const f=n+Jn,_=wn(),b=At(_,f);return Gh(_,f)?a6(_,er(),o,b.transform,r,l,b):b.transform(r,l)}function f6(n,o,r,l,f){const _=n+Jn,b=wn(),Y=At(b,_);return Gh(b,_)?c6(b,er(),o,Y.transform,r,l,f,Y):Y.transform(r,l,f)}function m6(n,o,r,l,f,_){const b=n+Jn,Y=wn(),te=At(Y,b);return Gh(Y,b)?l6(Y,er(),o,te.transform,r,l,f,_,te):te.transform(r,l,f,_)}function Gh(n,o){return n[jn].data[o].pure}function f3(n){return o=>{setTimeout(n,void 0,o)}}const Yl=class Rv extends t.x{constructor(o=!1){super(),this.__isAsync=o}emit(o){super.next(o)}subscribe(o,r,l){let f=o,_=r||(()=>null),b=l;if(o&&"object"==typeof o){const te=o;f=te.next?.bind(te),_=te.error?.bind(te),b=te.complete?.bind(te)}this.__isAsync&&(_=f3(_),f&&(f=f3(f)),b&&(b=f3(b)));const Y=super.subscribe({next:f,error:_,complete:b});return o instanceof i.w0&&o.add(Y),Y}};function Vv(){return this._results[Symbol.iterator]()}class K4{get changes(){return this._changes||(this._changes=new Yl)}constructor(o=!1){this._emitDistinctChangesOnly=o,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=K4.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Vv)}get(o){return this._results[o]}map(o){return this._results.map(o)}filter(o){return this._results.filter(o)}find(o){return this._results.find(o)}reduce(o,r){return this._results.reduce(o,r)}forEach(o){this._results.forEach(o)}some(o){return this._results.some(o)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(o,r){const l=this;l.dirty=!1;const f=function Mr(n){return n.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function iu(n,o,r){if(n.length!==o.length)return!1;for(let l=0;l{class n{}return n.__NG_ELEMENT_ID__=Yv,n})();const Bv=Qh,Hv=class extends Bv{constructor(o,r,l){super(),this._declarationLView=o,this._declarationTContainer=r,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,r){return this.createEmbeddedViewImpl(o,r,null)}createEmbeddedViewImpl(o,r,l){const b=this._declarationTContainer.tView,Y=Ud(this._declarationLView,b,o,4096&this._declarationLView[so]?4096:16,null,b.declTNode,null,null,null,r||null,l||null);Y[xn]=this._declarationLView[this._declarationTContainer.index];const we=this._declarationLView[In];return null!==we&&(Y[In]=we.createEmbeddedView(b)),G(b,Y,o),new Ah(Y)}};function Yv(){return J4(Ei(),wn())}function J4(n,o){return 4&n.type?new Hv(o,n,Qu(n,o)):null}let q4=(()=>{class n{}return n.__NG_ELEMENT_ID__=Zv,n})();function Zv(){return z6(Ei(),wn())}const Kv=q4,y6=class extends Kv{constructor(o,r,l){super(),this._lContainer=o,this._hostTNode=r,this._hostLView=l}get element(){return Qu(this._hostTNode,this._hostLView)}get injector(){return new Ns(this._hostTNode,this._hostLView)}get parentInjector(){const o=dc(this._hostTNode,this._hostLView);if(Wl(o)){const r=ms(o,this._hostLView),l=sc(o);return new Ns(r[jn].data[l+8],r)}return new Ns(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const r=C6(this._lContainer);return null!==r&&r[o]||null}get length(){return this._lContainer.length-ko}createEmbeddedView(o,r,l){let f,_;"number"==typeof l?f=l:null!=l&&(f=l.index,_=l.injector);const Y=o.createEmbeddedViewImpl(r||{},_,null);return this.insertImpl(Y,f,false),Y}createComponent(o,r,l,f,_){const b=o&&!function la(n){return"function"==typeof n}(o);let Y;if(b)Y=r;else{const Bn=r||{};Y=Bn.index,l=Bn.injector,f=Bn.projectableNodes,_=Bn.environmentInjector||Bn.ngModuleRef}const te=b?o:new Fh(lo(o)),we=l||this.parentInjector;if(!_&&null==te.ngModule){const qn=(b?we:this.parentInjector).get(g,null);qn&&(_=qn)}lo(te.componentType??{});const ln=te.create(we,f,null,_);return this.insertImpl(ln.hostView,Y,false),ln}insert(o,r){return this.insertImpl(o,r,!1)}insertImpl(o,r,l){const f=o._lView,_=f[jn];if(function Qo(n){return mi(n[Ue])}(f)){const te=this.indexOf(o);if(-1!==te)this.detach(te);else{const we=f[Ue],tt=new y6(we,we[Ge],we[Ue]);tt.detach(tt.indexOf(o))}}const b=this._adjustIndex(r),Y=this._lContainer;if(function rp(n,o,r,l){const f=ko+l,_=r.length;l>0&&(r[f-1][oe]=o),l<_-ko?(o[oe]=r[f],ml(r,ko+l,o)):(r.push(o),o[oe]=null),o[Ue]=r;const b=o[xn];null!==b&&r!==b&&function sp(n,o){const r=n[yi];o[dn]!==o[Ue][Ue][dn]&&(n[Go]=!0),null===r?n[yi]=[o]:r.push(o)}(b,o);const Y=o[In];null!==Y&&Y.insertView(n),o[so]|=128}(_,f,Y,b),!l){const te=ys(b,Y),we=f[en],tt=Ga(we,Y[Co]);null!==tt&&function np(n,o,r,l,f,_){l[Xo]=f,l[Ge]=o,Il(n,l,r,1,f,_)}(_,Y[Ge],we,f,tt,te)}return o.attachToViewContainerRef(),ml(g3(Y),b,o),o}move(o,r){return this.insert(o,r)}indexOf(o){const r=C6(this._lContainer);return null!==r?r.indexOf(o):-1}remove(o){const r=this._adjustIndex(o,-1),l=wu(this._lContainer,r);l&&(ka(g3(this._lContainer),r),Td(l[jn],l))}detach(o){const r=this._adjustIndex(o,-1),l=wu(this._lContainer,r);return l&&null!=ka(g3(this._lContainer),r)?new Ah(l):null}_adjustIndex(o,r=0){return o??this.length+r}};function C6(n){return n[8]}function g3(n){return n[8]||(n[8]=[])}function z6(n,o){let r;const l=o[n.index];return mi(l)?r=l:(r=qu(l,o,null,n),o[n.index]=r,Np(o,r)),T6(r,o,n,l),new y6(r,n,o)}let T6=function M6(n,o,r,l){if(n[Co])return;let f;f=8&r.type?ci(l):function Jv(n,o){const r=n[en],l=r.createComment(""),f=Fe(o,n);return ja(r,Ga(r,f),l,function Iu(n,o){return n.nextSibling(o)}(r,f),!1),l}(o,r),n[Co]=f};class v3{constructor(o){this.queryList=o,this.matches=null}clone(){return new v3(this.queryList)}setDirty(){this.queryList.setDirty()}}class _3{constructor(o=[]){this.queries=o}createEmbeddedView(o){const r=o.queries;if(null!==r){const l=null!==o.contentQueries?o.contentQueries[0]:r.length,f=[];for(let _=0;_0)l.push(b[Y/2]);else{const we=_[Y+1],tt=o[-te];for(let Et=ko;Et{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,l)=>{this.resolve=r,this.reject=l}),this.appInits=St(K6,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const _=f();if(Y2(_))r.push(_);else if(y0(_)){const b=new Promise((Y,te)=>{_.subscribe({complete:Y,error:te})});r.push(b)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{l()}).catch(f=>{this.reject(f)}),0===r.length&&l(),this.initialized=!0}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),J6=(()=>{class n{log(r){console.log(r)}warn(r){console.warn(r)}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const e2=new li("LocaleId",{providedIn:"root",factory:()=>St(e2,Ce.Optional|Ce.SkipSelf)||function E_(){return typeof $localize<"u"&&$localize.locale||Qp}()}),x_=new li("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let q6=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new v.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class D_{constructor(o,r){this.ngModuleFactory=o,this.componentFactories=r}}let O_=(()=>{class n{compileModuleSync(r){return new p3(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const l=this.compileModuleSync(r),_=Ka(Vo(r).declarations).reduce((b,Y)=>{const te=lo(Y);return te&&b.push(new Fh(te)),b},[]);return new D_(l,_)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tm(...n){}class Es{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Yl(!1),this.onMicrotaskEmpty=new Yl(!1),this.onStable=new Yl(!1),this.onError=new Yl(!1),typeof Zone>"u")throw new A(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!l&&r,f.shouldCoalesceRunChangeDetection=l,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function I_(){const n="function"==typeof at.requestAnimationFrame;let o=at[n?"requestAnimationFrame":"setTimeout"],r=at[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&r){const l=o[Zone.__symbol__("OriginalDelegate")];l&&(o=l);const f=r[Zone.__symbol__("OriginalDelegate")];f&&(r=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function N_(n){const o=()=>{!function F_(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(at,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,O3(n),n.isCheckStableRunning=!0,D3(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),O3(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,l,f,_,b,Y)=>{try{return nm(n),r.invokeTask(f,_,b,Y)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===_.type||n.shouldCoalesceRunChangeDetection)&&o(),om(n)}},onInvoke:(r,l,f,_,b,Y,te)=>{try{return nm(n),r.invoke(f,_,b,Y,te)}finally{n.shouldCoalesceRunChangeDetection&&o(),om(n)}},onHasTask:(r,l,f,_)=>{r.hasTask(f,_),l===f&&("microTask"==_.change?(n._hasPendingMicrotasks=_.microTask,O3(n),D3(n)):"macroTask"==_.change&&(n.hasPendingMacrotasks=_.macroTask))},onHandleError:(r,l,f,_)=>(r.handleError(f,_),n.runOutsideAngular(()=>n.onError.emit(_)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Es.isInAngularZone())throw new A(909,!1)}static assertNotInAngularZone(){if(Es.isInAngularZone())throw new A(909,!1)}run(o,r,l){return this._inner.run(o,r,l)}runTask(o,r,l,f){const _=this._inner,b=_.scheduleEventTask("NgZoneEvent: "+f,o,A_,tm,tm);try{return _.runTask(b,r,l)}finally{_.cancelTask(b)}}runGuarded(o,r,l){return this._inner.runGuarded(o,r,l)}runOutsideAngular(o){return this._outer.run(o)}}const A_={};function D3(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function O3(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function nm(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function om(n){n._nesting--,D3(n)}class L_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Yl,this.onMicrotaskEmpty=new Yl,this.onStable=new Yl,this.onError=new Yl}run(o,r,l){return o.apply(r,l)}runGuarded(o,r,l){return o.apply(r,l)}runOutsideAngular(o){return o()}runTask(o,r,l,f){return o.apply(r,l)}}const im=new li("",{providedIn:"root",factory:rm});function rm(){const n=St(Es);let o=!0;const r=new d.y(f=>{o=n.isStable&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks,n.runOutsideAngular(()=>{f.next(o),f.complete()})}),l=new d.y(f=>{let _;n.runOutsideAngular(()=>{_=n.onStable.subscribe(()=>{Es.assertNotInAngularZone(),queueMicrotask(()=>{!o&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks&&(o=!0,f.next(!0))})})});const b=n.onUnstable.subscribe(()=>{Es.assertInAngularZone(),o&&(o=!1,n.runOutsideAngular(()=>{f.next(!1)}))});return()=>{_.unsubscribe(),b.unsubscribe()}});return(0,s.T)(r,l.pipe((0,j.B)()))}const sm=new li(""),am=new li("");let w3,k_=(()=>{class n{constructor(r,l,f){this._ngZone=r,this.registry=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,w3||(function R_(n){w3=n}(f),f.addToWindow(l)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Es.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(r)||(clearTimeout(l.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,l,f){let _=-1;l&&l>0&&(_=setTimeout(()=>{this._callbacks=this._callbacks.filter(b=>b.timeoutId!==_),r(this._didWork,this.getPendingTasks())},l)),this._callbacks.push({doneCb:r,timeoutId:_,updateCb:f})}whenStable(r,l,f){if(f&&!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(r,l,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,l,f){return[]}}return n.\u0275fac=function(r){return new(r||n)(ot(Es),ot(cm),ot(am))},n.\u0275prov=Jt({token:n,factory:n.\u0275fac}),n})(),cm=(()=>{class n{constructor(){this._applications=new Map}registerApplication(r,l){this._applications.set(r,l)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,l=!0){return w3?.findTestabilityInTree(this,r,l)??null}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),dd=null;const lm=new li("AllowMultipleToken"),P3=new li("PlatformDestroyListeners"),I3=new li("appBootstrapListener");class H_{constructor(o,r){this.name=o,this.token=r}}function pm(n,o,r=[]){const l=`Platform: ${o}`,f=new li(l);return(_=[])=>{let b=A3();if(!b||b.injector.get(lm,!1)){const Y=[...r,..._,{provide:f,useValue:!0}];n?n(Y):function Y_(n){if(dd&&!dd.get(lm,!1))throw new A(400,!1);(function um(){!function Xa(n){fs=n}(()=>{throw new A(600,!1)})})(),dd=n;const o=n.get(fm);(function dm(n){n.get(hn,null)?.forEach(r=>r())})(n)}(function hm(n=[],o){return cs.create({name:o,providers:[{provide:nd,useValue:"platform"},{provide:P3,useValue:new Set([()=>dd=null])},...n]})}(Y,l))}return function U_(n){const o=A3();if(!o)throw new A(401,!1);return o}()}}function A3(){return dd?.get(fm)??null}let fm=(()=>{class n{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,l){const f=function j_(n="zone.js",o){return"noop"===n?new L_:"zone.js"===n?new Es(o):n}(l?.ngZone,function mm(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}({eventCoalescing:l?.ngZoneEventCoalescing,runCoalescing:l?.ngZoneRunCoalescing}));return f.run(()=>{const _=function Tv(n,o,r){return new d3(n,o,r)}(r.moduleType,this.injector,function Cm(n){return[{provide:Es,useFactory:n},{provide:$u,multi:!0,useFactory:()=>{const o=St(Q_,{optional:!0});return()=>o.initialize()}},{provide:ym,useFactory:G_},{provide:im,useFactory:rm}]}(()=>f)),b=_.injector.get(rd,null);return f.runOutsideAngular(()=>{const Y=f.onError.subscribe({next:te=>{b.handleError(te)}});_.onDestroy(()=>{t2(this._modules,_),Y.unsubscribe()})}),function gm(n,o,r){try{const l=r();return Y2(l)?l.catch(f=>{throw o.runOutsideAngular(()=>n.handleError(f)),f}):l}catch(l){throw o.runOutsideAngular(()=>n.handleError(l)),l}}(b,f,()=>{const Y=_.injector.get(x3);return Y.runInitializers(),Y.donePromise.then(()=>(function _f(n){rt(n,"Expected localeId to be defined"),"string"==typeof n&&(vf=n.toLowerCase().replace(/_/g,"-"))}(_.injector.get(e2,Qp)||Qp),this._moduleDoBootstrap(_),_))})})}bootstrapModule(r,l=[]){const f=vm({},l);return function V_(n,o,r){const l=new p3(r);return Promise.resolve(l)}(0,0,r).then(_=>this.bootstrapModuleFactory(_,f))}_moduleDoBootstrap(r){const l=r.injector.get(Jp);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(f=>l.bootstrap(f));else{if(!r.instance.ngDoBootstrap)throw new A(-403,!1);r.instance.ngDoBootstrap(l)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,!1);this._modules.slice().forEach(l=>l.destroy()),this._destroyListeners.forEach(l=>l());const r=this._injector.get(P3,null);r&&(r.forEach(l=>l()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(r){return new(r||n)(ot(cs))},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function vm(n,o){return Array.isArray(o)?o.reduce(vm,n):{...n,...o}}let Jp=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=St(ym),this.zoneIsStable=St(im),this.componentTypes=[],this.components=[],this.isStable=St(q6).hasPendingTasks.pipe((0,$.w)(r=>r?(0,L.of)(!1):this.zoneIsStable),(0,I.x)(),(0,j.B)()),this._injector=St(g)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,l){const f=r instanceof ih;if(!this._injector.get(x3).done)throw!f&&qo(r),new A(405,!1);let b;b=f?r:this._injector.get(id).resolveComponentFactory(r),this.componentTypes.push(b.componentType);const Y=function B_(n){return n.isBoundToModule}(b)?void 0:this._injector.get(Wp),we=b.create(cs.NULL,[],l||b.selector,Y),tt=we.location.nativeElement,Et=we.injector.get(sm,null);return Et?.registerApplication(tt),we.onDestroy(()=>{this.detachView(we.hostView),t2(this.components,we),Et?.unregisterApplication(tt)}),this._loadComponent(we),we}tick(){if(this._runningTick)throw new A(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const l=r;this._views.push(l),l.attachToAppRef(this)}detachView(r){const l=r;t2(this._views,l),l.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const l=this._injector.get(I3,[]);l.push(...this._bootstrapListeners),l.forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>t2(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new A(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function t2(n,o){const r=n.indexOf(o);r>-1&&n.splice(r,1)}const ym=new li("",{providedIn:"root",factory:()=>St(rd).handleError.bind(void 0)});function G_(){const n=St(Es),o=St(rd);return r=>n.runOutsideAngular(()=>o.handleError(r))}let Q_=(()=>{class n{constructor(){this.zone=St(Es),this.applicationRef=St(Jp)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Jt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Z_(){return!1}function K_(){}let J_=(()=>{class n{}return n.__NG_ELEMENT_ID__=q_,n})();function q_(n){return function X_(n,o,r){if(Ii(n)&&!r){const l=pn(n.index,o);return new Ah(l,l)}return 47&n.type?new Ah(o[dn],o):null}(Ei(),wn(),16==(16&n))}class bm{constructor(){}supports(o){return A4(o)}create(o){return new r5(o)}}const i5=(n,o)=>o;class r5{constructor(o){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=o||i5}forEachItem(o){let r;for(r=this._itHead;null!==r;r=r._next)o(r)}forEachOperation(o){let r=this._itHead,l=this._removalsHead,f=0,_=null;for(;r||l;){const b=!l||r&&r.currentIndex{b=this._trackByFn(f,Y),null!==r&&Object.is(r.trackById,b)?(l&&(r=this._verifyReinsertion(r,Y,b,f)),Object.is(r.item,Y)||this._addIdentityChange(r,Y)):(r=this._mismatch(r,Y,b,f),l=!0),r=r._next,f++}),this.length=f;return this._truncate(r),this.collection=o,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let o;for(o=this._previousItHead=this._itHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._additionsHead;null!==o;o=o._nextAdded)o.previousIndex=o.currentIndex;for(this._additionsHead=this._additionsTail=null,o=this._movesHead;null!==o;o=o._nextMoved)o.previousIndex=o.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(o,r,l,f){let _;return null===o?_=this._itTail:(_=o._prev,this._remove(o)),null!==(o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._reinsertAfter(o,_,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(l,f))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._moveAfter(o,_,f)):o=this._addAfter(new s5(r,l),_,f),o}_verifyReinsertion(o,r,l,f){let _=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==_?o=this._reinsertAfter(_,o._prev,f):o.currentIndex!=f&&(o.currentIndex=f,this._addToMoves(o,f)),o}_truncate(o){for(;null!==o;){const r=o._next;this._addToRemovals(this._unlink(o)),o=r}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(o,r,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(o);const f=o._prevRemoved,_=o._nextRemoved;return null===f?this._removalsHead=_:f._nextRemoved=_,null===_?this._removalsTail=f:_._prevRemoved=f,this._insertAfter(o,r,l),this._addToMoves(o,l),o}_moveAfter(o,r,l){return this._unlink(o),this._insertAfter(o,r,l),this._addToMoves(o,l),o}_addAfter(o,r,l){return this._insertAfter(o,r,l),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,r,l){const f=null===r?this._itHead:r._next;return o._next=f,o._prev=r,null===f?this._itTail=o:f._prev=o,null===r?this._itHead=o:r._next=o,null===this._linkedRecords&&(this._linkedRecords=new Sm),this._linkedRecords.put(o),o.currentIndex=l,o}_remove(o){return this._addToRemovals(this._unlink(o))}_unlink(o){null!==this._linkedRecords&&this._linkedRecords.remove(o);const r=o._prev,l=o._next;return null===r?this._itHead=l:r._next=l,null===l?this._itTail=r:l._prev=r,o}_addToMoves(o,r){return o.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sm),this._unlinkedRecords.put(o),o.currentIndex=null,o._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=o,o._prevRemoved=null):(o._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=o),o}_addIdentityChange(o,r){return o.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class s5{constructor(o,r){this.item=o,this.trackById=r,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 a5{constructor(){this._head=null,this._tail=null}add(o){null===this._head?(this._head=this._tail=o,o._nextDup=null,o._prevDup=null):(this._tail._nextDup=o,o._prevDup=this._tail,o._nextDup=null,this._tail=o)}get(o,r){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===r||r<=l.currentIndex)&&Object.is(l.trackById,o))return l;return null}remove(o){const r=o._prevDup,l=o._nextDup;return null===r?this._head=l:r._nextDup=l,null===l?this._tail=r:l._prevDup=r,null===this._head}}class Sm{constructor(){this.map=new Map}put(o){const r=o.trackById;let l=this.map.get(r);l||(l=new a5,this.map.set(r,l)),l.add(o)}get(o,r){const f=this.map.get(o);return f?f.get(o,r):null}remove(o){const r=o.trackById;return this.map.get(r).remove(o)&&this.map.delete(r),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Em(n,o,r){const l=n.previousIndex;if(null===l)return l;let f=0;return r&&l{if(r&&r.key===f)this._maybeAddToChanges(r,l),this._appendAfter=r,r=r._next;else{const _=this._getOrCreateRecordForKey(f,l);r=this._insertBeforeOrAppend(r,_)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let l=r;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(o,r){if(o){const l=o._prev;return r._next=o,r._prev=l,o._prev=r,l&&(l._next=r),o===this._mapHead&&(this._mapHead=r),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(o,r){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,r);const _=f._prev,b=f._next;return _&&(_._next=b),b&&(b._prev=_),f._next=null,f._prev=null,f}const l=new l5(o);return this._records.set(o,l),l.currentValue=r,this._addToAdditions(l),l}_reset(){if(this.isDirty){let o;for(this._previousMapHead=this._mapHead,o=this._previousMapHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._changesHead;null!==o;o=o._nextChanged)o.previousValue=o.currentValue;for(o=this._additionsHead;null!=o;o=o._nextAdded)o.previousValue=o.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(o,r){Object.is(r,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=r,this._addToChanges(o))}_addToAdditions(o){null===this._additionsHead?this._additionsHead=this._additionsTail=o:(this._additionsTail._nextAdded=o,this._additionsTail=o)}_addToChanges(o){null===this._changesHead?this._changesHead=this._changesTail=o:(this._changesTail._nextChanged=o,this._changesTail=o)}_forEach(o,r){o instanceof Map?o.forEach(r):Object.keys(o).forEach(l=>r(o[l],l))}}class l5{constructor(o){this.key=o,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 Dm(){return new R3([new bm])}let R3=(()=>{class n{constructor(r){this.factories=r}static create(r,l){if(null!=l){const f=l.factories.slice();r=r.concat(f)}return new n(r)}static extend(r){return{provide:n,useFactory:l=>n.create(r,l||Dm()),deps:[[n,new Ba,new os]]}}find(r){const l=this.factories.find(f=>f.supports(r));if(null!=l)return l;throw new A(901,!1)}}return n.\u0275prov=Jt({token:n,providedIn:"root",factory:Dm}),n})();function Om(){return new V3([new xm])}let V3=(()=>{class n{constructor(r){this.factories=r}static create(r,l){if(l){const f=l.factories.slice();r=r.concat(f)}return new n(r)}static extend(r){return{provide:n,useFactory:l=>n.create(r,l||Om()),deps:[[n,new Ba,new os]]}}find(r){const l=this.factories.find(f=>f.supports(r));if(l)return l;throw new A(901,!1)}}return n.\u0275prov=Jt({token:n,providedIn:"root",factory:Om}),n})();const p5=pm(null,"core",[]);let h5=(()=>{class n{constructor(r){}}return n.\u0275fac=function(r){return new(r||n)(ot(Jp))},n.\u0275mod=Oi({type:n}),n.\u0275inj=On({}),n})();function T5(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function b5(n){const o=lo(n);if(!o)return null;const r=new Fh(o);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},6223:(It,be,a)=>{a.d(be,{F:()=>Do,Fj:()=>w,JJ:()=>Be,JL:()=>He,JU:()=>$,NI:()=>Ti,Oe:()=>Rn,On:()=>lo,Q7:()=>ko,TO:()=>mn,UX:()=>ps,Wl:()=>S,_Y:()=>Oo,a5:()=>On,cw:()=>Qe,kI:()=>Z,nJ:()=>dt,oH:()=>Ue,sg:()=>Oe,u:()=>vn,u5:()=>Cr,ve:()=>U});var t=a(5879),i=a(6814),v=a(9666),d=a(9315),s=a(7398);let L=(()=>{class Ee{constructor(de,ut){this._renderer=de,this._elementRef=ut,this.onChange=yn=>{},this.onTouched=()=>{}}setProperty(de,ut){this._renderer.setProperty(this._elementRef.nativeElement,de,ut)}registerOnTouched(de){this.onTouched=de}registerOnChange(de){this.onChange=de}setDisabledState(de){this.setProperty("disabled",de)}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(t.Qsj),t.Y36(t.SBq))},Ee.\u0275dir=t.lG2({type:Ee}),Ee})(),j=(()=>{class Ee extends L{}return Ee.\u0275fac=function(){let ye;return function(ut){return(ye||(ye=t.n5z(Ee)))(ut||Ee)}}(),Ee.\u0275dir=t.lG2({type:Ee,features:[t.qOj]}),Ee})();const $=new t.OlP("NgValueAccessor"),I={provide:$,useExisting:(0,t.Gpc)(()=>S),multi:!0};let S=(()=>{class Ee extends j{writeValue(de){this.setProperty("checked",de)}}return Ee.\u0275fac=function(){let ye;return function(ut){return(ye||(ye=t.n5z(Ee)))(ut||Ee)}}(),Ee.\u0275dir=t.lG2({type:Ee,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(de,ut){1&de&&t.NdJ("change",function(Qn){return ut.onChange(Qn.target.checked)})("blur",function(){return ut.onTouched()})},features:[t._Bn([I]),t.qOj]}),Ee})();const F={provide:$,useExisting:(0,t.Gpc)(()=>w),multi:!0},U=new t.OlP("CompositionEventMode");let w=(()=>{class Ee extends L{constructor(de,ut,yn){super(de,ut),this._compositionMode=yn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function k(){const Ee=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(Ee.toLowerCase())}())}writeValue(de){this.setProperty("value",de??"")}_handleInput(de){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(de)}_compositionStart(){this._composing=!0}_compositionEnd(de){this._composing=!1,this._compositionMode&&this.onChange(de)}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(U,8))},Ee.\u0275dir=t.lG2({type:Ee,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(de,ut){1&de&&t.NdJ("input",function(Qn){return ut._handleInput(Qn.target.value)})("blur",function(){return ut.onTouched()})("compositionstart",function(){return ut._compositionStart()})("compositionend",function(Qn){return ut._compositionEnd(Qn.target.value)})},features:[t._Bn([F]),t.qOj]}),Ee})();function M(Ee){return null==Ee||("string"==typeof Ee||Array.isArray(Ee))&&0===Ee.length}function e(Ee){return null!=Ee&&"number"==typeof Ee.length}const R=new t.OlP("NgValidators"),pe=new t.OlP("NgAsyncValidators"),me=/^(?=.{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 Z{static min(ye){return function A(Ee){return ye=>{if(M(ye.value)||M(Ee))return null;const de=parseFloat(ye.value);return!isNaN(de)&&de{if(M(ye.value)||M(Ee))return null;const de=parseFloat(ye.value);return!isNaN(de)&&de>Ee?{max:{max:Ee,actual:ye.value}}:null}}(ye)}static required(ye){return O(ye)}static requiredTrue(ye){return function P(Ee){return!0===Ee.value?null:{required:!0}}(ye)}static email(ye){return function D(Ee){return M(Ee.value)||me.test(Ee.value)?null:{email:!0}}(ye)}static minLength(ye){return function re(Ee){return ye=>M(ye.value)||!e(ye.value)?null:ye.value.lengthe(ye.value)&&ye.value.length>Ee?{maxlength:{requiredLength:Ee,actualLength:ye.value.length}}:null}(ye)}static pattern(ye){return function Q(Ee){if(!Ee)return fe;let ye,de;return"string"==typeof Ee?(de="","^"!==Ee.charAt(0)&&(de+="^"),de+=Ee,"$"!==Ee.charAt(Ee.length-1)&&(de+="$"),ye=new RegExp(de)):(de=Ee.toString(),ye=Ee),ut=>{if(M(ut.value))return null;const yn=ut.value;return ye.test(yn)?null:{pattern:{requiredPattern:de,actualValue:yn}}}}(ye)}static nullValidator(ye){return null}static compose(ye){return Mt(ye)}static composeAsync(ye){return Ct(ye)}}function O(Ee){return M(Ee.value)?{required:!0}:null}function fe(Ee){return null}function ue(Ee){return null!=Ee}function ge(Ee){return(0,t.QGY)(Ee)?(0,v.D)(Ee):Ee}function Se(Ee){let ye={};return Ee.forEach(de=>{ye=null!=de?{...ye,...de}:ye}),0===Object.keys(ye).length?null:ye}function ke(Ee,ye){return ye.map(de=>de(Ee))}function Ft(Ee){return Ee.map(ye=>function Rt(Ee){return!Ee.validate}(ye)?ye:de=>ye.validate(de))}function Mt(Ee){if(!Ee)return null;const ye=Ee.filter(ue);return 0==ye.length?null:function(de){return Se(ke(de,ye))}}function yt(Ee){return null!=Ee?Mt(Ft(Ee)):null}function Ct(Ee){if(!Ee)return null;const ye=Ee.filter(ue);return 0==ye.length?null:function(de){const ut=ke(de,ye).map(ge);return(0,d.D)(ut).pipe((0,s.U)(Se))}}function Lt(Ee){return null!=Ee?Ct(Ft(Ee)):null}function rn(Ee,ye){return null===Ee?[ye]:Array.isArray(Ee)?[...Ee,ye]:[Ee,ye]}function Sn(Ee){return Ee._rawValidators}function rt(Ee){return Ee._rawAsyncValidators}function Ye(Ee){return Ee?Array.isArray(Ee)?Ee:[Ee]:[]}function st(Ee,ye){return Array.isArray(Ee)?Ee.includes(ye):Ee===ye}function Ze(Ee,ye){const de=Ye(ye);return Ye(Ee).forEach(yn=>{st(de,yn)||de.push(yn)}),de}function Bt(Ee,ye){return Ye(ye).filter(de=>!st(Ee,de))}class Jt{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(ye){this._rawValidators=ye||[],this._composedValidatorFn=yt(this._rawValidators)}_setAsyncValidators(ye){this._rawAsyncValidators=ye||[],this._composedAsyncValidatorFn=Lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ye){this._onDestroyCallbacks.push(ye)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ye=>ye()),this._onDestroyCallbacks=[]}reset(ye=void 0){this.control&&this.control.reset(ye)}hasError(ye,de){return!!this.control&&this.control.hasError(ye,de)}getError(ye,de){return this.control?this.control.getError(ye,de):null}}class _n extends Jt{get formDirective(){return null}get path(){return null}}class On extends Jt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class cn{constructor(ye){this._cd=ye}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Be=(()=>{class Ee extends cn{constructor(de){super(de)}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(On,2))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(de,ut){2&de&&t.ekj("ng-untouched",ut.isUntouched)("ng-touched",ut.isTouched)("ng-pristine",ut.isPristine)("ng-dirty",ut.isDirty)("ng-valid",ut.isValid)("ng-invalid",ut.isInvalid)("ng-pending",ut.isPending)},features:[t.qOj]}),Ee})(),He=(()=>{class Ee extends cn{constructor(de){super(de)}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(_n,10))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(de,ut){2&de&&t.ekj("ng-untouched",ut.isUntouched)("ng-touched",ut.isTouched)("ng-pristine",ut.isPristine)("ng-dirty",ut.isDirty)("ng-valid",ut.isValid)("ng-invalid",ut.isInvalid)("ng-pending",ut.isPending)("ng-submitted",ut.isSubmitted)},features:[t.qOj]}),Ee})();const Je="VALID",K="INVALID",N="PENDING",J="DISABLED";function Me(Ee){return(ot(Ee)?Ee.validators:Ee)||null}function nt(Ee,ye){return(ot(ye)?ye.asyncValidators:Ee)||null}function ot(Ee){return null!=Ee&&!Array.isArray(Ee)&&"object"==typeof Ee}function Vt(Ee,ye,de){const ut=Ee.controls;if(!(ye?Object.keys(ut):ut).length)throw new t.vHH(1e3,"");if(!ut[de])throw new t.vHH(1001,"")}function St(Ee,ye,de){Ee._forEachChild((ut,yn)=>{if(void 0===de[yn])throw new t.vHH(1002,"")})}class mn{constructor(ye,de){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ye),this._assignAsyncValidators(de)}get validator(){return this._composedValidatorFn}set validator(ye){this._rawValidators=this._composedValidatorFn=ye}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ye){this._rawAsyncValidators=this._composedAsyncValidatorFn=ye}get parent(){return this._parent}get valid(){return this.status===Je}get invalid(){return this.status===K}get pending(){return this.status==N}get disabled(){return this.status===J}get enabled(){return this.status!==J}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ye){this._assignValidators(ye)}setAsyncValidators(ye){this._assignAsyncValidators(ye)}addValidators(ye){this.setValidators(Ze(ye,this._rawValidators))}addAsyncValidators(ye){this.setAsyncValidators(Ze(ye,this._rawAsyncValidators))}removeValidators(ye){this.setValidators(Bt(ye,this._rawValidators))}removeAsyncValidators(ye){this.setAsyncValidators(Bt(ye,this._rawAsyncValidators))}hasValidator(ye){return st(this._rawValidators,ye)}hasAsyncValidator(ye){return st(this._rawAsyncValidators,ye)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ye={}){this.touched=!0,this._parent&&!ye.onlySelf&&this._parent.markAsTouched(ye)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ye=>ye.markAllAsTouched())}markAsUntouched(ye={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(de=>{de.markAsUntouched({onlySelf:!0})}),this._parent&&!ye.onlySelf&&this._parent._updateTouched(ye)}markAsDirty(ye={}){this.pristine=!1,this._parent&&!ye.onlySelf&&this._parent.markAsDirty(ye)}markAsPristine(ye={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(de=>{de.markAsPristine({onlySelf:!0})}),this._parent&&!ye.onlySelf&&this._parent._updatePristine(ye)}markAsPending(ye={}){this.status=N,!1!==ye.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ye.onlySelf&&this._parent.markAsPending(ye)}disable(ye={}){const de=this._parentMarkedDirty(ye.onlySelf);this.status=J,this.errors=null,this._forEachChild(ut=>{ut.disable({...ye,onlySelf:!0})}),this._updateValue(),!1!==ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ye,skipPristineCheck:de}),this._onDisabledChange.forEach(ut=>ut(!0))}enable(ye={}){const de=this._parentMarkedDirty(ye.onlySelf);this.status=Je,this._forEachChild(ut=>{ut.enable({...ye,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ye.emitEvent}),this._updateAncestors({...ye,skipPristineCheck:de}),this._onDisabledChange.forEach(ut=>ut(!1))}_updateAncestors(ye){this._parent&&!ye.onlySelf&&(this._parent.updateValueAndValidity(ye),ye.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ye){this._parent=ye}getRawValue(){return this.value}updateValueAndValidity(ye={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===N)&&this._runAsyncValidator(ye.emitEvent)),!1!==ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ye.onlySelf&&this._parent.updateValueAndValidity(ye)}_updateTreeValidity(ye={emitEvent:!0}){this._forEachChild(de=>de._updateTreeValidity(ye)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ye.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?J:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ye){if(this.asyncValidator){this.status=N,this._hasOwnPendingAsyncValidator=!0;const de=ge(this.asyncValidator(this));this._asyncValidationSubscription=de.subscribe(ut=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ut,{emitEvent:ye})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ye,de={}){this.errors=ye,this._updateControlsErrors(!1!==de.emitEvent)}get(ye){let de=ye;return null==de||(Array.isArray(de)||(de=de.split(".")),0===de.length)?null:de.reduce((ut,yn)=>ut&&ut._find(yn),this)}getError(ye,de){const ut=de?this.get(de):this;return ut&&ut.errors?ut.errors[ye]:null}hasError(ye,de){return!!this.getError(ye,de)}get root(){let ye=this;for(;ye._parent;)ye=ye._parent;return ye}_updateControlsErrors(ye){this.status=this._calculateStatus(),ye&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ye)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?J:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(N)?N:this._anyControlsHaveStatus(K)?K:Je}_anyControlsHaveStatus(ye){return this._anyControls(de=>de.status===ye)}_anyControlsDirty(){return this._anyControls(ye=>ye.dirty)}_anyControlsTouched(){return this._anyControls(ye=>ye.touched)}_updatePristine(ye={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ye.onlySelf&&this._parent._updatePristine(ye)}_updateTouched(ye={}){this.touched=this._anyControlsTouched(),this._parent&&!ye.onlySelf&&this._parent._updateTouched(ye)}_registerOnCollectionChange(ye){this._onCollectionChange=ye}_setUpdateStrategy(ye){ot(ye)&&null!=ye.updateOn&&(this._updateOn=ye.updateOn)}_parentMarkedDirty(ye){return!ye&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ye){return null}_assignValidators(ye){this._rawValidators=Array.isArray(ye)?ye.slice():ye,this._composedValidatorFn=function zt(Ee){return Array.isArray(Ee)?yt(Ee):Ee||null}(this._rawValidators)}_assignAsyncValidators(ye){this._rawAsyncValidators=Array.isArray(ye)?ye.slice():ye,this._composedAsyncValidatorFn=function We(Ee){return Array.isArray(Ee)?Lt(Ee):Ee||null}(this._rawAsyncValidators)}}class Qe extends mn{constructor(ye,de,ut){super(Me(de),nt(ut,de)),this.controls=ye,this._initObservables(),this._setUpdateStrategy(de),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ye,de){return this.controls[ye]?this.controls[ye]:(this.controls[ye]=de,de.setParent(this),de._registerOnCollectionChange(this._onCollectionChange),de)}addControl(ye,de,ut={}){this.registerControl(ye,de),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}removeControl(ye,de={}){this.controls[ye]&&this.controls[ye]._registerOnCollectionChange(()=>{}),delete this.controls[ye],this.updateValueAndValidity({emitEvent:de.emitEvent}),this._onCollectionChange()}setControl(ye,de,ut={}){this.controls[ye]&&this.controls[ye]._registerOnCollectionChange(()=>{}),delete this.controls[ye],de&&this.registerControl(ye,de),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}contains(ye){return this.controls.hasOwnProperty(ye)&&this.controls[ye].enabled}setValue(ye,de={}){St(this,0,ye),Object.keys(ye).forEach(ut=>{Vt(this,!0,ut),this.controls[ut].setValue(ye[ut],{onlySelf:!0,emitEvent:de.emitEvent})}),this.updateValueAndValidity(de)}patchValue(ye,de={}){null!=ye&&(Object.keys(ye).forEach(ut=>{const yn=this.controls[ut];yn&&yn.patchValue(ye[ut],{onlySelf:!0,emitEvent:de.emitEvent})}),this.updateValueAndValidity(de))}reset(ye={},de={}){this._forEachChild((ut,yn)=>{ut.reset(ye[yn],{onlySelf:!0,emitEvent:de.emitEvent})}),this._updatePristine(de),this._updateTouched(de),this.updateValueAndValidity(de)}getRawValue(){return this._reduceChildren({},(ye,de,ut)=>(ye[ut]=de.getRawValue(),ye))}_syncPendingControls(){let ye=this._reduceChildren(!1,(de,ut)=>!!ut._syncPendingControls()||de);return ye&&this.updateValueAndValidity({onlySelf:!0}),ye}_forEachChild(ye){Object.keys(this.controls).forEach(de=>{const ut=this.controls[de];ut&&ye(ut,de)})}_setUpControls(){this._forEachChild(ye=>{ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ye){for(const[de,ut]of Object.entries(this.controls))if(this.contains(de)&&ye(ut))return!0;return!1}_reduceValue(){return this._reduceChildren({},(de,ut,yn)=>((ut.enabled||this.disabled)&&(de[yn]=ut.value),de))}_reduceChildren(ye,de){let ut=ye;return this._forEachChild((yn,Qn)=>{ut=de(ut,yn,Qn)}),ut}_allControlsDisabled(){for(const ye of Object.keys(this.controls))if(this.controls[ye].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ye){return this.controls.hasOwnProperty(ye)?this.controls[ye]:null}}const dt=Qe,Pe=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>lt}),lt="always";function Yt(Ee,ye){return[...ye.path,Ee]}function un(Ee,ye,de=lt){ee(Ee,ye),ye.valueAccessor.writeValue(Ee.value),(Ee.disabled||"always"===de)&&ye.valueAccessor.setDisabledState?.(Ee.disabled),function Te(Ee,ye){ye.valueAccessor.registerOnChange(de=>{Ee._pendingValue=de,Ee._pendingChange=!0,Ee._pendingDirty=!0,"change"===Ee.updateOn&&Tt(Ee,ye)})}(Ee,ye),function Xt(Ee,ye){const de=(ut,yn)=>{ye.valueAccessor.writeValue(ut),yn&&ye.viewToModelUpdate(ut)};Ee.registerOnChange(de),ye._registerOnDestroy(()=>{Ee._unregisterOnChange(de)})}(Ee,ye),function $e(Ee,ye){ye.valueAccessor.registerOnTouched(()=>{Ee._pendingTouched=!0,"blur"===Ee.updateOn&&Ee._pendingChange&&Tt(Ee,ye),"submit"!==Ee.updateOn&&Ee.markAsTouched()})}(Ee,ye),function gt(Ee,ye){if(ye.valueAccessor.setDisabledState){const de=ut=>{ye.valueAccessor.setDisabledState(ut)};Ee.registerOnDisabledChange(de),ye._registerOnDestroy(()=>{Ee._unregisterOnDisabledChange(de)})}}(Ee,ye)}function Nt(Ee,ye,de=!0){const ut=()=>{};ye.valueAccessor&&(ye.valueAccessor.registerOnChange(ut),ye.valueAccessor.registerOnTouched(ut)),H(Ee,ye),Ee&&(ye._invokeOnDestroyCallbacks(),Ee._registerOnCollectionChange(()=>{}))}function pt(Ee,ye){Ee.forEach(de=>{de.registerOnValidatorChange&&de.registerOnValidatorChange(ye)})}function ee(Ee,ye){const de=Sn(Ee);null!==ye.validator?Ee.setValidators(rn(de,ye.validator)):"function"==typeof de&&Ee.setValidators([de]);const ut=rt(Ee);null!==ye.asyncValidator?Ee.setAsyncValidators(rn(ut,ye.asyncValidator)):"function"==typeof ut&&Ee.setAsyncValidators([ut]);const yn=()=>Ee.updateValueAndValidity();pt(ye._rawValidators,yn),pt(ye._rawAsyncValidators,yn)}function H(Ee,ye){let de=!1;if(null!==Ee){if(null!==ye.validator){const yn=Sn(Ee);if(Array.isArray(yn)&&yn.length>0){const Qn=yn.filter(pi=>pi!==ye.validator);Qn.length!==yn.length&&(de=!0,Ee.setValidators(Qn))}}if(null!==ye.asyncValidator){const yn=rt(Ee);if(Array.isArray(yn)&&yn.length>0){const Qn=yn.filter(pi=>pi!==ye.asyncValidator);Qn.length!==yn.length&&(de=!0,Ee.setAsyncValidators(Qn))}}}const ut=()=>{};return pt(ye._rawValidators,ut),pt(ye._rawAsyncValidators,ut),de}function Tt(Ee,ye){Ee._pendingDirty&&Ee.markAsDirty(),Ee.setValue(Ee._pendingValue,{emitModelToViewChange:!1}),ye.viewToModelUpdate(Ee._pendingValue),Ee._pendingChange=!1}function qt(Ee,ye){ee(Ee,ye)}function jo(Ee,ye){if(!Ee.hasOwnProperty("model"))return!1;const de=Ee.model;return!!de.isFirstChange()||!Object.is(ye,de.currentValue)}function bo(Ee,ye){Ee._syncPendingControls(),ye.forEach(de=>{const ut=de.control;"submit"===ut.updateOn&&ut._pendingChange&&(de.viewToModelUpdate(ut._pendingValue),ut._pendingChange=!1)})}function eo(Ee,ye){if(!ye)return null;let de,ut,yn;return Array.isArray(ye),ye.forEach(Qn=>{Qn.constructor===w?de=Qn:function ei(Ee){return Object.getPrototypeOf(Ee.constructor)===j}(Qn)?ut=Qn:yn=Qn}),yn||ut||de||null}const Fo={provide:_n,useExisting:(0,t.Gpc)(()=>Do)},xo=(()=>Promise.resolve())();let Do=(()=>{class Ee extends _n{constructor(de,ut,yn){super(),this.callSetDisabledState=yn,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Qe({},yt(de),Lt(ut))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(de){xo.then(()=>{const ut=this._findContainer(de.path);de.control=ut.registerControl(de.name,de.control),un(de.control,de,this.callSetDisabledState),de.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(de)})}getControl(de){return this.form.get(de.path)}removeControl(de){xo.then(()=>{const ut=this._findContainer(de.path);ut&&ut.removeControl(de.name),this._directives.delete(de)})}addFormGroup(de){xo.then(()=>{const ut=this._findContainer(de.path),yn=new Qe({});qt(yn,de),ut.registerControl(de.name,yn),yn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(de){xo.then(()=>{const ut=this._findContainer(de.path);ut&&ut.removeControl(de.name)})}getFormGroup(de){return this.form.get(de.path)}updateModel(de,ut){xo.then(()=>{this.form.get(de.path).setValue(ut)})}setValue(de){this.control.setValue(de)}onSubmit(de){return this.submitted=!0,bo(this.form,this._directives),this.ngSubmit.emit(de),"dialog"===de?.target?.method}onReset(){this.resetForm()}resetForm(de=void 0){this.form.reset(de),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(de){return de.pop(),de.length?this.form.get(de):this.form}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(R,10),t.Y36(pe,10),t.Y36(Pe,8))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(de,ut){1&de&&t.NdJ("submit",function(Qn){return ut.onSubmit(Qn)})("reset",function(){return ut.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Fo]),t.qOj]}),Ee})();function Ri(Ee,ye){const de=Ee.indexOf(ye);de>-1&&Ee.splice(de,1)}function oi(Ee){return"object"==typeof Ee&&null!==Ee&&2===Object.keys(Ee).length&&"value"in Ee&&"disabled"in Ee}const Ti=class extends mn{constructor(ye=null,de,ut){super(Me(de),nt(ut,de)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ye),this._setUpdateStrategy(de),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ot(de)&&(de.nonNullable||de.initialValueIsDefault)&&(this.defaultValue=oi(ye)?ye.value:ye)}setValue(ye,de={}){this.value=this._pendingValue=ye,this._onChange.length&&!1!==de.emitModelToViewChange&&this._onChange.forEach(ut=>ut(this.value,!1!==de.emitViewToModelChange)),this.updateValueAndValidity(de)}patchValue(ye,de={}){this.setValue(ye,de)}reset(ye=this.defaultValue,de={}){this._applyFormState(ye),this.markAsPristine(de),this.markAsUntouched(de),this.setValue(this.value,de),this._pendingChange=!1}_updateValue(){}_anyControls(ye){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ye){this._onChange.push(ye)}_unregisterOnChange(ye){Ri(this._onChange,ye)}registerOnDisabledChange(ye){this._onDisabledChange.push(ye)}_unregisterOnDisabledChange(ye){Ri(this._onDisabledChange,ye)}_forEachChild(ye){}_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(ye){oi(ye)?(this.value=this._pendingValue=ye.value,ye.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ye}},pr={provide:On,useExisting:(0,t.Gpc)(()=>lo)},hr=(()=>Promise.resolve())();let lo=(()=>{class Ee extends On{constructor(de,ut,yn,Qn,pi,ai){super(),this._changeDetectorRef=pi,this.callSetDisabledState=ai,this.control=new Ti,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=de,this._setValidators(ut),this._setAsyncValidators(yn),this.valueAccessor=eo(0,Qn)}ngOnChanges(de){if(this._checkForErrors(),!this._registered||"name"in de){if(this._registered&&(this._checkName(),this.formDirective)){const ut=de.name.previousValue;this.formDirective.removeControl({name:ut,path:this._getPath(ut)})}this._setUpControl()}"isDisabled"in de&&this._updateDisabled(de),jo(de,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(de){this.viewModel=de,this.update.emit(de)}_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(){un(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(de){hr.then(()=>{this.control.setValue(de,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(de){const ut=de.isDisabled.currentValue,yn=0!==ut&&(0,t.VuI)(ut);hr.then(()=>{yn&&!this.control.disabled?this.control.disable():!yn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(de){return this._parent?Yt(de,this._parent):[de]}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(_n,9),t.Y36(R,10),t.Y36(pe,10),t.Y36($,10),t.Y36(t.sBO,8),t.Y36(Pe,8))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([pr]),t.qOj,t.TTD]}),Ee})(),Oo=(()=>{class Ee{}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ee})(),Ko=(()=>{class Ee{}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({}),Ee})();const jn=new t.OlP("NgModelWithFormControlWarning"),so={provide:On,useExisting:(0,t.Gpc)(()=>Ue)};let Ue=(()=>{class Ee extends On{set isDisabled(de){}constructor(de,ut,yn,Qn,pi){super(),this._ngModelWarningConfig=Qn,this.callSetDisabledState=pi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(de),this._setAsyncValidators(ut),this.valueAccessor=eo(0,yn)}ngOnChanges(de){if(this._isControlChanged(de)){const ut=de.form.previousValue;ut&&Nt(ut,this,!1),un(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}jo(de,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(de){this.viewModel=de,this.update.emit(de)}_isControlChanged(de){return de.hasOwnProperty("form")}}return Ee._ngModelWarningSentOnce=!1,Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(R,10),t.Y36(pe,10),t.Y36($,10),t.Y36(jn,8),t.Y36(Pe,8))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([so]),t.qOj,t.TTD]}),Ee})();const oe={provide:_n,useExisting:(0,t.Gpc)(()=>Oe)};let Oe=(()=>{class Ee extends _n{constructor(de,ut,yn){super(),this.callSetDisabledState=yn,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(de),this._setAsyncValidators(ut)}ngOnChanges(de){this._checkFormPresent(),de.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(H(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(de){const ut=this.form.get(de.path);return un(ut,de,this.callSetDisabledState),ut.updateValueAndValidity({emitEvent:!1}),this.directives.push(de),ut}getControl(de){return this.form.get(de.path)}removeControl(de){Nt(de.control||null,de,!1),function hi(Ee,ye){const de=Ee.indexOf(ye);de>-1&&Ee.splice(de,1)}(this.directives,de)}addFormGroup(de){this._setUpFormContainer(de)}removeFormGroup(de){this._cleanUpFormContainer(de)}getFormGroup(de){return this.form.get(de.path)}addFormArray(de){this._setUpFormContainer(de)}removeFormArray(de){this._cleanUpFormContainer(de)}getFormArray(de){return this.form.get(de.path)}updateModel(de,ut){this.form.get(de.path).setValue(ut)}onSubmit(de){return this.submitted=!0,bo(this.form,this.directives),this.ngSubmit.emit(de),"dialog"===de?.target?.method}onReset(){this.resetForm()}resetForm(de=void 0){this.form.reset(de),this.submitted=!1}_updateDomValue(){this.directives.forEach(de=>{const ut=de.control,yn=this.form.get(de.path);ut!==yn&&(Nt(ut||null,de),(Ee=>Ee instanceof Ti)(yn)&&(un(yn,de,this.callSetDisabledState),de.control=yn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(de){const ut=this.form.get(de.path);qt(ut,de),ut.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(de){if(this.form){const ut=this.form.get(de.path);ut&&function Un(Ee,ye){return H(Ee,ye)}(ut,de)&&ut.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ee(this.form,this),this._oldForm&&H(this._oldForm,this)}_checkFormPresent(){}}return Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(R,10),t.Y36(pe,10),t.Y36(Pe,8))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","formGroup",""]],hostBindings:function(de,ut){1&de&&t.NdJ("submit",function(Qn){return ut.onSubmit(Qn)})("reset",function(){return ut.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([oe]),t.qOj,t.TTD]}),Ee})();const en={provide:On,useExisting:(0,t.Gpc)(()=>vn)};let vn=(()=>{class Ee extends On{set isDisabled(de){}constructor(de,ut,yn,Qn,pi){super(),this._ngModelWarningConfig=pi,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=de,this._setValidators(ut),this._setAsyncValidators(yn),this.valueAccessor=eo(0,Qn)}ngOnChanges(de){this._added||this._setUpControl(),jo(de,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(de){this.viewModel=de,this.update.emit(de)}get path(){return Yt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ee._ngModelWarningSentOnce=!1,Ee.\u0275fac=function(de){return new(de||Ee)(t.Y36(_n,13),t.Y36(R,10),t.Y36(pe,10),t.Y36($,10),t.Y36(jn,8))},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([en]),t.qOj,t.TTD]}),Ee})(),No=(()=>{class Ee{constructor(){this._validator=fe}ngOnChanges(de){if(this.inputName in de){const ut=this.normalizeInput(de[this.inputName].currentValue);this._enabled=this.enabled(ut),this._validator=this._enabled?this.createValidator(ut):fe,this._onChange&&this._onChange()}}validate(de){return this._validator(de)}registerOnValidatorChange(de){this._onChange=de}enabled(de){return null!=de}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275dir=t.lG2({type:Ee,features:[t.TTD]}),Ee})();const yi={provide:R,useExisting:(0,t.Gpc)(()=>ko),multi:!0};let ko=(()=>{class Ee extends No{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=de=>O}enabled(de){return de}}return Ee.\u0275fac=function(){let ye;return function(ut){return(ye||(ye=t.n5z(Ee)))(ut||Ee)}}(),Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(de,ut){2&de&&t.uIk("required",ut._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([yi]),t.qOj]}),Ee})(),sn=(()=>{class Ee{}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[Ko]}),Ee})();class Rn extends mn{constructor(ye,de,ut){super(Me(de),nt(ut,de)),this.controls=ye,this._initObservables(),this._setUpdateStrategy(de),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ye){return this.controls[this._adjustIndex(ye)]}push(ye,de={}){this.controls.push(ye),this._registerControl(ye),this.updateValueAndValidity({emitEvent:de.emitEvent}),this._onCollectionChange()}insert(ye,de,ut={}){this.controls.splice(ye,0,de),this._registerControl(de),this.updateValueAndValidity({emitEvent:ut.emitEvent})}removeAt(ye,de={}){let ut=this._adjustIndex(ye);ut<0&&(ut=0),this.controls[ut]&&this.controls[ut]._registerOnCollectionChange(()=>{}),this.controls.splice(ut,1),this.updateValueAndValidity({emitEvent:de.emitEvent})}setControl(ye,de,ut={}){let yn=this._adjustIndex(ye);yn<0&&(yn=0),this.controls[yn]&&this.controls[yn]._registerOnCollectionChange(()=>{}),this.controls.splice(yn,1),de&&(this.controls.splice(yn,0,de),this._registerControl(de)),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ye,de={}){St(this,0,ye),ye.forEach((ut,yn)=>{Vt(this,!1,yn),this.at(yn).setValue(ut,{onlySelf:!0,emitEvent:de.emitEvent})}),this.updateValueAndValidity(de)}patchValue(ye,de={}){null!=ye&&(ye.forEach((ut,yn)=>{this.at(yn)&&this.at(yn).patchValue(ut,{onlySelf:!0,emitEvent:de.emitEvent})}),this.updateValueAndValidity(de))}reset(ye=[],de={}){this._forEachChild((ut,yn)=>{ut.reset(ye[yn],{onlySelf:!0,emitEvent:de.emitEvent})}),this._updatePristine(de),this._updateTouched(de),this.updateValueAndValidity(de)}getRawValue(){return this.controls.map(ye=>ye.getRawValue())}clear(ye={}){this.controls.length<1||(this._forEachChild(de=>de._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ye.emitEvent}))}_adjustIndex(ye){return ye<0?ye+this.length:ye}_syncPendingControls(){let ye=this.controls.reduce((de,ut)=>!!ut._syncPendingControls()||de,!1);return ye&&this.updateValueAndValidity({onlySelf:!0}),ye}_forEachChild(ye){this.controls.forEach((de,ut)=>{ye(de,ut)})}_updateValue(){this.value=this.controls.filter(ye=>ye.enabled||this.disabled).map(ye=>ye.value)}_anyControls(ye){return this.controls.some(de=>de.enabled&&ye(de))}_setUpControls(){this._forEachChild(ye=>this._registerControl(ye))}_allControlsDisabled(){for(const ye of this.controls)if(ye.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ye){ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange)}_find(ye){return this.at(ye)??null}}let Cr=(()=>{class Ee{static withConfig(de){return{ngModule:Ee,providers:[{provide:Pe,useValue:de.callSetDisabledState??lt}]}}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[sn]}),Ee})(),ps=(()=>{class Ee{static withConfig(de){return{ngModule:Ee,providers:[{provide:jn,useValue:de.warnOnNgModelWithFormControl??"always"},{provide:Pe,useValue:de.callSetDisabledState??lt}]}}}return Ee.\u0275fac=function(de){return new(de||Ee)},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[sn]}),Ee})()},6593:(It,be,a)=>{a.d(be,{Dx:()=>Ne,H7:()=>K,b2:()=>wt,h_:()=>Be,q6:()=>Jt,se:()=>re});var t=a(5879),i=a(6814);class v extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class d extends v{static makeCurrent(){(0,i.HT)(new d)}onAndCancel(dt,se,ze){return dt.addEventListener(se,ze),()=>{dt.removeEventListener(se,ze)}}dispatchEvent(dt,se){dt.dispatchEvent(se)}remove(dt){dt.parentNode&&dt.parentNode.removeChild(dt)}createElement(dt,se){return(se=se||this.getDefaultDocument()).createElement(dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(dt){return dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(dt){return dt instanceof DocumentFragment}getGlobalEventTarget(dt,se){return"window"===se?window:"document"===se?dt:"body"===se?dt.body:null}getBaseHref(dt){const se=function L(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==se?null:function $(Qe){j=j||document.createElement("a"),j.setAttribute("href",Qe);const dt=j.pathname;return"/"===dt.charAt(0)?dt:`/${dt}`}(se)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(dt){return(0,i.Mx)(document.cookie,dt)}}let j,s=null,S=(()=>{class Qe{build(){return new XMLHttpRequest}}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const F=new t.OlP("EventManagerPlugins");let k=(()=>{class Qe{constructor(se,ze){this._zone=ze,this._eventNameToPlugin=new Map,se.forEach(mt=>{mt.manager=this}),this._plugins=se.slice().reverse()}addEventListener(se,ze,mt){return this._findPluginFor(ze).addEventListener(se,ze,mt)}getZone(){return this._zone}_findPluginFor(se){let ze=this._eventNameToPlugin.get(se);if(ze)return ze;if(ze=this._plugins.find(Pe=>Pe.supports(se)),!ze)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(se,ze),ze}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(F),t.LFG(t.R0b))},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class U{constructor(dt){this._doc=dt}}const w="ng-app-id";let M=(()=>{class Qe{constructor(se,ze,mt,Pe={}){this.doc=se,this.appId=ze,this.nonce=mt,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,i.PM)(Pe),this.resetHostNodes()}addStyles(se){for(const ze of se)1===this.changeUsageCount(ze,1)&&this.onStyleAdded(ze)}removeStyles(se){for(const ze of se)this.changeUsageCount(ze,-1)<=0&&this.onStyleRemoved(ze)}ngOnDestroy(){const se=this.styleNodesInDOM;se&&(se.forEach(ze=>ze.remove()),se.clear());for(const ze of this.getAllStyles())this.onStyleRemoved(ze);this.resetHostNodes()}addHost(se){this.hostNodes.add(se);for(const ze of this.getAllStyles())this.addStyleToHost(se,ze)}removeHost(se){this.hostNodes.delete(se)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(se){for(const ze of this.hostNodes)this.addStyleToHost(ze,se)}onStyleRemoved(se){const ze=this.styleRef;ze.get(se)?.elements?.forEach(mt=>mt.remove()),ze.delete(se)}collectServerRenderedStyles(){const se=this.doc.head?.querySelectorAll(`style[${w}="${this.appId}"]`);if(se?.length){const ze=new Map;return se.forEach(mt=>{null!=mt.textContent&&ze.set(mt.textContent,mt)}),ze}return null}changeUsageCount(se,ze){const mt=this.styleRef;if(mt.has(se)){const Pe=mt.get(se);return Pe.usage+=ze,Pe.usage}return mt.set(se,{usage:ze,elements:[]}),ze}getStyleElement(se,ze){const mt=this.styleNodesInDOM,Pe=mt?.get(ze);if(Pe?.parentNode===se)return mt.delete(ze),Pe.removeAttribute(w),Pe;{const lt=this.doc.createElement("style");return this.nonce&<.setAttribute("nonce",this.nonce),lt.textContent=ze,this.platformIsServer&<.setAttribute(w,this.appId),lt}}addStyleToHost(se,ze){const mt=this.getStyleElement(se,ze);se.appendChild(mt);const Pe=this.styleRef,lt=Pe.get(ze)?.elements;lt?lt.push(mt):Pe.set(ze,{elements:[mt],usage:1})}resetHostNodes(){const se=this.hostNodes;se.clear(),se.add(this.doc.head)}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const e={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},R=/%COMP%/g,V=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function D(Qe,dt){return dt.map(se=>se.replace(R,Qe))}let re=(()=>{class Qe{constructor(se,ze,mt,Pe,lt,Yt,un,Nt=null){this.eventManager=se,this.sharedStylesHost=ze,this.appId=mt,this.removeStylesOnCompDestroy=Pe,this.doc=lt,this.platformId=Yt,this.ngZone=un,this.nonce=Nt,this.rendererByCompId=new Map,this.platformIsServer=(0,i.PM)(Yt),this.defaultRenderer=new ae(se,lt,un,this.platformIsServer)}createRenderer(se,ze){if(!se||!ze)return this.defaultRenderer;this.platformIsServer&&ze.encapsulation===t.ifc.ShadowDom&&(ze={...ze,encapsulation:t.ifc.Emulated});const mt=this.getOrCreateRenderer(se,ze);return mt instanceof ke?mt.applyToHost(se):mt instanceof Se&&mt.applyStyles(),mt}getOrCreateRenderer(se,ze){const mt=this.rendererByCompId;let Pe=mt.get(ze.id);if(!Pe){const lt=this.doc,Yt=this.ngZone,un=this.eventManager,Nt=this.sharedStylesHost,pt=this.removeStylesOnCompDestroy,gt=this.platformIsServer;switch(ze.encapsulation){case t.ifc.Emulated:Pe=new ke(un,Nt,ze,this.appId,pt,lt,Yt,gt);break;case t.ifc.ShadowDom:return new ge(un,Nt,se,ze,lt,Yt,this.nonce,gt);default:Pe=new Se(un,Nt,ze,pt,lt,Yt,gt)}mt.set(ze.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(k),t.LFG(M),t.LFG(t.AFp),t.LFG(V),t.LFG(i.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class ae{constructor(dt,se,ze,mt){this.eventManager=dt,this.doc=se,this.ngZone=ze,this.platformIsServer=mt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(dt,se){return se?this.doc.createElementNS(e[se]||se,dt):this.doc.createElement(dt)}createComment(dt){return this.doc.createComment(dt)}createText(dt){return this.doc.createTextNode(dt)}appendChild(dt,se){(ue(dt)?dt.content:dt).appendChild(se)}insertBefore(dt,se,ze){dt&&(ue(dt)?dt.content:dt).insertBefore(se,ze)}removeChild(dt,se){dt&&dt.removeChild(se)}selectRootElement(dt,se){let ze="string"==typeof dt?this.doc.querySelector(dt):dt;if(!ze)throw new t.vHH(-5104,!1);return se||(ze.textContent=""),ze}parentNode(dt){return dt.parentNode}nextSibling(dt){return dt.nextSibling}setAttribute(dt,se,ze,mt){if(mt){se=mt+":"+se;const Pe=e[mt];Pe?dt.setAttributeNS(Pe,se,ze):dt.setAttribute(se,ze)}else dt.setAttribute(se,ze)}removeAttribute(dt,se,ze){if(ze){const mt=e[ze];mt?dt.removeAttributeNS(mt,se):dt.removeAttribute(`${ze}:${se}`)}else dt.removeAttribute(se)}addClass(dt,se){dt.classList.add(se)}removeClass(dt,se){dt.classList.remove(se)}setStyle(dt,se,ze,mt){mt&(t.JOm.DashCase|t.JOm.Important)?dt.style.setProperty(se,ze,mt&t.JOm.Important?"important":""):dt.style[se]=ze}removeStyle(dt,se,ze){ze&t.JOm.DashCase?dt.style.removeProperty(se):dt.style[se]=""}setProperty(dt,se,ze){dt[se]=ze}setValue(dt,se){dt.nodeValue=se}listen(dt,se,ze){if("string"==typeof dt&&!(dt=(0,i.q)().getGlobalEventTarget(this.doc,dt)))throw new Error(`Unsupported event target ${dt} for event ${se}`);return this.eventManager.addEventListener(dt,se,this.decoratePreventDefault(ze))}decoratePreventDefault(dt){return se=>{if("__ngUnwrap__"===se)return dt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>dt(se)):dt(se))&&se.preventDefault()}}}function ue(Qe){return"TEMPLATE"===Qe.tagName&&void 0!==Qe.content}class ge extends ae{constructor(dt,se,ze,mt,Pe,lt,Yt,un){super(dt,Pe,lt,un),this.sharedStylesHost=se,this.hostEl=ze,this.shadowRoot=ze.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Nt=D(mt.id,mt.styles);for(const pt of Nt){const gt=document.createElement("style");Yt&>.setAttribute("nonce",Yt),gt.textContent=pt,this.shadowRoot.appendChild(gt)}}nodeOrShadowRoot(dt){return dt===this.hostEl?this.shadowRoot:dt}appendChild(dt,se){return super.appendChild(this.nodeOrShadowRoot(dt),se)}insertBefore(dt,se,ze){return super.insertBefore(this.nodeOrShadowRoot(dt),se,ze)}removeChild(dt,se){return super.removeChild(this.nodeOrShadowRoot(dt),se)}parentNode(dt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(dt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Se extends ae{constructor(dt,se,ze,mt,Pe,lt,Yt,un){super(dt,Pe,lt,Yt),this.sharedStylesHost=se,this.removeStylesOnCompDestroy=mt,this.styles=un?D(un,ze.styles):ze.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ke extends Se{constructor(dt,se,ze,mt,Pe,lt,Yt,un){const Nt=mt+"-"+ze.id;super(dt,se,ze,Pe,lt,Yt,un,Nt),this.contentAttr=function O(Qe){return"_ngcontent-%COMP%".replace(R,Qe)}(Nt),this.hostAttr=function P(Qe){return"_nghost-%COMP%".replace(R,Qe)}(Nt)}applyToHost(dt){this.applyStyles(),this.setAttribute(dt,this.hostAttr,"")}createElement(dt,se){const ze=super.createElement(dt,se);return super.setAttribute(ze,this.contentAttr,""),ze}}let Rt=(()=>{class Qe extends U{constructor(se){super(se)}supports(se){return!0}addEventListener(se,ze,mt){return se.addEventListener(ze,mt,!1),()=>this.removeEventListener(se,ze,mt)}removeEventListener(se,ze,mt){return se.removeEventListener(ze,mt)}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0))},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const Ft=["alt","control","meta","shift"],Mt={"\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"},yt={alt:Qe=>Qe.altKey,control:Qe=>Qe.ctrlKey,meta:Qe=>Qe.metaKey,shift:Qe=>Qe.shiftKey};let Ct=(()=>{class Qe extends U{constructor(se){super(se)}supports(se){return null!=Qe.parseEventName(se)}addEventListener(se,ze,mt){const Pe=Qe.parseEventName(ze),lt=Qe.eventCallback(Pe.fullKey,mt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(se,Pe.domEventName,lt))}static parseEventName(se){const ze=se.toLowerCase().split("."),mt=ze.shift();if(0===ze.length||"keydown"!==mt&&"keyup"!==mt)return null;const Pe=Qe._normalizeKey(ze.pop());let lt="",Yt=ze.indexOf("code");if(Yt>-1&&(ze.splice(Yt,1),lt="code."),Ft.forEach(Nt=>{const pt=ze.indexOf(Nt);pt>-1&&(ze.splice(pt,1),lt+=Nt+".")}),lt+=Pe,0!=ze.length||0===Pe.length)return null;const un={};return un.domEventName=mt,un.fullKey=lt,un}static matchEventFullKeyCode(se,ze){let mt=Mt[se.key]||se.key,Pe="";return ze.indexOf("code.")>-1&&(mt=se.code,Pe="code."),!(null==mt||!mt)&&(mt=mt.toLowerCase()," "===mt?mt="space":"."===mt&&(mt="dot"),Ft.forEach(lt=>{lt!==mt&&(0,yt[lt])(se)&&(Pe+=lt+".")}),Pe+=mt,Pe===ze)}static eventCallback(se,ze,mt){return Pe=>{Qe.matchEventFullKeyCode(Pe,se)&&mt.runGuarded(()=>ze(Pe))}}static _normalizeKey(se){return"esc"===se?"escape":se}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0))},Qe.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const Jt=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:i.bD},{provide:t.g9A,useValue:function Ye(){d.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Ze(){return(0,t.RDi)(document),document},deps:[]}]),_n=new t.OlP(""),On=[{provide:t.rWj,useClass:class I{addToWindow(dt){t.dqk.getAngularTestability=(ze,mt=!0)=>{const Pe=dt.findTestabilityInTree(ze,mt);if(null==Pe)throw new t.vHH(5103,!1);return Pe},t.dqk.getAllAngularTestabilities=()=>dt.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>dt.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(ze=>{const mt=t.dqk.getAllAngularTestabilities();let Pe=mt.length,lt=!1;const Yt=function(un){lt=lt||un,Pe--,0==Pe&&ze(lt)};mt.forEach(un=>{un.whenStable(Yt)})})}findTestabilityInTree(dt,se,ze){return null==se?null:dt.getTestability(se)??(ze?(0,i.q)().isShadowRoot(se)?this.findTestabilityInTree(dt,se.host,!0):this.findTestabilityInTree(dt,se.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],cn=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function st(){return new t.qLn},deps:[]},{provide:F,useClass:Rt,multi:!0,deps:[i.K0,t.R0b,t.Lbi]},{provide:F,useClass:Ct,multi:!0,deps:[i.K0]},re,M,k,{provide:t.FYo,useExisting:re},{provide:i.JF,useClass:S,deps:[]},[]];let wt=(()=>{class Qe{constructor(se){}static withServerTransition(se){return{ngModule:Qe,providers:[{provide:t.AFp,useValue:se.appId}]}}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(_n,12))},Qe.\u0275mod=t.oAB({type:Qe}),Qe.\u0275inj=t.cJS({providers:[...cn,...On],imports:[i.ez,t.hGG]}),Qe})(),Be=(()=>{class Qe{constructor(se){this._doc=se,this._dom=(0,i.q)()}addTag(se,ze=!1){return se?this._getOrCreateElement(se,ze):null}addTags(se,ze=!1){return se?se.reduce((mt,Pe)=>(Pe&&mt.push(this._getOrCreateElement(Pe,ze)),mt),[]):[]}getTag(se){return se&&this._doc.querySelector(`meta[${se}]`)||null}getTags(se){if(!se)return[];const ze=this._doc.querySelectorAll(`meta[${se}]`);return ze?[].slice.call(ze):[]}updateTag(se,ze){if(!se)return null;ze=ze||this._parseSelector(se);const mt=this.getTag(ze);return mt?this._setMetaElementAttributes(se,mt):this._getOrCreateElement(se,!0)}removeTag(se){this.removeTagElement(this.getTag(se))}removeTagElement(se){se&&this._dom.remove(se)}_getOrCreateElement(se,ze=!1){if(!ze){const lt=this._parseSelector(se),Yt=this.getTags(lt).filter(un=>this._containsAttributes(se,un))[0];if(void 0!==Yt)return Yt}const mt=this._dom.createElement("meta");return this._setMetaElementAttributes(se,mt),this._doc.getElementsByTagName("head")[0].appendChild(mt),mt}_setMetaElementAttributes(se,ze){return Object.keys(se).forEach(mt=>ze.setAttribute(this._getMetaKeyMap(mt),se[mt])),ze}_parseSelector(se){const ze=se.name?"name":"property";return`${ze}="${se[ze]}"`}_containsAttributes(se,ze){return Object.keys(se).every(mt=>ze.getAttribute(this._getMetaKeyMap(mt))===se[mt])}_getMetaKeyMap(se){return He[se]||se}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0))},Qe.\u0275prov=t.Yz7({token:Qe,factory:function(se){let ze=null;return ze=se?new se:function Ve(){return new Be((0,t.LFG)(i.K0))}(),ze},providedIn:"root"}),Qe})();const He={httpEquiv:"http-equiv"};let Ne=(()=>{class Qe{constructor(se){this._doc=se}getTitle(){return this._doc.title}setTitle(se){this._doc.title=se||""}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0))},Qe.\u0275prov=t.Yz7({token:Qe,factory:function(se){let ze=null;return ze=se?new se:function je(){return new Ne((0,t.LFG)(i.K0))}(),ze},providedIn:"root"}),Qe})();typeof window<"u"&&window;let K=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275prov=t.Yz7({token:Qe,factory:function(se){let ze=null;return ze=se?new(se||Qe):t.LFG(J),ze},providedIn:"root"}),Qe})(),J=(()=>{class Qe extends K{constructor(se){super(),this._doc=se}sanitize(se,ze){if(null==ze)return null;switch(se){case t.q3G.NONE:return ze;case t.q3G.HTML:return(0,t.qzn)(ze,"HTML")?(0,t.z3N)(ze):(0,t.EiD)(this._doc,String(ze)).toString();case t.q3G.STYLE:return(0,t.qzn)(ze,"Style")?(0,t.z3N)(ze):ze;case t.q3G.SCRIPT:if((0,t.qzn)(ze,"Script"))return(0,t.z3N)(ze);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(ze,"URL")?(0,t.z3N)(ze):(0,t.mCW)(String(ze));case t.q3G.RESOURCE_URL:if((0,t.qzn)(ze,"ResourceURL"))return(0,t.z3N)(ze);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(se){return(0,t.JVY)(se)}bypassSecurityTrustStyle(se){return(0,t.L6k)(se)}bypassSecurityTrustScript(se){return(0,t.eBb)(se)}bypassSecurityTrustUrl(se){return(0,t.LAX)(se)}bypassSecurityTrustResourceUrl(se){return(0,t.pB0)(se)}}return Qe.\u0275fac=function(se){return new(se||Qe)(t.LFG(i.K0))},Qe.\u0275prov=t.Yz7({token:Qe,factory:function(se){let ze=null;return ze=se?new se:function N(Qe){return new J(Qe.get(i.K0))}(t.LFG(t.zs3)),ze},providedIn:"root"}),Qe})()},4190:(It,be,a)=>{a.d(be,{gz:()=>Zi,m2:()=>si,eC:()=>Lt,F0:()=>zi,rH:()=>gr,Od:()=>ar,Bz:()=>qc,lC:()=>Ht});var t=a(5879),i=a(2664),v=a(9666),d=a(2096),s=a(5619),L=a(2572),j=a(6973),$=a(5211),I=a(4911),S=a(8407),F=a(8504),k=a(6232),U=a(3168),w=a(8645),M=a(6814),e=a(7398),R=a(4664),pe=a(8180),me=a(7921),Z=a(2181),A=a(1631),V=a(1374),O=a(6328),P=a(9397),D=a(6306),re=a(6699),ae=a(3572),Q=a(9360),fe=a(8251);function ue(B){return B<=0?()=>k.E:(0,Q.e)((X,x)=>{let ce=[];X.subscribe((0,fe.x)(x,Ie=>{ce.push(Ie),B{for(const Ie of ce)x.next(Ie);x.complete()},void 0,()=>{ce=null}))})}var ge=a(3026),Se=a(2737),Rt=a(975),Ft=a(4716),Mt=a(6196),yt=a(7537),Ct=a(6593);const Lt="primary",rn=Symbol("RouteTitle");class Sn{constructor(X){this.params=X||{}}has(X){return Object.prototype.hasOwnProperty.call(this.params,X)}get(X){if(this.has(X)){const x=this.params[X];return Array.isArray(x)?x[0]:x}return null}getAll(X){if(this.has(X)){const x=this.params[X];return Array.isArray(x)?x:[x]}return[]}get keys(){return Object.keys(this.params)}}function rt(B){return new Sn(B)}function Ye(B,X,x){const ce=x.path.split("/");if(ce.length>B.length||"full"===x.pathMatch&&(X.hasChildren()||ce.lengthce[ht]===Ie)}return B===X}function Jt(B){return B.length>0?B[B.length-1]:null}function _n(B){return(0,i.b)(B)?B:(0,t.QGY)(B)?(0,v.D)(Promise.resolve(B)):(0,d.of)(B)}const On={exact:function Be(B,X,x){if(!ct(B.segments,X.segments)||!De(B.segments,X.segments,x)||B.numberOfChildren!==X.numberOfChildren)return!1;for(const ce in X.children)if(!B.children[ce]||!Be(B.children[ce],X.children[ce],x))return!1;return!0},subset:je},cn={exact:function Ve(B,X){return Ze(B,X)},subset:function He(B,X){return Object.keys(X).length<=Object.keys(B).length&&Object.keys(X).every(x=>Bt(B[x],X[x]))},ignored:()=>!0};function wt(B,X,x){return On[x.paths](B.root,X.root,x.matrixParams)&&cn[x.queryParams](B.queryParams,X.queryParams)&&!("exact"===x.fragment&&B.fragment!==X.fragment)}function je(B,X,x){return Ne(B,X,X.segments,x)}function Ne(B,X,x,ce){if(B.segments.length>x.length){const Ie=B.segments.slice(0,x.length);return!(!ct(Ie,x)||X.hasChildren()||!De(Ie,x,ce))}if(B.segments.length===x.length){if(!ct(B.segments,x)||!De(B.segments,x,ce))return!1;for(const Ie in X.children)if(!B.children[Ie]||!je(B.children[Ie],X.children[Ie],ce))return!1;return!0}{const Ie=x.slice(0,B.segments.length),ht=x.slice(B.segments.length);return!!(ct(B.segments,Ie)&&De(B.segments,Ie,ce)&&B.children[Lt])&&Ne(B.children[Lt],X,ht,ce)}}function De(B,X,x){return X.every((ce,Ie)=>cn[x](B[Ie].parameters,ce.parameters))}class ie{constructor(X=new Ce([],{}),x={},ce=null){this.root=X,this.queryParams=x,this.fragment=ce}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}toString(){return Xe.serialize(this)}}class Ce{constructor(X,x){this.segments=X,this.children=x,this.parent=null,Object.values(x).forEach(ce=>ce.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}}class ve{constructor(X,x){this.path=X,this.parameters=x}get parameterMap(){return this._parameterMap||(this._parameterMap=rt(this.parameters)),this._parameterMap}toString(){return J(this)}}function ct(B,X){return B.length===X.length&&B.every((x,ce)=>x.path===X[ce].path)}let Cn=(()=>{class B{}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:function(){return new at},providedIn:"root"}),B})();class at{parse(X){const x=new se(X);return new ie(x.parseRootSegment(),x.parseQueryParams(),x.parseFragment())}serialize(X){const x=`/${Ot(X.root,!0)}`,ce=function zt(B){const X=Object.keys(B).map(x=>{const ce=B[x];return Array.isArray(ce)?ce.map(Ie=>`${Wt(x)}=${Wt(Ie)}`).join("&"):`${Wt(x)}=${Wt(ce)}`}).filter(x=>!!x);return X.length?`?${X.join("&")}`:""}(X.queryParams);return`${x}${ce}${"string"==typeof X.fragment?`#${function kt(B){return encodeURI(B)}(X.fragment)}`:""}`}}const Xe=new at;function it(B){return B.segments.map(X=>J(X)).join("/")}function Ot(B,X){if(!B.hasChildren())return it(B);if(X){const x=B.children[Lt]?Ot(B.children[Lt],!1):"",ce=[];return Object.entries(B.children).forEach(([Ie,ht])=>{Ie!==Lt&&ce.push(`${Ie}:${Ot(ht,!1)}`)}),ce.length>0?`${x}(${ce.join("//")})`:x}{const x=function Zt(B,X){let x=[];return Object.entries(B.children).forEach(([ce,Ie])=>{ce===Lt&&(x=x.concat(X(Ie,ce)))}),Object.entries(B.children).forEach(([ce,Ie])=>{ce!==Lt&&(x=x.concat(X(Ie,ce)))}),x}(B,(ce,Ie)=>Ie===Lt?[Ot(B.children[Lt],!1)]:[`${Ie}:${Ot(ce,!1)}`]);return 1===Object.keys(B.children).length&&null!=B.children[Lt]?`${it(B)}/${x[0]}`:`${it(B)}/(${x.join("//")})`}}function Pt(B){return encodeURIComponent(B).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wt(B){return Pt(B).replace(/%3B/gi,";")}function Je(B){return Pt(B).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function K(B){return decodeURIComponent(B)}function N(B){return K(B.replace(/\+/g,"%20"))}function J(B){return`${Je(B.path)}${function Me(B){return Object.keys(B).map(X=>`;${Je(X)}=${Je(B[X])}`).join("")}(B.parameters)}`}const nt=/^[^\/()?;#]+/;function We(B){const X=B.match(nt);return X?X[0]:""}const ot=/^[^\/()?;=#]+/,St=/^[^=?&#]+/,Qe=/^[^&#]+/;class se{constructor(X){this.url=X,this.remaining=X}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ce([],{}):new Ce([],this.parseChildren())}parseQueryParams(){const X={};if(this.consumeOptional("?"))do{this.parseQueryParam(X)}while(this.consumeOptional("&"));return X}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const X=[];for(this.peekStartsWith("(")||X.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),X.push(this.parseSegment());let x={};this.peekStartsWith("/(")&&(this.capture("/"),x=this.parseParens(!0));let ce={};return this.peekStartsWith("(")&&(ce=this.parseParens(!1)),(X.length>0||Object.keys(x).length>0)&&(ce[Lt]=new Ce(X,x)),ce}parseSegment(){const X=We(this.remaining);if(""===X&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(X),new ve(K(X),this.parseMatrixParams())}parseMatrixParams(){const X={};for(;this.consumeOptional(";");)this.parseParam(X);return X}parseParam(X){const x=function Vt(B){const X=B.match(ot);return X?X[0]:""}(this.remaining);if(!x)return;this.capture(x);let ce="";if(this.consumeOptional("=")){const Ie=We(this.remaining);Ie&&(ce=Ie,this.capture(ce))}X[K(x)]=K(ce)}parseQueryParam(X){const x=function mn(B){const X=B.match(St);return X?X[0]:""}(this.remaining);if(!x)return;this.capture(x);let ce="";if(this.consumeOptional("=")){const _t=function dt(B){const X=B.match(Qe);return X?X[0]:""}(this.remaining);_t&&(ce=_t,this.capture(ce))}const Ie=N(x),ht=N(ce);if(X.hasOwnProperty(Ie)){let _t=X[Ie];Array.isArray(_t)||(_t=[_t],X[Ie]=_t),_t.push(ht)}else X[Ie]=ht}parseParens(X){const x={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ce=We(this.remaining),Ie=this.remaining[ce.length];if("/"!==Ie&&")"!==Ie&&";"!==Ie)throw new t.vHH(4010,!1);let ht;ce.indexOf(":")>-1?(ht=ce.slice(0,ce.indexOf(":")),this.capture(ht),this.capture(":")):X&&(ht=Lt);const _t=this.parseChildren();x[ht]=1===Object.keys(_t).length?_t[Lt]:new Ce([],_t),this.consumeOptional("//")}return x}peekStartsWith(X){return this.remaining.startsWith(X)}consumeOptional(X){return!!this.peekStartsWith(X)&&(this.remaining=this.remaining.substring(X.length),!0)}capture(X){if(!this.consumeOptional(X))throw new t.vHH(4011,!1)}}function ze(B){return B.segments.length>0?new Ce([],{[Lt]:B}):B}function mt(B){const X={};for(const ce of Object.keys(B.children)){const ht=mt(B.children[ce]);if(ce===Lt&&0===ht.segments.length&&ht.hasChildren())for(const[_t,an]of Object.entries(ht.children))X[_t]=an;else(ht.segments.length>0||ht.hasChildren())&&(X[ce]=ht)}return function Pe(B){if(1===B.numberOfChildren&&B.children[Lt]){const X=B.children[Lt];return new Ce(B.segments.concat(X.segments),X.children)}return B}(new Ce(B.segments,X))}function lt(B){return B instanceof ie}function un(B){let X;const Ie=ze(function x(ht){const _t={};for(const An of ht.children){const io=x(An);_t[An.outlet]=io}const an=new Ce(ht.url,_t);return ht===B&&(X=an),an}(B.root));return X??Ie}function Nt(B,X,x,ce){let Ie=B;for(;Ie.parent;)Ie=Ie.parent;if(0===X.length)return ee(Ie,Ie,Ie,x,ce);const ht=function $e(B){if("string"==typeof B[0]&&1===B.length&&"/"===B[0])return new Te(!0,0,B);let X=0,x=!1;const ce=B.reduce((Ie,ht,_t)=>{if("object"==typeof ht&&null!=ht){if(ht.outlets){const an={};return Object.entries(ht.outlets).forEach(([An,io])=>{an[An]="string"==typeof io?io.split("/"):io}),[...Ie,{outlets:an}]}if(ht.segmentPath)return[...Ie,ht.segmentPath]}return"string"!=typeof ht?[...Ie,ht]:0===_t?(ht.split("/").forEach((an,An)=>{0==An&&"."===an||(0==An&&""===an?x=!0:".."===an?X++:""!=an&&Ie.push(an))}),Ie):[...Ie,ht]},[]);return new Te(x,X,ce)}(X);if(ht.toRoot())return ee(Ie,Ie,new Ce([],{}),x,ce);const _t=function Xt(B,X,x){if(B.isAbsolute)return new Tt(X,!0,0);if(!x)return new Tt(X,!1,NaN);if(null===x.parent)return new Tt(x,!0,0);const ce=pt(B.commands[0])?0:1;return function qt(B,X,x){let ce=B,Ie=X,ht=x;for(;ht>Ie;){if(ht-=Ie,ce=ce.parent,!ce)throw new t.vHH(4005,!1);Ie=ce.segments.length}return new Tt(ce,!1,Ie-ht)}(x,x.segments.length-1+ce,B.numberOfDoubleDots)}(ht,Ie,B),an=_t.processChildren?Vn(_t.segmentGroup,_t.index,ht.commands):zn(_t.segmentGroup,_t.index,ht.commands);return ee(Ie,_t.segmentGroup,an,x,ce)}function pt(B){return"object"==typeof B&&null!=B&&!B.outlets&&!B.segmentPath}function gt(B){return"object"==typeof B&&null!=B&&B.outlets}function ee(B,X,x,ce,Ie){let _t,ht={};ce&&Object.entries(ce).forEach(([An,io])=>{ht[An]=Array.isArray(io)?io.map(ro=>`${ro}`):`${io}`}),_t=B===X?x:H(B,X,x);const an=ze(mt(_t));return new ie(an,ht,Ie)}function H(B,X,x){const ce={};return Object.entries(B.children).forEach(([Ie,ht])=>{ce[Ie]=ht===X?x:H(ht,X,x)}),new Ce(B.segments,ce)}class Te{constructor(X,x,ce){if(this.isAbsolute=X,this.numberOfDoubleDots=x,this.commands=ce,X&&ce.length>0&&pt(ce[0]))throw new t.vHH(4003,!1);const Ie=ce.find(gt);if(Ie&&Ie!==Jt(ce))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Tt{constructor(X,x,ce){this.segmentGroup=X,this.processChildren=x,this.index=ce}}function zn(B,X,x){if(B||(B=new Ce([],{})),0===B.segments.length&&B.hasChildren())return Vn(B,X,x);const ce=function vo(B,X,x){let ce=0,Ie=X;const ht={match:!1,pathIndex:0,commandIndex:0};for(;Ie=x.length)return ht;const _t=B.segments[Ie],an=x[ce];if(gt(an))break;const An=`${an}`,io=ce0&&void 0===An)break;if(An&&io&&"object"==typeof io&&void 0===io.outlets){if(!ei(An,io,_t))return ht;ce+=2}else{if(!ei(An,{},_t))return ht;ce++}Ie++}return{match:!0,pathIndex:Ie,commandIndex:ce}}(B,X,x),Ie=x.slice(ce.commandIndex);if(ce.match&&ce.pathIndex{"string"==typeof _t&&(_t=[_t]),null!==_t&&(Ie[ht]=zn(B.children[ht],X,_t))}),Object.entries(B.children).forEach(([ht,_t])=>{void 0===ce[ht]&&(Ie[ht]=_t)}),new Ce(B.segments,Ie)}}function Xn(B,X,x){const ce=B.segments.slice(0,X);let Ie=0;for(;Ie{"string"==typeof ce&&(ce=[ce]),null!==ce&&(X[x]=Xn(new Ce([],{}),0,ce))}),X}function jo(B){const X={};return Object.entries(B).forEach(([x,ce])=>X[x]=`${ce}`),X}function ei(B,X,x){return B==x.path&&Ze(X,x.parameters)}const bo="imperative";class eo{constructor(X,x){this.id=X,this.url=x}}class hi extends eo{constructor(X,x,ce="imperative",Ie=null){super(X,x),this.type=0,this.navigationTrigger=ce,this.restoredState=Ie}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class si extends eo{constructor(X,x,ce){super(X,x),this.urlAfterRedirects=ce,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fo extends eo{constructor(X,x,ce,Ie){super(X,x),this.reason=ce,this.code=Ie,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xo extends eo{constructor(X,x,ce,Ie){super(X,x),this.reason=ce,this.code=Ie,this.type=16}}class Do extends eo{constructor(X,x,ce,Ie){super(X,x),this.error=ce,this.target=Ie,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ri extends eo{constructor(X,x,ce,Ie){super(X,x),this.urlAfterRedirects=ce,this.state=Ie,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oi extends eo{constructor(X,x,ce,Ie){super(X,x),this.urlAfterRedirects=ce,this.state=Ie,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ti extends eo{constructor(X,x,ce,Ie,ht){super(X,x),this.urlAfterRedirects=ce,this.state=Ie,this.shouldActivate=ht,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Fn extends eo{constructor(X,x,ce,Ie){super(X,x),this.urlAfterRedirects=ce,this.state=Ie,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi extends eo{constructor(X,x,ce,Ie){super(X,x),this.urlAfterRedirects=ce,this.state=Ie,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bi{constructor(X){this.route=X,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nr{constructor(X){this.route=X,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ui{constructor(X){this.snapshot=X,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pr{constructor(X){this.snapshot=X,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oi{constructor(X){this.snapshot=X,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class or{constructor(X){this.snapshot=X,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xi{constructor(X,x,ce){this.routerEvent=X,this.position=x,this.anchor=ce,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new lo,this.attachRef=null}}let lo=(()=>{class B{constructor(){this.contexts=new Map}onChildOutletCreated(x,ce){const Ie=this.getOrCreateContext(x);Ie.outlet=ce,this.contexts.set(x,Ie)}onChildOutletDestroyed(x){const ce=this.getContext(x);ce&&(ce.outlet=null,ce.attachRef=null)}onOutletDeactivated(){const x=this.contexts;return this.contexts=new Map,x}onOutletReAttached(x){this.contexts=x}getOrCreateContext(x){let ce=this.getContext(x);return ce||(ce=new hr,this.contexts.set(x,ce)),ce}getContext(x){return this.contexts.get(x)||null}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();class Oo{constructor(X){this._root=X}get root(){return this._root.value}parent(X){const x=this.pathFromRoot(X);return x.length>1?x[x.length-2]:null}children(X){const x=Po(X,this._root);return x?x.children.map(ce=>ce.value):[]}firstChild(X){const x=Po(X,this._root);return x&&x.children.length>0?x.children[0].value:null}siblings(X){const x=qo(X,this._root);return x.length<2?[]:x[x.length-2].children.map(Ie=>Ie.value).filter(Ie=>Ie!==X)}pathFromRoot(X){return qo(X,this._root).map(x=>x.value)}}function Po(B,X){if(B===X.value)return X;for(const x of X.children){const ce=Po(B,x);if(ce)return ce}return null}function qo(B,X){if(B===X.value)return[X];for(const x of X.children){const ce=qo(B,x);if(ce.length)return ce.unshift(X),ce}return[]}class Vo{constructor(X,x){this.value=X,this.children=x}toString(){return`TreeNode(${this.value})`}}function Zo(B){const X={};return B&&B.children.forEach(x=>X[x.value.outlet]=x),X}class Ko extends Oo{constructor(X,x){super(X),this.snapshot=x,oe(this,X)}toString(){return this.snapshot.toString()}}function _i(B,X){const x=function ji(B,X){const _t=new so([],{},{},"",{},Lt,X,null,{});return new Ue("",new Vo(_t,[]))}(0,X),ce=new s.X([new ve("",{})]),Ie=new s.X({}),ht=new s.X({}),_t=new s.X({}),an=new s.X(""),An=new Zi(ce,Ie,_t,an,ht,Lt,X,x.root);return An.snapshot=x.root,new Ko(new Vo(An,[]),x)}class Zi{constructor(X,x,ce,Ie,ht,_t,an,An){this.urlSubject=X,this.paramsSubject=x,this.queryParamsSubject=ce,this.fragmentSubject=Ie,this.dataSubject=ht,this.outlet=_t,this.component=an,this._futureSnapshot=An,this.title=this.dataSubject?.pipe((0,e.U)(io=>io[rn]))??(0,d.of)(void 0),this.url=X,this.params=x,this.queryParams=ce,this.fragment=Ie,this.data=ht}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,e.U)(X=>rt(X)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,e.U)(X=>rt(X)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xo(B,X="emptyOnly"){const x=B.pathFromRoot;let ce=0;if("always"!==X)for(ce=x.length-1;ce>=1;){const Ie=x[ce],ht=x[ce-1];if(Ie.routeConfig&&""===Ie.routeConfig.path)ce--;else{if(ht.component)break;ce--}}return function jn(B){return B.reduce((X,x)=>({params:{...X.params,...x.params},data:{...X.data,...x.data},resolve:{...x.data,...X.resolve,...x.routeConfig?.data,...x._resolvedData}}),{params:{},data:{},resolve:{}})}(x.slice(ce))}class so{get title(){return this.data?.[rn]}constructor(X,x,ce,Ie,ht,_t,an,An,io){this.url=X,this.params=x,this.queryParams=ce,this.fragment=Ie,this.data=ht,this.outlet=_t,this.component=an,this.routeConfig=An,this._resolve=io}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=rt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ce=>ce.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ue extends Oo{constructor(X,x){super(x),this.url=X,oe(this,x)}toString(){return Oe(this._root)}}function oe(B,X){X.value._routerState=B,X.children.forEach(x=>oe(B,x))}function Oe(B){const X=B.children.length>0?` { ${B.children.map(Oe).join(", ")} } `:"";return`${B.value}${X}`}function Ge(B){if(B.snapshot){const X=B.snapshot,x=B._futureSnapshot;B.snapshot=x,Ze(X.queryParams,x.queryParams)||B.queryParamsSubject.next(x.queryParams),X.fragment!==x.fragment&&B.fragmentSubject.next(x.fragment),Ze(X.params,x.params)||B.paramsSubject.next(x.params),function st(B,X){if(B.length!==X.length)return!1;for(let x=0;xZe(x.parameters,X[ce].parameters))}(B.url,X.url);return x&&!(!B.parent!=!X.parent)&&(!B.parent||bt(B.parent,X.parent))}let Ht=(()=>{class B{constructor(){this.activated=null,this._activatedRoute=null,this.name=Lt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(lo),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(fn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(x){if(x.name){const{firstChange:ce,previousValue:Ie}=x.name;if(ce)return;this.isTrackedInParentContexts(Ie)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ie)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(x){return this.parentContexts.getContext(x)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const x=this.parentContexts.getContext(this.name);x?.route&&(x.attachRef?this.attach(x.attachRef,x.route):this.activateWith(x.route,x.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const x=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(x.instance),x}attach(x,ce){this.activated=x,this._activatedRoute=ce,this.location.insert(x.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(x.instance)}deactivate(){if(this.activated){const x=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(x)}}activateWith(x,ce){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=x;const Ie=this.location,_t=x.snapshot.component,an=this.parentContexts.getOrCreateContext(this.name).children,An=new nn(x,an,Ie.injector);this.activated=Ie.createComponent(_t,{index:Ie.length,injector:An,environmentInjector:ce??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275dir=t.lG2({type:B,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),B})();class nn{constructor(X,x,ce){this.route=X,this.childContexts=x,this.parent=ce}get(X,x){return X===Zi?this.route:X===lo?this.childContexts:this.parent.get(X,x)}}const fn=new t.OlP("");let en=(()=>{class B{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(x){this.unsubscribeFromRouteData(x),this.subscribeToRouteData(x)}unsubscribeFromRouteData(x){this.outletDataSubscriptions.get(x)?.unsubscribe(),this.outletDataSubscriptions.delete(x)}subscribeToRouteData(x){const{activatedRoute:ce}=x,Ie=(0,L.a)([ce.queryParams,ce.params,ce.data]).pipe((0,R.w)(([ht,_t,an],An)=>(an={...ht,..._t,...an},0===An?(0,d.of)(an):Promise.resolve(an)))).subscribe(ht=>{if(!x.isActivated||!x.activatedComponentRef||x.activatedRoute!==ce||null===ce.component)return void this.unsubscribeFromRouteData(x);const _t=(0,t.qFp)(ce.component);if(_t)for(const{templateName:an}of _t.inputs)x.activatedComponentRef.setInput(an,ht[an]);else this.unsubscribeFromRouteData(x)});this.outletDataSubscriptions.set(x,Ie)}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac}),B})();function Nn(B,X,x){if(x&&B.shouldReuseRoute(X.value,x.value.snapshot)){const ce=x.value;ce._futureSnapshot=X.value;const Ie=function bn(B,X,x){return X.children.map(ce=>{for(const Ie of x.children)if(B.shouldReuseRoute(ce.value,Ie.value.snapshot))return Nn(B,ce,Ie);return Nn(B,ce)})}(B,X,x);return new Vo(ce,Ie)}{if(B.shouldAttach(X.value)){const ht=B.retrieve(X.value);if(null!==ht){const _t=ht.route;return _t.value._futureSnapshot=X.value,_t.children=X.children.map(an=>Nn(B,an)),_t}}const ce=function dn(B){return new Zi(new s.X(B.url),new s.X(B.params),new s.X(B.queryParams),new s.X(B.fragment),new s.X(B.data),B.outlet,B.component,B)}(X.value),Ie=X.children.map(ht=>Nn(B,ht));return new Vo(ce,Ie)}}const xn="ngNavigationCancelingError";function Wn(B,X){const{redirectTo:x,navigationBehaviorOptions:ce}=lt(X)?{redirectTo:X,navigationBehaviorOptions:void 0}:X,Ie=In(!1,0,X);return Ie.url=x,Ie.navigationBehaviorOptions=ce,Ie}function In(B,X,x){const ce=new Error("NavigationCancelingError: "+(B||""));return ce[xn]=!0,ce.cancellationCode=X,x&&(ce.url=x),ce}function Hn(B){return Gn(B)&<(B.url)}function Gn(B){return B&&B[xn]}let Zn=(()=>{class B{}return B.\u0275fac=function(x){return new(x||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,ce){1&x&&t._UZ(0,"router-outlet")},dependencies:[Ht],encapsulation:2}),B})();function yi(B){const X=B.children&&B.children.map(yi),x=X?{...B,children:X}:{...B};return!x.component&&!x.loadComponent&&(X||x.loadChildren)&&x.outlet&&x.outlet!==Lt&&(x.component=Zn),x}function Io(B){return B.outlet||Lt}function Ki(B){if(!B)return null;if(B.routeConfig?._injector)return B.routeConfig._injector;for(let X=B.parent;X;X=X.parent){const x=X.routeConfig;if(x?._loadedInjector)return x._loadedInjector;if(x?._injector)return x._injector}return null}class ir{constructor(X,x,ce,Ie,ht){this.routeReuseStrategy=X,this.futureState=x,this.currState=ce,this.forwardEvent=Ie,this.inputBindingEnabled=ht}activate(X){const x=this.futureState._root,ce=this.currState?this.currState._root:null;this.deactivateChildRoutes(x,ce,X),Ge(this.futureState.root),this.activateChildRoutes(x,ce,X)}deactivateChildRoutes(X,x,ce){const Ie=Zo(x);X.children.forEach(ht=>{const _t=ht.value.outlet;this.deactivateRoutes(ht,Ie[_t],ce),delete Ie[_t]}),Object.values(Ie).forEach(ht=>{this.deactivateRouteAndItsChildren(ht,ce)})}deactivateRoutes(X,x,ce){const Ie=X.value,ht=x?x.value:null;if(Ie===ht)if(Ie.component){const _t=ce.getContext(Ie.outlet);_t&&this.deactivateChildRoutes(X,x,_t.children)}else this.deactivateChildRoutes(X,x,ce);else ht&&this.deactivateRouteAndItsChildren(x,ce)}deactivateRouteAndItsChildren(X,x){X.value.component&&this.routeReuseStrategy.shouldDetach(X.value.snapshot)?this.detachAndStoreRouteSubtree(X,x):this.deactivateRouteAndOutlet(X,x)}detachAndStoreRouteSubtree(X,x){const ce=x.getContext(X.value.outlet),Ie=ce&&X.value.component?ce.children:x,ht=Zo(X);for(const _t of Object.keys(ht))this.deactivateRouteAndItsChildren(ht[_t],Ie);if(ce&&ce.outlet){const _t=ce.outlet.detach(),an=ce.children.onOutletDeactivated();this.routeReuseStrategy.store(X.value.snapshot,{componentRef:_t,route:X,contexts:an})}}deactivateRouteAndOutlet(X,x){const ce=x.getContext(X.value.outlet),Ie=ce&&X.value.component?ce.children:x,ht=Zo(X);for(const _t of Object.keys(ht))this.deactivateRouteAndItsChildren(ht[_t],Ie);ce&&(ce.outlet&&(ce.outlet.deactivate(),ce.children.onOutletDeactivated()),ce.attachRef=null,ce.route=null)}activateChildRoutes(X,x,ce){const Ie=Zo(x);X.children.forEach(ht=>{this.activateRoutes(ht,Ie[ht.value.outlet],ce),this.forwardEvent(new or(ht.value.snapshot))}),X.children.length&&this.forwardEvent(new Pr(X.value.snapshot))}activateRoutes(X,x,ce){const Ie=X.value,ht=x?x.value:null;if(Ge(Ie),Ie===ht)if(Ie.component){const _t=ce.getOrCreateContext(Ie.outlet);this.activateChildRoutes(X,x,_t.children)}else this.activateChildRoutes(X,x,ce);else if(Ie.component){const _t=ce.getOrCreateContext(Ie.outlet);if(this.routeReuseStrategy.shouldAttach(Ie.snapshot)){const an=this.routeReuseStrategy.retrieve(Ie.snapshot);this.routeReuseStrategy.store(Ie.snapshot,null),_t.children.onOutletReAttached(an.contexts),_t.attachRef=an.componentRef,_t.route=an.route.value,_t.outlet&&_t.outlet.attach(an.componentRef,an.route.value),Ge(an.route.value),this.activateChildRoutes(X,null,_t.children)}else{const an=Ki(Ie.snapshot);_t.attachRef=null,_t.route=Ie,_t.injector=an,_t.outlet&&_t.outlet.activateWith(Ie,_t.injector),this.activateChildRoutes(X,null,_t.children)}}else this.activateChildRoutes(X,null,ce)}}class Ii{constructor(X){this.path=X,this.route=this.path[this.path.length-1]}}class Ji{constructor(X,x){this.component=X,this.route=x}}function di(B,X,x){const ce=B._root;return W(ce,X?X._root:null,x,[ce.value])}function Ut(B,X){const x=Symbol(),ce=X.get(B,x);return ce===x?"function"!=typeof B||(0,t.Z0I)(B)?X.get(B):B:ce}function W(B,X,x,ce,Ie={canDeactivateChecks:[],canActivateChecks:[]}){const ht=Zo(X);return B.children.forEach(_t=>{(function Re(B,X,x,ce,Ie={canDeactivateChecks:[],canActivateChecks:[]}){const ht=B.value,_t=X?X.value:null,an=x?x.getContext(B.value.outlet):null;if(_t&&ht.routeConfig===_t.routeConfig){const An=function jt(B,X,x){if("function"==typeof x)return x(B,X);switch(x){case"pathParamsChange":return!ct(B.url,X.url);case"pathParamsOrQueryParamsChange":return!ct(B.url,X.url)||!Ze(B.queryParams,X.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bt(B,X)||!Ze(B.queryParams,X.queryParams);default:return!bt(B,X)}}(_t,ht,ht.routeConfig.runGuardsAndResolvers);An?Ie.canActivateChecks.push(new Ii(ce)):(ht.data=_t.data,ht._resolvedData=_t._resolvedData),W(B,X,ht.component?an?an.children:null:x,ce,Ie),An&&an&&an.outlet&&an.outlet.isActivated&&Ie.canDeactivateChecks.push(new Ji(an.outlet.component,_t))}else _t&&sn(X,an,Ie),Ie.canActivateChecks.push(new Ii(ce)),W(B,null,ht.component?an?an.children:null:x,ce,Ie)})(_t,ht[_t.value.outlet],x,ce.concat([_t.value]),Ie),delete ht[_t.value.outlet]}),Object.entries(ht).forEach(([_t,an])=>sn(an,x.getContext(_t),Ie)),Ie}function sn(B,X,x){const ce=Zo(B),Ie=B.value;Object.entries(ce).forEach(([ht,_t])=>{sn(_t,Ie.component?X?X.children.getContext(ht):null:X,x)}),x.canDeactivateChecks.push(new Ji(Ie.component&&X&&X.outlet&&X.outlet.isActivated?X.outlet.component:null,Ie))}function Rn(B){return"function"==typeof B}function ps(B){return B instanceof j.K||"EmptyError"===B?.name}const Ee=Symbol("INITIAL_VALUE");function ye(){return(0,R.w)(B=>(0,L.a)(B.map(X=>X.pipe((0,pe.q)(1),(0,me.O)(Ee)))).pipe((0,e.U)(X=>{for(const x of X)if(!0!==x){if(x===Ee)return Ee;if(!1===x||x instanceof ie)return x}return!0}),(0,Z.h)(X=>X!==Ee),(0,pe.q)(1)))}function js(B){return(0,S.z)((0,P.b)(X=>{if(lt(X))throw Wn(0,X)}),(0,e.U)(X=>!0===X))}class hs{constructor(X){this.segmentGroup=X||null}}class Ds{constructor(X){this.urlTree=X}}function Yr(B){return(0,F._)(new hs(B))}function $r(B){return(0,F._)(new Ds(B))}class ri{constructor(X,x){this.urlSerializer=X,this.urlTree=x}noMatchError(X){return new t.vHH(4002,!1)}lineralizeSegments(X,x){let ce=[],Ie=x.root;for(;;){if(ce=ce.concat(Ie.segments),0===Ie.numberOfChildren)return(0,d.of)(ce);if(Ie.numberOfChildren>1||!Ie.children[Lt])return(0,F._)(new t.vHH(4e3,!1));Ie=Ie.children[Lt]}}applyRedirectCommands(X,x,ce){return this.applyRedirectCreateUrlTree(x,this.urlSerializer.parse(x),X,ce)}applyRedirectCreateUrlTree(X,x,ce,Ie){const ht=this.createSegmentGroup(X,x.root,ce,Ie);return new ie(ht,this.createQueryParams(x.queryParams,this.urlTree.queryParams),x.fragment)}createQueryParams(X,x){const ce={};return Object.entries(X).forEach(([Ie,ht])=>{if("string"==typeof ht&&ht.startsWith(":")){const an=ht.substring(1);ce[Ie]=x[an]}else ce[Ie]=ht}),ce}createSegmentGroup(X,x,ce,Ie){const ht=this.createSegments(X,x.segments,ce,Ie);let _t={};return Object.entries(x.children).forEach(([an,An])=>{_t[an]=this.createSegmentGroup(X,An,ce,Ie)}),new Ce(ht,_t)}createSegments(X,x,ce,Ie){return x.map(ht=>ht.path.startsWith(":")?this.findPosParam(X,ht,Ie):this.findOrReturn(ht,ce))}findPosParam(X,x,ce){const Ie=ce[x.path.substring(1)];if(!Ie)throw new t.vHH(4001,!1);return Ie}findOrReturn(X,x){let ce=0;for(const Ie of x){if(Ie.path===X.path)return x.splice(ce),Ie;ce++}return X}}const fr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Os(B,X,x,ce,Ie){const ht=Ar(B,X,x);return ht.matched?(ce=function to(B,X){return B.providers&&!B._injector&&(B._injector=(0,t.MMx)(B.providers,X,`Route: ${B.path}`)),B._injector??X}(X,ce),function Gs(B,X,x,ce){const Ie=X.canMatch;if(!Ie||0===Ie.length)return(0,d.of)(!0);const ht=Ie.map(_t=>{const an=Ut(_t,B);return _n(function Vi(B){return B&&Rn(B.canMatch)}(an)?an.canMatch(X,x):B.runInContext(()=>an(X,x)))});return(0,d.of)(ht).pipe(ye(),js())}(ce,X,x).pipe((0,e.U)(_t=>!0===_t?ht:{...fr}))):(0,d.of)(ht)}function Ar(B,X,x){if(""===X.path)return"full"===X.pathMatch&&(B.hasChildren()||x.length>0)?{...fr}:{matched:!0,consumedSegments:[],remainingSegments:x,parameters:{},positionalParamSegments:{}};const Ie=(X.matcher||Ye)(x,B,X);if(!Ie)return{...fr};const ht={};Object.entries(Ie.posParams??{}).forEach(([an,An])=>{ht[an]=An.path});const _t=Ie.consumed.length>0?{...ht,...Ie.consumed[Ie.consumed.length-1].parameters}:ht;return{matched:!0,consumedSegments:Ie.consumed,remainingSegments:x.slice(Ie.consumed.length),parameters:_t,positionalParamSegments:Ie.posParams??{}}}function Sr(B,X,x,ce){return x.length>0&&function Fr(B,X,x){return x.some(ce=>mr(B,X,ce)&&Io(ce)!==Lt)}(B,x,ce)?{segmentGroup:new Ce(X,Qs(ce,new Ce(x,B.children))),slicedSegments:[]}:0===x.length&&function fs(B,X,x){return x.some(ce=>mr(B,X,ce))}(B,x,ce)?{segmentGroup:new Ce(B.segments,jr(B,0,x,ce,B.children)),slicedSegments:x}:{segmentGroup:new Ce(B.segments,B.children),slicedSegments:x}}function jr(B,X,x,ce,Ie){const ht={};for(const _t of ce)if(mr(B,x,_t)&&!Ie[Io(_t)]){const an=new Ce([],{});ht[Io(_t)]=an}return{...Ie,...ht}}function Qs(B,X){const x={};x[Lt]=X;for(const ce of B)if(""===ce.path&&Io(ce)!==Lt){const Ie=new Ce([],{});x[Io(ce)]=Ie}return x}function mr(B,X,x){return(!(B.hasChildren()||X.length>0)||"full"!==x.pathMatch)&&""===x.path}class Qc{constructor(X,x,ce,Ie,ht,_t,an){this.injector=X,this.configLoader=x,this.rootComponentType=ce,this.config=Ie,this.urlTree=ht,this.paramsInheritanceStrategy=_t,this.urlSerializer=an,this.allowRedirects=!0,this.applyRedirects=new ri(this.urlSerializer,this.urlTree)}noMatchError(X){return new t.vHH(4002,!1)}recognize(){const X=Sr(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,X,Lt).pipe((0,D.K)(x=>{if(x instanceof Ds)return this.allowRedirects=!1,this.urlTree=x.urlTree,this.match(x.urlTree);throw x instanceof hs?this.noMatchError(x):x}),(0,e.U)(x=>{const ce=new so([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Lt,this.rootComponentType,null,{}),Ie=new Vo(ce,x),ht=new Ue("",Ie),_t=function Yt(B,X,x=null,ce=null){return Nt(un(B),X,x,ce)}(ce,[],this.urlTree.queryParams,this.urlTree.fragment);return _t.queryParams=this.urlTree.queryParams,ht.url=this.urlSerializer.serialize(_t),this.inheritParamsAndData(ht._root),{state:ht,tree:_t}}))}match(X){return this.processSegmentGroup(this.injector,this.config,X.root,Lt).pipe((0,D.K)(ce=>{throw ce instanceof hs?this.noMatchError(ce):ce}))}inheritParamsAndData(X){const x=X.value,ce=Xo(x,this.paramsInheritanceStrategy);x.params=Object.freeze(ce.params),x.data=Object.freeze(ce.data),X.children.forEach(Ie=>this.inheritParamsAndData(Ie))}processSegmentGroup(X,x,ce,Ie){return 0===ce.segments.length&&ce.hasChildren()?this.processChildren(X,x,ce):this.processSegment(X,x,ce,ce.segments,Ie,!0)}processChildren(X,x,ce){const Ie=[];for(const ht of Object.keys(ce.children))"primary"===ht?Ie.unshift(ht):Ie.push(ht);return(0,v.D)(Ie).pipe((0,O.b)(ht=>{const _t=ce.children[ht],an=function ko(B,X){const x=B.filter(ce=>Io(ce)===X);return x.push(...B.filter(ce=>Io(ce)!==X)),x}(x,ht);return this.processSegmentGroup(X,an,_t,ht)}),(0,re.R)((ht,_t)=>(ht.push(..._t),ht)),(0,ae.d)(null),function ke(B,X){const x=arguments.length>=2;return ce=>ce.pipe(B?(0,Z.h)((Ie,ht)=>B(Ie,ht,ce)):Se.y,ue(1),x?(0,ae.d)(X):(0,ge.T)(()=>new j.K))}(),(0,A.z)(ht=>{if(null===ht)return Yr(ce);const _t=sr(ht);return function ec(B){B.sort((X,x)=>X.value.outlet===Lt?-1:x.value.outlet===Lt?1:X.value.outlet.localeCompare(x.value.outlet))}(_t),(0,d.of)(_t)}))}processSegment(X,x,ce,Ie,ht,_t){return(0,v.D)(x).pipe((0,O.b)(an=>this.processSegmentAgainstRoute(an._injector??X,x,an,ce,Ie,ht,_t).pipe((0,D.K)(An=>{if(An instanceof hs)return(0,d.of)(null);throw An}))),(0,V.P)(an=>!!an),(0,D.K)(an=>{if(ps(an))return function Er(B,X,x){return 0===X.length&&!B.children[x]}(ce,Ie,ht)?(0,d.of)([]):Yr(ce);throw an}))}processSegmentAgainstRoute(X,x,ce,Ie,ht,_t,an){return function Xa(B,X,x,ce){return!!(Io(B)===ce||ce!==Lt&&mr(X,x,B))&&("**"===B.path||Ar(X,B,x).matched)}(ce,Ie,ht,_t)?void 0===ce.redirectTo?this.matchSegmentAgainstRoute(X,Ie,ce,ht,_t,an):an&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(X,Ie,x,ce,ht,_t):Yr(Ie):Yr(Ie)}expandSegmentAgainstRouteUsingRedirect(X,x,ce,Ie,ht,_t){return"**"===Ie.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(X,ce,Ie,_t):this.expandRegularSegmentAgainstRouteUsingRedirect(X,x,ce,Ie,ht,_t)}expandWildCardWithParamsAgainstRouteUsingRedirect(X,x,ce,Ie){const ht=this.applyRedirects.applyRedirectCommands([],ce.redirectTo,{});return ce.redirectTo.startsWith("/")?$r(ht):this.applyRedirects.lineralizeSegments(ce,ht).pipe((0,A.z)(_t=>{const an=new Ce(_t,{});return this.processSegment(X,x,an,_t,Ie,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(X,x,ce,Ie,ht,_t){const{matched:an,consumedSegments:An,remainingSegments:io,positionalParamSegments:ro}=Ar(x,Ie,ht);if(!an)return Yr(x);const Yo=this.applyRedirects.applyRedirectCommands(An,Ie.redirectTo,ro);return Ie.redirectTo.startsWith("/")?$r(Yo):this.applyRedirects.lineralizeSegments(Ie,Yo).pipe((0,A.z)(wi=>this.processSegment(X,ce,x,wi.concat(io),_t,!1)))}matchSegmentAgainstRoute(X,x,ce,Ie,ht,_t){let an;if("**"===ce.path){const An=Ie.length>0?Jt(Ie).parameters:{},io=new so(Ie,An,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Nr(ce),Io(ce),ce.component??ce._loadedComponent??null,ce,ws(ce));an=(0,d.of)({snapshot:io,consumedSegments:[],remainingSegments:[]}),x.children={}}else an=Os(x,ce,Ie,X).pipe((0,e.U)(({matched:An,consumedSegments:io,remainingSegments:ro,parameters:Yo})=>An?{snapshot:new so(io,Yo,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Nr(ce),Io(ce),ce.component??ce._loadedComponent??null,ce,ws(ce)),consumedSegments:io,remainingSegments:ro}:null));return an.pipe((0,R.w)(An=>null===An?Yr(x):this.getChildConfig(X=ce._injector??X,ce,Ie).pipe((0,R.w)(({routes:io})=>{const ro=ce._loadedInjector??X,{snapshot:Yo,consumedSegments:wi,remainingSegments:Kr}=An,{segmentGroup:Br,slicedSegments:zr}=Sr(x,wi,Kr,io);if(0===zr.length&&Br.hasChildren())return this.processChildren(ro,io,Br).pipe((0,e.U)(Tr=>null===Tr?null:[new Vo(Yo,Tr)]));if(0===io.length&&0===zr.length)return(0,d.of)([new Vo(Yo,[])]);const Bi=Io(ce)===ht;return this.processSegment(ro,io,Br,zr,Bi?Lt:ht,!0).pipe((0,e.U)(Tr=>[new Vo(Yo,Tr)]))}))))}getChildConfig(X,x,ce){return x.children?(0,d.of)({routes:x.children,injector:X}):x.loadChildren?void 0!==x._loadedRoutes?(0,d.of)({routes:x._loadedRoutes,injector:x._loadedInjector}):function Ma(B,X,x,ce){const Ie=X.canLoad;if(void 0===Ie||0===Ie.length)return(0,d.of)(!0);const ht=Ie.map(_t=>{const an=Ut(_t,B);return _n(function fo(B){return B&&Rn(B.canLoad)}(an)?an.canLoad(X,x):B.runInContext(()=>an(X,x)))});return(0,d.of)(ht).pipe(ye(),js())}(X,x,ce).pipe((0,A.z)(Ie=>Ie?this.configLoader.loadChildren(X,x).pipe((0,P.b)(ht=>{x._loadedRoutes=ht.routes,x._loadedInjector=ht.injector})):function Ur(B){return(0,F._)(In(!1,3))}())):(0,d.of)({routes:[],injector:X})}}function xr(B){const X=B.value.routeConfig;return X&&""===X.path}function sr(B){const X=[],x=new Set;for(const ce of B){if(!xr(ce)){X.push(ce);continue}const Ie=X.find(ht=>ce.value.routeConfig===ht.value.routeConfig);void 0!==Ie?(Ie.children.push(...ce.children),x.add(Ie)):X.push(ce)}for(const ce of x){const Ie=sr(ce.children);X.push(new Vo(ce.value,Ie))}return X.filter(ce=>!x.has(ce))}function Nr(B){return B.data||{}}function ws(B){return B.resolve||{}}function Ks(B){return"string"==typeof B.title||null===B.title}function Js(B){return(0,R.w)(X=>{const x=B(X);return x?(0,v.D)(x).pipe((0,e.U)(()=>X)):(0,d.of)(X)})}const Gi=new t.OlP("ROUTES");let Fi=(()=>{class B{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(x){if(this.componentLoaders.get(x))return this.componentLoaders.get(x);if(x._loadedComponent)return(0,d.of)(x._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(x);const ce=_n(x.loadComponent()).pipe((0,e.U)(ci),(0,P.b)(ht=>{this.onLoadEndListener&&this.onLoadEndListener(x),x._loadedComponent=ht}),(0,Ft.x)(()=>{this.componentLoaders.delete(x)})),Ie=new U.c(ce,()=>new w.x).pipe((0,Mt.x)());return this.componentLoaders.set(x,Ie),Ie}loadChildren(x,ce){if(this.childrenLoaders.get(ce))return this.childrenLoaders.get(ce);if(ce._loadedRoutes)return(0,d.of)({routes:ce._loadedRoutes,injector:ce._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ce);const ht=this.loadModuleFactoryOrRoutes(ce.loadChildren).pipe((0,e.U)(an=>{this.onLoadEndListener&&this.onLoadEndListener(ce);let An,io;return Array.isArray(an)?io=an:(An=an.create(x).injector,io=An.get(Gi,[],t.XFs.Self|t.XFs.Optional).flat()),{routes:io.map(yi),injector:An}}),(0,Ft.x)(()=>{this.childrenLoaders.delete(ce)})),_t=new U.c(ht,()=>new w.x).pipe((0,Mt.x)());return this.childrenLoaders.set(ce,_t),_t}loadModuleFactoryOrRoutes(x){return _n(x()).pipe((0,e.U)(ci),(0,A.z)(ce=>ce instanceof t.YKP||Array.isArray(ce)?(0,d.of)(ce):(0,v.D)(this.compiler.compileModuleAsync(ce))))}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function ci(B){return function qs(B){return B&&"object"==typeof B&&"default"in B}(B)?B.default:B}let Lr=(()=>{class B{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new w.x,this.configLoader=(0,t.f3M)(Fi),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Cn),this.rootContexts=(0,t.f3M)(lo),this.inputBindingEnabled=null!==(0,t.f3M)(fn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,d.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ie=>this.events.next(new nr(Ie)),this.configLoader.onLoadStartListener=Ie=>this.events.next(new bi(Ie))}complete(){this.transitions?.complete()}handleNavigationRequest(x){const ce=++this.navigationId;this.transitions?.next({...this.transitions.value,...x,id:ce})}setupNavigations(x){return this.transitions=new s.X({id:0,currentUrlTree:x.currentUrlTree,currentRawUrl:x.currentUrlTree,extractedUrl:x.urlHandlingStrategy.extract(x.currentUrlTree),urlAfterRedirects:x.urlHandlingStrategy.extract(x.currentUrlTree),rawUrl:x.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bo,restoredState:null,currentSnapshot:x.routerState.snapshot,targetSnapshot:null,currentRouterState:x.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Z.h)(ce=>0!==ce.id),(0,e.U)(ce=>({...ce,extractedUrl:x.urlHandlingStrategy.extract(ce.rawUrl)})),(0,R.w)(ce=>{let Ie=!1,ht=!1;return(0,d.of)(ce).pipe((0,P.b)(_t=>{this.currentNavigation={id:_t.id,initialUrl:_t.rawUrl,extractedUrl:_t.extractedUrl,trigger:_t.source,extras:_t.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,R.w)(_t=>{const an=x.browserUrlTree.toString(),An=!x.navigated||_t.extractedUrl.toString()!==an||an!==x.currentUrlTree.toString();if(!An&&"reload"!==(_t.extras.onSameUrlNavigation??x.onSameUrlNavigation)){const ro="";return this.events.next(new xo(_t.id,x.serializeUrl(ce.rawUrl),ro,0)),x.rawUrlTree=_t.rawUrl,_t.resolve(null),k.E}if(x.urlHandlingStrategy.shouldProcessUrl(_t.rawUrl))return ne(_t.source)&&(x.browserUrlTree=_t.extractedUrl),(0,d.of)(_t).pipe((0,R.w)(ro=>{const Yo=this.transitions?.getValue();return this.events.next(new hi(ro.id,this.urlSerializer.serialize(ro.extractedUrl),ro.source,ro.restoredState)),Yo!==this.transitions?.getValue()?k.E:Promise.resolve(ro)}),function es(B,X,x,ce,Ie,ht){return(0,A.z)(_t=>function ba(B,X,x,ce,Ie,ht,_t="emptyOnly"){return new Qc(B,X,x,ce,Ie,_t,ht).recognize()}(B,X,x,ce,_t.extractedUrl,Ie,ht).pipe((0,e.U)(({state:an,tree:An})=>({..._t,targetSnapshot:an,urlAfterRedirects:An}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,x.config,this.urlSerializer,x.paramsInheritanceStrategy),(0,P.b)(ro=>{if(ce.targetSnapshot=ro.targetSnapshot,ce.urlAfterRedirects=ro.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ro.urlAfterRedirects},"eager"===x.urlUpdateStrategy){if(!ro.extras.skipLocationChange){const wi=x.urlHandlingStrategy.merge(ro.urlAfterRedirects,ro.rawUrl);x.setBrowserUrl(wi,ro)}x.browserUrlTree=ro.urlAfterRedirects}const Yo=new Ri(ro.id,this.urlSerializer.serialize(ro.extractedUrl),this.urlSerializer.serialize(ro.urlAfterRedirects),ro.targetSnapshot);this.events.next(Yo)}));if(An&&x.urlHandlingStrategy.shouldProcessUrl(x.rawUrlTree)){const{id:ro,extractedUrl:Yo,source:wi,restoredState:Kr,extras:Br}=_t,zr=new hi(ro,this.urlSerializer.serialize(Yo),wi,Kr);this.events.next(zr);const Bi=_i(0,this.rootComponentType).snapshot;return ce={..._t,targetSnapshot:Bi,urlAfterRedirects:Yo,extras:{...Br,skipLocationChange:!1,replaceUrl:!1}},(0,d.of)(ce)}{const ro="";return this.events.next(new xo(_t.id,x.serializeUrl(ce.extractedUrl),ro,1)),x.rawUrlTree=_t.rawUrl,_t.resolve(null),k.E}}),(0,P.b)(_t=>{const an=new oi(_t.id,this.urlSerializer.serialize(_t.extractedUrl),this.urlSerializer.serialize(_t.urlAfterRedirects),_t.targetSnapshot);this.events.next(an)}),(0,e.U)(_t=>ce={..._t,guards:di(_t.targetSnapshot,_t.currentSnapshot,this.rootContexts)}),function de(B,X){return(0,A.z)(x=>{const{targetSnapshot:ce,currentSnapshot:Ie,guards:{canActivateChecks:ht,canDeactivateChecks:_t}}=x;return 0===_t.length&&0===ht.length?(0,d.of)({...x,guardsResult:!0}):function ut(B,X,x,ce){return(0,v.D)(B).pipe((0,A.z)(Ie=>function xs(B,X,x,ce,Ie){const ht=X&&X.routeConfig?X.routeConfig.canDeactivate:null;if(!ht||0===ht.length)return(0,d.of)(!0);const _t=ht.map(an=>{const An=Ki(X)??Ie,io=Ut(an,An);return _n(function uo(B){return B&&Rn(B.canDeactivate)}(io)?io.canDeactivate(B,X,x,ce):An.runInContext(()=>io(B,X,x,ce))).pipe((0,V.P)())});return(0,d.of)(_t).pipe(ye())}(Ie.component,Ie.route,x,X,ce)),(0,V.P)(Ie=>!0!==Ie,!0))}(_t,ce,Ie,B).pipe((0,A.z)(an=>an&&function ho(B){return"boolean"==typeof B}(an)?function yn(B,X,x,ce){return(0,v.D)(X).pipe((0,O.b)(Ie=>(0,$.z)(function pi(B,X){return null!==B&&X&&X(new Ui(B)),(0,d.of)(!0)}(Ie.route.parent,ce),function Qn(B,X){return null!==B&&X&&X(new Oi(B)),(0,d.of)(!0)}(Ie.route,ce),function Ir(B,X,x){const ce=X[X.length-1],ht=X.slice(0,X.length-1).reverse().map(_t=>function Le(B){const X=B.routeConfig?B.routeConfig.canActivateChild:null;return X&&0!==X.length?{node:B,guards:X}:null}(_t)).filter(_t=>null!==_t).map(_t=>(0,I.P)(()=>{const an=_t.guards.map(An=>{const io=Ki(_t.node)??x,ro=Ut(An,io);return _n(function ti(B){return B&&Rn(B.canActivateChild)}(ro)?ro.canActivateChild(ce,B):io.runInContext(()=>ro(ce,B))).pipe((0,V.P)())});return(0,d.of)(an).pipe(ye())}));return(0,d.of)(ht).pipe(ye())}(B,Ie.path,x),function ai(B,X,x){const ce=X.routeConfig?X.routeConfig.canActivate:null;if(!ce||0===ce.length)return(0,d.of)(!0);const Ie=ce.map(ht=>(0,I.P)(()=>{const _t=Ki(X)??x,an=Ut(ht,_t);return _n(function Uo(B){return B&&Rn(B.canActivate)}(an)?an.canActivate(X,B):_t.runInContext(()=>an(X,B))).pipe((0,V.P)())}));return(0,d.of)(Ie).pipe(ye())}(B,Ie.route,x))),(0,V.P)(Ie=>!0!==Ie,!0))}(ce,ht,B,X):(0,d.of)(an)),(0,e.U)(an=>({...x,guardsResult:an})))})}(this.environmentInjector,_t=>this.events.next(_t)),(0,P.b)(_t=>{if(ce.guardsResult=_t.guardsResult,lt(_t.guardsResult))throw Wn(0,_t.guardsResult);const an=new Ti(_t.id,this.urlSerializer.serialize(_t.extractedUrl),this.urlSerializer.serialize(_t.urlAfterRedirects),_t.targetSnapshot,!!_t.guardsResult);this.events.next(an)}),(0,Z.h)(_t=>!!_t.guardsResult||(x.restoreHistory(_t),this.cancelNavigationTransition(_t,"",3),!1)),Js(_t=>{if(_t.guards.canActivateChecks.length)return(0,d.of)(_t).pipe((0,P.b)(an=>{const An=new Fn(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(An)}),(0,R.w)(an=>{let An=!1;return(0,d.of)(an).pipe(function Ws(B,X){return(0,A.z)(x=>{const{targetSnapshot:ce,guards:{canActivateChecks:Ie}}=x;if(!Ie.length)return(0,d.of)(x);let ht=0;return(0,v.D)(Ie).pipe((0,O.b)(_t=>function Ps(B,X,x,ce){const Ie=B.routeConfig,ht=B._resolve;return void 0!==Ie?.title&&!Ks(Ie)&&(ht[rn]=Ie.title),function Is(B,X,x,ce){const Ie=function Sa(B){return[...Object.keys(B),...Object.getOwnPropertySymbols(B)]}(B);if(0===Ie.length)return(0,d.of)({});const ht={};return(0,v.D)(Ie).pipe((0,A.z)(_t=>function Zs(B,X,x,ce){const Ie=Ki(X)??ce,ht=Ut(B,Ie);return _n(ht.resolve?ht.resolve(X,x):Ie.runInContext(()=>ht(X,x)))}(B[_t],X,x,ce).pipe((0,V.P)(),(0,P.b)(an=>{ht[_t]=an}))),ue(1),(0,Rt.h)(ht),(0,D.K)(_t=>ps(_t)?k.E:(0,F._)(_t)))}(ht,B,X,ce).pipe((0,e.U)(_t=>(B._resolvedData=_t,B.data=Xo(B,x).resolve,Ie&&Ks(Ie)&&(B.data[rn]=Ie.title),null)))}(_t.route,ce,B,X)),(0,P.b)(()=>ht++),ue(1),(0,A.z)(_t=>ht===Ie.length?(0,d.of)(x):k.E))})}(x.paramsInheritanceStrategy,this.environmentInjector),(0,P.b)({next:()=>An=!0,complete:()=>{An||(x.restoreHistory(an),this.cancelNavigationTransition(an,"",2))}}))}),(0,P.b)(an=>{const An=new Mi(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(An)}))}),Js(_t=>{const an=An=>{const io=[];An.routeConfig?.loadComponent&&!An.routeConfig._loadedComponent&&io.push(this.configLoader.loadComponent(An.routeConfig).pipe((0,P.b)(ro=>{An.component=ro}),(0,e.U)(()=>{})));for(const ro of An.children)io.push(...an(ro));return io};return(0,L.a)(an(_t.targetSnapshot.root)).pipe((0,ae.d)(),(0,pe.q)(1))}),Js(()=>this.afterPreactivation()),(0,e.U)(_t=>{const an=function vn(B,X,x){const ce=Nn(B,X._root,x?x._root:void 0);return new Ko(ce,X)}(x.routeReuseStrategy,_t.targetSnapshot,_t.currentRouterState);return ce={..._t,targetRouterState:an}}),(0,P.b)(_t=>{x.currentUrlTree=_t.urlAfterRedirects,x.rawUrlTree=x.urlHandlingStrategy.merge(_t.urlAfterRedirects,_t.rawUrl),x.routerState=_t.targetRouterState,"deferred"===x.urlUpdateStrategy&&(_t.extras.skipLocationChange||x.setBrowserUrl(x.rawUrlTree,_t),x.browserUrlTree=_t.urlAfterRedirects)}),((B,X,x,ce)=>(0,e.U)(Ie=>(new ir(X,Ie.targetRouterState,Ie.currentRouterState,x,ce).activate(B),Ie)))(this.rootContexts,x.routeReuseStrategy,_t=>this.events.next(_t),this.inputBindingEnabled),(0,pe.q)(1),(0,P.b)({next:_t=>{Ie=!0,this.lastSuccessfulNavigation=this.currentNavigation,x.navigated=!0,this.events.next(new si(_t.id,this.urlSerializer.serialize(_t.extractedUrl),this.urlSerializer.serialize(x.currentUrlTree))),x.titleStrategy?.updateTitle(_t.targetRouterState.snapshot),_t.resolve(!0)},complete:()=>{Ie=!0}}),(0,Ft.x)(()=>{Ie||ht||this.cancelNavigationTransition(ce,"",1),this.currentNavigation?.id===ce.id&&(this.currentNavigation=null)}),(0,D.K)(_t=>{if(ht=!0,Gn(_t)){Hn(_t)||(x.navigated=!0,x.restoreHistory(ce,!0));const an=new Fo(ce.id,this.urlSerializer.serialize(ce.extractedUrl),_t.message,_t.cancellationCode);if(this.events.next(an),Hn(_t)){const An=x.urlHandlingStrategy.merge(_t.url,x.rawUrlTree),io={skipLocationChange:ce.extras.skipLocationChange,replaceUrl:"eager"===x.urlUpdateStrategy||ne(ce.source)};x.scheduleNavigation(An,bo,null,io,{resolve:ce.resolve,reject:ce.reject,promise:ce.promise})}else ce.resolve(!1)}else{x.restoreHistory(ce,!0);const an=new Do(ce.id,this.urlSerializer.serialize(ce.extractedUrl),_t,ce.targetSnapshot??void 0);this.events.next(an);try{ce.resolve(x.errorHandler(_t))}catch(An){ce.reject(An)}}return k.E}))}))}cancelNavigationTransition(x,ce,Ie){const ht=new Fo(x.id,this.urlSerializer.serialize(x.extractedUrl),ce,Ie);this.events.next(ht),x.resolve(!1)}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function ne(B){return B!==bo}let Fe=(()=>{class B{buildTitle(x){let ce,Ie=x.root;for(;void 0!==Ie;)ce=this.getResolvedTitleForRoute(Ie)??ce,Ie=Ie.children.find(ht=>ht.outlet===Lt);return ce}getResolvedTitleForRoute(x){return x.data[rn]}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:function(){return(0,t.f3M)(he)},providedIn:"root"}),B})(),he=(()=>{class B extends Fe{constructor(x){super(),this.title=x}updateTitle(x){const ce=this.buildTitle(x);void 0!==ce&&this.title.setTitle(ce)}}return B.\u0275fac=function(x){return new(x||B)(t.LFG(Ct.Dx))},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),et=(()=>{class B{}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:function(){return(0,t.f3M)(pn)},providedIn:"root"}),B})();class At{shouldDetach(X){return!1}store(X,x){}shouldAttach(X){return!1}retrieve(X){return null}shouldReuseRoute(X,x){return X.routeConfig===x.routeConfig}}let pn=(()=>{class B extends At{}return B.\u0275fac=function(){let X;return function(ce){return(X||(X=t.n5z(B)))(ce||B)}}(),B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const Tn=new t.OlP("",{providedIn:"root",factory:()=>({})});let no=(()=>{class B{}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:function(){return(0,t.f3M)(Qo)},providedIn:"root"}),B})(),Qo=(()=>{class B{shouldProcessUrl(x){return!0}extract(x){return x}merge(x,ce){return x}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();var mo=(()=>((mo=mo||{})[mo.COMPLETE=0]="COMPLETE",mo[mo.FAILED=1]="FAILED",mo[mo.REDIRECTING=2]="REDIRECTING",mo))();function Bo(B,X){B.events.pipe((0,Z.h)(x=>x instanceof si||x instanceof Fo||x instanceof Do||x instanceof xo),(0,e.U)(x=>x instanceof si||x instanceof xo?mo.COMPLETE:x instanceof Fo&&(0===x.code||1===x.code)?mo.REDIRECTING:mo.FAILED),(0,Z.h)(x=>x!==mo.REDIRECTING),(0,pe.q)(1)).subscribe(()=>{X()})}function wo(B){throw B}function gi(B,X,x){return X.parse("/")}const Wo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ci={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zi=(()=>{class B{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Tn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||wo,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||gi,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(no),this.routeReuseStrategy=(0,t.f3M)(et),this.titleStrategy=(0,t.f3M)(Fe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)(Gi,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Lr),this.urlSerializer=(0,t.f3M)(Cn),this.location=(0,t.f3M)(M.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(fn,{optional:!0}),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ie,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=_i(0,null),this.navigationTransitions.setupNavigations(this).subscribe(x=>{this.lastSuccessfulId=x.id,this.currentPageId=this.browserPageId??0},x=>{this.console.warn(`Unhandled Navigation Error: ${x}`)})}resetRootComponentType(x){this.routerState.root.component=x,this.navigationTransitions.rootComponentType=x}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const x=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),bo,x)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(x=>{const ce="popstate"===x.type?"popstate":"hashchange";"popstate"===ce&&setTimeout(()=>{this.navigateToSyncWithBrowser(x.url,ce,x.state)},0)}))}navigateToSyncWithBrowser(x,ce,Ie){const ht={replaceUrl:!0},_t=Ie?.navigationId?Ie:null;if(Ie){const An={...Ie};delete An.navigationId,delete An.\u0275routerPageId,0!==Object.keys(An).length&&(ht.state=An)}const an=this.parseUrl(x);this.scheduleNavigation(an,ce,_t,ht)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(x){this.config=x.map(yi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(x,ce={}){const{relativeTo:Ie,queryParams:ht,fragment:_t,queryParamsHandling:an,preserveFragment:An}=ce,io=An?this.currentUrlTree.fragment:_t;let Yo,ro=null;switch(an){case"merge":ro={...this.currentUrlTree.queryParams,...ht};break;case"preserve":ro=this.currentUrlTree.queryParams;break;default:ro=ht||null}null!==ro&&(ro=this.removeEmptyProps(ro));try{Yo=un(Ie?Ie.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof x[0]||!x[0].startsWith("/"))&&(x=[]),Yo=this.currentUrlTree.root}return Nt(Yo,x,ro,io??null)}navigateByUrl(x,ce={skipLocationChange:!1}){const Ie=lt(x)?x:this.parseUrl(x),ht=this.urlHandlingStrategy.merge(Ie,this.rawUrlTree);return this.scheduleNavigation(ht,bo,null,ce)}navigate(x,ce={skipLocationChange:!1}){return function co(B){for(let X=0;X{const ht=x[Ie];return null!=ht&&(ce[Ie]=ht),ce},{})}scheduleNavigation(x,ce,Ie,ht,_t){if(this.disposed)return Promise.resolve(!1);let an,An,io;_t?(an=_t.resolve,An=_t.reject,io=_t.promise):io=new Promise((Yo,wi)=>{an=Yo,An=wi});const ro=this.pendingTasks.add();return Bo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ro))}),this.navigationTransitions.handleNavigationRequest({source:ce,restoredState:Ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:x,extras:ht,resolve:an,reject:An,promise:io,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),io.catch(Yo=>Promise.reject(Yo))}setBrowserUrl(x,ce){const Ie=this.urlSerializer.serialize(x);if(this.location.isCurrentPathEqualTo(Ie)||ce.extras.replaceUrl){const _t={...ce.extras.state,...this.generateNgRouterState(ce.id,this.browserPageId)};this.location.replaceState(Ie,"",_t)}else{const ht={...ce.extras.state,...this.generateNgRouterState(ce.id,(this.browserPageId??0)+1)};this.location.go(Ie,"",ht)}}restoreHistory(x,ce=!1){if("computed"===this.canceledNavigationResolution){const ht=this.currentPageId-(this.browserPageId??this.currentPageId);0!==ht?this.location.historyGo(ht):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===ht&&(this.resetState(x),this.browserUrlTree=x.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ce&&this.resetState(x),this.resetUrlToCurrentUrlTree())}resetState(x){this.routerState=x.currentRouterState,this.currentUrlTree=x.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,x.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(x,ce){return"computed"===this.canceledNavigationResolution?{navigationId:x,\u0275routerPageId:ce}:{navigationId:x}}}return B.\u0275fac=function(x){return new(x||B)},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),gr=(()=>{class B{constructor(x,ce,Ie,ht,_t,an){this.router=x,this.route=ce,this.tabIndexAttribute=Ie,this.renderer=ht,this.el=_t,this.locationStrategy=an,this.href=null,this.commands=null,this.onChanges=new w.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const An=_t.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===An||"area"===An,this.isAnchorElement?this.subscription=x.events.subscribe(io=>{io instanceof si&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(x){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",x)}ngOnChanges(x){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(x){null!=x?(this.commands=Array.isArray(x)?x:[x],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(x,ce,Ie,ht,_t){return!!(null===this.urlTree||this.isAnchorElement&&(0!==x||ce||Ie||ht||_t||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const x=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",x)}applyAttributeValue(x,ce){const Ie=this.renderer,ht=this.el.nativeElement;null!==ce?Ie.setAttribute(ht,x,ce):Ie.removeAttribute(ht,x)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return B.\u0275fac=function(x){return new(x||B)(t.Y36(zi),t.Y36(Zi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(M.S$))},B.\u0275dir=t.lG2({type:B,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(x,ce){1&x&&t.NdJ("click",function(ht){return ce.onClick(ht.button,ht.ctrlKey,ht.shiftKey,ht.altKey,ht.metaKey)}),2&x&&t.uIk("target",ce.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]}),B})(),ar=(()=>{class B{get isActive(){return this._isActive}constructor(x,ce,Ie,ht,_t){this.router=x,this.element=ce,this.renderer=Ie,this.cdr=ht,this.link=_t,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=x.events.subscribe(an=>{an instanceof si&&this.update()})}ngAfterContentInit(){(0,d.of)(this.links.changes,(0,d.of)(null)).pipe((0,yt.J)()).subscribe(x=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const x=[...this.links.toArray(),this.link].filter(ce=>!!ce).map(ce=>ce.onChanges);this.linkInputChangesSubscription=(0,v.D)(x).pipe((0,yt.J)()).subscribe(ce=>{this._isActive!==this.isLinkActive(this.router)(ce)&&this.update()})}set routerLinkActive(x){const ce=Array.isArray(x)?x:x.split(" ");this.classes=ce.filter(Ie=>!!Ie)}ngOnChanges(x){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const x=this.hasActiveLinks();this._isActive!==x&&(this._isActive=x,this.cdr.markForCheck(),this.classes.forEach(ce=>{x?this.renderer.addClass(this.element.nativeElement,ce):this.renderer.removeClass(this.element.nativeElement,ce)}),x&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(x))})}isLinkActive(x){const ce=function kr(B){return!!B.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Ie=>!!Ie.urlTree&&x.isActive(Ie.urlTree,ce)}hasActiveLinks(){const x=this.isLinkActive(this.router);return this.link&&x(this.link)||this.links.some(x)}}return B.\u0275fac=function(x){return new(x||B)(t.Y36(zi),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(gr,8))},B.\u0275dir=t.lG2({type:B,selectors:[["","routerLinkActive",""]],contentQueries:function(x,ce,Ie){if(1&x&&t.Suo(Ie,gr,5),2&x){let ht;t.iGM(ht=t.CRH())&&(ce.links=ht)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),B})();class Dr{}let Gr=(()=>{class B{constructor(x,ce,Ie,ht,_t){this.router=x,this.injector=Ie,this.preloadingStrategy=ht,this.loader=_t}setUpPreloading(){this.subscription=this.router.events.pipe((0,Z.h)(x=>x instanceof si),(0,O.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(x,ce){const Ie=[];for(const ht of ce){ht.providers&&!ht._injector&&(ht._injector=(0,t.MMx)(ht.providers,x,`Route: ${ht.path}`));const _t=ht._injector??x,an=ht._loadedInjector??_t;(ht.loadChildren&&!ht._loadedRoutes&&void 0===ht.canLoad||ht.loadComponent&&!ht._loadedComponent)&&Ie.push(this.preloadConfig(_t,ht)),(ht.children||ht._loadedRoutes)&&Ie.push(this.processRoutes(an,ht.children??ht._loadedRoutes))}return(0,v.D)(Ie).pipe((0,yt.J)())}preloadConfig(x,ce){return this.preloadingStrategy.preload(ce,()=>{let Ie;Ie=ce.loadChildren&&void 0===ce.canLoad?this.loader.loadChildren(x,ce):(0,d.of)(null);const ht=Ie.pipe((0,A.z)(_t=>null===_t?(0,d.of)(void 0):(ce._loadedRoutes=_t.routes,ce._loadedInjector=_t.injector,this.processRoutes(_t.injector??x,_t.routes))));if(ce.loadComponent&&!ce._loadedComponent){const _t=this.loader.loadComponent(ce);return(0,v.D)([ht,_t]).pipe((0,yt.J)())}return ht})}}return B.\u0275fac=function(x){return new(x||B)(t.LFG(zi),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Dr),t.LFG(Fi))},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const Qr=new t.OlP("");let tc=(()=>{class B{constructor(x,ce,Ie,ht,_t={}){this.urlSerializer=x,this.transitions=ce,this.viewportScroller=Ie,this.zone=ht,this.options=_t,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},_t.scrollPositionRestoration=_t.scrollPositionRestoration||"disabled",_t.anchorScrolling=_t.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(x=>{x instanceof hi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=x.navigationTrigger,this.restoredId=x.restoredState?x.restoredState.navigationId:0):x instanceof si?(this.lastId=x.id,this.scheduleScrollEvent(x,this.urlSerializer.parse(x.urlAfterRedirects).fragment)):x instanceof xo&&0===x.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(x,this.urlSerializer.parse(x.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(x=>{x instanceof Xi&&(x.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(x.position):x.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(x.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(x,ce){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xi(x,"popstate"===this.lastSource?this.store[this.restoredId]:null,ce))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return B.\u0275fac=function(x){t.$Z()},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac}),B})();function Rr(B,X){return{\u0275kind:B,\u0275providers:X}}function Ei(){const B=(0,t.f3M)(t.zs3);return X=>{const x=B.get(t.z2F);if(X!==x.components[0])return;const ce=B.get(zi),Ie=B.get(ts);1===B.get(Vr)&&ce.initialNavigation(),B.get(ta,null,t.XFs.Optional)?.setUpPreloading(),B.get(Qr,null,t.XFs.Optional)?.init(),ce.resetRootComponentType(x.componentTypes[0]),Ie.closed||(Ie.next(),Ie.complete(),Ie.unsubscribe())}}const ts=new t.OlP("",{factory:()=>new w.x}),Vr=new t.OlP("",{providedIn:"root",factory:()=>1}),ta=new t.OlP("");function Xu(B){return Rr(0,[{provide:ta,useExisting:Gr},{provide:Dr,useExisting:B}])}const Zr=new t.OlP("ROUTER_FORROOT_GUARD"),Jc=[M.Ye,{provide:Cn,useClass:at},zi,lo,{provide:Zi,useFactory:function nc(B){return B.routerState.root},deps:[zi]},Fi,[]];function xa(){return new t.PXZ("Router",zi)}let qc=(()=>{class B{constructor(x){}static forRoot(x,ce){return{ngModule:B,providers:[Jc,[],{provide:Gi,multi:!0,useValue:x},{provide:Zr,useFactory:wa,deps:[[zi,new t.FiY,new t.tp0]]},{provide:Tn,useValue:ce||{}},ce?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Qr,useFactory:()=>{const B=(0,t.f3M)(M.EM),X=(0,t.f3M)(t.R0b),x=(0,t.f3M)(Tn),ce=(0,t.f3M)(Lr),Ie=(0,t.f3M)(Cn);return x.scrollOffset&&B.setOffset(x.scrollOffset),new tc(Ie,ce,B,X,x)}},ce?.preloadingStrategy?Xu(ce.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:xa},ce?.initialNavigation?Pa(ce):[],ce?.bindToComponentInputs?Rr(8,[en,{provide:fn,useExisting:en}]).\u0275providers:[],[{provide:oc,useFactory:Ei},{provide:t.tb,multi:!0,useExisting:oc}]]}}static forChild(x){return{ngModule:B,providers:[{provide:Gi,multi:!0,useValue:x}]}}}return B.\u0275fac=function(x){return new(x||B)(t.LFG(Zr,8))},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({}),B})();function wa(B){return"guarded"}function Pa(B){return["disabled"===B.initialNavigation?Rr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const X=(0,t.f3M)(zi);return()=>{X.setUpLocationChangeListener()}}},{provide:Vr,useValue:2}]).\u0275providers:[],"enabledBlocking"===B.initialNavigation?Rr(2,[{provide:Vr,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:X=>{const x=X.get(M.V_,Promise.resolve());return()=>x.then(()=>new Promise(ce=>{const Ie=X.get(zi),ht=X.get(ts);Bo(Ie,()=>{ce(!0)}),X.get(Lr).afterPreactivation=()=>(ce(!0),ht.closed?(0,d.of)(void 0):ht),Ie.initialNavigation()}))}}]).\u0275providers:[]]}const oc=new t.OlP("")},4715:(It,be,a)=>{a.d(be,{BOg:()=>Un,BXH:()=>Ti,Ej7:()=>Ji,FsU:()=>Dp,Hkd:()=>un,LBP:()=>Sc,LJh:()=>na,M8e:()=>Lr,NFG:()=>Ie,OYp:()=>Mi,RIp:()=>xr,RU0:()=>Er,Rfq:()=>qt,TSL:()=>sd,U2Q:()=>ei,UKj:()=>Ht,UTl:()=>vs,UY$:()=>Q1,V65:()=>_n,VWu:()=>$r,WH2:()=>rl,XuQ:()=>ee,Z5F:()=>mo,_ry:()=>ha,bBn:()=>Tt,cN2:()=>po,d2H:()=>Cl,d_$:()=>Gd,eFY:()=>Du,eLU:()=>_i,gvV:()=>_l,iUK:()=>Vr,np6:()=>J1,nrZ:()=>mc,rHg:()=>Ca,rMt:()=>Yr,sZJ:()=>Cs,s_U:()=>Vl,ssy:()=>Fi,uIz:()=>jd,ud1:()=>ze,v6v:()=>So,vEg:()=>Os,vkb:()=>ti,w1L:()=>wd,x0x:()=>Go,yQU:()=>vo});const _n={name:"bars",theme:"outline",icon:''},ze={name:"calendar",theme:"outline",icon:''},un={name:"caret-down",theme:"fill",icon:''},ee={name:"caret-down",theme:"outline",icon:''},Tt={name:"caret-up",theme:"fill",icon:''},qt={name:"check-circle",theme:"fill",icon:''},Un={name:"caret-up",theme:"outline",icon:''},vo={name:"check-circle",theme:"outline",icon:''},ei={name:"check",theme:"outline",icon:''},Ti={name:"close-circle",theme:"fill",icon:''},Mi={name:"close-circle",theme:"outline",icon:''},_i={name:"close",theme:"outline",icon:''},Ht={name:"clock-circle",theme:"outline",icon:''},Go={name:"copy",theme:"outline",icon:''},Ji={name:"dashboard",theme:"outline",icon:''},ti={name:"delete",theme:"outline",icon:''},Yr={name:"double-right",theme:"outline",icon:''},$r={name:"double-left",theme:"outline",icon:''},Os={name:"down",theme:"outline",icon:''},Er={name:"ellipsis",theme:"outline",icon:''},xr={name:"edit",theme:"outline",icon:''},Fi={name:"exclamation-circle",theme:"outline",icon:''},Lr={name:"exclamation-circle",theme:"fill",icon:''},mo={name:"eye",theme:"outline",icon:''},Vr={name:"file",theme:"fill",icon:''},na={name:"file",theme:"outline",icon:''},Ie={name:"filter",theme:"fill",icon:''},rl={name:"form",theme:"outline",icon:''},mc={name:"info-circle",theme:"outline",icon:''},vs={name:"info-circle",theme:"fill",icon:''},_l={name:"left",theme:"outline",icon:''},Cl={name:"loading",theme:"outline",icon:''},Sc={name:"menu-fold",theme:"outline",icon:''},ha={name:"menu-unfold",theme:"outline",icon:''},Du={name:"paper-clip",theme:"outline",icon:''},Cs={name:"question-circle",theme:"outline",icon:''},wd={name:"rotate-right",theme:"outline",icon:''},Q1={name:"rotate-left",theme:"outline",icon:''},J1={name:"right",theme:"outline",icon:''},Ca={name:"search",theme:"outline",icon:''},So={name:"star",theme:"fill",icon:''},po={name:"swap-right",theme:"outline",icon:''},Dp={name:"up",theme:"outline",icon:''},Vl={name:"upload",theme:"outline",icon:''},sd={name:"vertical-align-top",theme:"outline",icon:''},jd={name:"zoom-in",theme:"outline",icon:''},Gd={name:"zoom-out",theme:"outline",icon:''}},1789:(It,be,a)=>{a.d(be,{B:()=>I,h:()=>$});var S,F,t=a(655),v=(a(3555),a(1823)),d=a(1352),s=a(2794),L=a(6001),$=function(){function U(){this.known=new(s.sy?WeakSet:Set),this.pool=new v.B(s.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return U.prototype.isKnown=function(w){return(0,d.s)(w)&&this.known.has(w)},U.prototype.pass=function(w){if((0,d.s)(w)){var M=function j(U){return(0,d.s)(U)?(0,L.k)(U)?U.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(U)},U):U}(w);return this.passes.set(M,w),M}return w},U.prototype.admit=function(w){var M=this;if((0,d.s)(w)){var e=this.passes.get(w);if(e)return e;switch(Object.getPrototypeOf(w)){case Array.prototype:if(this.known.has(w))return w;var pe=w.map(this.admit,this);return(me=this.pool.lookupArray(pe)).array||(this.known.add(me.array=pe),__DEV__&&Object.freeze(pe)),me.array;case null:case Object.prototype:if(this.known.has(w))return w;var Z=Object.getPrototypeOf(w),A=[Z],V=this.sortedKeys(w);A.push(V.json);var me,O=A.length;if(V.sorted.forEach(function(re){A.push(M.admit(w[re]))}),!(me=this.pool.lookupArray(A)).object){var P=me.object=Object.create(Z);this.known.add(P),V.sorted.forEach(function(re,ae){P[re]=A[O+ae]}),__DEV__&&Object.freeze(P)}return me.object}}return w},U.prototype.sortedKeys=function(w){var M=Object.keys(w),e=this.pool.lookupArray(M);if(!e.keys){M.sort();var R=JSON.stringify(M);(e.keys=this.keysByJSON.get(R))||this.keysByJSON.set(R,e.keys={sorted:M,json:R})}return e.keys},U}(),I=Object.assign(function(U){if((0,d.s)(U)){void 0===S&&k();var w=S.admit(U),M=F.get(w);return void 0===M&&F.set(w,M=JSON.stringify(w)),M}return JSON.stringify(U)},{reset:k});function k(){S=new $,F=new(s.mr?WeakMap:Map)}},3088:(It,be,a)=>{a.d(be,{QS:()=>$,_v:()=>j,ab:()=>v,li:()=>L});var t=a(5907),v=new(a(530).g7),d=new WeakMap;function s(S){var F=d.get(S);return F||d.set(S,F={vars:new Set,dep:(0,t.dP)()}),F}function L(S){s(S).vars.forEach(function(F){return F.forgetCache(S)})}function j(S){s(S).vars.forEach(function(F){return F.attachCache(S)})}function $(S){var F=new Set,k=new Set,U=function(M){if(arguments.length>0){if(S!==M){S=M,F.forEach(function(pe){s(pe).dep.dirty(U),function I(S){S.broadcastWatches&&S.broadcastWatches()}(pe)});var e=Array.from(k);k.clear(),e.forEach(function(pe){return pe(S)})}}else{var R=v.getValue();R&&(w(R),s(R).dep(U))}return S};U.onNextChange=function(M){return k.add(M),function(){k.delete(M)}};var w=U.attachCache=function(M){return F.add(M),s(M).vars.add(U),U};return U.forgetCache=function(M){return F.delete(M)},U}},8632:(It,be,a)=>{a.d(be,{i:()=>k});var t=a(655),i=a(3555),v=a(7619),s=a(8725);function $(U,w){return w?w(U):v.y.of()}function I(U){return"function"==typeof U?new k(U):U}function S(U){return U.request.length<=1}var F=function(U){function w(M,e){var R=U.call(this,M)||this;return R.link=e,R}return(0,t.ZT)(w,U),w}(Error),k=function(){function U(w){w&&(this.request=w)}return U.empty=function(){return new U(function(){return v.y.of()})},U.from=function(w){return 0===w.length?U.empty():w.map(I).reduce(function(M,e){return M.concat(e)})},U.split=function(w,M,e){var R=I(M),pe=I(e||new U($));return S(R)&&S(pe)?new U(function(me){return w(me)?R.request(me)||v.y.of():pe.request(me)||v.y.of()}):new U(function(me,Z){return w(me)?R.request(me,Z)||v.y.of():pe.request(me,Z)||v.y.of()})},U.execute=function(w,M){return w.request(function d(U,w){var M=(0,t.pi)({},U);return Object.defineProperty(w,"setContext",{enumerable:!1,value:function(pe){M=(0,t.pi)((0,t.pi)({},M),"function"==typeof pe?pe(M):pe)}}),Object.defineProperty(w,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},M)}}),w}(M.context,function L(U){var w={variables:U.variables||{},extensions:U.extensions||{},operationName:U.operationName,query:U.query};return w.operationName||(w.operationName="string"!=typeof w.query?(0,s.rY)(w.query)||void 0:""),w}(function j(U){for(var w=["query","operationName","variables","extensions","context"],M=0,e=Object.keys(U);M{a.d(be,{O:()=>i,k:()=>t});var t=Array.isArray;function i(v){return Array.isArray(v)&&v.length>0}},2794:(It,be,a)=>{a.d(be,{DN:()=>s,aS:()=>d,mr:()=>i,sy:()=>v});var t=a(3555),i="function"==typeof WeakMap&&"ReactNative"!==(0,t.wY)(function(){return navigator.product}),v="function"==typeof WeakSet,d="function"==typeof Symbol&&"function"==typeof Symbol.for,s=d&&Symbol.asyncIterator;(0,t.wY)(function(){return window.document.createElement}),(0,t.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},5078:(It,be,a)=>{a.d(be,{X:()=>i});var t=Object.prototype.toString;function i(d){return v(d)}function v(d,s){switch(t.call(d)){case"[object Array]":if((s=s||new Map).has(d))return s.get(d);var L=d.slice(0);return s.set(d,L),L.forEach(function($,I){L[I]=v($,s)}),L;case"[object Object]":if((s=s||new Map).has(d))return s.get(d);var j=Object.create(Object.getPrototypeOf(d));return s.set(d,j),Object.keys(d).forEach(function($){j[$]=v(d[$],s)}),j;default:return d}}},9990:(It,be,a)=>{function t(){for(var i=[],v=0;vt})},6726:(It,be,a)=>{a.d(be,{X:()=>i});var t=new Map;function i(v){var d=t.get(v)||1;return t.set(v,d+1),"".concat(v,":").concat(d,":").concat(Math.random().toString(36).slice(2))}},6630:(It,be,a)=>{a.d(be,{Ee:()=>d,bw:()=>s,w0:()=>j});var t=a(655),i=a(1352),v=Object.prototype.hasOwnProperty;function d(){for(var $=[],I=0;I1)for(var F=new j,k=1;k{function t(i){return null!==i&&"object"==typeof i}a.d(be,{s:()=>t})},3555:(It,be,a)=>{a.d(be,{ej:()=>s,kG:()=>L,wY:()=>k});var t=a(655),i="Invariant Violation",v=Object.setPrototypeOf,d=void 0===v?function(re,ae){return re.__proto__=ae,re}:v,s=function(re){function ae(Q){void 0===Q&&(Q=i);var fe=re.call(this,"number"==typeof Q?i+": "+Q+" (see https://github.com/apollographql/invariant-packages)":Q)||this;return fe.framesToPop=1,fe.name=i,d(fe,ae.prototype),fe}return(0,t.ZT)(ae,re),ae}(Error);function L(re,ae){if(!re)throw new s(ae)}var re,j=["debug","log","warn","error","silent"],$=j.indexOf("log");function I(re){return function(){if(j.indexOf(re)>=$)return(console[re]||console.log).apply(console,arguments)}}function k(re){try{return re()}catch{}}(re=L||(L={})).debug=I("debug"),re.log=I("log"),re.warn=I("warn"),re.error=I("error");const U=k(function(){return globalThis})||k(function(){return window})||k(function(){return self})||k(function(){return global})||k(function(){return k.constructor("return this")()});var w="__",M=[w,w].join("DEV");const R=function e(){try{return!!__DEV__}catch{return Object.defineProperty(U,M,{value:"production"!==k(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),U[M]}}();function pe(re){try{return re()}catch{}}var me=pe(function(){return globalThis})||pe(function(){return window})||pe(function(){return self})||pe(function(){return global})||pe(function(){return pe.constructor("return this")()}),Z=!1;!function A(){me&&!pe(function(){return"production"})&&!pe(function(){return process})&&(Object.defineProperty(me,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Z=!0)}(),a(9456),function P(){(function V(){Z&&(delete me.process,Z=!1)})()}(),function D(){__DEV__?L("boolean"==typeof R,R):L("boolean"==typeof R,39)}()},2954:(It,be,a)=>{a.d(be,{FS:()=>j,LZ:()=>v,mj:()=>$});var t=a(3555),i=a(8016);function v(F,k){var U=F.directives;return!U||!U.length||function S(F){var k=[];return F&&F.length&&F.forEach(function(U){if(function I(F){var k=F.name.value;return"skip"===k||"include"===k}(U)){var w=U.arguments,M=U.name.value;__DEV__?(0,t.kG)(w&&1===w.length,"Incorrect number of arguments for the @".concat(M," directive.")):(0,t.kG)(w&&1===w.length,41);var e=w[0];__DEV__?(0,t.kG)(e.name&&"if"===e.name.value,"Invalid argument for the @".concat(M," directive.")):(0,t.kG)(e.name&&"if"===e.name.value,42);var R=e.value;__DEV__?(0,t.kG)(R&&("Variable"===R.kind||"BooleanValue"===R.kind),"Argument for the @".concat(M," directive must be a variable or a boolean value.")):(0,t.kG)(R&&("Variable"===R.kind||"BooleanValue"===R.kind),43),k.push({directive:U,ifArgument:e})}}),k}(U).every(function(w){var M=w.directive,e=w.ifArgument,R=!1;return"Variable"===e.value.kind?(R=k&&k[e.value.name.value],__DEV__?(0,t.kG)(void 0!==R,"Invalid variable referenced in @".concat(M.name.value," directive.")):(0,t.kG)(void 0!==R,40)):R=e.value.value,"skip"===M.name.value?!R:R})}function j(F,k,U){var w=new Set(F),M=w.size;return(0,i.Vn)(k,{Directive:function(e){if(w.delete(e.name.value)&&(!U||!w.size))return i.$_}}),U?!w.size:w.size{a.d(be,{F:()=>d,Yk:()=>v,hi:()=>s});var t=a(655),i=a(3555);function v(L,j){var $=j,I=[];return L.definitions.forEach(function(F){if("OperationDefinition"===F.kind)throw __DEV__?new i.ej("Found a ".concat(F.operation," operation").concat(F.name?" named '".concat(F.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===F.kind&&I.push(F)}),typeof $>"u"&&(__DEV__?(0,i.kG)(1===I.length,"Found ".concat(I.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===I.length,45),$=I[0].name.value),(0,t.pi)((0,t.pi)({},L),{definitions:(0,t.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:$}}]}}],L.definitions,!0)})}function d(L){void 0===L&&(L=[]);var j={};return L.forEach(function($){j[$.name.value]=$}),j}function s(L,j){switch(L.kind){case"InlineFragment":return L;case"FragmentSpread":var $=L.name.value;if("function"==typeof j)return j($);var I=j&&j[$];return __DEV__?(0,i.kG)(I,"No fragment named ".concat($)):(0,i.kG)(I,46),I||null;default:return null}}},8725:(It,be,a)=>{a.d(be,{$H:()=>d,A$:()=>v,O4:()=>S,iW:()=>j,kU:()=>L,p$:()=>I,pD:()=>$,rY:()=>s});var t=a(3555),i=a(9173);function v(F){__DEV__?(0,t.kG)(F&&"Document"===F.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,t.kG)(F&&"Document"===F.kind,47);var k=F.definitions.filter(function(U){return"FragmentDefinition"!==U.kind}).map(function(U){if("OperationDefinition"!==U.kind)throw __DEV__?new t.ej('Schema type definitions not allowed in queries. Found: "'.concat(U.kind,'"')):new t.ej(48);return U});return __DEV__?(0,t.kG)(k.length<=1,"Ambiguous GraphQL document: contains ".concat(k.length," operations")):(0,t.kG)(k.length<=1,49),F}function d(F){return v(F),F.definitions.filter(function(k){return"OperationDefinition"===k.kind})[0]}function s(F){return F.definitions.filter(function(k){return"OperationDefinition"===k.kind&&!!k.name}).map(function(k){return k.name.value})[0]||null}function L(F){return F.definitions.filter(function(k){return"FragmentDefinition"===k.kind})}function j(F){var k=d(F);return __DEV__?(0,t.kG)(k&&"query"===k.operation,"Must contain a query definition."):(0,t.kG)(k&&"query"===k.operation,50),k}function $(F){__DEV__?(0,t.kG)("Document"===F.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,t.kG)("Document"===F.kind,51),__DEV__?(0,t.kG)(F.definitions.length<=1,"Fragment must have exactly one definition."):(0,t.kG)(F.definitions.length<=1,52);var k=F.definitions[0];return __DEV__?(0,t.kG)("FragmentDefinition"===k.kind,"Must be a fragment definition."):(0,t.kG)("FragmentDefinition"===k.kind,53),k}function I(F){v(F);for(var k,U=0,w=F.definitions;U{a.d(be,{Ao:()=>re,JW:()=>L,My:()=>D,NC:()=>V,PT:()=>me,Yk:()=>s,kQ:()=>d,qw:()=>P,u2:()=>O,vb:()=>e,vf:()=>R});var t=a(3555),i=a(1352),v=a(7095);function d(ae){return{__ref:String(ae)}}function s(ae){return!(!ae||"object"!=typeof ae||"string"!=typeof ae.__ref)}function L(ae){return(0,i.s)(ae)&&"Document"===ae.kind&&Array.isArray(ae.definitions)}function e(ae,Q,fe,ue){if(function I(ae){return"IntValue"===ae.kind}(fe)||function S(ae){return"FloatValue"===ae.kind}(fe))ae[Q.value]=Number(fe.value);else if(function $(ae){return"BooleanValue"===ae.kind}(fe)||function j(ae){return"StringValue"===ae.kind}(fe))ae[Q.value]=fe.value;else if(function k(ae){return"ObjectValue"===ae.kind}(fe)){var ge={};fe.fields.map(function(ke){return e(ge,ke.name,ke.value,ue)}),ae[Q.value]=ge}else if(function F(ae){return"Variable"===ae.kind}(fe))ae[Q.value]=(ue||{})[fe.name.value];else if(function U(ae){return"ListValue"===ae.kind}(fe))ae[Q.value]=fe.values.map(function(ke){var Rt={};return e(Rt,Q,ke,ue),Rt[Q.value]});else if(function w(ae){return"EnumValue"===ae.kind}(fe))ae[Q.value]=fe.value;else{if(!function M(ae){return"NullValue"===ae.kind}(fe))throw __DEV__?new t.ej('The inline argument "'.concat(Q.value,'" of kind "').concat(fe.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new t.ej(55);ae[Q.value]=null}}function R(ae,Q){var fe=null;ae.directives&&(fe={},ae.directives.forEach(function(ge){fe[ge.name.value]={},ge.arguments&&ge.arguments.forEach(function(Se){return e(fe[ge.name.value],Se.name,Se.value,Q)})}));var ue=null;return ae.arguments&&ae.arguments.length&&(ue={},ae.arguments.forEach(function(ge){return e(ue,ge.name,ge.value,Q)})),me(ae.name.value,ue,fe)}var pe=["connection","include","skip","client","rest","export"],me=Object.assign(function(ae,Q,fe){if(Q&&fe&&fe.connection&&fe.connection.key){if(fe.connection.filter&&fe.connection.filter.length>0){var ue=fe.connection.filter?fe.connection.filter:[];ue.sort();var ge={};return ue.forEach(function(Rt){ge[Rt]=Q[Rt]}),"".concat(fe.connection.key,"(").concat(Z(ge),")")}return fe.connection.key}var Se=ae;if(Q){var ke=Z(Q);Se+="(".concat(ke,")")}return fe&&Object.keys(fe).forEach(function(Rt){-1===pe.indexOf(Rt)&&(fe[Rt]&&Object.keys(fe[Rt]).length?Se+="@".concat(Rt,"(").concat(Z(fe[Rt]),")"):Se+="@".concat(Rt))}),Se},{setStringify:function(ae){var Q=Z;return Z=ae,Q}}),Z=function(Q){return JSON.stringify(Q,A)};function A(ae,Q){return(0,i.s)(Q)&&!Array.isArray(Q)&&(Q=Object.keys(Q).sort().reduce(function(fe,ue){return fe[ue]=Q[ue],fe},{})),Q}function V(ae,Q){if(ae.arguments&&ae.arguments.length){var fe={};return ae.arguments.forEach(function(ue){return e(fe,ue.name,ue.value,Q)}),fe}return null}function O(ae){return ae.alias?ae.alias.value:ae.name.value}function P(ae,Q,fe){for(var ue,ge=0,Se=Q.selections;ge{a.d(be,{Fo:()=>R,Gw:()=>M,aL:()=>O,ob:()=>P});var t=a(655),i=a(3555),v=a(5560),d=a(8016),s=a(8725),L=a(9173),j=a(7095),$=a(6001),I={kind:v.h.FIELD,name:{kind:v.h.NAME,value:"__typename"}};function S(D,re){return!D||D.selectionSet.selections.every(function(ae){return ae.kind===v.h.FRAGMENT_SPREAD&&S(re[ae.name.value],re)})}function F(D){return S((0,s.$H)(D)||(0,s.pD)(D),(0,j.F)((0,s.kU)(D)))?null:D}function U(D){var re=new Map;return function(Q){void 0===Q&&(Q=D);var fe=re.get(Q);return fe||re.set(Q,fe={variables:new Set,fragmentSpreads:new Set}),fe}}function w(D,re){for(var ae=U(""),Q=U(""),fe=function(Ye){for(var st=0,Ze=void 0;st=0;--ge)re.definitions[ge].kind===v.h.OPERATION_DEFINITION&&++ue;var Se=function k(D){var re=new Set,ae=[];return D.forEach(function(Q){Q.name?re.add(Q.name):Q.test&&ae.push(Q.test)}),function(Q){return re.has(Q.name.value)||ae.some(function(fe){return fe(Q)})}}(D),ke=D.some(function(Ye){return Ye.remove}),Rt=function(Ye){return ke&&Ye&&Ye.some(Se)},Ft=new Map,Mt=!1,yt={enter:function(Ye){if(Rt(Ye.directives))return Mt=!0,null}},Ct=(0,d.Vn)(re,{Field:yt,InlineFragment:yt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(Ye,st,Ze,Bt,Jt){var _n=fe(Jt);_n&&_n.variables.add(Ye.name.value)}},FragmentSpread:{enter:function(Ye,st,Ze,Bt,Jt){if(Rt(Ye.directives))return Mt=!0,null;var _n=fe(Jt);_n&&_n.fragmentSpreads.add(Ye.name.value)}},FragmentDefinition:{enter:function(Ye,st,Ze,Bt){Ft.set(JSON.stringify(Bt),Ye)},leave:function(Ye,st,Ze,Bt){return Ye===Ft.get(JSON.stringify(Bt))?Ye:ue>0&&Ye.selectionSet.selections.every(function(_n){return _n.kind===v.h.FIELD&&"__typename"===_n.name.value})?(Q(Ye.name.value).removed=!0,Mt=!0,null):void 0}},Directive:{leave:function(Ye){if(Se(Ye))return Mt=!0,null}}});if(!Mt)return re;var Lt=function(Ye){return Ye.transitiveVars||(Ye.transitiveVars=new Set(Ye.variables),Ye.removed||Ye.fragmentSpreads.forEach(function(st){Lt(Q(st)).transitiveVars.forEach(function(Ze){Ye.transitiveVars.add(Ze)})})),Ye},rn=new Set;Ct.definitions.forEach(function(Ye){Ye.kind===v.h.OPERATION_DEFINITION?Lt(ae(Ye.name&&Ye.name.value)).fragmentSpreads.forEach(function(st){rn.add(st)}):Ye.kind===v.h.FRAGMENT_DEFINITION&&0===ue&&!Q(Ye.name.value).removed&&rn.add(Ye.name.value)}),rn.forEach(function(Ye){Lt(Q(Ye)).fragmentSpreads.forEach(function(st){rn.add(st)})});var rt={enter:function(Ye){if(function(Ye){return!(rn.has(Ye)&&!Q(Ye).removed)}(Ye.name.value))return null}};return F((0,d.Vn)(Ct,{FragmentSpread:rt,FragmentDefinition:rt,OperationDefinition:{leave:function(Ye){if(Ye.variableDefinitions){var st=Lt(ae(Ye.name&&Ye.name.value)).transitiveVars;if(st.size{a.d(be,{c:()=>A,t:()=>ue});var t=a(8645),i=a(7394),v=a(9666),d=a(6232),s=a(5879),L=a(1631),j=a(9773);const $=s.GuJ,S=Symbol("__destroy"),F=Symbol("__decoratorApplied");function k(Se){return"string"==typeof Se?Symbol(`__destroy__${Se}`):S}function w(Se,ke){Se[ke]||(Se[ke]=new t.x)}function M(Se,ke){Se[ke]&&(Se[ke].next(),Se[ke].complete(),Se[ke]=null)}function e(Se){Se instanceof i.w0&&Se.unsubscribe()}function pe(Se,ke){return function(){if(Se&&Se.call(this),M(this,k()),ke.arrayName&&function R(Se){Array.isArray(Se)&&Se.forEach(e)}(this[ke.arrayName]),ke.checkProperties)for(const Rt in this)ke.blackList?.includes(Rt)||e(this[Rt])}}function A(Se={}){return ke=>{!function I(Se){return!!Se[$]}(ke)?function me(Se,ke){Se.prototype.ngOnDestroy=pe(Se.prototype.ngOnDestroy,ke)}(ke,Se):function Z(Se,ke){const Rt=Se.\u0275pipe;Rt.onDestroy=pe(Rt.onDestroy,ke)}(ke,Se),function U(Se){Se.prototype[F]=!0}(ke)}}const V=7,O=Symbol("CheckerHasBeenSet");function re(Se){const ke=s.dqk.Zone;return ke&&"function"==typeof ke.root?.run?ke.root.run(Se):Se()}const Q=!1;function ue(Se,ke){return Rt=>{const Ft=k(ke);"string"==typeof ke?function fe(Se,ke,Rt){const Ft=Se[ke];if(Q&&"function"!=typeof Ft)throw new Error(`${Se.constructor.name} is using untilDestroyed but doesn't implement ${ke}`);w(Se,Rt),Se[ke]=function(){Ft.apply(this,arguments),M(this,Rt),Se[ke]=Ft}}(Se,ke,Ft):(Q&&function ge(Se){const ke=Object.getPrototypeOf(Se);if(!(F in ke))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(Se),w(Se,Ft));const Mt=Se[Ft];return Q&&function P(Se,ke){Se[O]||function D(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(re(()=>(0,v.D)(Promise.resolve()).pipe((0,L.z)(()=>{let Rt;try{Rt=(0,s.EEQ)(Se)}catch{Rt=null}const Ft=Rt?.lView;if(null==Ft)return d.E;const Mt=Ft[V]||(Ft[V]=[]),yt=new t.x;return Mt.push(function(){re(()=>{yt.next(),yt.complete()})}),yt}),(0,L.z)(()=>Promise.resolve())).subscribe(()=>{(ke.observed??ke.observers.length>0)&&console.warn(function ae(Se){return`\n The ${Se.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(Se))})),Se[O]=!0)}(Se,Mt),Rt.pipe((0,j.R)(Mt))}}},8091:(It,be,a)=>{a.d(be,{eJ:()=>ae,fM:()=>fe});var t=a(5879),i=a(2664),v=a(2572),d=a(9666),s=a(5592),L=a(7328),j=a(8407),$=a(7394),I=a(3997),S=a(9397),F=a(4664);let U=(()=>{class ge{}return ge.\u0275fac=function(ke){return new(ke||ge)},ge.\u0275prov=t.Yz7({token:ge,factory:function(){return function k(ge){return ge instanceof t.R0b}((0,t.f3M)(t.R0b))?new M:(0,t.f3M)(w)},providedIn:"root"}),ge})(),w=(()=>{class ge extends U{constructor(ke){super(),this.appRef=ke,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}}return ge.\u0275fac=function(ke){return new(ke||ge)(t.LFG(t.z2F))},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})();class M extends U{schedule(){}}let e=(()=>{class ge{constructor(ke,Rt){this.cdRef=ke,this.tickScheduler=Rt}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}}return ge.\u0275fac=function(ke){return new(ke||ge)(t.LFG(t.sBO),t.LFG(U))},ge.\u0275prov=t.Yz7({token:ge,factory:ge.\u0275fac}),ge})();function P(ge){const Se=function pe(ge){return Se=>ge[Se.type]?.(Se)}(ge),ke=new L.t(1);return{nextPotentialObservable(Rt){ke.next(Rt)},handlePotentialObservableChanges:()=>ke.pipe((0,I.x)(),function D(){return(0,j.z)((0,F.w)(ge=>{const Se=function me(ge){return(0,i.b)(ge)?ge:function A(ge){return function V(ge){return!!ge&&"object"==typeof ge&&!Array.isArray(ge)}(ge)&&Object.keys(ge).length>0&&Object.values(ge).every(i.b)}(ge)?(0,v.a)(function O(ge){return Object.keys(ge).reduce((Se,ke)=>({...Se,[ke]:ge[ke].pipe((0,I.x)())}),{})}(ge)):function Z(ge){return"function"==typeof ge?.then}(ge)?(0,d.D)(ge):new s.y(Se=>{Se.next(ge)})}(ge);let ke=!0,Rt=!0;return new s.y(Ft=>{const Mt=(0,t.rg0)(()=>Se.subscribe({next(yt){Ft.next({type:"next",value:yt,reset:ke,synchronous:Rt}),ke=!1},error(yt){Ft.next({type:"error",error:yt,reset:ke,synchronous:Rt}),ke=!1},complete(){Ft.next({type:"complete",reset:ke,synchronous:Rt}),ke=!1}}));return ke&&(Ft.next({type:"suspense",reset:ke,synchronous:!0}),ke=!1),Rt=!1,Mt})}))}(),(0,I.x)(re),(0,S.b)(Se))}}function re(ge,Se){return ge.type===Se.type&&ge.reset===Se.reset&&("next"===Se.type?ge.value===Se.value:"error"!==Se.type||ge.error===Se.error)}let ae=(()=>{class ge{set ngrxLet(ke){this.renderEventManager.nextPotentialObservable(ke)}constructor(ke,Rt,Ft,Mt){this.mainTemplateRef=ke,this.viewContainerRef=Rt,this.errorHandler=Ft,this.renderScheduler=Mt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=P({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:yt=>{this.viewContext.$implicit=yt.value,this.viewContext.ngrxLet=yt.value,yt.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(yt.synchronous)},error:yt=>{this.viewContext.error=yt.error,yt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(yt.synchronous),this.errorHandler.handleError(yt.error)},complete:yt=>{this.viewContext.complete=!0,yt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(yt.synchronous)}}),this.subscription=new $.w0}static ngTemplateContextGuard(ke,Rt){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(ke){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),ke||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}}return ge.\u0275fac=function(ke){return new(ke||ge)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(t.qLn),t.Y36(e))},ge.\u0275dir=t.lG2({type:ge,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:["ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t._Bn([e])]}),ge})(),fe=(()=>{class ge{constructor(ke){this.errorHandler=ke,this.renderScheduler=function R(){return new e((0,t.f3M)(t.sBO),(0,t.f3M)(U))}(),this.renderEventManager=P({suspense:Rt=>this.setRenderedValue(void 0,Rt.synchronous),next:Rt=>this.setRenderedValue(Rt.value,Rt.synchronous),error:Rt=>{Rt.reset&&this.setRenderedValue(void 0,Rt.synchronous),this.errorHandler.handleError(Rt.error)},complete:Rt=>{Rt.reset&&this.setRenderedValue(void 0,Rt.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(ke){return this.renderEventManager.nextPotentialObservable(ke),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(ke,Rt){ke!==this.renderedValue&&(this.renderedValue=ke,Rt||this.renderScheduler.schedule())}}return ge.\u0275fac=function(ke){return new(ke||ge)(t.Y36(t.qLn,16))},ge.\u0275pipe=t.Yjl({name:"ngrxPush",type:ge,pure:!1,standalone:!0}),ge})()},5545:(It,be,a)=>{a.d(be,{JD:()=>De,M2:()=>ve,T7:()=>Ne,X0:()=>kt,cw:()=>je,fS:()=>ie,l7:()=>Ze,n2:()=>ct});var t=a(5879),i=a(6223),v=a(2664),d=a(3019),s=a(2096),L=a(5592),j=a(8645),$=a(3997),I=a(7921),S=a(3620),F=a(2181),k=a(4664),U=a(8180),w=a(9397),M=a(7398),e=a(6814),R=a(6593);const pe=["container"];function me(Je,K){}function Z(Je,K){1&Je&&t._UZ(0,"formly-field",1),2&Je&&t.Q6J("field",K.$implicit)}const A=["*"],V=["fieldComponent"];function P(Je,K,N){if(K.id)return K.id;let J=K.type;return!J&&K.template&&(J="template"),J instanceof t.DyG&&(J=J.prototype.constructor.name),[Je,J,K.key,N].join("_")}function D(Je){return!Se(Je.key)&&""!==Je.key}function re(Je){if(!D(Je))return[];if(Je._keyPath?.key!==Je.key){let K=[];if("string"==typeof Je.key){const N=-1===Je.key.indexOf("[")?Je.key:Je.key.replace(/\[(\w+)\]/g,".$1");K=-1!==N.indexOf(".")?N.split("."):[N]}else K=Array.isArray(Je.key)?Je.key.slice(0):[`${Je.key}`];rn(Je,"_keyPath",{key:Je.key,path:K})}return Je._keyPath.path.slice(0)}const ae=["required","pattern","minLength","maxLength","min","max"];function Q(Je,K){let N=re(Je);if(0===N.length)return;let J=Je;for(;J.parent;)J=J.parent,N=[...re(J),...N];if(void 0===K&&Je.resetOnHide){const Me=N.pop();delete N.reduce((nt,We)=>nt[We]||{},J.model)[Me]}else!function fe(Je,K,N){for(let J=0;J{for(const J in N)Se(Je[J])||Rt(Je[J])?Je[J]=Lt(N[J]):Mt(Je[J],N[J])&&ge(Je[J],N[J])}),Je}function Se(Je){return null==Je}function ke(Je){return void 0===Je}function Rt(Je){return""===Je}function Ft(Je){return"function"==typeof Je}function Mt(Je,K){return yt(Je)&&yt(K)&&Object.getPrototypeOf(Je)===Object.getPrototypeOf(K)&&!(Array.isArray(Je)||Array.isArray(K))}function yt(Je){return null!=Je&&"object"==typeof Je}function Lt(Je){if(!yt(Je)||(0,v.b)(Je)||Je instanceof t.Rgc||Je.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Je.constructor.name))return Je;if(Je instanceof Set)return new Set(Je);if(Je instanceof Map)return new Map(Je);if(Je._isAMomentObject&&Ft(Je.clone))return Je.clone();if(Je instanceof i.TO)return null;if(Je instanceof Date)return new Date(Je.getTime());if(Array.isArray(Je))return Je.slice(0).map(J=>Lt(J));const K=Object.getPrototypeOf(Je);let N=Object.create(K);return N=Object.setPrototypeOf(N,K),Object.keys(Je).reduce((J,Me)=>{const zt=Object.getOwnPropertyDescriptor(Je,Me);return zt.get?Object.defineProperty(J,Me,zt):J[Me]=Lt(Je[Me]),J},N)}function rn(Je,K,N){Object.defineProperty(Je,K,{enumerable:!1,writable:!0,configurable:!0}),Je[K]=N}function Sn(Je,K,N){let J=[];const Me=()=>{J.forEach(nt=>nt()),J=[]},zt=rt(Je,K,({firstChange:nt,currentValue:We})=>{!nt&&N(),Me(),yt(We)&&"Object"===We.constructor.name&&Object.keys(We).forEach(ot=>{J.push(Sn(Je,[...K,ot],N))})});return()=>{zt.unsubscribe(),Me()}}function rt(Je,K,N){Je._observers||rn(Je,"_observers",{});let J=Je;for(let We=0;We=1&&yt(J))){const{enumerable:We}=Object.getOwnPropertyDescriptor(J,Me)||{enumerable:!0};Object.defineProperty(J,Me,{enumerable:We,configurable:!0,get:()=>nt.value,set:ot=>{if(ot!==nt.value){const Vt=nt.value;nt.value=ot,nt.onChange.forEach(St=>St({previousValue:Vt,currentValue:ot,firstChange:!1}))}}})}return{setValue(We){if(We===nt.value)return;const ot=nt.value;nt.value=We,nt.onChange.forEach(Vt=>{Vt!==N&&Vt({previousValue:ot,currentValue:We,firstChange:!1})})},unsubscribe(){nt.onChange=nt.onChange.filter(We=>We!==N),0===nt.onChange.length&&delete Je._observers[zt]}}}function Ye(Je,K){if(K=Array.isArray(K)?K.join("."):K,Je.fieldGroup)for(let N=0,J=Je.fieldGroup.length;N{K instanceof t.UuU?K.injector.get(t.sBO).markForCheck():K.markForCheck()})}const Ze=new t.OlP("FORMLY_CONFIG");let Bt=(()=>{class Je{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:N=>N.formControl?.invalid&&(N.formControl?.touched||N.options.parentForm?.submitted||!!N.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(N){N.types&&N.types.forEach(J=>this.setType(J)),N.validators&&N.validators.forEach(J=>this.setValidator(J)),N.wrappers&&N.wrappers.forEach(J=>this.setWrapper(J)),N.validationMessages&&N.validationMessages.forEach(J=>this.addValidatorMessage(J.name,J.message)),N.extensions&&this.setSortedExtensions(N.extensions),N.extras&&(this.extras={...this.extras,...N.extras}),N.presets&&(this.presets={...this.presets,...N.presets.reduce((J,Me)=>({...J,[Me.name]:Me.config}),{})})}setType(N){Array.isArray(N)?N.forEach(J=>this.setType(J)):(this.types[N.name]||(this.types[N.name]={name:N.name}),["component","extends","defaultOptions","wrappers"].forEach(J=>{N.hasOwnProperty(J)&&(this.types[N.name][J]=N[J])}))}getType(N,J=!1){if(N instanceof t.DyG)return{component:N,name:N.prototype.constructor.name};if(!this.types[N]){if(J)throw new Error(`[Formly Error] The type "${N}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(N),this.types[N]}getMergedField(N={}){const J=this.getType(N.type);if(!J)return;J.defaultOptions&&ge(N,J.defaultOptions);const Me=J.extends&&this.getType(J.extends).defaultOptions;Me&&ge(N,Me),N?.optionsTypes&&N.optionsTypes.forEach(nt=>{const We=this.getType(nt).defaultOptions;We&&ge(N,We)});const zt=this.resolveFieldTypeRef(N);zt?.instance?.defaultOptions&&ge(N,zt.instance.defaultOptions),!N.wrappers&&J.wrappers&&(N.wrappers=[...J.wrappers])}resolveFieldTypeRef(N={}){const J=this.getType(N.type);if(!J)return null;if(!J.component||J._componentRef)return J._componentRef;const{_viewContainerRef:Me,_injector:zt}=N.options;if(!Me||!zt)return null;const nt=Me.createComponent(J.component,{injector:zt});rn(J,"_componentRef",nt);try{nt.destroy()}catch(We){console.error(`An error occurred while destroying the Formly component type "${N.type}"`,We)}return J._componentRef}setWrapper(N){this.wrappers[N.name]=N,N.types&&N.types.forEach(J=>{this.setTypeWrapper(J,N.name)})}getWrapper(N){if(N instanceof t.DyG)return{component:N,name:N.prototype.constructor.name};if(!this.wrappers[N])throw new Error(`[Formly Error] The wrapper "${N}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[N]}setTypeWrapper(N,J){this.types[N]||(this.types[N]={}),this.types[N].wrappers||(this.types[N].wrappers=[]),-1===this.types[N].wrappers.indexOf(J)&&this.types[N].wrappers.push(J)}setValidator(N){this.validators[N.name]=N}getValidator(N){if(!this.validators[N])throw new Error(`[Formly Error] The validator "${N}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[N]}addValidatorMessage(N,J){this.messages[N]=J}getValidatorMessage(N){return this.messages[N]}setSortedExtensions(N){N.forEach(J=>{const Me=J.priority??1;this.extensionsByPriority[Me]={...this.extensionsByPriority[Me],[J.name]:J.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((J,Me)=>J-Me).reduce((J,Me)=>({...J,...this.extensionsByPriority[Me]}),{})}mergeExtendedType(N){if(!this.types[N].extends)return;const J=this.getType(this.types[N].extends);this.types[N].component||(this.types[N].component=J.component),this.types[N].wrappers||(this.types[N].wrappers=J.wrappers)}}return Je.\u0275fac=function(N){return new(N||Je)},Je.\u0275prov=t.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),Jt=(()=>{class Je{constructor(N,J,Me,zt){this.config=N,this.injector=J,this.viewContainerRef=Me,this.parentForm=zt}buildForm(N,J=[],Me,zt){this.build({fieldGroup:J,model:Me,form:N,options:zt})}build(N){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");N.parent?this._build(N):(this._setOptions(N),function O(Je,K){const N=Je._updateTreeValidity.bind(Je);Je._updateTreeValidity=()=>{},K(),Je._updateTreeValidity=N}(N.form,()=>{this._build(N);const J=N.options;J.checkExpressions?.(N,!0),J.detectChanges?.(N)}))}_build(N){if(!N)return;const J=Object.values(this.config.extensions);J.forEach(Me=>Me.prePopulate?.(N)),J.forEach(Me=>Me.onPopulate?.(N)),N.fieldGroup?.forEach(Me=>this._build(Me)),J.forEach(Me=>Me.postPopulate?.(N))}_setOptions(N){N.form=N.form||new i.cw({}),N.model=N.model||{},N.options=N.options||{};const J=N.options;J._viewContainerRef||rn(J,"_viewContainerRef",this.viewContainerRef),J._injector||rn(J,"_injector",this.injector),J.build||(J._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(N)},J.build=(Me=N)=>(this.build(Me),Me)),!J.parentForm&&this.parentForm&&(rn(J,"parentForm",this.parentForm),rt(J,["parentForm","submitted"],({firstChange:Me})=>{Me||(J.checkExpressions(N),J.detectChanges(N))}))}}return Je.\u0275fac=function(N){return new(N||Je)(t.LFG(Bt),t.LFG(t.zs3),t.LFG(t.s_b,8),t.LFG(i.sg,8))},Je.\u0275prov=t.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();function cn(Je,K,N=!1){if((K=K||Je.formControl)._fields||rn(K,"_fields",[]),-1===K._fields.indexOf(Je)&&K._fields.push(Je),!Je.formControl&&K){rn(Je,"formControl",K),K.setValidators(null),K.setAsyncValidators(null),Je.props.disabled=!!Je.props.disabled;const We=rt(Je,["props","disabled"],({firstChange:ot,currentValue:Vt})=>{ot||(Vt?Je.formControl.disable():Je.formControl.enable())});K instanceof i.NI&&K.registerOnDisabledChange(We.setValue)}if(!Je.form||!D(Je))return;let J=Je.form;const Me=re(Je),zt=ue(Je);(!Se(K.value)||!Se(zt))&&K.value!==zt&&K instanceof i.NI&&K.patchValue(zt);for(let We=0;WeVe(K))}let Be=(()=>{class Je{constructor(N){this.ref=N}ngOnChanges(){this.name=this.name||"formly-group"}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(t.Rgc))},Je.\u0275dir=t.lG2({type:Je,selectors:[["","formlyTemplate",""]],inputs:{name:["formlyTemplate","name"]},features:[t.TTD]}),Je})(),He=(()=>{class Je{}return Je.\u0275fac=function(N){return new(N||Je)},Je.\u0275prov=t.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),je=(()=>{class Je{constructor(N,J,Me,zt,nt){this.config=N,this.renderer=J,this._elementRef=Me,this.hostContainerRef=zt,this.form=nt,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof t.UuU?this.componentRefs[0].location:null}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(N){this.triggerHook("onChanges",N)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(N=>N.unsubscribe()),this.hooksObservers.forEach(N=>N()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(N,J,Me=[]){if(this.containerRef===N&&(this.resetRefs(this.field),this.containerRef.clear(),Me=this.field?.wrappers),Me?.length>0){const[zt,...nt]=Me,{component:We}=this.config.getWrapper(zt),ot=N.createComponent(We);this.attachComponentRef(ot,J),rt(ot.instance,["fieldComponent"],({currentValue:Vt,previousValue:St,firstChange:mn})=>{if(Vt){if(St&&St._lContainer===Vt._lContainer)return;const Qe=St?St.detach():null;Qe&&!Qe.destroyed?Vt.insert(Qe):this.renderField(Vt,J,nt),!mn&&ot.changeDetectorRef.detectChanges()}})}else if(J?.type){const zt=this.form?.templates?.find(We=>We.name===J.type);let nt;if(zt)nt=N.createEmbeddedView(zt.ref,{$implicit:J});else{const{component:We}=this.config.getType(J.type,!0);nt=N.createComponent(We)}this.attachComponentRef(nt,J)}}triggerHook(N,J){if(("onInit"===N||"onChanges"===N&&J.field&&!J.field.firstChange)&&(this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[N]&&(!J||J.field)){const Me=this.field.hooks[N](this.field);if((0,v.b)(Me)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(N)){const zt=Me.subscribe();this.hooksObservers.push(()=>zt.unsubscribe())}}"onChanges"===N&&J.field&&(this.resetRefs(J.field.previousValue),this.render())}attachComponentRef(N,J){this.componentRefs.push(N),J._componentRefs.push(N),N instanceof t.UuU&&Object.assign(N.instance,{field:J})}render(){if(this.field){if(!this.field.options)return void(this.detectFieldBuild=!0);this.detectFieldBuild=!1,this.hostObservers.forEach(N=>N.unsubscribe()),this.hostObservers=[rt(this.field,["hide"],({firstChange:N,currentValue:J})=>{const Me=this.containerRef;!1===this.config.extras.lazyRender?(N&&this.renderField(Me,this.field),(!N||N&&J)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",J?"none":"")):J?(Me.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(Me,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!N&&this.field.options.detectChanges(this.field)}),rt(this.field,["className"],({firstChange:N,currentValue:J})=>{(!N||N&&J)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",J)}),...["touched","pristine","status"].map(N=>rt(this.field,["formControl",N],({firstChange:J})=>!J&&st(this.field)))]}}resetRefs(N){N&&(N._localFields?N._localFields=[]:rn(this.field,"_localFields",[]),N._componentRefs?N._componentRefs=N._componentRefs.filter(J=>-1===this.componentRefs.indexOf(J)):rn(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(N){if(this.valueChangesUnsubscribe(),!N)return()=>{};const J=[Sn(N,["props"],()=>N.options.detectChanges(N))];N.options&&J.push(Sn(N.options,["formState"],()=>N.options.detectChanges(N)));for(const zt of Object.keys(N._expressions||{})){const nt=rt(N,["_expressions",zt],({currentValue:We,previousValue:ot})=>{ot?.subscription&&(ot.subscription.unsubscribe(),ot.subscription=null),(0,v.b)(We.value$)&&(We.subscription=We.value$.subscribe())});J.push(()=>{N._expressions[zt]?.subscription&&N._expressions[zt].subscription.unsubscribe(),nt.unsubscribe()})}for(const zt of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const nt=rt(N,zt,({firstChange:We})=>!We&&N.options.detectChanges(N));J.push(()=>nt.unsubscribe())}if(N.formControl&&!N.fieldGroup){const zt=N.formControl;let nt=zt.valueChanges.pipe((0,$.x)((St,mn)=>!(St!==mn||Array.isArray(St)||yt(St))));zt.value!==ue(N)&&(nt=nt.pipe((0,I.O)(zt.value)));const{updateOn:We,debounce:ot}=N.modelOptions;(!We||"change"===We)&&ot?.default>0&&(nt=zt.valueChanges.pipe((0,S.b)(ot.default)));const Vt=nt.subscribe(St=>{zt._fields?.length>1&&zt instanceof i.NI&&zt.patchValue(St,{emitEvent:!1,onlySelf:!0}),N.parsers?.forEach(mn=>St=mn(St)),St===N.formControl.value?(D(N)&&Q(N,St),N.options.fieldChanges.next({value:St,field:N,type:"valueChanges"})):N.formControl.setValue(St)});J.push(()=>Vt.unsubscribe())}let Me=[];return rt(N,["_localFields"],({currentValue:zt})=>{Me.forEach(nt=>nt()),Me=(zt||[]).map(nt=>this.fieldChanges(nt))}),()=>{J.forEach(zt=>zt()),Me.forEach(zt=>zt())}}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(Bt),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(He,8))},Je.\u0275cmp=t.Xpm({type:Je,selectors:[["formly-field"]],viewQuery:function(N,J){if(1&N&&t.Gf(pe,7,t.s_b),2&N){let Me;t.iGM(Me=t.CRH())&&(J.viewContainerRef=Me.first)}},inputs:{field:"field"},features:[t.TTD],decls:2,vars:0,consts:[["container",""]],template:function(N,J){1&N&&t.YNc(0,me,0,0,"ng-template",null,0,t.W1O)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Je})(),Ne=(()=>{class Je{constructor(N,J,Me,zt){this.builder=N,this.config=J,this.ngZone=Me,this.fieldTemplates=zt,this.modelChange=new t.vpe,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(N){this.field.form=N}get form(){return this.field.form}set model(N){this.config.extras.immutable&&this._modelChangeValue===N||this.setField({model:N})}get model(){return this.field.model}set fields(N){this.setField({fieldGroup:N})}get fields(){return this.field.fieldGroup}set options(N){this.setField({options:N})}get options(){return this.field.options}set templates(N){this.fieldTemplates.templates=N}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(N){N.fields&&this.form&&Ve(this.form),(N.fields||N.form||N.model&&this._modelChangeValue!==N.model.currentValue)&&(this.valueChangesUnsubscribe(),this.builder.build(this.field),this.valueChangesUnsubscribe=this.valueChanges())}ngOnDestroy(){this.valueChangesUnsubscribe()}checkExpressionChange(){this.field.options.checkExpressions?.(this.field)}valueChanges(){this.valueChangesUnsubscribe();const N=this.field.options.fieldChanges.pipe((0,F.h)(({field:J,type:Me})=>D(J)&&"valueChanges"===Me),(0,k.w)(()=>this.ngZone.onStable.asObservable().pipe((0,U.q)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=Lt(this.model))}));return()=>N.unsubscribe()}setField(N){this.config.extras.immutable?this.field={...this.field,...Lt(N)}:Object.keys(N).forEach(J=>this.field[J]=N[J])}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(Jt),t.Y36(Bt),t.Y36(t.R0b),t.Y36(He))},Je.\u0275cmp=t.Xpm({type:Je,selectors:[["formly-form"]],contentQueries:function(N,J,Me){if(1&N&&t.Suo(Me,Be,4),2&N){let zt;t.iGM(zt=t.CRH())&&(J.templates=zt)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t._Bn([Jt,He]),t.TTD],decls:1,vars:1,consts:[[3,"field"]],template:function(N,J){1&N&&t._UZ(0,"formly-field",0),2&N&&t.Q6J("field",J.field)},dependencies:[je],encapsulation:2,changeDetection:0}),Je})(),De=(()=>{class Je{constructor(N,J,Me){this.renderer=N,this.elementRef=J,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(zt,nt)=>{switch(zt){case"focus":return this.onFocus(nt);case"blur":return this.onBlur(nt);case"change":return this.onChange(nt);default:return this.props[zt](this.field,nt)}}},this.document=Me}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(N){N.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(J=>J()),this.uiEvents.events.forEach(J=>{(this.props?.[J]||-1!==["focus","blur","change"].indexOf(J))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,J,Me=>this.uiEvents.callback(J,Me)))}),this.props?.attributes&&rt(this.field,["props","attributes"],({currentValue:J,previousValue:Me})=>{Me&&Object.keys(Me).forEach(zt=>this.removeAttribute(zt)),J&&Object.keys(J).forEach(zt=>{null!=J[zt]&&this.setAttribute(zt,J[zt])})}),this.detachElementRef(N.field.previousValue),this.attachElementRef(N.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=rt(this.field,["focus"],({currentValue:J})=>{this.toggleFocus(J)}))),N.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const N=this.elementRef.nativeElement;this.uiAttributes=[...ae,"tabindex","placeholder","readonly","disabled","step"].filter(J=>!N.hasAttribute||!N.hasAttribute(J))}this.uiAttributes.forEach(N=>{const J=this.props[N];this.uiAttributesCache[N]!==J&&(!this.props.attributes||!this.props.attributes.hasOwnProperty(N.toLowerCase()))&&(this.uiAttributesCache[N]=J,J||0===J?this.setAttribute(N,!0===J?N:`${J}`):this.removeAttribute(N))})}ngOnDestroy(){this.uiEvents.listeners.forEach(N=>N()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(N){const J=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!J||!J.nativeElement.focus)return;const Me=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:zt})=>this.document.activeElement===zt||zt.contains(this.document.activeElement));N&&!Me?Promise.resolve().then(()=>J.nativeElement.focus()):!N&&Me&&Promise.resolve().then(()=>J.nativeElement.blur())}onFocus(N){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,N)}onBlur(N){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,N)}onHostChange(N){N instanceof Event||this.onChange(N)}onChange(N){this.props.change?.(this.field,N),this.field.formControl?.markAsDirty()}attachElementRef(N){N&&(-1===N._elementRefs?.indexOf(this.elementRef)?N._elementRefs.push(this.elementRef):rn(N,"_elementRefs",[this.elementRef]))}detachElementRef(N){const J=N?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==J&&N._elementRefs.splice(J,1)}setAttribute(N,J){this.renderer.setAttribute(this.elementRef.nativeElement,N,J)}removeAttribute(N){this.renderer.removeAttribute(this.elementRef.nativeElement,N)}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(e.K0))},Je.\u0275dir=t.lG2({type:Je,selectors:[["","formlyAttributes",""]],hostBindings:function(N,J){1&N&&t.NdJ("change",function(zt){return J.onHostChange(zt)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[t.TTD]}),Je})(),ie=(()=>{class Je{constructor(){this.field={}}set controls(N){this.field._localFields=N.map(Me=>Me.control._fields||[]).flat().filter(Me=>Me.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}}return Je.\u0275fac=function(N){return new(N||Je)},Je.\u0275dir=t.lG2({type:Je,viewQuery:function(N,J){if(1&N&&t.Gf(i.a5,5),2&N){let Me;t.iGM(Me=t.CRH())&&(J.controls=Me)}},inputs:{field:"field"}}),Je})(),Ce=(()=>{class Je extends ie{}return Je.\u0275fac=function(){let K;return function(J){return(K||(K=t.n5z(Je)))(J||Je)}}(),Je.\u0275cmp=t.Xpm({type:Je,selectors:[["formly-group"]],hostVars:2,hostBindings:function(N,J){2&N&&t.Tol(J.field.fieldGroupClassName||"")},features:[t.qOj],ngContentSelectors:A,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(N,J){1&N&&(t.F$t(),t.YNc(0,Z,1,1,"formly-field",0),t.Hsn(1)),2&N&&t.Q6J("ngForOf",J.field.fieldGroup)},dependencies:[je,e.sg],encapsulation:2,changeDetection:0}),Je})(),ve=(()=>{class Je{constructor(N){this.config=N}ngOnChanges(){const N=ae.map(J=>`templateOptions.${J}`);this.errorMessage$=(0,d.T)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,F.h)(({field:J,type:Me,property:zt})=>J===this.field&&"expressionChanges"===Me&&(-1!==zt.indexOf("validation")||-1!==N.indexOf(zt)))):(0,s.of)(null)).pipe((0,I.O)(null),(0,k.w)(()=>(0,v.b)(this.errorMessage)?this.errorMessage:(0,s.of)(this.errorMessage)))}get errorMessage(){const N=this.field.formControl;for(const J in N.errors)if(N.errors.hasOwnProperty(J)){let Me=this.config.getValidatorMessage(J);if(yt(N.errors[J])){if(N.errors[J].errorPath)return;N.errors[J].message&&(Me=N.errors[J].message)}return this.field.validation?.messages?.[J]&&(Me=this.field.validation.messages[J]),this.field.validators?.[J]?.message&&(Me=this.field.validators[J].message),this.field.asyncValidators?.[J]?.message&&(Me=this.field.asyncValidators[J].message),"function"==typeof Me?Me(N.errors[J],this.field):Me}}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(Bt))},Je.\u0275cmp=t.Xpm({type:Je,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.TTD],decls:2,vars:3,template:function(N,J){1&N&&(t._uU(0),t.ALo(1,"async")),2&N&&t.Oqu(t.lcZ(1,1,J.errorMessage$))},dependencies:[e.Ov],encapsulation:2,changeDetection:0}),Je})(),ct=(()=>{class Je extends ie{set _staticContent(N){this.fieldComponent=N}}return Je.\u0275fac=function(){let K;return function(J){return(K||(K=t.n5z(Je)))(J||Je)}}(),Je.\u0275dir=t.lG2({type:Je,viewQuery:function(N,J){if(1&N&&(t.Gf(V,5,t.s_b),t.Gf(V,7,t.s_b)),2&N){let Me;t.iGM(Me=t.CRH())&&(J.fieldComponent=Me.first),t.iGM(Me=t.CRH())&&(J._staticContent=Me.first)}},features:[t.qOj]}),Je})(),Zt=(()=>{class Je extends ie{constructor(N){super(),this.sanitizer=N,this.innerHtml={}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return Je.\u0275fac=function(N){return new(N||Je)(t.Y36(R.H7))},Je.\u0275cmp=t.Xpm({type:Je,selectors:[["formly-template"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(N,J){1&N&&t._UZ(0,"div",0),2&N&&t.Q6J("innerHtml",J.template,t.oJD)},encapsulation:2,changeDetection:0}),Je})();class Xe{onPopulate(K){if(K._expressions)return;rn(K,"_expressions",{}),rt(K,["hide"],({currentValue:J,firstChange:Me})=>{rn(K,"_hide",!!J),(!Me||Me&&!0===J)&&(K.props.hidden=J,K.options._hiddenFieldsForCheck.push(K))}),K.hideExpression&&rt(K,["hideExpression"],({currentValue:J})=>{K._expressions.hide=this.parseExpressions(K,"hide","boolean"==typeof J?()=>J:J)});const N=(J,Me)=>{"string"==typeof Me||Ft(Me)?K._expressions[J]=this.parseExpressions(K,J,Me):Me instanceof L.y&&(K._expressions[J]={value$:Me.pipe((0,w.b)(zt=>{this.evalExpr(K,J,zt),K.options.detectChanges(K)}))})};K.expressions=K.expressions||{};for(const J of Object.keys(K.expressions))rt(K,["expressions",J],({currentValue:Me})=>{N(J,Ft(Me)?(...zt)=>Me(K,zt[3]):Me)});K.expressionProperties=K.expressionProperties||{};for(const J of Object.keys(K.expressionProperties))rt(K,["expressionProperties",J],({currentValue:Me})=>N(J,Me))}postPopulate(K){if(!K.parent&&!K.options.checkExpressions){let N=!1;K.options.checkExpressions=(J,Me)=>{if(N)return;N=!0;const zt=this.checkExpressions(J,Me),nt=K.options;nt._hiddenFieldsForCheck.sort(We=>We.hide?-1:1).forEach(We=>this.changeHideState(We,We.hide,!Me)),nt._hiddenFieldsForCheck=[],zt&&(this.checkExpressions(K),K.options&&K.options.detectChanges&&K.options.detectChanges(K)),N=!1},K.options._checkField=(J,Me)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),K.options.checkExpressions(J,Me)}}}parseExpressions(K,N,J){let Me,zt;if(K.parent&&["hide","props.disabled"].includes(N)){const nt=We=>"hide"===N?We.hide:We.props.disabled;Me=()=>{let We=K.parent;for(;We.parent&&!nt(We);)We=We.parent;return nt(We)}}return"string"==typeof(J=J||(()=>!1))&&(J=function Cn(Je,K){try{return Function(...K,`return ${Je};`)}catch(N){console.error(N)}}(J,["model","formState","field"])),{callback:nt=>{try{const We=function at(Je,K,N){return"function"==typeof Je?Je.apply(K,N):!!Je}(Me?(...ot)=>Me(K)||J(...ot):J,{field:K},[K.model,K.options.formState,K,nt]);return!(!nt&&(zt===We||yt(We)&&!(0,v.b)(We)&&JSON.stringify(We)===JSON.stringify(zt))||(zt=We,this.evalExpr(K,N,We),0))}catch(We){throw We.message=`[Formly Error] [Expression "${N}"] ${We.message}`,We}}}}checkExpressions(K,N=!1){if(!K)return!1;let J=!1;if(K._expressions)for(const Me of Object.keys(K._expressions))K._expressions[Me].callback?.(N)&&(J=!0);return K.fieldGroup?.forEach(Me=>this.checkExpressions(Me,N)&&(J=!0)),J}changeDisabledState(K,N){K.fieldGroup&&K.fieldGroup.filter(J=>!J._expressions.hasOwnProperty("props.disabled")).forEach(J=>this.changeDisabledState(J,N)),D(K)&&K.props.disabled!==N&&(K.props.disabled=N)}changeHideState(K,N,J){if(K.fieldGroup&&K.fieldGroup.filter(Me=>!Me._expressions.hide).forEach(Me=>this.changeHideState(Me,N,J)),K.formControl&&D(K)){rn(K,"_hide",!(!N&&!K.hide));const Me=K.formControl;Me._fields?.length>1&&wt(Me),!0!==N||Me._fields&&!Me._fields.every(zt=>!!zt._hide)?!1===N&&(K.resetOnHide&&!ke(K.defaultValue)&&ke(ue(K))&&Q(K,K.defaultValue),cn(K,void 0,!0),K.resetOnHide&&K.fieldArray&&K.fieldGroup?.length!==K.model?.length&&K.options.build(K)):(function _n(Je,K=!1){const N=Je.formControl,J=N._fields?N._fields.indexOf(Je):-1;-1!==J&&N._fields.splice(J,1);const Me=N.parent;if(!Me)return;const zt={emitEvent:K};if(Me instanceof i.Oe){const nt=Me.controls.findIndex(We=>We===N);-1!==nt&&Me.removeAt(nt,zt)}else if(Me instanceof i.cw){const nt=re(Je),We=nt[nt.length-1];Me.get([We])===N&&Me.removeControl(We,zt)}N.setParent(null)}(K,!0),J&&K.resetOnHide&&(Q(K,void 0),K.formControl.reset({value:void 0,disabled:K.formControl.disabled}),K.options.fieldChanges.next({value:void 0,field:K,type:"valueChanges"}),K.fieldGroup&&K.formControl instanceof i.Oe&&(K.fieldGroup.length=0)))}K.options.fieldChanges&&K.options.fieldChanges.next({field:K,type:"hidden",value:N})}evalExpr(K,N,J){if(0===N.indexOf("model.")){const Me=N.replace(/^model\./,""),zt=K.fieldGroup?K:K.parent;let nt=K?.key===Me?K.formControl:K.form.get(Me);!nt&&K.get(Me)&&(nt=K.get(Me).formControl),Q({key:Me,parent:zt,model:K.model},J),nt&&(!Se(nt.value)||!Se(J))&&nt.value!==J&&nt.patchValue(J)}else{try{let Me=K;const zt=this._evalExpressionPath(K,N),nt=zt.length-1;for(let We=0;WeMe).forEach(Me=>{const zt=Me.match(/['|"](.*?)['|"]/);zt?J.push(zt[1]):J.push(...Me.split(".").filter(nt=>nt))}),K._expressions[N]&&(K._expressions[N].paths=J),J}}class it{constructor(K){this.config=K}onPopulate(K){this.initFieldValidation(K,"validators"),this.initFieldValidation(K,"asyncValidators")}initFieldValidation(K,N){const J=[];if("validators"===N&&!(K.hasOwnProperty("fieldGroup")&&!D(K))&&J.push(this.getPredefinedFieldValidation(K)),K[N])for(const Me of Object.keys(K[N]))"validation"===Me?J.push(...K[N].validation.map(zt=>this.wrapNgValidatorFn(K,zt))):J.push(this.wrapNgValidatorFn(K,K[N][Me],Me));rn(K,"_"+N,J)}getPredefinedFieldValidation(K){let N=[];return ae.forEach(J=>rt(K,["props",J],({currentValue:Me,firstChange:zt})=>{N=N.filter(nt=>nt!==J),null!=Me&&!1!==Me&&N.push(J),!zt&&K.formControl&&wt(K.formControl)})),J=>0===N.length?null:i.kI.compose(N.map(Me=>()=>{const zt=K.props[Me];switch(Me){case"required":return i.kI.required(J);case"pattern":return i.kI.pattern(zt)(J);case"minLength":const nt=i.kI.minLength(zt)(J),We=this.config.getValidatorMessage("minlength")||K.validation?.messages?.minlength?"minlength":"minLength";return nt?{[We]:nt.minlength}:null;case"maxLength":const ot=i.kI.maxLength(zt)(J),Vt=this.config.getValidatorMessage("maxlength")||K.validation?.messages?.maxlength?"maxlength":"maxLength";return ot?{[Vt]:ot.maxlength}:null;case"min":return i.kI.min(zt)(J);case"max":return i.kI.max(zt)(J);default:return null}}))(J)}wrapNgValidatorFn(K,N,J){let Me;if("string"==typeof N&&(Me=Lt(this.config.getValidator(N))),"object"==typeof N&&N.name&&(Me=Lt(this.config.getValidator(N.name)),N.options&&(Me.options=N.options)),"object"==typeof N&&N.expression){const{expression:zt,...nt}=N;Me={name:J,validation:zt,options:Object.keys(nt).length>0?nt:null}}return"function"==typeof N&&(Me={name:J,validation:N}),zt=>{const nt=Me.validation(zt,K,Me.options);return function Ct(Je){return!!Je&&"function"==typeof Je.then}(nt)?nt.then(We=>this.handleAsyncResult(K,J?!!We:We,Me)):(0,v.b)(nt)?nt.pipe((0,M.U)(We=>this.handleAsyncResult(K,J?!!We:We,Me))):this.handleResult(K,J?!!nt:nt,Me)}}handleAsyncResult(K,N,J){return K.options.detectChanges(K),this.handleResult(K,N,J)}handleResult(K,N,{name:J,options:Me}){"boolean"==typeof N&&(N=N?null:{[J]:Me||!0});const zt=K.formControl;return zt?._childrenErrors?.[J]?.(),yt(N)&&Object.keys(N).forEach(nt=>{const We=N[nt].errorPath?N[nt].errorPath:Me?.errorPath,ot=We?K.formControl.get(We):null;if(ot){const{errorPath:Vt,...St}=N[nt];ot.setErrors({...ot.errors||{},[nt]:St}),!zt._childrenErrors&&rn(zt,"_childrenErrors",{}),zt._childrenErrors[nt]=()=>{const{[nt]:mn,...Qe}=ot.errors||{};ot.setErrors(0===Object.keys(Qe).length?null:Qe)}}}),N}}class Ot{prePopulate(K){this.root||(this.root=K),K.parent&&Object.defineProperty(K,"form",{get:()=>K.parent.formControl,configurable:!0})}onPopulate(K){K.hasOwnProperty("fieldGroup")&&!D(K)?rn(K,"formControl",K.form):this.addFormControl(K)}postPopulate(K){if(this.root===K&&(this.root=null,this.setValidators(K)&&K.parent)){let J=K.parent;for(;J;)(D(J)||!J.parent)&&wt(J.formControl,!0),J=J.parent}}addFormControl(K){let N=function On(Je){return Je.formControl?Je.formControl:!1===Je.shareFormControl?null:Je.form?.get(re(Je))}(K);if(!K.fieldArray){if(!N){const J={updateOn:K.modelOptions.updateOn};if(K.fieldGroup)N=new i.cw({},J);else{const Me=D(K)?ue(K):K.defaultValue;N=new i.NI({value:Me,disabled:!!K.props.disabled},{...J,initialValueIsDefault:!0})}}cn(K,N)}}setValidators(K,N=!1){!1===N&&D(K)&&K.props?.disabled&&(N=!0);let J=!1;if(K.fieldGroup?.forEach(Me=>Me&&this.setValidators(Me,N)&&(J=!0)),D(K)||!K.parent||!D(K)&&!K.fieldGroup){const{formControl:Me}=K;if(Me&&(D(K)&&Me instanceof i.NI&&(N&&Me.enabled&&(Me.disable({emitEvent:!1,onlySelf:!0}),J=!0),!N&&Me.disabled&&(Me.enable({emitEvent:!1,onlySelf:!0}),J=!0)),(null===Me.validator||null===Me.asyncValidator)&&(Me.setValidators(()=>{const zt=i.kI.compose(this.mergeValidators(K,"_validators"));return zt?zt(Me):null}),Me.setAsyncValidators(()=>{const zt=i.kI.composeAsync(this.mergeValidators(K,"_asyncValidators"));return zt?zt(Me):(0,s.of)(null)}),J=!0),J)){wt(Me,!0);let zt=Me.parent;for(let nt=1;nt1?Me._fields.filter(zt=>!zt._hide).forEach(zt=>J.push(...zt[N])):K[N]&&J.push(...K[N]),K.fieldGroup&&K.fieldGroup.filter(zt=>zt?.fieldGroup&&!D(zt)).forEach(zt=>J.push(...this.mergeValidators(zt,N))),J}}class Pt{constructor(K){this.config=K,this.formId=0}prePopulate(K){const N=K.parent;this.initRootOptions(K),this.initFieldProps(K),N&&(Object.defineProperty(K,"options",{get:()=>N.options,configurable:!0}),Object.defineProperty(K,"model",{get:()=>D(K)&&K.fieldGroup?ue(K):N.model,configurable:!0})),Object.defineProperty(K,"get",{value:J=>Ye(K,J),configurable:!0}),this.getFieldComponentInstance(K).prePopulate?.(K)}onPopulate(K){this.initFieldOptions(K),this.getFieldComponentInstance(K).onPopulate?.(K),K.fieldGroup&&K.fieldGroup.forEach((N,J)=>{N&&(Object.defineProperty(N,"parent",{get:()=>K,configurable:!0}),Object.defineProperty(N,"index",{get:()=>J,configurable:!0})),this.formId++})}postPopulate(K){this.getFieldComponentInstance(K).postPopulate?.(K)}initFieldProps(K){K.props??(K.props=K.templateOptions),Object.defineProperty(K,"templateOptions",{get:()=>K.props,set:N=>K.props=N,configurable:!0})}initRootOptions(K){if(K.parent)return;const N=K.options;K.options.formState=K.options.formState||{},N.showError||(N.showError=this.config.extras.showError),N.fieldChanges||rn(N,"fieldChanges",new j.x),N._hiddenFieldsForCheck||(N._hiddenFieldsForCheck=[]),N._markForCheck=J=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),N.detectChanges(J)},N.detectChanges=J=>{J._componentRefs&&(J.options.checkExpressions(J),st(J)),J.fieldGroup?.forEach(Me=>Me&&N.detectChanges(Me))},N.resetModel=J=>{J=Lt(J??N._initialModel),K.model&&(Object.keys(K.model).forEach(Me=>delete K.model[Me]),Object.assign(K.model,J||{})),N.build(K),K.form.reset(K.model),N.parentForm&&N.parentForm.control===K.formControl&&(N.parentForm.submitted=!1)},N.updateInitialValue=J=>N._initialModel=Lt(J??K.model),K.options.updateInitialValue()}initFieldOptions(K){if(ge(K,{id:P(`formly_${this.formId}`,K,K.index),hooks:{},modelOptions:{},validation:{messages:{}},props:K.type&&D(K)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==K.resetOnHide&&(K.resetOnHide=!0),"formly-template"!==K.type&&(K.template||K.expressions?.template||K.expressionProperties?.template)&&(K.type="formly-template"),!K.type&&K.fieldGroup&&(K.type="formly-group"),K.type&&this.config.getMergedField(K),D(K)&&!ke(K.defaultValue)&&ke(ue(K))){const N=Me=>Me.hide||Me.expressions?.hide||Me.hideExpression;let J=!K.resetOnHide||!N(K);if(!N(K)&&K.resetOnHide){let Me=K.parent;for(;Me&&!N(Me);)Me=Me.parent;J=!Me||!N(Me)}J&&Q(K,K.defaultValue)}K.wrappers=K.wrappers||[]}getFieldComponentInstance(K){const N=()=>{let J=this.config.resolveFieldTypeRef(K);const Me=K._componentRefs?.slice(-1)[0];return Me instanceof t.UuU&&Me?.componentType===J?.componentType&&(J=Me),J?.instance};return K._proxyInstance||rn(K,"_proxyInstance",new Proxy({},{get:(J,Me)=>N()?.[Me],set:(J,Me,zt)=>N()[Me]=zt})),K._proxyInstance}}function Wt(Je){return{types:[{name:"formly-group",component:Ce},{name:"formly-template",component:Zt}],extensions:[{name:"core",extension:new Pt(Je),priority:-250},{name:"field-validation",extension:new it(Je),priority:-200},{name:"field-form",extension:new Ot,priority:-150},{name:"field-expression",extension:new Xe,priority:-100}]}}let kt=(()=>{class Je{constructor(N,J=[]){J&&J.forEach(Me=>N.addConfig(Me))}static forRoot(N={}){return{ngModule:Je,providers:[{provide:Ze,multi:!0,useFactory:Wt,deps:[Bt]},{provide:Ze,useValue:N,multi:!0},Bt,Jt]}}static forChild(N={}){return{ngModule:Je,providers:[{provide:Ze,multi:!0,useFactory:Wt,deps:[Bt]},{provide:Ze,useValue:N,multi:!0},Jt]}}}return Je.\u0275fac=function(N){return new(N||Je)(t.LFG(Bt),t.LFG(Ze,8))},Je.\u0275mod=t.oAB({type:Je}),Je.\u0275inj=t.cJS({imports:[[e.ez]]}),Je})()},7248:(It,be,a)=>{a.d(be,{F:()=>S});var t=a(5879),i=a(6814),v=a(5545),d=a(6223),s=a(3599),L=a(95);function j(F,k){if(1&F&&(t.ynx(0),t.TgZ(1,"nz-form-label",4),t._uU(2),t.qZA(),t.BQk()),2&F){const U=t.oxw();t.xp6(1),t.Q6J("nzRequired",U.props.required&&!0!==U.props.hideRequiredMarker)("nzFor",U.id),t.xp6(1),t.hij(" ",U.props.label," ")}}function $(F,k){if(1&F&&t._UZ(0,"formly-validation-message",5),2&F){const U=t.oxw();t.Q6J("field",U.field)}}let I=(()=>{class F extends v.n2{get errorState(){return this.showError?"error":""}}return F.\u0275fac=function(){let k;return function(w){return(k||(k=t.n5z(F)))(w||F)}}(),F.\u0275cmp=t.Xpm({type:F,selectors:[["formly-wrapper-nz-form-field"]],features:[t.qOj],decls:7,vars:3,consts:[[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"nzRequired","nzFor"],[3,"field"]],template:function(U,w){if(1&U&&(t.TgZ(0,"nz-form-item"),t.YNc(1,j,3,3,"ng-container",0),t.TgZ(2,"nz-form-control",1),t.GkF(3,null,2),t.YNc(5,$,1,1,"ng-template",null,3,t.W1O),t.qZA()()),2&U){const M=t.MAs(6);t.xp6(1),t.Q6J("ngIf",w.props.label&&!0!==w.props.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",w.errorState)("nzErrorTip",M)}},dependencies:[s.Nx,s.iK,s.Fd,v.M2,L.SK,i.O5,L.t3],encapsulation:2}),F})(),S=(()=>{class F{}return F.\u0275fac=function(U){return new(U||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[i.ez,d.UX,s.U5,v.X0.forChild({wrappers:[{name:"form-field",component:I}]})]]}),F})()},7459:(It,be,a)=>{a.d(be,{u:()=>Ft});var t=a(5879),i=a(7248),v=a(6814),d=a(5545),s=a(6223),L=a(824),j=a(8373);function $(Mt,yt){if(1&Mt&&t._UZ(0,"input",2),2&Mt){const Ct=t.oxw();t.Q6J("formControl",Ct.formControl)("type",Ct.props.type||"text")("formlyAttributes",Ct.field)}}function I(Mt,yt){if(1&Mt&&t._UZ(0,"nz-input-number",3),2&Mt){const Ct=t.oxw();t.Q6J("formControl",Ct.formControl)("formlyAttributes",Ct.field)}}let S=(()=>{class Mt extends d.fS{}return Mt.\u0275fac=function(){let yt;return function(Lt){return(yt||(yt=t.n5z(Mt)))(Lt||Mt)}}(),Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["formly-field-nz-input"]],features:[t.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(Ct,Lt){if(1&Ct&&(t.YNc(0,$,1,3,"input",0),t.YNc(1,I,1,2,"ng-template",null,1,t.W1O)),2&Ct){const rn=t.MAs(2);t.Q6J("ngIf","number"!==Lt.props.type)("ngIfElse",rn)}},dependencies:[j._V,v.O5,L.Zp,s.Fj,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Mt})(),F=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,L.o7,j.Zf,i.F,d.X0.forChild({types:[{name:"input",component:S,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),Mt})(),k=(()=>{class Mt extends d.fS{}return Mt.\u0275fac=function(){let yt;return function(Lt){return(yt||(yt=t.n5z(Mt)))(Lt||Mt)}}(),Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["formly-field-nz-textarea"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(Ct,Lt){1&Ct&&t._UZ(0,"textarea",0),2&Ct&&t.Q6J("formControl",Lt.formControl)("formlyAttributes",Lt.field)},dependencies:[L.Zp,s.Fj,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Mt})(),U=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,L.o7,i.F,d.X0.forChild({types:[{name:"textarea",component:k,wrappers:["form-field"]}]})]]}),Mt})();var w=a(5592),M=a(5619),e=a(7398),R=a(2181),pe=a(9397);let me=(()=>{class Mt{transform(Ct,Lt){return Ct instanceof w.y?this.dispose():Ct=this.observableOf(Ct,Lt),Ct.pipe((0,e.U)(rn=>this.transformOptions(rn,Lt)))}ngOnDestroy(){this.dispose()}transformOptions(Ct,Lt){const rn=this.transformSelectProps(Lt),Sn=[],rt={};return Ct?.forEach(Ye=>{const st=this.transformOption(Ye,rn);if(st.group){const Ze=rt[st.label];void 0===Ze?rt[st.label]=Sn.push(st)-1:st.group.forEach(Bt=>Sn[Ze].group.push(Bt))}else Sn.push(st)}),Sn}transformOption(Ct,Lt){const rn=Lt.groupProp(Ct);return Array.isArray(rn)?{label:Lt.labelProp(Ct),group:rn.map(Sn=>this.transformOption(Sn,Lt))}:(Ct={label:Lt.labelProp(Ct),value:Lt.valueProp(Ct),disabled:!!Lt.disabledProp(Ct)},rn?{label:rn,group:[Ct]}:Ct)}transformSelectProps(Ct){const Lt=Ct?.props||Ct?.templateOptions||{},rn=Sn=>"function"==typeof Sn?Sn:rt=>rt[Sn];return{groupProp:rn(Lt.groupProp||"group"),labelProp:rn(Lt.labelProp||"label"),valueProp:rn(Lt.valueProp||"value"),disabledProp:rn(Lt.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(Ct,Lt){return this.dispose(),Lt&&Lt.options&&Lt.options.fieldChanges&&(this._subscription=Lt.options.fieldChanges.pipe((0,R.h)(({property:rn,type:Sn,field:rt})=>"expressionChanges"===Sn&&(0===rn.indexOf("templateOptions.options")||0===rn.indexOf("props.options"))&&rt===Lt&&Array.isArray(rt.props.options)&&!!this._options),(0,pe.b)(()=>this._options.next(Lt.props.options))).subscribe()),this._options=new M.X(Ct),this._options.asObservable()}}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275pipe=t.Yjl({name:"formlySelectOptions",type:Mt,pure:!0}),Mt})(),Z=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({}),Mt})();var A=a(7907);function V(Mt,yt){if(1&Mt&&(t.TgZ(0,"label",2),t._uU(1),t.qZA()),2&Mt){const Ct=yt.$implicit;t.Q6J("nzValue",Ct.value)("nzDisabled",Ct.disabled),t.xp6(1),t.hij(" ",Ct.label," ")}}let O=(()=>{class Mt extends d.fS{}return Mt.\u0275fac=function(){let yt;return function(Lt){return(yt||(yt=t.n5z(Mt)))(Lt||Mt)}}(),Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["formly-field-nz-radio"]],features:[t.qOj],decls:4,vars:7,consts:[[3,"formControl","ngModelChange"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(Ct,Lt){1&Ct&&(t.TgZ(0,"nz-radio-group",0),t.NdJ("ngModelChange",function(Sn){return Lt.props.change&&Lt.props.change(Lt.field,Sn)}),t.YNc(1,V,2,3,"label",1),t.ALo(2,"async"),t.ALo(3,"formlySelectOptions"),t.qZA()),2&Ct&&(t.Q6J("formControl",Lt.formControl),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,2,t.xi3(3,4,Lt.props.options,Lt.field))))},dependencies:[A.Dg,A.Of,s.JJ,s.oH,v.sg,v.Ov,me],encapsulation:2,changeDetection:0}),Mt})(),P=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,A.aF,i.F,Z,d.X0.forChild({types:[{name:"radio",component:O,wrappers:["form-field"]}]})]]}),Mt})();var D=a(2612);let re=(()=>{class Mt extends d.fS{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return Mt.\u0275fac=function(){let yt;return function(Lt){return(yt||(yt=t.n5z(Mt)))(Lt||Mt)}}(),Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["formly-field-nz-checkbox"]],features:[t.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(Ct,Lt){1&Ct&&(t.TgZ(0,"label",0),t.NdJ("ngModelChange",function(Sn){return Lt.props.change&&Lt.props.change(Lt.field,Sn)}),t._uU(1),t.qZA()),2&Ct&&(t.Q6J("nzIndeterminate",Lt.props.indeterminate&&null==Lt.formControl.value)("formControl",Lt.formControl)("formlyAttributes",Lt.field),t.xp6(1),t.hij(" ",Lt.props.label," "))},dependencies:[D.Ie,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Mt})(),ae=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,D.Wr,i.F,d.X0.forChild({types:[{name:"checkbox",component:re,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),Mt})();var Q=a(9691);function fe(Mt,yt){if(1&Mt&&t._UZ(0,"nz-option",6),2&Mt){const Ct=yt.$implicit;t.Q6J("nzValue",Ct.value)("nzDisabled",Ct.disabled)("nzLabel",Ct.label)}}function ue(Mt,yt){if(1&Mt&&(t.TgZ(0,"nz-option-group",4),t.YNc(1,fe,1,3,"nz-option",5),t.qZA()),2&Mt){const Ct=t.oxw().$implicit;t.Q6J("nzLabel",Ct.label),t.xp6(1),t.Q6J("ngForOf",Ct.group)}}function ge(Mt,yt){if(1&Mt&&t._UZ(0,"nz-option",6),2&Mt){const Ct=t.oxw().$implicit;t.Q6J("nzValue",Ct.value)("nzDisabled",Ct.disabled)("nzLabel",Ct.label)}}function Se(Mt,yt){if(1&Mt&&(t.ynx(0),t.YNc(1,ue,2,2,"nz-option-group",2),t.YNc(2,ge,1,3,"nz-option",3),t.BQk()),2&Mt){const Ct=yt.$implicit;t.xp6(1),t.Q6J("ngIf",Ct.group),t.xp6(1),t.Q6J("ngIf",!Ct.group)}}let ke=(()=>{class Mt extends d.fS{}return Mt.\u0275fac=function(){let yt;return function(Lt){return(yt||(yt=t.n5z(Mt)))(Lt||Mt)}}(),Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["formly-field-nz-select"]],features:[t.qOj],decls:4,vars:12,consts:[[3,"nzPlaceHolder","formControl","formlyAttributes","nzMode","ngModelChange"],[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(Ct,Lt){1&Ct&&(t.TgZ(0,"nz-select",0),t.NdJ("ngModelChange",function(Sn){return Lt.props.change&&Lt.props.change(Lt.field,Sn)}),t.YNc(1,Se,3,2,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"formlySelectOptions"),t.qZA()),2&Ct&&(t.ekj("ng-dirty",Lt.showError),t.Q6J("nzPlaceHolder",Lt.props.placeholder)("formControl",Lt.formControl)("formlyAttributes",Lt.field)("nzMode",Lt.props.multiple?"multiple":"default"),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,7,t.xi3(3,9,Lt.props.options,Lt.field))))},dependencies:[Q.Vq,Q.Yy,Q.Ip,s.JJ,s.oH,d.JD,v.sg,v.O5,v.Ov,me],encapsulation:2,changeDetection:0}),Mt})(),Rt=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,Q.LV,i.F,Z,d.X0.forChild({types:[{name:"select",component:ke,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),Mt})(),Ft=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=t.oAB({type:Mt}),Mt.\u0275inj=t.cJS({imports:[[i.F,F,U,P,ae,Rt]]}),Mt})()},1823:(It,be,a)=>{a.d(be,{B:()=>s});const t=()=>Object.create(null),{forEach:i,slice:v}=Array.prototype,{hasOwnProperty:d}=Object.prototype;class s{constructor($=!0,I=t){this.weakness=$,this.makeData=I}lookup(...$){return this.lookupArray($)}lookupArray($){let I=this;return i.call($,S=>I=I.getChildTrie(S)),d.call(I,"data")?I.data:I.data=this.makeData(v.call($))}peek(...$){return this.peekArray($)}peekArray($){let I=this;for(let S=0,F=$.length;I&&S{a.d(be,{BV:()=>hr,zu:()=>lo,_M:()=>qo,VG:()=>Ko,mm:()=>ji,AE:()=>_i,Ps:()=>jn});var t=a(7691),i=a(5879),v=a(5592),d=a(1954),L=a(2631);const $=new class j extends L.v{}(class s extends d.o{constructor(oe,Oe){super(oe,Oe),this.scheduler=oe,this.work=Oe}schedule(oe,Oe=0){return Oe>0?super.schedule(oe,Oe):(this.delay=Oe,this.state=oe,this.scheduler.flush(this),this)}execute(oe,Oe){return Oe>0||this.closed?super.execute(oe,Oe):this._execute(oe,Oe)}requestAsyncId(oe,Oe,Ge=0){return null!=Ge&&Ge>0||null==Ge&&this.delay>0?super.requestAsyncId(oe,Oe,Ge):(oe.flush(this),0)}});var S=a(4850),F=a(9666),k=(()=>((k=k||{})[k.loading=1]="loading",k[k.setVariables=2]="setVariables",k[k.fetchMore=3]="fetchMore",k[k.refetch=4]="refetch",k[k.poll=6]="poll",k[k.ready=7]="ready",k[k.error=8]="error",k))();function U(Ue){return!!Ue&&Ue<7}var w=a(655),M=a(3555),e=a(8632),R=e.i.execute,me=a(8016),Z=a(2954),A=a(7619),V=function(Ue,oe){var Oe;try{Oe=JSON.stringify(Ue)}catch(bt){var Ge=__DEV__?new M.ej("Network request failed. ".concat(oe," is not serializable: ").concat(bt.message)):new M.ej(24);throw Ge.parseError=bt,Ge}return Oe},P=a(2794);function Rt(Ue){var oe={next:function(){return Ue.read()}};return P.DN&&(oe[Symbol.asyncIterator]=function(){return this}),oe}function Ft(Ue){var oe=Ue;if(function D(Ue){return!!Ue.body}(Ue)&&(oe=Ue.body),function ae(Ue){return!(!P.DN||!Ue[Symbol.asyncIterator])}(oe))return function ge(Ue){var oe,Oe=Ue[Symbol.asyncIterator]();return(oe={next:function(){return Oe.next()}})[Symbol.asyncIterator]=function(){return this},oe}(oe);if(function re(Ue){return!!Ue.getReader}(oe))return Rt(oe.getReader());if(function Q(Ue){return!!Ue.stream}(oe))return Rt(oe.stream().getReader());if(function fe(Ue){return!!Ue.arrayBuffer}(oe))return function ke(Ue){var oe=!1,Oe={next:function(){return oe?Promise.resolve({value:void 0,done:!0}):(oe=!0,new Promise(function(Ge,bt){Ue.then(function(Ht){Ge({value:Ht,done:!1})}).catch(bt)}))}};return P.DN&&(Oe[Symbol.asyncIterator]=function(){return this}),Oe}(oe.arrayBuffer());if(function ue(Ue){return!!Ue.pipe}(oe))return function Se(Ue){var oe=null,Oe=null,Ge=!1,bt=[],Ht=[];function nn(bn){if(!Oe){if(Ht.length){var dn=Ht.shift();if(Array.isArray(dn)&&dn[0])return dn[0]({value:bn,done:!1})}bt.push(bn)}}function fn(bn){Oe=bn,Ht.slice().forEach(function(xn){xn[1](bn)}),!oe||oe()}function en(){Ge=!0,Ht.slice().forEach(function(dn){dn[0]({value:void 0,done:!0})}),!oe||oe()}oe=function(){oe=null,Ue.removeListener("data",nn),Ue.removeListener("error",fn),Ue.removeListener("end",en),Ue.removeListener("finish",en),Ue.removeListener("close",en)},Ue.on("data",nn),Ue.on("error",fn),Ue.on("end",en),Ue.on("finish",en),Ue.on("close",en);var Nn={next:function(){return function vn(){return new Promise(function(bn,dn){return Oe?dn(Oe):bt.length?bn({value:bt.shift(),done:!1}):Ge?bn({value:void 0,done:!0}):void Ht.push([bn,dn])})}()}};return P.DN&&(Nn[Symbol.asyncIterator]=function(){return this}),Nn}(oe);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Mt=function(Ue,oe,Oe){var Ge=new Error(Oe);throw Ge.name="ServerError",Ge.response=Ue,Ge.statusCode=Ue.status,Ge.result=oe,Ge},yt=a(1352),Ct=Symbol(),rt=function(Ue){function oe(Oe){var Ge=Oe.graphQLErrors,bt=Oe.protocolErrors,Ht=Oe.clientErrors,nn=Oe.networkError,fn=Oe.errorMessage,en=Oe.extraInfo,vn=Ue.call(this,fn)||this;return vn.name="ApolloError",vn.graphQLErrors=Ge||[],vn.protocolErrors=bt||[],vn.clientErrors=Ht||[],vn.networkError=nn||null,vn.message=fn||function(Ue){var oe=(0,w.ev)((0,w.ev)((0,w.ev)([],Ue.graphQLErrors,!0),Ue.clientErrors,!0),Ue.protocolErrors,!0);return Ue.networkError&&oe.push(Ue.networkError),oe.map(function(Oe){return(0,yt.s)(Oe)&&Oe.message||"Error message not found."}).join("\n")}(vn),vn.extraInfo=en,vn.__proto__=oe.prototype,vn}return(0,w.ZT)(oe,Ue),oe}(Error),Ye=a(6001),st=a(6630);function Ze(Ue){return"incremental"in Ue}function _n(Ue){return(0,yt.s)(Ue)&&"payload"in Ue}function On(Ue,oe){var Oe=Ue,Ge=new st.w0;return Ze(oe)&&(0,Ye.O)(oe.incremental)&&oe.incremental.forEach(function(bt){for(var Ht=bt.data,nn=bt.path,fn=nn.length-1;fn>=0;--fn){var en=nn[fn],Nn=isNaN(+en)?{}:[];Nn[en]=Ht,Ht=Nn}Oe=Ge.merge(Oe,Ht)}),Oe}var cn=Object.prototype.hasOwnProperty;function Ve(Ue){var oe={};return Ue.split("\n").forEach(function(Oe){var Ge=Oe.indexOf(":");if(Ge>-1){var bt=Oe.slice(0,Ge).trim().toLowerCase(),Ht=Oe.slice(Ge+1).trim();oe[bt]=Ht}}),oe}function Be(Ue,oe){Ue.status>=300&&Mt(Ue,function(){try{return JSON.parse(oe)}catch{return oe}}(),"Response not successful: Received status code ".concat(Ue.status));try{return JSON.parse(oe)}catch(bt){var Ge=bt;throw Ge.name="ServerParseError",Ge.response=Ue,Ge.statusCode=Ue.status,Ge.bodyText=oe,Ge}}function He(Ue,oe){var Oe,Ge;"AbortError"!==Ue.name&&(Ue.result&&Ue.result.errors&&Ue.result.data&&(null===(Oe=oe.next)||void 0===Oe||Oe.call(oe,Ue.result)),null===(Ge=oe.error)||void 0===Ge||Ge.call(oe,Ue))}var ie=a(86),ct={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Zt=function(Ue,oe){return oe(Ue)};function Pt(Ue){return new A.y(function(oe){oe.error(Ue)})}var Wt=a(8725),kt=(0,M.wY)(function(){return fetch}),Je=function(Ue){void 0===Ue&&(Ue={});var oe=Ue.uri,Oe=void 0===oe?"/graphql":oe,Ge=Ue.fetch,bt=Ue.print,Ht=void 0===bt?Zt:bt,nn=Ue.includeExtensions,fn=Ue.preserveHeaderCase,en=Ue.useGETForQueries,vn=Ue.includeUnusedVariables,Nn=void 0!==vn&&vn,bn=(0,w._T)(Ue,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(Ue){if(!Ue&&typeof fetch>"u")throw __DEV__?new M.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 M.ej(23)}(Ge||kt);var dn={http:{includeExtensions:nn,preserveHeaderCase:fn},options:bn.fetchOptions,credentials:bn.credentials,headers:bn.headers};return new e.i(function(xn){var Wn=function(Ue,oe){return Ue.getContext().uri||("function"==typeof oe?oe(Ue):oe||"/graphql")}(xn,Oe),In=xn.getContext(),Hn={};if(In.clientAwareness){var Gn=In.clientAwareness,Zn=Gn.name,to=Gn.version;Zn&&(Hn["apollographql-client-name"]=Zn),to&&(Hn["apollographql-client-version"]=to)}var Co,yo=(0,w.pi)((0,w.pi)({},Hn),In.headers),Jn=function at(Ue,oe){for(var Oe=[],Ge=2;Ge"u")return{controller:!1,signal:!1};var Ue=new AbortController;return{controller:Ue,signal:Ue.signal}}();(Co=fi.controller)&&(No.signal=fi.signal)}var Le,ii="OperationDefinition"===(Le=(0,Wt.p$)(xn.query)).kind&&"subscription"===Le.operation,mi=(0,Z.FS)(["defer"],xn.query);if(en&&!xn.query.definitions.some(function(Le){return"OperationDefinition"===Le.kind&&"mutation"===Le.operation})&&(No.method="GET"),mi||ii){No.headers=No.headers||{};var ir="multipart/mixed;";ii&&mi&&__DEV__&&M.kG.warn("Multipart-subscriptions do not support @defer"),ii?ir+="boundary=graphql;subscriptionSpec=1.0,application/json":mi&&(ir+="deferSpec=20220824,application/json"),No.headers.accept=ir}if("GET"===No.method){var Ii=function Ot(Ue,oe){var Oe=[],Ge=function(bn,dn){Oe.push("".concat(bn,"=").concat(encodeURIComponent(dn)))};if("query"in oe&&Ge("query",oe.query),oe.operationName&&Ge("operationName",oe.operationName),oe.variables){var bt=void 0;try{bt=V(oe.variables,"Variables map")}catch(bn){return{parseError:bn}}Ge("variables",bt)}if(oe.extensions){var Ht=void 0;try{Ht=V(oe.extensions,"Extensions map")}catch(bn){return{parseError:bn}}Ge("extensions",Ht)}var nn="",fn=Ue,en=Ue.indexOf("#");-1!==en&&(nn=Ue.substr(en),fn=Ue.substr(0,en));var vn=-1===fn.indexOf("?")?"?":"&";return{newURI:fn+vn+Oe.join("&")+nn}}(Wn,To),Ji=Ii.newURI,di=Ii.parseError;if(di)return Pt(di);Wn=Ji}else try{No.body=V(To,"Payload")}catch(Le){return Pt(Le)}return new A.y(function(Le){return(Ge||(0,M.wY)(function(){return fetch})||kt)(Wn,No).then(function(W){var Re;xn.setContext({response:W});var jt=null===(Re=W.headers)||void 0===Re?void 0:Re.get("content-type");return null!==jt&&/^multipart\/mixed/i.test(jt)?function wt(Ue,oe){var Oe,Ge,bt,Ht,nn;return(0,w.mG)(this,void 0,void 0,function(){var fn,en,vn,Nn,bn,dn,xn,Wn,In,Hn,Gn,Zn,to,yo,_o,Jn,No,To,Go,Co,fi,yi,Io;return(0,w.Jh)(this,function(ko){switch(ko.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");fn=new TextDecoder("utf-8"),en=null===(Oe=Ue.headers)||void 0===Oe?void 0:Oe.get("content-type"),vn="boundary=",Nn=en?.includes(vn)?en?.substring(en?.indexOf(vn)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",bn="\r\n--".concat(Nn),dn="",xn=Ft(Ue),Wn=!0,ko.label=1;case 1:return Wn?[4,xn.next()]:[3,3];case 2:for(In=ko.sent(),Gn=In.done,Zn="string"==typeof(Hn=In.value)?Hn:fn.decode(Hn),to=dn.length-bn.length+1,Wn=!Gn,yo=(dn+=Zn).indexOf(bn,to);yo>-1;){if(_o=void 0,yi=[dn.slice(0,yo),dn.slice(yo+bn.length)],dn=yi[1],Jn=(_o=yi[0]).indexOf("\r\n\r\n"),No=Ve(_o.slice(0,Jn)),(To=No["content-type"])&&-1===To.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Go=_o.slice(Jn))try{Co=Be(Ue,Go),Object.keys(Co).length>1||"data"in Co||"incremental"in Co||"errors"in Co||"payload"in Co?_n(Co)?(fi={},"payload"in Co&&(fi=(0,w.pi)({},Co.payload)),"errors"in Co&&(fi=(0,w.pi)((0,w.pi)({},fi),{extensions:(0,w.pi)((0,w.pi)({},"extensions"in fi?fi.extensions:null),(Io={},Io[Ct]=Co.errors,Io))})),null===(Ge=oe.next)||void 0===Ge||Ge.call(oe,fi)):null===(bt=oe.next)||void 0===bt||bt.call(oe,Co):1===Object.keys(Co).length&&"hasNext"in Co&&!Co.hasNext&&(null===(Ht=oe.complete)||void 0===Ht||Ht.call(oe))}catch(Ki){He(Ki,oe)}yo=dn.indexOf(bn)}return[3,1];case 3:return null===(nn=oe.complete)||void 0===nn||nn.call(oe),[2]}})})}(W,Le):function je(Ue,oe,Oe){(function Ne(Ue){return function(oe){return oe.text().then(function(Oe){return Be(oe,Oe)}).then(function(Oe){return oe.status>=300&&Mt(oe,Oe,"Response not successful: Received status code ".concat(oe.status)),!Array.isArray(Oe)&&!cn.call(Oe,"data")&&!cn.call(Oe,"errors")&&Mt(oe,Oe,"Server response was missing for query '".concat(Array.isArray(Ue)?Ue.map(function(Ge){return Ge.operationName}):Ue.operationName,"'.")),Oe})}})(oe)(Ue).then(function(Ge){var bt,Ht;null===(bt=Oe.next)||void 0===bt||bt.call(Oe,Ge),null===(Ht=Oe.complete)||void 0===Ht||Ht.call(Oe)}).catch(function(Ge){return He(Ge,Oe)})}(W,xn,Le)}).catch(function(W){return He(W,Le)}),function(){Co&&Co.abort()}})})},K=function(Ue){function oe(Oe){void 0===Oe&&(Oe={});var Ge=Ue.call(this,Je(Oe).request)||this;return Ge.options=Oe,Ge}return(0,w.ZT)(oe,Ue),oe}(e.i),N=a(692),J=a(1789);function Me(Ue,oe,Oe){return new A.y(function(Ge){var bt=Ge.next,Ht=Ge.error,nn=Ge.complete,fn=0,en=!1,vn={then:function(xn){return new Promise(function(Wn){return Wn(xn())})}};function Nn(xn,Wn){return xn?function(In){++fn;var Hn=function(){return xn(In)};vn=vn.then(Hn,Hn).then(function(Gn){--fn,bt&&bt.call(Ge,Gn),en&&bn.complete()},function(Gn){throw--fn,Gn}).catch(function(Gn){Ht&&Ht.call(Ge,Gn)})}:function(In){return Wn&&Wn.call(Ge,In)}}var bn={next:Nn(oe,bt),error:Nn(Oe,Ht),complete:function(){en=!0,fn||nn&&nn.call(Ge)}},dn=Ue.subscribe(bn);return function(){return dn.unsubscribe()}})}function zt(Ue){var oe=nt(Ue);return(0,Ye.O)(oe)}function nt(Ue){var oe=(0,Ye.O)(Ue.errors)?Ue.errors.slice(0):[];return Ze(Ue)&&(0,Ye.O)(Ue.incremental)&&Ue.incremental.forEach(function(Oe){Oe.errors&&oe.push.apply(oe,Oe.errors)}),oe}var We=a(6140),ot=a(9173),Vt=a(6726);function St(Ue,oe,Oe){var Ge=[];Ue.forEach(function(bt){return bt[oe]&&Ge.push(bt)}),Ge.forEach(function(bt){return bt[oe](Oe)})}function mn(Ue){function oe(Oe){Object.defineProperty(Ue,Oe,{value:A.y})}return P.aS&&Symbol.species&&oe(Symbol.species),oe("@@species"),Ue}function Qe(Ue){return Ue&&"function"==typeof Ue.then}var dt=function(Ue){function oe(Oe){var Ge=Ue.call(this,function(bt){return Ge.addObserver(bt),function(){return Ge.removeObserver(bt)}})||this;return Ge.observers=new Set,Ge.promise=new Promise(function(bt,Ht){Ge.resolve=bt,Ge.reject=Ht}),Ge.handlers={next:function(bt){null!==Ge.sub&&(Ge.latest=["next",bt],Ge.notify("next",bt),St(Ge.observers,"next",bt))},error:function(bt){var Ht=Ge.sub;null!==Ht&&(Ht&&setTimeout(function(){return Ht.unsubscribe()}),Ge.sub=null,Ge.latest=["error",bt],Ge.reject(bt),Ge.notify("error",bt),St(Ge.observers,"error",bt))},complete:function(){var Ht=Ge.sub,nn=Ge.sources;if(null!==Ht){var en=(void 0===nn?[]:nn).shift();en?Qe(en)?en.then(function(vn){return Ge.sub=vn.subscribe(Ge.handlers)}):Ge.sub=en.subscribe(Ge.handlers):(Ht&&setTimeout(function(){return Ht.unsubscribe()}),Ge.sub=null,Ge.latest&&"next"===Ge.latest[0]?Ge.resolve(Ge.latest[1]):Ge.resolve(),Ge.notify("complete"),St(Ge.observers,"complete"))}}},Ge.nextResultListeners=new Set,Ge.cancel=function(bt){Ge.reject(bt),Ge.sources=[],Ge.handlers.complete()},Ge.promise.catch(function(bt){}),"function"==typeof Oe&&(Oe=[new A.y(Oe)]),Qe(Oe)?Oe.then(function(bt){return Ge.start(bt)},Ge.handlers.error):Ge.start(Oe),Ge}return(0,w.ZT)(oe,Ue),oe.prototype.start=function(Oe){void 0===this.sub&&(this.sources=Array.from(Oe),this.handlers.complete())},oe.prototype.deliverLastMessage=function(Oe){if(this.latest){var Ge=this.latest[0],bt=Oe[Ge];bt&&bt.call(Oe,this.latest[1]),null===this.sub&&"next"===Ge&&Oe.complete&&Oe.complete()}},oe.prototype.addObserver=function(Oe){this.observers.has(Oe)||(this.deliverLastMessage(Oe),this.observers.add(Oe))},oe.prototype.removeObserver=function(Oe){this.observers.delete(Oe)&&this.observers.size<1&&this.handlers.complete()},oe.prototype.notify=function(Oe,Ge){var bt=this.nextResultListeners;bt.size&&(this.nextResultListeners=new Set,bt.forEach(function(Ht){return Ht(Oe,Ge)}))},oe.prototype.beforeNext=function(Oe){var Ge=!1;this.nextResultListeners.add(function(bt,Ht){Ge||(Ge=!0,Oe(bt,Ht))})},oe}(A.y);mn(dt);var se=a(5078),ze=a(9990),mt=Object.assign,Pe=Object.hasOwnProperty,lt=function(Ue){function oe(Oe){var Ge=Oe.queryManager,bt=Oe.queryInfo,Ht=Oe.options,nn=Ue.call(this,function(Hn){try{var Gn=Hn._subscription._observer;Gn&&!Gn.error&&(Gn.error=un)}catch{}var Zn=!nn.observers.size;nn.observers.add(Hn);var to=nn.last;return to&&to.error?Hn.error&&Hn.error(to.error):to&&to.result&&Hn.next&&Hn.next(to.result),Zn&&nn.reobserve().catch(function(){}),function(){nn.observers.delete(Hn)&&!nn.observers.size&&nn.tearDownQuery()}})||this;nn.observers=new Set,nn.subscriptions=new Set,nn.queryInfo=bt,nn.queryManager=Ge,nn.waitForOwnResult=pt(Ht.fetchPolicy),nn.isTornDown=!1;var fn=Ge.defaultOptions.watchQuery,vn=(void 0===fn?{}:fn).fetchPolicy,Nn=void 0===vn?"cache-first":vn,bn=Ht.fetchPolicy,dn=void 0===bn?Nn:bn,xn=Ht.initialFetchPolicy,Wn=void 0===xn?"standby"===dn?Nn:dn:xn;nn.options=(0,w.pi)((0,w.pi)({},Ht),{initialFetchPolicy:Wn,fetchPolicy:dn}),nn.queryId=bt.queryId||Ge.generateQueryId();var In=(0,Wt.$H)(nn.query);return nn.queryName=In&&In.name&&In.name.value,nn}return(0,w.ZT)(oe,Ue),Object.defineProperty(oe.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),oe.prototype.result=function(){var Oe=this;return new Promise(function(Ge,bt){var Ht={next:function(fn){Ge(fn),Oe.observers.delete(Ht),Oe.observers.size||Oe.queryManager.removeQuery(Oe.queryId),setTimeout(function(){nn.unsubscribe()},0)},error:bt},nn=Oe.subscribe(Ht)})},oe.prototype.getCurrentResult=function(Oe){void 0===Oe&&(Oe=!0);var Ge=this.getLastResult(!0),bt=this.queryInfo.networkStatus||Ge&&Ge.networkStatus||k.ready,Ht=(0,w.pi)((0,w.pi)({},Ge),{loading:U(bt),networkStatus:bt}),nn=this.options.fetchPolicy,fn=void 0===nn?"cache-first":nn;if(!pt(fn)&&!this.queryManager.transform(this.options.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var en=this.queryInfo.getDiff();(en.complete||this.options.returnPartialData)&&(Ht.data=en.result),(0,N.D)(Ht.data,{})&&(Ht.data=void 0),en.complete?(delete Ht.partial,en.complete&&Ht.networkStatus===k.loading&&("cache-first"===fn||"cache-only"===fn)&&(Ht.networkStatus=k.ready,Ht.loading=!1)):Ht.partial=!0,__DEV__&&!en.complete&&!this.options.partialRefetch&&!Ht.loading&&!Ht.data&&!Ht.error&&Nt(en.missing)}return Oe&&this.updateLastResult(Ht),Ht},oe.prototype.isDifferentFromLastResult=function(Oe,Ge){return!this.last||!(0,N.D)(this.last.result,Oe)||Ge&&!(0,N.D)(this.last.variables,Ge)},oe.prototype.getLast=function(Oe,Ge){var bt=this.last;if(bt&&bt[Oe]&&(!Ge||(0,N.D)(bt.variables,this.variables)))return bt[Oe]},oe.prototype.getLastResult=function(Oe){return this.getLast("result",Oe)},oe.prototype.getLastError=function(Oe){return this.getLast("error",Oe)},oe.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},oe.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},oe.prototype.refetch=function(Oe){var Ge,bt={pollInterval:0},Ht=this.options.fetchPolicy;if(bt.fetchPolicy="cache-and-network"===Ht?Ht:"no-cache"===Ht?"no-cache":"network-only",__DEV__&&Oe&&Pe.call(Oe,"variables")){var nn=(0,Wt.iW)(this.query),fn=nn.variableDefinitions;(!fn||!fn.some(function(en){return"variables"===en.variable.name.value}))&&__DEV__&&M.kG.warn("Called refetch(".concat(JSON.stringify(Oe),") for query ").concat((null===(Ge=nn.name)||void 0===Ge?void 0:Ge.value)||JSON.stringify(nn),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return Oe&&!(0,N.D)(this.options.variables,Oe)&&(bt.variables=this.options.variables=(0,w.pi)((0,w.pi)({},this.options.variables),Oe)),this.queryInfo.resetLastWrite(),this.reobserve(bt,k.refetch)},oe.prototype.fetchMore=function(Oe){var Ge=this,bt=(0,w.pi)((0,w.pi)({},Oe.query?Oe:(0,w.pi)((0,w.pi)((0,w.pi)((0,w.pi)({},this.options),{query:this.query}),Oe),{variables:(0,w.pi)((0,w.pi)({},this.options.variables),Oe.variables)})),{fetchPolicy:"no-cache"}),Ht=this.queryManager.generateQueryId(),nn=this.queryInfo,fn=nn.networkStatus;nn.networkStatus=k.fetchMore,bt.notifyOnNetworkStatusChange&&this.observe();var en=new Set;return this.queryManager.fetchQuery(Ht,bt,k.fetchMore).then(function(vn){return Ge.queryManager.removeQuery(Ht),nn.networkStatus===k.fetchMore&&(nn.networkStatus=fn),Ge.queryManager.cache.batch({update:function(Nn){var bn=Oe.updateQuery;bn?Nn.updateQuery({query:Ge.query,variables:Ge.variables,returnPartialData:!0,optimistic:!1},function(dn){return bn(dn,{fetchMoreResult:vn.data,variables:bt.variables})}):Nn.writeQuery({query:bt.query,variables:bt.variables,data:vn.data})},onWatchUpdated:function(Nn){en.add(Nn.query)}}),vn}).finally(function(){en.has(Ge.query)||Yt(Ge)})},oe.prototype.subscribeToMore=function(Oe){var Ge=this,bt=this.queryManager.startGraphQLSubscription({query:Oe.document,variables:Oe.variables,context:Oe.context}).subscribe({next:function(Ht){var nn=Oe.updateQuery;nn&&Ge.updateQuery(function(fn,en){return nn(fn,{subscriptionData:Ht,variables:en.variables})})},error:function(Ht){Oe.onError?Oe.onError(Ht):__DEV__&&M.kG.error("Unhandled GraphQL subscription error",Ht)}});return this.subscriptions.add(bt),function(){Ge.subscriptions.delete(bt)&&bt.unsubscribe()}},oe.prototype.setOptions=function(Oe){return this.reobserve(Oe)},oe.prototype.setVariables=function(Oe){return(0,N.D)(this.variables,Oe)?this.observers.size?this.result():Promise.resolve():(this.options.variables=Oe,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:Oe},k.setVariables):Promise.resolve())},oe.prototype.updateQuery=function(Oe){var Ge=this.queryManager,Ht=Oe(Ge.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Ht&&(Ge.cache.writeQuery({query:this.options.query,data:Ht,variables:this.variables}),Ge.broadcastQueries())},oe.prototype.startPolling=function(Oe){this.options.pollInterval=Oe,this.updatePolling()},oe.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},oe.prototype.applyNextFetchPolicy=function(Oe,Ge){if(Ge.nextFetchPolicy){var bt=Ge.fetchPolicy,Ht=void 0===bt?"cache-first":bt,nn=Ge.initialFetchPolicy,fn=void 0===nn?Ht:nn;"standby"===Ht||(Ge.fetchPolicy="function"==typeof Ge.nextFetchPolicy?Ge.nextFetchPolicy(Ht,{reason:Oe,options:Ge,observable:this,initialFetchPolicy:fn}):"variables-changed"===Oe?fn:Ge.nextFetchPolicy)}return Ge.fetchPolicy},oe.prototype.fetch=function(Oe,Ge){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,Oe,Ge)},oe.prototype.updatePolling=function(){var Oe=this;if(!this.queryManager.ssrMode){var bt=this.pollingInfo,Ht=this.options.pollInterval;if(!Ht)return void(bt&&(clearTimeout(bt.timeout),delete this.pollingInfo));if(!bt||bt.interval!==Ht){__DEV__?(0,M.kG)(Ht,"Attempted to start a polling query without a polling interval."):(0,M.kG)(Ht,13),(bt||(this.pollingInfo={})).interval=Ht;var fn=function(){Oe.pollingInfo&&(U(Oe.queryInfo.networkStatus)?en():Oe.reobserve({fetchPolicy:"no-cache"===Oe.options.initialFetchPolicy?"no-cache":"network-only"},k.poll).then(en,en))},en=function(){var vn=Oe.pollingInfo;vn&&(clearTimeout(vn.timeout),vn.timeout=setTimeout(fn,vn.interval))};en()}}},oe.prototype.updateLastResult=function(Oe,Ge){return void 0===Ge&&(Ge=this.variables),this.last=(0,w.pi)((0,w.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?Oe:(0,se.X)(Oe),variables:Ge}),(0,Ye.O)(Oe.errors)||delete this.last.error,this.last},oe.prototype.reobserveAsConcast=function(Oe,Ge){var bt=this;this.isTornDown=!1;var Ht=Ge===k.refetch||Ge===k.fetchMore||Ge===k.poll,nn=this.options.variables,fn=this.options.fetchPolicy,en=(0,ze.o)(this.options,Oe||{}),vn=Ht?en:mt(this.options,en);Ht||(this.updatePolling(),Oe&&Oe.variables&&!(0,N.D)(Oe.variables,nn)&&"standby"!==vn.fetchPolicy&&vn.fetchPolicy===fn&&(this.applyNextFetchPolicy("variables-changed",vn),void 0===Ge&&(Ge=k.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=pt(vn.fetchPolicy));var Nn=function(){bt.concast===xn&&(bt.waitForOwnResult=!1)},bn=vn.variables&&(0,w.pi)({},vn.variables),dn=this.fetch(vn,Ge),xn=dn.concast,In={next:function(Hn){Nn(),bt.reportResult(Hn,bn)},error:function(Hn){Nn(),bt.reportError(Hn,bn)}};return!Ht&&dn.fromLink&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=xn,this.observer=In),xn.addObserver(In),xn},oe.prototype.reobserve=function(Oe,Ge){return this.reobserveAsConcast(Oe,Ge).promise},oe.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},oe.prototype.reportResult=function(Oe,Ge){var bt=this.getLastError();(bt||this.isDifferentFromLastResult(Oe,Ge))&&((bt||!Oe.partial||this.options.returnPartialData)&&this.updateLastResult(Oe,Ge),St(this.observers,"next",Oe))},oe.prototype.reportError=function(Oe,Ge){var bt=(0,w.pi)((0,w.pi)({},this.getLastResult()),{error:Oe,errors:Oe.graphQLErrors,networkStatus:k.error,loading:!1});this.updateLastResult(bt,Ge),St(this.observers,"error",this.last.error=Oe)},oe.prototype.hasObservers=function(){return this.observers.size>0},oe.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(Oe){return Oe.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},oe}(A.y);function Yt(Ue){var oe=Ue.options,Oe=oe.fetchPolicy,Ge=oe.nextFetchPolicy;return"cache-and-network"===Oe||"network-only"===Oe?Ue.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=Ge,"function"==typeof Ge?Ge.apply(this,arguments):Oe}}):Ue.reobserve()}function un(Ue){__DEV__&&M.kG.error("Unhandled error",Ue.message,Ue.stack)}function Nt(Ue){__DEV__&&Ue&&__DEV__&&M.kG.debug("Missing cache result fields: ".concat(JSON.stringify(Ue)),Ue)}function pt(Ue){return"network-only"===Ue||"no-cache"===Ue||"standby"===Ue}mn(lt);var gt=a(5560);function Te(Ue){return Ue.kind===gt.h.FIELD||Ue.kind===gt.h.FRAGMENT_SPREAD||Ue.kind===gt.h.INLINE_FRAGMENT}var vo=a(7095),Xn=a(3088),Ao=function(){function Ue(oe){var Oe=oe.cache,Ge=oe.client,bt=oe.resolvers,Ht=oe.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=Oe,Ge&&(this.client=Ge),bt&&this.addResolvers(bt),Ht&&this.setFragmentMatcher(Ht)}return Ue.prototype.addResolvers=function(oe){var Oe=this;this.resolvers=this.resolvers||{},Array.isArray(oe)?oe.forEach(function(Ge){Oe.resolvers=(0,st.Ee)(Oe.resolvers,Ge)}):this.resolvers=(0,st.Ee)(this.resolvers,oe)},Ue.prototype.setResolvers=function(oe){this.resolvers={},this.addResolvers(oe)},Ue.prototype.getResolvers=function(){return this.resolvers||{}},Ue.prototype.runResolvers=function(oe){var Oe=oe.document,Ge=oe.remoteResult,bt=oe.context,Ht=oe.variables,nn=oe.onlyRunForcedResolvers,fn=void 0!==nn&&nn;return(0,w.mG)(this,void 0,void 0,function(){return(0,w.Jh)(this,function(en){return Oe?[2,this.resolveDocument(Oe,Ge.data,bt,Ht,this.fragmentMatcher,fn).then(function(vn){return(0,w.pi)((0,w.pi)({},Ge),{data:vn.result})})]:[2,Ge]})})},Ue.prototype.setFragmentMatcher=function(oe){this.fragmentMatcher=oe},Ue.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},Ue.prototype.clientQuery=function(oe){return(0,Z.FS)(["client"],oe)&&this.resolvers?oe:null},Ue.prototype.serverQuery=function(oe){return(0,We.ob)(oe)},Ue.prototype.prepareContext=function(oe){var Oe=this.cache;return(0,w.pi)((0,w.pi)({},oe),{cache:Oe,getCacheKey:function(Ge){return Oe.identify(Ge)}})},Ue.prototype.addExportedVariables=function(oe,Oe,Ge){return void 0===Oe&&(Oe={}),void 0===Ge&&(Ge={}),(0,w.mG)(this,void 0,void 0,function(){return(0,w.Jh)(this,function(bt){return oe?[2,this.resolveDocument(oe,this.buildRootValueFromCache(oe,Oe)||{},this.prepareContext(Ge),Oe).then(function(Ht){return(0,w.pi)((0,w.pi)({},Oe),Ht.exportedVariables)})]:[2,(0,w.pi)({},Oe)]})})},Ue.prototype.shouldForceResolvers=function(oe){var Oe=!1;return(0,me.Vn)(oe,{Directive:{enter:function(Ge){if("client"===Ge.name.value&&Ge.arguments&&(Oe=Ge.arguments.some(function(bt){return"always"===bt.name.value&&"BooleanValue"===bt.value.kind&&!0===bt.value.value})))return me.$_}}}),Oe},Ue.prototype.buildRootValueFromCache=function(oe,Oe){return this.cache.diff({query:(0,We.aL)(oe),variables:Oe,returnPartialData:!0,optimistic:!1}).result},Ue.prototype.resolveDocument=function(oe,Oe,Ge,bt,Ht,nn){return void 0===Ge&&(Ge={}),void 0===bt&&(bt={}),void 0===Ht&&(Ht=function(){return!0}),void 0===nn&&(nn=!1),(0,w.mG)(this,void 0,void 0,function(){var fn,en,vn,Nn,bn,dn,xn,Wn,In,Hn;return(0,w.Jh)(this,function(Zn){return fn=(0,Wt.p$)(oe),en=(0,Wt.kU)(oe),vn=(0,vo.F)(en),Nn=this.collectSelectionsToResolve(fn,vn),dn=(bn=fn.operation)?bn.charAt(0).toUpperCase()+bn.slice(1):"Query",Wn=(xn=this).cache,In=xn.client,Hn={fragmentMap:vn,context:(0,w.pi)((0,w.pi)({},Ge),{cache:Wn,client:In}),variables:bt,fragmentMatcher:Ht,defaultOperationType:dn,exportedVariables:{},selectionsToResolve:Nn,onlyRunForcedResolvers:nn},[2,this.resolveSelectionSet(fn.selectionSet,!1,Oe,Hn).then(function(to){return{result:to,exportedVariables:Hn.exportedVariables}})]})})},Ue.prototype.resolveSelectionSet=function(oe,Oe,Ge,bt){return(0,w.mG)(this,void 0,void 0,function(){var Ht,nn,fn,en,Nn=this;return(0,w.Jh)(this,function(bn){return Ht=bt.fragmentMap,nn=bt.context,fn=bt.variables,en=[Ge],[2,Promise.all(oe.selections.map(function(dn){return(0,w.mG)(Nn,void 0,void 0,function(){var xn;return(0,w.Jh)(this,function(In){return(Oe||bt.selectionsToResolve.has(dn))&&(0,Z.LZ)(dn,fn)?(0,ot.My)(dn)?[2,this.resolveField(dn,Oe,Ge,bt).then(function(Hn){var Gn;typeof Hn<"u"&&en.push(((Gn={})[(0,ot.u2)(dn)]=Hn,Gn))})]:((0,ot.Ao)(dn)?xn=dn:(xn=Ht[dn.name.value],__DEV__?(0,M.kG)(xn,"No fragment named ".concat(dn.name.value)):(0,M.kG)(xn,11)),xn&&xn.typeCondition&&bt.fragmentMatcher(Ge,xn.typeCondition.name.value,nn)?[2,this.resolveSelectionSet(xn.selectionSet,Oe,Ge,bt).then(function(Hn){en.push(Hn)})]:[2]):[2]})})})).then(function(){return(0,st.bw)(en)})]})})},Ue.prototype.resolveField=function(oe,Oe,Ge,bt){return(0,w.mG)(this,void 0,void 0,function(){var Ht,nn,fn,en,vn,Nn,bn,dn,xn,Wn=this;return(0,w.Jh)(this,function(In){return Ge?(Ht=bt.variables,nn=oe.name.value,fn=(0,ot.u2)(oe),en=nn!==fn,vn=Ge[fn]||Ge[nn],Nn=Promise.resolve(vn),(!bt.onlyRunForcedResolvers||this.shouldForceResolvers(oe))&&(bn=Ge.__typename||bt.defaultOperationType,(dn=this.resolvers&&this.resolvers[bn])&&(xn=dn[en?nn:fn])&&(Nn=Promise.resolve(Xn.ab.withValue(this.cache,xn,[Ge,(0,ot.NC)(oe,Ht),bt.context,{field:oe,fragmentMap:bt.fragmentMap}])))),[2,Nn.then(function(Hn){var Gn,Zn;if(void 0===Hn&&(Hn=vn),oe.directives&&oe.directives.forEach(function(yo){"export"===yo.name.value&&yo.arguments&&yo.arguments.forEach(function(_o){"as"===_o.name.value&&"StringValue"===_o.value.kind&&(bt.exportedVariables[_o.value.value]=Hn)})}),!oe.selectionSet||null==Hn)return Hn;var to=null!==(Zn=null===(Gn=oe.directives)||void 0===Gn?void 0:Gn.some(function(yo){return"client"===yo.name.value}))&&void 0!==Zn&&Zn;return Array.isArray(Hn)?Wn.resolveSubSelectedArray(oe,Oe||to,Hn,bt):oe.selectionSet?Wn.resolveSelectionSet(oe.selectionSet,Oe||to,Hn,bt):void 0})]):[2,null]})})},Ue.prototype.resolveSubSelectedArray=function(oe,Oe,Ge,bt){var Ht=this;return Promise.all(Ge.map(function(nn){return null===nn?null:Array.isArray(nn)?Ht.resolveSubSelectedArray(oe,Oe,nn,bt):oe.selectionSet?Ht.resolveSelectionSet(oe.selectionSet,Oe,nn,bt):void 0}))},Ue.prototype.collectSelectionsToResolve=function(oe,Oe){var Ge=function(nn){return!Array.isArray(nn)},bt=this.selectionsToResolveCache;return function Ht(nn){if(!bt.has(nn)){var fn=new Set;bt.set(nn,fn),(0,me.Vn)(nn,{Directive:function(en,vn,Nn,bn,dn){"client"===en.name.value&&dn.forEach(function(xn){Ge(xn)&&Te(xn)&&fn.add(xn)})},FragmentSpread:function(en,vn,Nn,bn,dn){var xn=Oe[en.name.value];__DEV__?(0,M.kG)(xn,"No fragment named ".concat(en.name.value)):(0,M.kG)(xn,12);var Wn=Ht(xn);Wn.size>0&&(dn.forEach(function(In){Ge(In)&&Te(In)&&fn.add(In)}),fn.add(en),Wn.forEach(function(In){fn.add(In)}))}})}return bt.get(nn)}(oe)},Ue}(),jo=new(P.mr?WeakMap:Map);function ei(Ue,oe){var Oe=Ue[oe];"function"==typeof Oe&&(Ue[oe]=function(){return jo.set(Ue,(jo.get(Ue)+1)%1e15),Oe.apply(this,arguments)})}function bo(Ue){Ue.notifyTimeout&&(clearTimeout(Ue.notifyTimeout),Ue.notifyTimeout=void 0)}var eo=function(){function Ue(oe,Oe){void 0===Oe&&(Oe=oe.generateQueryId()),this.queryId=Oe,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var Ge=this.cache=oe.cache;jo.has(Ge)||(jo.set(Ge,0),ei(Ge,"evict"),ei(Ge,"modify"),ei(Ge,"reset"))}return Ue.prototype.init=function(oe){var Oe=oe.networkStatus||k.loading;return this.variables&&this.networkStatus!==k.loading&&!(0,N.D)(this.variables,oe.variables)&&(Oe=k.setVariables),(0,N.D)(oe.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:oe.document,variables:oe.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:Oe}),oe.observableQuery&&this.setObservableQuery(oe.observableQuery),oe.lastRequestId&&(this.lastRequestId=oe.lastRequestId),this},Ue.prototype.reset=function(){bo(this),this.dirty=!1},Ue.prototype.getDiff=function(oe){void 0===oe&&(oe=this.variables);var Oe=this.getDiffOptions(oe);if(this.lastDiff&&(0,N.D)(Oe,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=oe);var Ge=this.observableQuery;if(Ge&&"no-cache"===Ge.options.fetchPolicy)return{complete:!1};var bt=this.cache.diff(Oe);return this.updateLastDiff(bt,Oe),bt},Ue.prototype.updateLastDiff=function(oe,Oe){this.lastDiff=oe?{diff:oe,options:Oe||this.getDiffOptions()}:void 0},Ue.prototype.getDiffOptions=function(oe){var Oe;return void 0===oe&&(oe=this.variables),{query:this.document,variables:oe,returnPartialData:!0,optimistic:!0,canonizeResults:null===(Oe=this.observableQuery)||void 0===Oe?void 0:Oe.options.canonizeResults}},Ue.prototype.setDiff=function(oe){var Oe=this,Ge=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(oe),!this.dirty&&!(0,N.D)(Ge&&Ge.result,oe&&oe.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return Oe.notify()},0)))},Ue.prototype.setObservableQuery=function(oe){var Oe=this;oe!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=oe,oe?(oe.queryInfo=this,this.listeners.add(this.oqListener=function(){Oe.getDiff().fromOptimisticTransaction?oe.observe():Yt(oe)})):delete this.oqListener)},Ue.prototype.notify=function(){var oe=this;bo(this),this.shouldNotify()&&this.listeners.forEach(function(Oe){return Oe(oe)}),this.dirty=!1},Ue.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(U(this.networkStatus)&&this.observableQuery){var oe=this.observableQuery.options.fetchPolicy;if("cache-only"!==oe&&"cache-and-network"!==oe)return!1}return!0},Ue.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=Ue.prototype.cancel,this.subscriptions.forEach(function(Oe){return Oe.unsubscribe()});var oe=this.observableQuery;oe&&oe.stopPolling()}},Ue.prototype.cancel=function(){},Ue.prototype.updateWatch=function(oe){var Oe=this;void 0===oe&&(oe=this.variables);var Ge=this.observableQuery;if(!Ge||"no-cache"!==Ge.options.fetchPolicy){var bt=(0,w.pi)((0,w.pi)({},this.getDiffOptions(oe)),{watcher:this,callback:function(Ht){return Oe.setDiff(Ht)}});(!this.lastWatch||!(0,N.D)(bt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=bt))}},Ue.prototype.resetLastWrite=function(){this.lastWrite=void 0},Ue.prototype.shouldWrite=function(oe,Oe){var Ge=this.lastWrite;return!(Ge&&Ge.dmCount===jo.get(this.cache)&&(0,N.D)(Oe,Ge.variables)&&(0,N.D)(oe.data,Ge.result.data))},Ue.prototype.markResult=function(oe,Oe,Ge,bt){var Ht=this,nn=new st.w0,fn=(0,Ye.O)(oe.errors)?oe.errors.slice(0):[];if(this.reset(),"incremental"in oe&&(0,Ye.O)(oe.incremental)){var en=On(this.getDiff().result,oe);oe.data=en}else if("hasNext"in oe&&oe.hasNext){var vn=this.getDiff();oe.data=nn.merge(vn.result,oe.data)}this.graphQLErrors=fn,"no-cache"===Ge.fetchPolicy?this.updateLastDiff({result:oe.data,complete:!0},this.getDiffOptions(Ge.variables)):0!==bt&&(hi(oe,Ge.errorPolicy)?this.cache.performTransaction(function(Nn){if(Ht.shouldWrite(oe,Ge.variables))Nn.writeQuery({query:Oe,data:oe.data,variables:Ge.variables,overwrite:1===bt}),Ht.lastWrite={result:oe,variables:Ge.variables,dmCount:jo.get(Ht.cache)};else if(Ht.lastDiff&&Ht.lastDiff.diff.complete)return void(oe.data=Ht.lastDiff.diff.result);var bn=Ht.getDiffOptions(Ge.variables),dn=Nn.diff(bn);Ht.stopped||Ht.updateWatch(Ge.variables),Ht.updateLastDiff(dn,bn),dn.complete&&(oe.data=dn.result)}):this.lastWrite=void 0)},Ue.prototype.markReady=function(){return this.networkError=null,this.networkStatus=k.ready},Ue.prototype.markError=function(oe){return this.networkStatus=k.error,this.lastWrite=void 0,this.reset(),oe.graphQLErrors&&(this.graphQLErrors=oe.graphQLErrors),oe.networkError&&(this.networkError=oe.networkError),oe},Ue}();function hi(Ue,oe){void 0===oe&&(oe="none");var Oe="ignore"===oe||"all"===oe,Ge=!zt(Ue);return!Ge&&Oe&&Ue.data&&(Ge=!0),Ge}var si=Object.prototype.hasOwnProperty,Fo=function(){function Ue(oe){var Oe=oe.cache,Ge=oe.link,bt=oe.defaultOptions,Ht=oe.queryDeduplication,nn=void 0!==Ht&&Ht,fn=oe.onBroadcast,en=oe.ssrMode,vn=void 0!==en&&en,Nn=oe.clientAwareness,bn=void 0===Nn?{}:Nn,dn=oe.localState,xn=oe.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(P.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=Oe,this.link=Ge,this.defaultOptions=bt||Object.create(null),this.queryDeduplication=nn,this.clientAwareness=bn,this.localState=dn||new Ao({cache:Oe}),this.ssrMode=vn,this.assumeImmutableResults=!!xn,(this.onBroadcast=fn)&&(this.mutationStore=Object.create(null))}return Ue.prototype.stop=function(){var oe=this;this.queries.forEach(function(Oe,Ge){oe.stopQueryNoBroadcast(Ge)}),this.cancelPendingFetches(__DEV__?new M.ej("QueryManager stopped while query was in flight"):new M.ej(14))},Ue.prototype.cancelPendingFetches=function(oe){this.fetchCancelFns.forEach(function(Oe){return Oe(oe)}),this.fetchCancelFns.clear()},Ue.prototype.mutate=function(oe){var Oe,Ge,bt=oe.mutation,Ht=oe.variables,nn=oe.optimisticResponse,fn=oe.updateQueries,en=oe.refetchQueries,vn=void 0===en?[]:en,Nn=oe.awaitRefetchQueries,bn=void 0!==Nn&&Nn,dn=oe.update,xn=oe.onQueryUpdated,Wn=oe.fetchPolicy,In=void 0===Wn?(null===(Oe=this.defaultOptions.mutate)||void 0===Oe?void 0:Oe.fetchPolicy)||"network-only":Wn,Hn=oe.errorPolicy,Gn=void 0===Hn?(null===(Ge=this.defaultOptions.mutate)||void 0===Ge?void 0:Ge.errorPolicy)||"none":Hn,Zn=oe.keepRootFields,to=oe.context;return(0,w.mG)(this,void 0,void 0,function(){var yo,_o,No,To,Go;return(0,w.Jh)(this,function(Co){switch(Co.label){case 0:return __DEV__?(0,M.kG)(bt,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,M.kG)(bt,15),__DEV__?(0,M.kG)("network-only"===In||"no-cache"===In,"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,M.kG)("network-only"===In||"no-cache"===In,16),yo=this.generateMutationId(),_o=this.transform(bt),No=_o.hasClientExports,bt=this.cache.transformForLink(_o.document),Ht=this.getVariables(bt,Ht),No?[4,this.localState.addExportedVariables(bt,Ht,to)]:[3,2];case 1:Ht=Co.sent(),Co.label=2;case 2:return To=this.mutationStore&&(this.mutationStore[yo]={mutation:bt,variables:Ht,loading:!0,error:null}),nn&&this.markMutationOptimistic(nn,{mutationId:yo,document:bt,variables:Ht,fetchPolicy:In,errorPolicy:Gn,context:to,updateQueries:fn,update:dn,keepRootFields:Zn}),this.broadcastQueries(),Go=this,[2,new Promise(function(fi,yi){return Me(Go.getObservableFromLink(bt,(0,w.pi)((0,w.pi)({},to),{optimisticResponse:nn}),Ht,!1),function(Io){if(zt(Io)&&"none"===Gn)throw new rt({graphQLErrors:nt(Io)});To&&(To.loading=!1,To.error=null);var ko=(0,w.pi)({},Io);return"function"==typeof vn&&(vn=vn(ko)),"ignore"===Gn&&zt(ko)&&delete ko.errors,Go.markMutationResult({mutationId:yo,result:ko,document:bt,variables:Ht,fetchPolicy:In,errorPolicy:Gn,context:to,update:dn,updateQueries:fn,awaitRefetchQueries:bn,refetchQueries:vn,removeOptimistic:nn?yo:void 0,onQueryUpdated:xn,keepRootFields:Zn})}).subscribe({next:function(Io){Go.broadcastQueries(),(!("hasNext"in Io)||!1===Io.hasNext)&&fi(Io)},error:function(Io){To&&(To.loading=!1,To.error=Io),nn&&Go.cache.removeOptimistic(yo),Go.broadcastQueries(),yi(Io instanceof rt?Io:new rt({networkError:Io}))}})})]}})})},Ue.prototype.markMutationResult=function(oe,Oe){var Ge=this;void 0===Oe&&(Oe=this.cache);var bt=oe.result,Ht=[],nn="no-cache"===oe.fetchPolicy;if(!nn&&hi(bt,oe.errorPolicy)){if(Ze(bt)||Ht.push({result:bt.data,dataId:"ROOT_MUTATION",query:oe.document,variables:oe.variables}),Ze(bt)&&(0,Ye.O)(bt.incremental)){var fn=Oe.diff({id:"ROOT_MUTATION",query:this.transform(oe.document).asQuery,variables:oe.variables,optimistic:!1,returnPartialData:!0}),en=void 0;fn.result&&(en=On(fn.result,bt)),typeof en<"u"&&(bt.data=en,Ht.push({result:en,dataId:"ROOT_MUTATION",query:oe.document,variables:oe.variables}))}var vn=oe.updateQueries;vn&&this.queries.forEach(function(bn,dn){var xn=bn.observableQuery,Wn=xn&&xn.queryName;if(Wn&&si.call(vn,Wn)){var In=vn[Wn],Hn=Ge.queries.get(dn),Gn=Hn.document,Zn=Hn.variables,to=Oe.diff({query:Gn,variables:Zn,returnPartialData:!0,optimistic:!1}),yo=to.result;if(to.complete&&yo){var Jn=In(yo,{mutationResult:bt,queryName:Gn&&(0,Wt.rY)(Gn)||void 0,queryVariables:Zn});Jn&&Ht.push({result:Jn,dataId:"ROOT_QUERY",query:Gn,variables:Zn})}}})}if(Ht.length>0||oe.refetchQueries||oe.update||oe.onQueryUpdated||oe.removeOptimistic){var Nn=[];if(this.refetchQueries({updateCache:function(bn){nn||Ht.forEach(function(In){return bn.write(In)});var dn=oe.update,xn=!function Jt(Ue){return Ze(Ue)||function Bt(Ue){return"hasNext"in Ue&&"data"in Ue}(Ue)}(bt)||Ze(bt)&&!bt.hasNext;if(dn){if(!nn){var Wn=bn.diff({id:"ROOT_MUTATION",query:Ge.transform(oe.document).asQuery,variables:oe.variables,optimistic:!1,returnPartialData:!0});Wn.complete&&("incremental"in(bt=(0,w.pi)((0,w.pi)({},bt),{data:Wn.result}))&&delete bt.incremental,"hasNext"in bt&&delete bt.hasNext)}xn&&dn(bn,bt,{context:oe.context,variables:oe.variables})}!nn&&!oe.keepRootFields&&xn&&bn.modify({id:"ROOT_MUTATION",fields:function(In,Hn){return"__typename"===Hn.fieldName?In:Hn.DELETE}})},include:oe.refetchQueries,optimistic:!1,removeOptimistic:oe.removeOptimistic,onQueryUpdated:oe.onQueryUpdated||null}).forEach(function(bn){return Nn.push(bn)}),oe.awaitRefetchQueries||oe.onQueryUpdated)return Promise.all(Nn).then(function(){return bt})}return Promise.resolve(bt)},Ue.prototype.markMutationOptimistic=function(oe,Oe){var Ge=this,bt="function"==typeof oe?oe(Oe.variables):oe;return this.cache.recordOptimisticTransaction(function(Ht){try{Ge.markMutationResult((0,w.pi)((0,w.pi)({},Oe),{result:{data:bt}}),Ht)}catch(nn){__DEV__&&M.kG.error(nn)}},Oe.mutationId)},Ue.prototype.fetchQuery=function(oe,Oe,Ge){return this.fetchQueryObservable(oe,Oe,Ge).promise},Ue.prototype.getQueryStore=function(){var oe=Object.create(null);return this.queries.forEach(function(Oe,Ge){oe[Ge]={variables:Oe.variables,networkStatus:Oe.networkStatus,networkError:Oe.networkError,graphQLErrors:Oe.graphQLErrors}}),oe},Ue.prototype.resetErrors=function(oe){var Oe=this.queries.get(oe);Oe&&(Oe.networkError=void 0,Oe.graphQLErrors=[])},Ue.prototype.transform=function(oe){var Oe=this.transformCache;if(!Oe.has(oe)){var Ge=this.cache.transformDocument(oe),bt=(0,We.Fo)(Ge),Ht=this.localState.clientQuery(Ge),nn=bt&&this.localState.serverQuery(bt),fn={document:Ge,hasClientExports:(0,Z.mj)(Ge),hasForcedResolvers:this.localState.shouldForceResolvers(Ge),clientQuery:Ht,serverQuery:nn,defaultVars:(0,Wt.O4)((0,Wt.$H)(Ge)),asQuery:(0,w.pi)((0,w.pi)({},Ge),{definitions:Ge.definitions.map(function(vn){return"OperationDefinition"===vn.kind&&"query"!==vn.operation?(0,w.pi)((0,w.pi)({},vn),{operation:"query"}):vn})})},en=function(vn){vn&&!Oe.has(vn)&&Oe.set(vn,fn)};en(oe),en(Ge),en(Ht),en(nn)}return Oe.get(oe)},Ue.prototype.getVariables=function(oe,Oe){return(0,w.pi)((0,w.pi)({},this.transform(oe).defaultVars),Oe)},Ue.prototype.watchQuery=function(oe){typeof(oe=(0,w.pi)((0,w.pi)({},oe),{variables:this.getVariables(oe.query,oe.variables)})).notifyOnNetworkStatusChange>"u"&&(oe.notifyOnNetworkStatusChange=!1);var Oe=new eo(this),Ge=new lt({queryManager:this,queryInfo:Oe,options:oe});return this.queries.set(Ge.queryId,Oe),Oe.init({document:Ge.query,observableQuery:Ge,variables:Ge.variables}),Ge},Ue.prototype.query=function(oe,Oe){var Ge=this;return void 0===Oe&&(Oe=this.generateQueryId()),__DEV__?(0,M.kG)(oe.query,"query option is required. You must specify your GraphQL document in the query option."):(0,M.kG)(oe.query,17),__DEV__?(0,M.kG)("Document"===oe.query.kind,'You must wrap the query string in a "gql" tag.'):(0,M.kG)("Document"===oe.query.kind,18),__DEV__?(0,M.kG)(!oe.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,M.kG)(!oe.returnPartialData,19),__DEV__?(0,M.kG)(!oe.pollInterval,"pollInterval option only supported on watchQuery."):(0,M.kG)(!oe.pollInterval,20),this.fetchQuery(Oe,oe).finally(function(){return Ge.stopQuery(Oe)})},Ue.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},Ue.prototype.generateRequestId=function(){return this.requestIdCounter++},Ue.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},Ue.prototype.stopQueryInStore=function(oe){this.stopQueryInStoreNoBroadcast(oe),this.broadcastQueries()},Ue.prototype.stopQueryInStoreNoBroadcast=function(oe){var Oe=this.queries.get(oe);Oe&&Oe.stop()},Ue.prototype.clearStore=function(oe){return void 0===oe&&(oe={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new M.ej("Store reset while query was in flight (not completed in link chain)"):new M.ej(21)),this.queries.forEach(function(Oe){Oe.observableQuery?Oe.networkStatus=k.loading:Oe.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(oe)},Ue.prototype.getObservableQueries=function(oe){var Oe=this;void 0===oe&&(oe="active");var Ge=new Map,bt=new Map,Ht=new Set;return Array.isArray(oe)&&oe.forEach(function(nn){"string"==typeof nn?bt.set(nn,!1):(0,ot.JW)(nn)?bt.set(Oe.transform(nn).document,!1):(0,yt.s)(nn)&&nn.query&&Ht.add(nn)}),this.queries.forEach(function(nn,fn){var en=nn.observableQuery,vn=nn.document;if(en){if("all"===oe)return void Ge.set(fn,en);var Nn=en.queryName;if("standby"===en.options.fetchPolicy||"active"===oe&&!en.hasObservers())return;("active"===oe||Nn&&bt.has(Nn)||vn&&bt.has(vn))&&(Ge.set(fn,en),Nn&&bt.set(Nn,!0),vn&&bt.set(vn,!0))}}),Ht.size&&Ht.forEach(function(nn){var fn=(0,Vt.X)("legacyOneTimeQuery"),en=Oe.getQuery(fn).init({document:nn.query,variables:nn.variables}),vn=new lt({queryManager:Oe,queryInfo:en,options:(0,w.pi)((0,w.pi)({},nn),{fetchPolicy:"network-only"})});(0,M.kG)(vn.queryId===fn),en.setObservableQuery(vn),Ge.set(fn,vn)}),__DEV__&&bt.size&&bt.forEach(function(nn,fn){nn||__DEV__&&M.kG.warn("Unknown query ".concat("string"==typeof fn?"named ":"").concat(JSON.stringify(fn,null,2)," requested in refetchQueries options.include array"))}),Ge},Ue.prototype.reFetchObservableQueries=function(oe){var Oe=this;void 0===oe&&(oe=!1);var Ge=[];return this.getObservableQueries(oe?"all":"active").forEach(function(bt,Ht){var nn=bt.options.fetchPolicy;bt.resetLastResults(),(oe||"standby"!==nn&&"cache-only"!==nn)&&Ge.push(bt.refetch()),Oe.getQuery(Ht).setDiff(null)}),this.broadcastQueries(),Promise.all(Ge)},Ue.prototype.setObservableQuery=function(oe){this.getQuery(oe.queryId).setObservableQuery(oe)},Ue.prototype.startGraphQLSubscription=function(oe){var Oe=this,Ge=oe.query,bt=oe.fetchPolicy,Ht=oe.errorPolicy,nn=oe.variables,fn=oe.context,en=void 0===fn?{}:fn;Ge=this.transform(Ge).document,nn=this.getVariables(Ge,nn);var vn=function(bn){return Oe.getObservableFromLink(Ge,en,bn).map(function(dn){"no-cache"!==bt&&(hi(dn,Ht)&&Oe.cache.write({query:Ge,result:dn.data,dataId:"ROOT_SUBSCRIPTION",variables:bn}),Oe.broadcastQueries());var xn=zt(dn),Wn=function Lt(Ue){return!!Ue.extensions&&Array.isArray(Ue.extensions[Ct])}(dn);if(xn||Wn){var In={};throw xn&&(In.graphQLErrors=dn.errors),Wn&&(In.protocolErrors=dn.extensions[Ct]),new rt(In)}return dn})};if(this.transform(Ge).hasClientExports){var Nn=this.localState.addExportedVariables(Ge,nn,en).then(vn);return new A.y(function(bn){var dn=null;return Nn.then(function(xn){return dn=xn.subscribe(bn)},bn.error),function(){return dn&&dn.unsubscribe()}})}return vn(nn)},Ue.prototype.stopQuery=function(oe){this.stopQueryNoBroadcast(oe),this.broadcastQueries()},Ue.prototype.stopQueryNoBroadcast=function(oe){this.stopQueryInStoreNoBroadcast(oe),this.removeQuery(oe)},Ue.prototype.removeQuery=function(oe){this.fetchCancelFns.delete(oe),this.queries.has(oe)&&(this.getQuery(oe).stop(),this.queries.delete(oe))},Ue.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(oe){return oe.notify()})},Ue.prototype.getLocalState=function(){return this.localState},Ue.prototype.getObservableFromLink=function(oe,Oe,Ge,bt){var nn,Ht=this;void 0===bt&&(bt=null!==(nn=Oe?.queryDeduplication)&&void 0!==nn?nn:this.queryDeduplication);var fn,en=this.transform(oe).serverQuery;if(en){var Nn=this.inFlightLinkObservables,bn=this.link,dn={query:en,variables:Ge,operationName:(0,Wt.rY)(en)||void 0,context:this.prepareContext((0,w.pi)((0,w.pi)({},Oe),{forceFetch:!bt}))};if(Oe=dn.context,bt){var xn=Nn.get(en)||new Map;Nn.set(en,xn);var Wn=(0,J.B)(Ge);if(!(fn=xn.get(Wn))){var In=new dt([R(bn,dn)]);xn.set(Wn,fn=In),In.beforeNext(function(){xn.delete(Wn)&&xn.size<1&&Nn.delete(en)})}}else fn=new dt([R(bn,dn)])}else fn=new dt([A.y.of({data:{}})]),Oe=this.prepareContext(Oe);var Hn=this.transform(oe).clientQuery;return Hn&&(fn=Me(fn,function(Gn){return Ht.localState.runResolvers({document:Hn,remoteResult:Gn,context:Oe,variables:Ge})})),fn},Ue.prototype.getResultsFromLink=function(oe,Oe,Ge){var bt=oe.lastRequestId=this.generateRequestId(),Ht=this.cache.transformForLink(this.transform(oe.document).document);return Me(this.getObservableFromLink(Ht,Ge.context,Ge.variables),function(nn){var fn=nt(nn),en=fn.length>0;if(bt>=oe.lastRequestId){if(en&&"none"===Ge.errorPolicy)throw oe.markError(new rt({graphQLErrors:fn}));oe.markResult(nn,Ht,Ge,Oe),oe.markReady()}var vn={data:nn.data,loading:!1,networkStatus:k.ready};return en&&"ignore"!==Ge.errorPolicy&&(vn.errors=fn,vn.networkStatus=k.error),vn},function(nn){var fn=function rn(Ue){return Ue.hasOwnProperty("graphQLErrors")}(nn)?nn:new rt({networkError:nn});throw bt>=oe.lastRequestId&&oe.markError(fn),fn})},Ue.prototype.fetchQueryObservable=function(oe,Oe,Ge){return this.fetchConcastWithInfo(oe,Oe,Ge).concast},Ue.prototype.fetchConcastWithInfo=function(oe,Oe,Ge){var bt=this;void 0===Ge&&(Ge=k.loading);var Jn,No,Ht=this.transform(Oe.query).document,nn=this.getVariables(Ht,Oe.variables),fn=this.getQuery(oe),en=this.defaultOptions.watchQuery,vn=Oe.fetchPolicy,bn=Oe.errorPolicy,xn=Oe.returnPartialData,In=Oe.notifyOnNetworkStatusChange,Gn=Oe.context,to=Object.assign({},Oe,{query:Ht,variables:nn,fetchPolicy:void 0===vn?en&&en.fetchPolicy||"cache-first":vn,errorPolicy:void 0===bn?en&&en.errorPolicy||"none":bn,returnPartialData:void 0!==xn&&xn,notifyOnNetworkStatusChange:void 0!==In&&In,context:void 0===Gn?{}:Gn}),yo=function(Go){to.variables=Go;var Co=bt.fetchQueryByPolicy(fn,to,Ge);return"standby"!==to.fetchPolicy&&Co.sources.length>0&&fn.observableQuery&&fn.observableQuery.applyNextFetchPolicy("after-fetch",Oe),Co},_o=function(){return bt.fetchCancelFns.delete(oe)};if(this.fetchCancelFns.set(oe,function(Go){_o(),setTimeout(function(){return Jn.cancel(Go)})}),this.transform(to.query).hasClientExports)Jn=new dt(this.localState.addExportedVariables(to.query,to.variables,to.context).then(yo).then(function(Go){return Go.sources})),No=!0;else{var To=yo(to.variables);No=To.fromLink,Jn=new dt(To.sources)}return Jn.promise.then(_o,_o),{concast:Jn,fromLink:No}},Ue.prototype.refetchQueries=function(oe){var Oe=this,Ge=oe.updateCache,bt=oe.include,Ht=oe.optimistic,nn=void 0!==Ht&&Ht,fn=oe.removeOptimistic,en=void 0===fn?nn?(0,Vt.X)("refetchQueries"):void 0:fn,vn=oe.onQueryUpdated,Nn=new Map;bt&&this.getObservableQueries(bt).forEach(function(dn,xn){Nn.set(xn,{oq:dn,lastDiff:Oe.getQuery(xn).getDiff()})});var bn=new Map;return Ge&&this.cache.batch({update:Ge,optimistic:nn&&en||!1,removeOptimistic:en,onWatchUpdated:function(dn,xn,Wn){var In=dn.watcher instanceof eo&&dn.watcher.observableQuery;if(In){if(vn){Nn.delete(In.queryId);var Hn=vn(In,xn,Wn);return!0===Hn&&(Hn=In.refetch()),!1!==Hn&&bn.set(In,Hn),Hn}null!==vn&&Nn.set(In.queryId,{oq:In,lastDiff:Wn,diff:xn})}}}),Nn.size&&Nn.forEach(function(dn,xn){var Gn,Wn=dn.oq,In=dn.lastDiff,Hn=dn.diff;if(vn){if(!Hn){var Zn=Wn.queryInfo;Zn.reset(),Hn=Zn.getDiff()}Gn=vn(Wn,Hn,In)}(!vn||!0===Gn)&&(Gn=Wn.refetch()),!1!==Gn&&bn.set(Wn,Gn),xn.indexOf("legacyOneTimeQuery")>=0&&Oe.stopQueryNoBroadcast(xn)}),en&&this.cache.removeOptimistic(en),bn},Ue.prototype.fetchQueryByPolicy=function(oe,Oe,Ge){var bt=this,Ht=Oe.query,nn=Oe.variables,fn=Oe.fetchPolicy,en=Oe.refetchWritePolicy,vn=Oe.errorPolicy,Nn=Oe.returnPartialData,bn=Oe.context,dn=Oe.notifyOnNetworkStatusChange,xn=oe.networkStatus;oe.init({document:this.transform(Ht).document,variables:nn,networkStatus:Ge});var Wn=function(){return oe.getDiff(nn)},In=function(yo,_o){void 0===_o&&(_o=oe.networkStatus||k.loading);var Jn=yo.result;__DEV__&&!Nn&&!(0,N.D)(Jn,{})&&Nt(yo.missing);var No=function(To){return A.y.of((0,w.pi)({data:To,loading:U(_o),networkStatus:_o},yo.complete?null:{partial:!0}))};return Jn&&bt.transform(Ht).hasForcedResolvers?bt.localState.runResolvers({document:Ht,remoteResult:{data:Jn},context:bn,variables:nn,onlyRunForcedResolvers:!0}).then(function(To){return No(To.data||void 0)}):"none"===vn&&_o===k.refetch&&Array.isArray(yo.missing)?No(void 0):No(Jn)},Hn="no-cache"===fn?0:Ge===k.refetch&&"merge"!==en?1:2,Gn=function(){return bt.getResultsFromLink(oe,Hn,{variables:nn,context:bn,fetchPolicy:fn,errorPolicy:vn})},Zn=dn&&"number"==typeof xn&&xn!==Ge&&U(Ge);switch(fn){default:case"cache-first":return(to=Wn()).complete?{fromLink:!1,sources:[In(to,oe.markReady())]}:Nn||Zn?{fromLink:!0,sources:[In(to),Gn()]}:{fromLink:!0,sources:[Gn()]};case"cache-and-network":var to;return(to=Wn()).complete||Nn||Zn?{fromLink:!0,sources:[In(to),Gn()]}:{fromLink:!0,sources:[Gn()]};case"cache-only":return{fromLink:!1,sources:[In(Wn(),oe.markReady())]};case"network-only":return Zn?{fromLink:!0,sources:[In(Wn()),Gn()]}:{fromLink:!0,sources:[Gn()]};case"no-cache":return Zn?{fromLink:!0,sources:[In(oe.getDiff()),Gn()]}:{fromLink:!0,sources:[Gn()]};case"standby":return{fromLink:!1,sources:[]}}},Ue.prototype.getQuery=function(oe){return oe&&!this.queries.has(oe)&&this.queries.set(oe,new eo(this,oe)),this.queries.get(oe)},Ue.prototype.prepareContext=function(oe){void 0===oe&&(oe={});var Oe=this.localState.prepareContext(oe);return(0,w.pi)((0,w.pi)({},Oe),{clientAwareness:this.clientAwareness})},Ue}();function xo(Ue,oe){return(0,ze.o)(Ue,oe,oe.variables&&{variables:(0,w.pi)((0,w.pi)({},Ue&&Ue.variables),oe.variables)})}var Do=!1,Ri=function(){function Ue(oe){var Oe=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var Ge=oe.uri,nn=oe.cache,fn=oe.ssrMode,en=void 0!==fn&&fn,vn=oe.ssrForceFetchDelay,Nn=void 0===vn?0:vn,bn=oe.connectToDevTools,dn=void 0===bn?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:bn,xn=oe.queryDeduplication,Wn=void 0===xn||xn,In=oe.defaultOptions,Hn=oe.assumeImmutableResults,Gn=void 0!==Hn&&Hn,Zn=oe.resolvers,to=oe.typeDefs,yo=oe.fragmentMatcher,_o=oe.name,Jn=oe.version,No=oe.link;if(No||(No=Ge?new K({uri:Ge,credentials:oe.credentials,headers:oe.headers}):e.i.empty()),!nn)throw __DEV__?new M.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 M.ej(9);if(this.link=No,this.cache=nn,this.disableNetworkFetches=en||Nn>0,this.queryDeduplication=Wn,this.defaultOptions=In||Object.create(null),this.typeDefs=to,Nn&&setTimeout(function(){return Oe.disableNetworkFetches=!1},Nn),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),dn&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Do&&dn&&__DEV__&&(Do=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var To=window.navigator,Go=To&&To.userAgent,Co=void 0;"string"==typeof Go&&(Go.indexOf("Chrome/")>-1?Co="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Go.indexOf("Firefox/")>-1&&(Co="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),Co&&__DEV__&&M.kG.log("Download the Apollo DevTools for a better development experience: "+Co)}this.version="3.7.17",this.localState=new Ao({cache:nn,client:this,resolvers:Zn,fragmentMatcher:yo}),this.queryManager=new Fo({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:Wn,ssrMode:en,clientAwareness:{name:_o,version:Jn},localState:this.localState,assumeImmutableResults:Gn,onBroadcast:dn?function(){Oe.devToolsHookCb&&Oe.devToolsHookCb({action:{},state:{queries:Oe.queryManager.getQueryStore(),mutations:Oe.queryManager.mutationStore||{}},dataWithOptimisticResults:Oe.cache.extract(!0)})}:void 0})}return Ue.prototype.stop=function(){this.queryManager.stop()},Ue.prototype.watchQuery=function(oe){return this.defaultOptions.watchQuery&&(oe=xo(this.defaultOptions.watchQuery,oe)),this.disableNetworkFetches&&("network-only"===oe.fetchPolicy||"cache-and-network"===oe.fetchPolicy)&&(oe=(0,w.pi)((0,w.pi)({},oe),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(oe)},Ue.prototype.query=function(oe){return this.defaultOptions.query&&(oe=xo(this.defaultOptions.query,oe)),__DEV__?(0,M.kG)("cache-and-network"!==oe.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,M.kG)("cache-and-network"!==oe.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===oe.fetchPolicy&&(oe=(0,w.pi)((0,w.pi)({},oe),{fetchPolicy:"cache-first"})),this.queryManager.query(oe)},Ue.prototype.mutate=function(oe){return this.defaultOptions.mutate&&(oe=xo(this.defaultOptions.mutate,oe)),this.queryManager.mutate(oe)},Ue.prototype.subscribe=function(oe){return this.queryManager.startGraphQLSubscription(oe)},Ue.prototype.readQuery=function(oe,Oe){return void 0===Oe&&(Oe=!1),this.cache.readQuery(oe,Oe)},Ue.prototype.readFragment=function(oe,Oe){return void 0===Oe&&(Oe=!1),this.cache.readFragment(oe,Oe)},Ue.prototype.writeQuery=function(oe){var Oe=this.cache.writeQuery(oe);return!1!==oe.broadcast&&this.queryManager.broadcastQueries(),Oe},Ue.prototype.writeFragment=function(oe){var Oe=this.cache.writeFragment(oe);return!1!==oe.broadcast&&this.queryManager.broadcastQueries(),Oe},Ue.prototype.__actionHookForDevTools=function(oe){this.devToolsHookCb=oe},Ue.prototype.__requestRaw=function(oe){return R(this.link,oe)},Ue.prototype.resetStore=function(){var oe=this;return Promise.resolve().then(function(){return oe.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(oe.resetStoreCallbacks.map(function(Oe){return Oe()}))}).then(function(){return oe.reFetchObservableQueries()})},Ue.prototype.clearStore=function(){var oe=this;return Promise.resolve().then(function(){return oe.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(oe.clearStoreCallbacks.map(function(Oe){return Oe()}))})},Ue.prototype.onResetStore=function(oe){var Oe=this;return this.resetStoreCallbacks.push(oe),function(){Oe.resetStoreCallbacks=Oe.resetStoreCallbacks.filter(function(Ge){return Ge!==oe})}},Ue.prototype.onClearStore=function(oe){var Oe=this;return this.clearStoreCallbacks.push(oe),function(){Oe.clearStoreCallbacks=Oe.clearStoreCallbacks.filter(function(Ge){return Ge!==oe})}},Ue.prototype.reFetchObservableQueries=function(oe){return this.queryManager.reFetchObservableQueries(oe)},Ue.prototype.refetchQueries=function(oe){var Oe=this.queryManager.refetchQueries(oe),Ge=[],bt=[];Oe.forEach(function(nn,fn){Ge.push(fn),bt.push(nn)});var Ht=Promise.all(bt);return Ht.queries=Ge,Ht.results=bt,Ht.catch(function(nn){__DEV__&&M.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(nn))}),Ht},Ue.prototype.getObservableQueries=function(oe){return void 0===oe&&(oe="active"),this.queryManager.getObservableQueries(oe)},Ue.prototype.extract=function(oe){return this.cache.extract(oe)},Ue.prototype.restore=function(oe){return this.cache.restore(oe)},Ue.prototype.addResolvers=function(oe){this.localState.addResolvers(oe)},Ue.prototype.setResolvers=function(oe){this.localState.setResolvers(oe)},Ue.prototype.getResolvers=function(){return this.localState.getResolvers()},Ue.prototype.setLocalStateFragmentMatcher=function(oe){this.localState.setFragmentMatcher(oe)},Ue.prototype.setLink=function(oe){this.link=this.queryManager.link=oe},Ue}(),oi=a(9377),Ti=a(7398),Fn=a(7921),Mi=a(3093);function bi(Ue){return new v.y(oe=>(Ue().then(Oe=>{oe.closed||(oe.next(Oe),oe.complete())},Oe=>{oe.closed||oe.error(Oe)}),()=>oe.unsubscribe()))}class Ui{constructor(oe){(0,t.Z)(this,"zone",void 0),(0,t.Z)(this,"now",Date.now?Date.now:()=>+new Date),this.zone=oe}schedule(oe,Oe=0,Ge){return this.zone.run(()=>$.schedule(oe,Oe,Ge))}}function Pr(Ue){return Ue[S.L]=()=>Ue,Ue}function Oi(Ue,oe){return Ue.pipe((0,Mi.Q)(new Ui(oe)))}function or(Ue,oe,Oe){return Ue&&typeof Ue[oe]<"u"?Ue[oe]:Oe}class pr{constructor(oe,Oe,Ge){(0,t.Z)(this,"obsQuery",void 0),(0,t.Z)(this,"valueChanges",void 0),(0,t.Z)(this,"queryId",void 0),this.obsQuery=oe;const bt=Oi((0,F.D)(Pr(this.obsQuery)),Oe);this.valueChanges=Ge.useInitialLoading?bt.pipe(function Xi(Ue){return function(Oe){return new v.y(function(bt){const Ht=Ue.getCurrentResult(),{loading:nn,errors:fn,error:en,partial:vn,data:Nn}=Ht,{partialRefetch:bn,fetchPolicy:dn}=Ue.options,xn=fn||en;return bn&&vn&&(!Nn||0===Object.keys(Nn).length)&&"cache-only"!==dn&&!nn&&!xn&&bt.next({...Ht,loading:!0,networkStatus:k.loading}),Oe.subscribe(bt)})}}(this.obsQuery)):bt,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}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(oe){return this.obsQuery.refetch(oe)}fetchMore(oe){return this.obsQuery.fetchMore(oe)}subscribeToMore(oe){return this.obsQuery.subscribeToMore(oe)}updateQuery(oe){return this.obsQuery.updateQuery(oe)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(oe){return this.obsQuery.startPolling(oe)}setOptions(oe){return this.obsQuery.setOptions(oe)}setVariables(oe){return this.obsQuery.setVariables(oe)}}const hr=new i.OlP("APOLLO_FLAGS"),lo=new i.OlP("APOLLO_OPTIONS"),Oo=new i.OlP("APOLLO_NAMED_OPTIONS");class Po{constructor(oe,Oe,Ge){(0,t.Z)(this,"ngZone",void 0),(0,t.Z)(this,"flags",void 0),(0,t.Z)(this,"_client",void 0),(0,t.Z)(this,"useInitialLoading",void 0),(0,t.Z)(this,"useMutationLoading",void 0),this.ngZone=oe,this.flags=Oe,this._client=Ge,this.useInitialLoading=or(Oe,"useInitialLoading",!1),this.useMutationLoading=or(Oe,"useMutationLoading",!1)}watchQuery(oe){return new pr(this.ensureClient().watchQuery({...oe}),this.ngZone,{useInitialLoading:this.useInitialLoading,...oe})}query(oe){return bi(()=>this.ensureClient().query({...oe}))}mutate(oe){return function nr(Ue,oe){return oe?Ue.pipe((0,Fn.O)({loading:!0}),(0,Ti.U)(Oe=>({...Oe,loading:!!Oe.loading}))):Ue.pipe((0,Ti.U)(Oe=>({...Oe,loading:!1})))}(bi(()=>this.ensureClient().mutate({...oe})),oe.useMutationLoading??this.useMutationLoading)}subscribe(oe,Oe){const Ge=(0,F.D)(Pr(this.ensureClient().subscribe({...oe})));return Oe&&!0!==Oe.useZone?Ge:Oi(Ge,this.ngZone)}getClient(){return this.client}setClient(oe){this.client=oe}get client(){return this._client}set client(oe){if(this._client)throw new Error("Client has been already defined");this._client=oe}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let qo=(()=>{class Ue extends Po{constructor(Oe,Ge,bt,Ht){if(super(Oe,Ht),(0,t.Z)(this,"_ngZone",void 0),(0,t.Z)(this,"map",new Map),this._ngZone=Oe,Ge&&this.createDefault(Ge),bt&&"object"==typeof bt)for(let nn in bt)bt.hasOwnProperty(nn)&&this.create(bt[nn],nn)}create(Oe,Ge){Vo(Ge)?this.createDefault(Oe):this.createNamed(Ge,Oe)}default(){return this}use(Oe){return Vo(Oe)?this.default():this.map.get(Oe)}createDefault(Oe){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Ri(Oe))}createNamed(Oe,Ge){if(this.map.has(Oe))throw new Error(`Client ${Oe} has been already created`);this.map.set(Oe,new Po(this._ngZone,this.flags,new Ri(Ge)))}removeClient(Oe){Vo(Oe)?this._client=void 0:this.map.delete(Oe)}}return(0,t.Z)(Ue,"\u0275fac",function(Oe){return new(Oe||Ue)(i.LFG(i.R0b),i.LFG(lo,8),i.LFG(Oo,8),i.LFG(hr,8))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})();function Vo(Ue){return!Ue||"default"===Ue}const Zo=[qo];let Ko=(()=>{class Ue{}return(0,t.Z)(Ue,"\u0275fac",function(Oe){return new(Oe||Ue)}),(0,t.Z)(Ue,"\u0275mod",i.oAB({type:Ue})),(0,t.Z)(Ue,"\u0275inj",i.cJS({providers:Zo})),Ue})(),_i=(()=>{class Ue{constructor(Oe){(0,t.Z)(this,"apollo",void 0),(0,t.Z)(this,"document",void 0),(0,t.Z)(this,"client","default"),this.apollo=Oe}watch(Oe,Ge){return this.apollo.use(this.client).watchQuery({...Ge,variables:Oe,query:this.document})}fetch(Oe,Ge){return this.apollo.use(this.client).query({...Ge,variables:Oe,query:this.document})}}return(0,t.Z)(Ue,"\u0275fac",function(Oe){return new(Oe||Ue)(i.LFG(qo))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})(),ji=(()=>{class Ue{constructor(Oe){(0,t.Z)(this,"apollo",void 0),(0,t.Z)(this,"document",void 0),(0,t.Z)(this,"client","default"),this.apollo=Oe}mutate(Oe,Ge){return this.apollo.use(this.client).mutate({...Ge,variables:Oe,mutation:this.document})}}return(0,t.Z)(Ue,"\u0275fac",function(Oe){return new(Oe||Ue)(i.LFG(qo))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})();const jn=function Xo(Ue,...oe){return(0,oi.Ps)(Ue,...oe)}},1569:(It,be,a)=>{function t(i,v){if(!i)throw new Error(v)}a.d(be,{a:()=>t})},5746:(It,be,a)=>{a.d(be,{X:()=>v});const t=10,i=2;function v(S){return d(S,[])}function d(S,F){switch(typeof S){case"string":return JSON.stringify(S);case"function":return S.name?`[function ${S.name}]`:"[function]";case"object":return function s(S,F){if(null===S)return"null";if(F.includes(S))return"[Circular]";const k=[...F,S];if(function L(S){return"function"==typeof S.toJSON}(S)){const U=S.toJSON();if(U!==S)return"string"==typeof U?U:d(U,k)}else if(Array.isArray(S))return function $(S,F){if(0===S.length)return"[]";if(F.length>i)return"[Array]";const k=Math.min(t,S.length),U=S.length-k,w=[];for(let M=0;M1&&w.push(`... ${U} more items`),"["+w.join(", ")+"]"}(S,k);return function j(S,F){const k=Object.entries(S);return 0===k.length?"{}":F.length>i?"["+function I(S){const F=Object.prototype.toString.call(S).replace(/^\[object /,"").replace(/]$/,"");if("Object"===F&&"function"==typeof S.constructor){const k=S.constructor.name;if("string"==typeof k&&""!==k)return k}return F}(S)+"]":"{ "+k.map(([w,M])=>w+": "+d(M,F)).join(", ")+" }"}(S,k)}(S,F);default:return String(S)}}},2236:(It,be,a)=>{a.d(be,{UG:()=>s,WU:()=>i,Ye:()=>t,h8:()=>v,ku:()=>L});class t{constructor($,I,S){this.start=$.start,this.end=I.end,this.startToken=$,this.endToken=I,this.source=S}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor($,I,S,F,k,U){this.kind=$,this.start=I,this.end=S,this.line=F,this.column=k,this.value=U,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const v={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"]},d=new Set(Object.keys(v));function s(j){const $=j?.kind;return"string"==typeof $&&d.has($)}var L=(()=>((L=L||{}).QUERY="query",L.MUTATION="mutation",L.SUBSCRIPTION="subscription",L))()},7571:(It,be,a)=>{a.d(be,{LZ:()=>s,wv:()=>i});var t=a(7116);function i(L){var j;let $=Number.MAX_SAFE_INTEGER,I=null,S=-1;for(let k=0;k0===U?k:k.slice($)).slice(null!==(j=I)&&void 0!==j?j:0,S+1)}function v(L){let j=0;for(;j1&&I.slice(1).every(me=>0===me.length||(0,t.FD)(me.charCodeAt(0))),k=$.endsWith('\\"""'),U=L.endsWith('"')&&!k,w=L.endsWith("\\"),M=U||w,e=!(null!=j&&j.minimize)&&(!S||L.length>70||M||F||k);let R="";const pe=S&&(0,t.FD)(L.charCodeAt(0));return(e&&!pe||F)&&(R+="\n"),R+=$,(e||M)&&(R+="\n"),'"""'+R+'"""'}},7116:(It,be,a)=>{function t(L){return 9===L||32===L}function i(L){return L>=48&&L<=57}function v(L){return L>=97&&L<=122||L>=65&&L<=90}function d(L){return v(L)||95===L}function s(L){return v(L)||i(L)||95===L}a.d(be,{FD:()=>t,HQ:()=>s,LQ:()=>d,X1:()=>i})},5560:(It,be,a)=>{a.d(be,{h:()=>t});var t=(()=>((t=t||{}).NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t))()},86:(It,be,a)=>{a.d(be,{S:()=>j});var t=a(7571);const v=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function d(M){return s[M.charCodeAt(0)]}const s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var L=a(8016);function j(M){return(0,L.Vn)(M,I)}const I={Name:{leave:M=>M.value},Variable:{leave:M=>"$"+M.name},Document:{leave:M=>S(M.definitions,"\n\n")},OperationDefinition:{leave(M){const e=k("(",S(M.variableDefinitions,", "),")"),R=S([M.operation,S([M.name,e]),S(M.directives," ")]," ");return("query"===R?"":R+" ")+M.selectionSet}},VariableDefinition:{leave:({variable:M,type:e,defaultValue:R,directives:pe})=>M+": "+e+k(" = ",R)+k(" ",S(pe," "))},SelectionSet:{leave:({selections:M})=>F(M)},Field:{leave({alias:M,name:e,arguments:R,directives:pe,selectionSet:me}){const Z=k("",M,": ")+e;let A=Z+k("(",S(R,", "),")");return A.length>80&&(A=Z+k("(\n",U(S(R,"\n")),"\n)")),S([A,S(pe," "),me]," ")}},Argument:{leave:({name:M,value:e})=>M+": "+e},FragmentSpread:{leave:({name:M,directives:e})=>"..."+M+k(" ",S(e," "))},InlineFragment:{leave:({typeCondition:M,directives:e,selectionSet:R})=>S(["...",k("on ",M),S(e," "),R]," ")},FragmentDefinition:{leave:({name:M,typeCondition:e,variableDefinitions:R,directives:pe,selectionSet:me})=>`fragment ${M}${k("(",S(R,", "),")")} on ${e} ${k("",S(pe," ")," ")}`+me},IntValue:{leave:({value:M})=>M},FloatValue:{leave:({value:M})=>M},StringValue:{leave:({value:M,block:e})=>e?(0,t.LZ)(M):function i(M){return`"${M.replace(v,d)}"`}(M)},BooleanValue:{leave:({value:M})=>M?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:M})=>M},ListValue:{leave:({values:M})=>"["+S(M,", ")+"]"},ObjectValue:{leave:({fields:M})=>"{"+S(M,", ")+"}"},ObjectField:{leave:({name:M,value:e})=>M+": "+e},Directive:{leave:({name:M,arguments:e})=>"@"+M+k("(",S(e,", "),")")},NamedType:{leave:({name:M})=>M},ListType:{leave:({type:M})=>"["+M+"]"},NonNullType:{leave:({type:M})=>M+"!"},SchemaDefinition:{leave:({description:M,directives:e,operationTypes:R})=>k("",M,"\n")+S(["schema",S(e," "),F(R)]," ")},OperationTypeDefinition:{leave:({operation:M,type:e})=>M+": "+e},ScalarTypeDefinition:{leave:({description:M,name:e,directives:R})=>k("",M,"\n")+S(["scalar",e,S(R," ")]," ")},ObjectTypeDefinition:{leave:({description:M,name:e,interfaces:R,directives:pe,fields:me})=>k("",M,"\n")+S(["type",e,k("implements ",S(R," & ")),S(pe," "),F(me)]," ")},FieldDefinition:{leave:({description:M,name:e,arguments:R,type:pe,directives:me})=>k("",M,"\n")+e+(w(R)?k("(\n",U(S(R,"\n")),"\n)"):k("(",S(R,", "),")"))+": "+pe+k(" ",S(me," "))},InputValueDefinition:{leave:({description:M,name:e,type:R,defaultValue:pe,directives:me})=>k("",M,"\n")+S([e+": "+R,k("= ",pe),S(me," ")]," ")},InterfaceTypeDefinition:{leave:({description:M,name:e,interfaces:R,directives:pe,fields:me})=>k("",M,"\n")+S(["interface",e,k("implements ",S(R," & ")),S(pe," "),F(me)]," ")},UnionTypeDefinition:{leave:({description:M,name:e,directives:R,types:pe})=>k("",M,"\n")+S(["union",e,S(R," "),k("= ",S(pe," | "))]," ")},EnumTypeDefinition:{leave:({description:M,name:e,directives:R,values:pe})=>k("",M,"\n")+S(["enum",e,S(R," "),F(pe)]," ")},EnumValueDefinition:{leave:({description:M,name:e,directives:R})=>k("",M,"\n")+S([e,S(R," ")]," ")},InputObjectTypeDefinition:{leave:({description:M,name:e,directives:R,fields:pe})=>k("",M,"\n")+S(["input",e,S(R," "),F(pe)]," ")},DirectiveDefinition:{leave:({description:M,name:e,arguments:R,repeatable:pe,locations:me})=>k("",M,"\n")+"directive @"+e+(w(R)?k("(\n",U(S(R,"\n")),"\n)"):k("(",S(R,", "),")"))+(pe?" repeatable":"")+" on "+S(me," | ")},SchemaExtension:{leave:({directives:M,operationTypes:e})=>S(["extend schema",S(M," "),F(e)]," ")},ScalarTypeExtension:{leave:({name:M,directives:e})=>S(["extend scalar",M,S(e," ")]," ")},ObjectTypeExtension:{leave:({name:M,interfaces:e,directives:R,fields:pe})=>S(["extend type",M,k("implements ",S(e," & ")),S(R," "),F(pe)]," ")},InterfaceTypeExtension:{leave:({name:M,interfaces:e,directives:R,fields:pe})=>S(["extend interface",M,k("implements ",S(e," & ")),S(R," "),F(pe)]," ")},UnionTypeExtension:{leave:({name:M,directives:e,types:R})=>S(["extend union",M,S(e," "),k("= ",S(R," | "))]," ")},EnumTypeExtension:{leave:({name:M,directives:e,values:R})=>S(["extend enum",M,S(e," "),F(R)]," ")},InputObjectTypeExtension:{leave:({name:M,directives:e,fields:R})=>S(["extend input",M,S(e," "),F(R)]," ")}};function S(M,e=""){var R;return null!==(R=M?.filter(pe=>pe).join(e))&&void 0!==R?R:""}function F(M){return k("{\n",U(S(M,"\n")),"\n}")}function k(M,e,R=""){return null!=e&&""!==e?M+e+R:""}function U(M){return k(" ",M.replace(/\n/g,"\n "))}function w(M){var e;return null!==(e=M?.some(R=>R.includes("\n")))&&void 0!==e&&e}},9456:(It,be,a)=>{a.d(be,{H:()=>d,T:()=>s});var t=a(1569),i=a(5746);const v=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(j,$){return j instanceof $}:function(j,$){if(j instanceof $)return!0;if("object"==typeof j&&null!==j){var I;const S=$.prototype[Symbol.toStringTag];if(S===(Symbol.toStringTag in j?j[Symbol.toStringTag]:null===(I=j.constructor)||void 0===I?void 0:I.name)){const k=(0,i.X)(j);throw new Error(`Cannot use ${S} "${k}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class d{constructor(j,$="GraphQL request",I={line:1,column:1}){"string"==typeof j||(0,t.a)(!1,`Body must be a string. Received: ${(0,i.X)(j)}.`),this.body=j,this.name=$,this.locationOffset=I,this.locationOffset.line>0||(0,t.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,t.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(L){return v(L,d)}},8016:(It,be,a)=>{a.d(be,{$_:()=>s,Vn:()=>L});var t=a(1569),i=a(5746),v=a(2236),d=a(5560);const s=Object.freeze({});function L(S,F,k=v.h8){const U=new Map;for(const ae of Object.values(d.h))U.set(ae,$(F,ae));let w,Z,A,M=Array.isArray(S),e=[S],R=-1,pe=[],me=S;const V=[],O=[];do{R++;const ae=R===e.length,Q=ae&&0!==pe.length;if(ae){if(Z=0===O.length?void 0:V[V.length-1],me=A,A=O.pop(),Q)if(M){me=me.slice();let ue=0;for(const[ge,Se]of pe){const ke=ge-ue;null===Se?(me.splice(ke,1),ue++):me[ke]=Se}}else{me=Object.defineProperties({},Object.getOwnPropertyDescriptors(me));for(const[ue,ge]of pe)me[ue]=ge}R=w.index,e=w.keys,pe=w.edits,M=w.inArray,w=w.prev}else if(A){if(Z=M?R:e[R],me=A[Z],null==me)continue;V.push(Z)}let fe;if(!Array.isArray(me)){var P,D;(0,v.UG)(me)||(0,t.a)(!1,`Invalid AST Node: ${(0,i.X)(me)}.`);const ue=ae?null===(P=U.get(me.kind))||void 0===P?void 0:P.leave:null===(D=U.get(me.kind))||void 0===D?void 0:D.enter;if(fe=ue?.call(F,me,Z,A,V,O),fe===s)break;if(!1===fe){if(!ae){V.pop();continue}}else if(void 0!==fe&&(pe.push([Z,fe]),!ae)){if(!(0,v.UG)(fe)){V.pop();continue}me=fe}}var re;void 0===fe&&Q&&pe.push([Z,me]),ae?V.pop():(w={inArray:M,index:R,keys:e,edits:pe,prev:w},M=Array.isArray(me),e=M?me:null!==(re=k[me.kind])&&void 0!==re?re:[],R=-1,pe=[],A&&O.push(A),A=me)}while(void 0!==w);return 0!==pe.length?pe[pe.length-1][1]:S}function $(S,F){const k=S[F];return"object"==typeof k?k:"function"==typeof k?{enter:k,leave:void 0}:{enter:S.enter,leave:S.leave}}},3903:(It,be,a)=>{a.d(be,{L:()=>ue,r:()=>fe});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(4194),L=a(874),j=a(7754),$=a(9388),I=a(6814),S=a(551),F=a(8324);function k(ge,Se){1&ge&&i.GkF(0)}function U(ge,Se){if(1&ge&&(i.ynx(0),i.YNc(1,k,1,0,"ng-container",9),i.BQk()),2&ge){const ke=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzIcon)}}function w(ge,Se){if(1&ge&&i._UZ(0,"span",10),2&ge){const ke=i.oxw(3);i.Q6J("nzType",ke.nzIconType||ke.inferredIconType)("nzTheme",ke.iconTheme)}}function M(ge,Se){if(1&ge&&(i.TgZ(0,"div",6),i.YNc(1,U,2,1,"ng-container",7),i.YNc(2,w,1,2,"ng-template",null,8,i.W1O),i.qZA()),2&ge){const ke=i.MAs(3),Rt=i.oxw(2);i.xp6(1),i.Q6J("ngIf",Rt.nzIcon)("ngIfElse",ke)}}function e(ge,Se){if(1&ge&&(i.ynx(0),i._uU(1),i.BQk()),2&ge){const ke=i.oxw(4);i.xp6(1),i.Oqu(ke.nzMessage)}}function R(ge,Se){if(1&ge&&(i.TgZ(0,"span",14),i.YNc(1,e,2,1,"ng-container",9),i.qZA()),2&ge){const ke=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzMessage)}}function pe(ge,Se){if(1&ge&&(i.ynx(0),i._uU(1),i.BQk()),2&ge){const ke=i.oxw(4);i.xp6(1),i.Oqu(ke.nzDescription)}}function me(ge,Se){if(1&ge&&(i.TgZ(0,"span",15),i.YNc(1,pe,2,1,"ng-container",9),i.qZA()),2&ge){const ke=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzDescription)}}function Z(ge,Se){if(1&ge&&(i.TgZ(0,"div",11),i.YNc(1,R,2,1,"span",12),i.YNc(2,me,2,1,"span",13),i.qZA()),2&ge){const ke=i.oxw(2);i.xp6(1),i.Q6J("ngIf",ke.nzMessage),i.xp6(1),i.Q6J("ngIf",ke.nzDescription)}}function A(ge,Se){if(1&ge&&(i.ynx(0),i._uU(1),i.BQk()),2&ge){const ke=i.oxw(3);i.xp6(1),i.Oqu(ke.nzAction)}}function V(ge,Se){if(1&ge&&(i.TgZ(0,"div",16),i.YNc(1,A,2,1,"ng-container",9),i.qZA()),2&ge){const ke=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzAction)}}function O(ge,Se){1&ge&&i._UZ(0,"span",19)}function P(ge,Se){if(1&ge&&(i.ynx(0),i.TgZ(1,"span",20),i._uU(2),i.qZA(),i.BQk()),2&ge){const ke=i.oxw(4);i.xp6(2),i.Oqu(ke.nzCloseText)}}function D(ge,Se){if(1&ge&&(i.ynx(0),i.YNc(1,P,3,1,"ng-container",9),i.BQk()),2&ge){const ke=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzCloseText)}}function re(ge,Se){if(1&ge){const ke=i.EpF();i.TgZ(0,"button",17),i.NdJ("click",function(){i.CHM(ke);const Ft=i.oxw(2);return i.KtG(Ft.closeAlert())}),i.YNc(1,O,1,0,"ng-template",null,18,i.W1O),i.YNc(3,D,2,1,"ng-container",7),i.qZA()}if(2&ge){const ke=i.MAs(2),Rt=i.oxw(2);i.xp6(3),i.Q6J("ngIf",Rt.nzCloseText)("ngIfElse",ke)}}function ae(ge,Se){if(1&ge){const ke=i.EpF();i.TgZ(0,"div",1),i.NdJ("@slideAlertMotion.done",function(){i.CHM(ke);const Ft=i.oxw();return i.KtG(Ft.onFadeAnimationDone())}),i.YNc(1,M,4,2,"div",2),i.YNc(2,Z,3,2,"div",3),i.YNc(3,V,2,1,"div",4),i.YNc(4,re,4,2,"button",5),i.qZA()}if(2&ge){const ke=i.oxw();i.ekj("ant-alert-rtl","rtl"===ke.dir)("ant-alert-success","success"===ke.nzType)("ant-alert-info","info"===ke.nzType)("ant-alert-warning","warning"===ke.nzType)("ant-alert-error","error"===ke.nzType)("ant-alert-no-icon",!ke.nzShowIcon)("ant-alert-banner",ke.nzBanner)("ant-alert-closable",ke.nzCloseable)("ant-alert-with-description",!!ke.nzDescription),i.Q6J("@.disabled",ke.nzNoAnimation)("@slideAlertMotion",void 0),i.xp6(1),i.Q6J("ngIf",ke.nzShowIcon),i.xp6(1),i.Q6J("ngIf",ke.nzMessage||ke.nzDescription),i.xp6(1),i.Q6J("ngIf",ke.nzAction),i.xp6(1),i.Q6J("ngIf",ke.nzCloseable||ke.nzCloseText)}}const Q="alert";let fe=(()=>{class ge{constructor(ke,Rt,Ft){this.nzConfigService=ke,this.cdr=Rt,this.directionality=Ft,this._nzModuleName=Q,this.nzAction=null,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.nzIcon=null,this.nzOnClose=new i.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new v.x,this.nzConfigService.getConfigChangeEventForComponent(Q).pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(ke=>{this.dir=ke,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(ke){const{nzShowIcon:Rt,nzDescription:Ft,nzType:Mt,nzBanner:yt}=ke;if(Rt&&(this.isShowIconSet=!0),Mt)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"}Ft&&(this.iconTheme=this.nzDescription?"outline":"fill"),yt&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return ge.\u0275fac=function(ke){return new(ke||ge)(i.Y36(L.jY),i.Y36(i.sBO),i.Y36($.Is,8))},ge.\u0275cmp=i.Xpm({type:ge,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation",nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[i.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"],["class","ant-alert-icon",4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["class","ant-alert-action",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],[1,"ant-alert-icon"],[4,"ngIf","ngIfElse"],["iconDefaultTemplate",""],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[1,"ant-alert-description"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(ke,Rt){1&ke&&i.YNc(0,ae,5,24,"div",0),2&ke&&i.Q6J("ngIf",!Rt.closed)},dependencies:[I.O5,S.Ls,F.f],encapsulation:2,data:{animation:[s.Rq]},changeDetection:0}),(0,t.gn)([(0,L.oS)(),(0,j.yF)()],ge.prototype,"nzCloseable",void 0),(0,t.gn)([(0,L.oS)(),(0,j.yF)()],ge.prototype,"nzShowIcon",void 0),(0,t.gn)([(0,j.yF)()],ge.prototype,"nzBanner",void 0),(0,t.gn)([(0,j.yF)()],ge.prototype,"nzNoAnimation",void 0),ge})(),ue=(()=>{class ge{}return ge.\u0275fac=function(ke){return new(ke||ge)},ge.\u0275mod=i.oAB({type:ge}),ge.\u0275inj=i.cJS({imports:[$.vT,I.ez,S.PV,F.T]}),ge})()},5717:(It,be,a)=>{a.d(be,{ic:()=>Ft});var t=a(9388),i=a(9594),v=a(6814),d=a(5879),s=a(331),L=a(8324),j=a(824),$=a(8645),I=a(9773),S=a(9397),F=a(5177),k=a(2181),U=a(6028),w=a(8484);const ge={provide:a(6223).JU,useExisting:(0,d.Gpc)(()=>ke),multi:!0};let ke=(()=>{class Mt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(Ct,Lt,rn,Sn,rt,Ye){this.ngZone=Ct,this.elementRef=Lt,this.overlay=rn,this.viewContainerRef=Sn,this.nzInputGroupWhitSuffixOrPrefixDirective=rt,this.document=Ye,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new $.x,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,I.R)(this.destroy$)).subscribe(Ct=>{"void"===Ct.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(Ct){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(Ct)))}registerOnChange(Ct){this.onChange=Ct}registerOnTouched(Ct){this.onTouched=Ct}setDisabledState(Ct){this.elementRef.nativeElement.disabled=Ct,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(Ct){const Lt=Ct.keyCode,rn=Lt===U.LH||Lt===U.JH;Lt===U.hY&&Ct.preventDefault(),!this.panelOpen||Lt!==U.hY&&Lt!==U.Mf?this.panelOpen&&Lt===U.K5?this.nzAutocomplete.showPanel&&(Ct.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&rn&&this.nzAutocomplete.showPanel&&(Ct.stopPropagation(),Ct.preventDefault(),Lt===U.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(Ct){const Lt=Ct.target,rn=this.document;let Sn=Lt.value;"number"===Lt.type&&(Sn=""===Sn?null:parseFloat(Sn)),this.previousValue!==Sn&&(this.previousValue=Sn,this.onChange(Sn),this.canOpen()&&rn.activeElement===Ct.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,S.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,F.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(Ct=>{this.setValueAndClose(Ct)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,k.h)(Ct=>!this.elementRef.nativeElement.contains(Ct.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function Se(){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 w.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,I.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 i.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 Ct=[new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(Ct).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const Ct=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==Ct?(this.nzAutocomplete.setActiveItem(Ct),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(Ct){const Lt=Ct.nzValue;this.setTriggerValue(Ct.getLabel()),this.onChange(Lt),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(Ct){const Lt=this.nzAutocomplete.getOption(Ct),rn=Lt?Lt.getLabel():Ct;this.elementRef.nativeElement.value=rn??"",this.nzAutocomplete.nzBackfill||(this.previousValue=rn)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const Ct=this.elementRef.nativeElement;return!Ct.readOnly&&!Ct.disabled}}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(i.aV),d.Y36(d.s_b),d.Y36(j.ke,8),d.Y36(v.K0,8))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(Ct,Lt){1&Ct&&d.NdJ("focusin",function(){return Lt.handleFocus()})("blur",function(){return Lt.handleBlur()})("input",function(Sn){return Lt.handleInput(Sn)})("keydown",function(Sn){return Lt.handleKeydown(Sn)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[d._Bn([ge])]}),Mt})(),Ft=(()=>{class Mt{}return Mt.\u0275fac=function(Ct){return new(Ct||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({imports:[t.vT,v.ez,i.U8,L.T,s.g,j.o7]}),Mt})()},6928:(It,be,a)=>{a.d(be,{Dz:()=>M,Rt:()=>R});var t=a(655),i=a(5879),v=a(874),d=a(7754),s=a(2831),L=a(6814),j=a(551),$=a(9388);const I=["textEl"];function S(pe,me){if(1&pe&&i._UZ(0,"span",3),2&pe){const Z=i.oxw();i.Q6J("nzType",Z.nzIcon)}}function F(pe,me){if(1&pe){const Z=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(V){i.CHM(Z);const O=i.oxw();return i.KtG(O.imgError(V))}),i.qZA()}if(2&pe){const Z=i.oxw();i.Q6J("src",Z.nzSrc,i.LSH),i.uIk("srcset",Z.nzSrcSet)("alt",Z.nzAlt)}}function k(pe,me){if(1&pe&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&pe){const Z=i.oxw();i.xp6(2),i.Oqu(Z.nzText)}}let M=(()=>{class pe{constructor(Z,A,V,O,P){this.nzConfigService=Z,this.elementRef=A,this.cdr=V,this.platform=O,this.ngZone=P,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.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(Z){this.nzError.emit(Z),Z.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 Z=this.textEl.nativeElement,A=Z.offsetWidth,V=this.el.getBoundingClientRect().width,O=2*this.nzGap{setTimeout(()=>{this.calcStringSize()})})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return pe.\u0275fac=function(Z){return new(Z||pe)(i.Y36(v.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(s.t4),i.Y36(i.R0b))},pe.\u0275cmp=i.Xpm({type:pe,selectors:[["nz-avatar"]],viewQuery:function(Z,A){if(1&Z&&i.Gf(I,5),2&Z){let V;i.iGM(V=i.CRH())&&(A.textEl=V.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(Z,A){2&Z&&(i.Udp("width",A.customSize)("height",A.customSize)("line-height",A.customSize)("font-size",A.hasIcon&&A.customSize?A.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===A.nzSize)("ant-avatar-sm","small"===A.nzSize)("ant-avatar-square","square"===A.nzShape)("ant-avatar-circle","circle"===A.nzShape)("ant-avatar-icon",A.nzIcon)("ant-avatar-image",A.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",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string"],["textEl",""]],template:function(Z,A){1&Z&&(i.YNc(0,S,1,1,"span",0),i.YNc(1,F,1,3,"img",1),i.YNc(2,k,3,1,"span",2)),2&Z&&(i.Q6J("ngIf",A.nzIcon&&A.hasIcon),i.xp6(1),i.Q6J("ngIf",A.nzSrc&&A.hasSrc),i.xp6(1),i.Q6J("ngIf",A.nzText&&A.hasText))},dependencies:[L.O5,j.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.oS)()],pe.prototype,"nzShape",void 0),(0,t.gn)([(0,v.oS)()],pe.prototype,"nzSize",void 0),(0,t.gn)([(0,v.oS)(),(0,d.Rn)()],pe.prototype,"nzGap",void 0),pe})(),R=(()=>{class pe{}return pe.\u0275fac=function(Z){return new(Z||pe)},pe.\u0275mod=i.oAB({type:pe}),pe.\u0275inj=i.cJS({imports:[$.vT,L.ez,j.PV,s.ud]}),pe})()},3640:(It,be,a)=>{a.d(be,{F9:()=>Q,mS:()=>fe,x7:()=>ae});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(4194),L=a(874),j=a(7754),$=a(9388),I=a(331),S=a(6814),F=a(8324),k=a(7131);function U(ue,ge){if(1&ue&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&ue){const Se=ge.$implicit,ke=i.oxw(2).index,Rt=i.oxw(2);i.ekj("current",Se===Rt.countArray[ke]),i.xp6(1),i.hij(" ",Se," ")}}function w(ue,ge){if(1&ue&&(i.ynx(0),i.YNc(1,U,2,3,"p",5),i.BQk()),2&ue){const Se=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",Se.countSingleArray)}}function M(ue,ge){if(1&ue&&(i.TgZ(0,"span",3),i.YNc(1,w,2,1,"ng-container",4),i.qZA()),2&ue){const Se=ge.index,ke=i.oxw(2);i.Udp("transform","translateY("+100*-ke.countArray[Se]+"%)"),i.Q6J("nzNoAnimation",ke.noAnimation),i.xp6(1),i.Q6J("ngIf",!ke.nzDot&&void 0!==ke.countArray[Se])}}function e(ue,ge){if(1&ue&&(i.ynx(0),i.YNc(1,M,2,4,"span",2),i.BQk()),2&ue){const Se=i.oxw();i.xp6(1),i.Q6J("ngForOf",Se.maxNumberArray)}}function R(ue,ge){if(1&ue&&i._uU(0),2&ue){const Se=i.oxw();i.hij("",Se.nzOverflowCount,"+")}}function pe(ue,ge){if(1&ue&&(i.ynx(0),i._uU(1),i.BQk()),2&ue){const Se=i.oxw(2);i.xp6(1),i.Oqu(Se.nzText)}}function me(ue,ge){if(1&ue&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,pe,2,1,"ng-container",1),i.qZA(),i.BQk()),2&ue){const Se=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",Se.nzStatus||Se.presetColor,""),i.Udp("background",!Se.presetColor&&Se.nzColor),i.Q6J("ngStyle",Se.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Se.nzText)}}function Z(ue,ge){if(1&ue&&i._UZ(0,"nz-badge-sup",5),2&ue){const Se=i.oxw(2);i.Q6J("nzOffset",Se.nzOffset)("nzSize",Se.nzSize)("nzTitle",Se.nzTitle)("nzStyle",Se.nzStyle)("nzDot",Se.nzDot)("nzOverflowCount",Se.nzOverflowCount)("disableAnimation",!!(Se.nzStandalone||Se.nzStatus||Se.nzColor||null!=Se.noAnimation&&Se.noAnimation.nzNoAnimation))("nzCount",Se.nzCount)("noAnimation",!(null==Se.noAnimation||!Se.noAnimation.nzNoAnimation))}}function A(ue,ge){if(1&ue&&(i.ynx(0),i.YNc(1,Z,1,9,"nz-badge-sup",4),i.BQk()),2&ue){const Se=i.oxw();i.xp6(1),i.Q6J("ngIf",Se.showSup)}}const V=["*"];function O(ue,ge){if(1&ue&&(i.ynx(0),i.TgZ(1,"span",3),i._uU(2),i.qZA(),i.BQk()),2&ue){const Se=i.oxw();i.xp6(2),i.Oqu(Se.nzText)}}const P=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let D=(()=>{class ue{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",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(Se){const{nzOverflowCount:ke,nzCount:Rt}=Se;Rt&&"number"==typeof Rt.currentValue&&(this.count=Math.max(0,Rt.currentValue),this.countArray=this.count.toString().split("").map(Ft=>+Ft)),ke&&this.generateMaxNumberArray()}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(Se,ke){2&Se&&(i.uIk("title",null===ke.nzTitle?"":ke.nzTitle||ke.nzCount),i.d8E("@.disabled",ke.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(ke.nzStyle),i.Udp("right",ke.nzOffset&&ke.nzOffset[0]?-ke.nzOffset[0]:null,"px")("margin-top",ke.nzOffset&&ke.nzOffset[1]?ke.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!ke.nzDot)("ant-badge-count-sm","small"===ke.nzSize)("ant-badge-dot",ke.nzDot)("ant-badge-multiple-words",ke.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},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(Se,ke){if(1&Se&&(i.YNc(0,e,2,1,"ng-container",0),i.YNc(1,R,1,1,"ng-template",null,1,i.W1O)),2&Se){const Rt=i.MAs(2);i.Q6J("ngIf",ke.count<=ke.nzOverflowCount)("ngIfElse",Rt)}},dependencies:[S.sg,S.O5,I.P],encapsulation:2,data:{animation:[s.Ev]},changeDetection:0}),ue})(),ae=(()=>{class ue{constructor(Se,ke,Rt,Ft,Mt,yt){this.nzConfigService=Se,this.renderer=ke,this.cdr=Rt,this.elementRef=Ft,this.directionality=Mt,this.noAnimation=yt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new v.x,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,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(Se=>{this.dir=Se,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(Se){const{nzColor:ke,nzShowDot:Rt,nzDot:Ft,nzCount:Mt,nzShowZero:yt}=Se;ke&&(this.presetColor=this.nzColor&&-1!==P.indexOf(this.nzColor)?this.nzColor:null),(Rt||Ft||Mt||yt)&&(this.showSup=this.nzShowDot&&this.nzDot||"number"==typeof this.nzCount&&this.nzCount>0||"number"==typeof this.nzCount&&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 ue.\u0275fac=function(Se){return new(Se||ue)(i.Y36(L.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36($.Is,8),i.Y36(I.P,9))},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(Se,ke){2&Se&&i.ekj("ant-badge-status",ke.nzStatus)("ant-badge-not-a-wrapper",!!(ke.nzStandalone||ke.nzStatus||ke.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",nzSize:"nzSize"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:V,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(Se,ke){1&Se&&(i.F$t(),i.YNc(0,me,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,A,2,1,"ng-container",1)),2&Se&&(i.Q6J("ngIf",ke.nzStatus||ke.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",ke.nzCount))},dependencies:[S.O5,S.PC,F.f,D],encapsulation:2,data:{animation:[s.Ev]},changeDetection:0}),(0,t.gn)([(0,j.yF)()],ue.prototype,"nzShowZero",void 0),(0,t.gn)([(0,j.yF)()],ue.prototype,"nzShowDot",void 0),(0,t.gn)([(0,j.yF)()],ue.prototype,"nzStandalone",void 0),(0,t.gn)([(0,j.yF)()],ue.prototype,"nzDot",void 0),(0,t.gn)([(0,L.oS)()],ue.prototype,"nzOverflowCount",void 0),(0,t.gn)([(0,L.oS)()],ue.prototype,"nzColor",void 0),ue})(),Q=(()=>{class ue{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(Se){const{nzColor:ke}=Se;ke&&(this.presetColor=this.nzColor&&-1!==P.indexOf(this.nzColor)?this.nzColor:null)}}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:V,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(Se,ke){1&Se&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,O,3,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&Se&&(i.xp6(1),i.Tol(ke.presetColor&&"ant-ribbon-color-"+ke.presetColor),i.Udp("background-color",!ke.presetColor&&ke.nzColor),i.ekj("ant-ribbon-placement-end","end"===ke.nzPlacement)("ant-ribbon-placement-start","start"===ke.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",ke.nzText),i.xp6(1),i.Udp("color",!ke.presetColor&&ke.nzColor))},dependencies:[F.f],encapsulation:2,changeDetection:0}),ue})(),fe=(()=>{class ue{}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({imports:[$.vT,S.ez,k.Q8,F.T,I.g]}),ue})()},2840:(It,be,a)=>{a.d(be,{fY:()=>Z,ix:()=>me,sL:()=>A});var t=a(655),i=a(5879),v=a(8645),d=a(2438),s=a(9773),L=a(7921),j=a(2181),$=a(874),I=a(7754),S=a(551),F=a(9388),k=a(6814),U=a(855),w=a(1958);const M=["nz-button",""];function e(V,O){1&V&&i._UZ(0,"span",1)}const R=["*"];let me=(()=>{class V{insertSpan(P,D){P.forEach(re=>{if("#text"===re.nodeName){const ae=D.createElement("span"),Q=D.parentNode(re);D.insertBefore(Q,ae,re),D.appendChild(ae,re)}})}assertIconOnly(P,D){const re=Array.from(P.childNodes),ae=re.filter(ge=>{const Se=Array.from(ge.childNodes||[]);return"SPAN"===ge.nodeName&&Se.length>0&&Se.every(ke=>"svg"===ke.nodeName)}).length,Q=re.every(ge=>"#text"!==ge.nodeName);re.filter(ge=>{const Se=Array.from(ge.childNodes||[]);return!("SPAN"===ge.nodeName&&Se.length>0&&Se.every(ke=>"svg"===ke.nodeName))}).every(ge=>"SPAN"!==ge.nodeName)&&Q&&ae>=1&&D.addClass(P,"ant-btn-icon-only")}constructor(P,D,re,ae,Q,fe){this.ngZone=P,this.elementRef=D,this.cdr=re,this.renderer=ae,this.nzConfigService=Q,this.directionality=fe,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 v.x,this.loading$=new v.x,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.dir=P,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,d.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,s.R)(this.destroy$)).subscribe(P=>{(this.disabled&&"A"===P.target?.tagName||this.nzLoading)&&(P.preventDefault(),P.stopImmediatePropagation())})})}ngOnChanges(P){const{nzLoading:D}=P;D&&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,L.O)(this.nzLoading),(0,j.h)(()=>!!this.nzIconDirectiveElement),(0,s.R)(this.destroy$)).subscribe(P=>{const D=this.nzIconDirectiveElement.nativeElement;P?this.renderer.setStyle(D,"display","none"):this.renderer.removeStyle(D,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return V.\u0275fac=function(P){return new(P||V)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.Qsj),i.Y36($.jY),i.Y36(F.Is,8))},V.\u0275cmp=i.Xpm({type:V,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(P,D,re){if(1&P&&i.Suo(re,S.Ls,5,i.SBq),2&P){let ae;i.iGM(ae=i.CRH())&&(D.nzIconDirectiveElement=ae.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(P,D){2&P&&(i.uIk("tabindex",D.disabled?-1:null===D.tabIndex?null:D.tabIndex)("disabled",D.disabled||null),i.ekj("ant-btn-primary","primary"===D.nzType)("ant-btn-dashed","dashed"===D.nzType)("ant-btn-link","link"===D.nzType)("ant-btn-text","text"===D.nzType)("ant-btn-circle","circle"===D.nzShape)("ant-btn-round","round"===D.nzShape)("ant-btn-lg","large"===D.nzSize)("ant-btn-sm","small"===D.nzSize)("ant-btn-dangerous",D.nzDanger)("ant-btn-loading",D.nzLoading)("ant-btn-background-ghost",D.nzGhost)("ant-btn-block",D.nzBlock)("ant-input-search-button",D.nzSearch)("ant-btn-rtl","rtl"===D.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:[i.TTD],attrs:M,ngContentSelectors:R,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(P,D){1&P&&(i.F$t(),i.YNc(0,e,1,0,"span",0),i.Hsn(1)),2&P&&i.Q6J("ngIf",D.nzLoading)},dependencies:[k.O5,S.Ls,U.w],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,I.yF)()],V.prototype,"nzBlock",void 0),(0,t.gn)([(0,I.yF)()],V.prototype,"nzGhost",void 0),(0,t.gn)([(0,I.yF)()],V.prototype,"nzSearch",void 0),(0,t.gn)([(0,I.yF)()],V.prototype,"nzLoading",void 0),(0,t.gn)([(0,I.yF)()],V.prototype,"nzDanger",void 0),(0,t.gn)([(0,I.yF)()],V.prototype,"disabled",void 0),(0,t.gn)([(0,$.oS)()],V.prototype,"nzSize",void 0),V})(),Z=(()=>{class V{constructor(P){this.directionality=P,this.nzSize="default",this.dir="ltr",this.destroy$=new v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.dir=P})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return V.\u0275fac=function(P){return new(P||V)(i.Y36(F.Is,8))},V.\u0275cmp=i.Xpm({type:V,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(P,D){2&P&&i.ekj("ant-btn-group-lg","large"===D.nzSize)("ant-btn-group-sm","small"===D.nzSize)("ant-btn-group-rtl","rtl"===D.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:R,decls:1,vars:0,template:function(P,D){1&P&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),V})(),A=(()=>{class V{}return V.\u0275fac=function(P){return new(P||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[F.vT,k.ez,w.vG,S.PV,U.a,U.a,w.vG]}),V})()},2962:(It,be,a)=>{a.d(be,{_i:()=>Mt,bd:()=>Lt,l7:()=>rn,vh:()=>Sn});var t=a(655),i=a(5879),v=a(7754),d=a(8645),s=a(9773),L=a(874),j=a(9388),$=a(6814),I=a(8324);function S(rt,Ye){1&rt&&i.Hsn(0)}const F=["*"];function k(rt,Ye){1&rt&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&rt&&i.Q6J("ngClass",Ye.$implicit)}function U(rt,Ye){if(1&rt&&(i.TgZ(0,"div",2),i.YNc(1,k,2,1,"div",3),i.qZA()),2&rt){const st=Ye.$implicit;i.xp6(1),i.Q6J("ngForOf",st)}}function w(rt,Ye){if(1&rt&&(i.ynx(0),i._uU(1),i.BQk()),2&rt){const st=i.oxw(3);i.xp6(1),i.Oqu(st.nzTitle)}}function M(rt,Ye){if(1&rt&&(i.TgZ(0,"div",11),i.YNc(1,w,2,1,"ng-container",12),i.qZA()),2&rt){const st=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",st.nzTitle)}}function e(rt,Ye){if(1&rt&&(i.ynx(0),i._uU(1),i.BQk()),2&rt){const st=i.oxw(3);i.xp6(1),i.Oqu(st.nzExtra)}}function R(rt,Ye){if(1&rt&&(i.TgZ(0,"div",13),i.YNc(1,e,2,1,"ng-container",12),i.qZA()),2&rt){const st=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",st.nzExtra)}}function pe(rt,Ye){}function me(rt,Ye){if(1&rt&&(i.ynx(0),i.YNc(1,pe,0,0,"ng-template",14),i.BQk()),2&rt){const st=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",st.listOfNzCardTabComponent.template)}}function Z(rt,Ye){if(1&rt&&(i.TgZ(0,"div",6)(1,"div",7),i.YNc(2,M,2,1,"div",8),i.YNc(3,R,2,1,"div",9),i.qZA(),i.YNc(4,me,2,1,"ng-container",10),i.qZA()),2&rt){const st=i.oxw();i.xp6(2),i.Q6J("ngIf",st.nzTitle),i.xp6(1),i.Q6J("ngIf",st.nzExtra),i.xp6(1),i.Q6J("ngIf",st.listOfNzCardTabComponent)}}function A(rt,Ye){}function V(rt,Ye){if(1&rt&&(i.TgZ(0,"div",15),i.YNc(1,A,0,0,"ng-template",14),i.qZA()),2&rt){const st=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",st.nzCover)}}function O(rt,Ye){1&rt&&(i.ynx(0),i.Hsn(1),i.BQk())}function P(rt,Ye){1&rt&&i._UZ(0,"nz-card-loading")}function D(rt,Ye){}function re(rt,Ye){if(1&rt&&(i.TgZ(0,"li")(1,"span"),i.YNc(2,D,0,0,"ng-template",14),i.qZA()()),2&rt){const st=Ye.$implicit,Ze=i.oxw(2);i.Udp("width",100/Ze.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",st)}}function ae(rt,Ye){if(1&rt&&(i.TgZ(0,"ul",16),i.YNc(1,re,3,3,"li",17),i.qZA()),2&rt){const st=i.oxw();i.xp6(1),i.Q6J("ngForOf",st.nzActions)}}function Q(rt,Ye){}function fe(rt,Ye){if(1&rt&&(i.TgZ(0,"div",2),i.YNc(1,Q,0,0,"ng-template",3),i.qZA()),2&rt){const st=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",st.nzAvatar)}}function ue(rt,Ye){if(1&rt&&(i.ynx(0),i._uU(1),i.BQk()),2&rt){const st=i.oxw(3);i.xp6(1),i.Oqu(st.nzTitle)}}function ge(rt,Ye){if(1&rt&&(i.TgZ(0,"div",7),i.YNc(1,ue,2,1,"ng-container",8),i.qZA()),2&rt){const st=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",st.nzTitle)}}function Se(rt,Ye){if(1&rt&&(i.ynx(0),i._uU(1),i.BQk()),2&rt){const st=i.oxw(3);i.xp6(1),i.Oqu(st.nzDescription)}}function ke(rt,Ye){if(1&rt&&(i.TgZ(0,"div",9),i.YNc(1,Se,2,1,"ng-container",8),i.qZA()),2&rt){const st=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",st.nzDescription)}}function Rt(rt,Ye){if(1&rt&&(i.TgZ(0,"div",4),i.YNc(1,ge,2,1,"div",5),i.YNc(2,ke,2,1,"div",6),i.qZA()),2&rt){const st=i.oxw();i.xp6(1),i.Q6J("ngIf",st.nzTitle),i.xp6(1),i.Q6J("ngIf",st.nzDescription)}}let Ft=(()=>{class rt{constructor(){this.nzHoverable=!0}}return rt.\u0275fac=function(st){return new(st||rt)},rt.\u0275dir=i.lG2({type:rt,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(st,Ze){2&st&&i.ekj("ant-card-hoverable",Ze.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,t.gn)([(0,v.yF)()],rt.prototype,"nzHoverable",void 0),rt})(),Mt=(()=>{class rt{}return rt.\u0275fac=function(st){return new(st||rt)},rt.\u0275cmp=i.Xpm({type:rt,selectors:[["nz-card-tab"]],viewQuery:function(st,Ze){if(1&st&&i.Gf(i.Rgc,7),2&st){let Bt;i.iGM(Bt=i.CRH())&&(Ze.template=Bt.first)}},exportAs:["nzCardTab"],ngContentSelectors:F,decls:1,vars:0,template:function(st,Ze){1&st&&(i.F$t(),i.YNc(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),rt})(),yt=(()=>{class rt{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 rt.\u0275fac=function(st){return new(st||rt)},rt.\u0275cmp=i.Xpm({type:rt,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(st,Ze){1&st&&(i.TgZ(0,"div",0),i.YNc(1,U,2,1,"div",1),i.qZA()),2&st&&(i.xp6(1),i.Q6J("ngForOf",Ze.listOfLoading))},dependencies:[$.mk,$.sg],encapsulation:2,changeDetection:0}),rt})(),Lt=(()=>{class rt{constructor(st,Ze,Bt){this.nzConfigService=st,this.cdr=Ze,this.directionality=Bt,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.x,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(st=>{this.dir=st,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return rt.\u0275fac=function(st){return new(st||rt)(i.Y36(L.jY),i.Y36(i.sBO),i.Y36(j.Is,8))},rt.\u0275cmp=i.Xpm({type:rt,selectors:[["nz-card"]],contentQueries:function(st,Ze,Bt){if(1&st&&(i.Suo(Bt,Mt,5),i.Suo(Bt,Ft,4)),2&st){let Jt;i.iGM(Jt=i.CRH())&&(Ze.listOfNzCardTabComponent=Jt.first),i.iGM(Jt=i.CRH())&&(Ze.listOfNzCardGridDirective=Jt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(st,Ze){2&st&&i.ekj("ant-card-loading",Ze.nzLoading)("ant-card-bordered",!1===Ze.nzBorderless&&Ze.nzBordered)("ant-card-hoverable",Ze.nzHoverable)("ant-card-small","small"===Ze.nzSize)("ant-card-contain-grid",Ze.listOfNzCardGridDirective&&Ze.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===Ze.nzType)("ant-card-contain-tabs",!!Ze.listOfNzCardTabComponent)("ant-card-rtl","rtl"===Ze.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:F,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(st,Ze){if(1&st&&(i.F$t(),i.YNc(0,Z,5,3,"div",0),i.YNc(1,V,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,O,2,0,"ng-container",3),i.YNc(4,P,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ae,2,1,"ul",5)),2&st){const Bt=i.MAs(5);i.Q6J("ngIf",Ze.nzTitle||Ze.nzExtra||Ze.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",Ze.nzCover),i.xp6(1),i.Q6J("ngStyle",Ze.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!Ze.nzLoading)("ngIfElse",Bt),i.xp6(3),i.Q6J("ngIf",Ze.nzActions.length)}},dependencies:[$.sg,$.O5,$.tP,$.PC,I.f,yt],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],rt.prototype,"nzBordered",void 0),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],rt.prototype,"nzBorderless",void 0),(0,t.gn)([(0,v.yF)()],rt.prototype,"nzLoading",void 0),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],rt.prototype,"nzHoverable",void 0),(0,t.gn)([(0,L.oS)()],rt.prototype,"nzSize",void 0),rt})(),rn=(()=>{class rt{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return rt.\u0275fac=function(st){return new(st||rt)},rt.\u0275cmp=i.Xpm({type:rt,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(st,Ze){1&st&&(i.YNc(0,fe,2,1,"div",0),i.YNc(1,Rt,3,2,"div",1)),2&st&&(i.Q6J("ngIf",Ze.nzAvatar),i.xp6(1),i.Q6J("ngIf",Ze.nzTitle||Ze.nzDescription))},dependencies:[$.O5,$.tP,I.f],encapsulation:2,changeDetection:0}),rt})(),Sn=(()=>{class rt{}return rt.\u0275fac=function(st){return new(st||rt)},rt.\u0275mod=i.oAB({type:rt}),rt.\u0275inj=i.cJS({imports:[$.ez,I.T,j.vT]}),rt})()},8802:(It,be,a)=>{a.d(be,{D3:()=>L,y7:()=>$});var t=a(5879),i=a(2495),v=a(5592),d=a(8645);let s=(()=>{class I{create(F){return typeof ResizeObserver>"u"?null:new ResizeObserver(F)}}return I.\u0275fac=function(F){return new(F||I)},I.\u0275prov=t.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),L=(()=>{class I{constructor(F){this.nzResizeObserverFactory=F,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((F,k)=>this.cleanupObserver(k))}observe(F){const k=(0,i.fI)(F);return new v.y(U=>{const M=this.observeElement(k).subscribe(U);return()=>{M.unsubscribe(),this.unobserveElement(k)}})}observeElement(F){if(this.observedElements.has(F))this.observedElements.get(F).count++;else{const k=new d.x,U=this.nzResizeObserverFactory.create(w=>k.next(w));U&&U.observe(F),this.observedElements.set(F,{observer:U,stream:k,count:1})}return this.observedElements.get(F).stream}unobserveElement(F){this.observedElements.has(F)&&(this.observedElements.get(F).count--,this.observedElements.get(F).count||this.cleanupObserver(F))}cleanupObserver(F){if(this.observedElements.has(F)){const{observer:k,stream:U}=this.observedElements.get(F);k&&k.disconnect(),U.complete(),this.observedElements.delete(F)}}}return I.\u0275fac=function(F){return new(F||I)(t.LFG(s))},I.\u0275prov=t.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),$=(()=>{class I{}return I.\u0275fac=function(F){return new(F||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({providers:[s]}),I})()},2612:(It,be,a)=>{a.d(be,{Ie:()=>R,Wr:()=>me,ub:()=>pe});var t=a(655),i=a(5879),v=a(6223),d=a(8645),s=a(2438),L=a(9773),j=a(7754),$=a(4300),I=a(9388),S=a(883),F=a(6814);const k=["*"],U=["inputElement"],w=["nz-checkbox",""];function M(Z,A){if(1&Z){const V=i.EpF();i.TgZ(0,"label",1),i.NdJ("nzCheckedChange",function(P){const re=i.CHM(V).$implicit,ae=i.oxw();return i.KtG(ae.onCheckedChange(re,P))}),i.TgZ(1,"span"),i._uU(2),i.qZA()()}if(2&Z){const V=A.$implicit,O=i.oxw();i.Q6J("nzDisabled",V.disabled||O.nzDisabled)("nzChecked",V.checked),i.xp6(2),i.Oqu(V.label)}}let e=(()=>{class Z{constructor(){this.nzOnChange=new i.vpe,this.checkboxList=[]}addCheckbox(V){this.checkboxList.push(V)}removeCheckbox(V){this.checkboxList.splice(this.checkboxList.indexOf(V),1)}onChange(){const V=this.checkboxList.filter(O=>O.nzChecked).map(O=>O.nzValue);this.nzOnChange.emit(V)}}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:k,decls:1,vars:0,template:function(V,O){1&V&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),Z})(),R=(()=>{class Z{innerCheckedChange(V){this.nzDisabled||(this.nzChecked=V,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(V){this.nzChecked=V,this.cdr.markForCheck()}registerOnChange(V){this.onChange=V}registerOnTouched(V){this.onTouched=V}setDisabledState(V){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||V,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(V,O,P,D,re,ae,Q){this.ngZone=V,this.elementRef=O,this.nzCheckboxWrapperComponent=P,this.cdr=D,this.focusMonitor=re,this.directionality=ae,this.nzFormStatusService=Q,this.dir="ltr",this.destroy$=new d.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new i.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(V=>{V||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,L.R)(this.destroy$)).subscribe(V=>{this.dir=V,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,s.R)(this.elementRef.nativeElement,"click").pipe((0,L.R)(this.destroy$)).subscribe(V=>{V.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,s.R)(this.inputElement.nativeElement,"click").pipe((0,L.R)(this.destroy$)).subscribe(V=>V.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 Z.\u0275fac=function(V){return new(V||Z)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(e,8),i.Y36(i.sBO),i.Y36($.tE),i.Y36(I.Is,8),i.Y36(S.kH,8))},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["","nz-checkbox",""]],viewQuery:function(V,O){if(1&V&&i.Gf(U,7),2&V){let P;i.iGM(P=i.CRH())&&(O.inputElement=P.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(V,O){2&V&&i.ekj("ant-checkbox-wrapper-in-form-item",!!O.nzFormStatusService)("ant-checkbox-wrapper-checked",O.nzChecked)("ant-checkbox-rtl","rtl"===O.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[i._Bn([{provide:v.JU,useExisting:(0,i.Gpc)(()=>Z),multi:!0}])],attrs:w,ngContentSelectors:k,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(V,O){1&V&&(i.F$t(),i.TgZ(0,"span",0)(1,"input",1,2),i.NdJ("ngModelChange",function(D){return O.innerCheckedChange(D)}),i.qZA(),i._UZ(3,"span",3),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&V&&(i.ekj("ant-checkbox-checked",O.nzChecked&&!O.nzIndeterminate)("ant-checkbox-disabled",O.nzDisabled)("ant-checkbox-indeterminate",O.nzIndeterminate),i.xp6(1),i.Q6J("checked",O.nzChecked)("ngModel",O.nzChecked)("disabled",O.nzDisabled),i.uIk("autofocus",O.nzAutoFocus?"autofocus":null)("id",O.nzId))},dependencies:[v.Wl,v.JJ,v.On],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,j.yF)()],Z.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,j.yF)()],Z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,j.yF)()],Z.prototype,"nzIndeterminate",void 0),(0,t.gn)([(0,j.yF)()],Z.prototype,"nzChecked",void 0),Z})(),pe=(()=>{class Z{trackByOption(V,O){return O.value}onCheckedChange(V,O){V.checked=O,this.onChange(this.options)}constructor(V,O,P,D){this.elementRef=V,this.focusMonitor=O,this.cdr=P,this.directionality=D,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new d.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(V=>{V||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(V=>{this.dir=V,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(V){this.options=V,this.cdr.markForCheck()}registerOnChange(V){this.onChange=V}registerOnTouched(V){this.onTouched=V}setDisabledState(V){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||V,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return Z.\u0275fac=function(V){return new(V||Z)(i.Y36(i.SBq),i.Y36($.tE),i.Y36(i.sBO),i.Y36(I.Is,8))},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(V,O){2&V&&i.ekj("ant-checkbox-group-rtl","rtl"===O.dir)},inputs:{nzDisabled:"nzDisabled"},exportAs:["nzCheckboxGroup"],features:[i._Bn([{provide:v.JU,useExisting:(0,i.Gpc)(()=>Z),multi:!0}])],decls:1,vars:2,consts:[["nz-checkbox","","class","ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange",4,"ngFor","ngForOf","ngForTrackBy"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange"]],template:function(V,O){1&V&&i.YNc(0,M,3,3,"label",0),2&V&&i.Q6J("ngForOf",O.options)("ngForTrackBy",O.trackByOption)},dependencies:[F.sg,R],encapsulation:2}),(0,t.gn)([(0,j.yF)()],Z.prototype,"nzDisabled",void 0),Z})(),me=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=i.oAB({type:Z}),Z.\u0275inj=i.cJS({imports:[I.vT,F.ez,v.u5,$.rt]}),Z})()},4194:(It,be,a)=>{a.d(be,{$C:()=>w,Ev:()=>M,J_:()=>d,MC:()=>L,Rq:()=>U,c8:()=>j,mF:()=>k});var t=a(6825);let i=(()=>{class R{}return R.SLOW="0.3s",R.BASE="0.2s",R.FAST="0.1s",R})(),v=(()=>{class R{}return R.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",R.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",R.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",R.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",R.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",R.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",R.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",R.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",R.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",R.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",R.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",R.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",R.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",R.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",R})();const d=(0,t.X$)("collapseMotion",[(0,t.SB)("expanded",(0,t.oB)({height:"*"})),(0,t.SB)("collapsed",(0,t.oB)({height:0,overflow:"hidden"})),(0,t.SB)("hidden",(0,t.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.eR)("expanded => collapsed",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("expanded => hidden",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("collapsed => expanded",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("hidden => expanded",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`))]),L=((0,t.X$)("treeCollapseMotion",[(0,t.eR)("* => *",[(0,t.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.oB)({overflow:"hidden"}),(0,t.EY)(0,[(0,t.jt)(`150ms ${v.EASE_IN_OUT}`,(0,t.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.EY)(0,[(0,t.jt)(`150ms ${v.EASE_IN_OUT}`,(0,t.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.X$)("fadeMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({opacity:0}))])])),j=(0,t.X$)("helpMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"translateY(-5px)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT}`,(0,t.oB)({opacity:1,transform:"translateY(0)"}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"translateY(0)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT}`,(0,t.oB)({opacity:0,transform:"translateY(-5px)"}))])]),S=((0,t.X$)("moveUpMotion",[(0,t.eR)("* => enter",[(0,t.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.eR)("* => leave",[(0,t.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.X$)("notificationMotion",[(0,t.SB)("enterRight",(0,t.oB)({opacity:1,transform:"translateX(0)"})),(0,t.eR)("* => enterRight",[(0,t.oB)({opacity:0,transform:"translateX(5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterLeft",(0,t.oB)({opacity:1,transform:"translateX(0)"})),(0,t.eR)("* => enterLeft",[(0,t.oB)({opacity:0,transform:"translateX(-5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterTop",(0,t.oB)({opacity:1,transform:"translateY(0)"})),(0,t.eR)("* => enterTop",[(0,t.oB)({opacity:0,transform:"translateY(-5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterBottom",(0,t.oB)({opacity:1,transform:"translateY(0)"})),(0,t.eR)("* => enterBottom",[(0,t.oB)({opacity:0,transform:"translateY(5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("leave",(0,t.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.eR)("* => leave",[(0,t.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.jt)("100ms linear")])]),`${i.BASE} ${v.EASE_OUT_QUINT}`),F=`${i.BASE} ${v.EASE_IN_QUINT}`,k=(0,t.X$)("slideMotion",[(0,t.SB)("void",(0,t.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,t.SB)("enter",(0,t.oB)({opacity:1,transform:"scaleY(1)"})),(0,t.eR)("void => *",[(0,t.jt)(S)]),(0,t.eR)("* => void",[(0,t.jt)(F)])]),U=(0,t.X$)("slideAlertMotion",[(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT_CIRC}`,(0,t.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),w=(0,t.X$)("zoomBigMotion",[(0,t.eR)("void => active",[(0,t.oB)({opacity:0,transform:"scale(0.8)"}),(0,t.jt)(`${i.BASE} ${v.EASE_OUT_CIRC}`,(0,t.oB)({opacity:1,transform:"scale(1)"}))]),(0,t.eR)("active => void",[(0,t.oB)({opacity:1,transform:"scale(1)"}),(0,t.jt)(`${i.BASE} ${v.EASE_IN_OUT_CIRC}`,(0,t.oB)({opacity:0,transform:"scale(0.8)"}))])]),M=(0,t.X$)("zoomBadgeMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_OUT_BACK}`,(0,t.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_BACK}`,(0,t.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]);(0,t.X$)("thumbMotion",[(0,t.SB)("from",(0,t.oB)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.SB)("to",(0,t.oB)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.eR)("from => to",(0,t.jt)(`300ms ${v.EASE_IN_OUT}`))])},3324:(It,be,a)=>{a.d(be,{Bh:()=>v,M8:()=>L,R_:()=>A,o2:()=>s,uf:()=>d});var t=a(4265),i=a(6379);const v=["success","processing","error","default","warning"],d=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function s(V){return-1!==d.indexOf(V)}function L(V){return-1!==v.indexOf(V)}const j=2,$=.16,I=.05,S=.05,F=.15,k=5,U=4,w=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function M({r:V,g:O,b:P}){const D=(0,t.py)(V,O,P);return{h:360*D.h,s:D.s,v:D.v}}function e({r:V,g:O,b:P}){return`#${(0,t.vq)(V,O,P,!1)}`}function pe(V,O,P){let D;return D=Math.round(V.h)>=60&&Math.round(V.h)<=240?P?Math.round(V.h)-j*O:Math.round(V.h)+j*O:P?Math.round(V.h)+j*O:Math.round(V.h)-j*O,D<0?D+=360:D>=360&&(D-=360),D}function me(V,O,P){if(0===V.h&&0===V.s)return V.s;let D;return D=P?V.s-$*O:O===U?V.s+$:V.s+I*O,D>1&&(D=1),P&&O===k&&D>.1&&(D=.1),D<.06&&(D=.06),Number(D.toFixed(2))}function Z(V,O,P){let D;return D=P?V.v+S*O:V.v-F*O,D>1&&(D=1),Number(D.toFixed(2))}function A(V,O={}){const P=[],D=(0,i.uA)(V);for(let re=k;re>0;re-=1){const ae=M(D),Q=e((0,i.uA)({h:pe(ae,re,!0),s:me(ae,re,!0),v:Z(ae,re,!0)}));P.push(Q)}P.push(e(D));for(let re=1;re<=U;re+=1){const ae=M(D),Q=e((0,i.uA)({h:pe(ae,re),s:me(ae,re),v:Z(ae,re)}));P.push(Q)}return"dark"===O.theme?w.map(({index:re,opacity:ae})=>e(function R(V,O,P){const D=P/100;return{r:(O.r-V.r)*D+V.r,g:(O.g-V.g)*D+V.g,b:(O.b-V.b)*D+V.b}}((0,i.uA)(O.backgroundColor||"#141414"),(0,i.uA)(P[re]),100*ae))):P}},874:(It,be,a)=>{a.d(be,{jY:()=>Z,oS:()=>A});var t=a(5879),i=a(8645),v=a(2181),d=a(975),s=a(4265),L=a(1309),j=a(6379),$=a(6337),I=function(){function V(O,P){var D;if(void 0===O&&(O=""),void 0===P&&(P={}),O instanceof V)return O;"number"==typeof O&&(O=(0,s.Yt)(O)),this.originalInput=O;var re=(0,j.uA)(O);this.originalInput=O,this.r=re.r,this.g=re.g,this.b=re.b,this.a=re.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(D=P.format)&&void 0!==D?D:re.format,this.gradientType=P.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=re.ok}return V.prototype.isDark=function(){return this.getBrightness()<128},V.prototype.isLight=function(){return!this.isDark()},V.prototype.getBrightness=function(){var O=this.toRgb();return(299*O.r+587*O.g+114*O.b)/1e3},V.prototype.getLuminance=function(){var O=this.toRgb(),ae=O.r/255,Q=O.g/255,fe=O.b/255;return.2126*(ae<=.03928?ae/12.92:Math.pow((ae+.055)/1.055,2.4))+.7152*(Q<=.03928?Q/12.92:Math.pow((Q+.055)/1.055,2.4))+.0722*(fe<=.03928?fe/12.92:Math.pow((fe+.055)/1.055,2.4))},V.prototype.getAlpha=function(){return this.a},V.prototype.setAlpha=function(O){return this.a=(0,$.Yq)(O),this.roundA=Math.round(100*this.a)/100,this},V.prototype.isMonochrome=function(){return 0===this.toHsl().s},V.prototype.toHsv=function(){var O=(0,s.py)(this.r,this.g,this.b);return{h:360*O.h,s:O.s,v:O.v,a:this.a}},V.prototype.toHsvString=function(){var O=(0,s.py)(this.r,this.g,this.b),P=Math.round(360*O.h),D=Math.round(100*O.s),re=Math.round(100*O.v);return 1===this.a?"hsv(".concat(P,", ").concat(D,"%, ").concat(re,"%)"):"hsva(".concat(P,", ").concat(D,"%, ").concat(re,"%, ").concat(this.roundA,")")},V.prototype.toHsl=function(){var O=(0,s.lC)(this.r,this.g,this.b);return{h:360*O.h,s:O.s,l:O.l,a:this.a}},V.prototype.toHslString=function(){var O=(0,s.lC)(this.r,this.g,this.b),P=Math.round(360*O.h),D=Math.round(100*O.s),re=Math.round(100*O.l);return 1===this.a?"hsl(".concat(P,", ").concat(D,"%, ").concat(re,"%)"):"hsla(".concat(P,", ").concat(D,"%, ").concat(re,"%, ").concat(this.roundA,")")},V.prototype.toHex=function(O){return void 0===O&&(O=!1),(0,s.vq)(this.r,this.g,this.b,O)},V.prototype.toHexString=function(O){return void 0===O&&(O=!1),"#"+this.toHex(O)},V.prototype.toHex8=function(O){return void 0===O&&(O=!1),(0,s.s)(this.r,this.g,this.b,this.a,O)},V.prototype.toHex8String=function(O){return void 0===O&&(O=!1),"#"+this.toHex8(O)},V.prototype.toHexShortString=function(O){return void 0===O&&(O=!1),1===this.a?this.toHexString(O):this.toHex8String(O)},V.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},V.prototype.toRgbString=function(){var O=Math.round(this.r),P=Math.round(this.g),D=Math.round(this.b);return 1===this.a?"rgb(".concat(O,", ").concat(P,", ").concat(D,")"):"rgba(".concat(O,", ").concat(P,", ").concat(D,", ").concat(this.roundA,")")},V.prototype.toPercentageRgb=function(){var O=function(P){return"".concat(Math.round(100*(0,$.sh)(P,255)),"%")};return{r:O(this.r),g:O(this.g),b:O(this.b),a:this.a}},V.prototype.toPercentageRgbString=function(){var O=function(P){return Math.round(100*(0,$.sh)(P,255))};return 1===this.a?"rgb(".concat(O(this.r),"%, ").concat(O(this.g),"%, ").concat(O(this.b),"%)"):"rgba(".concat(O(this.r),"%, ").concat(O(this.g),"%, ").concat(O(this.b),"%, ").concat(this.roundA,")")},V.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var O="#"+(0,s.vq)(this.r,this.g,this.b,!1),P=0,D=Object.entries(L.R);P=0&&(O.startsWith("hex")||"name"===O)?"name"===O&&0===this.a?this.toName():this.toRgbString():("rgb"===O&&(D=this.toRgbString()),"prgb"===O&&(D=this.toPercentageRgbString()),("hex"===O||"hex6"===O)&&(D=this.toHexString()),"hex3"===O&&(D=this.toHexString(!0)),"hex4"===O&&(D=this.toHex8String(!0)),"hex8"===O&&(D=this.toHex8String()),"name"===O&&(D=this.toName()),"hsl"===O&&(D=this.toHslString()),"hsv"===O&&(D=this.toHsvString()),D||this.toHexString())},V.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},V.prototype.clone=function(){return new V(this.toString())},V.prototype.lighten=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.l+=O/100,P.l=(0,$.V2)(P.l),new V(P)},V.prototype.brighten=function(O){void 0===O&&(O=10);var P=this.toRgb();return P.r=Math.max(0,Math.min(255,P.r-Math.round(-O/100*255))),P.g=Math.max(0,Math.min(255,P.g-Math.round(-O/100*255))),P.b=Math.max(0,Math.min(255,P.b-Math.round(-O/100*255))),new V(P)},V.prototype.darken=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.l-=O/100,P.l=(0,$.V2)(P.l),new V(P)},V.prototype.tint=function(O){return void 0===O&&(O=10),this.mix("white",O)},V.prototype.shade=function(O){return void 0===O&&(O=10),this.mix("black",O)},V.prototype.desaturate=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.s-=O/100,P.s=(0,$.V2)(P.s),new V(P)},V.prototype.saturate=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.s+=O/100,P.s=(0,$.V2)(P.s),new V(P)},V.prototype.greyscale=function(){return this.desaturate(100)},V.prototype.spin=function(O){var P=this.toHsl(),D=(P.h+O)%360;return P.h=D<0?360+D:D,new V(P)},V.prototype.mix=function(O,P){void 0===P&&(P=50);var D=this.toRgb(),re=new V(O).toRgb(),ae=P/100;return new V({r:(re.r-D.r)*ae+D.r,g:(re.g-D.g)*ae+D.g,b:(re.b-D.b)*ae+D.b,a:(re.a-D.a)*ae+D.a})},V.prototype.analogous=function(O,P){void 0===O&&(O=6),void 0===P&&(P=30);var D=this.toHsl(),re=360/P,ae=[this];for(D.h=(D.h-(re*O>>1)+720)%360;--O;)D.h=(D.h+re)%360,ae.push(new V(D));return ae},V.prototype.complement=function(){var O=this.toHsl();return O.h=(O.h+180)%360,new V(O)},V.prototype.monochromatic=function(O){void 0===O&&(O=6);for(var P=this.toHsv(),D=P.h,re=P.s,ae=P.v,Q=[],fe=1/O;O--;)Q.push(new V({h:D,s:re,v:ae})),ae=(ae+fe)%1;return Q},V.prototype.splitcomplement=function(){var O=this.toHsl(),P=O.h;return[this,new V({h:(P+72)%360,s:O.s,l:O.l}),new V({h:(P+216)%360,s:O.s,l:O.l})]},V.prototype.onBackground=function(O){var P=this.toRgb(),D=new V(O).toRgb(),re=P.a+D.a*(1-P.a);return new V({r:(P.r*P.a+D.r*D.a*(1-P.a))/re,g:(P.g*P.a+D.g*D.a*(1-P.a))/re,b:(P.b*P.a+D.b*D.a*(1-P.a))/re,a:re})},V.prototype.triad=function(){return this.polyad(3)},V.prototype.tetrad=function(){return this.polyad(4)},V.prototype.polyad=function(O){for(var P=this.toHsl(),D=P.h,re=[this],ae=360/O,Q=1;Q{let ue=Q.clone();return ue=fe?.(ue)||ue,ue.toRgbString()},re=(Q,fe)=>{const ue=new I(Q),ge=(0,F.R_)(ue.toRgbString());P[`${fe}-color`]=D(ue),P[`${fe}-color-disabled`]=ge[1],P[`${fe}-color-hover`]=ge[4],P[`${fe}-color-active`]=ge[7],P[`${fe}-color-outline`]=ue.clone().setAlpha(.2).toRgbString(),P[`${fe}-color-deprecated-bg`]=ge[1],P[`${fe}-color-deprecated-border`]=ge[3]};if(O.primaryColor){re(O.primaryColor,"primary");const Q=new I(O.primaryColor),fe=(0,F.R_)(Q.toRgbString());fe.forEach((ge,Se)=>{P[`primary-${Se+1}`]=ge}),P["primary-color-deprecated-l-35"]=D(Q,ge=>ge.lighten(35)),P["primary-color-deprecated-l-20"]=D(Q,ge=>ge.lighten(20)),P["primary-color-deprecated-t-20"]=D(Q,ge=>ge.tint(20)),P["primary-color-deprecated-t-50"]=D(Q,ge=>ge.tint(50)),P["primary-color-deprecated-f-12"]=D(Q,ge=>ge.setAlpha(.12*ge.getAlpha()));const ue=new I(fe[0]);P["primary-color-active-deprecated-f-30"]=D(ue,ge=>ge.setAlpha(.3*ge.getAlpha())),P["primary-color-active-deprecated-d-02"]=D(ue,ge=>ge.darken(2))}return O.successColor&&re(O.successColor,"success"),O.warningColor&&re(O.warningColor,"warning"),O.errorColor&&re(O.errorColor,"error"),O.infoColor&&re(O.infoColor,"info"),`\n :root {\n ${Object.keys(P).map(Q=>`--${V}-${Q}: ${P[Q]};`).join("\n")}\n }\n `.trim()}(V,O);(0,U.J8)()?(0,U.hq)(P,`${M}-dynamic-theme`):(0,k.ZK)("NzConfigService: SSR do not support dynamic theme with css variables.")}const pe=function(V){return void 0!==V};let Z=(()=>{class V{constructor(P){this.configUpdated$=new i.x,this.config=P||{},this.config.theme&&R(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme)}getConfig(){return this.config}getConfigForComponent(P){return this.config[P]}getConfigChangeEventForComponent(P){return this.configUpdated$.pipe((0,v.h)(D=>D===P),(0,d.h)(void 0))}set(P,D){this.config[P]={...this.config[P],...D},"theme"===P&&this.config.theme&&R(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme),this.configUpdated$.next(P)}}return V.\u0275fac=function(P){return new(P||V)(t.LFG(w,8))},V.\u0275prov=t.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function A(){return function(O,P,D){const re=`$$__zorroConfigDecorator__${P}`;return Object.defineProperty(O,re,{configurable:!0,writable:!0,enumerable:!1}),{get(){const ae=D?.get?D.get.bind(this)():this[re],Q=(this.propertyAssignCounter?.[P]||0)>1,fe=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[P];return Q&&pe(ae)?ae:pe(fe)?fe:ae},set(ae){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[P]=(this.propertyAssignCounter[P]||0)+1,D?.set?D.set.bind(this)(ae):this[re]=ae},configurable:!0,enumerable:!0}}}},883:(It,be,a)=>{a.d(be,{kH:()=>j,mJ:()=>F,w_:()=>S,yW:()=>$});var t=a(5879),i=a(7328),v=a(5619),d=a(6814),s=a(551);function L(k,U){if(1&k&&t._UZ(0,"span",1),2&k){const w=t.oxw();t.Q6J("nzType",w.iconType)}}let j=(()=>{class k{constructor(){this.formStatusChanges=new i.t(1)}}return k.\u0275fac=function(w){return new(w||k)},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac}),k})(),$=(()=>{class k{constructor(){this.noFormStatus=new v.X(!1)}}return k.\u0275fac=function(w){return new(w||k)},k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac}),k})();const I={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let S=(()=>{class k{constructor(w){this.cdr=w,this.status="",this.iconType=null}ngOnChanges(w){this.updateIcon()}updateIcon(){this.iconType=this.status?I[this.status]:null,this.cdr.markForCheck()}}return k.\u0275fac=function(w){return new(w||k)(t.Y36(t.sBO))},k.\u0275cmp=t.Xpm({type:k,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(w,M){2&w&&t.ekj("ant-form-item-feedback-icon-error","error"===M.status)("ant-form-item-feedback-icon-warning","warning"===M.status)("ant-form-item-feedback-icon-success","success"===M.status)("ant-form-item-feedback-icon-validating","validating"===M.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.TTD],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(w,M){1&w&&t.YNc(0,L,1,1,"span",0),2&w&&t.Q6J("ngIf",M.iconType)},dependencies:[d.O5,s.Ls],encapsulation:2,changeDetection:0}),k})(),F=(()=>{class k{}return k.\u0275fac=function(w){return new(w||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[d.ez,s.PV]}),k})()},7032:(It,be,a)=>{a.d(be,{Bq:()=>d,ZK:()=>j});var t=a(5879);const v={},d="[NG-ZORRO]:";const j=(...S)=>function L(S,...F){(0,t.X6Q)()&&function s(...S){const F=S.reduce((k,U)=>k+U.toString(),"");return!v[F]&&(v[F]=!0,!0)}(...F)&&S(...F)}((...F)=>console.warn(d,...F),...S)},331:(It,be,a)=>{a.d(be,{P:()=>j,g:()=>$});var t=a(6814),i=a(5879),v=a(655),d=a(2495),s=a(7754);const L="nz-animate-disabled";let j=(()=>{class I{constructor(F,k,U){this.element=F,this.renderer=k,this.animationType=U,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const F=(0,d.fI)(this.element);F&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(F,L):this.renderer.removeClass(F,L))}}return I.\u0275fac=function(F){return new(F||I)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.QbO,8))},I.\u0275dir=i.lG2({type:I,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[i.TTD]}),(0,v.gn)([(0,s.yF)()],I.prototype,"nzNoAnimation",void 0),I})(),$=(()=>{class I{}return I.\u0275fac=function(F){return new(F||I)},I.\u0275mod=i.oAB({type:I}),I.\u0275inj=i.cJS({imports:[t.ez]}),I})()},8324:(It,be,a)=>{a.d(be,{T:()=>s,f:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class L{static ngTemplateContextGuard($,I){return!0}recreateView(){this.viewContainer.clear();const $=this.nzStringTemplateOutlet instanceof i.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView($?this.nzStringTemplateOutlet:this.templateRef,$?this.nzStringTemplateOutletContext:this.context)}updateContext(){const I=this.nzStringTemplateOutlet instanceof i.Rgc?this.nzStringTemplateOutletContext:this.context,S=this.embeddedViewRef.context;if(I)for(const F of Object.keys(I))S[F]=I[F]}constructor($,I){this.viewContainer=$,this.templateRef=I,this.embeddedViewRef=null,this.context=new d,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges($){const{nzStringTemplateOutletContext:I,nzStringTemplateOutlet:S}=$;S&&(this.context.$implicit=S.currentValue),(()=>{let U=!1;return S&&(U=!!S.firstChange||(S.previousValue instanceof i.Rgc||S.currentValue instanceof i.Rgc)),I&&(e=>{const R=Object.keys(e.previousValue||{}),pe=Object.keys(e.currentValue||{});if(R.length===pe.length){for(const me of pe)if(-1===R.indexOf(me))return!0;return!1}return!0})(I)||U})()?this.recreateView():this.updateContext()}}return L.\u0275fac=function($){return new($||L)(i.Y36(i.s_b),i.Y36(i.Rgc))},L.\u0275dir=i.lG2({type:L,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[i.TTD]}),L})();class d{}let s=(()=>{class L{}return L.\u0275fac=function($){return new($||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[t.ez]}),L})()},5448:(It,be,a)=>{a.d(be,{A7:()=>S,Ek:()=>$,d_:()=>k,e4:()=>e,fG:()=>F,hQ:()=>M,yW:()=>j});var t=a(655),i=a(9594),v=a(5879),d=a(9773),s=a(9087),L=a(7754);const j={top:new i.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new i.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new i.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new i.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new i.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new i.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new i.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new i.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new i.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new i.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new i.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},$=[j.top,j.right,j.bottom,j.left],S=[new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],F=[j.bottomLeft,new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function k(R){for(const pe in j)if(R.connectionPair.originX===j[pe].originX&&R.connectionPair.originY===j[pe].originY&&R.connectionPair.overlayX===j[pe].overlayX&&R.connectionPair.overlayY===j[pe].overlayY)return pe}new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),new i.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),new i.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2);let M=(()=>{class R{constructor(me,Z){this.cdkConnectedOverlay=me,this.nzDestroyService=Z,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,d.R)(this.nzDestroyService)).subscribe(A=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(A)})}updateArrowPosition(me){const Z=this.getOriginRect(),A=k(me);let V=0,O=0;"topLeft"===A||"bottomLeft"===A?V=Z.width/2-14:"topRight"===A||"bottomRight"===A?V=-(Z.width/2-14):"leftTop"===A||"rightTop"===A?O=Z.height/2-10:("leftBottom"===A||"rightBottom"===A)&&(O=-(Z.height/2-10)),(this.cdkConnectedOverlay.offsetX!==V||this.cdkConnectedOverlay.offsetY!==O)&&(this.cdkConnectedOverlay.offsetY=O,this.cdkConnectedOverlay.offsetX=V,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof i.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const me=this.getFlexibleConnectedPositionStrategyOrigin();if(me instanceof v.SBq)return me.nativeElement.getBoundingClientRect();if(me instanceof Element)return me.getBoundingClientRect();const Z=me.width||0,A=me.height||0;return{top:me.y,bottom:me.y+A,left:me.x,right:me.x+Z,height:A,width:Z}}}return R.\u0275fac=function(me){return new(me||R)(v.Y36(i.pI),v.Y36(s.kn))},R.\u0275dir=v.lG2({type:R,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[v._Bn([s.kn])]}),(0,t.gn)([(0,L.yF)()],R.prototype,"nzArrowPointAtCenter",void 0),R})(),e=(()=>{class R{}return R.\u0275fac=function(me){return new(me||R)},R.\u0275mod=v.oAB({type:R}),R.\u0275inj=v.cJS({}),R})()},6879:(It,be,a)=>{a.d(be,{e:()=>s,h:()=>d});const t=["moz","ms","webkit"];function d(L){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(L);const j=t.filter($=>`${$}CancelAnimationFrame`in window||`${$}CancelRequestAnimationFrame`in window)[0];return j?(window[`${j}CancelAnimationFrame`]||window[`${j}CancelRequestAnimationFrame`]).call(this,L):clearTimeout(L)}const s=function v(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const L=t.filter(j=>`${j}RequestAnimationFrame`in window)[0];return L?window[`${L}RequestAnimationFrame`]:function i(){let L=0;return function(j){const $=(new Date).getTime(),I=Math.max(0,16-($-L)),S=setTimeout(()=>{j($+I)},I);return L=$+I,S}}()}()},9087:(It,be,a)=>{a.d(be,{G_:()=>Z,Ml:()=>R,WV:()=>A,kn:()=>P,ow:()=>V,r3:()=>O,rI:()=>U});var t=a(5879),i=a(8645),v=a(9028),d=a(4716),s=a(7398),L=a(2181),j=a(9773),$=a(7921),I=a(3997),S=a(7754),F=a(1088);const k=()=>{};let U=(()=>{class re{constructor(Q,fe){this.ngZone=Q,this.rendererFactory2=fe,this.resizeSource$=new i.x,this.listeners=0,this.disposeHandle=k,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=k}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,v.e)(16),(0,d.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=k)}}return re.\u0275fac=function(Q){return new(Q||re)(t.LFG(t.R0b),t.LFG(t.FYo))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),R=(()=>{class re{constructor(Q){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=Q.createRenderer(null,null)}requestDraggingSequence(Q){return this.handleRegistry.size||this.registerDraggingHandler((0,S.z6)(Q)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function e(re){const ae=(0,S.wv)(re);return{x:ae.pageX,y:ae.pageY}}(Q),this.currentDraggingSequence=new i.x,this.currentDraggingSequence.pipe((0,s.U)(fe=>({x:fe.pageX-this.currentStartingPoint.x,y:fe.pageY-this.currentStartingPoint.y})),(0,L.h)(fe=>Math.abs(fe.x)>this.draggingThreshold||Math.abs(fe.y)>this.draggingThreshold),(0,d.x)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(Q){Q?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",fe=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(fe.touches[0]||fe.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",fe=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(fe)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}}return re.\u0275fac=function(Q){return new(Q||re)(t.LFG(t.FYo))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();var Z=(()=>((Z=Z||{}).xxl="xxl",Z.xl="xl",Z.lg="lg",Z.md="md",Z.sm="sm",Z.xs="xs",Z))();const A={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},V={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 O=(()=>{class re{constructor(Q,fe){this.resizeService=Q,this.mediaMatcher=fe,this.destroy$=new i.x,this.resizeService.subscribe().pipe((0,j.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(Q,fe){if(fe){const ue=()=>this.matchMedia(Q,!0);return this.resizeService.subscribe().pipe((0,s.U)(ue),(0,$.O)(ue()),(0,I.x)((ge,Se)=>ge[0]===Se[0]),(0,s.U)(ge=>ge[1]))}{const ue=()=>this.matchMedia(Q);return this.resizeService.subscribe().pipe((0,s.U)(ue),(0,$.O)(ue()),(0,I.x)())}}matchMedia(Q,fe){let ue=Z.md;const ge={};return Object.keys(Q).map(Se=>{const ke=Se,Rt=this.mediaMatcher.matchMedia(A[ke]).matches;ge[Se]=Rt,Rt&&(ue=ke)}),fe?[ue,ge]:ue}}return re.\u0275fac=function(Q){return new(Q||re)(t.LFG(U),t.LFG(F.vx))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),P=(()=>{class re extends i.x{ngOnDestroy(){this.next(),this.complete()}}return re.\u0275fac=function(){let ae;return function(fe){return(ae||(ae=t.n5z(re)))(fe||re)}}(),re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac}),re})()},855:(It,be,a)=>{a.d(be,{a:()=>d,w:()=>v});var t=a(2831),i=a(5879);let v=(()=>{class s{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(j,$){this.elementRef=j,this.renderer=$,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return s.\u0275fac=function(j){return new(j||s)(i.Y36(i.SBq),i.Y36(i.Qsj))},s.\u0275dir=i.lG2({type:s,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:[i.TTD]}),s})(),d=(()=>{class s{}return s.\u0275fac=function(j){return new(j||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[t.ud]}),s})()},7754:(It,be,a)=>{a.d(be,{D8:()=>qe,DX:()=>F,GL:()=>Jt,He:()=>R,J8:()=>at,L8:()=>De,Ly:()=>Ze,Rn:()=>O,Sm:()=>Lt,WX:()=>pe,YM:()=>Ct,Zu:()=>N,cO:()=>I,hq:()=>K,kK:()=>k,lN:()=>Cn,ov:()=>Zt,pW:()=>D,qR:()=>fe,sw:()=>e,tI:()=>ke,ui:()=>yt,wv:()=>ae,yF:()=>A,z6:()=>re});var t=a(2495),i=a(7032),v=a(8645),d=a(2664),s=a(9666),L=a(2096),j=a(8180);function I(J,Me){if(!J||!Me||J.length!==Me.length)return!1;const zt=J.length;for(let nt=0;nt"u"||null===J}function e(J){return(0,t.Ig)(J)}function R(J,Me=0){return(0,t.t6)(J)?Number(J):Me}function pe(J){return(0,t.HM)(J)}function Z(J,Me){return function zt(nt,We,ot){const Vt=`$$__zorroPropDecorator__${We}`;return Object.prototype.hasOwnProperty.call(nt,Vt)&&(0,i.ZK)(`The prop "${Vt}" is already exist, it will be overrided by ${J} decorator.`),Object.defineProperty(nt,Vt,{configurable:!0,writable:!0}),{get(){return ot&&ot.get?ot.get.bind(this)():this[Vt]},set(St){ot&&ot.set&&ot.set.bind(this)(Me(St)),this[Vt]=Me(St)}}}}function A(){return Z("InputBoolean",e)}function O(J){return Z("InputNumber",Me=>R(Me,J))}function D(J){if(!J.getClientRects().length)return{top:0,left:0};const Me=J.getBoundingClientRect(),zt=J.ownerDocument.defaultView;return{top:Me.top+zt.pageYOffset,left:Me.left+zt.pageXOffset}}function re(J){return J.type.startsWith("touch")}function ae(J){return re(J)?J.touches[0]||J.changedTouches[0]:J}function fe(J,Me="@"){if("string"!=typeof J)return[];const zt=function Q(J){const Me=Array.isArray(J)?J:[J];let zt=Me.join("").replace(/(\$|\^)/g,"\\$1");return Me.length>1&&(zt=`[${zt}]`),new RegExp(`(\\s|^)(${zt})[^\\s]*`,"g")}(Me),nt=J.match(zt);return null!==nt?nt.map(We=>We.trim()):[]}function ke(J){return!!J&&"function"==typeof J.then&&"function"==typeof J.catch}function yt(J){return"number"==typeof J&&isFinite(J)}function Ct(J,Me){return Math.round(J*Math.pow(10,Me))/Math.pow(10,Me)}function Lt(J,Me=0){return J.reduce((zt,nt)=>zt+nt,Me)}const Sn=["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"],rt=typeof window<"u",Ye=rt&&null!=window.mozInnerScreenX,st=J=>parseInt(J,10);function Ze(J,Me,zt){if(!rt)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const nt=zt&&zt.debug||!1;if(nt){const dt=document.querySelector("#input-textarea-caret-position-mirror-div");dt&&dt.parentNode.removeChild(dt)}const We=document.createElement("div");We.id="input-textarea-caret-position-mirror-div",document.body.appendChild(We);const ot=We.style,Vt=window.getComputedStyle?window.getComputedStyle(J):J.currentStyle,St="INPUT"===J.nodeName;ot.whiteSpace="pre-wrap",St||(ot.wordWrap="break-word"),ot.position="absolute",nt||(ot.visibility="hidden"),Sn.forEach(dt=>{St&&"lineHeight"===dt?ot.lineHeight=Vt.height:ot[dt]=Vt[dt]}),Ye?J.scrollHeight>st(Vt.height)&&(ot.overflowY="scroll"):ot.overflow="hidden",We.textContent=J.value.substring(0,Me),St&&(We.textContent=We.textContent.replace(/\s/g,"\xa0"));const mn=document.createElement("span");mn.textContent=J.value.substring(Me)||".",We.appendChild(mn);const Qe={top:mn.offsetTop+st(Vt.borderTopWidth),left:mn.offsetLeft+st(Vt.borderLeftWidth),height:st(Vt.lineHeight)};return nt?(mn.style.backgroundColor="#eee",function Bt(J,Me){const zt=getComputedStyle(J).getPropertyValue("font-size"),nt=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(nt),nt.id="DEBUG",nt.style.position="absolute",nt.style.backgroundColor="red",nt.style.height=zt,nt.style.width="1px",nt.style.top=`${J.getBoundingClientRect().top-J.scrollTop+window.pageYOffset+Me.top}px`,nt.style.left=`${J.getBoundingClientRect().left-J.scrollLeft+window.pageXOffset+Me.left}px`}(J,Qe)):document.body.removeChild(We),Qe}function Jt(J){if(typeof window<"u"&&window.document&&window.document.documentElement){const Me=Array.isArray(J)?J:[J],{documentElement:zt}=window.document;return Me.some(nt=>nt in zt.style)}return!1}const On=1,cn=3,wt=8;let Ve;const Be={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function He(J){if(!J)return 0;const Me=J.match(/^\d*(\.\d*)?/);return Me?Number(Me[0]):0}function De(J,Me,zt,nt,We,ot=""){Ve||(Ve=document.createElement("div"),Ve.setAttribute("aria-hidden","true"),document.body.appendChild(Ve));const Vt=window.getComputedStyle(J),St=function je(J){return Array.prototype.slice.apply(J).map(zt=>`${zt}: ${J.getPropertyValue(zt)};`).join("")}(Vt),mn=He(Vt.lineHeight),Qe=Math.round(mn*(Me+1)+He(Vt.paddingTop)+He(Vt.paddingBottom));Ve.setAttribute("style",St),Ve.style.position="fixed",Ve.style.left="0",Ve.style.height="auto",Ve.style.minHeight="auto",Ve.style.maxHeight="auto",Ve.style.top="-999999px",Ve.style.zIndex="-1000",Ve.style.textOverflow="clip",Ve.style.whiteSpace="normal",Ve.style.webkitLineClamp="none";const dt=function Ne(J){const Me=[];return J.forEach(zt=>{const nt=Me[Me.length-1];nt&&zt.nodeType===cn&&nt.nodeType===cn?nt.data+=zt.data:Me.push(zt)}),Me}(zt),se=document.createElement("div"),ze=document.createElement("span"),mt=document.createTextNode(ot),Pe=document.createElement("span");function lt(){return Ve.offsetHeight{ze.appendChild(Tt)}),ze.appendChild(mt),nt.forEach(Tt=>{Pe.appendChild(Tt.cloneNode(!0))}),se.appendChild(ze),se.appendChild(Pe),Ve.appendChild(se),lt()){const Tt=Ve.innerHTML;return Ve.removeChild(se),{contentNodes:zt,text:Tt,ellipsis:!1}}const Yt=Array.prototype.slice.apply(Ve.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:Tt})=>Tt!==wt),un=Array.prototype.slice.apply(Ve.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Ve.removeChild(se),Ve.innerHTML="";const Nt=document.createElement("span");Ve.appendChild(Nt);const pt=document.createTextNode(We+ot);function ee(Tt,Xt,qt=0,Un=Xt.length,zn=0){const Vn=Math.floor((qt+Un)/2);if(Tt.textContent=Xt.slice(0,Vn),qt>=Un-1)for(let vo=Un;vo>=qt;vo-=1){const Xn=Xt.slice(0,vo);if(Tt.textContent=Xn,lt()||!Xn)return vo===Xt.length?{finished:!1,node:document.createTextNode(Xt)}:{finished:!0,node:document.createTextNode(Xn)}}return lt()?ee(Tt,Xt,Vn,Un,Vn):ee(Tt,Xt,qt,Vn,zn)}function H(Tt,Xt){const qt=Tt.nodeType;if(qt===On)return lt()?{finished:!1,node:dt[Xt]}:(Nt.removeChild(Tt),{finished:!0,node:null});if(qt===cn){const Un=Tt.textContent||"",zn=document.createTextNode(Un);return function gt(Tt){Nt.insertBefore(Tt,pt)}(zn),ee(zn,Un)}return{finished:!1,node:null}}Nt.appendChild(pt),un.forEach(Tt=>{Ve.appendChild(Tt)});const Te=[];Yt.some((Tt,Xt)=>{const{finished:qt,node:Un}=H(Tt,Xt);return Un&&Te.push(Un),qt});const $e={contentNodes:Te,text:Ve.innerHTML,ellipsis:!0};for(;Ve.firstChild;)Ve.removeChild(Ve.firstChild);return $e}let ie,Ce;const ve={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function qe(J="vertical",Me="ant"){if(typeof document>"u"||typeof window>"u")return 0;const zt="vertical"===J;if(zt&&ie)return ie;if(!zt&&Ce)return Ce;const nt=document.createElement("div");Object.keys(ve).forEach(ot=>{nt.style[ot]=ve[ot]}),nt.className=`${Me}-hide-scrollbar scroll-div-append-to-body`,zt?nt.style.overflowY="scroll":nt.style.overflowX="scroll",document.body.appendChild(nt);let We=0;return zt?(We=nt.offsetWidth-nt.clientWidth,ie=We):(We=nt.offsetHeight-nt.clientHeight,Ce=We),document.body.removeChild(nt),We}function Zt(){const J=new v.x;return Promise.resolve().then(()=>J.next()),J.pipe((0,j.q)(1))}function Cn(J){return(0,d.b)(J)?J:ke(J)?(0,s.D)(Promise.resolve(J)):(0,L.of)(J)}function at(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Xe="rc-util-key";function it({mark:J}={}){return J?J.startsWith("data-")?J:`data-${J}`:Xe}function Ot(J){return J.attachTo?J.attachTo:document.querySelector("head")||document.body}function Pt(J,Me={}){if(!at())return null;const zt=document.createElement("style");Me.csp?.nonce&&(zt.nonce=Me.csp?.nonce),zt.innerHTML=J;const nt=Ot(Me),{firstChild:We}=nt;return Me.prepend&&nt.prepend?nt.prepend(zt):Me.prepend&&We?nt.insertBefore(zt,We):nt.appendChild(zt),zt}const Wt=new Map;function K(J,Me,zt={}){const nt=Ot(zt);if(!Wt.has(nt)){const Vt=Pt("",zt),{parentNode:St}=Vt;Wt.set(nt,St),St.removeChild(Vt)}const We=function kt(J,Me={}){const zt=Ot(Me);return Array.from(Wt.get(zt)?.children||[]).find(nt=>"STYLE"===nt.tagName&&nt.getAttribute(it(Me))===J)}(Me,zt);if(We)return zt.csp?.nonce&&We.nonce!==zt.csp?.nonce&&(We.nonce=zt.csp?.nonce),We.innerHTML!==J&&(We.innerHTML=J),We;const ot=Pt(J,zt);return ot?.setAttribute(it(zt),Me),ot}function N(J,Me,zt){return{[`${J}-status-success`]:"success"===Me,[`${J}-status-warning`]:"warning"===Me,[`${J}-status-error`]:"error"===Me,[`${J}-status-validating`]:"validating"===Me,[`${J}-has-feedback`]:zt}}},1958:(It,be,a)=>{a.d(be,{dQ:()=>j,vG:()=>$});var t=a(2831),i=a(5879);class v{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(S,F,k,U){this.triggerElement=S,this.ngZone=F,this.insertExtraNode=k,this.platformId=U,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=w=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===w.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}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,F=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 F=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(F&&F[1]&&F[2]&&F[3]&&F[1]===F[2]&&F[2]===F[3])}getWaveColor(S){const F=getComputedStyle(S);return F.getPropertyValue("border-top-color")||F.getPropertyValue("border-color")||F.getPropertyValue("background-color")}runTimeoutOutsideZone(S,F){this.ngZone.runOutsideAngular(()=>setTimeout(S,F))}}const d={disabled:!1},s=new i.OlP("nz-wave-global-options",{providedIn:"root",factory:function L(){return d}});let j=(()=>{class I{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(F,k,U,w,M){this.ngZone=F,this.elementRef=k,this.config=U,this.animationType=w,this.platformId=M,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let F=!1;return this.config&&"boolean"==typeof this.config.disabled&&(F=this.config.disabled),"NoopAnimations"===this.animationType&&(F=!0),F}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new v(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 I.\u0275fac=function(F){return new(F||I)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(s,8),i.Y36(i.QbO,8),i.Y36(i.Lbi))},I.\u0275dir=i.lG2({type:I,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),I})(),$=(()=>{class I{}return I.\u0275fac=function(F){return new(F||I)},I.\u0275mod=i.oAB({type:I}),I.\u0275inj=i.cJS({imports:[t.ud]}),I})()},8125:(It,be,a)=>{a.d(be,{R7:()=>cn,q6:()=>wt,uj:()=>Jt});var t=a(9388),i=a(2831),v=a(6814),d=a(5879),s=a(8324),L=a(655),j=a(8645),$=a(3019),I=a(7754),S=a(9773),F=a(7921),k=a(4664),U=a(9028),w=a(9397),M=a(874),e=a(7032),R=a(9087);function pe(Ve,Be){1&Ve&&d.Hsn(0)}const me=["*"];function Z(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw(3);d.xp6(1),d.Oqu(He.nzTitle)}}function A(Ve,Be){if(1&Ve&&(d.TgZ(0,"div",6),d.YNc(1,Z,2,1,"ng-container",7),d.qZA()),2&Ve){const He=d.oxw(2);d.xp6(1),d.Q6J("nzStringTemplateOutlet",He.nzTitle)}}function V(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw(3);d.xp6(1),d.Oqu(He.nzExtra)}}function O(Ve,Be){if(1&Ve&&(d.TgZ(0,"div",8),d.YNc(1,V,2,1,"ng-container",7),d.qZA()),2&Ve){const He=d.oxw(2);d.xp6(1),d.Q6J("nzStringTemplateOutlet",He.nzExtra)}}function P(Ve,Be){if(1&Ve&&(d.TgZ(0,"div",3),d.YNc(1,A,2,1,"div",4),d.YNc(2,O,2,1,"div",5),d.qZA()),2&Ve){const He=d.oxw();d.xp6(1),d.Q6J("ngIf",He.nzTitle),d.xp6(1),d.Q6J("ngIf",He.nzExtra)}}function D(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw(2).$implicit;d.xp6(1),d.hij(" ",He.title," ")}}function re(Ve,Be){}function ae(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",14),d.YNc(4,D,2,1,"ng-container",7),d.qZA(),d.TgZ(5,"span",15),d.YNc(6,re,0,0,"ng-template",16),d.qZA()()(),d.BQk()),2&Ve){const He=d.oxw().$implicit,je=d.oxw(3);d.xp6(1),d.Q6J("colSpan",He.span),d.xp6(2),d.ekj("ant-descriptions-item-no-colon",!je.nzColon),d.xp6(1),d.Q6J("nzStringTemplateOutlet",He.title),d.xp6(2),d.Q6J("ngTemplateOutlet",He.content)}}function Q(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw(2).$implicit;d.xp6(1),d.hij(" ",He.title," ")}}function fe(Ve,Be){}function ue(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",14),d.YNc(2,Q,2,1,"ng-container",7),d.qZA(),d.TgZ(3,"td",17),d.YNc(4,fe,0,0,"ng-template",16),d.qZA(),d.BQk()),2&Ve){const He=d.oxw().$implicit;d.xp6(2),d.Q6J("nzStringTemplateOutlet",He.title),d.xp6(1),d.Q6J("colSpan",2*He.span-1),d.xp6(1),d.Q6J("ngTemplateOutlet",He.content)}}function ge(Ve,Be){if(1&Ve&&(d.ynx(0),d.YNc(1,ae,7,5,"ng-container",2),d.YNc(2,ue,5,3,"ng-container",2),d.BQk()),2&Ve){const He=d.oxw(3);d.xp6(1),d.Q6J("ngIf",!He.nzBordered),d.xp6(1),d.Q6J("ngIf",He.nzBordered)}}function Se(Ve,Be){if(1&Ve&&(d.TgZ(0,"tr",10),d.YNc(1,ge,3,2,"ng-container",11),d.qZA()),2&Ve){const He=Be.$implicit;d.xp6(1),d.Q6J("ngForOf",He)}}function ke(Ve,Be){if(1&Ve&&(d.ynx(0),d.YNc(1,Se,2,1,"tr",9),d.BQk()),2&Ve){const He=d.oxw();d.xp6(1),d.Q6J("ngForOf",He.itemMatrix)}}function Rt(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw().$implicit;d.xp6(1),d.hij(" ",He.title," ")}}function Ft(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",14),d.YNc(4,Rt,2,1,"ng-container",7),d.qZA()()(),d.BQk()),2&Ve){const He=Be.$implicit,je=d.oxw(4);d.xp6(1),d.Q6J("colSpan",He.span),d.xp6(2),d.ekj("ant-descriptions-item-no-colon",!je.nzColon),d.xp6(1),d.Q6J("nzStringTemplateOutlet",He.title)}}function Mt(Ve,Be){}function yt(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",15),d.YNc(4,Mt,0,0,"ng-template",16),d.qZA()()(),d.BQk()),2&Ve){const He=Be.$implicit;d.xp6(1),d.Q6J("colSpan",He.span),d.xp6(3),d.Q6J("ngTemplateOutlet",He.content)}}function Ct(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"tr",10),d.YNc(2,Ft,5,4,"ng-container",11),d.qZA(),d.TgZ(3,"tr",10),d.YNc(4,yt,5,2,"ng-container",11),d.qZA(),d.BQk()),2&Ve){const He=Be.$implicit;d.xp6(2),d.Q6J("ngForOf",He),d.xp6(2),d.Q6J("ngForOf",He)}}function Lt(Ve,Be){if(1&Ve&&(d.ynx(0),d.YNc(1,Ct,5,2,"ng-container",11),d.BQk()),2&Ve){const He=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",He.itemMatrix)}}function rn(Ve,Be){if(1&Ve&&(d.ynx(0),d._uU(1),d.BQk()),2&Ve){const He=d.oxw().$implicit;d.xp6(1),d.hij(" ",He.title," ")}}function Sn(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",18),d.YNc(2,rn,2,1,"ng-container",7),d.qZA(),d.BQk()),2&Ve){const He=Be.$implicit;d.xp6(1),d.Q6J("colSpan",He.span),d.xp6(1),d.Q6J("nzStringTemplateOutlet",He.title)}}function rt(Ve,Be){}function Ye(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"td",17),d.YNc(2,rt,0,0,"ng-template",16),d.qZA(),d.BQk()),2&Ve){const He=Be.$implicit;d.xp6(1),d.Q6J("colSpan",He.span),d.xp6(1),d.Q6J("ngTemplateOutlet",He.content)}}function st(Ve,Be){if(1&Ve&&(d.ynx(0),d.TgZ(1,"tr",10),d.YNc(2,Sn,3,2,"ng-container",11),d.qZA(),d.TgZ(3,"tr",10),d.YNc(4,Ye,3,2,"ng-container",11),d.qZA(),d.BQk()),2&Ve){const He=Be.$implicit;d.xp6(2),d.Q6J("ngForOf",He),d.xp6(2),d.Q6J("ngForOf",He)}}function Ze(Ve,Be){if(1&Ve&&(d.ynx(0),d.YNc(1,st,5,2,"ng-container",11),d.BQk()),2&Ve){const He=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",He.itemMatrix)}}function Bt(Ve,Be){if(1&Ve&&(d.ynx(0),d.YNc(1,Lt,2,1,"ng-container",2),d.YNc(2,Ze,2,1,"ng-container",2),d.BQk()),2&Ve){const He=d.oxw();d.xp6(1),d.Q6J("ngIf",!He.nzBordered),d.xp6(1),d.Q6J("ngIf",He.nzBordered)}}let Jt=(()=>{class Ve{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new j.x}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return Ve.\u0275fac=function(He){return new(He||Ve)},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["nz-descriptions-item"]],viewQuery:function(He,je){if(1&He&&d.Gf(d.Rgc,7),2&He){let Ne;d.iGM(Ne=d.CRH())&&(je.content=Ne.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[d.TTD],ngContentSelectors:me,decls:1,vars:0,template:function(He,je){1&He&&(d.F$t(),d.YNc(0,pe,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,L.gn)([(0,I.Rn)()],Ve.prototype,"nzSpan",void 0),Ve})();const On={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let cn=(()=>{class Ve{constructor(He,je,Ne,De){this.nzConfigService=He,this.cdr=je,this.breakpointService=Ne,this.directionality=De,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=On,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=R.G_.md,this.destroy$=new j.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,S.R)(this.destroy$)).subscribe(He=>{this.dir=He})}ngOnChanges(He){He.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const He=this.items.changes.pipe((0,F.O)(this.items),(0,S.R)(this.destroy$));(0,$.T)(He,He.pipe((0,k.w)(()=>(0,$.T)(...this.items.map(je=>je.inputChange$)).pipe((0,U.e)(16)))),this.breakpointService.subscribe(R.WV).pipe((0,w.b)(je=>this.breakpoint=je))).pipe((0,S.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let He=[],je=0;const Ne=this.realColumn=this.getColumn(),De=this.items.toArray(),ie=De.length,Ce=[],ve=()=>{Ce.push(He),He=[],je=0};for(let qe=0;qe=Ne?(je>Ne&&(0,e.ZK)(`"nzColumn" is ${Ne} but we have row length ${je}`),He.push({title:Zt,content:Cn,span:Ne-(je-at)}),ve()):qe===ie-1?(He.push({title:Zt,content:Cn,span:Ne-(je-at)}),ve()):He.push({title:Zt,content:Cn,span:at})}this.itemMatrix=Ce}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return Ve.\u0275fac=function(He){return new(He||Ve)(d.Y36(M.jY),d.Y36(d.sBO),d.Y36(R.r3),d.Y36(t.Is,8))},Ve.\u0275cmp=d.Xpm({type:Ve,selectors:[["nz-descriptions"]],contentQueries:function(He,je,Ne){if(1&He&&d.Suo(Ne,Jt,4),2&He){let De;d.iGM(De=d.CRH())&&(je.items=De)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(He,je){2&He&&d.ekj("ant-descriptions-bordered",je.nzBordered)("ant-descriptions-middle","middle"===je.nzSize)("ant-descriptions-small","small"===je.nzSize)("ant-descriptions-rtl","rtl"===je.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[d.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(He,je){1&He&&(d.YNc(0,P,3,2,"div",0),d.TgZ(1,"div",1)(2,"table")(3,"tbody"),d.YNc(4,ke,2,1,"ng-container",2),d.YNc(5,Bt,3,2,"ng-container",2),d.qZA()()()),2&He&&(d.Q6J("ngIf",je.nzTitle||je.nzExtra),d.xp6(4),d.Q6J("ngIf","horizontal"===je.nzLayout),d.xp6(1),d.Q6J("ngIf","vertical"===je.nzLayout))},dependencies:[v.sg,v.O5,v.tP,s.f],encapsulation:2,changeDetection:0}),(0,L.gn)([(0,I.yF)(),(0,M.oS)()],Ve.prototype,"nzBordered",void 0),(0,L.gn)([(0,M.oS)()],Ve.prototype,"nzColumn",void 0),(0,L.gn)([(0,M.oS)()],Ve.prototype,"nzSize",void 0),(0,L.gn)([(0,M.oS)(),(0,I.yF)()],Ve.prototype,"nzColon",void 0),Ve})(),wt=(()=>{class Ve{}return Ve.\u0275fac=function(He){return new(He||Ve)},Ve.\u0275mod=d.oAB({type:Ve}),Ve.\u0275inj=d.cJS({imports:[t.vT,v.ez,s.T,i.ud]}),Ve})()},6987:(It,be,a)=>{a.d(be,{S:()=>S,g:()=>I});var t=a(655),i=a(5879),v=a(7754),d=a(6814),s=a(8324),L=a(9388);function j(F,k){if(1&F&&(i.ynx(0),i._uU(1),i.BQk()),2&F){const U=i.oxw(2);i.xp6(1),i.Oqu(U.nzText)}}function $(F,k){if(1&F&&(i.TgZ(0,"span",1),i.YNc(1,j,2,1,"ng-container",2),i.qZA()),2&F){const U=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",U.nzText)}}let I=(()=>{class F{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return F.\u0275fac=function(U){return new(U||F)},F.\u0275cmp=i.Xpm({type:F,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(U,w){2&U&&i.ekj("ant-divider-horizontal","horizontal"===w.nzType)("ant-divider-vertical","vertical"===w.nzType)("ant-divider-with-text",w.nzText)("ant-divider-plain",w.nzPlain)("ant-divider-with-text-left",w.nzText&&"left"===w.nzOrientation)("ant-divider-with-text-right",w.nzText&&"right"===w.nzOrientation)("ant-divider-with-text-center",w.nzText&&"center"===w.nzOrientation)("ant-divider-dashed",w.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(U,w){1&U&&i.YNc(0,$,2,1,"span",0),2&U&&i.Q6J("ngIf",w.nzText)},dependencies:[d.O5,s.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.yF)()],F.prototype,"nzDashed",void 0),(0,t.gn)([(0,v.yF)()],F.prototype,"nzPlain",void 0),F})(),S=(()=>{class F{}return F.\u0275fac=function(U){return new(U||F)},F.\u0275mod=i.oAB({type:F}),F.\u0275inj=i.cJS({imports:[L.vT,d.ez,s.T]}),F})()},2787:(It,be,a)=>{a.d(be,{RR:()=>Lt,b1:()=>rn,cm:()=>Ft,wA:()=>Ct});var t=a(655),i=a(6028),v=a(8484),d=a(5879),s=a(8645),L=a(5619),j=a(3019),$=a(2438),I=a(6232),S=a(2572),F=a(975),k=a(7398),U=a(4664),w=a(2181),M=a(9028),e=a(3997),R=a(9773),pe=a(874),me=a(5448),Z=a(7754),A=a(9594),V=a(2831),O=a(9388),P=a(6814),D=a(2840),re=a(331),ae=a(8324),Q=a(551),fe=a(3460),ue=a(4194);function ge(Ye,st){if(1&Ye){const Ze=d.EpF();d.TgZ(0,"div",0),d.NdJ("@slideMotion.done",function(Jt){d.CHM(Ze);const _n=d.oxw();return d.KtG(_n.onAnimationEvent(Jt))})("mouseenter",function(){d.CHM(Ze);const Jt=d.oxw();return d.KtG(Jt.setMouseState(!0))})("mouseleave",function(){d.CHM(Ze);const Jt=d.oxw();return d.KtG(Jt.setMouseState(!1))}),d.Hsn(1),d.qZA()}if(2&Ye){const Ze=d.oxw();d.ekj("ant-dropdown-rtl","rtl"===Ze.dir),d.Q6J("ngClass",Ze.nzOverlayClassName)("ngStyle",Ze.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==Ze.noAnimation||!Ze.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ze.noAnimation?null:Ze.noAnimation.nzNoAnimation)}}const Se=["*"],Rt=[me.yW.bottomLeft,me.yW.bottomRight,me.yW.topRight,me.yW.topLeft];let Ft=(()=>{class Ye{setDropdownMenuValue(Ze,Bt){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(Ze,Bt)}constructor(Ze,Bt,Jt,_n,On,cn){this.nzConfigService=Ze,this.elementRef=Bt,this.overlay=Jt,this.renderer=_n,this.viewContainerRef=On,this.platform=cn,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new s.x,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new L.X(!1),this.nzTrigger$=new L.X("hover"),this.overlayClose$=new s.x,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}ngAfterViewInit(){if(this.nzDropdownMenu){const Ze=this.elementRef.nativeElement,Bt=(0,j.T)((0,$.R)(Ze,"mouseenter").pipe((0,F.h)(!0)),(0,$.R)(Ze,"mouseleave").pipe((0,F.h)(!1))),_n=(0,j.T)(this.nzDropdownMenu.mouseState$,Bt),On=(0,$.R)(Ze,"click").pipe((0,k.U)(()=>!this.nzVisible)),cn=this.nzTrigger$.pipe((0,U.w)(He=>"hover"===He?_n:"click"===He?On:I.E)),wt=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,w.h)(()=>this.nzClickHide),(0,F.h)(!1)),Ve=(0,j.T)(cn,wt,this.overlayClose$).pipe((0,w.h)(()=>!this.nzDisabled)),Be=(0,j.T)(this.inputVisible$,Ve);(0,S.a)([Be,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,k.U)(([He,je])=>He||je),(0,M.e)(150),(0,e.x)(),(0,w.h)(()=>this.platform.isBrowser),(0,R.R)(this.destroy$)).subscribe(He=>{const Ne=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:Ze).getBoundingClientRect().width;this.nzVisible!==He&&this.nzVisibleChange.emit(He),this.nzVisible=He,He?(this.overlayRef?this.overlayRef.getConfig().minWidth=Ne:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:Ne,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,j.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,w.h)(De=>!this.elementRef.nativeElement.contains(De.target))),this.overlayRef.keydownEvents().pipe((0,w.h)(De=>De.keyCode===i.hY&&!(0,i.Vb)(De)))).pipe((0,R.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([me.yW[this.nzPlacement],...Rt]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new v.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,R.R)(this.destroy$)).subscribe(He=>{"void"===He.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(Ze){const{nzVisible:Bt,nzDisabled:Jt,nzOverlayClassName:_n,nzOverlayStyle:On,nzTrigger:cn}=Ze;if(cn&&this.nzTrigger$.next(this.nzTrigger),Bt&&this.inputVisible$.next(this.nzVisible),Jt){const wt=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(wt,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(wt,"disabled")}_n&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),On&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(d.Y36(pe.jY),d.Y36(d.SBq),d.Y36(A.aV),d.Y36(d.Qsj),d.Y36(d.s_b),d.Y36(V.t4))},Ye.\u0275dir=d.lG2({type:Ye,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,t.gn)([(0,pe.oS)(),(0,Z.yF)()],Ye.prototype,"nzBackdrop",void 0),(0,t.gn)([(0,Z.yF)()],Ye.prototype,"nzClickHide",void 0),(0,t.gn)([(0,Z.yF)()],Ye.prototype,"nzDisabled",void 0),(0,t.gn)([(0,Z.yF)()],Ye.prototype,"nzVisible",void 0),Ye})(),Mt=(()=>{class Ye{}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)},Ye.\u0275mod=d.oAB({type:Ye}),Ye.\u0275inj=d.cJS({}),Ye})(),Ct=(()=>{class Ye{constructor(Ze,Bt,Jt){this.renderer=Ze,this.nzButtonGroupComponent=Bt,this.elementRef=Jt}ngAfterViewInit(){const Ze=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&Ze&&this.renderer.addClass(Ze,"ant-dropdown-button")}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(d.Y36(d.Qsj),d.Y36(D.fY,9),d.Y36(d.SBq))},Ye.\u0275dir=d.lG2({type:Ye,selectors:[["","nz-button","","nz-dropdown",""]]}),Ye})(),Lt=(()=>{class Ye{onAnimationEvent(Ze){this.animationStateChange$.emit(Ze)}setMouseState(Ze){this.mouseState$.next(Ze)}setValue(Ze,Bt){this[Ze]=Bt,this.cdr.markForCheck()}constructor(Ze,Bt,Jt,_n,On,cn,wt){this.cdr=Ze,this.elementRef=Bt,this.renderer=Jt,this.viewContainerRef=_n,this.nzMenuService=On,this.directionality=cn,this.noAnimation=wt,this.mouseState$=new L.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 s.x}ngOnInit(){this.directionality.change?.pipe((0,R.R)(this.destroy$)).subscribe(Ze=>{this.dir=Ze,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 Ye.\u0275fac=function(Ze){return new(Ze||Ye)(d.Y36(d.sBO),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.s_b),d.Y36(fe.hl),d.Y36(O.Is,8),d.Y36(re.P,9))},Ye.\u0275cmp=d.Xpm({type:Ye,selectors:[["nz-dropdown-menu"]],viewQuery:function(Ze,Bt){if(1&Ze&&d.Gf(d.Rgc,7),2&Ze){let Jt;d.iGM(Jt=d.CRH())&&(Bt.templateRef=Jt.first)}},exportAs:["nzDropdownMenu"],features:[d._Bn([fe.hl,{provide:fe.Cc,useValue:!0}])],ngContentSelectors:Se,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(Ze,Bt){1&Ze&&(d.F$t(),d.YNc(0,ge,2,7,"ng-template"))},dependencies:[P.mk,P.PC,re.P],encapsulation:2,data:{animation:[ue.mF]},changeDetection:0}),Ye})(),rn=(()=>{class Ye{}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)},Ye.\u0275mod=d.oAB({type:Ye}),Ye.\u0275inj=d.cJS({imports:[O.vT,P.ez,A.U8,D.sL,fe.ip,Q.PV,re.g,V.ud,me.e4,Mt,ae.T,fe.ip]}),Ye})();new A.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new A.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new A.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new A.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},804:(It,be,a)=>{a.d(be,{Xo:()=>Rt,gB:()=>ke,p9:()=>ge});var t=a(8484),i=a(5879),v=a(8645),d=a(9773),s=a(7921),L=a(874),j=a(6814),$=a(1752),I=a(8324),S=a(9388);function F(Ft,Mt){if(1&Ft&&(i.ynx(0),i._UZ(1,"img",5),i.BQk()),2&Ft){const yt=i.oxw(2);i.xp6(1),i.Q6J("src",yt.nzNotFoundImage,i.LSH)("alt",yt.isContentString?yt.nzNotFoundContent:"empty")}}function k(Ft,Mt){if(1&Ft&&(i.ynx(0),i.YNc(1,F,2,2,"ng-container",4),i.BQk()),2&Ft){const yt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzNotFoundImage)}}function U(Ft,Mt){1&Ft&&i._UZ(0,"nz-empty-default")}function w(Ft,Mt){1&Ft&&i._UZ(0,"nz-empty-simple")}function M(Ft,Mt){if(1&Ft&&(i.ynx(0),i._uU(1),i.BQk()),2&Ft){const yt=i.oxw(2);i.xp6(1),i.hij(" ",yt.isContentString?yt.nzNotFoundContent:yt.locale.description," ")}}function e(Ft,Mt){if(1&Ft&&(i.TgZ(0,"p",6),i.YNc(1,M,2,1,"ng-container",4),i.qZA()),2&Ft){const yt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzNotFoundContent)}}function R(Ft,Mt){if(1&Ft&&(i.ynx(0),i._uU(1),i.BQk()),2&Ft){const yt=i.oxw(2);i.xp6(1),i.hij(" ",yt.nzNotFoundFooter," ")}}function pe(Ft,Mt){if(1&Ft&&(i.TgZ(0,"div",7),i.YNc(1,R,2,1,"ng-container",4),i.qZA()),2&Ft){const yt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzNotFoundFooter)}}function me(Ft,Mt){1&Ft&&i._UZ(0,"nz-empty",6),2&Ft&&i.Q6J("nzNotFoundImage","simple")}function Z(Ft,Mt){1&Ft&&i._UZ(0,"nz-empty",7),2&Ft&&i.Q6J("nzNotFoundImage","simple")}function A(Ft,Mt){1&Ft&&i._UZ(0,"nz-empty")}function V(Ft,Mt){if(1&Ft&&(i.ynx(0,2),i.YNc(1,me,1,1,"nz-empty",3),i.YNc(2,Z,1,1,"nz-empty",4),i.YNc(3,A,1,0,"nz-empty",5),i.BQk()),2&Ft){const yt=i.oxw();i.Q6J("ngSwitch",yt.size),i.xp6(1),i.Q6J("ngSwitchCase","normal"),i.xp6(1),i.Q6J("ngSwitchCase","small")}}function O(Ft,Mt){}function P(Ft,Mt){if(1&Ft&&i.YNc(0,O,0,0,"ng-template",8),2&Ft){const yt=i.oxw(2);i.Q6J("cdkPortalOutlet",yt.contentPortal)}}function D(Ft,Mt){if(1&Ft&&(i.ynx(0),i._uU(1),i.BQk()),2&Ft){const yt=i.oxw(2);i.xp6(1),i.hij(" ",yt.content," ")}}function re(Ft,Mt){if(1&Ft&&(i.ynx(0),i.YNc(1,P,1,1,null,1),i.YNc(2,D,2,1,"ng-container",1),i.BQk()),2&Ft){const yt=i.oxw();i.xp6(1),i.Q6J("ngIf","string"!==yt.contentType),i.xp6(1),i.Q6J("ngIf","string"===yt.contentType)}}const ae=new i.OlP("nz-empty-component-name");let Q=(()=>{class Ft{}return Ft.\u0275fac=function(yt){return new(yt||Ft)},Ft.\u0275cmp=i.Xpm({type:Ft,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(yt,Ct){1&yt&&(i.O4$(),i.TgZ(0,"svg",0)(1,"g",1)(2,"g",2),i._UZ(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),i.qZA(),i._UZ(8,"path",8),i.TgZ(9,"g",9),i._UZ(10,"ellipse",10)(11,"path",11),i.qZA()()())},encapsulation:2,changeDetection:0}),Ft})(),fe=(()=>{class Ft{}return Ft.\u0275fac=function(yt){return new(yt||Ft)},Ft.\u0275cmp=i.Xpm({type:Ft,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(yt,Ct){1&yt&&(i.O4$(),i.TgZ(0,"svg",0)(1,"g",1),i._UZ(2,"ellipse",2),i.TgZ(3,"g",3),i._UZ(4,"path",4)(5,"path",5),i.qZA()()())},encapsulation:2,changeDetection:0}),Ft})();const ue=["default","simple"];let ge=(()=>{class Ft{constructor(yt,Ct){this.i18n=yt,this.cdr=Ct,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new v.x}ngOnChanges(yt){const{nzNotFoundContent:Ct,nzNotFoundImage:Lt}=yt;if(Ct&&(this.isContentString="string"==typeof Ct.currentValue),Lt){const rn=Lt.currentValue||"default";this.isImageBuildIn=ue.findIndex(Sn=>Sn===rn)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Ft.\u0275fac=function(yt){return new(yt||Ft)(i.Y36($.wi),i.Y36(i.sBO))},Ft.\u0275cmp=i.Xpm({type:Ft,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[i.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(yt,Ct){1&yt&&(i.TgZ(0,"div",0),i.YNc(1,k,2,1,"ng-container",1),i.YNc(2,U,1,0,"nz-empty-default",1),i.YNc(3,w,1,0,"nz-empty-simple",1),i.qZA(),i.YNc(4,e,2,1,"p",2),i.YNc(5,pe,2,1,"div",3)),2&yt&&(i.xp6(1),i.Q6J("ngIf",!Ct.isImageBuildIn),i.xp6(1),i.Q6J("ngIf",Ct.isImageBuildIn&&"simple"!==Ct.nzNotFoundImage),i.xp6(1),i.Q6J("ngIf",Ct.isImageBuildIn&&"simple"===Ct.nzNotFoundImage),i.xp6(1),i.Q6J("ngIf",null!==Ct.nzNotFoundContent),i.xp6(1),i.Q6J("ngIf",Ct.nzNotFoundFooter))},dependencies:[j.O5,I.f,Q,fe],encapsulation:2,changeDetection:0}),Ft})(),ke=(()=>{class Ft{constructor(yt,Ct,Lt,rn){this.configService=yt,this.viewContainerRef=Ct,this.cdr=Lt,this.injector=rn,this.contentType="string",this.size="",this.destroy$=new v.x}ngOnChanges(yt){yt.nzComponentName&&(this.size=function Se(Ft){switch(Ft){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(yt.nzComponentName.currentValue)),yt.specificContent&&!yt.specificContent.isFirstChange()&&(this.content=yt.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const yt=this.content;if("string"==typeof yt)this.contentType="string";else if(yt instanceof i.Rgc){const Ct={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.UE(yt,this.viewContainerRef,Ct)}else if(yt instanceof i.DyG){const Ct=i.zs3.create({parent:this.injector,providers:[{provide:ae,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.C5(yt,this.viewContainerRef,Ct)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,s.O)(!0),(0,d.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Ft.\u0275fac=function(yt){return new(yt||Ft)(i.Y36(L.jY),i.Y36(i.s_b),i.Y36(i.sBO),i.Y36(i.zs3))},Ft.\u0275cmp=i.Xpm({type:Ft,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[i.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(yt,Ct){1&yt&&(i.YNc(0,V,4,3,"ng-container",0),i.YNc(1,re,3,2,"ng-container",1)),2&yt&&(i.Q6J("ngIf",!Ct.content&&null!==Ct.specificContent),i.xp6(1),i.Q6J("ngIf",Ct.content))},dependencies:[j.O5,j.RF,j.n9,j.ED,t.Pl,ge],encapsulation:2,changeDetection:0}),Ft})(),Rt=(()=>{class Ft{}return Ft.\u0275fac=function(yt){return new(yt||Ft)},Ft.\u0275mod=i.oAB({type:Ft}),Ft.\u0275inj=i.cJS({imports:[S.vT,j.ez,t.eL,I.T,$.YI]}),Ft})()},3599:(It,be,a)=>{a.d(be,{Fd:()=>yt,Lr:()=>Mt,Nx:()=>ke,U5:()=>rt,iK:()=>Lt});var t=a(9388),i=a(1088),v=a(2831),d=a(6814),s=a(5879),L=a(8324),j=a(95),$=a(551),I=a(6109),S=a(6223),F=a(8645),k=a(7394),U=a(2181),w=a(7398),M=a(9773),e=a(7921),R=a(9397),pe=a(4194),me=a(883),Z=a(7754),A=a(1752),V=a(655),O=a(874);const P=["*"];function D(Ye,st){if(1&Ye&&(s.ynx(0),s._uU(1),s.BQk()),2&Ye){const Ze=s.oxw(2);s.xp6(1),s.Oqu(Ze.innerTip)}}const re=function(Ye){return[Ye]},ae=function(Ye){return{$implicit:Ye}};function Q(Ye,st){if(1&Ye&&(s.TgZ(0,"div",4)(1,"div",5),s.YNc(2,D,2,1,"ng-container",6),s.qZA()()),2&Ye){const Ze=s.oxw();s.Q6J("@helpMotion",void 0),s.xp6(1),s.Q6J("ngClass",s.VKq(4,re,"ant-form-item-explain-"+Ze.status)),s.xp6(1),s.Q6J("nzStringTemplateOutlet",Ze.innerTip)("nzStringTemplateOutletContext",s.VKq(6,ae,Ze.validateControl))}}function fe(Ye,st){if(1&Ye&&(s.ynx(0),s._uU(1),s.BQk()),2&Ye){const Ze=s.oxw(2);s.xp6(1),s.Oqu(Ze.nzExtra)}}function ue(Ye,st){if(1&Ye&&(s.TgZ(0,"div",7),s.YNc(1,fe,2,1,"ng-container",8),s.qZA()),2&Ye){const Ze=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",Ze.nzExtra)}}function ge(Ye,st){if(1&Ye&&(s.ynx(0),s._UZ(1,"span",3),s.BQk()),2&Ye){const Ze=st.$implicit,Bt=s.oxw(2);s.xp6(1),s.Q6J("nzType",Ze)("nzTheme",Bt.tooltipIcon.theme)}}function Se(Ye,st){if(1&Ye&&(s.TgZ(0,"span",1),s.YNc(1,ge,2,2,"ng-container",2),s.qZA()),2&Ye){const Ze=s.oxw();s.Q6J("nzTooltipTitle",Ze.nzTooltipTitle),s.xp6(1),s.Q6J("nzStringTemplateOutlet",Ze.tooltipIcon.type)}}let ke=(()=>{class Ye{setWithHelpViaTips(Ze){this.withHelpClass=Ze,this.cdr.markForCheck()}setStatus(Ze){this.status=Ze,this.cdr.markForCheck()}setHasFeedback(Ze){this.hasFeedback=Ze,this.cdr.markForCheck()}constructor(Ze){this.cdr=Ze,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new F.x}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(s.Y36(s.sBO))},Ye.\u0275cmp=s.Xpm({type:Ye,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(Ze,Bt){2&Ze&&s.ekj("ant-form-item-has-success","success"===Bt.status)("ant-form-item-has-warning","warning"===Bt.status)("ant-form-item-has-error","error"===Bt.status)("ant-form-item-is-validating","validating"===Bt.status)("ant-form-item-has-feedback",Bt.hasFeedback&&Bt.status)("ant-form-item-with-help",Bt.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:P,decls:1,vars:0,template:function(Ze,Bt){1&Ze&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Ye})();const Ft={type:"question-circle",theme:"outline"};let Mt=(()=>{class Ye{getInputObservable(Ze){return this.inputChanges$.pipe((0,U.h)(Bt=>Ze in Bt),(0,w.U)(Bt=>Bt[Ze]))}constructor(Ze,Bt){this.nzConfigService=Ze,this.directionality=Bt,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Ft,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new F.x,this.inputChanges$=new F.x,this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.R)(this.destroy$)).subscribe(Jt=>{this.dir=Jt})}ngOnChanges(Ze){this.inputChanges$.next(Ze)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(s.Y36(O.jY),s.Y36(t.Is,8))},Ye.\u0275dir=s.lG2({type:Ye,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(Ze,Bt){2&Ze&&s.ekj("ant-form-horizontal","horizontal"===Bt.nzLayout)("ant-form-vertical","vertical"===Bt.nzLayout)("ant-form-inline","inline"===Bt.nzLayout)("ant-form-rtl","rtl"===Bt.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzForm"],features:[s.TTD]}),(0,V.gn)([(0,O.oS)(),(0,Z.yF)()],Ye.prototype,"nzNoColon",void 0),(0,V.gn)([(0,O.oS)()],Ye.prototype,"nzAutoTips",void 0),(0,V.gn)([(0,Z.yF)()],Ye.prototype,"nzDisableAutoTips",void 0),(0,V.gn)([(0,O.oS)()],Ye.prototype,"nzTooltipIcon",void 0),(0,V.gn)([(0,O.oS)(),(0,Z.yF)()],Ye.prototype,"nzLabelWrap",void 0),Ye})(),yt=(()=>{class Ye{get disableAutoTips(){return"default"!==this.nzDisableAutoTips?(0,Z.sw)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(Ze){this._hasFeedback=(0,Z.sw)(Ze),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Ze){Ze instanceof S.TO||Ze instanceof S.On?(this.validateControl=Ze,this.validateString=null,this.watchControl()):Ze instanceof S.u?(this.validateControl=Ze.control,this.validateString=null,this.watchControl()):(this.validateString=Ze,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,e.O)(null),(0,M.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(Ze){let Bt;return Bt="warning"===Ze||this.validateControlStatus("INVALID","warning")?"warning":"error"===Ze||this.validateControlStatus("INVALID")?"error":"validating"===Ze||"pending"===Ze||this.validateControlStatus("PENDING")?"validating":"success"===Ze||this.validateControlStatus("VALID")?"success":"",Bt}validateControlStatus(Ze,Bt){if(this.validateControl){const{dirty:Jt,touched:_n,status:On}=this.validateControl;return(!!Jt||!!_n)&&(Bt?this.validateControl.hasError(Bt):On===Ze)}return!1}getInnerTip(Ze){switch(Ze){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(){if(this.validateControl){const Ze=this.validateControl.errors||{};let Bt="";for(const Jt in Ze)if(Ze.hasOwnProperty(Jt)&&(Bt=Ze[Jt]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[Jt]??this.nzAutoTips.default?.[Jt]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[Jt]??this.nzFormDirective?.nzAutoTips.default?.[Jt]),Bt)break;this.autoErrorTip=Bt}}subscribeAutoTips(Ze){Ze?.pipe((0,M.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(Ze,Bt,Jt,_n,On){this.nzFormItemComponent=Ze,this.cdr=Bt,this.nzFormDirective=_n,this.nzFormStatusService=On,this._hasFeedback=!1,this.validateChanges=k.w0.EMPTY,this.validateString=null,this.destroyed$=new F.x,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",this.subscribeAutoTips(Jt.localeChange.pipe((0,R.b)(cn=>this.localeId=cn.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,U.h)(()=>"default"===this.nzDisableAutoTips)))}ngOnChanges(Ze){const{nzDisableAutoTips:Bt,nzAutoTips:Jt,nzSuccessTip:_n,nzWarningTip:On,nzErrorTip:cn,nzValidatingTip:wt}=Ze;Bt||Jt?(this.updateAutoErrorTip(),this.setStatus()):(_n||On||cn||wt)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof S.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(s.Y36(ke,9),s.Y36(s.sBO),s.Y36(A.wi),s.Y36(Mt,8),s.Y36(me.kH))},Ye.\u0275cmp=s.Xpm({type:Ye,selectors:[["nz-form-control"]],contentQueries:function(Ze,Bt,Jt){if(1&Ze&&s.Suo(Jt,S.a5,5),2&Ze){let _n;s.iGM(_n=s.CRH())&&(Bt.defaultValidateControl=_n.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[s._Bn([me.kH]),s.TTD],ngContentSelectors:P,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],[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(Ze,Bt){1&Ze&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1),s.Hsn(2),s.qZA()(),s.YNc(3,Q,3,8,"div",2),s.YNc(4,ue,2,1,"div",3)),2&Ze&&(s.xp6(3),s.Q6J("ngIf",Bt.innerTip),s.xp6(1),s.Q6J("ngIf",Bt.nzExtra))},dependencies:[d.mk,d.O5,L.f],encapsulation:2,data:{animation:[pe.c8]},changeDetection:0}),Ye})();function Ct(Ye){return{...Ft,..."string"==typeof Ye?{type:Ye}:Ye}}let Lt=(()=>{class Ye{set nzNoColon(Ze){this.noColon=(0,Z.sw)(Ze)}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(Ze){this._tooltipIcon=Ct(Ze)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:Ct(this.nzFormDirective?.nzTooltipIcon||Ft)}set nzLabelAlign(Ze){this.labelAlign=Ze}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(Ze){this.labelWrap=(0,Z.sw)(Ze)}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(Ze,Bt){this.cdr=Ze,this.nzFormDirective=Bt,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new F.x,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,U.h)(()=>"default"===this.noColon),(0,M.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,U.h)(()=>"default"===this._tooltipIcon),(0,M.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,U.h)(()=>"default"===this.labelAlign),(0,M.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,U.h)(()=>"default"===this.labelWrap),(0,M.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)(s.Y36(s.sBO),s.Y36(Mt,12))},Ye.\u0275cmp=s.Xpm({type:Ye,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(Ze,Bt){2&Ze&&s.ekj("ant-form-item-label-left","left"===Bt.nzLabelAlign)("ant-form-item-label-wrap",Bt.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzFormLabel"],ngContentSelectors:P,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(Ze,Bt){1&Ze&&(s.F$t(),s.TgZ(0,"label"),s.Hsn(1),s.YNc(2,Se,2,2,"span",0),s.qZA()),2&Ze&&(s.ekj("ant-form-item-no-colon",Bt.nzNoColon)("ant-form-item-required",Bt.nzRequired),s.uIk("for",Bt.nzFor),s.xp6(2),s.Q6J("ngIf",Bt.nzTooltipTitle))},dependencies:[d.O5,$.Ls,I.SY,L.f],encapsulation:2,changeDetection:0}),(0,V.gn)([(0,Z.yF)()],Ye.prototype,"nzRequired",void 0),Ye})(),rt=(()=>{class Ye{}return Ye.\u0275fac=function(Ze){return new(Ze||Ye)},Ye.\u0275mod=s.oAB({type:Ye}),Ye.\u0275inj=s.cJS({imports:[t.vT,d.ez,j.Jb,$.PV,I.cg,i.xu,v.ud,L.T,j.Jb]}),Ye})()},95:(It,be,a)=>{a.d(be,{Jb:()=>U,SK:()=>F,t3:()=>k});var t=a(5879),i=a(7328),v=a(8645),d=a(9773),s=a(9087),L=a(1088),j=a(2831),$=a(9388),I=a(7754),S=a(6814);let F=(()=>{class w{getGutter(){const e=[null,null],R=this.nzGutter||0;return(Array.isArray(R)?R:[R,null]).forEach((me,Z)=>{"object"==typeof me&&null!==me?(e[Z]=null,Object.keys(s.WV).map(A=>{const V=A;this.mediaMatcher.matchMedia(s.WV[V]).matches&&me[V]&&(e[Z]=me[V])})):e[Z]=Number(me)||null}),e}setGutterStyle(){const[e,R]=this.getGutter();this.actualGutter$.next([e,R]);const pe=(me,Z)=>{null!==Z&&this.renderer.setStyle(this.elementRef.nativeElement,me,`-${Z/2}px`)};pe("margin-left",e),pe("margin-right",e),pe("margin-top",R),pe("margin-bottom",R)}constructor(e,R,pe,me,Z,A,V){this.elementRef=e,this.renderer=R,this.mediaMatcher=pe,this.ngZone=me,this.platform=Z,this.breakpointService=A,this.directionality=V,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new i.t(1),this.dir="ltr",this.destroy$=new v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(e=>{this.dir=e}),this.setGutterStyle()}ngOnChanges(e){e.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(s.WV).pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return w.\u0275fac=function(e){return new(e||w)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(L.vx),t.Y36(t.R0b),t.Y36(j.t4),t.Y36(s.r3),t.Y36($.Is,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(e,R){2&e&&t.ekj("ant-row-top","top"===R.nzAlign)("ant-row-middle","middle"===R.nzAlign)("ant-row-bottom","bottom"===R.nzAlign)("ant-row-start","start"===R.nzJustify)("ant-row-end","end"===R.nzJustify)("ant-row-center","center"===R.nzJustify)("ant-row-space-around","space-around"===R.nzJustify)("ant-row-space-between","space-between"===R.nzJustify)("ant-row-space-evenly","space-evenly"===R.nzJustify)("ant-row-rtl","rtl"===R.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[t.TTD]}),w})(),k=(()=>{class w{setHostClassMap(){const e={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,I.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,I.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,I.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,I.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,I.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const R in this.classMap)this.classMap.hasOwnProperty(R)&&this.renderer.removeClass(this.elementRef.nativeElement,R);this.classMap={...e};for(const R in this.classMap)this.classMap.hasOwnProperty(R)&&this.classMap[R]&&this.renderer.addClass(this.elementRef.nativeElement,R)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(e){return"number"==typeof e?`${e} ${e} auto`:"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}generateClass(){const R={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(pe=>{const me=pe.replace("nz","").toLowerCase();if((0,I.DX)(this[pe]))if("number"==typeof this[pe]||"string"==typeof this[pe])R[`ant-col-${me}-${this[pe]}`]=!0;else{const Z=this[pe];["span","pull","push","offset","order"].forEach(V=>{R[`ant-col-${me}${"span"===V?"-":`-${V}-`}${Z[V]}`]=Z&&(0,I.DX)(Z[V])})}}),R}constructor(e,R,pe,me){this.elementRef=e,this.nzRowDirective=R,this.renderer=pe,this.directionality=me,this.classMap={},this.destroy$=new v.x,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}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(e){this.setHostClassMap();const{nzFlex:R}=e;R&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,d.R)(this.destroy$)).subscribe(([e,R])=>{const pe=(me,Z)=>{null!==Z&&this.renderer.setStyle(this.elementRef.nativeElement,me,Z/2+"px")};pe("padding-left",e),pe("padding-right",e),pe("padding-top",R),pe("padding-bottom",R)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return w.\u0275fac=function(e){return new(e||w)(t.Y36(t.SBq),t.Y36(F,9),t.Y36(t.Qsj),t.Y36($.Is,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(e,R){2&e&&t.Udp("flex",R.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:[t.TTD]}),w})(),U=(()=>{class w{}return w.\u0275fac=function(e){return new(e||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[$.vT,S.ez,L.xu,j.ud]}),w})()},1752:(It,be,a)=>{a.d(be,{YI:()=>S,iF:()=>d,u7:()=>L,wi:()=>$});var t=a(5879),i=a(5619),v=a(7032),d={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"},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 to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",selectNone:"Clear all data"},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"},Image:{preview:"Preview"},CronExpression:{cronError:"Invalid cron expression",second:"second",minute:"minute",hour:"hour",day:"day",month:"month",week:"week",secondError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-59Allowable range

",minuteError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-59Allowable range

",hourError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-23Allowable range

",dayError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

1-31Allowable range

",monthError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

1-12Allowable range

",weekError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

? Not specify

0-7Allowable range (0 represents Sunday, 1-7 are Monday to Sunday)

"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},s={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",page_size:"\u9875\u7801"},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",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7b5b\u9009\u9879\u4e2d\u641c\u7d22",selectNone:"\u6e05\u7a7a\u6240\u6709"},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"},Image:{preview:"\u9884\u89c8"},CronExpression:{cronError:"cron \u8868\u8fbe\u5f0f\u4e0d\u5408\u6cd5",second:"\u79d2",minute:"\u5206\u949f",hour:"\u5c0f\u65f6",day:"\u65e5",month:"\u6708",week:"\u5468",secondError:"

*\u4efb\u610f\u503c

,\u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

-\u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/\u5e73\u5747\u5206\u914d

0-59\u5141\u8bb8\u8303\u56f4

",minuteError:"

*\u4efb\u610f\u503c

,\u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

-\u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/\u5e73\u5747\u5206\u914d

0-59\u5141\u8bb8\u8303\u56f4

",hourError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

0-23 \u5141\u8bb8\u8303\u56f4

",dayError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

1-31 \u5141\u8bb8\u8303\u56f4

",monthError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

1-12 \u5141\u8bb8\u8303\u56f4

",weekError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

? \u4e0d\u6307\u5b9a

0-7 \u5141\u8bb8\u8303\u56f4\uff080\u4ee3\u8868\u5468\u65e5\uff0c1-7\u4f9d\u6b21\u4e3a\u5468\u4e00\u5230\u5468\u65e5\uff09

"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0"}};const L=new t.OlP("nz-i18n"),j=new t.OlP("nz-date-locale");let $=(()=>{class Vt{get localeChange(){return this._change.asObservable()}constructor(mn,Qe){this._change=new i.X(this._locale),this.setLocale(mn||s),this.setDateLocale(Qe||null)}translate(mn,Qe){let dt=this._getObjectPath(this._locale,mn);return"string"==typeof dt?(Qe&&Object.keys(Qe).forEach(se=>dt=dt.replace(new RegExp(`%${se}%`,"g"),Qe[se])),dt):mn}setLocale(mn){this._locale&&this._locale.locale===mn.locale||(this._locale=mn,this._change.next(mn))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(mn){this.dateLocale=mn}getDateLocale(){return this.dateLocale}getLocaleData(mn,Qe){const dt=mn?this._getObjectPath(this._locale,mn):this._locale;return!dt&&!Qe&&(0,v.ZK)(`Missing translations for "${mn}" 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`),dt||Qe||this._getObjectPath(d,mn)||{}}_getObjectPath(mn,Qe){let dt=mn;const se=Qe.split("."),ze=se.length;let mt=0;for(;dt&&mt{class Vt{}return Vt.\u0275fac=function(mn){return new(mn||Vt)},Vt.\u0275mod=t.oAB({type:Vt}),Vt.\u0275inj=t.cJS({}),Vt})();new t.OlP("date-config")},551:(It,be,a)=>{a.d(be,{Ls:()=>Yt,PV:()=>un,H5:()=>mt});var t=a(2831),i=a(5879),v=a(655),d=a(8645),s=a(9666),L=a(9773),j=a(4265),$=a(6379),I=2,S=.16,F=.05,k=.05,U=.15,w=5,M=4,e=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function R(Nt){var H=(0,j.py)(Nt.r,Nt.g,Nt.b);return{h:360*H.h,s:H.s,v:H.v}}function pe(Nt){return"#".concat((0,j.vq)(Nt.r,Nt.g,Nt.b,!1))}function Z(Nt,pt,gt){var ee;return(ee=Math.round(Nt.h)>=60&&Math.round(Nt.h)<=240?gt?Math.round(Nt.h)-I*pt:Math.round(Nt.h)+I*pt:gt?Math.round(Nt.h)+I*pt:Math.round(Nt.h)-I*pt)<0?ee+=360:ee>=360&&(ee-=360),ee}function A(Nt,pt,gt){return 0===Nt.h&&0===Nt.s?Nt.s:((ee=gt?Nt.s-S*pt:pt===M?Nt.s+S:Nt.s+F*pt)>1&&(ee=1),gt&&pt===w&&ee>.1&&(ee=.1),ee<.06&&(ee=.06),Number(ee.toFixed(2)));var ee}function V(Nt,pt,gt){var ee;return(ee=gt?Nt.v+k*pt:Nt.v-U*pt)>1&&(ee=1),Number(ee.toFixed(2))}function O(Nt){for(var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},gt=[],ee=(0,$.uA)(Nt),H=w;H>0;H-=1){var Te=R(ee),$e=pe((0,$.uA)({h:Z(Te,H,!0),s:A(Te,H,!0),v:V(Te,H,!0)}));gt.push($e)}gt.push(pe(ee));for(var Tt=1;Tt<=M;Tt+=1){var Xt=R(ee),qt=pe((0,$.uA)({h:Z(Xt,Tt),s:A(Xt,Tt),v:V(Xt,Tt)}));gt.push(qt)}return"dark"===pt.theme?e.map(function(Un){var zn=Un.index,Vn=Un.opacity,vo=pe(function me(Nt,pt,gt){var ee=gt/100;return{r:(pt.r-Nt.r)*ee+Nt.r,g:(pt.g-Nt.g)*ee+Nt.g,b:(pt.b-Nt.b)*ee+Nt.b}}((0,$.uA)(pt.backgroundColor||"#141414"),(0,$.uA)(gt[zn]),100*Vn));return vo}):gt}var P={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},D={},re={};Object.keys(P).forEach(function(Nt){D[Nt]=O(P[Nt]),D[Nt].primary=D[Nt][5],re[Nt]=O(P[Nt],{theme:"dark",backgroundColor:"#141414"}),re[Nt].primary=re[Nt][5]});var Sn=a(6814),rt=a(9862),Ye=a(2096),st=a(5592),Ze=a(7398),Bt=a(9397),Jt=a(4716),_n=a(6306),On=a(3020),cn=a(2181),wt=a(8180),Ve=a(6593);const Be="[@ant-design/icons-angular]:";function je(Nt){(0,i.X6Q)()&&console.warn(`${Be} ${Nt}.`)}function Ne(Nt){return O(Nt)[0]}function De(Nt,pt){switch(pt){case"fill":return`${Nt}-fill`;case"outline":return`${Nt}-o`;case"twotone":return`${Nt}-twotone`;case void 0:return Nt;default:throw new Error(`${Be}Theme "${pt}" is not a recognized theme!`)}}function qe(Nt){return"object"==typeof Nt&&"string"==typeof Nt.name&&("string"==typeof Nt.theme||void 0===Nt.theme)&&"string"==typeof Nt.icon}function at(Nt){const pt=Nt.split(":");switch(pt.length){case 1:return[Nt,""];case 2:return[pt[1],pt[0]];default:throw new Error(`${Be}The icon type ${Nt} is not valid!`)}}function Ot(Nt){return new Error(`${Be}the icon ${Nt} does not exist or is not registered.`)}function kt(){return new Error(`${Be} tag not found.`)}const N=new i.OlP("ant_icons");let J=(()=>{class Nt{set twoToneColor({primaryColor:gt,secondaryColor:ee}){this._twoToneColorPalette.primaryColor=gt,this._twoToneColorPalette.secondaryColor=ee||Ne(gt)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(gt,ee,H,Te,$e){this._rendererFactory=gt,this._handler=ee,this._document=H,this.sanitizer=Te,this._antIcons=$e,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 d.x,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new rt.eN(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?je("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=gt=>{this._jsonpIconLoad$.next(gt)})}changeAssetsSource(gt){this._assetsUrlRoot=gt.endsWith("/")?gt:gt+"/"}addIcon(...gt){gt.forEach(ee=>{this._svgDefinitions.set(De(ee.name,ee.theme),ee)})}addIconLiteral(gt,ee){const[H,Te]=at(gt);if(!Te)throw function it(){return new Error(`${Be}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:gt,icon:ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(gt,ee){const H=qe(gt)?gt:this._svgDefinitions.get(gt)||null;if(!H&&this._disableDynamicLoading)throw Ot(gt);return(H?(0,Ye.of)(H):this._loadIconDynamically(gt)).pipe((0,Ze.U)($e=>{if(!$e)throw Ot(gt);return this._loadSVGFromCacheOrCreateNew($e,ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(gt){if(!this._http&&!this._enableJsonpLoading)return(0,Ye.of)(function Pt(){return function He(Nt){console.error(`${Be} ${Nt}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let ee=this._inProgressFetches.get(gt);if(!ee){const[H,Te]=at(gt),$e=Te?{name:gt,icon:""}:function ct(Nt){const pt=Nt.split("-"),gt=function Ce(Nt){return"o"===Nt?"outline":Nt}(pt.splice(pt.length-1,1)[0]);return{name:pt.join("-"),theme:gt,icon:""}}(H),Xt=(Te?`${this._assetsUrlRoot}assets/${Te}/${H}`:`${this._assetsUrlRoot}assets/${$e.theme}/${$e.name}`)+(this._enableJsonpLoading?".js":".svg"),qt=this.sanitizer.sanitize(i.q3G.URL,Xt);if(!qt)throw function Wt(Nt){return new Error(`${Be}The url "${Nt}" is unsafe.`)}(Xt);ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp($e,qt):this._http.get(qt,{responseType:"text"}).pipe((0,Ze.U)(zn=>({...$e,icon:zn})))).pipe((0,Bt.b)(zn=>this.addIcon(zn)),(0,Jt.x)(()=>this._inProgressFetches.delete(gt)),(0,_n.K)(()=>(0,Ye.of)(null)),(0,On.B)()),this._inProgressFetches.set(gt,ee)}return ee}_loadIconDynamicallyWithJsonp(gt,ee){return new st.y(H=>{const Te=this._document.createElement("script"),$e=setTimeout(()=>{Tt(),H.error(function Je(){return new Error(`${Be}Importing timeout error.`)}())},6e3);function Tt(){Te.parentNode.removeChild(Te),clearTimeout($e)}Te.src=ee,this._document.body.appendChild(Te),this._jsonpIconLoad$.pipe((0,cn.h)(Xt=>Xt.name===gt.name&&Xt.theme===gt.theme),(0,wt.q)(1)).subscribe(Xt=>{H.next(Xt),Tt()})})}_loadSVGFromCacheOrCreateNew(gt,ee){let H;const Te=ee||this._twoToneColorPalette.primaryColor,$e=Ne(Te)||this._twoToneColorPalette.secondaryColor,Tt="twotone"===gt.theme?function ie(Nt,pt,gt,ee){return`${De(Nt,pt)}-${gt}-${ee}`}(gt.name,gt.theme,Te,$e):void 0===gt.theme?gt.name:De(gt.name,gt.theme),Xt=this._svgRenderedDefinitions.get(Tt);return Xt?H=Xt.icon:(H=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function Xe(Nt){return""!==at(Nt)[1]}(gt.name)?gt.icon:function Cn(Nt){return Nt.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(gt.icon)),"twotone"===gt.theme,Te,$e)),this._svgRenderedDefinitions.set(Tt,{...gt,icon:H})),function Zt(Nt){return Nt.cloneNode(!0)}(H)}_createSVGElementFromString(gt){const ee=this._document.createElement("div");ee.innerHTML=gt;const H=ee.querySelector("svg");if(!H)throw kt;return H}_setSVGAttribute(gt){return this._renderer.setAttribute(gt,"width","1em"),this._renderer.setAttribute(gt,"height","1em"),gt}_colorizeSVGIcon(gt,ee,H,Te){if(ee){const $e=gt.childNodes,Tt=$e.length;for(let Xt=0;Xt{class Nt{constructor(gt,ee,H){this._iconService=gt,this._elementRef=ee,this._renderer=H}ngOnChanges(gt){(gt.type||gt.theme||gt.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(gt=>{if(!this.type)return this._clearSVGElement(),void gt(null);const ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(H=>{const Te=this._getSelfRenderMeta();!function Me(Nt,pt){return Nt.type===pt.type&&Nt.theme===pt.theme&&Nt.twoToneColor===pt.twoToneColor}(ee,Te)?gt(null):(this._setSVGElement(H),gt(H))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(gt,ee){if(qe(gt))return gt;{const[H,Te]=at(gt);return Te?gt:function ve(Nt){return Nt.endsWith("-fill")||Nt.endsWith("-o")||Nt.endsWith("-twotone")}(H)?(ee&&je(`'type' ${H} already gets a theme inside so 'theme' ${ee} would be ignored`),H):De(H,ee||this._iconService.defaultTheme)}}_setSVGElement(gt){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,gt)}_clearSVGElement(){const gt=this._elementRef.nativeElement,ee=gt.childNodes;for(let Te=ee.length-1;Te>=0;Te--){const $e=ee[Te];"svg"===$e.tagName?.toLowerCase()&&this._renderer.removeChild(gt,$e)}}}return Nt.\u0275fac=function(gt){return new(gt||Nt)(i.Y36(J),i.Y36(i.SBq),i.Y36(i.Qsj))},Nt.\u0275dir=i.lG2({type:Nt,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[i.TTD]}),Nt})();var ot=a(7032),Vt=a(7754),St=a(4715),mn=a(874);const Qe=[St.V65,St.ud1,St.bBn,St.BOg,St.Hkd,St.XuQ,St.Rfq,St.yQU,St.U2Q,St.UKj,St.OYp,St.BXH,St.eLU,St.x0x,St.vkb,St.VWu,St.rMt,St.vEg,St.RIp,St.RU0,St.M8e,St.ssy,St.Z5F,St.iUK,St.LJh,St.NFG,St.UTl,St.nrZ,St.gvV,St.d2H,St.eFY,St.sZJ,St.np6,St.w1L,St.UY$,St.v6v,St.rHg,St.v6v,St.s_U,St.TSL,St.FsU,St.cN2,St.uIz,St.d_$],dt=new i.OlP("nz_icons"),ze=(new i.OlP("nz_icon_default_twotone_color"),"#1890ff");let mt=(()=>{class Nt extends J{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(gt){gt.getAttribute("viewBox")||this._renderer.setAttribute(gt,"viewBox","0 0 1024 1024"),(!gt.getAttribute("width")||!gt.getAttribute("height"))&&(this._renderer.setAttribute(gt,"width","1em"),this._renderer.setAttribute(gt,"height","1em")),gt.getAttribute("fill")||this._renderer.setAttribute(gt,"fill","currentColor")}fetchFromIconfont(gt){const{scriptUrl:ee}=gt;if(this._document&&!this.iconfontCache.has(ee)){const H=this._renderer.createElement("script");this._renderer.setAttribute(H,"src",ee),this._renderer.setAttribute(H,"data-namespace",ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,H),this.iconfontCache.add(ee)}}createIconfontIcon(gt){return this._createSVGElementFromString(``)}constructor(gt,ee,H,Te,$e,Tt,Xt){super(gt,$e,Tt,ee,[...Qe,...Xt||[]]),this.nzConfigService=H,this.platform=Te,this.configUpdated$=new d.x,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.configDefaultTwotoneColor(),this.configDefaultTheme()}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const gt=this.getConfig();this.defaultTheme=gt.nzTheme||"outline"}configDefaultTwotoneColor(){const ee=this.getConfig().nzTwotoneColor||ze;let H=ze;ee&&(ee.startsWith("#")?H=ee:(0,ot.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:H}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return Nt.\u0275fac=function(gt){return new(gt||Nt)(i.LFG(i.FYo),i.LFG(Ve.H7),i.LFG(mn.jY),i.LFG(t.t4),i.LFG(rt.jN,8),i.LFG(Sn.K0,8),i.LFG(dt,8))},Nt.\u0275prov=i.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})();const Pe=new i.OlP("nz_icons_patch");let lt=(()=>{class Nt{constructor(gt,ee){this.extraIcons=gt,this.rootIconService=ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(gt=>this.rootIconService.addIcon(gt)),this.patched=!0)}}return Nt.\u0275fac=function(gt){return new(gt||Nt)(i.LFG(Pe,2),i.LFG(mt))},Nt.\u0275prov=i.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})(),Yt=(()=>{class Nt extends zt{set nzSpin(gt){this.spin=gt}set nzType(gt){this.type=gt}set nzTheme(gt){this.theme=gt}set nzTwotoneColor(gt){this.twoToneColor=gt}set nzIconfont(gt){this.iconfont=gt}constructor(gt,ee,H,Te,$e,Tt){super(Te,H,$e),this.ngZone=gt,this.changeDetectorRef=ee,this.iconService=Te,this.renderer=$e,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new d.x,Tt&&Tt.doPatch(),this.el=H.nativeElement}ngOnChanges(gt){const{nzType:ee,nzTwotoneColor:H,nzSpin:Te,nzTheme:$e,nzRotate:Tt}=gt;ee||H||Te||$e?this.changeIcon2():Tt?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 gt=this.el.children;let ee=gt.length;if(!this.type&>.length)for(;ee--;){const H=gt[ee];"svg"===H.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(H)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,s.D)(this._changeIcon()).pipe((0,L.R)(this.destroy$)).subscribe({next:gt=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),gt&&(this.setSVGData(gt),this.handleSpin(gt),this.handleRotate(gt))})},error:ot.ZK})})}handleSpin(gt){this.spin||"loading"===this.type?this.renderer.addClass(gt,"anticon-spin"):this.renderer.removeClass(gt,"anticon-spin")}handleRotate(gt){this.nzRotate?this.renderer.setAttribute(gt,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(gt,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(gt){this.renderer.setAttribute(gt,"data-icon",this.type),this.renderer.setAttribute(gt,"aria-hidden","true")}}return Nt.\u0275fac=function(gt){return new(gt||Nt)(i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(mt),i.Y36(i.Qsj),i.Y36(lt,8))},Nt.\u0275dir=i.lG2({type:Nt,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(gt,ee){2>&&i.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[i.qOj,i.TTD]}),(0,v.gn)([(0,Vt.yF)()],Nt.prototype,"nzSpin",null),Nt})(),un=(()=>{class Nt{static forRoot(gt){return{ngModule:Nt,providers:[{provide:dt,useValue:gt}]}}static forChild(gt){return{ngModule:Nt,providers:[lt,{provide:Pe,useValue:gt}]}}}return Nt.\u0275fac=function(gt){return new(gt||Nt)},Nt.\u0275mod=i.oAB({type:Nt}),Nt.\u0275inj=i.cJS({imports:[t.ud]}),Nt})()},8373:(It,be,a)=>{a.d(be,{Rb:()=>On,Zf:()=>cn,_V:()=>Bt});var t=a(655),i=a(6028),v=a(5879),d=a(6223),s=a(8645),L=a(2438),j=a(3019),$=a(3997),I=a(9773),S=a(7921),F=a(4664),k=a(1631),U=a(7398),w=a(9087),M=a(7754),e=a(4300),R=a(9388),pe=a(883),me=a(6814),Z=a(551),A=a(8324);const V=["upHandler"],O=["downHandler"],P=["inputElement"];function D(wt,Ve){if(1&wt&&v._UZ(0,"nz-form-item-feedback-icon",11),2&wt){const Be=v.oxw();v.Q6J("status",Be.status)}}const re=["nz-input-number-group-slot",""];function ae(wt,Ve){if(1&wt&&v._UZ(0,"span",2),2&wt){const Be=v.oxw();v.Q6J("nzType",Be.icon)}}function Q(wt,Ve){if(1&wt&&(v.ynx(0),v._uU(1),v.BQk()),2&wt){const Be=v.oxw();v.xp6(1),v.Oqu(Be.template)}}const fe=["*"];function ue(wt,Ve){if(1&wt&&v._UZ(0,"div",7),2&wt){const Be=v.oxw(2);v.Q6J("icon",Be.nzAddOnBeforeIcon)("template",Be.nzAddOnBefore)}}function ge(wt,Ve){}function Se(wt,Ve){if(1&wt&&(v.TgZ(0,"div",8),v.YNc(1,ge,0,0,"ng-template",9),v.qZA()),2&wt){const Be=v.oxw(2),He=v.MAs(4);v.ekj("ant-input-number-affix-wrapper-disabled",Be.disabled)("ant-input-number-affix-wrapper-sm",Be.isSmall)("ant-input-number-affix-wrapper-lg",Be.isLarge)("ant-input-number-affix-wrapper-focused",Be.focused),v.Q6J("ngClass",Be.affixInGroupStatusCls),v.xp6(1),v.Q6J("ngTemplateOutlet",He)}}function ke(wt,Ve){if(1&wt&&v._UZ(0,"span",7),2&wt){const Be=v.oxw(2);v.Q6J("icon",Be.nzAddOnAfterIcon)("template",Be.nzAddOnAfter)}}function Rt(wt,Ve){if(1&wt&&(v.TgZ(0,"span",4),v.YNc(1,ue,1,2,"div",5),v.YNc(2,Se,2,10,"div",6),v.YNc(3,ke,1,2,"span",5),v.qZA()),2&wt){const Be=v.oxw(),He=v.MAs(6);v.xp6(1),v.Q6J("ngIf",Be.nzAddOnBefore||Be.nzAddOnBeforeIcon),v.xp6(1),v.Q6J("ngIf",Be.isAffix||Be.hasFeedback)("ngIfElse",He),v.xp6(1),v.Q6J("ngIf",Be.nzAddOnAfter||Be.nzAddOnAfterIcon)}}function Ft(wt,Ve){}function Mt(wt,Ve){if(1&wt&&v.YNc(0,Ft,0,0,"ng-template",9),2&wt){v.oxw(2);const Be=v.MAs(4);v.Q6J("ngTemplateOutlet",Be)}}function yt(wt,Ve){if(1&wt&&v.YNc(0,Mt,1,1,"ng-template",10),2&wt){const Be=v.oxw(),He=v.MAs(6);v.Q6J("ngIf",Be.isAffix)("ngIfElse",He)}}function Ct(wt,Ve){if(1&wt&&v._UZ(0,"span",13),2&wt){const Be=v.oxw(2);v.Q6J("icon",Be.nzPrefixIcon)("template",Be.nzPrefix)}}function Lt(wt,Ve){}function rn(wt,Ve){if(1&wt&&v._UZ(0,"nz-form-item-feedback-icon",16),2&wt){const Be=v.oxw(3);v.Q6J("status",Be.status)}}function Sn(wt,Ve){if(1&wt&&(v.TgZ(0,"span",14),v.YNc(1,rn,1,1,"nz-form-item-feedback-icon",15),v.qZA()),2&wt){const Be=v.oxw(2);v.Q6J("icon",Be.nzSuffixIcon)("template",Be.nzSuffix),v.xp6(1),v.Q6J("ngIf",Be.isFeedback)}}function rt(wt,Ve){if(1&wt&&(v.YNc(0,Ct,1,2,"span",11),v.YNc(1,Lt,0,0,"ng-template",9),v.YNc(2,Sn,2,3,"span",12)),2&wt){const Be=v.oxw(),He=v.MAs(6);v.Q6J("ngIf",Be.nzPrefix||Be.nzPrefixIcon),v.xp6(1),v.Q6J("ngTemplateOutlet",He),v.xp6(1),v.Q6J("ngIf",Be.nzSuffix||Be.nzSuffixIcon||Be.isFeedback)}}function Ye(wt,Ve){if(1&wt&&v._UZ(0,"nz-form-item-feedback-icon",16),2&wt){const Be=v.oxw(3);v.Q6J("status",Be.status)}}function st(wt,Ve){if(1&wt&&(v.TgZ(0,"span",18),v.YNc(1,Ye,1,1,"nz-form-item-feedback-icon",15),v.qZA()),2&wt){const Be=v.oxw(2);v.xp6(1),v.Q6J("ngIf",Be.isFeedback)}}function Ze(wt,Ve){if(1&wt&&(v.Hsn(0),v.YNc(1,st,2,1,"span",17)),2&wt){const Be=v.oxw();v.xp6(1),v.Q6J("ngIf",!Be.isAddOn&&!Be.isAffix&&Be.isFeedback)}}let Bt=(()=>{class wt{onModelChange(Be){this.parsedValue=this.nzParser(Be),this.inputElement.nativeElement.value=`${this.parsedValue}`;const He=this.getCurrentValidValue(this.parsedValue);this.setValue(He)}getCurrentValidValue(Be){let He=Be;return He=""===He?"":this.isNotCompleteNumber(He)?this.value:`${this.getValidValue(He)}`,this.toNumber(He)}isNotCompleteNumber(Be){return isNaN(Be)||""===Be||null===Be||!(!Be||Be.toString().indexOf(".")!==Be.toString().length-1)}getValidValue(Be){let He=parseFloat(Be);return isNaN(He)?Be:(Hethis.nzMax&&(He=this.nzMax),He)}toNumber(Be){if(this.isNotCompleteNumber(Be))return Be;const He=String(Be);if(He.indexOf(".")>=0&&(0,M.DX)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(Be,this.nzPrecision);if("cut"===this.nzPrecisionMode){const je=He.split(".");return je[1]=je[1].slice(0,this.nzPrecision),Number(je.join("."))}return Number(Number(Be).toFixed(this.nzPrecision))}return Number(Be)}getRatio(Be){let He=1;return Be.metaKey||Be.ctrlKey?He=.1:Be.shiftKey&&(He=10),He}down(Be,He){this.isFocused||this.focus(),this.step("down",Be,He)}up(Be,He){this.isFocused||this.focus(),this.step("up",Be,He)}getPrecision(Be){const He=Be.toString();if(He.indexOf("e-")>=0)return parseInt(He.slice(He.indexOf("e-")+2),10);let je=0;return He.indexOf(".")>=0&&(je=He.length-He.indexOf(".")-1),je}getMaxPrecision(Be,He){if((0,M.DX)(this.nzPrecision))return this.nzPrecision;const je=this.getPrecision(He),Ne=this.getPrecision(this.nzStep),De=this.getPrecision(Be);return Be?Math.max(De,je+Ne):je+Ne}getPrecisionFactor(Be,He){const je=this.getMaxPrecision(Be,He);return Math.pow(10,je)}upStep(Be,He){const je=this.getPrecisionFactor(Be,He),Ne=Math.abs(this.getMaxPrecision(Be,He));let De;return De="number"==typeof Be?((je*Be+je*this.nzStep*He)/je).toFixed(Ne):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(De)}downStep(Be,He){const je=this.getPrecisionFactor(Be,He),Ne=Math.abs(this.getMaxPrecision(Be,He));let De;return De="number"==typeof Be?((je*Be-je*this.nzStep*He)/je).toFixed(Ne):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(De)}step(Be,He,je=1){if(this.stop(),He.preventDefault(),this.nzDisabled)return;const Ne=this.getCurrentValidValue(this.parsedValue)||0;let De=0;"up"===Be?De=this.upStep(Ne,je):"down"===Be&&(De=this.downStep(Ne,je));const ie=De>this.nzMax||Dethis.nzMax?De=this.nzMax:De{this[Be](He,je)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(Be){if(`${this.value}`!=`${Be}`&&this.onChange(Be),this.value=Be,this.parsedValue=Be,this.disabledUp=this.disabledDown=!1,Be||0===Be){const He=Number(Be);He>=this.nzMax&&(this.disabledUp=!0),He<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(Be){const He=(0,M.DX)(this.nzFormatter(Be))?this.nzFormatter(Be):"";this.displayValue=He,this.inputElement.nativeElement.value=`${He}`}writeValue(Be){this.value=Be,this.setValue(Be),this.updateDisplayValue(Be),this.cdr.markForCheck()}registerOnChange(Be){this.onChange=Be}registerOnTouched(Be){this.onTouched=Be}setDisabledState(Be){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Be,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Be,He,je,Ne,De,ie,Ce,ve,qe){this.ngZone=Be,this.elementRef=He,this.cdr=je,this.focusMonitor=Ne,this.renderer=De,this.directionality=ie,this.destroy$=Ce,this.nzFormStatusService=ve,this.nzFormNoStatusService=qe,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new s.x,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.status="",this.statusCls={},this.hasFeedback=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new v.vpe,this.nzFocus=new v.vpe,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=ct=>ct.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStatus="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzReadOnly=!1,this.nzAutoFocus=!1,this.nzBorderless=!1,this.nzFormatter=ct=>ct}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,$.x)((Be,He)=>Be.status===He.status&&Be.hasFeedback===He.hasFeedback),(0,I.R)(this.destroy$)).subscribe(({status:Be,hasFeedback:He})=>{this.setStatusStyles(Be,He)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,I.R)(this.destroy$)).subscribe(Be=>{Be?(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,I.R)(this.destroy$)).subscribe(Be=>{this.dir=Be}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,L.R)(this.inputElement.nativeElement,"keyup").pipe((0,I.R)(this.destroy$)).subscribe(()=>this.stop()),(0,L.R)(this.inputElement.nativeElement,"keydown").pipe((0,I.R)(this.destroy$)).subscribe(Be=>{const{keyCode:He}=Be;He!==i.LH&&He!==i.JH&&He!==i.K5||this.ngZone.run(()=>{if(He===i.LH){const je=this.getRatio(Be);this.up(Be,je),this.stop()}else if(He===i.JH){const je=this.getRatio(Be);this.down(Be,je),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(Be){const{nzStatus:He,nzDisabled:je}=Be;if(Be.nzFormatter&&!Be.nzFormatter.isFirstChange()){const Ne=this.getCurrentValidValue(this.parsedValue);this.setValue(Ne),this.updateDisplayValue(Ne)}je&&this.disabled$.next(this.nzDisabled),He&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,j.T)((0,L.R)(this.upHandler.nativeElement,"mouseup"),(0,L.R)(this.upHandler.nativeElement,"mouseleave"),(0,L.R)(this.downHandler.nativeElement,"mouseup"),(0,L.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,I.R)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(Be,He){this.status=Be,this.hasFeedback=He,this.cdr.markForCheck(),this.statusCls=(0,M.Zu)(this.prefixCls,Be,He),Object.keys(this.statusCls).forEach(je=>{this.statusCls[je]?this.renderer.addClass(this.elementRef.nativeElement,je):this.renderer.removeClass(this.elementRef.nativeElement,je)})}}return wt.\u0275fac=function(Be){return new(Be||wt)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(e.tE),v.Y36(v.Qsj),v.Y36(R.Is,8),v.Y36(w.kn),v.Y36(pe.kH,8),v.Y36(pe.yW,8))},wt.\u0275cmp=v.Xpm({type:wt,selectors:[["nz-input-number"]],viewQuery:function(Be,He){if(1&Be&&(v.Gf(V,7),v.Gf(O,7),v.Gf(P,7)),2&Be){let je;v.iGM(je=v.CRH())&&(He.upHandler=je.first),v.iGM(je=v.CRH())&&(He.downHandler=je.first),v.iGM(je=v.CRH())&&(He.inputElement=je.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(Be,He){2&Be&&v.ekj("ant-input-number-in-form-item",!!He.nzFormStatusService)("ant-input-number-focused",He.isFocused)("ant-input-number-lg","large"===He.nzSize)("ant-input-number-sm","small"===He.nzSize)("ant-input-number-disabled",He.nzDisabled)("ant-input-number-readonly",He.nzReadOnly)("ant-input-number-rtl","rtl"===He.dir)("ant-input-number-borderless",He.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzReadOnly:"nzReadOnly",nzAutoFocus:"nzAutoFocus",nzBorderless:"nzBorderless",nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[v._Bn([{provide:d.JU,useExisting:(0,v.Gpc)(()=>wt),multi:!0},w.kn]),v.TTD],decls:11,vars:15,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["upHandler",""],["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"],["downHandler",""],["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","readOnly","ngModel","ngModelChange"],["inputElement",""],["class","ant-input-number-suffix",3,"status",4,"ngIf"],[1,"ant-input-number-suffix",3,"status"]],template:function(Be,He){1&Be&&(v.TgZ(0,"div",0)(1,"span",1,2),v.NdJ("mousedown",function(Ne){return He.up(Ne)}),v._UZ(3,"span",3),v.qZA(),v.TgZ(4,"span",4,5),v.NdJ("mousedown",function(Ne){return He.down(Ne)}),v._UZ(6,"span",6),v.qZA()(),v.TgZ(7,"div",7)(8,"input",8,9),v.NdJ("ngModelChange",function(Ne){return He.onModelChange(Ne)}),v.qZA()(),v.YNc(10,D,1,1,"nz-form-item-feedback-icon",10)),2&Be&&(v.xp6(1),v.ekj("ant-input-number-handler-up-disabled",He.disabledUp),v.xp6(3),v.ekj("ant-input-number-handler-down-disabled",He.disabledDown),v.xp6(4),v.Q6J("disabled",He.nzDisabled)("placeholder",He.nzPlaceHolder)("readOnly",He.nzReadOnly)("ngModel",He.displayValue),v.uIk("id",He.nzId)("autofocus",He.nzAutoFocus?"autofocus":null)("min",He.nzMin)("max",He.nzMax)("step",He.nzStep)("inputmode",He.nzInputMode),v.xp6(2),v.Q6J("ngIf",He.hasFeedback&&!!He.status&&!He.nzFormNoStatusService))},dependencies:[me.O5,d.Fj,d.JJ,d.On,Z.Ls,pe.w_],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,M.yF)()],wt.prototype,"nzDisabled",void 0),(0,t.gn)([(0,M.yF)()],wt.prototype,"nzReadOnly",void 0),(0,t.gn)([(0,M.yF)()],wt.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,M.yF)()],wt.prototype,"nzBorderless",void 0),wt})(),Jt=(()=>{class wt{constructor(){this.icon=null,this.type=null,this.template=null}}return wt.\u0275fac=function(Be){return new(Be||wt)},wt.\u0275cmp=v.Xpm({type:wt,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(Be,He){2&Be&&v.ekj("ant-input-number-group-addon","addon"===He.type)("ant-input-number-prefix","prefix"===He.type)("ant-input-number-suffix","suffix"===He.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:re,ngContentSelectors:fe,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(Be,He){1&Be&&(v.F$t(),v.YNc(0,ae,1,1,"span",0),v.YNc(1,Q,2,1,"ng-container",1),v.Hsn(2)),2&Be&&(v.Q6J("ngIf",He.icon),v.xp6(1),v.Q6J("nzStringTemplateOutlet",He.template))},dependencies:[me.O5,A.f,Z.Ls],encapsulation:2,changeDetection:0}),wt})(),On=(()=>{class wt{constructor(Be,He,je,Ne,De,ie,Ce){this.focusMonitor=Be,this.elementRef=He,this.renderer=je,this.cdr=Ne,this.directionality=De,this.nzFormStatusService=ie,this.nzFormNoStatusService=Ce,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new s.x}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(Be=>Be.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,$.x)((Be,He)=>Be.status===He.status&&Be.hasFeedback===He.hasFeedback),(0,I.R)(this.destroy$)).subscribe(({status:Be,hasFeedback:He})=>{this.setStatusStyles(Be,He)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,I.R)(this.destroy$)).subscribe(Be=>{this.focused=!!Be,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,I.R)(this.destroy$)).subscribe(Be=>{this.dir=Be})}ngAfterContentInit(){this.updateChildrenInputSize();const Be=this.listOfNzInputNumberComponent.changes.pipe((0,S.O)(this.listOfNzInputNumberComponent));Be.pipe((0,F.w)(He=>(0,j.T)(Be,...He.map(je=>je.disabled$))),(0,k.z)(()=>Be),(0,U.U)(He=>He.some(je=>je.nzDisabled)),(0,I.R)(this.destroy$)).subscribe(He=>{this.disabled=He,this.cdr.markForCheck()})}ngOnChanges(Be){const{nzSize:He,nzSuffix:je,nzPrefix:Ne,nzPrefixIcon:De,nzSuffixIcon:ie,nzAddOnAfter:Ce,nzAddOnBefore:ve,nzAddOnAfterIcon:qe,nzAddOnBeforeIcon:ct,nzStatus:Zt}=Be;He&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(je||Ne||De||ie)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Ce||ve||qe||ct)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Zt&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Be,He){this.status=Be,this.hasFeedback=He,this.isFeedback=!!Be&&He,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&He,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,M.Zu)(`${this.prefixCls}-affix-wrapper`,Be,He):{},this.cdr.markForCheck(),this.affixStatusCls=(0,M.Zu)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Be,!this.isAddOn&&He),this.groupStatusCls=(0,M.Zu)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Be:"",!!this.isAddOn&&He);const Ne={...this.affixStatusCls,...this.groupStatusCls};Object.keys(Ne).forEach(De=>{Ne[De]?this.renderer.addClass(this.elementRef.nativeElement,De):this.renderer.removeClass(this.elementRef.nativeElement,De)})}}return wt.\u0275fac=function(Be){return new(Be||wt)(v.Y36(e.tE),v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(v.sBO),v.Y36(R.Is,8),v.Y36(pe.kH,8),v.Y36(pe.yW,8))},wt.\u0275cmp=v.Xpm({type:wt,selectors:[["nz-input-number-group"]],contentQueries:function(Be,He,je){if(1&Be&&v.Suo(je,Bt,5),2&Be){let Ne;v.iGM(Ne=v.CRH())&&(He.listOfNzInputNumberComponent=Ne)}},hostVars:24,hostBindings:function(Be,He){2&Be&&v.ekj("ant-input-number-group",He.nzCompact)("ant-input-number-group-compact",He.nzCompact)("ant-input-number-group-wrapper",He.isAddOn)("ant-input-number-group-wrapper-rtl",He.isAddOn&&"rtl"===He.dir)("ant-input-number-group-wrapper-lg",He.isAddOn&&He.isLarge)("ant-input-number-group-wrapper-sm",He.isAddOn&&He.isSmall)("ant-input-number-affix-wrapper",!He.isAddOn&&He.isAffix)("ant-input-number-affix-wrapper-rtl",!He.isAddOn&&"rtl"===He.dir)("ant-input-number-affix-wrapper-focused",!He.isAddOn&&He.isAffix&&He.focused)("ant-input-number-affix-wrapper-disabled",!He.isAddOn&&He.isAffix&&He.disabled)("ant-input-number-affix-wrapper-lg",!He.isAddOn&&He.isAffix&&He.isLarge)("ant-input-number-affix-wrapper-sm",!He.isAddOn&&He.isAffix&&He.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:"nzCompact"},exportAs:["nzInputNumberGroup"],features:[v._Bn([pe.yW]),v.TTD],ngContentSelectors:fe,decls:7,vars:2,consts:[["class","ant-input-number-wrapper ant-input-number-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-number-affix-wrapper",3,"ant-input-number-affix-wrapper-disabled","ant-input-number-affix-wrapper-sm","ant-input-number-affix-wrapper-lg","ant-input-number-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-number-group-slot","","type","suffix",4,"ngIf"],["nz-input-number-group-slot","","type","suffix"]],template:function(Be,He){if(1&Be&&(v.F$t(),v.YNc(0,Rt,4,4,"span",0),v.YNc(1,yt,1,2,"ng-template",null,1,v.W1O),v.YNc(3,rt,3,3,"ng-template",null,2,v.W1O),v.YNc(5,Ze,2,1,"ng-template",null,3,v.W1O)),2&Be){const je=v.MAs(2);v.Q6J("ngIf",He.isAddOn)("ngIfElse",je)}},dependencies:[me.mk,me.O5,me.tP,pe.w_,Jt],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,M.yF)()],wt.prototype,"nzCompact",void 0),wt})(),cn=(()=>{class wt{}return wt.\u0275fac=function(Be){return new(Be||wt)},wt.\u0275mod=v.oAB({type:wt}),wt.\u0275inj=v.cJS({imports:[R.vT,me.ez,d.u5,A.T,Z.PV,pe.mJ]}),wt})()},824:(It,be,a)=>{a.d(be,{Zp:()=>Ye,gB:()=>Bt,ke:()=>Ze,o7:()=>On,rh:()=>Jt});var t=a(655),i=a(5879),v=a(8645),d=a(3019),s=a(3997),L=a(9773),j=a(2181),$=a(7921),I=a(4664),S=a(1631),F=a(7398),k=a(883),U=a(7754),w=a(6223),M=a(9388),e=a(4300),R=a(6814),pe=a(551),me=a(8324),Z=a(2831),A=a(9087);const V=["nz-input-group-slot",""];function O(cn,wt){if(1&cn&&i._UZ(0,"span",2),2&cn){const Ve=i.oxw();i.Q6J("nzType",Ve.icon)}}function P(cn,wt){if(1&cn&&(i.ynx(0),i._uU(1),i.BQk()),2&cn){const Ve=i.oxw();i.xp6(1),i.Oqu(Ve.template)}}const D=["*"];function re(cn,wt){if(1&cn&&i._UZ(0,"span",7),2&cn){const Ve=i.oxw(2);i.Q6J("icon",Ve.nzAddOnBeforeIcon)("template",Ve.nzAddOnBefore)}}function ae(cn,wt){}function Q(cn,wt){if(1&cn&&(i.TgZ(0,"span",8),i.YNc(1,ae,0,0,"ng-template",9),i.qZA()),2&cn){const Ve=i.oxw(2),Be=i.MAs(4);i.ekj("ant-input-affix-wrapper-disabled",Ve.disabled)("ant-input-affix-wrapper-sm",Ve.isSmall)("ant-input-affix-wrapper-lg",Ve.isLarge)("ant-input-affix-wrapper-focused",Ve.focused),i.Q6J("ngClass",Ve.affixInGroupStatusCls),i.xp6(1),i.Q6J("ngTemplateOutlet",Be)}}function fe(cn,wt){if(1&cn&&i._UZ(0,"span",7),2&cn){const Ve=i.oxw(2);i.Q6J("icon",Ve.nzAddOnAfterIcon)("template",Ve.nzAddOnAfter)}}function ue(cn,wt){if(1&cn&&(i.TgZ(0,"span",4),i.YNc(1,re,1,2,"span",5),i.YNc(2,Q,2,10,"span",6),i.YNc(3,fe,1,2,"span",5),i.qZA()),2&cn){const Ve=i.oxw(),Be=i.MAs(6);i.xp6(1),i.Q6J("ngIf",Ve.nzAddOnBefore||Ve.nzAddOnBeforeIcon),i.xp6(1),i.Q6J("ngIf",Ve.isAffix||Ve.hasFeedback)("ngIfElse",Be),i.xp6(1),i.Q6J("ngIf",Ve.nzAddOnAfter||Ve.nzAddOnAfterIcon)}}function ge(cn,wt){}function Se(cn,wt){if(1&cn&&i.YNc(0,ge,0,0,"ng-template",9),2&cn){i.oxw(2);const Ve=i.MAs(4);i.Q6J("ngTemplateOutlet",Ve)}}function ke(cn,wt){if(1&cn&&i.YNc(0,Se,1,1,"ng-template",10),2&cn){const Ve=i.oxw(),Be=i.MAs(6);i.Q6J("ngIf",Ve.isAffix)("ngIfElse",Be)}}function Rt(cn,wt){if(1&cn&&i._UZ(0,"span",13),2&cn){const Ve=i.oxw(2);i.Q6J("icon",Ve.nzPrefixIcon)("template",Ve.nzPrefix)}}function Ft(cn,wt){}function Mt(cn,wt){if(1&cn&&i._UZ(0,"nz-form-item-feedback-icon",16),2&cn){const Ve=i.oxw(3);i.Q6J("status",Ve.status)}}function yt(cn,wt){if(1&cn&&(i.TgZ(0,"span",14),i.YNc(1,Mt,1,1,"nz-form-item-feedback-icon",15),i.qZA()),2&cn){const Ve=i.oxw(2);i.Q6J("icon",Ve.nzSuffixIcon)("template",Ve.nzSuffix),i.xp6(1),i.Q6J("ngIf",Ve.isFeedback)}}function Ct(cn,wt){if(1&cn&&(i.YNc(0,Rt,1,2,"span",11),i.YNc(1,Ft,0,0,"ng-template",9),i.YNc(2,yt,2,3,"span",12)),2&cn){const Ve=i.oxw(),Be=i.MAs(6);i.Q6J("ngIf",Ve.nzPrefix||Ve.nzPrefixIcon),i.xp6(1),i.Q6J("ngTemplateOutlet",Be),i.xp6(1),i.Q6J("ngIf",Ve.nzSuffix||Ve.nzSuffixIcon||Ve.isFeedback)}}function Lt(cn,wt){if(1&cn&&(i.TgZ(0,"span",18),i._UZ(1,"nz-form-item-feedback-icon",16),i.qZA()),2&cn){const Ve=i.oxw(2);i.xp6(1),i.Q6J("status",Ve.status)}}function rn(cn,wt){if(1&cn&&(i.Hsn(0),i.YNc(1,Lt,2,1,"span",17)),2&cn){const Ve=i.oxw();i.xp6(1),i.Q6J("ngIf",!Ve.isAddOn&&!Ve.isAffix&&Ve.isFeedback)}}let Ye=(()=>{class cn{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ve){this._disabled=null!=Ve&&"false"!=`${Ve}`}constructor(Ve,Be,He,je,Ne,De,ie){this.ngControl=Ve,this.renderer=Be,this.elementRef=He,this.hostView=je,this.directionality=Ne,this.nzFormStatusService=De,this.nzFormNoStatusService=ie,this.nzBorderless=!1,this.nzSize="default",this.nzStatus="",this._disabled=!1,this.disabled$=new v.x,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new v.x}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,s.x)((Ve,Be)=>Ve.status===Be.status&&Ve.hasFeedback===Be.hasFeedback),(0,L.R)(this.destroy$)).subscribe(({status:Ve,hasFeedback:Be})=>{this.setStatusStyles(Ve,Be)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,j.h)(()=>null!==this.ngControl.disabled),(0,L.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(Ve=>{this.dir=Ve})}ngOnChanges(Ve){const{disabled:Be,nzStatus:He}=Ve;Be&&this.disabled$.next(this.disabled),He&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ve,Be){this.status=Ve,this.hasFeedback=Be,this.renderFeedbackIcon(),this.statusCls=(0,U.Zu)(this.prefixCls,Ve,Be),Object.keys(this.statusCls).forEach(He=>{this.statusCls[He]?this.renderer.addClass(this.elementRef.nativeElement,He):this.renderer.removeClass(this.elementRef.nativeElement,He)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(k.w_),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}}return cn.\u0275fac=function(Ve){return new(Ve||cn)(i.Y36(w.a5,10),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(M.Is,8),i.Y36(k.kH,8),i.Y36(k.yW,8))},cn.\u0275dir=i.lG2({type:cn,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:11,hostBindings:function(Ve,Be){2&Ve&&(i.uIk("disabled",Be.disabled||null),i.ekj("ant-input-disabled",Be.disabled)("ant-input-borderless",Be.nzBorderless)("ant-input-lg","large"===Be.nzSize)("ant-input-sm","small"===Be.nzSize)("ant-input-rtl","rtl"===Be.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",nzStatus:"nzStatus",disabled:"disabled"},exportAs:["nzInput"],features:[i.TTD]}),(0,t.gn)([(0,U.yF)()],cn.prototype,"nzBorderless",void 0),cn})(),st=(()=>{class cn{constructor(){this.icon=null,this.type=null,this.template=null}}return cn.\u0275fac=function(Ve){return new(Ve||cn)},cn.\u0275cmp=i.Xpm({type:cn,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(Ve,Be){2&Ve&&i.ekj("ant-input-group-addon","addon"===Be.type)("ant-input-prefix","prefix"===Be.type)("ant-input-suffix","suffix"===Be.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:V,ngContentSelectors:D,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(Ve,Be){1&Ve&&(i.F$t(),i.YNc(0,O,1,1,"span",0),i.YNc(1,P,2,1,"ng-container",1),i.Hsn(2)),2&Ve&&(i.Q6J("ngIf",Be.icon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Be.template))},dependencies:[R.O5,pe.Ls,me.f],encapsulation:2,changeDetection:0}),cn})(),Ze=(()=>{class cn{constructor(Ve){this.elementRef=Ve}}return cn.\u0275fac=function(Ve){return new(Ve||cn)(i.Y36(i.SBq))},cn.\u0275dir=i.lG2({type:cn,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),cn})(),Bt=(()=>{class cn{constructor(Ve,Be,He,je,Ne,De,ie){this.focusMonitor=Ve,this.elementRef=Be,this.renderer=He,this.cdr=je,this.directionality=Ne,this.nzFormStatusService=De,this.nzFormNoStatusService=ie,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new v.x}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Ve=>Ve.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,s.x)((Ve,Be)=>Ve.status===Be.status&&Ve.hasFeedback===Be.hasFeedback),(0,L.R)(this.destroy$)).subscribe(({status:Ve,hasFeedback:Be})=>{this.setStatusStyles(Ve,Be)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(Ve=>{this.focused=!!Ve,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(Ve=>{this.dir=Ve})}ngAfterContentInit(){this.updateChildrenInputSize();const Ve=this.listOfNzInputDirective.changes.pipe((0,$.O)(this.listOfNzInputDirective));Ve.pipe((0,I.w)(Be=>(0,d.T)(Ve,...Be.map(He=>He.disabled$))),(0,S.z)(()=>Ve),(0,F.U)(Be=>Be.some(He=>He.disabled)),(0,L.R)(this.destroy$)).subscribe(Be=>{this.disabled=Be,this.cdr.markForCheck()})}ngOnChanges(Ve){const{nzSize:Be,nzSuffix:He,nzPrefix:je,nzPrefixIcon:Ne,nzSuffixIcon:De,nzAddOnAfter:ie,nzAddOnBefore:Ce,nzAddOnAfterIcon:ve,nzAddOnBeforeIcon:qe,nzStatus:ct}=Ve;Be&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(He||je||Ne||De)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(ie||Ce||ve||qe)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),ct&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ve,Be){this.status=Ve,this.hasFeedback=Be,this.isFeedback=!!Ve&&Be,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&Be,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,U.Zu)(`${this.prefixCls}-affix-wrapper`,Ve,Be):{},this.cdr.markForCheck(),this.affixStatusCls=(0,U.Zu)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Ve,!this.isAddOn&&Be),this.groupStatusCls=(0,U.Zu)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Ve:"",!!this.isAddOn&&Be);const je={...this.affixStatusCls,...this.groupStatusCls};Object.keys(je).forEach(Ne=>{je[Ne]?this.renderer.addClass(this.elementRef.nativeElement,Ne):this.renderer.removeClass(this.elementRef.nativeElement,Ne)})}}return cn.\u0275fac=function(Ve){return new(Ve||cn)(i.Y36(e.tE),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(M.Is,8),i.Y36(k.kH,8),i.Y36(k.yW,8))},cn.\u0275cmp=i.Xpm({type:cn,selectors:[["nz-input-group"]],contentQueries:function(Ve,Be,He){if(1&Ve&&i.Suo(He,Ye,4),2&Ve){let je;i.iGM(je=i.CRH())&&(Be.listOfNzInputDirective=je)}},hostVars:40,hostBindings:function(Ve,Be){2&Ve&&i.ekj("ant-input-group-compact",Be.nzCompact)("ant-input-search-enter-button",Be.nzSearch)("ant-input-search",Be.nzSearch)("ant-input-search-rtl","rtl"===Be.dir)("ant-input-search-sm",Be.nzSearch&&Be.isSmall)("ant-input-search-large",Be.nzSearch&&Be.isLarge)("ant-input-group-wrapper",Be.isAddOn)("ant-input-group-wrapper-rtl","rtl"===Be.dir)("ant-input-group-wrapper-lg",Be.isAddOn&&Be.isLarge)("ant-input-group-wrapper-sm",Be.isAddOn&&Be.isSmall)("ant-input-affix-wrapper",Be.isAffix&&!Be.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===Be.dir)("ant-input-affix-wrapper-focused",Be.isAffix&&Be.focused)("ant-input-affix-wrapper-disabled",Be.isAffix&&Be.disabled)("ant-input-affix-wrapper-lg",Be.isAffix&&!Be.isAddOn&&Be.isLarge)("ant-input-affix-wrapper-sm",Be.isAffix&&!Be.isAddOn&&Be.isSmall)("ant-input-group",!Be.isAffix&&!Be.isAddOn)("ant-input-group-rtl","rtl"===Be.dir)("ant-input-group-lg",!Be.isAffix&&!Be.isAddOn&&Be.isLarge)("ant-input-group-sm",!Be.isAffix&&!Be.isAddOn&&Be.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[i._Bn([k.yW]),i.TTD],ngContentSelectors:D,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-disabled","ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg","ant-input-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper",3,"ngClass"],[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"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-group-slot","","type","suffix",4,"ngIf"],["nz-input-group-slot","","type","suffix"]],template:function(Ve,Be){if(1&Ve&&(i.F$t(),i.YNc(0,ue,4,4,"span",0),i.YNc(1,ke,1,2,"ng-template",null,1,i.W1O),i.YNc(3,Ct,3,3,"ng-template",null,2,i.W1O),i.YNc(5,rn,2,1,"ng-template",null,3,i.W1O)),2&Ve){const He=i.MAs(2);i.Q6J("ngIf",Be.isAddOn)("ngIfElse",He)}},dependencies:[R.mk,R.O5,R.tP,k.w_,st],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,U.yF)()],cn.prototype,"nzSearch",void 0),(0,t.gn)([(0,U.yF)()],cn.prototype,"nzCompact",void 0),cn})(),Jt=(()=>{class cn{set nzAutosize(Ve){var He;"string"==typeof Ve||!0===Ve?this.autosize=!0:"string"!=typeof(He=Ve)&&"boolean"!=typeof He&&(He.maxRows||He.minRows)&&(this.autosize=!0,this.minRows=Ve.minRows,this.maxRows=Ve.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Ve=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Be=this.el,He=Be.value;if(!Ve&&this.minRows===this.previousMinRows&&He===this.previousValue)return;const je=Be.placeholder;Be.classList.add("nz-textarea-autosize-measuring"),Be.placeholder="";let Ne=Math.round((Be.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&Ne>this.maxHeight&&(Ne=this.maxHeight),null!==this.minHeight&&NerequestAnimationFrame(()=>{const{selectionStart:De,selectionEnd:ie}=Be;!this.destroy$.isStopped&&document.activeElement===Be&&Be.setSelectionRange(De,ie)})),this.previousValue=He,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Ve=this.el.cloneNode(!1);Ve.rows=1,Ve.style.position="absolute",Ve.style.visibility="hidden",Ve.style.border="none",Ve.style.padding="0",Ve.style.height="",Ve.style.minHeight="",Ve.style.maxHeight="",Ve.style.overflow="hidden",this.el.parentNode.appendChild(Ve),this.cachedLineHeight=Ve.clientHeight-this.inputGap,this.el.parentNode.removeChild(Ve),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Ve=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Ve&&(this.el.style.minHeight=`${Ve}px`),Ve}setMaxHeight(){const Ve=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Ve&&(this.el.style.maxHeight=`${Ve}px`),Ve}noopInputHandler(){}constructor(Ve,Be,He,je){this.elementRef=Ve,this.ngZone=Be,this.platform=He,this.resizeService=je,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new v.x,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,L.R)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}}return cn.\u0275fac=function(Ve){return new(Ve||cn)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Z.t4),i.Y36(A.rI))},cn.\u0275dir=i.lG2({type:cn,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(Ve,Be){1&Ve&&i.NdJ("input",function(){return Be.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"]}),cn})(),On=(()=>{class cn{}return cn.\u0275fac=function(Ve){return new(Ve||cn)},cn.\u0275mod=i.oAB({type:cn}),cn.\u0275inj=i.cJS({imports:[M.vT,R.ez,pe.PV,Z.ud,me.T,k.mJ]}),cn})()},6976:(It,be,a)=>{a.d(be,{n_:()=>Nt,I2:()=>ze,t4:()=>mt,KC:()=>dt,nk:()=>se,AA:()=>pt,yw:()=>Qe,yi:()=>mn,Pb:()=>Vt,IO:()=>ot,Ph:()=>ee});var t=a(5879),i=a(6814),v=a(6928),d=a(8324),s=a(655),L=a(7754),j=a(8645),$=a(4911),I=a(2096),S=a(3019),F=a(5592),k=a(5619),U=a(8180),w=a(7398),M=a(4829),e=a(9360),R=a(8251);function pe(H,Te){return Te?$e=>$e.pipe(pe((Tt,Xt)=>(0,M.Xf)(H(Tt,Xt)).pipe((0,w.U)((qt,Un)=>Te(Tt,qt,Xt,Un))))):(0,e.e)(($e,Tt)=>{let Xt=0,qt=null,Un=!1;$e.subscribe((0,R.x)(Tt,zn=>{qt||(qt=(0,R.x)(Tt,void 0,()=>{qt=null,Un&&Tt.complete()}),(0,M.Xf)(H(zn,Xt++)).subscribe(qt))},()=>{Un=!0,!qt&&Tt.complete()}))})}var me=a(7921),Z=a(9773),A=a(9087),V=a(804),O=a(9388),P=a(2669),D=a(95);const re=["*"];function ae(H,Te){if(1&H&&t._UZ(0,"nz-avatar",3),2&H){const $e=t.oxw();t.Q6J("nzSrc",$e.nzSrc)}}function Q(H,Te){1&H&&t.Hsn(0,0,["*ngIf","!nzSrc"])}function fe(H,Te){if(1&H&&t._UZ(0,"nz-list-item-meta-avatar",3),2&H){const $e=t.oxw();t.Q6J("nzSrc",$e.avatarStr)}}function ue(H,Te){if(1&H&&(t.TgZ(0,"nz-list-item-meta-avatar"),t.GkF(1,4),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",$e.avatarTpl)}}function ge(H,Te){if(1&H&&(t.ynx(0),t._uU(1),t.BQk()),2&H){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzTitle)}}function Se(H,Te){if(1&H&&(t.TgZ(0,"nz-list-item-meta-title"),t.YNc(1,ge,2,1,"ng-container",6),t.qZA()),2&H){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzTitle)}}function ke(H,Te){if(1&H&&(t.ynx(0),t._uU(1),t.BQk()),2&H){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzDescription)}}function Rt(H,Te){if(1&H&&(t.TgZ(0,"nz-list-item-meta-description"),t.YNc(1,ke,2,1,"ng-container",6),t.qZA()),2&H){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzDescription)}}function Ft(H,Te){if(1&H&&(t.TgZ(0,"div",5),t.YNc(1,Se,2,1,"nz-list-item-meta-title",1),t.YNc(2,Rt,2,1,"nz-list-item-meta-description",1),t.Hsn(3,1),t.Hsn(4,2),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("ngIf",$e.nzTitle&&!$e.titleComponent),t.xp6(1),t.Q6J("ngIf",$e.nzDescription&&!$e.descriptionComponent)}}const Mt=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],yt=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function Ct(H,Te){1&H&&t.Hsn(0)}const Lt=["nz-list-item-actions",""];function rn(H,Te){}function Sn(H,Te){1&H&&t._UZ(0,"em",3)}function rt(H,Te){if(1&H&&(t.TgZ(0,"li"),t.YNc(1,rn,0,0,"ng-template",1),t.YNc(2,Sn,1,0,"em",2),t.qZA()),2&H){const $e=Te.$implicit,Tt=Te.last;t.xp6(1),t.Q6J("ngTemplateOutlet",$e),t.xp6(1),t.Q6J("ngIf",!Tt)}}function Ye(H,Te){}const st=function(H,Te){return{$implicit:H,index:Te}};function Ze(H,Te){if(1&H&&(t.ynx(0),t.YNc(1,Ye,0,0,"ng-template",9),t.BQk()),2&H){const $e=Te.$implicit,Tt=Te.index,Xt=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",Xt.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,st,$e,Tt))}}function Bt(H,Te){if(1&H&&(t.TgZ(0,"div",7),t.YNc(1,Ze,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("ngForOf",$e.nzDataSource)}}function Jt(H,Te){if(1&H&&(t.ynx(0),t._uU(1),t.BQk()),2&H){const $e=t.oxw(2);t.xp6(1),t.Oqu($e.nzHeader)}}function _n(H,Te){if(1&H&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Jt,2,1,"ng-container",10),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzHeader)}}function On(H,Te){1&H&&t._UZ(0,"div"),2&H&&t.Udp("min-height",53,"px")}function cn(H,Te){}function wt(H,Te){if(1&H&&(t.TgZ(0,"div",13),t.YNc(1,cn,0,0,"ng-template",9),t.qZA()),2&H){const $e=Te.$implicit,Tt=Te.index,Xt=t.oxw(2);t.Q6J("nzSpan",Xt.nzGrid.span||null)("nzXs",Xt.nzGrid.xs||null)("nzSm",Xt.nzGrid.sm||null)("nzMd",Xt.nzGrid.md||null)("nzLg",Xt.nzGrid.lg||null)("nzXl",Xt.nzGrid.xl||null)("nzXXl",Xt.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",Xt.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,st,$e,Tt))}}function Ve(H,Te){if(1&H&&(t.TgZ(0,"div",11),t.YNc(1,wt,2,12,"div",12),t.qZA()),2&H){const $e=t.oxw();t.Q6J("nzGutter",$e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",$e.nzDataSource)}}function Be(H,Te){if(1&H&&t._UZ(0,"nz-list-empty",14),2&H){const $e=t.oxw();t.Q6J("nzNoResult",$e.nzNoResult)}}function He(H,Te){if(1&H&&(t.ynx(0),t._uU(1),t.BQk()),2&H){const $e=t.oxw(2);t.xp6(1),t.Oqu($e.nzFooter)}}function je(H,Te){if(1&H&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,He,2,1,"ng-container",10),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzFooter)}}function Ne(H,Te){}function De(H,Te){}function ie(H,Te){if(1&H&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,De,0,0,"ng-template",6),t.qZA()),2&H){const $e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzPagination)}}const Ce=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],ve=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function qe(H,Te){if(1&H&&t._UZ(0,"ul",6),2&H){const $e=t.oxw(2);t.Q6J("nzActions",$e.nzActions)}}function ct(H,Te){if(1&H&&(t.YNc(0,qe,1,1,"ul",5),t.Hsn(1)),2&H){const $e=t.oxw();t.Q6J("ngIf",$e.nzActions&&$e.nzActions.length>0)}}function Zt(H,Te){if(1&H&&(t.ynx(0),t._uU(1),t.BQk()),2&H){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzContent)}}function Cn(H,Te){if(1&H&&(t.ynx(0),t.YNc(1,Zt,2,1,"ng-container",8),t.BQk()),2&H){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzContent)}}function at(H,Te){if(1&H&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,Cn,2,1,"ng-container",7)),2&H){const $e=t.oxw();t.xp6(2),t.Q6J("ngIf",$e.nzContent)}}function Xe(H,Te){1&H&&t.Hsn(0,3)}function it(H,Te){}function Ot(H,Te){}function Pt(H,Te){}function Wt(H,Te){}function kt(H,Te){if(1&H&&(t.YNc(0,it,0,0,"ng-template",9),t.YNc(1,Ot,0,0,"ng-template",9),t.YNc(2,Pt,0,0,"ng-template",9),t.YNc(3,Wt,0,0,"ng-template",9)),2&H){const $e=t.oxw(),Tt=t.MAs(3),Xt=t.MAs(5),qt=t.MAs(1);t.Q6J("ngTemplateOutlet",Tt),t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",Xt),t.xp6(1),t.Q6J("ngTemplateOutlet",qt)}}function Je(H,Te){}function K(H,Te){}function N(H,Te){}function J(H,Te){if(1&H&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,N,0,0,"ng-template",9),t.qZA()),2&H){const $e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzExtra)}}function Me(H,Te){}function zt(H,Te){if(1&H&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,Je,0,0,"ng-template",9),t.YNc(3,K,0,0,"ng-template",9),t.qZA(),t.YNc(4,J,2,1,"nz-list-item-extra",7),t.YNc(5,Me,0,0,"ng-template",9),t.BQk()),2&H){const $e=t.oxw(),Tt=t.MAs(3),Xt=t.MAs(1),qt=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",Tt),t.xp6(1),t.Q6J("ngTemplateOutlet",Xt),t.xp6(1),t.Q6J("ngIf",$e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",qt)}}const nt=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],We=["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 ot=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:re,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function($e,Tt){1&$e&&(t.F$t(),t.TgZ(0,"h4",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),H})(),Vt=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:re,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function($e,Tt){1&$e&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),H})(),St=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:re,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function($e,Tt){1&$e&&(t.F$t(),t.TgZ(0,"div",0),t.YNc(1,ae,1,1,"nz-avatar",1),t.YNc(2,Q,1,0,"ng-content",2),t.qZA()),2&$e&&(t.xp6(1),t.Q6J("ngIf",Tt.nzSrc),t.xp6(1),t.Q6J("ngIf",!Tt.nzSrc))},dependencies:[i.O5,v.Dz],encapsulation:2,changeDetection:0}),H})(),mn=(()=>{class H{set nzAvatar($e){$e instanceof t.Rgc?(this.avatarStr="",this.avatarTpl=$e):this.avatarStr=$e}constructor($e){this.elementRef=$e,this.avatarStr=""}}return H.\u0275fac=function($e){return new($e||H)(t.Y36(t.SBq))},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function($e,Tt,Xt){if(1&$e&&(t.Suo(Xt,Vt,5),t.Suo(Xt,ot,5)),2&$e){let qt;t.iGM(qt=t.CRH())&&(Tt.descriptionComponent=qt.first),t.iGM(qt=t.CRH())&&(Tt.titleComponent=qt.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:yt,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($e,Tt){1&$e&&(t.F$t(Mt),t.YNc(0,fe,1,1,"nz-list-item-meta-avatar",0),t.YNc(1,ue,2,1,"nz-list-item-meta-avatar",1),t.Hsn(2),t.YNc(3,Ft,5,2,"div",2)),2&$e&&(t.Q6J("ngIf",Tt.avatarStr),t.xp6(1),t.Q6J("ngIf",Tt.avatarTpl),t.xp6(2),t.Q6J("ngIf",Tt.nzTitle||Tt.nzDescription||Tt.descriptionComponent||Tt.titleComponent))},dependencies:[i.O5,i.tP,d.f,ot,Vt,St],encapsulation:2,changeDetection:0}),H})(),Qe=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:re,decls:1,vars:0,template:function($e,Tt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),dt=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item-action"]],viewQuery:function($e,Tt){if(1&$e&&t.Gf(t.Rgc,5),2&$e){let Xt;t.iGM(Xt=t.CRH())&&(Tt.templateRef=Xt.first)}},exportAs:["nzListItemAction"],ngContentSelectors:re,decls:1,vars:0,template:function($e,Tt){1&$e&&(t.F$t(),t.YNc(0,Ct,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),H})(),se=(()=>{class H{constructor($e,Tt,Xt){this.ngZone=$e,this.nzActions=[],this.actions=[],this.inputActionChanges$=new j.x,this.contentChildrenChanges$=(0,$.P)(()=>this.nzListItemActions?(0,I.of)(null):this.ngZone.onStable.pipe((0,U.q)(1),this.enterZone(),pe(()=>this.nzListItemActions.changes.pipe((0,me.O)(this.nzListItemActions))))),(0,S.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,Z.R)(Xt)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(qt=>qt.templateRef),Tt.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}enterZone(){return $e=>new F.y(Tt=>$e.subscribe({next:Xt=>this.ngZone.run(()=>Tt.next(Xt))}))}}return H.\u0275fac=function($e){return new($e||H)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(A.kn))},H.\u0275cmp=t.Xpm({type:H,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function($e,Tt,Xt){if(1&$e&&t.Suo(Xt,dt,4),2&$e){let qt;t.iGM(qt=t.CRH())&&(Tt.nzListItemActions=qt)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t._Bn([A.kn]),t.TTD],attrs:Lt,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($e,Tt){1&$e&&t.YNc(0,rt,3,2,"li",0),2&$e&&t.Q6J("ngForOf",Tt.actions)},dependencies:[i.sg,i.O5,i.tP],encapsulation:2,changeDetection:0}),H})(),ze=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,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($e,Tt){1&$e&&t._UZ(0,"nz-embed-empty",0),2&$e&&t.Q6J("nzComponentName","list")("specificContent",Tt.nzNoResult)},dependencies:[V.gB],encapsulation:2,changeDetection:0}),H})(),mt=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:re,decls:1,vars:0,template:function($e,Tt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),Pe=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:re,decls:1,vars:0,template:function($e,Tt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),lt=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:re,decls:1,vars:0,template:function($e,Tt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),Yt=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275dir=t.lG2({type:H,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),H})(),Nt=(()=>{class H{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor($e){this.directionality=$e,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 k.X(this.nzItemLayout),this.destroy$=new j.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,Z.R)(this.destroy$)).subscribe($e=>{this.dir=$e})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges($e){$e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return H.\u0275fac=function($e){return new($e||H)(t.Y36(O.Is,8))},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function($e,Tt,Xt){if(1&$e&&(t.Suo(Xt,Pe,5),t.Suo(Xt,lt,5),t.Suo(Xt,Yt,5)),2&$e){let qt;t.iGM(qt=t.CRH())&&(Tt.nzListFooterComponent=qt.first),t.iGM(qt=t.CRH())&&(Tt.nzListPaginationComponent=qt.first),t.iGM(qt=t.CRH())&&(Tt.nzListLoadMoreDirective=qt.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function($e,Tt){2&$e&&t.ekj("ant-list-rtl","rtl"===Tt.dir)("ant-list-vertical","vertical"===Tt.nzItemLayout)("ant-list-lg","large"===Tt.nzSize)("ant-list-sm","small"===Tt.nzSize)("ant-list-split",Tt.nzSplit)("ant-list-bordered",Tt.nzBordered)("ant-list-loading",Tt.nzLoading)("ant-list-something-after-last-item",Tt.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:[t.TTD],ngContentSelectors:ve,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($e,Tt){if(1&$e&&(t.F$t(Ce),t.YNc(0,Bt,3,1,"ng-template",null,0,t.W1O),t.YNc(2,_n,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,On,1,2,"div",3),t.YNc(7,Ve,2,2,"div",4),t.YNc(8,Be,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,je,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Ne,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,ie,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&$e){const Xt=t.MAs(1);t.xp6(2),t.Q6J("ngIf",Tt.nzHeader),t.xp6(2),t.Q6J("nzSpinning",Tt.nzLoading),t.xp6(2),t.Q6J("ngIf",Tt.nzLoading&&Tt.nzDataSource&&0===Tt.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",Tt.nzGrid&&Tt.nzDataSource)("ngIfElse",Xt),t.xp6(1),t.Q6J("ngIf",!Tt.nzLoading&&Tt.nzDataSource&&0===Tt.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",Tt.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",Tt.nzLoadMore),t.xp6(2),t.Q6J("ngIf",Tt.nzPagination)}},dependencies:[i.sg,i.O5,i.tP,P.W,D.t3,D.SK,d.f,mt,Pe,lt,ze],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,L.yF)()],H.prototype,"nzBordered",void 0),(0,s.gn)([(0,L.yF)()],H.prototype,"nzLoading",void 0),(0,s.gn)([(0,L.yF)()],H.prototype,"nzSplit",void 0),H})(),pt=(()=>{class H{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor($e,Tt){this.parentComp=$e,this.cdr=Tt,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe($e=>{this.itemLayout=$e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return H.\u0275fac=function($e){return new($e||H)(t.Y36(Nt),t.Y36(t.sBO))},H.\u0275cmp=t.Xpm({type:H,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function($e,Tt,Xt){if(1&$e&&t.Suo(Xt,Qe,5),2&$e){let qt;t.iGM(qt=t.CRH())&&(Tt.listItemExtraDirective=qt.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function($e,Tt){2&$e&&t.ekj("ant-list-item-no-flex",Tt.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:We,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($e,Tt){if(1&$e&&(t.F$t(nt),t.YNc(0,ct,2,1,"ng-template",null,0,t.W1O),t.YNc(2,at,3,1,"ng-template",null,1,t.W1O),t.YNc(4,Xe,1,0,"ng-template",null,2,t.W1O),t.YNc(6,kt,4,4,"ng-template",null,3,t.W1O),t.YNc(8,zt,6,4,"ng-container",4)),2&$e){const Xt=t.MAs(7);t.xp6(8),t.Q6J("ngIf",Tt.isVerticalAndExtra)("ngIfElse",Xt)}},dependencies:[i.O5,i.tP,d.f,se,Qe],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,L.yF)()],H.prototype,"nzNoFlex",void 0),H})(),ee=(()=>{class H{}return H.\u0275fac=function($e){return new($e||H)},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({imports:[O.vT,i.ez,P.j,D.Jb,v.Rt,d.T,V.Xo]}),H})()},3460:(It,be,a)=>{a.d(be,{Cc:()=>Be,YV:()=>Pt,hl:()=>je,ip:()=>Wt,r9:()=>De,uA:()=>Ot,wO:()=>Xe});var t=a(655),i=a(5879),v=a(8645),d=a(5619),s=a(3019),L=a(2572),j=a(7398),$=a(1631),I=a(2181),S=a(975),F=a(9028),k=a(3997),U=a(9773),w=a(7921),M=a(4664),e=a(7754),R=a(4190),pe=a(9388),me=a(9594),Z=a(5448),A=a(2831),V=a(331),O=a(6814),P=a(551),D=a(8324),re=a(4194);const ae=["nz-submenu-title",""];function Q(kt,Je){if(1&kt&&i._UZ(0,"span",4),2&kt){const K=i.oxw();i.Q6J("nzType",K.nzIcon)}}function fe(kt,Je){if(1&kt&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&kt){const K=i.oxw();i.xp6(2),i.Oqu(K.nzTitle)}}function ue(kt,Je){1&kt&&i._UZ(0,"span",8)}function ge(kt,Je){1&kt&&i._UZ(0,"span",9)}function Se(kt,Je){if(1&kt&&(i.TgZ(0,"span",5),i.YNc(1,ue,1,0,"span",6),i.YNc(2,ge,1,0,"span",7),i.qZA()),2&kt){const K=i.oxw();i.Q6J("ngSwitch",K.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function ke(kt,Je){1&kt&&i._UZ(0,"span",10)}const Rt=["*"],Ft=["nz-submenu-inline-child",""];function Mt(kt,Je){}const yt=["nz-submenu-none-inline-child",""];function Ct(kt,Je){}const Lt=["nz-submenu",""];function rn(kt,Je){1&kt&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Sn(kt,Je){if(1&kt&&i._UZ(0,"div",6),2&kt){const K=i.oxw(),N=i.MAs(7);i.Q6J("mode",K.mode)("nzOpen",K.nzOpen)("@.disabled",!(null==K.noAnimation||!K.noAnimation.nzNoAnimation))("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)("menuClass",K.nzMenuClassName)("templateOutlet",N)}}function rt(kt,Je){if(1&kt){const K=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(J){i.CHM(K);const Me=i.oxw(2);return i.KtG(Me.setMouseEnterState(J))}),i.qZA()}if(2&kt){const K=i.oxw(2),N=i.MAs(7);i.Q6J("theme",K.theme)("mode",K.mode)("nzOpen",K.nzOpen)("position",K.position)("nzDisabled",K.nzDisabled)("isMenuInsideDropDown",K.isMenuInsideDropDown)("templateOutlet",N)("menuClass",K.nzMenuClassName)("@.disabled",!(null==K.noAnimation||!K.noAnimation.nzNoAnimation))("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)}}function Ye(kt,Je){if(1&kt){const K=i.EpF();i.YNc(0,rt,1,10,"ng-template",7),i.NdJ("positionChange",function(J){i.CHM(K);const Me=i.oxw();return i.KtG(Me.onPositionChange(J))})}if(2&kt){const K=i.oxw(),N=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",K.overlayPositions)("cdkConnectedOverlayOrigin",N)("cdkConnectedOverlayWidth",K.triggerWidth)("cdkConnectedOverlayOpen",K.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function st(kt,Je){1&kt&&i.Hsn(0,1)}const Ze=[[["","title",""]],"*"],Bt=["[title]","*"],Jt=["titleElement"],_n=["nz-menu-group",""];function On(kt,Je){if(1&kt&&(i.ynx(0),i._uU(1),i.BQk()),2&kt){const K=i.oxw();i.xp6(1),i.Oqu(K.nzTitle)}}function cn(kt,Je){1&kt&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const wt=["*",[["","title",""]]],Ve=["*","[title]"],Be=new i.OlP("NzIsInDropDownMenuToken"),He=new i.OlP("NzMenuServiceLocalToken");let je=(()=>{class kt{constructor(){this.descendantMenuItemClick$=new v.x,this.childMenuItemClick$=new v.x,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(K){this.descendantMenuItemClick$.next(K)}onChildMenuItemClick(K){this.childMenuItemClick$.next(K)}setMode(K){this.mode$.next(K)}setTheme(K){this.theme$.next(K)}setInlineIndent(K){this.inlineIndent$.next(K)}}return kt.\u0275fac=function(K){return new(K||kt)},kt.\u0275prov=i.Yz7({token:kt,factory:kt.\u0275fac}),kt})(),Ne=(()=>{class kt{onChildMenuItemClick(K){this.childMenuItemClick$.next(K)}setOpenStateWithoutDebounce(K){this.isCurrentSubMenuOpen$.next(K)}setMouseEnterTitleOrOverlayState(K){this.isMouseEnterTitleOrOverlay$.next(K)}constructor(K,N,J){this.nzHostSubmenuService=K,this.nzMenuService=N,this.isMenuInsideDropDown=J,this.mode$=this.nzMenuService.mode$.pipe((0,j.U)(We=>"inline"===We?"inline":"vertical"===We||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new d.X(!1),this.isChildSubMenuOpen$=new d.X(!1),this.isMouseEnterTitleOrOverlay$=new v.x,this.childMenuItemClick$=new v.x,this.destroy$=new v.x,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const Me=this.childMenuItemClick$.pipe((0,$.z)(()=>this.mode$),(0,I.h)(We=>"inline"!==We||this.isMenuInsideDropDown),(0,S.h)(!1)),zt=(0,s.T)(this.isMouseEnterTitleOrOverlay$,Me);(0,L.a)([this.isChildSubMenuOpen$,zt]).pipe((0,j.U)(([We,ot])=>We||ot),(0,F.e)(150),(0,k.x)(),(0,U.R)(this.destroy$)).pipe((0,k.x)()).subscribe(We=>{this.setOpenStateWithoutDebounce(We),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(We):this.nzMenuService.isChildSubMenuOpen$.next(We)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return kt.\u0275fac=function(K){return new(K||kt)(i.LFG(kt,12),i.LFG(je),i.LFG(Be))},kt.\u0275prov=i.Yz7({token:kt,factory:kt.\u0275fac}),kt})(),De=(()=>{class kt{clickMenuItem(K){this.nzDisabled?(K.preventDefault(),K.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(K){this.nzSelected=K,this.selected$.next(K)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const K=this.hasActiveLinks();this.nzSelected!==K&&(this.nzSelected=K,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const K=this.isLinkActive(this.router);return this.routerLink&&K(this.routerLink)||this.listOfRouterLink.some(K)}isLinkActive(K){return N=>K.isActive(N.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(K,N,J,Me,zt,nt,We){this.nzMenuService=K,this.cdr=N,this.nzSubmenuService=J,this.isMenuInsideDropDown=Me,this.directionality=zt,this.routerLink=nt,this.router=We,this.destroy$=new v.x,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new v.x,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,We&&this.router.events.pipe((0,U.R)(this.destroy$),(0,I.h)(ot=>ot instanceof R.m2)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,L.a)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,N])=>{this.inlinePaddingLeft="inline"===K?this.level*N:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,U.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(K){K.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(je),i.Y36(i.sBO),i.Y36(Ne,8),i.Y36(Be),i.Y36(pe.Is,8),i.Y36(R.rH,8),i.Y36(R.F0,8))},kt.\u0275dir=i.lG2({type:kt,selectors:[["","nz-menu-item",""]],contentQueries:function(K,N,J){if(1&K&&i.Suo(J,R.rH,5),2&K){let Me;i.iGM(Me=i.CRH())&&(N.listOfRouterLink=Me)}},hostVars:20,hostBindings:function(K,N){1&K&&i.NdJ("click",function(Me){return N.clickMenuItem(Me)}),2&K&&(i.Udp("padding-left","rtl"===N.dir?null:N.nzPaddingLeft||N.inlinePaddingLeft,"px")("padding-right","rtl"===N.dir?N.nzPaddingLeft||N.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",N.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",N.isMenuInsideDropDown&&N.nzSelected)("ant-dropdown-menu-item-danger",N.isMenuInsideDropDown&&N.nzDanger)("ant-dropdown-menu-item-disabled",N.isMenuInsideDropDown&&N.nzDisabled)("ant-menu-item",!N.isMenuInsideDropDown)("ant-menu-item-selected",!N.isMenuInsideDropDown&&N.nzSelected)("ant-menu-item-danger",!N.isMenuInsideDropDown&&N.nzDanger)("ant-menu-item-disabled",!N.isMenuInsideDropDown&&N.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzDisabled",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzSelected",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzDanger",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzMatchRouterExact",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzMatchRouter",void 0),kt})(),ie=(()=>{class kt{constructor(K,N){this.cdr=K,this.directionality=N,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 v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(K){this.nzDisabled||this.subMenuMouseState.next(K)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(i.sBO),i.Y36(pe.Is,8))},kt.\u0275cmp=i.Xpm({type:kt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(K,N){1&K&&i.NdJ("click",function(){return N.clickTitle()})("mouseenter",function(){return N.setMouseState(!0)})("mouseleave",function(){return N.setMouseState(!1)}),2&K&&(i.Udp("padding-left","rtl"===N.dir?null:N.paddingLeft,"px")("padding-right","rtl"===N.dir?N.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",N.isMenuInsideDropDown)("ant-menu-submenu-title",!N.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ae,ngContentSelectors:Rt,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(K,N){if(1&K&&(i.F$t(),i.YNc(0,Q,1,1,"span",0),i.YNc(1,fe,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,Se,3,2,"span",2),i.YNc(4,ke,1,0,"ng-template",null,3,i.W1O)),2&K){const J=i.MAs(5);i.Q6J("ngIf",N.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",N.nzTitle),i.xp6(2),i.Q6J("ngIf",N.isMenuInsideDropDown)("ngIfElse",J)}},dependencies:[O.O5,O.RF,O.n9,O.ED,P.Ls,D.f],encapsulation:2,changeDetection:0}),kt})(),Ce=(()=>{class kt{constructor(K,N,J){this.elementRef=K,this.renderer=N,this.directionality=J,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new v.x}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngOnChanges(K){const{mode:N,nzOpen:J,menuClass:Me}=K;(N||J)&&this.calcMotionState(),Me&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(zt=>!!zt).forEach(zt=>{this.renderer.removeClass(this.elementRef.nativeElement,zt)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(zt=>!!zt).forEach(zt=>{this.renderer.addClass(this.elementRef.nativeElement,zt)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.Is,8))},kt.\u0275cmp=i.Xpm({type:kt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(K,N){2&K&&(i.d8E("@collapseMotion",N.expandState),i.ekj("ant-menu-rtl","rtl"===N.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:Ft,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(K,N){1&K&&i.YNc(0,Mt,0,0,"ng-template",0),2&K&&i.Q6J("ngTemplateOutlet",N.templateOutlet)},dependencies:[O.tP],encapsulation:2,data:{animation:[re.J_]},changeDetection:0}),kt})(),ve=(()=>{class kt{constructor(K){this.directionality=K,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 v.x}setMouseState(K){this.nzDisabled||this.subMenuMouseState.next(K)}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(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngOnChanges(K){const{mode:N,nzOpen:J}=K;(N||J)&&this.calcMotionState()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(pe.Is,8))},kt.\u0275cmp=i.Xpm({type:kt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(K,N){1&K&&i.NdJ("mouseenter",function(){return N.setMouseState(!0)})("mouseleave",function(){return N.setMouseState(!1)}),2&K&&(i.d8E("@slideMotion",N.expandState)("@zoomBigMotion",N.expandState),i.ekj("ant-menu-light","light"===N.theme)("ant-menu-dark","dark"===N.theme)("ant-menu-submenu-placement-bottom","horizontal"===N.mode)("ant-menu-submenu-placement-right","vertical"===N.mode&&"right"===N.position)("ant-menu-submenu-placement-left","vertical"===N.mode&&"left"===N.position)("ant-menu-submenu-rtl","rtl"===N.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:yt,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(K,N){1&K&&(i.TgZ(0,"div",0),i.YNc(1,Ct,0,0,"ng-template",1),i.qZA()),2&K&&(i.ekj("ant-dropdown-menu",N.isMenuInsideDropDown)("ant-menu",!N.isMenuInsideDropDown)("ant-dropdown-menu-vertical",N.isMenuInsideDropDown)("ant-menu-vertical",!N.isMenuInsideDropDown)("ant-dropdown-menu-sub",N.isMenuInsideDropDown)("ant-menu-sub",!N.isMenuInsideDropDown)("ant-menu-rtl","rtl"===N.dir),i.Q6J("ngClass",N.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",N.templateOutlet))},dependencies:[O.mk,O.tP],encapsulation:2,data:{animation:[re.$C,re.mF]},changeDetection:0}),kt})();const qe=[Z.yW.rightTop,Z.yW.right,Z.yW.rightBottom,Z.yW.leftTop,Z.yW.left,Z.yW.leftBottom],ct=[Z.yW.bottomLeft,Z.yW.bottomRight,Z.yW.topRight,Z.yW.topLeft];let Zt=(()=>{class kt{setOpenStateWithoutDebounce(K){this.nzSubmenuService.setOpenStateWithoutDebounce(K)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(K){this.isActive=K,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(K)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(K){const N=(0,Z.d_)(K);"rightTop"===N||"rightBottom"===N||"right"===N?this.position="right":("leftTop"===N||"leftBottom"===N||"left"===N)&&(this.position="left")}constructor(K,N,J,Me,zt,nt,We){this.nzMenuService=K,this.cdr=N,this.nzSubmenuService=J,this.platform=Me,this.isMenuInsideDropDown=zt,this.directionality=nt,this.noAnimation=We,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new v.x,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=qe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.theme=K,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.mode=K,"horizontal"===K?this.overlayPositions=[Z.yW[this.nzPlacement],...ct]:"vertical"===K&&(this.overlayPositions=qe),this.cdr.markForCheck()}),(0,L.a)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,N])=>{this.inlinePaddingLeft="inline"===K?this.level*N:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.isActive=K,K!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=K,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const K=this.listOfNzMenuItemDirective,N=K.changes,J=(0,s.T)(N,...K.map(Me=>Me.selected$));N.pipe((0,w.O)(K),(0,M.w)(()=>J),(0,w.O)(!0),(0,j.U)(()=>K.some(Me=>Me.nzSelected)),(0,U.R)(this.destroy$)).subscribe(Me=>{this.isSelected=Me,this.cdr.markForCheck()})}ngOnChanges(K){const{nzOpen:N}=K;N&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(je),i.Y36(i.sBO),i.Y36(Ne),i.Y36(A.t4),i.Y36(Be),i.Y36(pe.Is,8),i.Y36(V.P,9))},kt.\u0275cmp=i.Xpm({type:kt,selectors:[["","nz-submenu",""]],contentQueries:function(K,N,J){if(1&K&&(i.Suo(J,kt,5),i.Suo(J,De,5)),2&K){let Me;i.iGM(Me=i.CRH())&&(N.listOfNzSubMenuComponent=Me),i.iGM(Me=i.CRH())&&(N.listOfNzMenuItemDirective=Me)}},viewQuery:function(K,N){if(1&K&&i.Gf(me.xu,7,i.SBq),2&K){let J;i.iGM(J=i.CRH())&&(N.cdkOverlayOrigin=J.first)}},hostVars:34,hostBindings:function(K,N){2&K&&i.ekj("ant-dropdown-menu-submenu",N.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",N.isMenuInsideDropDown&&N.nzDisabled)("ant-dropdown-menu-submenu-open",N.isMenuInsideDropDown&&N.nzOpen)("ant-dropdown-menu-submenu-selected",N.isMenuInsideDropDown&&N.isSelected)("ant-dropdown-menu-submenu-vertical",N.isMenuInsideDropDown&&"vertical"===N.mode)("ant-dropdown-menu-submenu-horizontal",N.isMenuInsideDropDown&&"horizontal"===N.mode)("ant-dropdown-menu-submenu-inline",N.isMenuInsideDropDown&&"inline"===N.mode)("ant-dropdown-menu-submenu-active",N.isMenuInsideDropDown&&N.isActive)("ant-menu-submenu",!N.isMenuInsideDropDown)("ant-menu-submenu-disabled",!N.isMenuInsideDropDown&&N.nzDisabled)("ant-menu-submenu-open",!N.isMenuInsideDropDown&&N.nzOpen)("ant-menu-submenu-selected",!N.isMenuInsideDropDown&&N.isSelected)("ant-menu-submenu-vertical",!N.isMenuInsideDropDown&&"vertical"===N.mode)("ant-menu-submenu-horizontal",!N.isMenuInsideDropDown&&"horizontal"===N.mode)("ant-menu-submenu-inline",!N.isMenuInsideDropDown&&"inline"===N.mode)("ant-menu-submenu-active",!N.isMenuInsideDropDown&&N.isActive)("ant-menu-submenu-rtl","rtl"===N.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled",nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Ne]),i.TTD],attrs:Lt,ngContentSelectors:Bt,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(K,N){if(1&K&&(i.F$t(Ze),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(Me){return N.setMouseEnterState(Me)})("toggleSubMenu",function(){return N.toggleSubMenu()}),i.YNc(2,rn,1,0,"ng-content",2),i.qZA(),i.YNc(3,Sn,1,6,"div",3),i.YNc(4,Ye,1,5,"ng-template",null,4,i.W1O),i.YNc(6,st,1,0,"ng-template",null,5,i.W1O)),2&K){const J=i.MAs(5);i.Q6J("nzIcon",N.nzIcon)("nzTitle",N.nzTitle)("mode",N.mode)("nzDisabled",N.nzDisabled)("isMenuInsideDropDown",N.isMenuInsideDropDown)("paddingLeft",N.nzPaddingLeft||N.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!N.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===N.mode)("ngIfElse",J)}},dependencies:[O.O5,me.pI,me.xu,V.P,ie,Ce,ve],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzOpen",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzDisabled",void 0),kt})();function Cn(kt,Je){return kt||Je}function at(kt){return kt||!1}let Xe=(()=>{class kt{setInlineCollapsed(K){this.nzInlineCollapsed=K,this.inlineCollapsed$.next(K)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(K=>K.nzOpen),this.listOfNzSubMenuComponent.forEach(K=>K.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(K=>K.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(K,N,J,Me){this.nzMenuService=K,this.isMenuInsideDropDown=N,this.cdr=J,this.directionality=Me,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 v.x,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,L.a)([this.inlineCollapsed$,this.mode$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,N])=>{this.actualMode=K?"vertical":N,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.nzClick.emit(K),this.nzSelectable&&!K.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(N=>N.setSelectedState(N===K))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,U.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(K){const{nzInlineCollapsed:N,nzInlineIndent:J,nzTheme:Me,nzMode:zt}=K;N&&this.inlineCollapsed$.next(this.nzInlineCollapsed),J&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),Me&&this.nzMenuService.setTheme(this.nzTheme),zt&&(this.mode$.next(this.nzMode),!K.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(nt=>nt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(je),i.Y36(Be),i.Y36(i.sBO),i.Y36(pe.Is,8))},kt.\u0275dir=i.lG2({type:kt,selectors:[["","nz-menu",""]],contentQueries:function(K,N,J){if(1&K&&(i.Suo(J,De,5),i.Suo(J,Zt,5)),2&K){let Me;i.iGM(Me=i.CRH())&&(N.listOfNzMenuItemDirective=Me),i.iGM(Me=i.CRH())&&(N.listOfNzSubMenuComponent=Me)}},hostVars:34,hostBindings:function(K,N){2&K&&i.ekj("ant-dropdown-menu",N.isMenuInsideDropDown)("ant-dropdown-menu-root",N.isMenuInsideDropDown)("ant-dropdown-menu-light",N.isMenuInsideDropDown&&"light"===N.nzTheme)("ant-dropdown-menu-dark",N.isMenuInsideDropDown&&"dark"===N.nzTheme)("ant-dropdown-menu-vertical",N.isMenuInsideDropDown&&"vertical"===N.actualMode)("ant-dropdown-menu-horizontal",N.isMenuInsideDropDown&&"horizontal"===N.actualMode)("ant-dropdown-menu-inline",N.isMenuInsideDropDown&&"inline"===N.actualMode)("ant-dropdown-menu-inline-collapsed",N.isMenuInsideDropDown&&N.nzInlineCollapsed)("ant-menu",!N.isMenuInsideDropDown)("ant-menu-root",!N.isMenuInsideDropDown)("ant-menu-light",!N.isMenuInsideDropDown&&"light"===N.nzTheme)("ant-menu-dark",!N.isMenuInsideDropDown&&"dark"===N.nzTheme)("ant-menu-vertical",!N.isMenuInsideDropDown&&"vertical"===N.actualMode)("ant-menu-horizontal",!N.isMenuInsideDropDown&&"horizontal"===N.actualMode)("ant-menu-inline",!N.isMenuInsideDropDown&&"inline"===N.actualMode)("ant-menu-inline-collapsed",!N.isMenuInsideDropDown&&N.nzInlineCollapsed)("ant-menu-rtl","rtl"===N.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:He,useClass:je},{provide:je,useFactory:Cn,deps:[[new i.tp0,new i.FiY,je],He]},{provide:Be,useFactory:at,deps:[[new i.tp0,new i.FiY,Be]]}]),i.TTD]}),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzInlineCollapsed",void 0),(0,t.gn)([(0,e.yF)()],kt.prototype,"nzSelectable",void 0),kt})();function it(kt){return kt||!1}let Ot=(()=>{class kt{constructor(K,N,J){this.elementRef=K,this.renderer=N,this.isMenuInsideDropDown=J,this.renderer.addClass(K.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const K=this.titleElement.nativeElement.nextElementSibling;K&&this.renderer.addClass(K,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Be))},kt.\u0275cmp=i.Xpm({type:kt,selectors:[["","nz-menu-group",""]],viewQuery:function(K,N){if(1&K&&i.Gf(Jt,5),2&K){let J;i.iGM(J=i.CRH())&&(N.titleElement=J.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:Be,useFactory:it,deps:[[new i.tp0,new i.FiY,Be]]}])],attrs:_n,ngContentSelectors:Ve,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(K,N){1&K&&(i.F$t(wt),i.TgZ(0,"div",null,0),i.YNc(2,On,2,1,"ng-container",1),i.YNc(3,cn,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&K&&(i.ekj("ant-menu-item-group-title",!N.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",N.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",N.nzTitle),i.xp6(1),i.Q6J("ngIf",!N.nzTitle))},dependencies:[O.O5,D.f],encapsulation:2,changeDetection:0}),kt})(),Pt=(()=>{class kt{constructor(K){this.elementRef=K}}return kt.\u0275fac=function(K){return new(K||kt)(i.Y36(i.SBq))},kt.\u0275dir=i.lG2({type:kt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"]}),kt})(),Wt=(()=>{class kt{}return kt.\u0275fac=function(K){return new(K||kt)},kt.\u0275mod=i.oAB({type:kt}),kt.\u0275inj=i.cJS({imports:[pe.vT,O.ez,A.ud,me.U8,P.PV,V.g,D.T]}),kt})()},67:(It,be,a)=>{function t(Qe,dt,se,ze,mt,Pe,lt){try{var Yt=Qe[Pe](lt),un=Yt.value}catch(Nt){return void se(Nt)}Yt.done?dt(un):Promise.resolve(un).then(ze,mt)}a.d(be,{du:()=>Vt,Hf:()=>nt,Qp:()=>St,Sf:()=>zt});var v=a(9594),d=a(8484),s=a(5879),L=a(8645),j=a(2438),$=a(4911),I=a(9773),S=a(2181),F=a(8180),k=a(7921),U=a(7032),w=a(7754),M=a(6814),e=a(6825),R=a(6879),pe=a(4300),me=a(874),Z=a(1752),A=a(8324),V=a(2840),O=a(855),P=a(1958),D=a(551),re=a(6192),ae=a(6028),Q=a(9388),fe=a(655),ue=a(331);const ge=["nz-modal-close",""];function Se(Qe,dt){if(1&Qe&&(s.ynx(0),s._UZ(1,"span",2),s.BQk()),2&Qe){const se=dt.$implicit;s.xp6(1),s.Q6J("nzType",se)}}const ke=["modalElement"];function Rt(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onCloseClick())}),s.qZA()}}function Ft(Qe,dt){if(1&Qe&&(s.ynx(0),s._UZ(1,"span",17),s.BQk()),2&Qe){const se=s.oxw();s.xp6(1),s.Q6J("innerHTML",se.config.nzTitle,s.oJD)}}function Mt(Qe,dt){}function yt(Qe,dt){if(1&Qe&&s._UZ(0,"div",17),2&Qe){const se=s.oxw();s.Q6J("innerHTML",se.config.nzContent,s.oJD)}}function Ct(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",18),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onCancel())}),s._uU(1),s.qZA()}if(2&Qe){const se=s.oxw();s.Q6J("nzLoading",!!se.config.nzCancelLoading)("disabled",se.config.nzCancelDisabled),s.uIk("cdkFocusInitial","cancel"===se.config.nzAutofocus||null),s.xp6(1),s.hij(" ",se.config.nzCancelText||se.locale.cancelText," ")}}function Lt(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",19),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onOk())}),s._uU(1),s.qZA()}if(2&Qe){const se=s.oxw();s.Q6J("nzType",se.config.nzOkType)("nzLoading",!!se.config.nzOkLoading)("disabled",se.config.nzOkDisabled)("nzDanger",se.config.nzOkDanger),s.uIk("cdkFocusInitial","ok"===se.config.nzAutofocus||null),s.xp6(1),s.hij(" ",se.config.nzOkText||se.locale.okText," ")}}const rn=["nz-modal-footer",""];function Sn(Qe,dt){if(1&Qe&&s._UZ(0,"div",5),2&Qe){const se=s.oxw(3);s.Q6J("innerHTML",se.config.nzFooter,s.oJD)}}function rt(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){const Pe=s.CHM(se).$implicit,lt=s.oxw(4);return s.KtG(lt.onButtonClick(Pe))}),s._uU(1),s.qZA()}if(2&Qe){const se=dt.$implicit,ze=s.oxw(4);s.Q6J("hidden",!ze.getButtonCallableProp(se,"show"))("nzLoading",ze.getButtonCallableProp(se,"loading"))("disabled",ze.getButtonCallableProp(se,"disabled"))("nzType",se.type)("nzDanger",se.danger)("nzShape",se.shape)("nzSize",se.size)("nzGhost",se.ghost),s.xp6(1),s.hij(" ",se.label," ")}}function Ye(Qe,dt){if(1&Qe&&(s.ynx(0),s.YNc(1,rt,2,9,"button",6),s.BQk()),2&Qe){const se=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",se.buttons)}}function st(Qe,dt){if(1&Qe&&(s.ynx(0),s.YNc(1,Sn,1,1,"div",3),s.YNc(2,Ye,2,1,"ng-container",4),s.BQk()),2&Qe){const se=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!se.buttonsFooter),s.xp6(1),s.Q6J("ngIf",se.buttonsFooter)}}const Ze=function(Qe,dt){return{$implicit:Qe,modalRef:dt}};function Bt(Qe,dt){if(1&Qe&&(s.ynx(0),s.YNc(1,st,3,2,"ng-container",2),s.BQk()),2&Qe){const se=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",se.config.nzFooter)("nzStringTemplateOutletContext",s.WLB(2,Ze,se.config.nzData,se.modalRef))}}function Jt(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw(2);return s.KtG(mt.onCancel())}),s._uU(1),s.qZA()}if(2&Qe){const se=s.oxw(2);s.Q6J("nzLoading",!!se.config.nzCancelLoading)("disabled",se.config.nzCancelDisabled),s.uIk("cdkFocusInitial","cancel"===se.config.nzAutofocus||null),s.xp6(1),s.hij(" ",se.config.nzCancelText||se.locale.cancelText," ")}}function _n(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw(2);return s.KtG(mt.onOk())}),s._uU(1),s.qZA()}if(2&Qe){const se=s.oxw(2);s.Q6J("nzType",se.config.nzOkType)("nzDanger",se.config.nzOkDanger)("nzLoading",!!se.config.nzOkLoading)("disabled",se.config.nzOkDisabled),s.uIk("cdkFocusInitial","ok"===se.config.nzAutofocus||null),s.xp6(1),s.hij(" ",se.config.nzOkText||se.locale.okText," ")}}function On(Qe,dt){if(1&Qe&&(s.YNc(0,Jt,2,4,"button",8),s.YNc(1,_n,2,6,"button",9)),2&Qe){const se=s.oxw();s.Q6J("ngIf",null!==se.config.nzCancelText),s.xp6(1),s.Q6J("ngIf",null!==se.config.nzOkText)}}const cn=["nz-modal-title",""];function wt(Qe,dt){if(1&Qe&&(s.ynx(0),s._UZ(1,"div",2),s.BQk()),2&Qe){const se=s.oxw();s.xp6(1),s.Q6J("innerHTML",se.config.nzTitle,s.oJD)}}function Ve(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onCloseClick())}),s.qZA()}}function Be(Qe,dt){1&Qe&&s._UZ(0,"div",10)}function He(Qe,dt){}function je(Qe,dt){if(1&Qe&&s._UZ(0,"div",11),2&Qe){const se=s.oxw();s.Q6J("innerHTML",se.config.nzContent,s.oJD)}}function Ne(Qe,dt){if(1&Qe){const se=s.EpF();s.TgZ(0,"div",12),s.NdJ("cancelTriggered",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onCloseClick())})("okTriggered",function(){s.CHM(se);const mt=s.oxw();return s.KtG(mt.onOkClick())}),s.qZA()}if(2&Qe){const se=s.oxw();s.Q6J("modalRef",se.modalRef)}}const De=()=>{};class ie{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=De,this.nzOnOk=De,this.nzIconType="question-circle"}}const qe="ant-modal-mask",ct="modal",Zt=new s.OlP("NZ_MODAL_DATA"),Cn={modalContainer:(0,e.X$)("modalContainer",[(0,e.SB)("void, exit",(0,e.oB)({})),(0,e.SB)("enter",(0,e.oB)({})),(0,e.eR)("* => enter",(0,e.jt)(".24s",(0,e.oB)({}))),(0,e.eR)("* => void, * => exit",(0,e.jt)(".2s",(0,e.oB)({})))])};function Xe(Qe,dt,se){return typeof Qe>"u"?typeof dt>"u"?se:dt:Qe}function it(Qe){const{nzCentered:dt,nzMask:se,nzMaskClosable:ze,nzClosable:mt,nzOkLoading:Pe,nzOkDisabled:lt,nzCancelDisabled:Yt,nzCancelLoading:un,nzKeyboard:Nt,nzNoAnimation:pt,nzContent:gt,nzFooter:ee,nzZIndex:H,nzWidth:Te,nzWrapClassName:$e,nzClassName:Tt,nzStyle:Xt,nzTitle:qt,nzCloseIcon:Un,nzMaskStyle:zn,nzBodyStyle:Vn,nzOkText:vo,nzCancelText:Xn,nzOkType:Ao,nzOkDanger:jo,nzIconType:ei,nzModalType:bo,nzOnOk:eo,nzOnCancel:hi,nzAfterOpen:si,nzAfterClose:Fo,nzCloseOnNavigation:xo,nzAutofocus:Do}=Qe;return{nzCentered:dt,nzMask:se,nzMaskClosable:ze,nzClosable:mt,nzOkLoading:Pe,nzOkDisabled:lt,nzCancelDisabled:Yt,nzCancelLoading:un,nzKeyboard:Nt,nzNoAnimation:pt,nzContent:gt,nzFooter:ee,nzZIndex:H,nzWidth:Te,nzWrapClassName:$e,nzClassName:Tt,nzStyle:Xt,nzTitle:qt,nzCloseIcon:Un,nzMaskStyle:zn,nzBodyStyle:Vn,nzOkText:vo,nzCancelText:Xn,nzOkType:Ao,nzOkDanger:jo,nzIconType:ei,nzModalType:bo,nzOnOk:eo,nzOnCancel:hi,nzAfterOpen:si,nzAfterClose:Fo,nzCloseOnNavigation:xo,nzAutofocus:Do}}function Ot(){throw Error("Attempting to attach modal content after content is already attached")}let Pt=(()=>{class Qe extends d.en{get showMask(){const se=this.nzConfigService.getConfigForComponent(ct)||{};return!!Xe(this.config.nzMask,se.nzMask,!0)}get maskClosable(){const se=this.nzConfigService.getConfigForComponent(ct)||{};return!!Xe(this.config.nzMaskClosable,se.nzMaskClosable,!0)}constructor(se,ze,mt,Pe,lt,Yt,un,Nt,pt,gt){super(),this.ngZone=se,this.host=ze,this.focusTrapFactory=mt,this.cdr=Pe,this.render=lt,this.overlayRef=Yt,this.nzConfigService=un,this.config=Nt,this.animationType=gt,this.animationStateChanged=new s.vpe,this.containerClick=new s.vpe,this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new L.x,this.document=pt,this.dir=Yt.getDirection(),this.isStringContent="string"==typeof Nt.nzContent,this.nzConfigService.getConfigChangeEventForComponent(ct).pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(se){se.target===se.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(se){return this.portalOutlet.hasAttached()&&Ot(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(se)}attachTemplatePortal(se){return this.portalOutlet.hasAttached()&&Ot(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(se)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const se=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const ze=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),mt=(0,w.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(se,"transform-origin",`${mt.left+ze.width/2-se.offsetLeft}px ${mt.top+ze.height/2-se.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(()=>(0,R.e)(()=>this.host.nativeElement.focus())))}trapFocus(){const se=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const ze=this.document.activeElement;ze!==se&&!se.contains(ze)&&se.focus()}}restoreFocus(){const se=this.elementFocusedBeforeModalWasOpened;if(se&&"function"==typeof se.focus){const ze=this.document.activeElement,mt=this.host.nativeElement;(!ze||ze===this.document.body||ze===mt||mt.contains(ze))&&se.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const se=this.modalElementRef.nativeElement,ze=this.overlayRef.backdropElement;se.classList.add("ant-zoom-enter"),se.classList.add("ant-zoom-enter-active"),ze&&(ze.classList.add("ant-fade-enter"),ze.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const se=this.modalElementRef.nativeElement;se.classList.add("ant-zoom-leave"),se.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(se=!1){const ze=this.overlayRef.backdropElement;if(ze){if(this.animationDisabled()||se)return void ze.classList.remove(qe);ze.classList.add("ant-fade-leave"),ze.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const se=this.overlayRef.backdropElement,ze=this.modalElementRef.nativeElement;se&&(se.classList.remove("ant-fade-enter"),se.classList.remove("ant-fade-enter-active")),ze.classList.remove("ant-zoom-enter"),ze.classList.remove("ant-zoom-enter-active"),ze.classList.remove("ant-zoom-leave"),ze.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const se=this.overlayRef.backdropElement;se&&(0,w.DX)(this.config.nzZIndex)&&this.render.setStyle(se,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const se=this.overlayRef.backdropElement;if(se&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(mt=>{this.render.removeStyle(se,mt)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const ze={...this.config.nzMaskStyle};Object.keys(ze).forEach(mt=>{this.render.setStyle(se,mt,ze[mt])}),this.oldMaskStyle=ze}}updateMaskClassname(){const se=this.overlayRef.backdropElement;se&&(this.showMask?se.classList.add(qe):se.classList.remove(qe))}onAnimationDone(se){"enter"===se.toState?this.trapFocus():"exit"===se.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(se)}onAnimationStart(se){"enter"===se.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===se.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(se)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(se){this.ngZone.runOutsideAngular(()=>{(0,j.R)(this.host.nativeElement,"mouseup").pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,j.R)(se.nativeElement,"mousedown").pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return Qe.\u0275fac=function(se){s.$Z()},Qe.\u0275dir=s.lG2({type:Qe,features:[s.qOj]}),Qe})(),Wt=(()=>{class Qe{constructor(se){this.config=se}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(ie))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:ge,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(se,ze){1&se&&(s.TgZ(0,"span",0),s.YNc(1,Se,2,1,"ng-container",1),s.qZA()),2&se&&(s.xp6(1),s.Q6J("nzStringTemplateOutlet",ze.config.nzCloseIcon))},dependencies:[A.f,O.w,D.Ls],encapsulation:2,changeDetection:0}),Qe})(),kt=(()=>{class Qe extends Pt{constructor(se,ze,mt,Pe,lt,Yt,un,Nt,pt,gt,ee){super(se,mt,Pe,lt,Yt,un,Nt,pt,gt,ee),this.i18n=ze,this.config=pt,this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.i18n.localeChange.pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(s.R0b),s.Y36(Z.wi),s.Y36(s.SBq),s.Y36(pe.qV),s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(v.Iu),s.Y36(me.jY),s.Y36(ie),s.Y36(M.K0,8),s.Y36(s.QbO,8))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["nz-modal-confirm-container"]],viewQuery:function(se,ze){if(1&se&&(s.Gf(d.Pl,7),s.Gf(ke,7)),2&se){let mt;s.iGM(mt=s.CRH())&&(ze.portalOutlet=mt.first),s.iGM(mt=s.CRH())&&(ze.modalElementRef=mt.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(se,ze){1&se&&(s.WFA("@modalContainer.start",function(Pe){return ze.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return ze.onAnimationDone(Pe)}),s.NdJ("click",function(Pe){return ze.onContainerClick(Pe)})),2&se&&(s.d8E("@.disabled",ze.config.nzNoAnimation)("@modalContainer",ze.state),s.Tol(ze.config.nzWrapClassName?"ant-modal-wrap "+ze.config.nzWrapClassName:"ant-modal-wrap"),s.Udp("z-index",ze.config.nzZIndex),s.ekj("ant-modal-wrap-rtl","rtl"===ze.dir)("ant-modal-centered",ze.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[s.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(se,ze){1&se&&(s.TgZ(0,"div",0,1),s.ALo(2,"nzToCssUnit"),s.TgZ(3,"div",2),s.YNc(4,Rt,1,0,"button",3),s.TgZ(5,"div",4)(6,"div",5)(7,"div",6),s._UZ(8,"span",7),s.TgZ(9,"span",8),s.YNc(10,Ft,2,1,"ng-container",9),s.qZA(),s.TgZ(11,"div",10),s.YNc(12,Mt,0,0,"ng-template",11),s.YNc(13,yt,1,1,"div",12),s.qZA()(),s.TgZ(14,"div",13),s.YNc(15,Ct,2,4,"button",14),s.YNc(16,Lt,2,6,"button",15),s.qZA()()()()()),2&se&&(s.Udp("width",s.lcZ(2,11,null==ze.config?null:ze.config.nzWidth)),s.Q6J("ngClass",ze.config.nzClassName)("ngStyle",ze.config.nzStyle),s.xp6(4),s.Q6J("ngIf",ze.config.nzClosable),s.xp6(1),s.Q6J("ngStyle",ze.config.nzBodyStyle),s.xp6(3),s.Q6J("nzType",ze.config.nzIconType),s.xp6(2),s.Q6J("nzStringTemplateOutlet",ze.config.nzTitle),s.xp6(3),s.Q6J("ngIf",ze.isStringContent),s.xp6(2),s.Q6J("ngIf",null!==ze.config.nzCancelText),s.xp6(1),s.Q6J("ngIf",null!==ze.config.nzOkText))},dependencies:[M.mk,M.O5,M.PC,A.f,d.Pl,V.ix,O.w,P.dQ,D.Ls,Wt,re.ku],encapsulation:2,data:{animation:[Cn.modalContainer]}}),Qe})(),Je=(()=>{class Qe{constructor(se,ze){this.i18n=se,this.config=ze,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.destroy$=new L.x,Array.isArray(ze.nzFooter)&&(this.buttonsFooter=!0,this.buttons=ze.nzFooter.map(K)),this.i18n.localeChange.pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(se,ze){const mt=se[ze],Pe=this.modalRef.getContentComponent();return"function"==typeof mt?mt.apply(se,Pe&&[Pe]):mt}onButtonClick(se){if(!this.getButtonCallableProp(se,"loading")){const mt=this.getButtonCallableProp(se,"onClick");se.autoLoading&&(0,w.tI)(mt)&&(se.loading=!0,mt.then(()=>se.loading=!1).catch(Pe=>{throw se.loading=!1,Pe}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(Z.wi),s.Y36(ie))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:rn,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(se,ze){if(1&se&&(s.YNc(0,Bt,2,5,"ng-container",0),s.YNc(1,On,2,2,"ng-template",null,1,s.W1O)),2&se){const mt=s.MAs(2);s.Q6J("ngIf",ze.config.nzFooter)("ngIfElse",mt)}},dependencies:[M.sg,M.O5,A.f,V.ix,O.w,P.dQ],encapsulation:2}),Qe})();function K(Qe){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...Qe}}let N=(()=>{class Qe{constructor(se){this.config=se}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(ie))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:cn,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(se,ze){1&se&&(s.TgZ(0,"div",0),s.YNc(1,wt,2,1,"ng-container",1),s.qZA()),2&se&&(s.xp6(1),s.Q6J("nzStringTemplateOutlet",ze.config.nzTitle))},dependencies:[A.f],encapsulation:2,changeDetection:0}),Qe})(),J=(()=>{class Qe extends Pt{constructor(se,ze,mt,Pe,lt,Yt,un,Nt,pt,gt){super(se,ze,mt,Pe,lt,Yt,un,Nt,pt,gt),this.config=Nt}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(pe.qV),s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(v.Iu),s.Y36(me.jY),s.Y36(ie),s.Y36(M.K0,8),s.Y36(s.QbO,8))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["nz-modal-container"]],viewQuery:function(se,ze){if(1&se&&(s.Gf(d.Pl,7),s.Gf(ke,7)),2&se){let mt;s.iGM(mt=s.CRH())&&(ze.portalOutlet=mt.first),s.iGM(mt=s.CRH())&&(ze.modalElementRef=mt.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(se,ze){1&se&&(s.WFA("@modalContainer.start",function(Pe){return ze.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return ze.onAnimationDone(Pe)}),s.NdJ("click",function(Pe){return ze.onContainerClick(Pe)})),2&se&&(s.d8E("@.disabled",ze.config.nzNoAnimation)("@modalContainer",ze.state),s.Tol(ze.config.nzWrapClassName?"ant-modal-wrap "+ze.config.nzWrapClassName:"ant-modal-wrap"),s.Udp("z-index",ze.config.nzZIndex),s.ekj("ant-modal-wrap-rtl","rtl"===ze.dir)("ant-modal-centered",ze.config.nzCentered))},exportAs:["nzModalContainer"],features:[s.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(se,ze){1&se&&(s.TgZ(0,"div",0,1),s.ALo(2,"nzToCssUnit"),s.TgZ(3,"div",2),s.YNc(4,Ve,1,0,"button",3),s.YNc(5,Be,1,0,"div",4),s.TgZ(6,"div",5),s.YNc(7,He,0,0,"ng-template",6),s.YNc(8,je,1,1,"div",7),s.qZA(),s.YNc(9,Ne,1,1,"div",8),s.qZA()()),2&se&&(s.Udp("width",s.lcZ(2,9,null==ze.config?null:ze.config.nzWidth)),s.Q6J("ngClass",ze.config.nzClassName)("ngStyle",ze.config.nzStyle),s.xp6(4),s.Q6J("ngIf",ze.config.nzClosable),s.xp6(1),s.Q6J("ngIf",ze.config.nzTitle),s.xp6(1),s.Q6J("ngStyle",ze.config.nzBodyStyle),s.xp6(2),s.Q6J("ngIf",ze.isStringContent),s.xp6(1),s.Q6J("ngIf",null!==ze.config.nzFooter))},dependencies:[M.mk,M.O5,M.PC,d.Pl,Wt,Je,N,re.ku],encapsulation:2,data:{animation:[Cn.modalContainer]}}),Qe})();class Me{constructor(dt,se,ze){this.overlayRef=dt,this.config=se,this.containerInstance=ze,this.componentInstance=null,this.state=0,this.afterClose=new L.x,this.afterOpen=new L.x,this.destroy$=new L.x,ze.animationStateChanged.pipe((0,S.h)(mt=>"done"===mt.phaseName&&"enter"===mt.toState),(0,F.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),se.nzAfterOpen instanceof s.vpe&&se.nzAfterOpen.emit()}),ze.animationStateChanged.pipe((0,S.h)(mt=>"done"===mt.phaseName&&"exit"===mt.toState),(0,F.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),ze.containerClick.pipe((0,F.q)(1),(0,I.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),dt.keydownEvents().pipe((0,S.h)(mt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&mt.keyCode===ae.hY&&!(0,ae.Vb)(mt))).subscribe(mt=>{mt.preventDefault(),this.trigger("cancel")}),ze.cancelTriggered.pipe((0,I.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),ze.okTriggered.pipe((0,I.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),dt.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),se.nzAfterClose instanceof s.vpe&&se.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(dt){this.close(dt)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(dt){0===this.state&&(this.result=dt,this.containerInstance.animationStateChanged.pipe((0,S.h)(se=>"start"===se.phaseName),(0,F.q)(1)).subscribe(se=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},se.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(dt){Object.assign(this.config,dt),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(dt){var se=this;return function i(Qe){return function(){var dt=this,se=arguments;return new Promise(function(ze,mt){var Pe=Qe.apply(dt,se);function lt(un){t(Pe,ze,mt,lt,Yt,"next",un)}function Yt(un){t(Pe,ze,mt,lt,Yt,"throw",un)}lt(void 0)})}}(function*(){if(1===se.state)return;const ze={ok:se.config.nzOnOk,cancel:se.config.nzOnCancel}[dt],mt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[dt];if(!se.config[mt])if(ze instanceof s.vpe)ze.emit(se.getContentComponent());else if("function"==typeof ze){const lt=ze(se.getContentComponent());if((0,w.tI)(lt)){se.config[mt]=!0;let Yt=!1;try{Yt=yield lt}finally{se.config[mt]=!1,se.closeWhitResult(Yt)}}else se.closeWhitResult(lt)}})()}closeWhitResult(dt){!1!==dt&&this.close(dt)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let zt=(()=>{class Qe{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const se=this.parentModal;return se?se._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(se,ze,mt,Pe,lt){this.overlay=se,this.injector=ze,this.nzConfigService=mt,this.parentModal=Pe,this.directionality=lt,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new L.x,this.afterAllClose=(0,$.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,k.O)(void 0)))}create(se){return this.open(se.nzContent,se)}closeAll(){this.closeModals(this.openModals)}confirm(se={},ze="confirm"){return"nzFooter"in se&&(0,U.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in se||(se.nzWidth=416),"nzMaskClosable"in se||(se.nzMaskClosable=!1),se.nzModalType="confirm",se.nzClassName=`ant-modal-confirm ant-modal-confirm-${ze} ${se.nzClassName||""}`,this.create(se)}info(se={}){return this.confirmFactory(se,"info")}success(se={}){return this.confirmFactory(se,"success")}error(se={}){return this.confirmFactory(se,"error")}warning(se={}){return this.confirmFactory(se,"warning")}open(se,ze){const mt=function at(Qe,dt){return{...dt,...Qe}}(ze||{},new ie),Pe=this.createOverlay(mt),lt=this.attachModalContainer(Pe,mt),Yt=this.attachModalContent(se,lt,Pe,mt);return lt.modalRef=Yt,this.openModals.push(Yt),Yt.afterClose.subscribe(()=>this.removeOpenModal(Yt)),Yt}removeOpenModal(se){const ze=this.openModals.indexOf(se);ze>-1&&(this.openModals.splice(ze,1),this.openModals.length||this._afterAllClosed.next())}closeModals(se){let ze=se.length;for(;ze--;)se[ze].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(se){const ze=this.nzConfigService.getConfigForComponent(ct)||{},mt=new v.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Xe(se.nzCloseOnNavigation,ze.nzCloseOnNavigation,!0),direction:Xe(se.nzDirection,ze.nzDirection,this.directionality.value)});return Xe(se.nzMask,ze.nzMask,!0)&&(mt.backdropClass=qe),this.overlay.create(mt)}attachModalContainer(se,ze){const Pe=s.zs3.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:v.Iu,useValue:se},{provide:ie,useValue:ze}]}),Yt=new d.C5("confirm"===ze.nzModalType?kt:J,ze.nzViewContainerRef,Pe);return se.attach(Yt).instance}attachModalContent(se,ze,mt,Pe){const lt=new Me(mt,Pe,ze);if(se instanceof s.Rgc)ze.attachTemplatePortal(new d.UE(se,null,{$implicit:Pe.nzData,modalRef:lt}));else if((0,w.DX)(se)&&"string"!=typeof se){const Yt=this.createInjector(lt,Pe),un=ze.attachComponentPortal(new d.C5(se,Pe.nzViewContainerRef,Yt));lt.componentInstance=un.instance}else ze.attachStringContent();return lt}createInjector(se,ze){return s.zs3.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:Me,useValue:se},{provide:Zt,useValue:ze.nzData}]})}confirmFactory(se={},ze){return"nzIconType"in se||(se.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[ze]),"nzCancelText"in se||(se.nzCancelText=null),this.confirm(se,ze)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.LFG(v.aV),s.LFG(s.zs3),s.LFG(me.jY),s.LFG(Qe,12),s.LFG(Q.Is,8))},Qe.\u0275prov=s.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),nt=(()=>{class Qe{constructor(se){this.templateRef=se}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(s.Rgc))},Qe.\u0275dir=s.lG2({type:Qe,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),Qe})(),We=(()=>{class Qe{constructor(se,ze){this.nzModalRef=se,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(Me,8),s.Y36(s.Rgc))},Qe.\u0275dir=s.lG2({type:Qe,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),Qe})(),ot=(()=>{class Qe{constructor(se,ze){this.nzModalRef=se,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(Me,8),s.Y36(s.Rgc))},Qe.\u0275dir=s.lG2({type:Qe,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),Qe})(),Vt=(()=>{class Qe{set modalTitle(se){se&&this.setTitleWithTemplate(se)}set modalFooter(se){se&&this.setFooterWithTemplate(se)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(se,ze,mt){this.cdr=se,this.modal=ze,this.viewContainerRef=mt,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 s.vpe,this.nzOnCancel=new s.vpe,this.nzAfterOpen=new s.vpe,this.nzAfterClose=new s.vpe,this.nzVisibleChange=new s.vpe,this.modalRef=null,this.destroy$=new L.x}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const se=this.getConfig();this.modalRef=this.modal.create(se),this.modalRef.afterClose.asObservable().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(se){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(se),this.modalRef=null)}destroy(se){this.close(se)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(se){this.nzTitle=se,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(se){this.nzFooter=se,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const se=it(this);return se.nzViewContainerRef=this.viewContainerRef,se.nzContent=this.nzContent||this.contentFromContentChild,se}ngOnChanges(se){const{nzVisible:ze,...mt}=se;Object.keys(mt).length&&this.modalRef&&this.modalRef.updateConfig(it(this)),ze&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return Qe.\u0275fac=function(se){return new(se||Qe)(s.Y36(s.sBO),s.Y36(zt),s.Y36(s.s_b))},Qe.\u0275cmp=s.Xpm({type:Qe,selectors:[["nz-modal"]],contentQueries:function(se,ze,mt){if(1&se&&(s.Suo(mt,ot,7,s.Rgc),s.Suo(mt,nt,7,s.Rgc),s.Suo(mt,We,7,s.Rgc)),2&se){let Pe;s.iGM(Pe=s.CRH())&&(ze.modalTitle=Pe.first),s.iGM(Pe=s.CRH())&&(ze.contentFromContentChild=Pe.first),s.iGM(Pe=s.CRH())&&(ze.modalFooter=Pe.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",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:[s.TTD],decls:0,vars:0,template:function(se,ze){},encapsulation:2,changeDetection:0}),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzMask",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzMaskClosable",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzCloseOnNavigation",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzVisible",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzClosable",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzOkLoading",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzOkDisabled",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzCancelDisabled",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzCancelLoading",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzKeyboard",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzNoAnimation",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzCentered",void 0),(0,fe.gn)([(0,w.yF)()],Qe.prototype,"nzOkDanger",void 0),Qe})(),St=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275mod=s.oAB({type:Qe}),Qe.\u0275inj=s.cJS({providers:[zt],imports:[M.ez,Q.vT,v.U8,A.T,d.eL,Z.YI,V.sL,D.PV,re.YS,ue.g,re.YS]}),Qe})()},6192:(It,be,a)=>{a.d(be,{Pr:()=>S,YS:()=>U,ku:()=>j});var t=a(6814),i=a(5879),v=a(7754),d=a(6593);class L{transform(M,e=0,R="B",pe){if(!((0,v.ui)(M)&&(0,v.ui)(e)&&e%1==0&&e>=0))return M;let me=M,Z=R;for(;"B"!==Z;)me*=1024,Z=L.formats[Z].prev;if(pe){const V=(0,v.YM)(L.calculateResult(L.formats[pe],me),e);return L.formatResult(V,pe)}for(const A in L.formats)if(L.formats.hasOwnProperty(A)){const V=L.formats[A];if(me{class w{transform(e,R="px"){let V="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(O=>O===R)&&(V=R),"number"==typeof e?`${e}${V}`:`${e}`}}return w.\u0275fac=function(e){return new(e||w)},w.\u0275pipe=i.Yjl({name:"nzToCssUnit",type:w,pure:!0}),w})(),S=(()=>{class w{constructor(e){this.sanitizer=e}transform(e,R="html"){switch(R){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error("Invalid safe type specified")}}}return w.\u0275fac=function(e){return new(e||w)(i.Y36(d.H7,16))},w.\u0275pipe=i.Yjl({name:"nzSanitizer",type:w,pure:!0}),w})(),U=(()=>{class w{}return w.\u0275fac=function(e){return new(e||w)},w.\u0275mod=i.oAB({type:w}),w.\u0275inj=i.cJS({imports:[t.ez]}),w})()},7417:(It,be,a)=>{a.d(be,{$6:()=>Z,lU:()=>pe});var t=a(655),i=a(5879),v=a(4194),d=a(874),s=a(7754),L=a(6109),j=a(331),$=a(9388),I=a(6814),S=a(9594),F=a(8324),k=a(5448);function U(A,V){if(1&A&&(i.ynx(0),i._uU(1),i.BQk()),2&A){const O=i.oxw(3);i.xp6(1),i.Oqu(O.nzTitle)}}function w(A,V){if(1&A&&(i.TgZ(0,"div",10),i.YNc(1,U,2,1,"ng-container",9),i.qZA()),2&A){const O=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",O.nzTitle)}}function M(A,V){if(1&A&&(i.ynx(0),i._uU(1),i.BQk()),2&A){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzContent)}}function e(A,V){if(1&A&&(i.TgZ(0,"div",2)(1,"div",3)(2,"div",4),i._UZ(3,"span",5),i.qZA(),i.TgZ(4,"div",6)(5,"div"),i.YNc(6,w,2,1,"div",7),i.TgZ(7,"div",8),i.YNc(8,M,2,1,"ng-container",9),i.qZA()()()()()),2&A){const O=i.oxw();i.ekj("ant-popover-rtl","rtl"===O.dir),i.Q6J("ngClass",O._classMap)("ngStyle",O.nzOverlayStyle)("@.disabled",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))("nzNoAnimation",null==O.noAnimation?null:O.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.xp6(6),i.Q6J("ngIf",O.nzTitle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzContent)}}let pe=(()=>{class A extends L.Mg{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(O,P,D,re,ae,Q){super(O,P,D,re,ae,Q),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new i.vpe,this.componentRef=this.hostView.createComponent(me)}}return A.\u0275fac=function(O){return new(O||A)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(j.P,9),i.Y36(d.jY))},A.\u0275dir=i.lG2({type:A,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(O,P){2&O&&i.ekj("ant-popover-open",P.visible)},inputs:{arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],features:[i.qOj]}),(0,t.gn)([(0,s.yF)()],A.prototype,"arrowPointAtCenter",void 0),(0,t.gn)([(0,d.oS)()],A.prototype,"nzPopoverBackdrop",void 0),A})(),me=(()=>{class A extends L.XK{constructor(O,P,D){super(O,P,D),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,L.pu)(this.nzTitle)&&(0,L.pu)(this.nzContent)}}return A.\u0275fac=function(O){return new(O||A)(i.Y36(i.sBO),i.Y36($.Is,8),i.Y36(j.P,9))},A.\u0275cmp=i.Xpm({type:A,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[i.qOj],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(O,P){1&O&&(i.YNc(0,e,9,9,"ng-template",0,1,i.W1O),i.NdJ("overlayOutsideClick",function(re){return P.onClickOutside(re)})("detach",function(){return P.hide()})("positionChange",function(re){return P.onPositionChange(re)})),2&O&&i.Q6J("cdkConnectedOverlayHasBackdrop",P.hasBackdrop)("cdkConnectedOverlayOrigin",P.origin)("cdkConnectedOverlayPositions",P._positions)("cdkConnectedOverlayOpen",P._visible)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",P.nzArrowPointAtCenter)},dependencies:[I.mk,I.O5,I.PC,S.pI,F.f,k.hQ,j.P],encapsulation:2,data:{animation:[v.$C]},changeDetection:0}),A})(),Z=(()=>{class A{}return A.\u0275fac=function(O){return new(O||A)},A.\u0275mod=i.oAB({type:A}),A.\u0275inj=i.cJS({imports:[$.vT,I.ez,S.U8,F.T,k.e4,j.g,L.cg]}),A})()},7907:(It,be,a)=>{a.d(be,{Bq:()=>e,Dg:()=>pe,Of:()=>me,aF:()=>Z});var t=a(5879),i=a(655),v=a(6223),d=a(7328),s=a(8645),L=a(2438),j=a(9773),$=a(7754),I=a(9388),S=a(4300),F=a(883),k=a(6814);const U=["*"],w=["inputElement"],M=["nz-radio",""];let e=(()=>{class A{}return A.\u0275fac=function(O){return new(O||A)},A.\u0275dir=t.lG2({type:A,selectors:[["","nz-radio-button",""]]}),A})(),R=(()=>{class A{constructor(){this.selected$=new d.t(1),this.touched$=new s.x,this.disabled$=new d.t(1),this.name$=new d.t(1)}touch(){this.touched$.next()}select(O){this.selected$.next(O)}setDisabled(O){this.disabled$.next(O)}setName(O){this.name$.next(O)}}return A.\u0275fac=function(O){return new(O||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac}),A})(),pe=(()=>{class A{constructor(O,P,D){this.cdr=O,this.nzRadioService=P,this.directionality=D,this.value=null,this.destroy$=new s.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,j.R)(this.destroy$)).subscribe(O=>{this.value!==O&&(this.value=O,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,j.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,j.R)(this.destroy$)).subscribe(O=>{this.dir=O,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(O){const{nzDisabled:P,nzName:D}=O;P&&this.nzRadioService.setDisabled(this.nzDisabled),D&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(O){this.value=O,this.nzRadioService.select(O),this.cdr.markForCheck()}registerOnChange(O){this.onChange=O}registerOnTouched(O){this.onTouched=O}setDisabledState(O){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}}return A.\u0275fac=function(O){return new(O||A)(t.Y36(t.sBO),t.Y36(R),t.Y36(I.Is,8))},A.\u0275cmp=t.Xpm({type:A,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(O,P){2&O&&t.ekj("ant-radio-group-large","large"===P.nzSize)("ant-radio-group-small","small"===P.nzSize)("ant-radio-group-solid","solid"===P.nzButtonStyle)("ant-radio-group-rtl","rtl"===P.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[t._Bn([R,{provide:v.JU,useExisting:(0,t.Gpc)(()=>A),multi:!0}]),t.TTD],ngContentSelectors:U,decls:1,vars:0,template:function(O,P){1&O&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,$.yF)()],A.prototype,"nzDisabled",void 0),A})(),me=(()=>{class A{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(O,P,D,re,ae,Q,fe,ue){this.ngZone=O,this.elementRef=P,this.cdr=D,this.focusMonitor=re,this.directionality=ae,this.nzRadioService=Q,this.nzRadioButtonDirective=fe,this.nzFormStatusService=ue,this.isNgModel=!1,this.destroy$=new s.x,this.isNzDisableFirstChange=!0,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"}setDisabledState(O){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(O){this.isChecked=O,this.cdr.markForCheck()}registerOnChange(O){this.isNgModel=!0,this.onChange=O}registerOnTouched(O){this.onTouched=O}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,j.R)(this.destroy$)).subscribe(O=>{this.name=O,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,j.R)(this.destroy$)).subscribe(O=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,j.R)(this.destroy$)).subscribe(O=>{const P=this.isChecked;this.isChecked=this.nzValue===O,this.isNgModel&&P!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,j.R)(this.destroy$)).subscribe(O=>{O||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,j.R)(this.destroy$)).subscribe(O=>{this.dir=O,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,L.R)(this.elementRef.nativeElement,"click").pipe((0,j.R)(this.destroy$)).subscribe(O=>{O.stopPropagation(),O.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return A.\u0275fac=function(O){return new(O||A)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(S.tE),t.Y36(I.Is,8),t.Y36(R,8),t.Y36(e,8),t.Y36(F.kH,8))},A.\u0275cmp=t.Xpm({type:A,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(O,P){if(1&O&&t.Gf(w,7),2&O){let D;t.iGM(D=t.CRH())&&(P.inputElement=D.first)}},hostVars:18,hostBindings:function(O,P){2&O&&t.ekj("ant-radio-wrapper-in-form-item",!!P.nzFormStatusService)("ant-radio-wrapper",!P.isRadioButton)("ant-radio-button-wrapper",P.isRadioButton)("ant-radio-wrapper-checked",P.isChecked&&!P.isRadioButton)("ant-radio-button-wrapper-checked",P.isChecked&&P.isRadioButton)("ant-radio-wrapper-disabled",P.nzDisabled&&!P.isRadioButton)("ant-radio-button-wrapper-disabled",P.nzDisabled&&P.isRadioButton)("ant-radio-wrapper-rtl",!P.isRadioButton&&"rtl"===P.dir)("ant-radio-button-wrapper-rtl",P.isRadioButton&&"rtl"===P.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[t._Bn([{provide:v.JU,useExisting:(0,t.Gpc)(()=>A),multi:!0}])],attrs:M,ngContentSelectors:U,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(O,P){1&O&&(t.F$t(),t.TgZ(0,"span"),t._UZ(1,"input",0,1)(3,"span"),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&O&&(t.ekj("ant-radio",!P.isRadioButton)("ant-radio-checked",P.isChecked&&!P.isRadioButton)("ant-radio-disabled",P.nzDisabled&&!P.isRadioButton)("ant-radio-button",P.isRadioButton)("ant-radio-button-checked",P.isChecked&&P.isRadioButton)("ant-radio-button-disabled",P.nzDisabled&&P.isRadioButton),t.xp6(1),t.ekj("ant-radio-input",!P.isRadioButton)("ant-radio-button-input",P.isRadioButton),t.Q6J("disabled",P.nzDisabled)("checked",P.isChecked),t.uIk("autofocus",P.nzAutoFocus?"autofocus":null)("name",P.name),t.xp6(2),t.ekj("ant-radio-inner",!P.isRadioButton)("ant-radio-button-inner",P.isRadioButton))},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,$.yF)()],A.prototype,"nzDisabled",void 0),(0,i.gn)([(0,$.yF)()],A.prototype,"nzAutoFocus",void 0),A})(),Z=(()=>{class A{}return A.\u0275fac=function(O){return new(O||A)},A.\u0275mod=t.oAB({type:A}),A.\u0275inj=t.cJS({imports:[I.vT,k.ez,v.u5]}),A})()},9691:(It,be,a)=>{a.d(be,{Ip:()=>mn,LV:()=>Nt,Vq:()=>un,Yy:()=>We});var t=a(5879),i=a(8645),v=a(2438),d=a(5619),s=a(2096),L=a(2572),j=a(3019),$=a(532),I=a(6814),S=a(804),F=a(9773),k=a(7921),U=a(3997),w=a(2460),M=a(7398),e=a(4664),R=a(9087),pe=a(551),me=a(855),Z=a(8324),A=a(655),V=a(7754),O=a(6028),P=a(9594),D=a(6223),re=a(4194),ae=a(874),Q=a(5448),fe=a(6879),ue=a(4300),ge=a(331),Se=a(2831),ke=a(9388),Rt=a(883),Ft=a(1752);const Mt=["*"];function yt(pt,gt){}function Ct(pt,gt){if(1&pt&&t.YNc(0,yt,0,0,"ng-template",4),2&pt){const ee=t.oxw();t.Q6J("ngTemplateOutlet",ee.template)}}function Lt(pt,gt){if(1&pt&&t._uU(0),2&pt){const ee=t.oxw();t.Oqu(ee.label)}}function rn(pt,gt){1&pt&&t._UZ(0,"span",7)}function Sn(pt,gt){if(1&pt&&(t.TgZ(0,"div",5),t.YNc(1,rn,1,0,"span",6),t.qZA()),2&pt){const ee=t.oxw();t.xp6(1),t.Q6J("ngIf",!ee.icon)("ngIfElse",ee.icon)}}function rt(pt,gt){if(1&pt&&(t.ynx(0),t._uU(1),t.BQk()),2&pt){const ee=t.oxw();t.xp6(1),t.Oqu(ee.nzLabel)}}function Ye(pt,gt){if(1&pt&&(t.TgZ(0,"div",4),t._UZ(1,"nz-embed-empty",5),t.qZA()),2&pt){const ee=t.oxw();t.xp6(1),t.Q6J("specificContent",ee.notFoundContent)}}function st(pt,gt){if(1&pt&&t._UZ(0,"nz-option-item-group",9),2&pt){const ee=t.oxw().$implicit;t.Q6J("nzLabel",ee.groupLabel)}}function Ze(pt,gt){if(1&pt){const ee=t.EpF();t.TgZ(0,"nz-option-item",10),t.NdJ("itemHover",function(Te){t.CHM(ee);const $e=t.oxw(2);return t.KtG($e.onItemHover(Te))})("itemClick",function(Te){t.CHM(ee);const $e=t.oxw(2);return t.KtG($e.onItemClick(Te))}),t.qZA()}if(2&pt){const ee=t.oxw().$implicit,H=t.oxw();t.Q6J("icon",H.menuItemSelectedIcon)("customContent",ee.nzCustomContent)("template",ee.template)("grouped",!!ee.groupLabel)("disabled",ee.nzDisabled)("showState","tags"===H.mode||"multiple"===H.mode)("label",ee.nzLabel)("compareWith",H.compareWith)("activatedValue",H.activatedValue)("listOfSelectedValue",H.listOfSelectedValue)("value",ee.nzValue)}}function Bt(pt,gt){1&pt&&(t.ynx(0,6),t.YNc(1,st,1,1,"nz-option-item-group",7),t.YNc(2,Ze,1,11,"nz-option-item",8),t.BQk()),2&pt&&(t.Q6J("ngSwitch",gt.$implicit.type),t.xp6(1),t.Q6J("ngSwitchCase","group"),t.xp6(1),t.Q6J("ngSwitchCase","item"))}function Jt(pt,gt){}function _n(pt,gt){1&pt&&t.Hsn(0)}const On=["inputElement"],cn=["mirrorElement"];function wt(pt,gt){1&pt&&t._UZ(0,"span",3,4)}function Ve(pt,gt){if(1&pt&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&pt){const ee=t.oxw(2);t.xp6(1),t.Oqu(ee.label)}}function Be(pt,gt){if(1&pt&&t._uU(0),2&pt){const ee=t.oxw(2);t.Oqu(ee.label)}}function He(pt,gt){if(1&pt&&(t.ynx(0),t.YNc(1,Ve,2,1,"div",2),t.YNc(2,Be,1,1,"ng-template",null,3,t.W1O),t.BQk()),2&pt){const ee=t.MAs(3),H=t.oxw();t.xp6(1),t.Q6J("ngIf",H.deletable)("ngIfElse",ee)}}function je(pt,gt){1&pt&&t._UZ(0,"span",7)}function Ne(pt,gt){if(1&pt){const ee=t.EpF();t.TgZ(0,"span",5),t.NdJ("click",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.onDelete(Te))}),t.YNc(1,je,1,0,"span",6),t.qZA()}if(2&pt){const ee=t.oxw();t.xp6(1),t.Q6J("ngIf",!ee.removeIcon)("ngIfElse",ee.removeIcon)}}const De=function(pt){return{$implicit:pt}};function ie(pt,gt){if(1&pt&&(t.ynx(0),t._uU(1),t.BQk()),2&pt){const ee=t.oxw();t.xp6(1),t.hij(" ",ee.placeholder," ")}}function Ce(pt,gt){if(1&pt&&t._UZ(0,"nz-select-item",6),2&pt){const ee=t.oxw(2);t.Q6J("deletable",!1)("disabled",!1)("removeIcon",ee.removeIcon)("label",ee.listOfTopItem[0].nzLabel)("contentTemplateOutlet",ee.customTemplate)("contentTemplateOutletContext",ee.listOfTopItem[0])}}function ve(pt,gt){if(1&pt){const ee=t.EpF();t.ynx(0),t.TgZ(1,"nz-select-search",4),t.NdJ("isComposingChange",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.isComposingChange(Te))})("valueChange",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.onInputValueChange(Te))}),t.qZA(),t.YNc(2,Ce,1,6,"nz-select-item",5),t.BQk()}if(2&pt){const ee=t.oxw();t.xp6(1),t.Q6J("nzId",ee.nzId)("disabled",ee.disabled)("value",ee.inputValue)("showInput",ee.showSearch)("mirrorSync",!1)("autofocus",ee.autofocus)("focusTrigger",ee.open),t.xp6(1),t.Q6J("ngIf",ee.isShowSingleLabel)}}function qe(pt,gt){if(1&pt){const ee=t.EpF();t.TgZ(0,"nz-select-item",9),t.NdJ("delete",function(){const $e=t.CHM(ee).$implicit,Tt=t.oxw(2);return t.KtG(Tt.onDeleteItem($e.contentTemplateOutletContext))}),t.qZA()}if(2&pt){const ee=gt.$implicit,H=t.oxw(2);t.Q6J("removeIcon",H.removeIcon)("label",ee.nzLabel)("disabled",ee.nzDisabled||H.disabled)("contentTemplateOutlet",ee.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",ee.contentTemplateOutletContext)}}function ct(pt,gt){if(1&pt){const ee=t.EpF();t.ynx(0),t.YNc(1,qe,1,6,"nz-select-item",7),t.TgZ(2,"nz-select-search",8),t.NdJ("isComposingChange",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.isComposingChange(Te))})("valueChange",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.onInputValueChange(Te))}),t.qZA(),t.BQk()}if(2&pt){const ee=t.oxw();t.xp6(1),t.Q6J("ngForOf",ee.listOfSlicedItem)("ngForTrackBy",ee.trackValue),t.xp6(1),t.Q6J("nzId",ee.nzId)("disabled",ee.disabled)("value",ee.inputValue)("autofocus",ee.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",ee.open)}}function Zt(pt,gt){if(1&pt&&t._UZ(0,"nz-select-placeholder",10),2&pt){const ee=t.oxw();t.Q6J("placeholder",ee.placeHolder)}}function Cn(pt,gt){1&pt&&t._UZ(0,"span",1)}function at(pt,gt){1&pt&&t._UZ(0,"span",3)}function Xe(pt,gt){1&pt&&t._UZ(0,"span",8)}function it(pt,gt){1&pt&&t._UZ(0,"span",9)}function Ot(pt,gt){if(1&pt&&(t.ynx(0),t.YNc(1,Xe,1,0,"span",6),t.YNc(2,it,1,0,"span",7),t.BQk()),2&pt){const ee=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!ee.search),t.xp6(1),t.Q6J("ngIf",ee.search)}}function Pt(pt,gt){if(1&pt&&t._UZ(0,"span",11),2&pt){const ee=t.oxw().$implicit;t.Q6J("nzType",ee)}}function Wt(pt,gt){if(1&pt&&(t.ynx(0),t.YNc(1,Pt,1,1,"span",10),t.BQk()),2&pt){const ee=gt.$implicit;t.xp6(1),t.Q6J("ngIf",ee)}}function kt(pt,gt){if(1&pt&&t.YNc(0,Wt,2,1,"ng-container",2),2&pt){const ee=t.oxw(2);t.Q6J("nzStringTemplateOutlet",ee.suffixIcon)}}function Je(pt,gt){if(1&pt&&(t.YNc(0,Ot,3,2,"ng-container",4),t.YNc(1,kt,1,1,"ng-template",null,5,t.W1O)),2&pt){const ee=t.MAs(2),H=t.oxw();t.Q6J("ngIf",H.showArrow&&!H.suffixIcon)("ngIfElse",ee)}}function K(pt,gt){if(1&pt&&(t.ynx(0),t._uU(1),t.BQk()),2&pt){const ee=t.oxw();t.xp6(1),t.Oqu(ee.feedbackIcon)}}function N(pt,gt){if(1&pt&&t._UZ(0,"nz-form-item-feedback-icon",8),2&pt){const ee=t.oxw(3);t.Q6J("status",ee.status)}}function J(pt,gt){if(1&pt&&t.YNc(0,N,1,1,"nz-form-item-feedback-icon",7),2&pt){const ee=t.oxw(2);t.Q6J("ngIf",ee.hasFeedback&&!!ee.status)}}function Me(pt,gt){if(1&pt&&(t.TgZ(0,"nz-select-arrow",5),t.YNc(1,J,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&pt){const ee=t.MAs(2),H=t.oxw();t.Q6J("showArrow",H.nzShowArrow)("loading",H.nzLoading)("search",H.nzOpen&&H.nzShowSearch)("suffixIcon",H.nzSuffixIcon)("feedbackIcon",ee)}}function zt(pt,gt){if(1&pt){const ee=t.EpF();t.TgZ(0,"nz-select-clear",9),t.NdJ("clear",function(){t.CHM(ee);const Te=t.oxw();return t.KtG(Te.onClearSelection())}),t.qZA()}if(2&pt){const ee=t.oxw();t.Q6J("clearIcon",ee.nzClearIcon)}}function nt(pt,gt){if(1&pt){const ee=t.EpF();t.TgZ(0,"nz-option-container",10),t.NdJ("keydown",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.onKeyDown(Te))})("itemClick",function(Te){t.CHM(ee);const $e=t.oxw();return t.KtG($e.onItemClick(Te))})("scrollToBottom",function(){t.CHM(ee);const Te=t.oxw();return t.KtG(Te.nzScrollToBottom.emit())}),t.qZA()}if(2&pt){const ee=t.oxw();t.ekj("ant-select-dropdown-placement-bottomLeft","bottomLeft"===ee.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===ee.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===ee.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===ee.dropDownPosition),t.Q6J("ngStyle",ee.nzDropdownStyle)("itemSize",ee.nzOptionHeightPx)("maxItemLength",ee.nzOptionOverflowSize)("matchWidth",ee.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==ee.noAnimation||!ee.noAnimation.nzNoAnimation))("nzNoAnimation",null==ee.noAnimation?null:ee.noAnimation.nzNoAnimation)("listOfContainerItem",ee.listOfContainerItem)("menuItemSelectedIcon",ee.nzMenuItemSelectedIcon)("notFoundContent",ee.nzNotFoundContent)("activatedValue",ee.activatedValue)("listOfSelectedValue",ee.listOfValue)("dropdownRender",ee.nzDropdownRender)("compareWith",ee.compareWith)("mode",ee.nzMode)}}let We=(()=>{class pt{constructor(){this.nzLabel=null,this.changes=new i.x}ngOnChanges(){this.changes.next()}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[t.TTD],ngContentSelectors:Mt,decls:1,vars:0,template:function(ee,H){1&ee&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),pt})(),ot=(()=>{class pt{constructor(ee,H,Te){this.elementRef=ee,this.ngZone=H,this.destroy$=Te,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 t.vpe,this.itemHover=new t.vpe}ngOnChanges(ee){const{value:H,activatedValue:Te,listOfSelectedValue:$e}=ee;(H||$e)&&(this.selected=this.listOfSelectedValue.some(Tt=>this.compareWith(Tt,this.value))),(H||Te)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,v.R)(this.elementRef.nativeElement,"click").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,v.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}}return pt.\u0275fac=function(ee){return new(ee||pt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(R.kn))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(ee,H){2&ee&&(t.uIk("title",H.label),t.ekj("ant-select-item-option-grouped",H.grouped)("ant-select-item-option-selected",H.selected&&!H.disabled)("ant-select-item-option-disabled",H.disabled)("ant-select-item-option-active",H.activated&&!H.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:[t._Bn([R.kn]),t.TTD],decls:5,vars:3,consts:[[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["noCustomContent",""],["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(ee,H){if(1&ee&&(t.TgZ(0,"div",0),t.YNc(1,Ct,1,1,"ng-template",1),t.YNc(2,Lt,1,1,"ng-template",null,2,t.W1O),t.qZA(),t.YNc(4,Sn,2,2,"div",3)),2&ee){const Te=t.MAs(3);t.xp6(1),t.Q6J("ngIf",H.customContent)("ngIfElse",Te),t.xp6(3),t.Q6J("ngIf",H.showState&&H.selected)}},dependencies:[I.O5,I.tP,pe.Ls,me.w],encapsulation:2,changeDetection:0}),pt})(),Vt=(()=>{class pt{constructor(){this.nzLabel=null}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,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(ee,H){1&ee&&t.YNc(0,rt,2,1,"ng-container",0),2&ee&&t.Q6J("nzStringTemplateOutlet",H.nzLabel)},dependencies:[Z.f],encapsulation:2,changeDetection:0}),pt})(),St=(()=>{class pt{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 t.vpe,this.scrollToBottom=new t.vpe,this.scrolledIndex=0}onItemClick(ee){this.itemClick.emit(ee)}onItemHover(ee){this.activatedValue=ee}trackValue(ee,H){return H.key}onScrolledIndexChange(ee){this.scrolledIndex=ee,ee===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const ee=this.listOfContainerItem.findIndex(H=>this.compareWith(H.key,this.activatedValue));(ee=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(ee||0)}ngOnChanges(ee){const{listOfContainerItem:H,activatedValue:Te}=ee;(H||Te)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-option-container"]],viewQuery:function(ee,H){if(1&ee&&t.Gf($.N7,7),2&ee){let Te;t.iGM(Te=t.CRH())&&(H.cdkVirtualScrollViewport=Te.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:[t.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(ee,H){1&ee&&(t.TgZ(0,"div"),t.YNc(1,Ye,2,1,"div",0),t.TgZ(2,"cdk-virtual-scroll-viewport",1),t.NdJ("scrolledIndexChange",function($e){return H.onScrolledIndexChange($e)}),t.YNc(3,Bt,3,3,"ng-template",2),t.qZA(),t.YNc(4,Jt,0,0,"ng-template",3),t.qZA()),2&ee&&(t.xp6(1),t.Q6J("ngIf",0===H.listOfContainerItem.length),t.xp6(1),t.Udp("height",H.listOfContainerItem.length*H.itemSize,"px")("max-height",H.itemSize*H.maxItemLength,"px"),t.ekj("full-width",!H.matchWidth),t.Q6J("itemSize",H.itemSize)("maxBufferPx",H.itemSize*H.maxItemLength)("minBufferPx",H.itemSize*H.maxItemLength),t.xp6(1),t.Q6J("cdkVirtualForOf",H.listOfContainerItem)("cdkVirtualForTrackBy",H.trackValue)("cdkVirtualForTemplateCacheSize",0),t.xp6(1),t.Q6J("ngTemplateOutlet",H.dropdownRender))},dependencies:[I.O5,I.tP,I.RF,I.n9,$.xd,$.x0,$.N7,S.gB,ot,Vt],encapsulation:2,changeDetection:0}),pt})(),mn=(()=>{class pt{constructor(ee,H){this.nzOptionGroupComponent=ee,this.destroy$=H,this.changes=new i.x,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,k.O)(!0),(0,F.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return pt.\u0275fac=function(ee){return new(ee||pt)(t.Y36(We,8),t.Y36(R.kn))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-option"]],viewQuery:function(ee,H){if(1&ee&&t.Gf(t.Rgc,7),2&ee){let Te;t.iGM(Te=t.CRH())&&(H.template=Te.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[t._Bn([R.kn]),t.TTD],ngContentSelectors:Mt,decls:1,vars:0,template:function(ee,H){1&ee&&(t.F$t(),t.YNc(0,_n,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzDisabled",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzHide",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzCustomContent",void 0),pt})(),Qe=(()=>{class pt{setCompositionState(ee){this.isComposingChange.next(ee)}onValueChange(ee){this.value=ee,this.valueChange.next(ee),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const ee=this.mirrorElement.nativeElement,H=this.elementRef.nativeElement,Te=this.inputElement.nativeElement;this.renderer.removeStyle(H,"width"),this.renderer.setProperty(ee,"textContent",`${Te.value}\xa0`),this.renderer.setStyle(H,"width",`${ee.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ee,H,Te){this.elementRef=ee,this.renderer=H,this.focusMonitor=Te,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.vpe,this.isComposingChange=new t.vpe}ngOnChanges(ee){const H=this.inputElement.nativeElement,{focusTrigger:Te,showInput:$e}=ee;$e&&(this.showInput?this.renderer.removeAttribute(H,"readonly"):this.renderer.setAttribute(H,"readonly","readonly")),Te&&!0===Te.currentValue&&!1===Te.previousValue&&H.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return pt.\u0275fac=function(ee){return new(ee||pt)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(ue.tE))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-search"]],viewQuery:function(ee,H){if(1&ee&&(t.Gf(On,7),t.Gf(cn,5)),2&ee){let Te;t.iGM(Te=t.CRH())&&(H.inputElement=Te.first),t.iGM(Te=t.CRH())&&(H.mirrorElement=Te.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:[t._Bn([{provide:D.ve,useValue:!1}]),t.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(ee,H){1&ee&&(t.TgZ(0,"input",0,1),t.NdJ("ngModelChange",function($e){return H.onValueChange($e)})("compositionstart",function(){return H.setCompositionState(!0)})("compositionend",function(){return H.setCompositionState(!1)}),t.qZA(),t.YNc(2,wt,2,0,"span",2)),2&ee&&(t.Udp("opacity",H.showInput?null:0),t.Q6J("ngModel",H.value)("disabled",H.disabled),t.uIk("id",H.nzId)("autofocus",H.autofocus?"autofocus":null),t.xp6(2),t.Q6J("ngIf",H.mirrorSync))},dependencies:[I.O5,D.Fj,D.JJ,D.On],encapsulation:2,changeDetection:0}),pt})(),dt=(()=>{class pt{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.vpe}onDelete(ee){ee.preventDefault(),ee.stopPropagation(),this.disabled||this.delete.next(ee)}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(ee,H){2&ee&&(t.uIk("title",H.label),t.ekj("ant-select-selection-item-disabled",H.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(ee,H){1&ee&&(t.YNc(0,He,4,2,"ng-container",0),t.YNc(1,Ne,2,2,"span",1)),2&ee&&(t.Q6J("nzStringTemplateOutlet",H.contentTemplateOutlet)("nzStringTemplateOutletContext",t.VKq(3,De,H.contentTemplateOutletContext)),t.xp6(1),t.Q6J("ngIf",H.deletable&&!H.disabled))},dependencies:[I.O5,pe.Ls,Z.f,me.w],encapsulation:2,changeDetection:0}),pt})(),se=(()=>{class pt{constructor(){this.placeholder=null}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(ee,H){1&ee&&t.YNc(0,ie,2,1,"ng-container",0),2&ee&&t.Q6J("nzStringTemplateOutlet",H.placeholder)},dependencies:[Z.f],encapsulation:2,changeDetection:0}),pt})(),ze=(()=>{class pt{updateTemplateVariable(){const ee=0===this.listOfTopItem.length;this.isShowPlaceholder=ee&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!ee&&!this.isComposing&&!this.inputValue}isComposingChange(ee){this.isComposing=ee,this.updateTemplateVariable()}onInputValueChange(ee){ee!==this.inputValue&&(this.inputValue=ee,this.updateTemplateVariable(),this.inputValueChange.emit(ee),this.tokenSeparate(ee,this.tokenSeparators))}tokenSeparate(ee,H){if(ee&&ee.length&&H.length&&"default"!==this.mode&&((Tt,Xt)=>{for(let qt=0;qt0)return!0;return!1})(ee,H)){const Tt=((Tt,Xt)=>{const qt=new RegExp(`[${Xt.join()}]`),Un=Tt.split(qt).filter(zn=>zn);return[...new Set(Un)]})(ee,H);this.tokenize.next(Tt)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(ee,H){return H.nzValue}onDeleteItem(ee){!this.disabled&&!ee.nzDisabled&&this.deleteItem.next(ee)}constructor(ee,H,Te){this.elementRef=ee,this.ngZone=H,this.noAnimation=Te,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 t.vpe,this.inputValueChange=new t.vpe,this.deleteItem=new t.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new i.x}ngOnChanges(ee){const{listOfTopItem:H,maxTagCount:Te,customTemplate:$e,maxTagPlaceholder:Tt}=ee;if(H&&this.updateTemplateVariable(),H||Te||$e||Tt){const Xt=this.listOfTopItem.slice(0,this.maxTagCount).map(qt=>({nzLabel:qt.nzLabel,nzValue:qt.nzValue,nzDisabled:qt.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:qt}));if(this.listOfTopItem.length>this.maxTagCount){const qt=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Un=this.listOfTopItem.map(Vn=>Vn.nzValue),zn={nzLabel:qt,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Un.slice(this.maxTagCount)};Xt.push(zn)}this.listOfSlicedItem=Xt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,v.R)(this.elementRef.nativeElement,"click").pipe((0,F.R)(this.destroy$)).subscribe(ee=>{ee.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,v.R)(this.elementRef.nativeElement,"keydown").pipe((0,F.R)(this.destroy$)).subscribe(ee=>{ee.target instanceof HTMLInputElement&&ee.keyCode===O.ZH&&"default"!==this.mode&&!ee.target.value&&this.listOfTopItem.length>0&&(ee.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}}return pt.\u0275fac=function(ee){return new(ee||pt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ge.P,9))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-top-control"]],viewQuery:function(ee,H){if(1&ee&&t.Gf(Qe,5),2&ee){let Te;t.iGM(Te=t.CRH())&&(H.nzSelectSearchComponent=Te.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:[t.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(ee,H){1&ee&&(t.ynx(0,0),t.YNc(1,ve,3,8,"ng-container",1),t.YNc(2,ct,3,9,"ng-container",2),t.BQk(),t.YNc(3,Zt,1,1,"nz-select-placeholder",3)),2&ee&&(t.Q6J("ngSwitch",H.mode),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(2),t.Q6J("ngIf",H.isShowPlaceholder))},dependencies:[I.sg,I.O5,I.RF,I.n9,I.ED,me.w,Qe,dt,se],encapsulation:2,changeDetection:0}),pt})(),mt=(()=>{class pt{constructor(){this.clearIcon=null,this.clear=new t.vpe}onClick(ee){ee.preventDefault(),ee.stopPropagation(),this.clear.emit(ee)}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(ee,H){1&ee&&t.NdJ("click",function($e){return H.onClick($e)})},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(ee,H){1&ee&&t.YNc(0,Cn,1,0,"span",0),2&ee&&t.Q6J("ngIf",!H.clearIcon)("ngIfElse",H.clearIcon)},dependencies:[I.O5,pe.Ls,me.w],encapsulation:2,changeDetection:0}),pt})(),Pe=(()=>{class pt{constructor(){this.loading=!1,this.search=!1,this.showArrow=!1,this.suffixIcon=null,this.feedbackIcon=null}}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(ee,H){2&ee&&t.ekj("ant-select-arrow-loading",H.loading)},inputs:{loading:"loading",search:"search",showArrow:"showArrow",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon"},decls:4,vars:3,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],[4,"nzStringTemplateOutlet"],["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"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(ee,H){if(1&ee&&(t.YNc(0,at,1,0,"span",0),t.YNc(1,Je,3,2,"ng-template",null,1,t.W1O),t.YNc(3,K,2,1,"ng-container",2)),2&ee){const Te=t.MAs(2);t.Q6J("ngIf",H.loading)("ngIfElse",Te),t.xp6(3),t.Q6J("nzStringTemplateOutlet",H.feedbackIcon)}},dependencies:[I.O5,pe.Ls,Z.f,me.w],encapsulation:2,changeDetection:0}),pt})();const lt=(pt,gt)=>!(!gt||!gt.nzLabel)&>.nzLabel.toString().toLowerCase().indexOf(pt.toLowerCase())>-1;let un=(()=>{class pt{set nzShowArrow(ee){this._nzShowArrow=ee}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(ee){return{nzValue:ee,nzLabel:ee,type:"item"}}onItemClick(ee){if(this.activatedValue=ee,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],ee))&&this.updateListOfValue([ee]),this.setOpenState(!1);else{const H=this.listOfValue.findIndex(Te=>this.compareWith(Te,ee));if(-1!==H){const Te=this.listOfValue.filter(($e,Tt)=>Tt!==H);this.updateListOfValue(Te)}else if(this.listOfValue.length!this.compareWith(Te,ee.nzValue));this.updateListOfValue(H),this.clearInput()}updateListOfContainerItem(){let ee=this.listOfTagAndTemplateItem.filter($e=>!$e.nzHide).filter($e=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,$e));if("tags"===this.nzMode&&this.searchValue){const $e=this.listOfTagAndTemplateItem.find(Tt=>Tt.nzLabel===this.searchValue);if($e)this.activatedValue=$e.nzValue;else{const Tt=this.generateTagItem(this.searchValue);ee=[Tt,...ee],this.activatedValue=Tt.nzValue}}const H=ee.find($e=>$e.nzLabel===this.searchValue)||ee.find($e=>this.compareWith($e.nzValue,this.activatedValue))||ee.find($e=>this.compareWith($e.nzValue,this.listOfValue[0]))||ee[0];this.activatedValue=H&&H.nzValue||null;let Te=[];this.isReactiveDriven?Te=[...new Set(this.nzOptions.filter($e=>$e.groupLabel).map($e=>$e.groupLabel))]:this.listOfNzOptionGroupComponent&&(Te=this.listOfNzOptionGroupComponent.map($e=>$e.nzLabel)),Te.forEach($e=>{const Tt=ee.findIndex(Xt=>$e===Xt.groupLabel);Tt>-1&&ee.splice(Tt,0,{groupLabel:$e,type:"group",key:$e})}),this.listOfContainerItem=[...ee],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(ee){const Te=(($e,Tt)=>"default"===this.nzMode?$e.length>0?$e[0]:null:$e)(ee);this.value!==Te&&(this.listOfValue=ee,this.listOfValue$.next(ee),this.value=Te,this.onChange(this.value))}onTokenSeparate(ee){const H=this.listOfTagAndTemplateItem.filter(Te=>-1!==ee.findIndex($e=>$e===Te.nzLabel)).map(Te=>Te.nzValue).filter(Te=>-1===this.listOfValue.findIndex($e=>this.compareWith($e,Te)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...H]);else if("tags"===this.nzMode){const Te=ee.filter($e=>-1===this.listOfTagAndTemplateItem.findIndex(Tt=>Tt.nzLabel===$e));this.updateListOfValue([...this.listOfValue,...H,...Te])}this.clearInput()}onKeyDown(ee){if(this.nzDisabled)return;const H=this.listOfContainerItem.filter($e=>"item"===$e.type).filter($e=>!$e.nzDisabled),Te=H.findIndex($e=>this.compareWith($e.nzValue,this.activatedValue));switch(ee.keyCode){case O.LH:ee.preventDefault(),this.nzOpen&&H.length>0&&(this.activatedValue=H[Te>0?Te-1:H.length-1].nzValue);break;case O.JH:ee.preventDefault(),this.nzOpen&&H.length>0?this.activatedValue=H[Te{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,ee!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,fe.e)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(ee,H,Te,$e,Tt,Xt,qt,Un,zn,Vn,vo,Xn){this.ngZone=ee,this.destroy$=H,this.nzConfigService=Te,this.cdr=$e,this.host=Tt,this.renderer=Xt,this.platform=qt,this.focusMonitor=Un,this.directionality=zn,this.noAnimation=Vn,this.nzFormStatusService=vo,this.nzFormNoStatusService=Xn,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=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=lt,this.compareWith=(Ao,jo)=>Ao===jo,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.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.vpe,this.nzScrollToBottom=new t.vpe,this.nzOpenChange=new t.vpe,this.nzBlur=new t.vpe,this.nzFocus=new t.vpe,this.listOfValue$=new d.X([]),this.listOfTemplateItem$=new d.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(ee){if(this.value!==ee){this.value=ee;const Te=(($e,Tt)=>null==$e?[]:"default"===this.nzMode?[$e]:$e)(ee);this.listOfValue=Te,this.listOfValue$.next(Te),this.cdr.markForCheck()}}registerOnChange(ee){this.onChange=ee}registerOnTouched(ee){this.onTouched=ee}setDisabledState(ee){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ee,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(ee){const{nzOpen:H,nzDisabled:Te,nzOptions:$e,nzStatus:Tt,nzPlacement:Xt}=ee;if(H&&this.onOpenChange(),Te&&this.nzDisabled&&this.setOpenState(!1),$e){this.isReactiveDriven=!0;const Un=(this.nzOptions||[]).map(zn=>({template:zn.label instanceof t.Rgc?zn.label:null,nzLabel:"string"==typeof zn.label||"number"==typeof zn.label?zn.label:null,nzValue:zn.value,nzDisabled:zn.disabled||!1,nzHide:zn.hide||!1,nzCustomContent:zn.label instanceof t.Rgc,groupLabel:zn.groupLabel||null,type:"item",key:zn.value}));this.listOfTemplateItem$.next(Un)}if(Tt&&this.setStatusStyles(this.nzStatus,this.hasFeedback),Xt){const{currentValue:qt}=Xt;this.dropDownPosition=qt;const Un=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=qt&&Un.includes(qt)?[Q.yW[qt]]:Un.map(zn=>Q.yW[zn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,U.x)((ee,H)=>ee.status===H.status&&ee.hasFeedback===H.hasFeedback),(0,w.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,s.of)(!1)),(0,M.U)(([{status:ee,hasFeedback:H},Te])=>({status:Te?"":ee,hasFeedback:H})),(0,F.R)(this.destroy$)).subscribe(({status:ee,hasFeedback:H})=>{this.setStatusStyles(ee,H)}),this.focusMonitor.monitor(this.host,!0).pipe((0,F.R)(this.destroy$)).subscribe(ee=>{ee?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,L.a)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,F.R)(this.destroy$)).subscribe(([ee,H])=>{const Te=ee.filter(()=>"tags"===this.nzMode).filter($e=>-1===H.findIndex(Tt=>this.compareWith(Tt.nzValue,$e))).map($e=>this.listOfTopItem.find(Tt=>this.compareWith(Tt.nzValue,$e))||this.generateTagItem($e));this.listOfTagAndTemplateItem=[...H,...Te],this.listOfTopItem=this.listOfValue.map($e=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(Tt=>this.compareWith($e,Tt.nzValue))).filter($e=>!!$e),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,F.R)(this.destroy$)).subscribe(ee=>{this.dir=ee,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,v.R)(this.host.nativeElement,"click").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,F.R)(this.destroy$)).subscribe(ee=>{ee.keyCode===O.hY&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,j.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,k.O)(!0),(0,e.w)(()=>(0,j.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(ee=>ee.changes),...this.listOfNzOptionGroupComponent.map(ee=>ee.changes)).pipe((0,k.O)(!0))),(0,F.R)(this.destroy$)).subscribe(()=>{const ee=this.listOfNzOptionComponent.toArray().map(H=>{const{template:Te,nzLabel:$e,nzValue:Tt,nzDisabled:Xt,nzHide:qt,nzCustomContent:Un,groupLabel:zn}=H;return{template:Te,nzLabel:$e,nzValue:Tt,nzDisabled:Xt,nzHide:qt,nzCustomContent:Un,groupLabel:zn,type:"item",key:Tt}});this.listOfTemplateItem$.next(ee),this.cdr.markForCheck()})}ngOnDestroy(){(0,fe.h)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(ee,H){this.status=ee,this.hasFeedback=H,this.cdr.markForCheck(),this.statusCls=(0,V.Zu)(this.prefixCls,ee,H),Object.keys(this.statusCls).forEach(Te=>{this.statusCls[Te]?this.renderer.addClass(this.host.nativeElement,Te):this.renderer.removeClass(this.host.nativeElement,Te)})}}return pt.\u0275fac=function(ee){return new(ee||pt)(t.Y36(t.R0b),t.Y36(R.kn),t.Y36(ae.jY),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Se.t4),t.Y36(ue.tE),t.Y36(ke.Is,8),t.Y36(ge.P,9),t.Y36(Rt.kH,8),t.Y36(Rt.yW,8))},pt.\u0275cmp=t.Xpm({type:pt,selectors:[["nz-select"]],contentQueries:function(ee,H,Te){if(1&ee&&(t.Suo(Te,mn,5),t.Suo(Te,We,5)),2&ee){let $e;t.iGM($e=t.CRH())&&(H.listOfNzOptionComponent=$e),t.iGM($e=t.CRH())&&(H.listOfNzOptionGroupComponent=$e)}},viewQuery:function(ee,H){if(1&ee&&(t.Gf(P.xu,7,t.SBq),t.Gf(P.pI,7),t.Gf(ze,7),t.Gf(We,7,t.SBq),t.Gf(ze,7,t.SBq)),2&ee){let Te;t.iGM(Te=t.CRH())&&(H.originElement=Te.first),t.iGM(Te=t.CRH())&&(H.cdkConnectedOverlay=Te.first),t.iGM(Te=t.CRH())&&(H.nzSelectTopControlComponent=Te.first),t.iGM(Te=t.CRH())&&(H.nzOptionGroupComponentElement=Te.first),t.iGM(Te=t.CRH())&&(H.nzSelectTopControlComponentElement=Te.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(ee,H){2&ee&&t.ekj("ant-select-in-form-item",!!H.nzFormStatusService)("ant-select-lg","large"===H.nzSize)("ant-select-sm","small"===H.nzSize)("ant-select-show-arrow",H.nzShowArrow)("ant-select-disabled",H.nzDisabled)("ant-select-show-search",(H.nzShowSearch||"default"!==H.nzMode)&&!H.nzDisabled)("ant-select-allow-clear",H.nzAllowClear)("ant-select-borderless",H.nzBorderless)("ant-select-open",H.nzOpen)("ant-select-focused",H.nzOpen||H.focused)("ant-select-single","default"===H.nzMode)("ant-select-multiple","default"!==H.nzMode)("ant-select-rtl","rtl"===H.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",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",nzSelectOnTab:"nzSelectOnTab",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[t._Bn([R.kn,{provide:D.JU,useExisting:(0,t.Gpc)(()=>pt),multi:!0}]),t.TTD],decls:5,vars:25,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick","detach","positionChange"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon"],["feedbackIconTpl",""],[3,"status",4,"ngIf"],[3,"status"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(ee,H){if(1&ee&&(t.TgZ(0,"nz-select-top-control",0,1),t.NdJ("inputValueChange",function($e){return H.onInputValueChange($e)})("tokenize",function($e){return H.onTokenSeparate($e)})("deleteItem",function($e){return H.onItemDelete($e)})("keydown",function($e){return H.onKeyDown($e)}),t.qZA(),t.YNc(2,Me,3,5,"nz-select-arrow",2),t.YNc(3,zt,1,1,"nz-select-clear",3),t.YNc(4,nt,1,23,"ng-template",4),t.NdJ("overlayOutsideClick",function($e){return H.onClickOutside($e)})("detach",function(){return H.setOpenState(!1)})("positionChange",function($e){return H.onPositionChange($e)})),2&ee){const Te=t.MAs(1);t.Q6J("nzId",H.nzId)("open",H.nzOpen)("disabled",H.nzDisabled)("mode",H.nzMode)("@.disabled",!(null==H.noAnimation||!H.noAnimation.nzNoAnimation))("nzNoAnimation",null==H.noAnimation?null:H.noAnimation.nzNoAnimation)("maxTagPlaceholder",H.nzMaxTagPlaceholder)("removeIcon",H.nzRemoveIcon)("placeHolder",H.nzPlaceHolder)("maxTagCount",H.nzMaxTagCount)("customTemplate",H.nzCustomTemplate)("tokenSeparators",H.nzTokenSeparators)("showSearch",H.nzShowSearch)("autofocus",H.nzAutoFocus)("listOfTopItem",H.listOfTopItem),t.xp6(2),t.Q6J("ngIf",H.nzShowArrow||H.hasFeedback&&!!H.status),t.xp6(1),t.Q6J("ngIf",H.nzAllowClear&&!H.nzDisabled&&H.listOfValue.length),t.xp6(1),t.Q6J("cdkConnectedOverlayHasBackdrop",H.nzBackdrop)("cdkConnectedOverlayMinWidth",H.nzDropdownMatchSelectWidth?null:H.triggerWidth)("cdkConnectedOverlayWidth",H.nzDropdownMatchSelectWidth?H.triggerWidth:null)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",H.nzDropdownClassName)("cdkConnectedOverlayOpen",H.nzOpen)("cdkConnectedOverlayPositions",H.positions)}},dependencies:[I.O5,I.PC,P.pI,P.xu,Q.hQ,ge.P,me.w,Rt.w_,St,ze,mt,Pe],encapsulation:2,data:{animation:[re.mF]},changeDetection:0}),(0,A.gn)([(0,ae.oS)()],pt.prototype,"nzSuffixIcon",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzAllowClear",void 0),(0,A.gn)([(0,ae.oS)(),(0,V.yF)()],pt.prototype,"nzBorderless",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzShowSearch",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzLoading",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzAutoFocus",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzAutoClearSearchValue",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzServerSearch",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzDisabled",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzOpen",void 0),(0,A.gn)([(0,V.yF)()],pt.prototype,"nzSelectOnTab",void 0),(0,A.gn)([(0,ae.oS)(),(0,V.yF)()],pt.prototype,"nzBackdrop",void 0),pt})(),Nt=(()=>{class pt{}return pt.\u0275fac=function(ee){return new(ee||pt)},pt.\u0275mod=t.oAB({type:pt}),pt.\u0275inj=t.cJS({imports:[ke.vT,I.ez,Ft.YI,D.u5,Se.ud,P.U8,pe.PV,Z.T,S.Xo,Q.e4,ge.g,me.a,Rt.mJ,$.Cl,ue.rt]}),pt})()},2574:(It,be,a)=>{a.d(be,{$1:()=>w,NU:()=>R,zf:()=>pe});var t=a(9388),i=a(6814),v=a(5879),d=a(655),s=a(8645),L=a(9773),j=a(874),$=a(7754);function I(me,Z){}const S=function(me){return{$implicit:me}};function F(me,Z){if(1&me&&(v.TgZ(0,"span",4),v.YNc(1,I,0,0,"ng-template",5),v.qZA()),2&me){const A=v.oxw(),V=A.last,O=A.index,P=v.oxw();v.Udp("margin-bottom","vertical"===P.nzDirection?V?null:P.spaceSize:null,"px")("margin-right","horizontal"===P.nzDirection?V?null:P.spaceSize:null,"px"),v.xp6(1),v.Q6J("ngTemplateOutlet",P.nzSplit)("ngTemplateOutletContext",v.VKq(6,S,O))}}function k(me,Z){if(1&me&&(v.TgZ(0,"div",1),v.GkF(1,2),v.qZA(),v.YNc(2,F,2,8,"span",3)),2&me){const A=Z.$implicit,V=Z.last,O=v.oxw();v.Udp("margin-bottom","vertical"===O.nzDirection?V?null:O.spaceSize:null,"px")("margin-right","horizontal"===O.nzDirection?V?null:O.spaceSize:null,"px"),v.xp6(1),v.Q6J("ngTemplateOutlet",A),v.xp6(1),v.Q6J("ngIf",O.nzSplit&&!V)}}const U=["*"];let w=(()=>{class me{constructor(){}}return me.\u0275fac=function(A){return new(A||me)},me.\u0275dir=v.lG2({type:me,selectors:[["","nzSpaceItem",""]]}),me})();const e={small:8,middle:16,large:24};let R=(()=>{class me{constructor(A,V){this.nzConfigService=A,this.cdr=V,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=e.small,this.destroy$=new s.x}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?e[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(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,L.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return me.\u0275fac=function(A){return new(A||me)(v.Y36(j.jY),v.Y36(v.sBO))},me.\u0275cmp=v.Xpm({type:me,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(A,V,O){if(1&A&&v.Suo(O,w,4,v.Rgc),2&A){let P;v.iGM(P=v.CRH())&&(V.items=P)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(A,V){2&A&&(v.Udp("flex-wrap",V.nzWrap?"wrap":null),v.ekj("ant-space-horizontal","horizontal"===V.nzDirection)("ant-space-vertical","vertical"===V.nzDirection)("ant-space-align-start","start"===V.mergedAlign)("ant-space-align-end","end"===V.mergedAlign)("ant-space-align-center","center"===V.mergedAlign)("ant-space-align-baseline","baseline"===V.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[v.TTD],ngContentSelectors:U,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(A,V){1&A&&(v.F$t(),v.Hsn(0),v.YNc(1,k,3,6,"ng-template",0)),2&A&&(v.xp6(1),v.Q6J("ngForOf",V.items))},dependencies:[i.sg,i.O5,i.tP],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,$.yF)()],me.prototype,"nzWrap",void 0),(0,d.gn)([(0,j.oS)()],me.prototype,"nzSize",void 0),me})(),pe=(()=>{class me{}return me.\u0275fac=function(A){return new(A||me)},me.\u0275mod=v.oAB({type:me}),me.\u0275inj=v.cJS({imports:[t.vT,i.ez]}),me})()},2669:(It,be,a)=>{a.d(be,{W:()=>Q,j:()=>fe});var t=a(655),i=a(5879),v=a(8645),d=a(5619),s=a(7328),L=a(4825),j=a(7921),$=a(3997),I=a(4664),S=a(9360),F=a(2420),k=a(8251),U=a(4829),M=a(9773),e=a(874),R=a(7754),pe=a(9388),me=a(6814),Z=a(7131);function A(ue,ge){1&ue&&(i.TgZ(0,"span",3),i._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),i.qZA())}function V(ue,ge){}function O(ue,ge){if(1&ue&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&ue){const Se=i.oxw(2);i.xp6(1),i.Oqu(Se.nzTip)}}function P(ue,ge){if(1&ue&&(i.TgZ(0,"div")(1,"div",5),i.YNc(2,V,0,0,"ng-template",6),i.YNc(3,O,2,1,"div",7),i.qZA()()),2&ue){const Se=i.oxw(),ke=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===Se.dir)("ant-spin-spinning",Se.isLoading)("ant-spin-lg","large"===Se.nzSize)("ant-spin-sm","small"===Se.nzSize)("ant-spin-show-text",Se.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",Se.nzIndicator||ke),i.xp6(1),i.Q6J("ngIf",Se.nzTip)}}function D(ue,ge){if(1&ue&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&ue){const Se=i.oxw();i.ekj("ant-spin-blur",Se.isLoading)}}const re=["*"];let Q=(()=>{class ue{constructor(Se,ke,Rt){this.nzConfigService=Se,this.cdr=ke,this.directionality=Rt,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new v.x,this.spinning$=new d.X(this.nzSpinning),this.delay$=new s.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,j.O)(this.nzDelay),(0,$.x)(),(0,I.w)(ke=>0===ke?this.spinning$:this.spinning$.pipe(function w(ue){return(0,S.e)((ge,Se)=>{let ke=!1,Rt=null,Ft=null;const Mt=()=>{if(Ft?.unsubscribe(),Ft=null,ke){ke=!1;const yt=Rt;Rt=null,Se.next(yt)}};ge.subscribe((0,k.x)(Se,yt=>{Ft?.unsubscribe(),ke=!0,Rt=yt,Ft=(0,k.x)(Se,Mt,F.Z),(0,U.Xf)(ue(yt)).subscribe(Ft)},()=>{Mt(),Se.complete()},void 0,()=>{Rt=Ft=null}))})}(Rt=>(0,L.H)(Rt?ke:0)))),(0,M.R)(this.destroy$)).subscribe(ke=>{this.isLoading=ke,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,M.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,M.R)(this.destroy$)).subscribe(ke=>{this.dir=ke,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Se){const{nzSpinning:ke,nzDelay:Rt}=Se;ke&&this.spinning$.next(this.nzSpinning),Rt&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ue.\u0275fac=function(Se){return new(Se||ue)(i.Y36(e.jY),i.Y36(i.sBO),i.Y36(pe.Is,8))},ue.\u0275cmp=i.Xpm({type:ue,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(Se,ke){2&Se&&i.ekj("ant-spin-nested-loading",!ke.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:re,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(Se,ke){1&Se&&(i.F$t(),i.YNc(0,A,5,0,"ng-template",null,0,i.W1O),i.YNc(2,P,4,12,"div",1),i.YNc(3,D,2,2,"div",2)),2&Se&&(i.xp6(2),i.Q6J("ngIf",ke.isLoading),i.xp6(1),i.Q6J("ngIf",!ke.nzSimple))},dependencies:[me.O5,me.tP],encapsulation:2}),(0,t.gn)([(0,e.oS)()],ue.prototype,"nzIndicator",void 0),(0,t.gn)([(0,R.Rn)()],ue.prototype,"nzDelay",void 0),(0,t.gn)([(0,R.yF)()],ue.prototype,"nzSimple",void 0),(0,t.gn)([(0,R.yF)()],ue.prototype,"nzSpinning",void 0),ue})(),fe=(()=>{class ue{}return ue.\u0275fac=function(Se){return new(Se||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({imports:[pe.vT,me.ez,Z.Q8]}),ue})()},3740:(It,be,a)=>{a.d(be,{UX:()=>_o,qn:()=>dn,Ql:()=>nn,Uo:()=>Wn,N8:()=>mi,HQ:()=>di,zu:()=>ko,p0:()=>yi,h7:()=>Gn,qD:()=>Zn,_C:()=>to,g6:()=>yo,Om:()=>Ii,$Z:()=>ir});var t=a(9388),i=a(2831),v=a(532),d=a(6814),s=a(5879),L=a(6223),j=a(2840),$=a(8802),I=a(2612),S=a(8324),F=a(2787),k=a(804),U=a(1752),w=a(551),M=a(3460),e=a(655),R=a(8645),pe=a(7328),me=a(9773),Z=a(874),A=a(9087),V=a(7754),O=a(9691);const P=["nz-pagination-item",""];function D(Le,Ut){if(1&Le&&(s.TgZ(0,"a"),s._uU(1),s.qZA()),2&Le){const W=s.oxw().page;s.xp6(1),s.Oqu(W)}}function re(Le,Ut){1&Le&&s._UZ(0,"span",9)}function ae(Le,Ut){1&Le&&s._UZ(0,"span",10)}function Q(Le,Ut){if(1&Le&&(s.TgZ(0,"button",6),s.ynx(1,2),s.YNc(2,re,1,0,"span",7),s.YNc(3,ae,1,0,"span",8),s.BQk(),s.qZA()),2&Le){const W=s.oxw(2);s.Q6J("disabled",W.disabled),s.xp6(1),s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function fe(Le,Ut){1&Le&&s._UZ(0,"span",10)}function ue(Le,Ut){1&Le&&s._UZ(0,"span",9)}function ge(Le,Ut){if(1&Le&&(s.TgZ(0,"button",6),s.ynx(1,2),s.YNc(2,fe,1,0,"span",11),s.YNc(3,ue,1,0,"span",12),s.BQk(),s.qZA()),2&Le){const W=s.oxw(2);s.Q6J("disabled",W.disabled),s.xp6(1),s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Se(Le,Ut){1&Le&&s._UZ(0,"span",20)}function ke(Le,Ut){1&Le&&s._UZ(0,"span",21)}function Rt(Le,Ut){if(1&Le&&(s.ynx(0,2),s.YNc(1,Se,1,0,"span",18),s.YNc(2,ke,1,0,"span",19),s.BQk()),2&Le){const W=s.oxw(4);s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ft(Le,Ut){1&Le&&s._UZ(0,"span",21)}function Mt(Le,Ut){1&Le&&s._UZ(0,"span",20)}function yt(Le,Ut){if(1&Le&&(s.ynx(0,2),s.YNc(1,Ft,1,0,"span",22),s.YNc(2,Mt,1,0,"span",23),s.BQk()),2&Le){const W=s.oxw(4);s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ct(Le,Ut){if(1&Le&&(s.TgZ(0,"div",15),s.ynx(1,2),s.YNc(2,Rt,3,2,"ng-container",16),s.YNc(3,yt,3,2,"ng-container",16),s.BQk(),s.TgZ(4,"span",17),s._uU(5,"\u2022\u2022\u2022"),s.qZA()()),2&Le){const W=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngSwitch",W),s.xp6(1),s.Q6J("ngSwitchCase","prev_5"),s.xp6(1),s.Q6J("ngSwitchCase","next_5")}}function Lt(Le,Ut){if(1&Le&&(s.ynx(0),s.TgZ(1,"a",13),s.YNc(2,Ct,6,3,"div",14),s.qZA(),s.BQk()),2&Le){const W=s.oxw().$implicit;s.xp6(1),s.Q6J("ngSwitch",W)}}function rn(Le,Ut){1&Le&&(s.ynx(0,2),s.YNc(1,D,2,1,"a",3),s.YNc(2,Q,4,3,"button",4),s.YNc(3,ge,4,3,"button",4),s.YNc(4,Lt,3,1,"ng-container",5),s.BQk()),2&Le&&(s.Q6J("ngSwitch",Ut.$implicit),s.xp6(1),s.Q6J("ngSwitchCase","page"),s.xp6(1),s.Q6J("ngSwitchCase","prev"),s.xp6(1),s.Q6J("ngSwitchCase","next"))}function Sn(Le,Ut){}const rt=function(Le,Ut){return{$implicit:Le,page:Ut}},Ye=["containerTemplate"];function st(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"ul")(1,"li",1),s.NdJ("click",function(){s.CHM(W);const jt=s.oxw();return s.KtG(jt.prePage())}),s.qZA(),s.TgZ(2,"li",2)(3,"input",3),s.NdJ("keydown.enter",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.jumpToPageViaInput(jt))}),s.qZA(),s.TgZ(4,"span",4),s._uU(5,"/"),s.qZA(),s._uU(6),s.qZA(),s.TgZ(7,"li",5),s.NdJ("click",function(){s.CHM(W);const jt=s.oxw();return s.KtG(jt.nextPage())}),s.qZA()()}if(2&Le){const W=s.oxw();s.xp6(1),s.Q6J("disabled",W.isFirstIndex)("direction",W.dir)("itemRender",W.itemRender),s.uIk("title",W.locale.prev_page),s.xp6(1),s.uIk("title",W.pageIndex+"/"+W.lastIndex),s.xp6(1),s.Q6J("disabled",W.disabled)("value",W.pageIndex),s.xp6(3),s.hij(" ",W.lastIndex," "),s.xp6(1),s.Q6J("disabled",W.isLastIndex)("direction",W.dir)("itemRender",W.itemRender),s.uIk("title",null==W.locale?null:W.locale.next_page)}}const Ze=["nz-pagination-options",""];function Bt(Le,Ut){if(1&Le&&s._UZ(0,"nz-option",4),2&Le){const W=Ut.$implicit;s.Q6J("nzLabel",W.label)("nzValue",W.value)}}function Jt(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"nz-select",2),s.NdJ("ngModelChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onPageSizeChange(jt))}),s.YNc(1,Bt,1,2,"nz-option",3),s.qZA()}if(2&Le){const W=s.oxw();s.Q6J("nzDisabled",W.disabled)("nzSize",W.nzSize)("ngModel",W.pageSize),s.xp6(1),s.Q6J("ngForOf",W.listOfPageSizeOption)("ngForTrackBy",W.trackByOption)}}function _n(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"div",5),s._uU(1),s.TgZ(2,"input",6),s.NdJ("keydown.enter",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.jumpToPageViaInput(jt))}),s.qZA(),s._uU(3),s.qZA()}if(2&Le){const W=s.oxw();s.xp6(1),s.hij(" ",W.locale.jump_to," "),s.xp6(1),s.Q6J("disabled",W.disabled),s.xp6(1),s.hij(" ",W.locale.page," ")}}function On(Le,Ut){}const cn=function(Le,Ut){return{$implicit:Le,range:Ut}};function wt(Le,Ut){if(1&Le&&(s.TgZ(0,"li",4),s.YNc(1,On,0,0,"ng-template",5),s.qZA()),2&Le){const W=s.oxw(2);s.xp6(1),s.Q6J("ngTemplateOutlet",W.showTotal)("ngTemplateOutletContext",s.WLB(2,cn,W.total,W.ranges))}}function Ve(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"li",6),s.NdJ("gotoIndex",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.jumpPage(jt))})("diffIndex",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.jumpDiff(jt))}),s.qZA()}if(2&Le){const W=Ut.$implicit,Re=s.oxw(2);s.Q6J("locale",Re.locale)("type",W.type)("index",W.index)("disabled",!!W.disabled)("itemRender",Re.itemRender)("active",Re.pageIndex===W.index)("direction",Re.dir)}}function Be(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"li",7),s.NdJ("pageIndexChange",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.onPageIndexChange(jt))})("pageSizeChange",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.onPageSizeChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw(2);s.Q6J("total",W.total)("locale",W.locale)("disabled",W.disabled)("nzSize",W.nzSize)("showSizeChanger",W.showSizeChanger)("showQuickJumper",W.showQuickJumper)("pageIndex",W.pageIndex)("pageSize",W.pageSize)("pageSizeOptions",W.pageSizeOptions)}}function He(Le,Ut){if(1&Le&&(s.TgZ(0,"ul"),s.YNc(1,wt,2,5,"li",1),s.YNc(2,Ve,1,7,"li",2),s.YNc(3,Be,1,9,"li",3),s.qZA()),2&Le){const W=s.oxw();s.xp6(1),s.Q6J("ngIf",W.showTotal),s.xp6(1),s.Q6J("ngForOf",W.listOfPageItem)("ngForTrackBy",W.trackByPageItem),s.xp6(1),s.Q6J("ngIf",W.showQuickJumper||W.showSizeChanger)}}function je(Le,Ut){}function Ne(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,je,0,0,"ng-template",6),s.BQk()),2&Le){s.oxw(2);const W=s.MAs(2);s.xp6(1),s.Q6J("ngTemplateOutlet",W.template)}}function De(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,Ne,2,1,"ng-container",5),s.BQk()),2&Le){const W=s.oxw(),Re=s.MAs(4);s.xp6(1),s.Q6J("ngIf",W.nzSimple)("ngIfElse",Re.template)}}let ie=(()=>{class Le{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new s.vpe,this.gotoIndex=new s.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(W){const{locale:Re,index:jt,type:sn}=W;(Re||jt||sn)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(W,Re){1&W&&s.NdJ("click",function(){return Re.clickItem()}),2&W&&(s.uIk("title",Re.title),s.ekj("ant-pagination-prev","prev"===Re.type)("ant-pagination-next","next"===Re.type)("ant-pagination-item","page"===Re.type)("ant-pagination-jump-prev","prev_5"===Re.type)("ant-pagination-jump-prev-custom-icon","prev_5"===Re.type)("ant-pagination-jump-next","next_5"===Re.type)("ant-pagination-jump-next-custom-icon","next_5"===Re.type)("ant-pagination-disabled",Re.disabled)("ant-pagination-item-active",Re.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[s.TTD],attrs:P,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(W,Re){if(1&W&&(s.YNc(0,rn,5,4,"ng-template",null,0,s.W1O),s.YNc(2,Sn,0,0,"ng-template",1)),2&W){const jt=s.MAs(1);s.xp6(2),s.Q6J("ngTemplateOutlet",Re.itemRender||jt)("ngTemplateOutletContext",s.WLB(2,rt,Re.type,Re.index))}},dependencies:[d.tP,d.RF,d.n9,d.ED,w.Ls],encapsulation:2,changeDetection:0}),Le})(),Ce=(()=>{class Le{constructor(W,Re,jt,sn){this.cdr=W,this.renderer=Re,this.elementRef=jt,this.directionality=sn,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new s.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new R.x,Re.removeChild(Re.parentNode(jt.nativeElement),jt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(W){const Re=W.target,jt=(0,V.He)(Re.value,this.pageIndex);this.onPageIndexChange(jt),Re.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(W){this.pageIndexChange.next(W)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(W){const{pageIndex:Re,total:jt,pageSize:sn}=W;(Re||jt||sn)&&this.updateBindingValue()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(t.Is,8))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-pagination-simple"]],viewQuery:function(W,Re){if(1&W&&s.Gf(Ye,7),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.template=jt.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[s.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(W,Re){1&W&&s.YNc(0,st,8,12,"ng-template",null,0,s.W1O)},dependencies:[ie],encapsulation:2,changeDetection:0}),Le})(),ve=(()=>{class Le{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new s.vpe,this.pageSizeChange=new s.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(W){this.pageSize!==W&&this.pageSizeChange.next(W)}jumpToPageViaInput(W){const Re=W.target,jt=Math.floor((0,V.He)(Re.value,this.pageIndex));this.pageIndexChange.next(jt),Re.value=""}trackByOption(W,Re){return Re.value}ngOnChanges(W){const{pageSize:Re,pageSizeOptions:jt,locale:sn}=W;(Re||jt||sn)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(Rn=>({value:Rn,label:`${Rn} ${this.locale.items_per_page}`})))}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[s.TTD],attrs:Ze,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(W,Re){1&W&&(s.YNc(0,Jt,2,5,"nz-select",0),s.YNc(1,_n,4,3,"div",1)),2&W&&(s.Q6J("ngIf",Re.showSizeChanger),s.xp6(1),s.Q6J("ngIf",Re.showQuickJumper))},dependencies:[d.sg,d.O5,L.JJ,L.On,O.Ip,O.Vq],encapsulation:2,changeDetection:0}),Le})(),qe=(()=>{class Le{constructor(W,Re,jt,sn){this.cdr=W,this.renderer=Re,this.elementRef=jt,this.directionality=sn,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new s.vpe,this.pageSizeChange=new s.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new R.x,Re.removeChild(Re.parentNode(jt.nativeElement),jt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(W){this.onPageIndexChange(W)}jumpDiff(W){this.jumpPage(this.pageIndex+W)}trackByPageItem(W,Re){return`${Re.type}-${Re.index}`}onPageIndexChange(W){this.pageIndexChange.next(W)}onPageSizeChange(W){this.pageSizeChange.next(W)}getLastIndex(W,Re){return Math.ceil(W/Re)}buildIndexes(){const W=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,W)}getListOfPageItem(W,Re){const sn=(Rn,ho)=>{const fo=[];for(let Uo=Rn;Uo<=ho;Uo++)fo.push({index:Uo,type:"page"});return fo};return Rn=Re<=9?sn(1,Re):((ho,fo)=>{let Uo=[];const ti={type:"prev_5"},uo={type:"next_5"},Vi=sn(1,1),Ai=sn(Re,Re);return Uo=ho<5?[...sn(2,4===ho?6:5),uo]:ho{class Le{validatePageIndex(W,Re){return W>Re?Re:W<1?1:W}onPageIndexChange(W){const Re=this.getLastIndex(this.nzTotal,this.nzPageSize),jt=this.validatePageIndex(W,Re);jt!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=jt,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(W){this.nzPageSize=W,this.nzPageSizeChange.emit(W);const Re=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>Re&&this.onPageIndexChange(Re)}onTotalChange(W){const Re=this.getLastIndex(W,this.nzPageSize);this.nzPageIndex>Re&&Promise.resolve().then(()=>{this.onPageIndexChange(Re),this.cdr.markForCheck()})}getLastIndex(W,Re){return Math.ceil(W/Re)}constructor(W,Re,jt,sn,Rn){this.i18n=W,this.cdr=Re,this.breakpointService=jt,this.nzConfigService=sn,this.directionality=Rn,this._nzModuleName="pagination",this.nzPageSizeChange=new s.vpe,this.nzPageIndexChange=new s.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new R.x,this.total$=new pe.t(1)}ngOnInit(){this.i18n.localeChange.pipe((0,me.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.onTotalChange(W)}),this.breakpointService.subscribe(A.WV).pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.nzResponsive&&(this.size=W===A.G_.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(W){const{nzHideOnSinglePage:Re,nzTotal:jt,nzPageSize:sn,nzSize:Rn}=W;jt&&this.total$.next(this.nzTotal),(Re||jt||sn)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),Rn&&(this.size=Rn.currentValue)}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(U.wi),s.Y36(s.sBO),s.Y36(A.r3),s.Y36(Z.jY),s.Y36(t.Is,8))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(W,Re){2&W&&s.ekj("ant-pagination-simple",Re.nzSimple)("ant-pagination-disabled",Re.nzDisabled)("mini",!Re.nzSimple&&"small"===Re.size)("ant-pagination-rtl","rtl"===Re.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[s.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(W,Re){1&W&&(s.YNc(0,De,2,2,"ng-container",0),s.TgZ(1,"nz-pagination-simple",1,2),s.NdJ("pageIndexChange",function(sn){return Re.onPageIndexChange(sn)}),s.qZA(),s.TgZ(3,"nz-pagination-default",3,4),s.NdJ("pageIndexChange",function(sn){return Re.onPageIndexChange(sn)})("pageSizeChange",function(sn){return Re.onPageSizeChange(sn)}),s.qZA()),2&W&&(s.Q6J("ngIf",Re.showPagination),s.xp6(1),s.Q6J("disabled",Re.nzDisabled)("itemRender",Re.nzItemRender)("locale",Re.locale)("pageSize",Re.nzPageSize)("total",Re.nzTotal)("pageIndex",Re.nzPageIndex),s.xp6(2),s.Q6J("nzSize",Re.size)("itemRender",Re.nzItemRender)("showTotal",Re.nzShowTotal)("disabled",Re.nzDisabled)("locale",Re.locale)("showSizeChanger",Re.nzShowSizeChanger)("showQuickJumper",Re.nzShowQuickJumper)("total",Re.nzTotal)("pageIndex",Re.nzPageIndex)("pageSize",Re.nzPageSize)("pageSizeOptions",Re.nzPageSizeOptions))},dependencies:[d.O5,d.tP,Ce,qe],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,Z.oS)()],Le.prototype,"nzSize",void 0),(0,e.gn)([(0,Z.oS)()],Le.prototype,"nzPageSizeOptions",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzShowSizeChanger",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzShowQuickJumper",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzSimple",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzDisabled",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzResponsive",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzHideOnSinglePage",void 0),(0,e.gn)([(0,V.Rn)()],Le.prototype,"nzTotal",void 0),(0,e.gn)([(0,V.Rn)()],Le.prototype,"nzPageIndex",void 0),(0,e.gn)([(0,V.Rn)()],Le.prototype,"nzPageSize",void 0),Le})(),Cn=(()=>{class Le{}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[t.vT,d.ez,L.u5,O.LV,U.YI,w.PV]}),Le})();var at=a(7907),Xe=a(2669),it=a(2438),Ot=a(5619),Pt=a(2572),Wt=a(3019),kt=a(6232),Je=a(2096),K=a(7398),N=a(3997),J=a(3620),Me=a(836),zt=a(2181),nt=a(4664),We=a(7921),ot=a(5177),Vt=a(1631),St=a(855),mn=a(1958);const Qe=["*"];function dt(Le,Ut){}function se(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"label",15),s.NdJ("ngModelChange",function(){s.CHM(W);const jt=s.oxw().$implicit,sn=s.oxw(2);return s.KtG(sn.check(jt))}),s.qZA()}if(2&Le){const W=s.oxw().$implicit;s.Q6J("ngModel",W.checked)}}function ze(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"label",16),s.NdJ("ngModelChange",function(){s.CHM(W);const jt=s.oxw().$implicit,sn=s.oxw(2);return s.KtG(sn.check(jt))}),s.qZA()}if(2&Le){const W=s.oxw().$implicit;s.Q6J("ngModel",W.checked)}}function mt(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"li",12),s.NdJ("click",function(){const sn=s.CHM(W).$implicit,Rn=s.oxw(2);return s.KtG(Rn.check(sn))}),s.YNc(1,se,1,1,"label",13),s.YNc(2,ze,1,1,"label",14),s.TgZ(3,"span"),s._uU(4),s.qZA()()}if(2&Le){const W=Ut.$implicit,Re=s.oxw(2);s.Q6J("nzSelected",W.checked),s.xp6(1),s.Q6J("ngIf",!Re.filterMultiple),s.xp6(1),s.Q6J("ngIf",Re.filterMultiple),s.xp6(2),s.Oqu(W.text)}}function Pe(Le,Ut){if(1&Le){const W=s.EpF();s.ynx(0),s.TgZ(1,"nz-filter-trigger",3),s.NdJ("nzVisibleChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onVisibleChange(jt))}),s._UZ(2,"span",4),s.qZA(),s.TgZ(3,"nz-dropdown-menu",null,5)(5,"div",6)(6,"ul",7),s.YNc(7,mt,5,4,"li",8),s.qZA(),s.TgZ(8,"div",9)(9,"button",10),s.NdJ("click",function(){s.CHM(W);const jt=s.oxw();return s.KtG(jt.reset())}),s._uU(10),s.qZA(),s.TgZ(11,"button",11),s.NdJ("click",function(){s.CHM(W);const jt=s.oxw();return s.KtG(jt.confirm())}),s._uU(12),s.qZA()()()(),s.BQk()}if(2&Le){const W=s.MAs(4),Re=s.oxw();s.xp6(1),s.Q6J("nzVisible",Re.isVisible)("nzActive",Re.isChecked)("nzDropdownMenu",W),s.xp6(6),s.Q6J("ngForOf",Re.listOfParsedFilter)("ngForTrackBy",Re.trackByValue),s.xp6(2),s.Q6J("disabled",!Re.isChecked),s.xp6(1),s.hij(" ",Re.locale.filterReset," "),s.xp6(2),s.Oqu(Re.locale.filterConfirm)}}function lt(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"label",2),s.NdJ("ngModelChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onCheckedChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw();s.ekj("ant-table-selection-select-all-custom",W.showRowSelection),s.Q6J("ngModel",W.checked)("nzDisabled",W.disabled)("nzIndeterminate",W.indeterminate)}}function Yt(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"li",9),s.NdJ("click",function(){const sn=s.CHM(W).$implicit;return s.KtG(sn.onSelect())}),s._uU(1),s.qZA()}if(2&Le){const W=Ut.$implicit;s.xp6(1),s.hij(" ",W.text," ")}}function un(Le,Ut){if(1&Le&&(s.TgZ(0,"div",3)(1,"span",4),s._UZ(2,"span",5),s.qZA(),s.TgZ(3,"nz-dropdown-menu",null,6)(5,"ul",7),s.YNc(6,Yt,2,1,"li",8),s.qZA()()()),2&Le){const W=s.MAs(4),Re=s.oxw();s.xp6(1),s.Q6J("nzDropdownMenu",W),s.xp6(5),s.Q6J("ngForOf",Re.listOfSelections)}}function Nt(Le,Ut){}function pt(Le,Ut){if(1&Le&&s._UZ(0,"span",6),2&Le){const W=s.oxw();s.ekj("active","ascend"===W.sortOrder)}}function gt(Le,Ut){if(1&Le&&s._UZ(0,"span",7),2&Le){const W=s.oxw();s.ekj("active","descend"===W.sortOrder)}}const ee=["nzChecked",""];function H(Le,Ut){if(1&Le){const W=s.EpF();s.ynx(0),s._UZ(1,"nz-row-indent",2),s.TgZ(2,"button",3),s.NdJ("expandChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onExpandChange(jt))}),s.qZA(),s.BQk()}if(2&Le){const W=s.oxw();s.xp6(1),s.Q6J("indentSize",W.nzIndentSize),s.xp6(1),s.Q6J("expand",W.nzExpand)("spaceMode",!W.nzShowExpand)}}function Te(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"label",4),s.NdJ("ngModelChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onCheckedChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw();s.Q6J("nzDisabled",W.nzDisabled)("ngModel",W.nzChecked)("nzIndeterminate",W.nzIndeterminate)}}const $e=["nzColumnKey",""];function Tt(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"nz-table-filter",5),s.NdJ("filterChange",function(jt){s.CHM(W);const sn=s.oxw();return s.KtG(sn.onFilterValueChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw(),Re=s.MAs(2),jt=s.MAs(4);s.Q6J("contentTemplate",Re)("extraTemplate",jt)("customFilter",W.nzCustomFilter)("filterMultiple",W.nzFilterMultiple)("listOfFilter",W.nzFilters)}}function Xt(Le,Ut){}function qt(Le,Ut){if(1&Le&&s.YNc(0,Xt,0,0,"ng-template",6),2&Le){const W=s.oxw(),Re=s.MAs(6),jt=s.MAs(8);s.Q6J("ngTemplateOutlet",W.nzShowSort?Re:jt)}}function Un(Le,Ut){1&Le&&(s.Hsn(0),s.Hsn(1,1))}function zn(Le,Ut){if(1&Le&&s._UZ(0,"nz-table-sorters",7),2&Le){const W=s.oxw(),Re=s.MAs(8);s.Q6J("sortOrder",W.sortOrder)("sortDirections",W.sortDirections)("contentTemplate",Re)}}function Vn(Le,Ut){1&Le&&s.Hsn(0,2)}const vo=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Xn=["[nz-th-extra]","nz-filter-trigger","*"],Ao=["nzSelections",""],jo=["nz-table-content",""];function ei(Le,Ut){if(1&Le&&s._UZ(0,"col"),2&Le){const W=Ut.$implicit;s.Udp("width",W)("min-width",W)}}function bo(Le,Ut){}function eo(Le,Ut){if(1&Le&&(s.TgZ(0,"thead",3),s.YNc(1,bo,0,0,"ng-template",2),s.qZA()),2&Le){const W=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",W.theadTemplate)}}function hi(Le,Ut){}const si=["tdElement"],Fo=["nz-table-fixed-row",""];function xo(Le,Ut){}function Do(Le,Ut){if(1&Le&&(s.TgZ(0,"div",4),s.ALo(1,"async"),s.YNc(2,xo,0,0,"ng-template",5),s.qZA()),2&Le){const W=s.oxw(),Re=s.MAs(5);s.Udp("width",s.lcZ(1,3,W.hostWidth$),"px"),s.xp6(2),s.Q6J("ngTemplateOutlet",Re)}}function Ri(Le,Ut){1&Le&&s.Hsn(0)}const oi=["nz-table-measure-row",""];function Ti(Le,Ut){1&Le&&s._UZ(0,"td",1,2)}function Fn(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"tr",3),s.NdJ("listOfAutoWidth",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.onListOfAutoWidthChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw().ngIf;s.Q6J("listOfMeasureColumn",W)}}function Mi(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,Fn,1,1,"tr",2),s.BQk()),2&Le){const W=Ut.ngIf,Re=s.oxw();s.xp6(1),s.Q6J("ngIf",Re.isInsideTable&&W.length)}}function bi(Le,Ut){if(1&Le&&(s.TgZ(0,"tr",4),s._UZ(1,"nz-embed-empty",5),s.ALo(2,"async"),s.qZA()),2&Le){const W=s.oxw();s.xp6(1),s.Q6J("specificContent",s.lcZ(2,1,W.noResult$))}}const nr=["tableHeaderElement"],Ui=["tableBodyElement"];function Pr(Le,Ut){if(1&Le&&(s.TgZ(0,"div",7,8),s._UZ(2,"table",9),s.qZA()),2&Le){const W=s.oxw(2);s.Q6J("ngStyle",W.bodyStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("contentTemplate",W.contentTemplate)}}function Oi(Le,Ut){}const or=function(Le,Ut){return{$implicit:Le,index:Ut}};function Xi(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,Oi,0,0,"ng-template",13),s.BQk()),2&Le){const W=Ut.$implicit,Re=Ut.index,jt=s.oxw(3);s.xp6(1),s.Q6J("ngTemplateOutlet",jt.virtualTemplate)("ngTemplateOutletContext",s.WLB(2,or,W,Re))}}function pr(Le,Ut){if(1&Le&&(s.TgZ(0,"cdk-virtual-scroll-viewport",10,8)(2,"table",11)(3,"tbody"),s.YNc(4,Xi,2,5,"ng-container",12),s.qZA()()()),2&Le){const W=s.oxw(2);s.Udp("height",W.data.length?W.scrollY:W.noDateVirtualHeight),s.Q6J("itemSize",W.virtualItemSize)("maxBufferPx",W.virtualMaxBufferPx)("minBufferPx",W.virtualMinBufferPx),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth),s.xp6(2),s.Q6J("cdkVirtualForOf",W.data)("cdkVirtualForTrackBy",W.virtualForTrackBy)}}function hr(Le,Ut){if(1&Le&&(s.ynx(0),s.TgZ(1,"div",2,3),s._UZ(3,"table",4),s.qZA(),s.YNc(4,Pr,3,4,"div",5),s.YNc(5,pr,5,9,"cdk-virtual-scroll-viewport",6),s.BQk()),2&Le){const W=s.oxw();s.xp6(1),s.Q6J("ngStyle",W.headerStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("theadTemplate",W.theadTemplate),s.xp6(1),s.Q6J("ngIf",!W.virtualTemplate),s.xp6(1),s.Q6J("ngIf",W.virtualTemplate)}}function lo(Le,Ut){if(1&Le&&(s.TgZ(0,"div",14,8),s._UZ(2,"table",15),s.qZA()),2&Le){const W=s.oxw();s.Q6J("ngStyle",W.bodyStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("theadTemplate",W.theadTemplate)("contentTemplate",W.contentTemplate)}}function Oo(Le,Ut){if(1&Le&&(s.ynx(0),s._uU(1),s.BQk()),2&Le){const W=s.oxw();s.xp6(1),s.Oqu(W.title)}}function Po(Le,Ut){if(1&Le&&(s.ynx(0),s._uU(1),s.BQk()),2&Le){const W=s.oxw();s.xp6(1),s.Oqu(W.footer)}}function qo(Le,Ut){}function Vo(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,qo,0,0,"ng-template",10),s.BQk()),2&Le){s.oxw();const W=s.MAs(11);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}function Zo(Le,Ut){if(1&Le&&s._UZ(0,"nz-table-title-footer",11),2&Le){const W=s.oxw();s.Q6J("title",W.nzTitle)}}function Ko(Le,Ut){if(1&Le&&s._UZ(0,"nz-table-inner-scroll",12),2&Le){const W=s.oxw(),Re=s.MAs(13),jt=s.MAs(3);s.Q6J("data",W.data)("scrollX",W.scrollX)("scrollY",W.scrollY)("contentTemplate",Re)("listOfColWidth",W.listOfAutoColWidth)("theadTemplate",W.theadTemplate)("verticalScrollBarWidth",W.verticalScrollBarWidth)("virtualTemplate",W.nzVirtualScrollDirective?W.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",W.nzVirtualItemSize)("virtualMaxBufferPx",W.nzVirtualMaxBufferPx)("virtualMinBufferPx",W.nzVirtualMinBufferPx)("tableMainElement",jt)("virtualForTrackBy",W.nzVirtualForTrackBy)}}function _i(Le,Ut){if(1&Le&&s._UZ(0,"nz-table-inner-default",13),2&Le){const W=s.oxw(),Re=s.MAs(13);s.Q6J("tableLayout",W.nzTableLayout)("listOfColWidth",W.listOfManualColWidth)("theadTemplate",W.theadTemplate)("contentTemplate",Re)}}function ji(Le,Ut){if(1&Le&&s._UZ(0,"nz-table-title-footer",14),2&Le){const W=s.oxw();s.Q6J("footer",W.nzFooter)}}function Zi(Le,Ut){}function Xo(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,Zi,0,0,"ng-template",10),s.BQk()),2&Le){s.oxw();const W=s.MAs(11);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}function jn(Le,Ut){if(1&Le){const W=s.EpF();s.TgZ(0,"nz-pagination",16),s.NdJ("nzPageSizeChange",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.onPageSizeChange(jt))})("nzPageIndexChange",function(jt){s.CHM(W);const sn=s.oxw(2);return s.KtG(sn.onPageIndexChange(jt))}),s.qZA()}if(2&Le){const W=s.oxw(2);s.Q6J("hidden",!W.showPagination)("nzShowSizeChanger",W.nzShowSizeChanger)("nzPageSizeOptions",W.nzPageSizeOptions)("nzItemRender",W.nzItemRender)("nzShowQuickJumper",W.nzShowQuickJumper)("nzHideOnSinglePage",W.nzHideOnSinglePage)("nzShowTotal",W.nzShowTotal)("nzSize","small"===W.nzPaginationType?"small":"default"===W.nzSize?"default":"small")("nzPageSize",W.nzPageSize)("nzTotal",W.nzTotal)("nzSimple",W.nzSimple)("nzPageIndex",W.nzPageIndex)}}function so(Le,Ut){if(1&Le&&s.YNc(0,jn,1,12,"nz-pagination",15),2&Le){const W=s.oxw();s.Q6J("ngIf",W.nzShowPagination&&W.data.length)}}function Ue(Le,Ut){1&Le&&s.Hsn(0)}const oe=["contentTemplate"];function Oe(Le,Ut){1&Le&&s.Hsn(0)}function Ge(Le,Ut){}function bt(Le,Ut){if(1&Le&&(s.ynx(0),s.YNc(1,Ge,0,0,"ng-template",2),s.BQk()),2&Le){s.oxw();const W=s.MAs(1);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}let nn=(()=>{class Le{onVisibleChange(W){this.nzVisible=W,this.nzVisibleChange.next(W)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(W,Re,jt,sn){this.nzConfigService=W,this.ngZone=Re,this.cdr=jt,this.destroy$=sn,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new s.vpe}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,it.R)(this.nzDropdown.nativeElement,"click").pipe((0,me.R)(this.destroy$)).subscribe(W=>{W.stopPropagation()})})}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(Z.jY),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(A.kn))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-filter-trigger"]],viewQuery:function(W,Re){if(1&W&&s.Gf(F.cm,7,s.SBq),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.nzDropdown=jt.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[s._Bn([A.kn])],ngContentSelectors:Qe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(W,Re){1&W&&(s.F$t(),s.TgZ(0,"span",0),s.NdJ("nzVisibleChange",function(sn){return Re.onVisibleChange(sn)}),s.Hsn(1),s.qZA()),2&W&&(s.ekj("active",Re.nzActive)("ant-table-filter-open",Re.nzVisible),s.Q6J("nzBackdrop",Re.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",Re.nzDropdownMenu)("nzVisible",Re.nzVisible))},dependencies:[F.cm],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzBackdrop",void 0),Le})(),fn=(()=>{class Le{trackByValue(W,Re){return Re.value}check(W){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(Re=>Re===W?{...Re,checked:!W.checked}:Re),W.checked=!W.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(Re=>({...Re,checked:Re===W})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(W){this.isVisible=W,W?this.listOfChecked=this.listOfParsedFilter.filter(Re=>Re.checked).map(Re=>Re.value):this.emitFilterData()}emitFilterData(){const W=this.listOfParsedFilter.filter(Re=>Re.checked).map(Re=>Re.value);(0,V.cO)(this.listOfChecked,W)||this.filterChange.emit(this.filterMultiple?W:W.length>0?W[0]:null)}parseListOfFilter(W,Re){return W.map(jt=>({text:jt.text,value:jt.value,checked:!Re&&!!jt.byDefault}))}getCheckedStatus(W){return W.some(Re=>Re.checked)}constructor(W,Re){this.cdr=W,this.i18n=Re,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new s.vpe,this.destroy$=new R.x,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,me.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(W){const{listOfFilter:Re}=W;Re&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.sBO),s.Y36(U.wi))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[s.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(W,Re){1&W&&(s.TgZ(0,"span",0),s.YNc(1,dt,0,0,"ng-template",1),s.qZA(),s.YNc(2,Pe,13,8,"ng-container",2)),2&W&&(s.xp6(1),s.Q6J("ngTemplateOutlet",Re.contentTemplate),s.xp6(1),s.Q6J("ngIf",!Re.customFilter)("ngIfElse",Re.extraTemplate))},dependencies:[M.wO,M.r9,L.JJ,L.On,at.Of,I.Ie,F.RR,j.ix,St.w,mn.dQ,d.sg,d.O5,d.tP,w.Ls,nn],encapsulation:2,changeDetection:0}),Le})(),en=(()=>{class Le{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new s.vpe}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(W,Re){1&W&&s.NdJ("click",function(){return Re.onHostClick()}),2&W&&(s.Ikx("type","button"),s.ekj("ant-table-row-expand-icon-expanded",!Re.spaceMode&&!0===Re.expand)("ant-table-row-expand-icon-collapsed",!Re.spaceMode&&!1===Re.expand)("ant-table-row-expand-icon-spaced",Re.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}}),Le})(),vn=(()=>{class Le{constructor(){this.indentSize=0}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(W,Re){2&W&&s.Udp("padding-left",Re.indentSize,"px")},inputs:{indentSize:"indentSize"}}),Le})(),Nn=(()=>{class Le{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new s.vpe}onCheckedChange(W){this.checked=W,this.checkedChange.emit(W)}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate","ngModelChange",4,"ngIf"],["class","ant-table-selection-extra",4,"ngIf"],["nz-checkbox","",3,"ngModel","nzDisabled","nzIndeterminate","ngModelChange"],[1,"ant-table-selection-extra"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["selectionMenu","nzDropdownMenu"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click"]],template:function(W,Re){1&W&&(s.YNc(0,lt,1,5,"label",0),s.YNc(1,un,7,2,"div",1)),2&W&&(s.Q6J("ngIf",Re.showCheckbox),s.xp6(1),s.Q6J("ngIf",Re.showRowSelection))},dependencies:[M.wO,M.r9,L.JJ,L.On,I.Ie,F.cm,F.RR,St.w,d.sg,d.O5,w.Ls],encapsulation:2,changeDetection:0}),Le})(),bn=(()=>{class Le{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(W){const{sortDirections:Re}=W;Re&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[s.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(W,Re){1&W&&(s.TgZ(0,"span",0),s.YNc(1,Nt,0,0,"ng-template",1),s.qZA(),s.TgZ(2,"span",2)(3,"span",3),s.YNc(4,pt,1,2,"span",4),s.YNc(5,gt,1,2,"span",5),s.qZA()()),2&W&&(s.xp6(1),s.Q6J("ngTemplateOutlet",Re.contentTemplate),s.xp6(1),s.ekj("ant-table-column-sorter-full",Re.isDown&&Re.isUp),s.xp6(2),s.Q6J("ngIf",Re.isUp),s.xp6(1),s.Q6J("ngIf",Re.isDown))},dependencies:[St.w,d.O5,d.tP,w.Ls],encapsulation:2,changeDetection:0}),Le})(),dn=(()=>{class Le{setAutoLeftWidth(W){this.renderer.setStyle(this.elementRef.nativeElement,"left",W)}setAutoRightWidth(W){this.renderer.setStyle(this.elementRef.nativeElement,"right",W)}setIsFirstRight(W){this.setFixClass(W,"ant-table-cell-fix-right-first")}setIsLastLeft(W){this.setFixClass(W,"ant-table-cell-fix-left-last")}setFixClass(W,Re){this.renderer.removeClass(this.elementRef.nativeElement,Re),W&&this.renderer.addClass(this.elementRef.nativeElement,Re)}constructor(W,Re){this.renderer=W,this.elementRef=Re,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new R.x,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const W=Re=>"string"==typeof Re&&""!==Re?Re:null;this.setAutoLeftWidth(W(this.nzLeft)),this.setAutoRightWidth(W(this.nzRight)),this.changes$.next()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.Qsj),s.Y36(s.SBq))},Le.\u0275dir=s.lG2({type:Le,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(W,Re){2&W&&(s.Udp("position",Re.isFixed?"sticky":null),s.ekj("ant-table-cell-fix-right",Re.isFixedRight)("ant-table-cell-fix-left",Re.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[s.TTD]}),Le})(),xn=(()=>{class Le{setTheadTemplate(W){this.theadTemplate$.next(W)}setHasFixLeft(W){this.hasFixLeft$.next(W)}setHasFixRight(W){this.hasFixRight$.next(W)}setTableWidthConfig(W){this.tableWidthConfigPx$.next(W)}setListOfTh(W){let Re=0;W.forEach(sn=>{Re+=sn.colspan&&+sn.colspan||sn.colSpan&&+sn.colSpan||1});const jt=W.map(sn=>sn.nzWidth);this.columnCount$.next(Re),this.listOfThWidthConfigPx$.next(jt)}setListOfMeasureColumn(W){const Re=[];W.forEach(jt=>{const sn=jt.colspan&&+jt.colspan||jt.colSpan&&+jt.colSpan||1;for(let Rn=0;Rn`${Re}px`))}setShowEmpty(W){this.showEmpty$.next(W)}setNoResult(W){this.noResult$.next(W)}setScroll(W,Re){const jt=!(!W&&!Re);jt||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(jt)}constructor(){this.theadTemplate$=new pe.t(1),this.hasFixLeft$=new pe.t(1),this.hasFixRight$=new pe.t(1),this.hostWidth$=new pe.t(1),this.columnCount$=new pe.t(1),this.showEmpty$=new pe.t(1),this.noResult$=new pe.t(1),this.listOfThWidthConfigPx$=new Ot.X([]),this.tableWidthConfigPx$=new Ot.X([]),this.manualWidthConfigPx$=(0,Pt.a)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,K.U)(([W,Re])=>W.length?W:Re)),this.listOfAutoWidthPx$=new pe.t(1),this.listOfListOfThWidthPx$=(0,Wt.T)(this.manualWidthConfigPx$,(0,Pt.a)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,K.U)(([W,Re])=>W.length===Re.length?W.map((jt,sn)=>"0px"===jt?Re[sn]||null:Re[sn]||jt):Re))),this.listOfMeasureColumn$=new pe.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,K.U)(W=>W.map(Re=>parseInt(Re,10)))),this.enableAutoMeasure$=new pe.t(1)}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Wn=(()=>{class Le{constructor(W){this.isInsideTable=!1,this.isInsideTable=!!W}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(xn,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-cell",Re.isInsideTable)}}),Le})(),In=(()=>{class Le{updatePageSize(W){this.pageSize$.next(W)}updateFrontPagination(W){this.frontPagination$.next(W)}updatePageIndex(W){this.pageIndex$.next(W)}updateListOfData(W){this.listOfData$.next(W)}updateListOfCustomColumn(W){this.listOfCustomColumn$.next(W)}constructor(){this.destroy$=new R.x,this.pageIndex$=new Ot.X(1),this.frontPagination$=new Ot.X(!0),this.pageSize$=new Ot.X(10),this.listOfData$=new Ot.X([]),this.listOfCustomColumn$=new Ot.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,N.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,N.x)()),this.listOfCalcOperator$=new Ot.X([]),this.queryParams$=(0,Pt.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,J.b)(0),(0,Me.T)(1),(0,K.U)(([W,Re,jt])=>({pageIndex:W,pageSize:Re,sort:jt.filter(sn=>sn.sortFn).map(sn=>({key:sn.key,value:sn.sortOrder})),filter:jt.filter(sn=>sn.filterFn).map(sn=>({key:sn.key,value:sn.filterValue}))}))),this.listOfDataAfterCalc$=(0,Pt.a)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,K.U)(([W,Re])=>{let jt=[...W];const sn=Re.filter(ho=>{const{filterValue:fo,filterFn:Uo}=ho;return!(null==fo||Array.isArray(fo)&&0===fo.length)&&"function"==typeof Uo});for(const ho of sn){const{filterFn:fo,filterValue:Uo}=ho;jt=jt.filter(ti=>fo(Uo,ti))}const Rn=Re.filter(ho=>null!==ho.sortOrder&&"function"==typeof ho.sortFn).sort((ho,fo)=>+fo.sortPriority-+ho.sortPriority);return Re.length&&jt.sort((ho,fo)=>{for(const Uo of Rn){const{sortFn:ti,sortOrder:uo}=Uo;if(ti&&uo){const Vi=ti(ho,fo,uo);if(0!==Vi)return"ascend"===uo?Vi:-Vi}}return 0}),jt})),this.listOfFrontEndCurrentPageData$=(0,Pt.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,me.R)(this.destroy$),(0,zt.h)(W=>{const[Re,jt,sn]=W;return Re<=(Math.ceil(sn.length/jt)||1)}),(0,K.U)(([W,Re,jt])=>jt.slice((W-1)*Re,W*Re))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,nt.w)(W=>W?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,nt.w)(W=>W?this.listOfDataAfterCalc$:this.listOfData$),(0,K.U)(W=>W.length),(0,N.x)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Gn=(()=>{class Le{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzCheckedChange=new s.vpe,this.nzExpandChange=new s.vpe,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(W){this.nzChecked=W,this.nzCheckedChange.emit(W)}onExpandChange(W){this.nzExpand=W,this.nzExpandChange.emit(W)}ngOnChanges(W){const Re=fo=>fo&&fo.firstChange&&void 0!==fo.currentValue,{nzExpand:jt,nzChecked:sn,nzShowExpand:Rn,nzShowCheckbox:ho}=W;Rn&&(this.isNzShowExpandChanged=!0),ho&&(this.isNzShowCheckboxChanged=!0),Re(jt)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),Re(sn)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-cell-with-append",Re.nzShowExpand||Re.nzIndentSize>0)("ant-table-selection-column",Re.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzIndentSize:"nzIndentSize",nzShowExpand:"nzShowExpand",nzShowCheckbox:"nzShowCheckbox",nzExpand:"nzExpand"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[s.TTD],attrs:ee,ngContentSelectors:Qe,decls:3,vars:2,consts:[[4,"ngIf"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange",4,"ngIf"],[3,"indentSize"],["nz-row-expand-button","",3,"expand","spaceMode","expandChange"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange"]],template:function(W,Re){1&W&&(s.F$t(),s.YNc(0,H,3,3,"ng-container",0),s.YNc(1,Te,1,3,"label",1),s.Hsn(2)),2&W&&(s.Q6J("ngIf",Re.nzShowExpand||Re.nzIndentSize>0),s.xp6(1),s.Q6J("ngIf",Re.nzShowCheckbox))},dependencies:[L.JJ,L.On,I.Ie,d.O5,vn,en],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowExpand",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowCheckbox",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzExpand",void 0),Le})(),Zn=(()=>{class Le{getNextSortDirection(W,Re){const jt=W.indexOf(Re);return jt===W.length-1?W[0]:W[jt+1]}setSortOrder(W){this.sortOrderChange$.next(W)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(W){this.nzFilterChange.emit(W),this.nzFilterValue=W,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(W,Re,jt,sn){this.host=W,this.cdr=Re,this.ngZone=jt,this.destroy$=sn,this.manualClickOrder$=new R.x,this.calcOperatorChange$=new R.x,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new R.x,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new s.vpe,this.nzSortOrderChange=new s.vpe,this.nzFilterChange=new s.vpe}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,it.R)(this.host.nativeElement,"click").pipe((0,zt.h)(()=>this.nzShowSort),(0,me.R)(this.destroy$)).subscribe(()=>{const W=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(W),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.sortOrder!==W&&(this.sortOrder=W,this.nzSortOrderChange.emit(W)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(W){const{nzSortDirections:Re,nzFilters:jt,nzSortOrder:sn,nzSortFn:Rn,nzFilterFn:ho,nzSortPriority:fo,nzFilterMultiple:Uo,nzShowSort:ti,nzShowFilter:uo}=W;Re&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),sn&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),ti&&(this.isNzShowSortChanged=!0),uo&&(this.isNzShowFilterChanged=!0);const Vi=Ai=>Ai&&Ai.firstChange&&void 0!==Ai.currentValue;if((Vi(sn)||Vi(Rn))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),Vi(jt)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(jt||Uo)&&this.nzShowFilter){const Ai=this.nzFilters.filter(Cr=>Cr.byDefault).map(Cr=>Cr.value);this.nzFilterValue=this.nzFilterMultiple?Ai:Ai[0]||null}(Rn||ho||fo||jt)&&this.updateCalcOperator()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(A.kn))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-column-has-sorters",Re.nzShowSort)("ant-table-column-sort","descend"===Re.sortOrder||"ascend"===Re.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[s._Bn([A.kn]),s.TTD],attrs:$e,ngContentSelectors:Xn,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(W,Re){if(1&W&&(s.F$t(vo),s.YNc(0,Tt,1,5,"nz-table-filter",0),s.YNc(1,qt,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Un,2,0,"ng-template",null,2,s.W1O),s.YNc(5,zn,1,3,"ng-template",null,3,s.W1O),s.YNc(7,Vn,1,0,"ng-template",null,4,s.W1O)),2&W){const jt=s.MAs(2);s.Q6J("ngIf",Re.nzShowFilter||Re.nzCustomFilter)("ngIfElse",jt)}},dependencies:[d.O5,d.tP,bn,fn],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowSort",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowFilter",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzCustomFilter",void 0),Le})(),to=(()=>{class Le{constructor(W,Re){this.renderer=W,this.elementRef=Re,this.changes$=new R.x,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(W){const{nzWidth:Re,colspan:jt,rowspan:sn,colSpan:Rn,rowSpan:ho}=W;if(jt||Rn){const fo=this.colspan||this.colSpan;(0,V.kK)(fo)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${fo}`)}if(sn||ho){const fo=this.rowspan||this.rowSpan;(0,V.kK)(fo)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${fo}`)}(Re||jt)&&this.changes$.next()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.Qsj),s.Y36(s.SBq))},Le.\u0275dir=s.lG2({type:Le,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[s.TTD]}),Le})(),yo=(()=>{class Le{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new s.vpe,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(W){this.nzChecked=W,this.nzCheckedChange.emit(W)}ngOnChanges(W){const Re=fo=>fo&&fo.firstChange&&void 0!==fo.currentValue,{nzChecked:jt,nzSelections:sn,nzShowExpand:Rn,nzShowCheckbox:ho}=W;Rn&&(this.isNzShowExpandChanged=!0),ho&&(this.isNzShowCheckboxChanged=!0),Re(sn)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),Re(jt)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzShowCheckbox:"nzShowCheckbox",nzShowRowSelection:"nzShowRowSelection"},outputs:{nzCheckedChange:"nzCheckedChange"},features:[s.TTD],attrs:Ao,ngContentSelectors:Qe,decls:2,vars:6,consts:[[3,"checked","disabled","indeterminate","listOfSelections","showCheckbox","showRowSelection","checkedChange"]],template:function(W,Re){1&W&&(s.F$t(),s.TgZ(0,"nz-table-selection",0),s.NdJ("checkedChange",function(sn){return Re.onCheckedChange(sn)}),s.qZA(),s.Hsn(1)),2&W&&s.Q6J("checked",Re.nzChecked)("disabled",Re.nzDisabled)("indeterminate",Re.nzIndeterminate)("listOfSelections",Re.nzSelections)("showCheckbox",Re.nzShowCheckbox)("showRowSelection",Re.nzShowRowSelection)},dependencies:[Nn],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowCheckbox",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowRowSelection",void 0),Le})(),_o=(()=>{class Le{constructor(){this.nzAlign=null}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(W,Re){2&W&&s.Udp("text-align",Re.nzAlign)},inputs:{nzAlign:"nzAlign"}}),Le})(),To=(()=>{class Le{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(W,Re){2&W&&(s.Udp("table-layout",Re.tableLayout)("width",Re.scrollX)("min-width",Re.scrollX?"100%":null),s.ekj("ant-table-fixed",Re.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:jo,ngContentSelectors:Qe,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(W,Re){1&W&&(s.F$t(),s.YNc(0,ei,1,4,"col",0),s.YNc(1,eo,2,1,"thead",1),s.YNc(2,hi,0,0,"ng-template",2),s.Hsn(3)),2&W&&(s.Q6J("ngForOf",Re.listOfColWidth),s.xp6(1),s.Q6J("ngIf",Re.theadTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",Re.contentTemplate))},dependencies:[d.sg,d.O5,d.tP],encapsulation:2,changeDetection:0}),Le})(),Go=(()=>{class Le{constructor(W,Re){this.nzTableStyleService=W,this.renderer=Re,this.hostWidth$=new Ot.X(null),this.enableAutoMeasure$=new Ot.X(!1),this.destroy$=new R.x}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:W,hostWidth$:Re}=this.nzTableStyleService;W.pipe((0,me.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),Re.pipe((0,me.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,me.R)(this.destroy$)).subscribe(W=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${W}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(xn),s.Y36(s.Qsj))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(W,Re){if(1&W&&s.Gf(si,7),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.tdElement=jt.first)}},attrs:Fo,ngContentSelectors:Qe,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(W,Re){if(1&W&&(s.F$t(),s.TgZ(0,"td",0,1),s.YNc(2,Do,3,5,"div",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,Ri,1,0,"ng-template",null,3,s.W1O)),2&W){const jt=s.MAs(5);s.xp6(2),s.Q6J("ngIf",s.lcZ(3,2,Re.enableAutoMeasure$))("ngIfElse",jt)}},dependencies:[d.O5,d.tP,d.Ov],encapsulation:2,changeDetection:0}),Le})(),Co=(()=>{class Le{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(W,Re){1&W&&(s.TgZ(0,"div",0),s._UZ(1,"table",1),s.qZA()),2&W&&(s.xp6(1),s.Q6J("contentTemplate",Re.contentTemplate)("tableLayout",Re.tableLayout)("listOfColWidth",Re.listOfColWidth)("theadTemplate",Re.theadTemplate))},dependencies:[To],encapsulation:2,changeDetection:0}),Le})(),fi=(()=>{class Le{constructor(W,Re){this.nzResizeObserver=W,this.ngZone=Re,this.listOfMeasureColumn=[],this.listOfAutoWidth=new s.vpe,this.destroy$=new R.x}trackByFunc(W,Re){return Re}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,We.O)(this.listOfTdElement)).pipe((0,nt.w)(W=>(0,Pt.a)(W.toArray().map(Re=>this.nzResizeObserver.observe(Re).pipe((0,K.U)(([jt])=>{const{width:sn}=jt.target.getBoundingClientRect();return Math.floor(sn)}))))),(0,J.b)(16),(0,me.R)(this.destroy$)).subscribe(W=>{this.ngZone instanceof s.R0b&&s.R0b.isInAngularZone()?this.listOfAutoWidth.next(W):this.ngZone.run(()=>this.listOfAutoWidth.next(W))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36($.D3),s.Y36(s.R0b))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(W,Re){if(1&W&&s.Gf(si,5),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.listOfTdElement=jt)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:oi,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(W,Re){1&W&&s.YNc(0,Ti,2,0,"td",0),2&W&&s.Q6J("ngForOf",Re.listOfMeasureColumn)("ngForTrackBy",Re.trackByFunc)},dependencies:[d.sg],encapsulation:2,changeDetection:0}),Le})(),yi=(()=>{class Le{constructor(W){if(this.nzTableStyleService=W,this.isInsideTable=!1,this.showEmpty$=new Ot.X(!1),this.noResult$=new Ot.X(void 0),this.listOfMeasureColumn$=new Ot.X([]),this.destroy$=new R.x,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:Re,noResult$:jt,listOfMeasureColumn$:sn}=this.nzTableStyleService;jt.pipe((0,me.R)(this.destroy$)).subscribe(this.noResult$),sn.pipe((0,me.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),Re.pipe((0,me.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(W){this.nzTableStyleService.setListOfAutoWidth(W)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(xn,8))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["tbody"]],hostVars:2,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-tbody",Re.isInsideTable)},ngContentSelectors:Qe,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(W,Re){1&W&&(s.F$t(),s.YNc(0,Mi,2,1,"ng-container",0),s.ALo(1,"async"),s.Hsn(2),s.YNc(3,bi,3,3,"tr",1),s.ALo(4,"async")),2&W&&(s.Q6J("ngIf",s.lcZ(1,2,Re.listOfMeasureColumn$)),s.xp6(3),s.Q6J("ngIf",s.lcZ(4,4,Re.showEmpty$)))},dependencies:[d.O5,k.gB,fi,Go,d.Ov],encapsulation:2,changeDetection:0}),Le})(),Io=(()=>{class Le{setScrollPositionClassName(W=!1){const{scrollWidth:Re,scrollLeft:jt,clientWidth:sn}=this.tableBodyElement.nativeElement,Rn="ant-table-ping-left",ho="ant-table-ping-right";Re===sn&&0!==Re||W?(this.renderer.removeClass(this.tableMainElement,Rn),this.renderer.removeClass(this.tableMainElement,ho)):0===jt?(this.renderer.removeClass(this.tableMainElement,Rn),this.renderer.addClass(this.tableMainElement,ho)):Re===jt+sn?(this.renderer.removeClass(this.tableMainElement,ho),this.renderer.addClass(this.tableMainElement,Rn)):(this.renderer.addClass(this.tableMainElement,Rn),this.renderer.addClass(this.tableMainElement,ho))}constructor(W,Re,jt,sn){this.renderer=W,this.ngZone=Re,this.platform=jt,this.resizeService=sn,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=Rn=>Rn,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new R.x,this.scroll$=new R.x,this.destroy$=new R.x}ngOnChanges(W){const{scrollX:Re,scrollY:jt,data:sn}=W;(Re||jt)&&(this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&0!==this.verticalScrollBarWidth?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())),sn&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const W=this.scroll$.pipe((0,We.O)(null),(0,ot.g)(0),(0,nt.w)(()=>(0,it.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,We.O)(!0))),(0,me.R)(this.destroy$)),Re=this.resizeService.subscribe().pipe((0,me.R)(this.destroy$)),jt=this.data$.pipe((0,me.R)(this.destroy$));(0,Wt.T)(W,Re,jt,this.scroll$).pipe((0,We.O)(!0),(0,ot.g)(0),(0,me.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),W.pipe((0,zt.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.Qsj),s.Y36(s.R0b),s.Y36(i.t4),s.Y36(A.rI))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-inner-scroll"]],viewQuery:function(W,Re){if(1&W&&(s.Gf(nr,5,s.SBq),s.Gf(Ui,5,s.SBq),s.Gf(v.N7,5,v.N7)),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.tableHeaderElement=jt.first),s.iGM(jt=s.CRH())&&(Re.tableBodyElement=jt.first),s.iGM(jt=s.CRH())&&(Re.cdkVirtualScrollViewport=jt.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[s.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(W,Re){1&W&&(s.YNc(0,hr,6,6,"ng-container",0),s.YNc(1,lo,3,5,"div",1)),2&W&&(s.Q6J("ngIf",Re.scrollY),s.xp6(1),s.Q6J("ngIf",!Re.scrollY))},dependencies:[d.O5,d.tP,d.PC,v.xd,v.x0,v.N7,yi,To],encapsulation:2,changeDetection:0}),Le})(),ko=(()=>{class Le{constructor(W){this.templateRef=W}static ngTemplateContextGuard(W,Re){return!0}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.Rgc))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),Le})(),Ki=(()=>{class Le{constructor(){this.title=null,this.footer=null}}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-title",null!==Re.title)("ant-table-footer",null!==Re.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(W,Re){1&W&&(s.YNc(0,Oo,2,1,"ng-container",0),s.YNc(1,Po,2,1,"ng-container",0)),2&W&&(s.Q6J("nzStringTemplateOutlet",Re.title),s.xp6(1),s.Q6J("nzStringTemplateOutlet",Re.footer))},dependencies:[S.f],encapsulation:2,changeDetection:0}),Le})(),mi=(()=>{class Le{onPageSizeChange(W){this.nzTableDataService.updatePageSize(W)}onPageIndexChange(W){this.nzTableDataService.updatePageIndex(W)}constructor(W,Re,jt,sn,Rn,ho,fo){this.elementRef=W,this.nzResizeObserver=Re,this.nzConfigService=jt,this.cdr=sn,this.nzTableStyleService=Rn,this.nzTableDataService=ho,this.directionality=fo,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Uo=>Uo,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzCustomColumn=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new s.vpe,this.nzPageIndexChange=new s.vpe,this.nzQueryParams=new s.vpe,this.nzCurrentPageDataChange=new s.vpe,this.nzCustomColumnChange=new s.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new R.x,this.templateMode$=new Ot.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,me.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:W,pageSizeDistinct$:Re,listOfCurrentPageData$:jt,total$:sn,queryParams$:Rn,listOfCustomColumn$:ho}=this.nzTableDataService,{theadTemplate$:fo,hasFixLeft$:Uo,hasFixRight$:ti}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.dir=uo,this.cdr.detectChanges()}),Rn.pipe((0,me.R)(this.destroy$)).subscribe(this.nzQueryParams),W.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{uo!==this.nzPageIndex&&(this.nzPageIndex=uo,this.nzPageIndexChange.next(uo))}),Re.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{uo!==this.nzPageSize&&(this.nzPageSize=uo,this.nzPageSizeChange.next(uo))}),sn.pipe((0,me.R)(this.destroy$),(0,zt.h)(()=>this.nzFrontPagination)).subscribe(uo=>{uo!==this.nzTotal&&(this.nzTotal=uo,this.cdr.markForCheck())}),jt.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.data=uo,this.nzCurrentPageDataChange.next(uo),this.cdr.markForCheck()}),ho.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.nzCustomColumn=uo,this.nzCustomColumnChange.next(uo),this.cdr.markForCheck()}),fo.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.theadTemplate=uo,this.cdr.markForCheck()}),Uo.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.hasFixLeft=uo,this.cdr.markForCheck()}),ti.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.hasFixRight=uo,this.cdr.markForCheck()}),(0,Pt.a)([sn,this.templateMode$]).pipe((0,K.U)(([uo,Vi])=>0===uo&&!Vi),(0,me.R)(this.destroy$)).subscribe(uo=>{this.nzTableStyleService.setShowEmpty(uo)}),this.verticalScrollBarWidth=(0,V.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.listOfAutoColWidth=uo,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,me.R)(this.destroy$)).subscribe(uo=>{this.listOfManualColWidth=uo,this.cdr.markForCheck()})}ngOnChanges(W){const{nzScroll:Re,nzPageIndex:jt,nzPageSize:sn,nzFrontPagination:Rn,nzData:ho,nzCustomColumn:fo,nzWidthConfig:Uo,nzNoResult:ti,nzTemplateMode:uo}=W;jt&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),sn&&this.nzTableDataService.updatePageSize(this.nzPageSize),ho&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),fo&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Rn&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),Re&&this.setScrollOnChanges(),Uo&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),uo&&this.templateMode$.next(this.nzTemplateMode),ti&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,K.U)(([W])=>{const{width:Re}=W.target.getBoundingClientRect();return Math.floor(Re-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,me.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.SBq),s.Y36($.D3),s.Y36(Z.jY),s.Y36(s.sBO),s.Y36(xn),s.Y36(In),s.Y36(t.Is,8))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["nz-table"]],contentQueries:function(W,Re,jt){if(1&W&&s.Suo(jt,ko,5),2&W){let sn;s.iGM(sn=s.CRH())&&(Re.nzVirtualScrollDirective=sn.first)}},viewQuery:function(W,Re){if(1&W&&s.Gf(Io,5),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.nzTableInnerScrollComponent=jt.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-wrapper-rtl","rtl"===Re.dir)("ant-table-custom-column",Re.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[s._Bn([xn,In]),s.TTD],ngContentSelectors:Qe,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(W,Re){if(1&W&&(s.F$t(),s.TgZ(0,"nz-spin",0),s.YNc(1,Vo,2,1,"ng-container",1),s.TgZ(2,"div",2,3),s.YNc(4,Zo,1,1,"nz-table-title-footer",4),s.YNc(5,Ko,1,13,"nz-table-inner-scroll",5),s.YNc(6,_i,1,4,"ng-template",null,6,s.W1O),s.YNc(8,ji,1,1,"nz-table-title-footer",7),s.qZA(),s.YNc(9,Xo,2,1,"ng-container",1),s.qZA(),s.YNc(10,so,1,1,"ng-template",null,8,s.W1O),s.YNc(12,Ue,1,0,"ng-template",null,9,s.W1O)),2&W){const jt=s.MAs(7);s.Q6J("nzDelay",Re.nzLoadingDelay)("nzSpinning",Re.nzLoading)("nzIndicator",Re.nzLoadingIndicator),s.xp6(1),s.Q6J("ngIf","both"===Re.nzPaginationPosition||"top"===Re.nzPaginationPosition),s.xp6(1),s.ekj("ant-table-rtl","rtl"===Re.dir)("ant-table-fixed-header",Re.nzData.length&&Re.scrollY)("ant-table-fixed-column",Re.scrollX)("ant-table-has-fix-left",Re.hasFixLeft)("ant-table-has-fix-right",Re.hasFixRight)("ant-table-bordered",Re.nzBordered)("nz-table-out-bordered",Re.nzOuterBordered&&!Re.nzBordered)("ant-table-middle","middle"===Re.nzSize)("ant-table-small","small"===Re.nzSize),s.xp6(2),s.Q6J("ngIf",Re.nzTitle),s.xp6(1),s.Q6J("ngIf",Re.scrollY||Re.scrollX)("ngIfElse",jt),s.xp6(3),s.Q6J("ngIf",Re.nzFooter),s.xp6(1),s.Q6J("ngIf","both"===Re.nzPaginationPosition||"bottom"===Re.nzPaginationPosition)}},dependencies:[d.O5,d.tP,Zt,Xe.W,Ki,Co,Io],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzFrontPagination",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzTemplateMode",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzShowPagination",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzLoading",void 0),(0,e.gn)([(0,V.yF)()],Le.prototype,"nzOuterBordered",void 0),(0,e.gn)([(0,Z.oS)()],Le.prototype,"nzLoadingIndicator",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzBordered",void 0),(0,e.gn)([(0,Z.oS)()],Le.prototype,"nzSize",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzShowSizeChanger",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzHideOnSinglePage",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzShowQuickJumper",void 0),(0,e.gn)([(0,Z.oS)(),(0,V.yF)()],Le.prototype,"nzSimple",void 0),Le})(),ir=(()=>{class Le{constructor(W){this.nzTableStyleService=W,this.destroy$=new R.x,this.listOfFixedColumns$=new pe.t(1),this.listOfColumns$=new pe.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,nt.w)(Re=>(0,Wt.T)(this.listOfFixedColumns$,...Re.map(jt=>jt.changes$)).pipe((0,Vt.z)(()=>this.listOfFixedColumns$))),(0,me.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,K.U)(Re=>Re.filter(jt=>!1!==jt.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,K.U)(Re=>Re.filter(jt=>!1!==jt.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,nt.w)(Re=>(0,Wt.T)(this.listOfColumns$,...Re.map(jt=>jt.changes$)).pipe((0,Vt.z)(()=>this.listOfColumns$))),(0,me.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!W}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,We.O)(this.listOfCellFixedDirective),(0,me.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,We.O)(this.listOfNzThDirective),(0,me.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(W=>{W.forEach(Re=>Re.setIsLastLeft(Re===W[W.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(W=>{W.forEach(Re=>Re.setIsFirstRight(Re===W[0]))}),(0,Pt.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,me.R)(this.destroy$)).subscribe(([W,Re])=>{Re.forEach((jt,sn)=>{if(jt.isAutoLeft){const ho=Re.slice(0,sn).reduce((Uo,ti)=>Uo+(ti.colspan||ti.colSpan||1),0),fo=W.slice(0,ho).reduce((Uo,ti)=>Uo+ti,0);jt.setAutoLeftWidth(`${fo}px`)}})}),(0,Pt.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,me.R)(this.destroy$)).subscribe(([W,Re])=>{Re.forEach((jt,sn)=>{const Rn=Re[Re.length-sn-1];if(Rn.isAutoRight){const fo=Re.slice(Re.length-sn,Re.length).reduce((ti,uo)=>ti+(uo.colspan||uo.colSpan||1),0),Uo=W.slice(W.length-fo,W.length).reduce((ti,uo)=>ti+uo,0);Rn.setAutoRightWidth(`${Uo}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(xn,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(W,Re,jt){if(1&W&&(s.Suo(jt,to,4),s.Suo(jt,dn,4)),2&W){let sn;s.iGM(sn=s.CRH())&&(Re.listOfNzThDirective=sn),s.iGM(sn=s.CRH())&&(Re.listOfCellFixedDirective=sn)}},hostVars:2,hostBindings:function(W,Re){2&W&&s.ekj("ant-table-row",Re.isInsideTable)}}),Le})(),Ii=(()=>{class Le{constructor(W,Re,jt,sn){this.elementRef=W,this.renderer=Re,this.nzTableStyleService=jt,this.nzTableDataService=sn,this.destroy$=new R.x,this.isInsideTable=!1,this.nzSortOrderChange=new s.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const W=this.listOfNzTrDirective.changes.pipe((0,We.O)(this.listOfNzTrDirective),(0,K.U)(Rn=>Rn&&Rn.first)),Re=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfColumnsChanges$:kt.E),(0,me.R)(this.destroy$));Re.subscribe(Rn=>this.nzTableStyleService.setListOfTh(Rn)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,nt.w)(Rn=>Rn?Re:(0,Je.of)([]))).pipe((0,me.R)(this.destroy$)).subscribe(Rn=>this.nzTableStyleService.setListOfMeasureColumn(Rn));const jt=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfFixedLeftColumnChanges$:kt.E),(0,me.R)(this.destroy$)),sn=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfFixedRightColumnChanges$:kt.E),(0,me.R)(this.destroy$));jt.subscribe(Rn=>{this.nzTableStyleService.setHasFixLeft(0!==Rn.length)}),sn.subscribe(Rn=>{this.nzTableStyleService.setHasFixRight(0!==Rn.length)})}if(this.nzTableDataService){const W=this.listOfNzThAddOnComponent.changes.pipe((0,We.O)(this.listOfNzThAddOnComponent));W.pipe((0,nt.w)(()=>(0,Wt.T)(...this.listOfNzThAddOnComponent.map(sn=>sn.manualClickOrder$))),(0,me.R)(this.destroy$)).subscribe(sn=>{this.nzSortOrderChange.emit({key:sn.nzColumnKey,value:sn.sortOrder}),sn.nzSortFn&&!1===sn.nzSortPriority&&this.listOfNzThAddOnComponent.filter(ho=>ho!==sn).forEach(ho=>ho.clearSortOrder())}),W.pipe((0,nt.w)(sn=>(0,Wt.T)(W,...sn.map(Rn=>Rn.calcOperatorChange$)).pipe((0,Vt.z)(()=>W))),(0,K.U)(sn=>sn.filter(Rn=>!!Rn.nzSortFn||!!Rn.nzFilterFn).map(Rn=>{const{nzSortFn:ho,sortOrder:fo,nzFilterFn:Uo,nzFilterValue:ti,nzSortPriority:uo,nzColumnKey:Vi}=Rn;return{key:Vi,sortFn:ho,sortPriority:uo,sortOrder:fo,filterFn:Uo,filterValue:ti}})),(0,ot.g)(0),(0,me.R)(this.destroy$)).subscribe(sn=>{this.nzTableDataService.listOfCalcOperator$.next(sn)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Le.\u0275fac=function(W){return new(W||Le)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(xn,8),s.Y36(In,8))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(W,Re,jt){if(1&W&&(s.Suo(jt,ir,5),s.Suo(jt,Zn,5)),2&W){let sn;s.iGM(sn=s.CRH())&&(Re.listOfNzTrDirective=sn),s.iGM(sn=s.CRH())&&(Re.listOfNzThAddOnComponent=sn)}},viewQuery:function(W,Re){if(1&W&&s.Gf(oe,7),2&W){let jt;s.iGM(jt=s.CRH())&&(Re.templateRef=jt.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Qe,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(W,Re){1&W&&(s.F$t(),s.YNc(0,Oe,1,0,"ng-template",null,0,s.W1O),s.YNc(2,bt,2,1,"ng-container",1)),2&W&&(s.xp6(2),s.Q6J("ngIf",!Re.isInsideTable))},dependencies:[d.O5,d.tP],encapsulation:2,changeDetection:0}),Le})(),di=(()=>{class Le{}return Le.\u0275fac=function(W){return new(W||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[t.vT,M.ip,L.u5,S.T,at.aF,I.Wr,F.b1,j.sL,d.ez,i.ud,Cn,$.y7,Xe.j,U.YI,w.PV,k.Xo,v.Cl]}),Le})()},9382:(It,be,a)=>{a.d(be,{Ao:()=>zt,Fx:()=>Me,we:()=>se,xH:()=>Qe,xw:()=>ot});var t=a(5879),i=a(551),v=a(8324),d=a(6879),s=a(4300),L=a(2495),j=a(6028),$=a(2438),I=a(7394),S=a(927),F=a(6410),k=a(8645),U=a(2096),w=a(3019),M=a(9773),e=a(9028),R=a(7921),pe=a(1374),me=a(2181),Z=a(5177),A=a(6814),V=a(3460),O=a(2787),P=a(532),D=a(8802),re=a(9388),ae=a(655),Q=a(7754),fe=a(4190),ue=a(7131),ge=a(2831),Se=a(874),ke=a(7032);function Rt(ze,mt){if(1&ze&&(t.ynx(0),t._UZ(1,"span",1),t.BQk()),2&ze){const Pe=mt.$implicit;t.xp6(1),t.Q6J("nzType",Pe)}}function Ft(ze,mt){if(1&ze&&(t.ynx(0),t._uU(1),t.BQk()),2&ze){const Pe=t.oxw().$implicit;t.xp6(1),t.hij(" ",Pe.tab.label," ")}}const Mt=function(){return{visible:!1}};function yt(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"li",8),t.NdJ("click",function(){const un=t.CHM(Pe).$implicit,Nt=t.oxw(2);return t.KtG(Nt.onSelect(un))})("contextmenu",function(Yt){const Nt=t.CHM(Pe).$implicit,pt=t.oxw(2);return t.KtG(pt.onContextmenu(Nt,Yt))}),t.YNc(1,Ft,2,1,"ng-container",9),t.qZA()}if(2&ze){const Pe=mt.$implicit;t.ekj("ant-tabs-dropdown-menu-item-disabled",Pe.disabled),t.Q6J("nzSelected",Pe.active)("nzDisabled",Pe.disabled),t.xp6(1),t.Q6J("nzStringTemplateOutlet",Pe.tab.label)("nzStringTemplateOutletContext",t.DdM(6,Mt))}}function Ct(ze,mt){if(1&ze&&(t.TgZ(0,"ul",6),t.YNc(1,yt,2,7,"li",7),t.qZA()),2&ze){const Pe=t.oxw();t.xp6(1),t.Q6J("ngForOf",Pe.items)}}function Lt(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(Pe);const Yt=t.oxw();return t.KtG(Yt.addClicked.emit())}),t.qZA()}if(2&ze){const Pe=t.oxw();t.Q6J("addIcon",Pe.addIcon)}}const rn=function(){return{minWidth:"46px"}},Sn=["navWarp"],rt=["navList"];function Ye(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(Pe);const Yt=t.oxw();return t.KtG(Yt.addClicked.emit())}),t.qZA()}if(2&ze){const Pe=t.oxw();t.Q6J("addIcon",Pe.addIcon)}}function st(ze,mt){}function Ze(ze,mt){if(1&ze&&(t.TgZ(0,"div",9),t.YNc(1,st,0,0,"ng-template",10),t.qZA()),2&ze){const Pe=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",Pe.extraTemplate)}}const Bt=["*"],Jt=["nz-tab-body",""];function _n(ze,mt){}function On(ze,mt){if(1&ze&&(t.ynx(0),t.YNc(1,_n,0,0,"ng-template",1),t.BQk()),2&ze){const Pe=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",Pe.content)}}function cn(ze,mt){if(1&ze&&(t.ynx(0),t._UZ(1,"span",1),t.BQk()),2&ze){const Pe=mt.$implicit;t.xp6(1),t.Q6J("nzType",Pe)}}const wt=["contentTemplate"];function Ve(ze,mt){1&ze&&t.Hsn(0)}function Be(ze,mt){1&ze&&t.Hsn(0,1)}const He=[[["","nz-tab-link",""]],"*"],je=["[nz-tab-link]","*"];function Ne(ze,mt){if(1&ze&&(t.ynx(0),t._uU(1),t.BQk()),2&ze){const Pe=t.oxw().$implicit;t.xp6(1),t.Oqu(Pe.label)}}function De(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(Yt){t.CHM(Pe);const un=t.oxw().index,Nt=t.oxw(2);return t.KtG(Nt.onClose(un,Yt))}),t.qZA()}if(2&ze){const Pe=t.oxw().$implicit;t.Q6J("closeIcon",Pe.nzCloseIcon)}}const ie=function(){return{visible:!0}};function Ce(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(Yt){const un=t.CHM(Pe),Nt=un.$implicit,pt=un.index,gt=t.oxw(2);return t.KtG(gt.clickNavItem(Nt,pt,Yt))})("contextmenu",function(Yt){const Nt=t.CHM(Pe).$implicit,pt=t.oxw(2);return t.KtG(pt.contextmenuNavItem(Nt,Yt))}),t.TgZ(1,"div",7),t.YNc(2,Ne,2,1,"ng-container",8),t.YNc(3,De,1,1,"button",9),t.qZA()()}if(2&ze){const Pe=mt.$implicit,lt=mt.index,Yt=t.oxw(2);t.Udp("margin-right","horizontal"===Yt.position?Yt.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Yt.position?Yt.nzTabBarGutter:null,"px"),t.ekj("ant-tabs-tab-active",Yt.nzSelectedIndex===lt)("ant-tabs-tab-disabled",Pe.nzDisabled),t.xp6(1),t.Q6J("disabled",Pe.nzDisabled)("tab",Pe)("active",Yt.nzSelectedIndex===lt),t.uIk("tabIndex",Yt.getTabIndex(Pe,lt))("aria-disabled",Pe.nzDisabled)("aria-selected",Yt.nzSelectedIndex===lt&&!Yt.nzHideAll)("aria-controls",Yt.getTabContentId(lt)),t.xp6(1),t.Q6J("nzStringTemplateOutlet",Pe.label)("nzStringTemplateOutletContext",t.DdM(18,ie)),t.xp6(1),t.Q6J("ngIf",Pe.nzClosable&&Yt.closable&&!Pe.nzDisabled)}}function ve(ze,mt){if(1&ze){const Pe=t.EpF();t.TgZ(0,"nz-tabs-nav",4),t.NdJ("tabScroll",function(Yt){t.CHM(Pe);const un=t.oxw();return t.KtG(un.nzTabListScroll.emit(Yt))})("selectFocusedIndex",function(Yt){t.CHM(Pe);const un=t.oxw();return t.KtG(un.setSelectedIndex(Yt))})("addClicked",function(){t.CHM(Pe);const Yt=t.oxw();return t.KtG(Yt.onAdd())}),t.YNc(1,Ce,4,19,"div",5),t.qZA()}if(2&ze){const Pe=t.oxw();t.Q6J("ngStyle",Pe.nzTabBarStyle)("selectedIndex",Pe.nzSelectedIndex||0)("inkBarAnimated",Pe.inkBarAnimated)("addable",Pe.addable)("addIcon",Pe.nzAddIcon)("hideBar",Pe.nzHideAll)("position",Pe.position)("extraTemplate",Pe.nzTabBarExtraContent),t.xp6(1),t.Q6J("ngForOf",Pe.tabs)}}function qe(ze,mt){if(1&ze&&t._UZ(0,"div",11),2&ze){const Pe=mt.$implicit,lt=mt.index,Yt=t.oxw();t.Q6J("active",Yt.nzSelectedIndex===lt&&!Yt.nzHideAll)("content",Pe.content)("forceRender",Pe.nzForceRender)("tabPaneAnimated",Yt.tabPaneAnimated)}}let ct=(()=>{class ze{constructor(Pe){this.elementRef=Pe,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.SBq))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,lt){1&Pe&&t.YNc(0,Rt,2,1,"ng-container",0),2&Pe&&t.Q6J("nzStringTemplateOutlet",lt.addIcon)},dependencies:[i.Ls,v.f],encapsulation:2}),ze})(),Zt=(()=>{class ze{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Pe,lt,Yt){this.elementRef=Pe,this.ngZone=lt,this.animationMode=Yt,this.position="horizontal",this.animated=!0}alignToElement(Pe){this.ngZone.runOutsideAngular(()=>{(0,d.e)(()=>this.setStyles(Pe))})}setStyles(Pe){const lt=this.elementRef.nativeElement;"horizontal"===this.position?(lt.style.top="",lt.style.height="",lt.style.left=this.getLeftPosition(Pe),lt.style.width=this.getElementWidth(Pe)):(lt.style.left="",lt.style.width="",lt.style.top=this.getTopPosition(Pe),lt.style.height=this.getElementHeight(Pe))}getLeftPosition(Pe){return Pe?`${Pe.offsetLeft||0}px`:"0"}getElementWidth(Pe){return Pe?`${Pe.offsetWidth||0}px`:"0"}getTopPosition(Pe){return Pe?`${Pe.offsetTop||0}px`:"0"}getElementHeight(Pe){return Pe?`${Pe.offsetHeight||0}px`:"0"}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(Pe,lt){2&Pe&&t.ekj("ant-tabs-ink-bar-animated",lt._animated)},inputs:{position:"position",animated:"animated"}}),ze})(),Cn=(()=>{class ze{constructor(Pe){this.elementRef=Pe,this.disabled=!1,this.active=!1,this.el=Pe.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",tab:"tab",active:"active"}}),ze})(),at=(()=>{class ze{constructor(Pe,lt){this.cdr=Pe,this.elementRef=lt,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.vpe,this.selected=new t.vpe,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Pe){Pe.disabled||(Pe.tab.nzClick.emit(),this.selected.emit(Pe))}onContextmenu(Pe,lt){Pe.disabled||Pe.tab.nzContextmenu.emit(lt)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Pe){Pe||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.sBO),t.Y36(t.SBq))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(Pe,lt){2&Pe&&t.ekj("ant-tabs-nav-operations-hidden",0===lt.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(Pe,lt){if(1&Pe&&(t.TgZ(0,"button",0,1),t.NdJ("nzVisibleChange",function(un){return lt.menuVisChange(un)})("mouseenter",function(){return lt.showItems()}),t._UZ(2,"span",2),t.qZA(),t.TgZ(3,"nz-dropdown-menu",null,3),t.YNc(5,Ct,2,1,"ul",4),t.qZA(),t.YNc(6,Lt,1,1,"button",5)),2&Pe){const Yt=t.MAs(4);t.Q6J("nzDropdownMenu",Yt)("nzOverlayStyle",t.DdM(5,rn))("nzMatchWidthElement",null),t.xp6(5),t.Q6J("ngIf",lt.menuOpened),t.xp6(1),t.Q6J("ngIf",lt.addable)}},dependencies:[A.sg,A.O5,i.Ls,v.f,V.wO,V.r9,O.cm,O.RR,ct],encapsulation:2,changeDetection:0}),ze})();const Pt=.995**20;let Wt=(()=>{class ze{constructor(Pe,lt){this.ngZone=Pe,this.elementRef=lt,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.vpe,this.tabScroll=new t.vpe,this.onTouchEnd=Yt=>{if(!this.touchPosition)return;const un=this.lastOffset,Nt=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,un){const pt=un.x/Nt,gt=un.y/Nt,ee=Math.abs(pt),H=Math.abs(gt);if(Math.max(ee,H)<.1)return;let Te=pt,$e=gt;this.motion=window.setInterval(()=>{Math.abs(Te)<.01&&Math.abs($e)<.01?window.clearInterval(this.motion):(Te*=Pt,$e*=Pt,this.onOffset(20*Te,20*$e,Yt))},20)}},this.onTouchMove=Yt=>{if(!this.touchPosition)return;Yt.preventDefault();const{screenX:un,screenY:Nt}=Yt.touches[0],pt=un-this.touchPosition.x,gt=Nt-this.touchPosition.y;this.onOffset(pt,gt,Yt);const ee=Date.now();this.lastTimeDiff=ee-this.lastTimestamp,this.lastTimestamp=ee,this.lastOffset={x:pt,y:gt},this.touchPosition={x:un,y:Nt}},this.onTouchStart=Yt=>{const{screenX:un,screenY:Nt}=Yt.touches[0];this.touchPosition={x:un,y:Nt},window.clearInterval(this.motion)},this.onWheel=Yt=>{const{deltaX:un,deltaY:Nt}=Yt;let pt;const gt=Math.abs(un),ee=Math.abs(Nt);gt===ee?pt="x"===this.lastWheelDirection?un:Nt:gt>ee?(pt=un,this.lastWheelDirection="x"):(pt=Nt,this.lastWheelDirection="y");const H=Date.now(),Te=Math.abs(pt);(H-this.lastWheelTimestamp>100||Te-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-pt,-pt,Yt),(Yt.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=H,this.lastMixedWheel=Te}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Pe=this.elementRef.nativeElement,lt=(0,$.R)(Pe,"wheel"),Yt=(0,$.R)(Pe,"touchstart"),un=(0,$.R)(Pe,"touchmove"),Nt=(0,$.R)(Pe,"touchend"),pt=new I.w0;return pt.add(this.subscribeWrap("wheel",lt,this.onWheel)),pt.add(this.subscribeWrap("touchstart",Yt,this.onTouchStart)),pt.add(this.subscribeWrap("touchmove",un,this.onTouchMove)),pt.add(this.subscribeWrap("touchend",Nt,this.onTouchEnd)),()=>{pt.unsubscribe()}})}subscribeWrap(Pe,lt,Yt){return lt.subscribe(un=>{this.tabScroll.emit({type:Pe,event:un}),un.defaultPrevented||Yt(un)})}onOffset(Pe,lt,Yt){this.ngZone.run(()=>{this.offsetChange.emit({x:Pe,y:lt,event:Yt})})}ngOnDestroy(){this.unsubscribe()}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.R0b),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),ze})();const kt=typeof requestAnimationFrame<"u"?S.Z:F.E;let K=(()=>{class ze{get selectedIndex(){return this._selectedIndex}set selectedIndex(Pe){const lt=(0,L.su)(Pe);this._selectedIndex!==lt&&(this._selectedIndex=Pe,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Pe))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Pe){!this.isValidIndex(Pe)||this.focusIndex===Pe||!this.keyManager||this.keyManager.setActiveItem(Pe)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Pe,lt,Yt,un,Nt){this.cdr=Pe,this.ngZone=lt,this.viewportRuler=Yt,this.nzResizeObserver=un,this.dir=Nt,this.indexFocused=new t.vpe,this.selectFocusedIndex=new t.vpe,this.addClicked=new t.vpe,this.tabScroll=new t.vpe,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new k.x,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}ngAfterViewInit(){const Pe=this.dir?this.dir.change.asObservable():(0,U.of)(null),lt=this.viewportRuler.change(150),Yt=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new s.Em(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,d.e)(Yt),(0,w.T)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,M.R)(this.destroy$),(0,e.e)(16,kt)).subscribe(()=>{Yt()}),(0,w.T)(Pe,lt,this.items.changes).pipe((0,M.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Yt),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,M.R)(this.destroy$)).subscribe(un=>{this.indexFocused.emit(un),this.setTabFocus(un),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(Pe){const lt=this.items.toArray().findIndex(Yt=>Yt===Pe);-1!==lt&&(this.keyManager.updateActiveItem(lt),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Pe)))}onOffsetChange(Pe){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId&&(this.transformX>=0&&Pe.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Pe.x<0))return;Pe.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Pe.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId&&(this.transformY>=0&&Pe.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Pe.y<0))return;Pe.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Pe.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Pe){const lt=this.navWarpRef.nativeElement.contains(Pe.target);if(!(0,j.Vb)(Pe)&<)switch(Pe.keyCode){case j.oh:case j.LH:case j.SV:case j.JH:this.lockAnimation(),this.keyManager.onKeydown(Pe);break;case j.K5:case j.L_:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Pe)}}isValidIndex(Pe){if(!this.items)return!0;const lt=this.items?this.items.toArray()[Pe]:null;return!!lt&&!lt.disabled}scrollToTab(Pe){if(!this.items.find(Yt=>Yt===Pe))return;const lt=this.items.toArray();if("horizontal"===this.position){let Yt=this.transformX;if("rtl"===this.getLayoutDirection()){const un=lt[0].left+lt[0].width-Pe.left-Pe.width;unthis.transformX+this.wrapperWidth&&(Yt=un+Pe.width-this.wrapperWidth)}else Pe.left<-this.transformX?Yt=-Pe.left:Pe.left+Pe.width>-this.transformX+this.wrapperWidth&&(Yt=-(Pe.left+Pe.width-this.wrapperWidth));this.transformX=Yt,this.transformY=0,this.setTransform(Yt,0)}else{let Yt=this.transformY;Pe.top<-this.transformY?Yt=-Pe.top:Pe.top+Pe.height>-this.transformY+this.wrapperHeight&&(Yt=-(Pe.top+Pe.height-this.wrapperHeight)),this.transformY=Yt,this.transformX=0,this.setTransform(0,Yt)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},150)})}setTransform(Pe,lt){this.navListRef.nativeElement.style.transform=`translate(${Pe}px, ${lt}px)`}clampTransformX(Pe){const lt=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(lt,Pe),0):Math.min(Math.max(lt,Pe),0)}clampTransformY(Pe){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Pe),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const Pe=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,lt=Pe?Pe.elementRef.nativeElement:null;lt&&this.inkBar.alignToElement(lt.parentElement)}setPingStatus(){const Pe={top:!1,right:!1,bottom:!1,left:!1},lt=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Pe.right=this.transformX>0,Pe.left=this.transformX+this.wrapperWidth{const un=`ant-tabs-nav-wrap-ping-${Yt}`;Pe[Yt]?lt.classList.add(un):lt.classList.remove(un)})}setVisibleRange(){let Pe,lt,Yt,un,Nt,pt;const gt=this.items.toArray(),ee={width:0,height:0,left:0,top:0,right:0},H=zn=>{let Vn;return Vn="right"===lt?gt[0].left+gt[0].width-gt[zn].left-gt[zn].width:(gt[zn]||ee)[lt],Vn};"horizontal"===this.position?(Pe="width",un=this.wrapperWidth,Nt=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),pt=this.addButtonWidth,Yt=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(lt="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthun&&(Te=un-pt),!gt.length)return this.hiddenItems=[],void this.cdr.markForCheck();const $e=gt.length;let Tt=$e;for(let zn=0;zn<$e;zn+=1)if(H(zn)+(gt[zn]||ee)[Pe]>Yt+Te){Tt=zn-1;break}let Xt=0;for(let zn=$e-1;zn>=0;zn-=1)if(H(zn){class ze{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return ze.\u0275fac=function(Pe){return new(Pe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(Pe,lt){2&Pe&&(t.uIk("tabindex",lt.active?0:-1)("aria-hidden",!lt.active),t.Udp("visibility",lt.tabPaneAnimated?lt.active?null:"hidden":null)("height",lt.tabPaneAnimated?lt.active?null:0:null)("overflow-y",lt.tabPaneAnimated?lt.active?null:"none":null)("display",lt.tabPaneAnimated||lt.active?null:"none"),t.ekj("ant-tabs-tabpane-active",lt.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:Jt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(Pe,lt){1&Pe&&t.YNc(0,On,2,1,"ng-container",0),2&Pe&&t.Q6J("ngIf",lt.active||lt.forceRender)},dependencies:[A.O5,A.tP],encapsulation:2,changeDetection:0}),ze})(),J=(()=>{class ze{constructor(){this.closeIcon="close"}}return ze.\u0275fac=function(Pe){return new(Pe||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,lt){1&Pe&&t.YNc(0,cn,2,1,"ng-container",0),2&Pe&&t.Q6J("nzStringTemplateOutlet",lt.closeIcon)},dependencies:[i.Ls,v.f],encapsulation:2}),ze})(),Me=(()=>{class ze{constructor(Pe){this.templateRef=Pe}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.Rgc,1))},ze.\u0275dir=t.lG2({type:ze,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),ze})(),zt=(()=>{class ze{constructor(Pe,lt){this.elementRef=Pe,this.routerLink=lt}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(t.SBq),t.Y36(fe.rH,10))},ze.\u0275dir=t.lG2({type:ze,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),ze})(),nt=(()=>{class ze{}return ze.\u0275fac=function(Pe){return new(Pe||ze)},ze.\u0275dir=t.lG2({type:ze,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),ze})();const We=new t.OlP("NZ_TAB_SET");let ot=(()=>{class ze{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Pe){this.closestTabSet=Pe,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.vpe,this.nzDeselect=new t.vpe,this.nzClick=new t.vpe,this.nzContextmenu=new t.vpe,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new k.x}ngOnChanges(Pe){const{nzTitle:lt,nzDisabled:Yt,nzForceRender:un}=Pe;(lt||Yt||un)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(We))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["nz-tab"]],contentQueries:function(Pe,lt,Yt){if(1&Pe&&(t.Suo(Yt,Me,5),t.Suo(Yt,nt,5,t.Rgc),t.Suo(Yt,zt,5)),2&Pe){let un;t.iGM(un=t.CRH())&&(lt.nzTabLinkTemplateDirective=un.first),t.iGM(un=t.CRH())&&(lt.template=un.first),t.iGM(un=t.CRH())&&(lt.linkDirective=un.first)}},viewQuery:function(Pe,lt){if(1&Pe&&t.Gf(wt,7),2&Pe){let Yt;t.iGM(Yt=t.CRH())&&(lt.contentTemplate=Yt.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[t.TTD],ngContentSelectors:je,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(Pe,lt){1&Pe&&(t.F$t(He),t.YNc(0,Ve,1,0,"ng-template",null,0,t.W1O),t.YNc(2,Be,1,0,"ng-template",null,1,t.W1O))},encapsulation:2,changeDetection:0}),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzClosable",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzDisabled",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzForceRender",void 0),ze})();class Vt{}let mn=0,Qe=(()=>{class ze{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Pe){this.indexToSelect=(0,L.su)(Pe,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}constructor(Pe,lt,Yt,un,Nt){this.nzConfigService=Pe,this.ngZone=lt,this.cdr=Yt,this.directionality=un,this.router=Nt,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.vpe(!0),this.nzSelectedIndexChange=new t.vpe,this.nzTabListScroll=new t.vpe,this.nzClose=new t.vpe,this.nzAdd=new t.vpe,this.allTabs=new t.n_E,this.tabs=new t.n_E,this.dir="ltr",this.destroy$=new k.x,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=I.w0.EMPTY,this.tabsSubscription=I.w0.EMPTY,this.canDeactivateSubscription=I.w0.EMPTY,this.tabSetId=mn++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.R)(this.destroy$)).subscribe(Pe=>{this.dir=Pe,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const lt=this.tabs.toArray();for(let Yt=0;Yt{this.tabs.forEach((Yt,un)=>Yt.isActive=un===Pe),lt||this.nzSelectedIndexChange.emit(Pe)})}this.tabs.forEach((lt,Yt)=>{lt.position=Yt-Pe,null!=this.selectedIndex&&0===lt.position&&!lt.origin&&(lt.origin=Pe-this.selectedIndex)}),this.selectedIndex!==Pe&&(this.selectedIndex=Pe,this.cdr.markForCheck())}onClose(Pe,lt){lt.preventDefault(),lt.stopPropagation(),this.nzClose.emit({index:Pe})}onAdd(){this.nzAdd.emit()}clampTabIndex(Pe){return Math.min(this.tabs.length-1,Math.max(Pe||0,0))}createChangeEvent(Pe){const lt=new Vt;return lt.index=Pe,this.tabs&&this.tabs.length&&(lt.tab=this.tabs.toArray()[Pe],this.tabs.forEach((Yt,un)=>{un!==Pe&&Yt.nzDeselect.emit()}),lt.tab.nzSelect.emit()),lt}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,w.T)(...this.tabs.map(Pe=>Pe.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,R.O)(this.allTabs)).subscribe(Pe=>{this.tabs.reset(Pe.filter(lt=>lt.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Pe,lt){return"function"==typeof this.nzCanDeactivate?(0,Q.lN)(this.nzCanDeactivate(Pe,lt)).pipe((0,pe.P)(),(0,M.R)(this.destroy$)):(0,U.of)(!0)}clickNavItem(Pe,lt,Yt){Pe.nzDisabled||(Pe.nzClick.emit(),this.isRouterLinkClickEvent(lt,Yt)||this.setSelectedIndex(lt))}isRouterLinkClickEvent(Pe,lt){const Yt=lt.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Pe]?.linkDirective?.elementRef.nativeElement.contains(Yt)}contextmenuNavItem(Pe,lt){Pe.nzDisabled||Pe.nzContextmenu.emit(lt)}setSelectedIndex(Pe){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Pe).subscribe(lt=>{lt&&(this.nzSelectedIndex=Pe,this.tabNavBarRef.focusIndex=Pe,this.cdr.markForCheck())})}getTabIndex(Pe,lt){return Pe.nzDisabled?null:this.selectedIndex===lt?0:-1}getTabContentId(Pe){return`nz-tabs-${this.tabSetId}-tab-${Pe}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${ke.Bq} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,M.R)(this.destroy$),(0,me.h)(Pe=>Pe instanceof fe.m2),(0,R.O)(!0),(0,Z.g)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Pe=this.findShouldActiveTabIndex();Pe!==this.selectedIndex&&this.setSelectedIndex(Pe),this.nzHideAll=-1===Pe}}findShouldActiveTabIndex(){const Pe=this.tabs.toArray(),lt=this.isLinkActive(this.router);return Pe.findIndex(Yt=>{const un=Yt.linkDirective;return!!un&<(un.routerLink)})}isLinkActive(Pe){return lt=>!!lt&&Pe.isActive(lt.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?`${this.getTabContentMarginValue()}%`:""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?`${this.getTabContentMarginValue()}%`:""}}return ze.\u0275fac=function(Pe){return new(Pe||ze)(t.Y36(Se.jY),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(re.Is,8),t.Y36(fe.F0,8))},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["nz-tabset"]],contentQueries:function(Pe,lt,Yt){if(1&Pe&&t.Suo(Yt,ot,5),2&Pe){let un;t.iGM(un=t.CRH())&&(lt.allTabs=un)}},viewQuery:function(Pe,lt){if(1&Pe&&t.Gf(K,5),2&Pe){let Yt;t.iGM(Yt=t.CRH())&&(lt.tabNavBarRef=Yt.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(Pe,lt){2&Pe&&t.ekj("ant-tabs-card","card"===lt.nzType||"editable-card"===lt.nzType)("ant-tabs-editable","editable-card"===lt.nzType)("ant-tabs-editable-card","editable-card"===lt.nzType)("ant-tabs-centered",lt.nzCentered)("ant-tabs-rtl","rtl"===lt.dir)("ant-tabs-top","top"===lt.nzTabPosition)("ant-tabs-bottom","bottom"===lt.nzTabPosition)("ant-tabs-left","left"===lt.nzTabPosition)("ant-tabs-right","right"===lt.nzTabPosition)("ant-tabs-default","default"===lt.nzSize)("ant-tabs-small","small"===lt.nzSize)("ant-tabs-large","large"===lt.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[t._Bn([{provide:We,useExisting:ze}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(Pe,lt){1&Pe&&(t.YNc(0,ve,2,9,"nz-tabs-nav",0),t.TgZ(1,"div",1)(2,"div",2),t.YNc(3,qe,1,4,"div",3),t.qZA()()),2&Pe&&(t.Q6J("ngIf",lt.tabs.length||lt.addable),t.xp6(2),t.Udp("margin-left",lt.getTabContentMarginLeft())("margin-right",lt.getTabContentMarginRight()),t.ekj("ant-tabs-content-top","top"===lt.nzTabPosition)("ant-tabs-content-bottom","bottom"===lt.nzTabPosition)("ant-tabs-content-left","left"===lt.nzTabPosition)("ant-tabs-content-right","right"===lt.nzTabPosition)("ant-tabs-content-animated",lt.tabPaneAnimated),t.xp6(1),t.Q6J("ngForOf",lt.tabs))},dependencies:[A.sg,A.O5,A.PC,v.f,s.kH,K,Cn,J,N],encapsulation:2}),(0,ae.gn)([(0,Se.oS)()],ze.prototype,"nzType",void 0),(0,ae.gn)([(0,Se.oS)()],ze.prototype,"nzSize",void 0),(0,ae.gn)([(0,Se.oS)()],ze.prototype,"nzAnimated",void 0),(0,ae.gn)([(0,Se.oS)()],ze.prototype,"nzTabBarGutter",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzHideAdd",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzCentered",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzHideAll",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzLinkRouter",void 0),(0,ae.gn)([(0,Q.yF)()],ze.prototype,"nzLinkExact",void 0),ze})(),se=(()=>{class ze{}return ze.\u0275fac=function(Pe){return new(Pe||ze)},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({imports:[re.vT,A.ez,ue.Q8,i.PV,v.T,ge.ud,s.rt,P.ZD,O.b1]}),ze})()},5695:(It,be,a)=>{a.d(be,{X:()=>w,j:()=>U});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(3324),L=a(7754),j=a(9388),$=a(6814),I=a(551),S=a(6223);function F(M,e){if(1&M){const R=i.EpF();i.TgZ(0,"span",1),i.NdJ("click",function(me){i.CHM(R);const Z=i.oxw();return i.KtG(Z.closeTag(me))}),i.qZA()}}const k=["*"];let U=(()=>{class M{constructor(R,pe,me,Z){this.cdr=R,this.renderer=pe,this.elementRef=me,this.directionality=Z,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new i.vpe,this.nzCheckedChange=new i.vpe,this.dir="ltr",this.destroy$=new v.x}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(R){this.nzOnClose.emit(R),R.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const R=this.elementRef.nativeElement,pe=new RegExp(`(ant-tag-(?:${[...s.uf,...s.Bh].join("|")}))`,"g"),me=R.classList.toString(),Z=[];let A=pe.exec(me);for(;null!==A;)Z.push(A[1]),A=pe.exec(me);R.classList.remove(...Z)}setPresetColor(){const R=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,s.o2)(this.nzColor)||(0,s.M8)(this.nzColor)),this.isPresetColor&&R.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(R=>{this.dir=R,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(R){const{nzColor:pe}=R;pe&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return M.\u0275fac=function(R){return new(R||M)(i.Y36(i.sBO),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(j.Is,8))},M.\u0275cmp=i.Xpm({type:M,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(R,pe){1&R&&i.NdJ("click",function(){return pe.updateCheckedStatus()}),2&R&&(i.Udp("background-color",pe.isPresetColor?"":pe.nzColor),i.ekj("ant-tag-has-color",pe.nzColor&&!pe.isPresetColor)("ant-tag-checkable","checkable"===pe.nzMode)("ant-tag-checkable-checked",pe.nzChecked)("ant-tag-rtl","rtl"===pe.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[i.TTD],ngContentSelectors:k,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(R,pe){1&R&&(i.F$t(),i.Hsn(0),i.YNc(1,F,1,0,"span",0)),2&R&&(i.xp6(1),i.Q6J("ngIf","closeable"===pe.nzMode))},dependencies:[$.O5,I.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,L.yF)()],M.prototype,"nzChecked",void 0),M})(),w=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=i.oAB({type:M}),M.\u0275inj=i.cJS({imports:[j.vT,$.ez,S.u5,I.PV]}),M})()},6109:(It,be,a)=>{a.d(be,{Mg:()=>V,SY:()=>D,XK:()=>re,cg:()=>ae,pu:()=>P});var t=a(655),i=a(5879),v=a(4194),d=a(3324),s=a(7754),L=a(8645),j=a(6410),$=a(3997),I=a(9773),S=a(2181),F=a(5177),k=a(5448),U=a(331),w=a(874),M=a(9388),e=a(6814),R=a(9594),pe=a(8324);const me=["overlay"];function Z(Q,fe){if(1&Q&&(i.ynx(0),i._uU(1),i.BQk()),2&Q){const ue=i.oxw(2);i.xp6(1),i.Oqu(ue.nzTitle)}}function A(Q,fe){if(1&Q&&(i.TgZ(0,"div",2)(1,"div",3)(2,"div",4),i._UZ(3,"span",5),i.qZA(),i.TgZ(4,"div",6),i.YNc(5,Z,2,1,"ng-container",7),i.qZA()()()),2&Q){const ue=i.oxw();i.ekj("ant-tooltip-rtl","rtl"===ue.dir),i.Q6J("ngClass",ue._classMap)("ngStyle",ue.nzOverlayStyle)("@.disabled",!(null==ue.noAnimation||!ue.noAnimation.nzNoAnimation))("nzNoAnimation",null==ue.noAnimation?null:ue.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.xp6(3),i.Q6J("ngStyle",ue._contentStyleMap),i.xp6(1),i.Q6J("ngStyle",ue._contentStyleMap),i.xp6(1),i.Q6J("nzStringTemplateOutlet",ue.nzTitle)("nzStringTemplateOutletContext",ue.nzTitleContext)}}let V=(()=>{class Q{get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){const ue=this.placement;return Array.isArray(ue)&&ue.length>0?ue:"string"==typeof ue&&ue?[ue]:["top"]}get _visible(){return(typeof this.visible<"u"?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]}}constructor(ue,ge,Se,ke,Rt,Ft){this.elementRef=ue,this.hostView=ge,this.resolver=Se,this.renderer=ke,this.noAnimation=Rt,this.nzConfigService=Ft,this.visibleChange=new i.vpe,this.internalVisible=!1,this.destroy$=new L.x,this.triggerDisposables=[]}ngOnChanges(ue){const{trigger:ge}=ue;ge&&!ge.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(ue)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){this.component?.show()}hide(){this.component?.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const ue=this.componentRef;this.component=ue.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),ue.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const ge=this.component.nzVisibleChange.pipe((0,$.x)());ge.pipe((0,I.R)(this.destroy$)).subscribe(Se=>{this.internalVisible=Se,this.visibleChange.emit(Se)}),ge.pipe((0,S.h)(Se=>Se),(0,F.g)(0,j.E),(0,S.h)(()=>!!this.component?.overlay?.overlayRef),(0,I.R)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const ue=this.elementRef.nativeElement,ge=this.trigger;if(this.removeTriggerListeners(),"hover"===ge){let Se;this.triggerDisposables.push(this.renderer.listen(ue,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(ue,"mouseleave",()=>{this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!Se&&(Se=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(Se,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(Se,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===ge?(this.triggerDisposables.push(this.renderer.listen(ue,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(ue,"focusout",()=>this.hide()))):"click"===ge&&this.triggerDisposables.push(this.renderer.listen(ue,"click",Se=>{Se.preventDefault(),this.show()}))}updatePropertiesByChanges(ue){this.updatePropertiesByKeys(Object.keys(ue))}updatePropertiesByKeys(ue){const ge={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()};(ue||Object.keys(ge).filter(Se=>!Se.startsWith("directive"))).forEach(Se=>{if(ge[Se]){const[ke,Rt]=ge[Se];this.updateComponentValue(ke,Rt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(ue,ge){typeof ge<"u"&&(this.component[ue]=ge)}delayEnterLeave(ue,ge,Se=-1){this.delayTimer?this.clearTogglingTimer():Se>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,ge?this.show():this.hide()},1e3*Se):ge&&ue?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(ue=>ue()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Q.\u0275fac=function(ue){return new(ue||Q)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(U.P),i.Y36(w.jY))},Q.\u0275dir=i.lG2({type:Q,features:[i.TTD]}),Q})(),O=(()=>{class Q{set nzVisible(ue){const ge=(0,s.sw)(ue);this._visible!==ge&&(this._visible=ge,this.nzVisibleChange.next(ge))}get nzVisible(){return this._visible}set nzTrigger(ue){this._trigger=ue}get nzTrigger(){return this._trigger}set nzPlacement(ue){const ge=ue.map(Se=>k.yW[Se]);this._positions=[...ge,...k.Ek]}constructor(ue,ge,Se){this.cdr=ue,this.directionality=ge,this.noAnimation=Se,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new L.x,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...k.Ek],this.destroy$=new L.x}ngOnInit(){this.directionality.change?.pipe((0,I.R)(this.destroy$)).subscribe(ue=>{this.dir=ue,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(ue){this.preferredPlacement=(0,k.d_)(ue),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(ue){this.origin=ue,this.cdr.markForCheck()}onClickOutside(ue){!this.origin.nativeElement.contains(ue.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Q.\u0275fac=function(ue){return new(ue||Q)(i.Y36(i.sBO),i.Y36(M.Is,8),i.Y36(U.P))},Q.\u0275dir=i.lG2({type:Q,viewQuery:function(ue,ge){if(1&ue&&i.Gf(me,5),2&ue){let Se;i.iGM(Se=i.CRH())&&(ge.overlay=Se.first)}}}),Q})();function P(Q){return!(Q instanceof i.Rgc||""!==Q&&(0,s.DX)(Q))}let D=(()=>{class Q extends V{constructor(ue,ge,Se,ke,Rt){super(ue,ge,Se,ke,Rt),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new i.vpe,this.componentRef=this.hostView.createComponent(re)}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]}}}return Q.\u0275fac=function(ue){return new(ue||Q)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(U.P,9))},Q.\u0275dir=i.lG2({type:Q,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(ue,ge){2&ue&&i.ekj("ant-tooltip-open",ge.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:[i.qOj]}),(0,t.gn)([(0,s.yF)()],Q.prototype,"arrowPointAtCenter",void 0),Q})(),re=(()=>{class Q extends O{constructor(ue,ge,Se){super(ue,ge,Se),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return P(this.nzTitle)}updateStyles(){const ue=this.nzColor&&(0,d.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:ue},this._contentStyleMap={backgroundColor:this.nzColor&&!ue?this.nzColor:null}}}return Q.\u0275fac=function(ue){return new(ue||Q)(i.Y36(i.sBO),i.Y36(M.Is,8),i.Y36(U.P,9))},Q.\u0275cmp=i.Xpm({type:Q,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[i.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(ue,ge){1&ue&&(i.YNc(0,A,6,11,"ng-template",0,1,i.W1O),i.NdJ("overlayOutsideClick",function(ke){return ge.onClickOutside(ke)})("detach",function(){return ge.hide()})("positionChange",function(ke){return ge.onPositionChange(ke)})),2&ue&&i.Q6J("cdkConnectedOverlayOrigin",ge.origin)("cdkConnectedOverlayOpen",ge._visible)("cdkConnectedOverlayPositions",ge._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",ge.nzArrowPointAtCenter)},dependencies:[e.mk,e.PC,R.pI,pe.f,k.hQ,U.P],encapsulation:2,data:{animation:[v.$C]},changeDetection:0}),Q})(),ae=(()=>{class Q{}return Q.\u0275fac=function(ue){return new(ue||Q)},Q.\u0275mod=i.oAB({type:Q}),Q.\u0275inj=i.cJS({imports:[M.vT,e.ez,R.U8,pe.T,k.e4,U.g]}),Q})()},2392:(It,be,a)=>{a.d(be,{ZU:()=>Ne,ZJ:()=>De});var t=a(9388),i=a(342),v=a(2831),d=a(6814),s=a(5879),L=a(8324);let j=(()=>{class ie{}return ie.\u0275fac=function(ve){return new(ve||ie)},ie.\u0275dir=s.lG2({type:ie,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(ve,qe){2&ve&&s.Udp("border","0")("background","transparent")("padding","0")("line-height","inherit")}}),ie})(),$=(()=>{class ie{}return ie.\u0275fac=function(ve){return new(ve||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[d.ez]}),ie})();var I=a(1752),S=a(551),F=a(824),k=a(6109),U=a(8645),w=a(5619),M=a(5592),e=a(2438),R=a(6232),pe=a(9666),me=a(7394),Z=a(9773),A=a(4664),V=a(8180),O=a(2460),P=a(6028),D=a(9087),re=a(655),ae=a(874),Q=a(6879),fe=a(7754);function ue(ie,Ce){if(1&ie&&(s.ynx(0),s._UZ(1,"span",2),s.BQk()),2&ie){const ve=Ce.$implicit;s.xp6(1),s.Q6J("nzType",ve)}}const ge=["textarea"];function Se(ie,Ce){if(1&ie){const ve=s.EpF();s.TgZ(0,"textarea",2,3),s.NdJ("blur",function(){s.CHM(ve);const ct=s.oxw();return s.KtG(ct.confirm())}),s.qZA(),s.TgZ(2,"button",4),s.NdJ("click",function(){s.CHM(ve);const ct=s.oxw();return s.KtG(ct.confirm())}),s._UZ(3,"span",5),s.qZA()}}function ke(ie,Ce){if(1&ie&&(s.ynx(0),s._UZ(1,"span",8),s.BQk()),2&ie){const ve=Ce.$implicit;s.xp6(1),s.Q6J("nzType",ve)}}function Rt(ie,Ce){if(1&ie){const ve=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){s.CHM(ve);const ct=s.oxw();return s.KtG(ct.onClick())}),s.YNc(1,ke,2,1,"ng-container",7),s.qZA()}if(2&ie){const ve=s.oxw();s.Q6J("nzTooltipTitle",null===ve.tooltip?null:ve.tooltip||(null==ve.locale?null:ve.locale.edit)),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.icon)}}const Ft=["ellipsisContainer"],Mt=["expandable"],yt=["contentTemplate"];function Ct(ie,Ce){1&ie&&s.Hsn(0,0,["*ngIf","!content"])}function Lt(ie,Ce){if(1&ie&&(s.YNc(0,Ct,1,0,"ng-content",1),s._uU(1)),2&ie){const ve=Ce.content;s.Q6J("ngIf",!ve),s.xp6(1),s.hij(" ",ve," ")}}function rn(ie,Ce){}function Sn(ie,Ce){if(1&ie&&(s.ynx(0),s._uU(1),s.BQk()),2&ie){const ve=s.oxw(3);s.xp6(1),s.Oqu(ve.nzSuffix)}}const rt=function(ie){return{content:ie}};function Ye(ie,Ce){if(1&ie&&(s.ynx(0),s.YNc(1,rn,0,0,"ng-template",6),s.YNc(2,Sn,2,1,"ng-container",1),s.BQk()),2&ie){const ve=s.oxw(2),qe=s.MAs(1);s.xp6(1),s.Q6J("ngTemplateOutlet",qe)("ngTemplateOutletContext",s.VKq(3,rt,ve.nzContent)),s.xp6(1),s.Q6J("ngIf",ve.nzSuffix)}}function st(ie,Ce){if(1&ie&&(s.ynx(0),s._uU(1),s.BQk()),2&ie){const ve=s.oxw(3);s.xp6(1),s.Oqu(ve.ellipsisStr)}}function Ze(ie,Ce){if(1&ie&&(s.ynx(0),s._uU(1),s.BQk()),2&ie){const ve=s.oxw(3);s.xp6(1),s.Oqu(ve.nzSuffix)}}function Bt(ie,Ce){if(1&ie){const ve=s.EpF();s.TgZ(0,"a",9,10),s.NdJ("click",function(){s.CHM(ve);const ct=s.oxw(3);return s.KtG(ct.onExpand())}),s._uU(2),s.qZA()}if(2&ie){const ve=s.oxw(3);s.xp6(2),s.hij(" ",null==ve.locale?null:ve.locale.expand," ")}}function Jt(ie,Ce){if(1&ie&&(s._UZ(0,"span",null,7),s.YNc(2,st,2,1,"ng-container",1),s.YNc(3,Ze,2,1,"ng-container",1),s.YNc(4,Bt,3,1,"a",8)),2&ie){const ve=s.oxw(2);s.xp6(2),s.Q6J("ngIf",ve.isEllipsis),s.xp6(1),s.Q6J("ngIf",ve.nzSuffix),s.xp6(1),s.Q6J("ngIf",ve.nzExpandable&&ve.isEllipsis)}}function _n(ie,Ce){if(1&ie&&(s.ynx(0),s.YNc(1,Ye,3,5,"ng-container",4),s.YNc(2,Jt,5,3,"ng-template",null,5,s.W1O),s.BQk()),2&ie){const ve=s.MAs(3),qe=s.oxw();s.xp6(1),s.Q6J("ngIf",qe.expanded||!qe.hasOperationsWithEllipsis&&1===qe.nzEllipsisRows&&!qe.hasEllipsisObservers||qe.canCssEllipsis||qe.nzSuffix&&qe.expanded)("ngIfElse",ve)}}function On(ie,Ce){if(1&ie){const ve=s.EpF();s.TgZ(0,"nz-text-edit",11),s.NdJ("endEditing",function(ct){s.CHM(ve);const Zt=s.oxw();return s.KtG(Zt.onEndEditing(ct))})("startEditing",function(){s.CHM(ve);const ct=s.oxw();return s.KtG(ct.onStartEditing())}),s.qZA()}if(2&ie){const ve=s.oxw();s.Q6J("text",ve.nzContent)("icon",ve.nzEditIcon)("tooltip",ve.nzEditTooltip)}}function cn(ie,Ce){if(1&ie){const ve=s.EpF();s.TgZ(0,"nz-text-copy",12),s.NdJ("textCopy",function(ct){s.CHM(ve);const Zt=s.oxw();return s.KtG(Zt.onTextCopy(ct))}),s.qZA()}if(2&ie){const ve=s.oxw();s.Q6J("text",ve.copyText)("tooltips",ve.nzCopyTooltips)("icons",ve.nzCopyIcons)}}const wt=["*"];let Ve=(()=>{class ie{constructor(ve,qe,ct,Zt){this.host=ve,this.cdr=qe,this.clipboard=ct,this.i18n=Zt,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 U.x,this.icons=["copy","check"],this.textCopy=new s.vpe}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(ve){const{tooltips:qe,icons:ct}=ve;qe&&this.updateTooltips(),ct&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(!0),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const ve=this.text;this.textCopy.emit(ve),this.clipboard.copy(ve),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[ve,qe]=this.tooltips;this.copyTooltip=ve||this.locale?.copy,this.copedTooltip=qe||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[ve,qe]=this.icons;this.copyIcon=ve,this.copedIcon=qe,this.cdr.markForCheck()}}return ie.\u0275fac=function(ve){return new(ve||ie)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(i.TU),s.Y36(I.wi))},ie.\u0275cmp=s.Xpm({type:ie,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[s.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(ve,qe){1&ve&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return qe.onClick()}),s.YNc(1,ue,2,1,"ng-container",1),s.qZA()),2&ve&&(s.ekj("ant-typography-copy-success",qe.copied),s.Q6J("nzTooltipTitle",qe.copied?qe.copedTooltip:qe.copyTooltip),s.xp6(1),s.Q6J("nzStringTemplateOutlet",qe.copied?qe.copedIcon:qe.copyIcon))},dependencies:[S.Ls,k.SY,j,L.f],encapsulation:2,changeDetection:0}),ie})(),Be=(()=>{class ie{set textarea(ve){this.textarea$.next(ve)}constructor(ve,qe,ct,Zt,Cn){this.ngZone=ve,this.host=qe,this.cdr=ct,this.i18n=Zt,this.destroy$=Cn,this.editing=!1,this.icon="edit",this.startEditing=new s.vpe,this.endEditing=new s.vpe(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new w.X(null)}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,A.w)(ve=>ve?new M.y(qe=>this.ngZone.runOutsideAngular(()=>(0,e.R)(ve.nativeElement,"keydown").subscribe(qe))):R.E),(0,Z.R)(this.destroy$)).subscribe(ve=>{ve.keyCode!==P.hY&&ve.keyCode!==P.K5||this.ngZone.run(()=>{ve.keyCode===P.hY?this.onCancel():this.onEnter(ve),this.cdr.markForCheck()})}),this.textarea$.pipe((0,A.w)(ve=>ve?new M.y(qe=>this.ngZone.runOutsideAngular(()=>(0,e.R)(ve.nativeElement,"input").subscribe(qe))):R.E),(0,Z.R)(this.destroy$)).subscribe(ve=>{this.currentText=ve.target.value})}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)}onEnter(ve){ve.stopPropagation(),ve.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const ve=this.ngZone.isStable?(0,pe.D)(Promise.resolve()):this.ngZone.onStable.pipe((0,V.q)(1));this.ngZone.runOutsideAngular(()=>{ve.pipe((0,O.M)(this.textarea$),(0,Z.R)(this.destroy$)).subscribe(([,qe])=>{qe&&(qe.nativeElement.focus(),qe.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck())})})}}return ie.\u0275fac=function(ve){return new(ve||ie)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(I.wi),s.Y36(D.kn))},ie.\u0275cmp=s.Xpm({type:ie,selectors:[["nz-text-edit"]],viewQuery:function(ve,qe){if(1&ve&&(s.Gf(ge,5),s.Gf(F.rh,5)),2&ve){let ct;s.iGM(ct=s.CRH())&&(qe.textarea=ct.first),s.iGM(ct=s.CRH())&&(qe.autosizeDirective=ct.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],features:[s._Bn([D.kn])],decls:3,vars:2,consts:[[3,"ngIf","ngIfElse"],["notEditing",""],["nz-input","","nzAutosize","",3,"blur"],["textarea",""],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(ve,qe){if(1&ve&&(s.YNc(0,Se,4,0,"ng-template",0),s.YNc(1,Rt,2,2,"ng-template",null,1,s.W1O)),2&ve){const ct=s.MAs(2);s.Q6J("ngIf",qe.editing)("ngIfElse",ct)}},dependencies:[d.O5,S.Ls,k.SY,F.Zp,F.rh,j,L.f],encapsulation:2,changeDetection:0}),ie})(),Ne=(()=>{class ie{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}constructor(ve,qe,ct,Zt,Cn,at,Xe,it,Ot,Pt){this.nzConfigService=ve,this.host=qe,this.cdr=ct,this.viewContainerRef=Zt,this.renderer=Cn,this.platform=at,this.i18n=Xe,this.resizeService=Ot,this.directionality=Pt,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 s.vpe,this.nzCopy=new s.vpe,this.nzExpandChange=new s.vpe,this.nzOnEllipsis=new s.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 U.x,this.windowResizeSubscription=me.w0.EMPTY,this.document=it}onTextCopy(ve){this.nzCopy.emit(ve)}onStartEditing(){this.editing=!0}onEndEditing(ve){this.editing=!1,this.nzContentChange.emit(ve),this.nzContent===ve&&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,fe.GL)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,Q.h)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,Q.e)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const ve=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return ve.detectChanges(),{viewRef:ve,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(ve))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:ve,removeView:qe}=this.getOriginContentViewRef(),ct=[this.textCopyRef,this.textEditRef].filter(Ot=>Ot&&Ot.nativeElement).map(Ot=>Ot.nativeElement),Zt=this.getExpandableBtnElement();Zt&&ct.push(Zt);const{contentNodes:Cn,text:at,ellipsis:Xe}=(0,fe.L8)(this.host.nativeElement,this.nzEllipsisRows,ve.rootNodes,ct,this.ellipsisStr,this.nzSuffix);qe(),this.ellipsisText=at,Xe!==this.isEllipsis&&(this.isEllipsis=Xe,this.nzOnEllipsis.emit(Xe));const it=this.ellipsisContainer.nativeElement;for(;it.firstChild;)this.renderer.removeChild(it,it.firstChild);Cn.forEach(Ot=>{this.renderer.appendChild(it,Ot.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const ve=this.locale?this.locale.expand:"",qe=this.expandableBtnElementCache;if(!qe||qe.innerText===ve){const ct=this.document.createElement("a");ct.className="ant-typography-expand",ct.innerText=ve,this.expandableBtnElementCache=ct}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,Z.R)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,Z.R)(this.destroy$)).subscribe(ve=>{this.dir=ve,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(ve){const{nzCopyable:qe,nzEditable:ct,nzExpandable:Zt,nzEllipsis:Cn,nzContent:at,nzEllipsisRows:Xe,nzSuffix:it}=ve;(qe||ct||Zt||Cn||at||Xe||it)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}}return ie.\u0275fac=function(ve){return new(ve||ie)(s.Y36(ae.jY),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.s_b),s.Y36(s.Qsj),s.Y36(v.t4),s.Y36(I.wi),s.Y36(d.K0),s.Y36(D.rI),s.Y36(t.Is,8))},ie.\u0275cmp=s.Xpm({type:ie,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(ve,qe){if(1&ve&&(s.Gf(Be,5),s.Gf(Ve,5),s.Gf(Ft,5),s.Gf(Mt,5),s.Gf(yt,5)),2&ve){let ct;s.iGM(ct=s.CRH())&&(qe.textEditRef=ct.first),s.iGM(ct=s.CRH())&&(qe.textCopyRef=ct.first),s.iGM(ct=s.CRH())&&(qe.ellipsisContainer=ct.first),s.iGM(ct=s.CRH())&&(qe.expandableBtn=ct.first),s.iGM(ct=s.CRH())&&(qe.contentTemplate=ct.first)}},hostVars:26,hostBindings:function(ve,qe){2&ve&&(s.Udp("-webkit-line-clamp",qe.canCssEllipsis&&qe.nzEllipsisRows>1?qe.nzEllipsisRows:null),s.ekj("ant-typography",!qe.editing)("ant-typography-rtl","rtl"===qe.dir)("ant-typography-edit-content",qe.editing)("ant-typography-secondary","secondary"===qe.nzType)("ant-typography-warning","warning"===qe.nzType)("ant-typography-danger","danger"===qe.nzType)("ant-typography-success","success"===qe.nzType)("ant-typography-disabled",qe.nzDisabled)("ant-typography-ellipsis",qe.nzEllipsis&&!qe.expanded)("ant-typography-single-line",qe.nzEllipsis&&1===qe.nzEllipsisRows)("ant-typography-ellipsis-single-line",qe.canCssEllipsis&&1===qe.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",qe.canCssEllipsis&&qe.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:[s.TTD],ngContentSelectors:wt,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(ve,qe){1&ve&&(s.F$t(),s.YNc(0,Lt,2,2,"ng-template",null,0,s.W1O),s.YNc(2,_n,4,2,"ng-container",1),s.YNc(3,On,1,3,"nz-text-edit",2),s.YNc(4,cn,1,3,"nz-text-copy",3)),2&ve&&(s.xp6(2),s.Q6J("ngIf",!qe.editing),s.xp6(1),s.Q6J("ngIf",qe.nzEditable),s.xp6(1),s.Q6J("ngIf",qe.nzCopyable&&!qe.editing))},dependencies:[d.O5,d.tP,Ve,Be],encapsulation:2,changeDetection:0}),(0,re.gn)([(0,fe.yF)()],ie.prototype,"nzCopyable",void 0),(0,re.gn)([(0,fe.yF)()],ie.prototype,"nzEditable",void 0),(0,re.gn)([(0,fe.yF)()],ie.prototype,"nzDisabled",void 0),(0,re.gn)([(0,fe.yF)()],ie.prototype,"nzExpandable",void 0),(0,re.gn)([(0,fe.yF)()],ie.prototype,"nzEllipsis",void 0),(0,re.gn)([(0,ae.oS)()],ie.prototype,"nzCopyTooltips",void 0),(0,re.gn)([(0,ae.oS)()],ie.prototype,"nzCopyIcons",void 0),(0,re.gn)([(0,ae.oS)()],ie.prototype,"nzEditTooltip",void 0),(0,re.gn)([(0,ae.oS)()],ie.prototype,"nzEditIcon",void 0),(0,re.gn)([(0,ae.oS)(),(0,fe.Rn)()],ie.prototype,"nzEllipsisRows",void 0),ie})(),De=(()=>{class ie{}return ie.\u0275fac=function(ve){return new(ve||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[t.vT,d.ez,S.PV,k.cg,F.o7,I.YI,$,i.Iq,L.T,v.ud]}),ie})()},459:(It,be,a)=>{a.d(be,{N:()=>v});var t=a(5879),i=a(6814);let v=(()=>{class d{constructor(L,j){this.document=L,this.platformId=j,this.documentIsAccessible=(0,i.NF)(this.platformId)}static getCookieRegExp(L){const j=L.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+j+"|;\\s*"+j+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(L){try{return decodeURIComponent(L)}catch{return L}}check(L){return!!this.documentIsAccessible&&(L=encodeURIComponent(L),d.getCookieRegExp(L).test(this.document.cookie))}get(L){if(this.documentIsAccessible&&this.check(L)){L=encodeURIComponent(L);const $=d.getCookieRegExp(L).exec(this.document.cookie);return $[1]?d.safeDecodeURIComponent($[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const L={},j=this.document;return j.cookie&&""!==j.cookie&&j.cookie.split(";").forEach($=>{const[I,S]=$.split("=");L[d.safeDecodeURIComponent(I.replace(/^ /,""))]=d.safeDecodeURIComponent(S)}),L}set(L,j,$,I,S,F,k){if(!this.documentIsAccessible)return;if("number"==typeof $||$ instanceof Date||I||S||F||k)return void this.set(L,j,{expires:$,path:I,domain:S,secure:F,sameSite:k||"Lax"});let U=encodeURIComponent(L)+"="+encodeURIComponent(j)+";";const w=$||{};w.expires&&(U+="number"==typeof w.expires?"expires="+new Date((new Date).getTime()+1e3*w.expires*60*60*24).toUTCString()+";":"expires="+w.expires.toUTCString()+";"),w.path&&(U+="path="+w.path+";"),w.domain&&(U+="domain="+w.domain+";"),!1===w.secure&&"None"===w.sameSite&&(w.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${L} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),w.secure&&(U+="secure;"),w.sameSite||(w.sameSite="Lax"),U+="sameSite="+w.sameSite+";",this.document.cookie=U}delete(L,j,$,I,S="Lax"){this.documentIsAccessible&&this.set(L,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:j,domain:$,secure:I,sameSite:S})}deleteAll(L,j,$,I="Lax"){if(!this.documentIsAccessible)return;const S=this.getAll();for(const F in S)S.hasOwnProperty(F)&&this.delete(F,L,j,$,I)}}return d.\u0275fac=function(L){return new(L||d)(t.LFG(i.K0),t.LFG(t.Lbi))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},279:(It,be,a)=>{a.d(be,{Y:()=>I,s:()=>S});var t=a(5879),i=a(6814);function v(F,k){1&F&&t._UZ(0,"div",9)}function d(F,k){if(1&F&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&F){const U=t.oxw().$implicit;t.xp6(1),t.Oqu(U.description)}}function s(F,k){if(1&F&&(t.TgZ(0,"section",11),t._UZ(1,"ngx-json-viewer",12),t.qZA()),2&F){const U=t.oxw().$implicit,w=t.oxw();t.xp6(1),t.Q6J("json",U.value)("expanded",w.expanded)("depth",w.depth)("_currentDepth",w._currentDepth+1)}}const L=function(F){return["segment",F]},j=function(F,k){return{"segment-main":!0,expandable:F,expanded:k}};function $(F,k){if(1&F){const U=t.EpF();t.TgZ(0,"section",2)(1,"section",3),t.NdJ("click",function(){const e=t.CHM(U).$implicit,R=t.oxw();return t.KtG(R.toggle(e))}),t.YNc(2,v,1,0,"div",4),t.TgZ(3,"span",5),t._uU(4),t.qZA(),t.TgZ(5,"span",6),t._uU(6,": "),t.qZA(),t.YNc(7,d,2,1,"span",7),t.qZA(),t.YNc(8,s,2,4,"section",8),t.qZA()}if(2&F){const U=k.$implicit,w=t.oxw();t.Q6J("ngClass",t.VKq(6,L,"segment-type-"+U.type)),t.xp6(1),t.Q6J("ngClass",t.WLB(8,j,w.isExpandable(U),U.expanded)),t.xp6(1),t.Q6J("ngIf",w.isExpandable(U)),t.xp6(2),t.Oqu(U.key),t.xp6(3),t.Q6J("ngIf",!U.expanded||!w.isExpandable(U)),t.xp6(1),t.Q6J("ngIf",U.expanded&&w.isExpandable(U))}}let I=(()=>{class F{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(U=>{this.segments.push(this.parseKeyValue(U,this.json[U]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(U){return"object"===U.type||"array"===U.type}toggle(U){this.isExpandable(U)&&(U.expanded=!U.expanded)}parseKeyValue(U,w){const M={key:U,value:w,type:void 0,description:""+w,expanded:this.isExpanded()};switch(typeof M.value){case"number":M.type="number";break;case"boolean":M.type="boolean";break;case"function":M.type="function";break;case"string":M.type="string",M.description='"'+M.value+'"';break;case"undefined":M.type="undefined",M.description="undefined";break;case"object":null===M.value?(M.type="null",M.description="null"):Array.isArray(M.value)?(M.type="array",M.description="Array["+M.value.length+"] "+JSON.stringify(M.value)):M.value instanceof Date?M.type="date":(M.type="object",M.description="Object "+JSON.stringify(M.value))}return M}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(U){const w=new WeakMap;return function M(e,R){let pe,me;return"object"!=typeof e||null===e||e instanceof Boolean||e instanceof Date||e instanceof Number||e instanceof RegExp||e instanceof String?e:(pe=w.get(e),void 0!==pe?{$ref:pe}:(w.set(e,R),Array.isArray(e)?(me=[],e.forEach(function(Z,A){me[A]=M(Z,R+"["+A+"]")})):(me={},Object.keys(e).forEach(function(Z){me[Z]=M(e[Z],R+"["+JSON.stringify(Z)+"]")})),me))}(U,"$")}}return F.\u0275fac=function(U){return new(U||F)},F.\u0275cmp=t.Xpm({type:F,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(U,w){1&U&&(t.TgZ(0,"section",0),t.YNc(1,$,9,11,"section",1),t.qZA()),2&U&&(t.xp6(1),t.Q6J("ngForOf",w.segments))},dependencies:[i.mk,i.sg,i.O5,F],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),F})(),S=(()=>{class F{}return F.\u0275fac=function(U){return new(U||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[i.ez]}),F})()},7619:(It,be,a)=>{function v(D,re){(null==re||re>D.length)&&(re=D.length);for(var ae=0,Q=new Array(re);aeP});var L=function(){return"function"==typeof Symbol},j=function(D){return L()&&!!Symbol[D]},$=function(D){return j(D)?Symbol[D]:"@@"+D};L()&&!j("observable")&&(Symbol.observable=Symbol("observable"));var I=$("iterator"),S=$("observable"),F=$("species");function k(D,re){var ae=D[re];if(null!=ae){if("function"!=typeof ae)throw new TypeError(ae+" is not a function");return ae}}function U(D){var re=D.constructor;return void 0!==re&&null===(re=re[F])&&(re=void 0),void 0!==re?re:P}function M(D){M.log?M.log(D):setTimeout(function(){throw D})}function e(D){Promise.resolve().then(function(){try{D()}catch(re){M(re)}})}function R(D){var re=D._cleanup;if(void 0!==re&&(D._cleanup=void 0,re))try{if("function"==typeof re)re();else{var ae=k(re,"unsubscribe");ae&&ae.call(re)}}catch(Q){M(Q)}}function pe(D){D._observer=void 0,D._queue=void 0,D._state="closed"}function Z(D,re,ae){D._state="running";var Q=D._observer;try{var fe=k(Q,re);switch(re){case"next":fe&&fe.call(Q,ae);break;case"error":if(pe(D),!fe)throw ae;fe.call(Q,ae);break;case"complete":pe(D),fe&&fe.call(Q)}}catch(ue){M(ue)}"closed"===D._state?R(D):"running"===D._state&&(D._state="ready")}function A(D,re,ae){if("closed"!==D._state){if("buffering"===D._state)return void D._queue.push({type:re,value:ae});if("ready"!==D._state)return D._state="buffering",D._queue=[{type:re,value:ae}],void e(function(){return function me(D){var re=D._queue;if(re){D._queue=void 0,D._state="ready";for(var ae=0;ae1,Se=!1,Rt=arguments[1];return new ue(function(Ft){return fe.subscribe({next:function(Mt){var yt=!Se;if(Se=!0,!yt||ge)try{Rt=Q(Rt,Mt)}catch(Ct){return Ft.error(Ct)}else Rt=Mt},error:function(Mt){Ft.error(Mt)},complete:function(){if(!Se&&!ge)return Ft.error(new TypeError("Cannot reduce an empty sequence"));Ft.next(Rt),Ft.complete()}})})},re.concat=function(){for(var Q=this,fe=arguments.length,ue=new Array(fe),ge=0;ge=0&&Se.splice(yt,1),Rt()}});Se.push(Mt)},error:function(Ft){ge.error(Ft)},complete:function(){Rt()}});function Rt(){ke.closed&&0===Se.length&&ge.complete()}return function(){Se.forEach(function(Ft){return Ft.unsubscribe()}),ke.unsubscribe()}})},re[S]=function(){return this},D.from=function(Q){var fe="function"==typeof this?this:D;if(null==Q)throw new TypeError(Q+" is not an object");var ue=k(Q,S);if(ue){var ge=ue.call(Q);if(Object(ge)!==ge)throw new TypeError(ge+" is not an object");return function w(D){return D instanceof P}(ge)&&ge.constructor===fe?ge:new fe(function(Se){return ge.subscribe(Se)})}if(j("iterator")&&(ue=k(Q,I)))return new fe(function(Se){e(function(){if(!Se.closed){for(var Rt,ke=function t(D,re){var ae=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(ae)return(ae=ae.call(D)).next.bind(ae);if(Array.isArray(D)||(ae=function i(D,re){if(D){if("string"==typeof D)return v(D,re);var ae=Object.prototype.toString.call(D).slice(8,-1);if("Object"===ae&&D.constructor&&(ae=D.constructor.name),"Map"===ae||"Set"===ae)return Array.from(D);if("Arguments"===ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return v(D,re)}}(D))||re&&D&&"number"==typeof D.length){ae&&(D=ae);var Q=0;return function(){return Q>=D.length?{done:!0}:{done:!1,value:D[Q++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(ue.call(Q));!(Rt=ke()).done;)if(Se.next(Rt.value),Se.closed)return;Se.complete()}})});if(Array.isArray(Q))return new fe(function(Se){e(function(){if(!Se.closed){for(var ke=0;ke{It(It.s=7568)}]); \ No newline at end of file diff --git a/server/public/main.9b71388082538ab2.js b/server/public/main.9b71388082538ab2.js deleted file mode 100644 index 41bc6d6c9..000000000 --- a/server/public/main.9b71388082538ab2.js +++ /dev/null @@ -1,5043 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[179],{4265:(Ot,be,a)=>{a.d(be,{T6:()=>V,VD:()=>U,WE:()=>Q,Yt:()=>M,lC:()=>v,py:()=>L,rW:()=>i,s:()=>A,ve:()=>s,vq:()=>Y});var t=a(6337);function i(e,I,k){return{r:255*(0,t.sh)(e,255),g:255*(0,t.sh)(I,255),b:255*(0,t.sh)(k,255)}}function v(e,I,k){e=(0,t.sh)(e,255),I=(0,t.sh)(I,255),k=(0,t.sh)(k,255);var ge=Math.max(e,I,k),Ce=Math.min(e,I,k),Z=0,F=0,R=(ge+Ce)/2;if(ge===Ce)F=0,Z=0;else{var O=ge-Ce;switch(F=R>.5?O/(2-ge-Ce):O/(ge+Ce),ge){case e:Z=(I-k)/O+(I1&&(k-=1),k<1/6?e+6*k*(I-e):k<.5?I:k<2/3?e+(I-e)*(2/3-k)*6:e}function s(e,I,k){var ge,Ce,Z;if(e=(0,t.sh)(e,360),I=(0,t.sh)(I,100),k=(0,t.sh)(k,100),0===I)Ce=k,Z=k,ge=k;else{var F=k<.5?k*(1+I):k+I-k*I,R=2*k-F;ge=d(R,F,e+1/3),Ce=d(R,F,e),Z=d(R,F,e-1/3)}return{r:255*ge,g:255*Ce,b:255*Z}}function L(e,I,k){e=(0,t.sh)(e,255),I=(0,t.sh)(I,255),k=(0,t.sh)(k,255);var ge=Math.max(e,I,k),Ce=Math.min(e,I,k),Z=0,F=ge,R=ge-Ce,O=0===ge?0:R/ge;if(ge===Ce)Z=0;else{switch(ge){case e:Z=(I-k)/R+(I>16,g:(65280&e)>>8,b:255&e}}},1309:(Ot,be,a)=>{a.d(be,{R:()=>t});var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6379:(Ot,be,a)=>{a.d(be,{uA:()=>d});var t=a(4265),i=a(1309),v=a(6337);function d(U){var M={r:0,g:0,b:0},e=1,I=null,k=null,ge=null,Ce=!1,Z=!1;return"string"==typeof U&&(U=function N(U){if(0===(U=U.trim().toLowerCase()).length)return!1;var M=!1;if(i.R[U])U=i.R[U],M=!0;else if("transparent"===U)return{r:0,g:0,b:0,a:0,format:"name"};var e=S.rgb.exec(U);return e?{r:e[1],g:e[2],b:e[3]}:(e=S.rgba.exec(U))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=S.hsl.exec(U))?{h:e[1],s:e[2],l:e[3]}:(e=S.hsla.exec(U))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=S.hsv.exec(U))?{h:e[1],s:e[2],v:e[3]}:(e=S.hsva.exec(U))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=S.hex8.exec(U))?{r:(0,t.VD)(e[1]),g:(0,t.VD)(e[2]),b:(0,t.VD)(e[3]),a:(0,t.T6)(e[4]),format:M?"name":"hex8"}:(e=S.hex6.exec(U))?{r:(0,t.VD)(e[1]),g:(0,t.VD)(e[2]),b:(0,t.VD)(e[3]),format:M?"name":"hex"}:(e=S.hex4.exec(U))?{r:(0,t.VD)(e[1]+e[1]),g:(0,t.VD)(e[2]+e[2]),b:(0,t.VD)(e[3]+e[3]),a:(0,t.T6)(e[4]+e[4]),format:M?"name":"hex8"}:!!(e=S.hex3.exec(U))&&{r:(0,t.VD)(e[1]+e[1]),g:(0,t.VD)(e[2]+e[2]),b:(0,t.VD)(e[3]+e[3]),format:M?"name":"hex"}}(U)),"object"==typeof U&&(V(U.r)&&V(U.g)&&V(U.b)?(M=(0,t.rW)(U.r,U.g,U.b),Ce=!0,Z="%"===String(U.r).substr(-1)?"prgb":"rgb"):V(U.h)&&V(U.s)&&V(U.v)?(I=(0,v.JX)(U.s),k=(0,v.JX)(U.v),M=(0,t.WE)(U.h,I,k),Ce=!0,Z="hsv"):V(U.h)&&V(U.s)&&V(U.l)&&(I=(0,v.JX)(U.s),ge=(0,v.JX)(U.l),M=(0,t.ve)(U.h,I,ge),Ce=!0,Z="hsl"),Object.prototype.hasOwnProperty.call(U,"a")&&(e=U.a)),e=(0,v.Yq)(e),{ok:Ce,format:U.format||Z,r:Math.min(255,Math.max(M.r,0)),g:Math.min(255,Math.max(M.g,0)),b:Math.min(255,Math.max(M.b,0)),a:e}}var Q="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Y="[\\s|\\(]+(".concat(Q,")[,|\\s]+(").concat(Q,")[,|\\s]+(").concat(Q,")\\s*\\)?"),A="[\\s|\\(]+(".concat(Q,")[,|\\s]+(").concat(Q,")[,|\\s]+(").concat(Q,")[,|\\s]+(").concat(Q,")\\s*\\)?"),S={CSS_UNIT:new RegExp(Q),rgb:new RegExp("rgb"+Y),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+Y),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+Y),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function V(U){return!!S.CSS_UNIT.exec(String(U))}},6337:(Ot,be,a)=>{function t(Y,A){(function v(Y){return"string"==typeof Y&&-1!==Y.indexOf(".")&&1===parseFloat(Y)})(Y)&&(Y="100%");var S=function d(Y){return"string"==typeof Y&&-1!==Y.indexOf("%")}(Y);return Y=360===A?Y:Math.min(A,Math.max(0,parseFloat(Y))),S&&(Y=parseInt(String(Y*A),10)/100),Math.abs(Y-A)<1e-6?1:Y=360===A?(Y<0?Y%A+A:Y%A)/parseFloat(String(A)):Y%A/parseFloat(String(A))}function i(Y){return Math.min(1,Math.max(0,Y))}function s(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function L(Y){return Y<=1?"".concat(100*Number(Y),"%"):Y}function Q(Y){return 1===Y.length?"0"+Y:String(Y)}a.d(be,{FZ:()=>Q,JX:()=>L,V2:()=>i,Yq:()=>s,sh:()=>t})},3369:(Ot,be,a)=>{a.d(be,{G:()=>j});var t=a(5879),i=a(6814),v=a(4190),d=a(551),s=a(5695),L=a(7417),Q=a(5676),Y=a(7398),A=a(2181),S=a(313),N=a(2962),V=a(8125),U=a(3317),M=a(8091),e=a(2616);function I(me,re){if(1&me&&(t._UZ(0,"i",9),t.ALo(1,"entityColor"),t._uU(2)),2&me){const he=t.oxw().ngIf;t.Q6J("nzTwotoneColor",t.lcZ(1,2,"ClinicalTrial")),t.xp6(2),t.hij(" ",he.nctId," ")}}function k(me,re){if(1&me&&(t.TgZ(0,"cvc-link-tag",10),t._uU(1," View on clinicaltrials.gov "),t.qZA()),2&me){const he=t.oxw().ngIf;t.Q6J("href",he.url)}}function ge(me,re){if(1&me&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,I,3,4,"ng-template",null,3,t.W1O),t.YNc(4,k,2,1,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t._uU(8),t.qZA(),t.TgZ(9,"nz-descriptions-item",7),t._uU(10),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t._uU(12),t.qZA()()(),t.BQk()),2&me){const he=re.ngIf,Me=t.MAs(3),Oe=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",Me)("nzExtra",Oe),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(2),t.hij(" ",he.name," "),t.xp6(2),t.hij(" ",he.sourceCount," "),t.xp6(2),t.hij(" ",he.evidenceCount," ")}}let Ce=(()=>{class me{constructor(he){this.gql=he}ngOnInit(){if(null==this.clinicalTrialId)throw new Error("cvc-clinical-trial-popover requires valid clinicalTrialId input.");this.clinicalTrial$=this.gql.watch({clinicalTrialId:this.clinicalTrialId}).valueChanges.pipe((0,Y.U)(({data:he})=>he?.clinicalTrials.edges[0]?.node),(0,A.h)(Q.ep))}}return me.\u0275fac=function(he){return new(he||me)(t.Y36(S.UIR))},me.\u0275cmp=t.Xpm({type:me,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},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","Name","nzSpan","2"],["nzTitle","Sources","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],[3,"href"]],template:function(he,Me){1&he&&(t.TgZ(0,"div",0),t.YNc(1,ge,13,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&he&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,Me.clinicalTrial$)))},dependencies:[i.O5,N.bd,d.Ls,V.R7,V.uj,U.l,M.fM,e.a],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}"]}),me})();function Z(me,re){}function F(me,re){if(1&me&&(t.ynx(0),t.TgZ(1,"a",4),t.YNc(2,Z,0,0,"ng-template",5),t.qZA(),t.BQk()),2&me){const he=t.oxw(),Me=t.MAs(2);t.xp6(1),t.Q6J("routerLink",he.clinicalTrial.link),t.xp6(1),t.Q6J("ngTemplateOutlet",Me)}}function R(me,re){}function O(me,re){if(1&me&&t._UZ(0,"cvc-clinical-trial-popover",8),2&me){const he=t.oxw(2);t.Q6J("clinicalTrialId",he.clinicalTrial.id)}}function P(me,re){if(1&me&&(t.TgZ(0,"nz-tag",6),t.YNc(1,R,0,0,"ng-template",5),t.qZA(),t.YNc(2,O,1,1,"ng-template",null,7,t.W1O)),2&me){const he=t.MAs(3),Me=t.oxw(),Oe=t.MAs(6);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",he)("nzPopoverTrigger",Me.enablePopover?"hover":null),t.xp6(1),t.Q6J("ngTemplateOutlet",Oe)}}function x(me,re){}function de(me,re){if(1&me&&t.YNc(0,x,0,0,"ng-template",5),2&me){t.oxw();const he=t.MAs(2);t.Q6J("ngTemplateOutlet",he)}}function ue(me,re){if(1&me&&(t._UZ(0,"i",9),t.ALo(1,"entityColor"),t._uU(2)),2&me){const he=t.oxw();t.Q6J("nzTwotoneColor",t.lcZ(1,2,"ClinicalTrial")),t.xp6(2),t.hij(" ",he.clinicalTrial.nctId,"\n")}}let j=(()=>{class me{set clinicalTrial(he){if(!he)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=he}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}}return me.\u0275fac=function(he){return new(he||me)},me.\u0275cmp=t.Xpm({type:me,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["clinicalTrialPopover",""],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(he,Me){if(1&he&&(t.YNc(0,F,3,2,"ng-container",0),t.YNc(1,P,4,4,"ng-template",null,1,t.W1O),t.YNc(3,de,1,1,"ng-template",null,2,t.W1O),t.YNc(5,ue,3,4,"ng-template",null,3,t.W1O)),2&he){const Oe=t.MAs(4);t.Q6J("ngIf",Me.linked)("ngIfElse",Oe)}},dependencies:[i.O5,i.tP,v.rH,d.Ls,s.j,L.lU,Ce,e.a],styles:["[_nghost-%COMP%]{display:block}"]}),me})()},4605:(Ot,be,a)=>{a.d(be,{N:()=>V});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(6067),L=a(2524),Q=a(2962),Y=a(8125),A=a(551),S=a(5879);let N=(()=>{class U{}return U.\u0275fac=function(e){return new(e||U)},U.\u0275mod=S.oAB({type:U}),U.\u0275inj=S.cJS({imports:[t.ez,Q.vh,A.PV,Y.q6,s.X,L.s]}),U})(),V=(()=>{class U{}return U.\u0275fac=function(e){return new(e||U)},U.\u0275mod=S.oAB({type:U}),U.\u0275inj=S.cJS({imports:[t.ez,i.Bz,A.PV,v.X,d.$6,N,L.s]}),U})()},2851:(Ot,be,a)=>{a.d(be,{I:()=>F});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(2962),Y=a(8125),A=a(551),S=a(2392),N=a(3317),V=a(8091),U=a(5869);function M(R,O){if(1&R&&(d._UZ(0,"i",12),d._uU(1),d.ALo(2,"truncate")),2&R){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",d.xi3(2,1,P.name,50)," ")}}function e(R,O){if(1&R&&(d.TgZ(0,"cvc-link-tag",14),d._uU(1),d.qZA()),2&R){const P=d.oxw(2).ngIf;d.Q6J("href",P.diseaseUrl),d.xp6(1),d.hij(" DOID: ",P.doid," ")}}function I(R,O){if(1&R&&d.YNc(0,e,2,2,"cvc-link-tag",13),2&R){const P=d.oxw().ngIf,x=d.MAs(7);d.Q6J("ngIf",P.doid)("ngIfElse",x)}}function k(R,O){1&R&&(d.TgZ(0,"span",15),d._uU(1,"No DOID"),d.qZA())}function ge(R,O){if(1&R&&(d.TgZ(0,"nz-descriptions-item",16),d._uU(1),d.qZA()),2&R){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",P.name," ")}}function Ce(R,O){if(1&R&&(d.TgZ(0,"nz-descriptions-item",17),d._uU(1),d.qZA()),2&R){const P=d.oxw().ngIf;d.xp6(1),d.hij(" ",P.diseaseAliases.join(", ")," ")}}function Z(R,O){if(1&R&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,M,3,4,"ng-template",null,3,d.W1O),d.YNc(4,I,1,2,"ng-template",null,4,d.W1O),d.YNc(6,k,2,0,"ng-template",null,5,d.W1O),d.TgZ(8,"nz-descriptions",6),d.YNc(9,ge,2,1,"nz-descriptions-item",7),d.YNc(10,Ce,2,1,"nz-descriptions-item",8),d.TgZ(11,"nz-descriptions-item",9),d._uU(12),d.qZA(),d.TgZ(13,"nz-descriptions-item",10),d._uU(14),d.qZA(),d.TgZ(15,"nz-descriptions-item",11),d._uU(16),d.qZA()()(),d.BQk()),2&R){const P=O.ngIf,x=d.MAs(3),de=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",x)("nzExtra",de),d.xp6(7),d.Q6J("nzColumn",1),d.xp6(1),d.Q6J("ngIf",P.name.length>50),d.xp6(1),d.Q6J("ngIf",P.diseaseAliases.length>0),d.xp6(2),d.hij(" ",P.assertionCount," "),d.xp6(2),d.hij(" ",P.evidenceItemCount," "),d.xp6(2),d.hij(" ",P.molecularProfileCount," ")}}let F=(()=>{class R{constructor(P){this.gql=P}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,i.U)(({data:P})=>P?.diseasePopover),(0,v.h)(t.ep))}}return R.\u0275fac=function(P){return new(P||R)(d.Y36(s.k7O))},R.\u0275cmp=d.Xpm({type:R,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noDoid",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Molecular Profiles","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(P,x){1&P&&(d.TgZ(0,"div",0),d.YNc(1,Z,17,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&P&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,x.disease$)))},dependencies:[L.O5,Q.bd,Y.R7,Y.uj,A.Ls,S.ZU,N.l,V.fM,U.W],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}"]}),R})()},5687:(Ot,be,a)=>{a.d(be,{t:()=>A});var t=a(6814),i=a(2962),v=a(8125),d=a(551),s=a(6067),L=a(2392),Q=a(2524),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,i.vh,v.q6,d.PV,L.ZJ,Q.s,s.X]}),S})()},9775:(Ot,be,a)=>{a.d(be,{n:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),Q=a(551),Y=a(2851),A=a(5869);function S(F,R){}function N(F,R){if(1&F&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,S,0,0,"ng-template",5),i.qZA(),i.BQk()),2&F){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.disease.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function V(F,R){}function U(F,R){if(1&F&&i._UZ(0,"cvc-disease-popover",8),2&F){const O=i.oxw(2);i.Q6J("diseaseId",O.disease.id)}}function M(F,R){if(1&F){const O=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzOnClose",function(x){i.CHM(O);const de=i.oxw();return i.KtG(de.itemClosed(x))}),i.YNc(1,V,0,0,"ng-template",5),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,7,i.W1O)}if(2&F){const O=i.MAs(3),P=i.oxw(),x=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",x)}}function e(F,R){}function I(F,R){if(1&F&&i.YNc(0,e,0,0,"ng-template",5),2&F){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function k(F,R){if(1&F&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&F){const O=i.oxw(2);i.xp6(1),i.hij(" ",i.xi3(2,1,O.disease.name,27)," ")}}function ge(F,R){if(1&F&&i._uU(0),2&F){const O=i.oxw(2);i.hij(" ",O.disease.name," ")}}function Ce(F,R){if(1&F&&(i._UZ(0,"i",9),i.YNc(1,k,3,4,"ng-container",0),i.YNc(2,ge,1,1,"ng-template",null,10,i.W1O)),2&F){const O=i.MAs(3),P=i.oxw();i.xp6(1),i.Q6J("ngIf",P.truncateLongName)("ngIfElse",O)}}let Z=(()=>{class F extends t.a{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(O){if(!O)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=O}get disease(){return this._disease}idFunction(){return this.disease.id}}return F.\u0275fac=function(){let R;return function(P){return(R||(R=i.n5z(F)))(P||F)}}(),F.\u0275cmp=i.Xpm({type:F,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["diseasePopover",""],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["fullName",""]],template:function(O,P){if(1&O&&(i.YNc(0,N,3,2,"ng-container",0),i.YNc(1,M,4,5,"ng-template",null,1,i.W1O),i.YNc(3,I,1,1,"ng-template",null,2,i.W1O),i.YNc(5,Ce,4,2,"ng-template",null,3,i.W1O)),2&O){const x=i.MAs(4);i.Q6J("ngIf",P.linked)("ngIfElse",x)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,Q.Ls,Y.I,A.W],encapsulation:2,changeDetection:0}),F})()},3396:(Ot,be,a)=>{a.d(be,{Q:()=>A});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(551),L=a(5687),Q=a(2524),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,i.Bz,v.X,d.$6,s.PV,Q.s,L.t]}),S})()},8213:(Ot,be,a)=>{a.d(be,{_:()=>yt});var t=a(7398),i=a(2181),v=a(5676),d=a(5879),s=a(313),L=a(6814),Q=a(4190),Y=a(551),A=a(2962),S=a(95),N=a(8125),V=a(5695),U=a(2574),M=a(2392),e=a(4770),I=a(9775),k=a(3897),ge=a(4138),Ce=a(2384),Z=a(2606),F=a(5095),R=a(8091),O=a(6967),P=a(2616);function x(je,Ut){if(1&je&&(d.ynx(0),d._UZ(1,"i",17),d.ALo(2,"entityColor"),d._uU(3),d.BQk()),2&je){const Xt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("nzTwotoneColor",d.lcZ(2,2,"EvidenceItem")),d.xp6(2),d.hij(" ",Xt.name," ")}}function de(je,Ut){if(1&je&&d._UZ(0,"cvc-status-tag",18),2&je){const Xt=d.oxw(2).ngIf;d.Q6J("status",Xt.status)}}function ue(je,Ut){1&je&&(d.TgZ(0,"nz-space"),d.YNc(1,x,4,4,"ng-container",15),d.YNc(2,de,1,1,"cvc-status-tag",16),d.qZA())}function j(je,Ut){if(1&je&&d._UZ(0,"cvc-molecular-profile-tag",19),2&je){const Xt=d.oxw().ngIf;d.Q6J("molecularProfile",Xt.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function me(je,Ut){if(1&je&&(d.ynx(0),d._uU(1),d.BQk()),2&je){const Xt=Ut.ngIf;d.xp6(1),d.hij(" ",Xt," ")}}function re(je,Ut){if(1&je&&(d.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",21),d._UZ(2,"cvc-mp-tag-name",22),d.qZA(),d.TgZ(3,"nz-descriptions-item",23),d._UZ(4,"cvc-source-tag",24),d.qZA()()),2&je){const Xt=d.oxw().ngIf;d.Q6J("nzColumn",1),d.xp6(2),d.Q6J("nameSegments",Xt.molecularProfile.parsedName)("enablePopover",!1),d.xp6(2),d.Q6J("source",Xt.source)("enablePopover",!1)}}function he(je,Ut){if(1&je&&(d.ynx(0),d._UZ(1,"cvc-disease-tag",35),d.BQk()),2&je){const Xt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("enablePopover",!1)("disease",Xt.disease)("truncateLongName",!0)}}function Me(je,Ut){1&je&&d._uU(0," N/A ")}function Oe(je,Ut){if(1&je&&(d.TgZ(0,"span"),d._UZ(1,"cvc-therapy-tag",38),d.qZA()),2&je){const Xt=Ut.$implicit;d.xp6(1),d.Q6J("enablePopover",!1)("therapy",Xt)("truncateLongName",!0)}}function kt(je,Ut){if(1&je&&(d.ynx(0),d._uU(1),d.ALo(2,"titlecase"),d.BQk()),2&je){const Xt=d.oxw(3).ngIf;d.xp6(1),d.hij(" ",d.lcZ(2,1,Xt.therapyInteractionType)," ")}}function It(je,Ut){if(1&je&&(d.TgZ(0,"nz-descriptions-item",36),d.YNc(1,Oe,2,3,"span",37),d.YNc(2,kt,3,3,"ng-container",1),d.qZA()),2&je){const Xt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("ngForOf",Xt.therapies),d.xp6(1),d.Q6J("ngIf",Xt.therapies.length>1)}}function Tt(je,Ut){if(1&je&&(d.TgZ(0,"span"),d._UZ(1,"cvc-phenotype-tag",40),d.qZA()),2&je){const Xt=Ut.$implicit;d.xp6(1),d.Q6J("enablePopover",!1)("phenotype",Xt)}}function gt(je,Ut){if(1&je&&(d.TgZ(0,"nz-descriptions-item",39),d.YNc(1,Tt,2,2,"span",37),d.qZA()),2&je){const Xt=d.oxw(2).ngIf;d.xp6(1),d.Q6J("ngForOf",Xt.phenotypes)}}function _t(je,Ut){if(1&je&&(d.TgZ(0,"nz-descriptions",20)(1,"nz-descriptions-item",25),d._uU(2),d.qZA(),d.TgZ(3,"nz-descriptions-item",26),d._uU(4),d.ALo(5,"evidenceEnumDisplay"),d.qZA(),d.TgZ(6,"nz-descriptions-item",27),d._uU(7),d.ALo(8,"evidenceEnumDisplay"),d.qZA(),d.TgZ(9,"nz-descriptions-item",28),d._uU(10),d.ALo(11,"evidenceEnumDisplay"),d.qZA(),d.TgZ(12,"nz-descriptions-item",29),d._uU(13),d._UZ(14,"i",30),d.qZA(),d.TgZ(15,"nz-descriptions-item",31),d.YNc(16,he,2,3,"ng-container",9),d.YNc(17,Me,1,0,"ng-template",null,32,d.W1O),d.qZA(),d.YNc(19,It,3,2,"nz-descriptions-item",33),d.YNc(20,gt,2,1,"nz-descriptions-item",34),d.qZA()),2&je){const Xt=d.MAs(18),_n=d.oxw().ngIf;d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",_n.evidenceLevel," "),d.xp6(2),d.hij(" ",d.lcZ(5,10,_n.evidenceType)," "),d.xp6(3),d.hij(" ",d.lcZ(8,12,_n.evidenceDirection)," "),d.xp6(3),d.hij(" ",d.lcZ(11,14,_n.significance)," "),d.xp6(3),d.hij(" ",_n.evidenceRating,""),d.xp6(3),d.Q6J("ngIf",_n.disease)("ngIfElse",Xt),d.xp6(3),d.Q6J("ngIf",_n.therapies.length>0),d.xp6(1),d.Q6J("ngIf",_n.phenotypes.length>0)}}function Ft(je,Ut){if(1&je&&(d.TgZ(0,"a",41)(1,"nz-tag",42),d._UZ(2,"i",43),d._uU(3),d.qZA()()),2&je){const Xt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Xt.id,"/flags"),d.xp6(3),d.hij(" Flags (",Xt.flags.totalCount,") ")}}function rn(je,Ut){if(1&je&&(d.TgZ(0,"a",41)(1,"nz-tag",44),d._UZ(2,"i",45),d._uU(3),d.qZA()()),2&je){const Xt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Xt.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",Xt.revisions.totalCount,") ")}}function bn(je,Ut){if(1&je&&(d.TgZ(0,"a",41)(1,"nz-tag",46),d._UZ(2,"i",47),d._uU(3),d.qZA()()),2&je){const Xt=d.oxw().ngIf;d.MGl("routerLink","/evidence/",Xt.id,"/comments"),d.xp6(3),d.hij(" Comments (",Xt.comments.totalCount,") ")}}function et(je,Ut){if(1&je&&(d.ynx(0),d.TgZ(1,"nz-card",3),d.YNc(2,ue,3,0,"ng-template",null,4,d.W1O),d.YNc(4,j,1,3,"ng-template",null,5,d.W1O),d.TgZ(6,"nz-row")(7,"nz-col",6)(8,"div",7)(9,"p",8),d.YNc(10,me,2,1,"ng-container",9),d.qZA()()()(),d.TgZ(11,"nz-space",10),d.YNc(12,re,5,5,"nz-descriptions",11),d.YNc(13,_t,21,16,"nz-descriptions",11),d.qZA(),d.TgZ(14,"nz-row",12)(15,"nz-col",6)(16,"nz-space",13),d.YNc(17,Ft,4,2,"a",14),d.YNc(18,rn,4,2,"a",14),d.YNc(19,bn,4,2,"a",14),d.qZA()()()(),d.BQk()),2&je){const Xt=Ut.ngIf,_n=d.MAs(3),On=d.MAs(5);d.oxw();const Jt=d.MAs(4);d.xp6(1),d.Q6J("nzTitle",_n)("nzExtra",On),d.xp6(8),d.Q6J("nzEllipsisRows",4),d.xp6(1),d.Q6J("ngIf",Xt.description)("ngIfElse",Jt)}}function Re(je,Ut){1&je&&d._uU(0," Evidence item has not been provided a description.\n")}let yt=(()=>{class je{constructor(Xt){this.gql=Xt}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,t.U)(({data:Xt})=>Xt?.evidenceItem),(0,i.h)(v.ep))}}return je.\u0275fac=function(Xt){return new(Xt||je)(d.Y36(s.Ybm))},je.\u0275cmp=d.Xpm({type:je,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDescription",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["molecularProfile",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["noDisease",""],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(Xt,_n){1&Xt&&(d.TgZ(0,"div",0),d.YNc(1,et,20,5,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA(),d.YNc(3,Re,1,0,"ng-template",null,2,d.W1O)),2&Xt&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,_n.evidence$)))},dependencies:[L.sg,L.O5,Q.rH,Y.Ls,A.bd,S.t3,S.SK,N.R7,N.uj,V.j,U.NU,U.$1,M.ZU,e.T,I.n,k.i,ge.T,Ce.h,Z.p,F.C,L.rS,R.fM,O.Do,P.a],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}"]}),je})()},1855:(Ot,be,a)=>{a.d(be,{f:()=>Ce});var t=a(6814),i=a(2962),v=a(95),d=a(8125),s=a(4190),L=a(5695),Q=a(3396),Y=a(3043),A=a(2574),S=a(551),N=a(2524),V=a(8641),U=a(2655),M=a(2392),e=a(9858),I=a(8527),k=a(6061),ge=a(5879);let Ce=(()=>{class Z{}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275mod=ge.oAB({type:Z}),Z.\u0275inj=ge.cJS({imports:[t.ez,s.Bz,S.PV,i.vh,v.Jb,d.q6,L.X,A.zf,M.ZJ,N.s,k.N,Q.Q,Y.y,V.s,U.x,I.u,e.r]}),Z})()},1598:(Ot,be,a)=>{a.d(be,{Q:()=>O});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(4190),Y=a(2962),A=a(95),S=a(8125),N=a(5695),V=a(551),U=a(2574),M=a(8091),e=a(2616);function I(P,x){if(1&P&&(d._UZ(0,"i",11),d.ALo(1,"entityColor"),d._uU(2)),2&P){const de=d.oxw().ngIf;d.Q6J("nzTwotoneColor",d.lcZ(1,2,"Gene")),d.xp6(2),d.hij(" ",de.officialName," ")}}function k(P,x){if(1&P&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&P){const de=x.$implicit;d.xp6(1),d.Oqu(de)}}function ge(P,x){if(1&P&&(d.TgZ(0,"nz-descriptions-item",12),d.YNc(1,k,2,1,"nz-tag",13),d.qZA()),2&P){const de=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",de.geneAliases)}}function Ce(P,x){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",15),d._UZ(2,"i",16),d._uU(3),d.qZA()()),2&P){const de=d.oxw().ngIf;d.MGl("routerLink","/genes/",de.id,"/flags"),d.xp6(3),d.hij(" Flags (",de.flags.totalCount,") ")}}function Z(P,x){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",17),d._UZ(2,"i",18),d._uU(3),d.qZA()()),2&P){const de=d.oxw().ngIf;d.MGl("routerLink","/genes/",de.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",de.revisions.totalCount,") ")}}function F(P,x){if(1&P&&(d.TgZ(0,"a",14)(1,"nz-tag",19),d._UZ(2,"i",20),d._uU(3),d.qZA()()),2&P){const de=d.oxw().ngIf;d.MGl("routerLink","/genes/",de.id,"/comments"),d.xp6(3),d.hij(" Comments (",de.comments.totalCount,") ")}}function R(P,x){if(1&P&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,I,3,4,"ng-template",null,3,d.W1O),d.TgZ(4,"nz-descriptions",4),d.YNc(5,ge,2,1,"nz-descriptions-item",5),d.TgZ(6,"nz-descriptions-item",6),d._uU(7),d.qZA()(),d.TgZ(8,"nz-row",7)(9,"nz-col",8)(10,"nz-space",9),d.YNc(11,Ce,4,2,"a",10),d.YNc(12,Z,4,2,"a",10),d.YNc(13,F,4,2,"a",10),d.qZA()()()(),d.BQk()),2&P){const de=x.ngIf,ue=d.MAs(3);d.xp6(1),d.Q6J("nzTitle",ue),d.xp6(3),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",de.geneAliases.length>0),d.xp6(2),d.hij(" ",de.variants.totalCount," ")}}let O=(()=>{class P{constructor(de){this.gql=de}ngOnInit(){if(null==this.geneId)throw new Error("cvc-gene-popover requires valid geneId input.");this.gene$=this.gql.watch({geneId:this.geneId}).valueChanges.pipe((0,i.U)(({data:de})=>de?.gene),(0,v.h)(t.ep))}}return P.\u0275fac=function(de){return new(de||P)(d.Y36(s.rJ8))},P.\u0275cmp=d.Xpm({type:P,selectors:[["cvc-gene-popover"]],inputs:{geneId:"geneId"},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","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[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(de,ue){1&de&&(d.TgZ(0,"div",0),d.YNc(1,R,14,4,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&de&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,ue.gene$)))},dependencies:[L.sg,L.O5,Q.rH,Y.bd,A.t3,A.SK,S.R7,S.uj,N.j,V.Ls,U.NU,U.$1,M.fM,e.a],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}"]}),P})()},9021:(Ot,be,a)=>{a.d(be,{w:()=>N});var t=a(6814),i=a(4190),v=a(2524),d=a(2962),s=a(8125),L=a(95),Q=a(551),Y=a(2574),A=a(5695),S=a(5879);let N=(()=>{class V{}return V.\u0275fac=function(M){return new(M||V)},V.\u0275mod=S.oAB({type:V}),V.\u0275inj=S.cJS({imports:[t.ez,i.Bz,d.vh,L.Jb,s.q6,A.X,Q.PV,Y.zf,v.s]}),V})()},4121:(Ot,be,a)=>{a.d(be,{H:()=>O});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),Q=a(7417),Y=a(551),A=a(1598),S=a(3103),N=a(5869),V=a(2616);function U(P,x){}function M(P,x){if(1&P&&(v.ynx(0),v.TgZ(1,"a",4),v.YNc(2,U,0,0,"ng-template",5),v.qZA(),v.BQk()),2&P){const de=v.oxw(),ue=v.MAs(2);v.xp6(1),v.Q6J("routerLink",de.gene.link),v.xp6(1),v.Q6J("ngTemplateOutlet",ue)}}function e(P,x){}function I(P,x){if(1&P&&v._UZ(0,"cvc-gene-popover",8),2&P){const de=v.oxw(2);v.Q6J("geneId",de.gene.id)}}function k(P,x){if(1&P){const de=v.EpF();v.TgZ(0,"nz-tag",6),v.NdJ("nzOnClose",function(j){v.CHM(de);const me=v.oxw();return v.KtG(me.itemClosed(j))}),v.YNc(1,e,0,0,"ng-template",5),v.qZA(),v.YNc(2,I,1,1,"ng-template",null,7,v.W1O)}if(2&P){const de=v.MAs(3),ue=v.oxw(),j=v.MAs(6);v.Q6J("nzPopoverMouseEnterDelay",ue.onCloseClicked?0:.5)("nzPopoverContent",de)("nzPopoverTrigger",ue.enablePopover?"hover":null)("nzMode",ue.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",j)}}function ge(P,x){}function Ce(P,x){if(1&P&&v.YNc(0,ge,0,0,"ng-template",5),2&P){v.oxw();const de=v.MAs(2);v.Q6J("ngTemplateOutlet",de)}}function Z(P,x){if(1&P&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&P){const de=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,de.gene.name,12)," ")}}function F(P,x){if(1&P&&v._uU(0),2&P){const de=v.oxw(2);v.hij(" ",de.gene.name," ")}}function R(P,x){if(1&P&&(v.TgZ(0,"cvc-icon-badges",9),v._UZ(1,"i",10),v.ALo(2,"entityColor"),v.qZA(),v.YNc(3,Z,3,4,"ng-container",0),v.YNc(4,F,1,1,"ng-template",null,11,v.W1O)),2&P){const de=v.MAs(5),ue=v.oxw();v.Q6J("flagged",ue.gene.flagged)("entityColor",ue.iconColor),v.xp6(1),v.Q6J("nzTwotoneColor",v.lcZ(2,5,"Gene")),v.xp6(2),v.Q6J("ngIf",ue.truncateLongName)("ngIfElse",de)}}let O=(()=>{class P extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,i.f)("Gene")}idFunction(){return this.gene.id}ngOnInit(){if(super.ngOnInit(),void 0===this.gene)throw new Error("cvc-gene-tag requires LinkableGene input, none supplied.")}}return P.\u0275fac=function(de){return new(de||P)},P.\u0275cmp=v.Xpm({type:P,selectors:[["cvc-gene-tag"]],inputs:{gene:"gene",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["genePopover",""],[3,"geneId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-gene","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(de,ue){if(1&de&&(v.YNc(0,M,3,2,"ng-container",0),v.YNc(1,k,4,5,"ng-template",null,1,v.W1O),v.YNc(3,Ce,1,1,"ng-template",null,2,v.W1O),v.YNc(5,R,6,7,"ng-template",null,3,v.W1O)),2&de){const j=v.MAs(4);v.Q6J("ngIf",ue.linked)("ngIfElse",j)}},dependencies:[d.O5,d.tP,s.rH,L.j,Q.lU,Y.Ls,A.Q,S.b,N.W,V.a],encapsulation:2,changeDetection:0}),P})()},5956:(Ot,be,a)=>{a.d(be,{U:()=>N});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(9021),Q=a(2524),Y=a(3640),A=a(3146),S=a(5879);let N=(()=>{class V{}return V.\u0275fac=function(M){return new(M||V)},V.\u0275mod=S.oAB({type:V}),V.\u0275inj=S.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,Y.mS,Q.s,L.w,A.C]}),V})()},156:(Ot,be,a)=>{a.d(be,{_:()=>ue});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(4190),Y=a(2962),A=a(95),S=a(8125),N=a(5695),V=a(551),U=a(2574),M=a(1887),e=a(5095),I=a(8091);function k(j,me){if(1&j&&(d._UZ(0,"i",16),d._uU(1)),2&j){const re=d.oxw().ngIf;d.xp6(1),d.hij(" ",re.name," ")}}function ge(j,me){if(1&j&&(d.TgZ(0,"nz-descriptions-item",17),d._uU(1),d.qZA()),2&j){const re=d.oxw().ngIf;d.xp6(1),d.hij(" ",re.evidenceItems.totalCount," ")}}function Ce(j,me){if(1&j&&(d.TgZ(0,"nz-descriptions-item",18),d._uU(1),d.qZA()),2&j){const re=d.oxw().ngIf;d.xp6(1),d.hij(" ",re.assertions.totalCount," ")}}function Z(j,me){if(1&j&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&j){const re=me.$implicit;d.xp6(1),d.Oqu(re)}}function F(j,me){if(1&j&&(d.ynx(0),d.TgZ(1,"cvc-tag-list"),d.YNc(2,Z,2,1,"nz-tag",19),d.qZA(),d.BQk()),2&j){const re=d.oxw().ngIf;d.xp6(2),d.Q6J("ngForOf",re.molecularProfileAliases)}}function R(j,me){1&j&&(d.TgZ(0,"span",20),d._uU(1,"None specified"),d.qZA())}function O(j,me){if(1&j&&(d.TgZ(0,"a",21)(1,"nz-tag",22),d._UZ(2,"i",23),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",re.id,"/flags"),d.xp6(3),d.hij(" Flags (",re.flags.totalCount,") ")}}function P(j,me){if(1&j&&(d.TgZ(0,"a",21)(1,"nz-tag",24),d._UZ(2,"i",25),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",re.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",re.revisions.totalCount,") ")}}function x(j,me){if(1&j&&(d.TgZ(0,"a",21)(1,"nz-tag",26),d._UZ(2,"i",27),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/molecular-profiles/",re.id,"/comments"),d.xp6(3),d.hij(" Comments (",re.comments.totalCount,") ")}}function de(j,me){if(1&j&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,k,2,1,"ng-template",null,3,d.W1O),d.TgZ(4,"nz-descriptions",4)(5,"nz-descriptions-item",5),d._UZ(6,"cvc-mp-tag-name",6),d.qZA(),d.YNc(7,ge,2,1,"nz-descriptions-item",7),d.YNc(8,Ce,2,1,"nz-descriptions-item",8),d.TgZ(9,"nz-descriptions-item",9),d.YNc(10,F,3,1,"ng-container",10),d.YNc(11,R,2,0,"ng-template",null,11,d.W1O),d.qZA()(),d.TgZ(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),d.YNc(16,O,4,2,"a",15),d.YNc(17,P,4,2,"a",15),d.YNc(18,x,4,2,"a",15),d.qZA()()()(),d.BQk()),2&j){const re=me.ngIf,he=d.MAs(3),Me=d.MAs(12);d.xp6(1),d.Q6J("nzTitle",he),d.xp6(3),d.Q6J("nzColumn",2),d.xp6(2),d.Q6J("nameSegments",re.parsedName)("enablePopover",!1),d.xp6(1),d.Q6J("ngIf",re.evidenceItems.totalCount>0),d.xp6(1),d.Q6J("ngIf",re.assertions.totalCount>0),d.xp6(2),d.Q6J("ngIf",re.molecularProfileAliases.length>0)("ngIfElse",Me)}}let ue=(()=>{class j{constructor(re){this.gql=re}ngOnInit(){if(void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile ID into the molecular profile popover component.");this.molecularProfile$=this.gql.watch({molecularProfileId:this.molecularProfileId}).valueChanges.pipe((0,i.U)(({data:re})=>re?.molecularProfile),(0,v.h)(t.ep))}}return j.\u0275fac=function(re){return new(re||j)(d.Y36(s.DkJ))},j.\u0275cmp=d.Xpm({type:j,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},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","MP Expression","nzSpan","2"],[3,"nameSegments","enablePopover"],["nzTitle","Evidence Items","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2",4,"ngIf"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["noAliases",""],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:molecularprofile"],["nzTitle","Evidence Items","nzSpan","2"],["nzTitle","Assertions","nzSpan","2"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[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(re,he){1&re&&(d.TgZ(0,"div",0),d.YNc(1,de,19,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&re&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,he.molecularProfile$)))},dependencies:[L.sg,L.O5,Q.rH,Y.bd,A.t3,A.SK,S.R7,S.uj,N.j,V.Ls,U.NU,U.$1,M.$,e.C,I.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}"]}),j})()},2064:(Ot,be,a)=>{a.d(be,{_:()=>M});var t=a(6814),i=a(4190),v=a(2962),d=a(95),s=a(8125),L=a(5695),Q=a(551),Y=a(2574),A=a(5956),S=a(6067),N=a(9858),V=a(366),U=a(5879);let M=(()=>{class e{}return e.\u0275fac=function(k){return new(k||e)},e.\u0275mod=U.oAB({type:e}),e.\u0275inj=U.cJS({imports:[t.ez,i.Bz,v.vh,d.Jb,s.q6,L.X,Q.PV,Y.zf,A.U,S.X,V.$,N.r]}),e})()},5095:(Ot,be,a)=>{a.d(be,{C:()=>U});var t=a(5879),i=a(6814),v=a(9408),d=a(4121);const s=["*"];let L=(()=>{class M{constructor(){}}return M.\u0275fac=function(I){return new(I||M)},M.\u0275cmp=t.Xpm({type:M,selectors:[["cvc-tag-group"]],ngContentSelectors:s,decls:1,vars:0,template:function(I,k){1&I&&(t.F$t(),t.Hsn(0))},styles:["[_nghost-%COMP%] >*:first-child nz-tag{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}[_nghost-%COMP%] >*:last-child nz-tag{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px;border-left-color:#e9e9e9}"]}),M})();function Q(M,e){if(1&M&&t._UZ(0,"span",3),2&M){const I=t.oxw().$implicit;t.Q6J("innerHtml",I.text,t.oJD)}}function Y(M,e){if(1&M&&t._UZ(0,"cvc-gene-tag",6),2&M){const I=t.oxw().$implicit,k=t.oxw(3);t.Q6J("gene",I)("enablePopover",k.enablePopover)}}function A(M,e){if(1&M&&(t.ynx(0),t.YNc(1,Y,1,2,"cvc-gene-tag",5),t.BQk()),2&M){const I=e.$implicit;t.xp6(1),t.Q6J("ngIf","Gene"==I.__typename)}}const S=function(M){return[M]};function N(M,e){if(1&M&&(t.ynx(0),t.TgZ(1,"cvc-tag-group"),t.YNc(2,A,2,1,"ng-container",0),t._UZ(3,"cvc-variant-tag",4),t.qZA(),t.BQk()),2&M){const I=t.oxw(),k=I.index,ge=I.$implicit,Ce=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.VKq(3,S,Ce.nameSegments[k-1])),t.xp6(1),t.Q6J("variant",ge)("enablePopover",Ce.enablePopover)}}function V(M,e){if(1&M&&(t.ynx(0),t.YNc(1,Q,1,1,"span",1),t.YNc(2,N,4,5,"ng-container",2),t.BQk()),2&M){const I=e.$implicit;t.xp6(1),t.Q6J("ngIf","MolecularProfileTextSegment"==I.__typename),t.xp6(1),t.Q6J("ngIf","Variant"==I.__typename)}}let U=(()=>{class M{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.nameSegments)throw new Error("Must pass a list of molecular profile name segments into mp name component.")}}return M.\u0275fac=function(I){return new(I||M)},M.\u0275cmp=t.Xpm({type:M,selectors:[["cvc-mp-tag-name"]],inputs:{nameSegments:"nameSegments",enablePopover:"enablePopover"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["class","text-segment",3,"innerHtml",4,"ngIf"],[4,"ngIf"],[1,"text-segment",3,"innerHtml"],[3,"variant","enablePopover"],[3,"gene","enablePopover",4,"ngIf"],[3,"gene","enablePopover"]],template:function(I,k){1&I&&t.YNc(0,V,3,2,"ng-container",0),2&I&&t.Q6J("ngForOf",k.nameSegments)},dependencies:[i.sg,i.O5,v.I,d.H,L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]}),M})()},9858:(Ot,be,a)=>{a.d(be,{r:()=>Y});var t=a(6814),i=a(7528),v=a(5956),d=a(5695),s=a(551),L=a(5879);let Q=(()=>{class A{}return A.\u0275fac=function(N){return new(N||A)},A.\u0275mod=L.oAB({type:A}),A.\u0275inj=L.cJS({imports:[t.ez]}),A})(),Y=(()=>{class A{}return A.\u0275fac=function(N){return new(N||A)},A.\u0275mod=L.oAB({type:A}),A.\u0275inj=L.cJS({imports:[t.ez,d.X,s.PV,i.Q,v.U,Q]}),A})()},2606:(Ot,be,a)=>{a.d(be,{p:()=>de});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),Q=a(7417),Y=a(551),A=a(156),S=a(5869);function N(ue,j){}function V(ue,j){if(1&ue&&(v.ynx(0),v.TgZ(1,"a",5),v.YNc(2,N,0,0,"ng-template",6),v.qZA(),v.BQk()),2&ue){const me=v.oxw(),re=v.MAs(2);v.xp6(1),v.Q6J("routerLink",me.molecularProfile.link),v.xp6(1),v.Q6J("ngTemplateOutlet",re)}}function U(ue,j){}const M=function(ue){return{deprecated:ue}};function e(ue,j){if(1&ue){const me=v.EpF();v.TgZ(0,"nz-tag",9),v.NdJ("nzOnClose",function(he){v.CHM(me);const Me=v.oxw(2);return v.KtG(Me.itemClosed(he))}),v.YNc(1,U,0,0,"ng-template",6),v.qZA()}if(2&ue){v.oxw();const me=v.MAs(2),re=v.oxw(),he=v.MAs(8);v.Q6J("ngClass",v.VKq(5,M,re.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",re.onCloseClicked?0:.5)("nzPopoverContent",me)("nzMode",re.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",he)}}function I(ue,j){if(1&ue&&v._UZ(0,"cvc-molecular-profile-popover",11),2&ue){const me=v.oxw(3);v.Q6J("molecularProfileId",me.molecularProfile.id)}}function k(ue,j){if(1&ue&&v.YNc(0,I,1,1,"cvc-molecular-profile-popover",10),2&ue){const me=v.oxw(2);v.Q6J("ngIf",me.enablePopover)}}function ge(ue,j){if(1&ue&&(v.YNc(0,e,2,7,"nz-tag",7),v.YNc(1,k,1,1,"ng-template",null,8,v.W1O)),2&ue){const me=v.oxw(),re=v.MAs(4);v.Q6J("ngIf",me.enablePopover)("ngIfElse",re)}}function Ce(ue,j){}function Z(ue,j){if(1&ue){const me=v.EpF();v.TgZ(0,"nz-tag",12),v.NdJ("nzOnClose",function(he){v.CHM(me);const Me=v.oxw();return v.KtG(Me.itemClosed(he))}),v.YNc(1,Ce,0,0,"ng-template",6),v.qZA()}if(2&ue){const me=v.oxw(),re=v.MAs(8);v.Q6J("nzMode",me.onCloseClicked?"closeable":"default")("ngClass",v.VKq(3,M,me.molecularProfile.deprecated)),v.xp6(1),v.Q6J("ngTemplateOutlet",re)}}function F(ue,j){}function R(ue,j){if(1&ue&&v.YNc(0,F,0,0,"ng-template",6),2&ue){v.oxw();const me=v.MAs(2);v.Q6J("ngTemplateOutlet",me)}}function O(ue,j){if(1&ue&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&ue){const me=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,me.molecularProfile.name,me.truncationLength)," ")}}function P(ue,j){if(1&ue&&v._uU(0),2&ue){const me=v.oxw(2);v.hij(" ",me.molecularProfile.name," ")}}function x(ue,j){if(1&ue&&(v._UZ(0,"i",13),v.YNc(1,O,3,4,"ng-container",0),v.YNc(2,P,1,1,"ng-template",null,14,v.W1O)),2&ue){const me=v.MAs(3),re=v.oxw();v.Q6J("nzTwotoneColor",re.iconColor),v.xp6(1),v.Q6J("ngIf",re.truncateLongName)("ngIfElse",me)}}let de=(()=>{class ue extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,i.f)("MolecularProfile")}idFunction(){return this.molecularProfile.id}ngOnInit(){if(super.ngOnInit(),void 0===this.molecularProfile)throw new Error("cvc-molecular-profile-tag requires LinkableMolecularProfile input, none supplied.");"number"==typeof this.truncateLongName&&(this.truncationLength=this.truncateLongName),"segments"in this.molecularProfile&&(this.molecularProfile.name=this.molecularProfile.segments.map(me=>"text"in me?me.text:me.name).join(" "))}}return ue.\u0275fac=function(me){return new(me||ue)},ue.\u0275cmp=v.Xpm({type:ue,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzMode","ngClass","nzOnClose"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(me,re){if(1&me&&(v.YNc(0,V,3,2,"ng-container",0),v.YNc(1,ge,3,2,"ng-template",null,1,v.W1O),v.YNc(3,Z,2,5,"ng-template",null,2,v.W1O),v.YNc(5,R,1,1,"ng-template",null,3,v.W1O),v.YNc(7,x,4,3,"ng-template",null,4,v.W1O)),2&me){const he=v.MAs(6);v.Q6J("ngIf",re.linked)("ngIfElse",he)}},dependencies:[d.mk,d.O5,d.tP,s.rH,L.j,Q.lU,Y.Ls,A._,S.W],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),ue})()},8527:(Ot,be,a)=>{a.d(be,{u:()=>A});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(2524),Q=a(2064),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,L.s,Q._]}),S})()},4402:(Ot,be,a)=>{a.d(be,{S:()=>e});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(551),Y=a(2962),A=a(3317),S=a(8125),N=a(8091);function V(I,k){if(1&I&&(d._UZ(0,"i",9),d._uU(1)),2&I){const ge=d.oxw().ngIf;d.xp6(1),d.hij(" ",ge.name," ")}}function U(I,k){if(1&I&&(d.TgZ(0,"cvc-link-tag",10),d._uU(1),d.qZA()),2&I){const ge=d.oxw().ngIf;d.Q6J("href",ge.url),d.xp6(1),d.hij(" ",ge.hpoId," ")}}function M(I,k){if(1&I&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,V,2,1,"ng-template",null,3,d.W1O),d.YNc(4,U,2,2,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),d._uU(8),d.qZA(),d.TgZ(9,"nz-descriptions-item",7),d._uU(10),d.qZA(),d.TgZ(11,"nz-descriptions-item",8),d._uU(12),d.qZA()()(),d.BQk()),2&I){const ge=k.ngIf,Ce=d.MAs(3),Z=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",Ce)("nzExtra",Z),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",ge.assertionCount," "),d.xp6(2),d.hij(" ",ge.evidenceItemCount," "),d.xp6(2),d.hij(" ",ge.molecularProfileCount," ")}}let e=(()=>{class I{constructor(ge){this.gql=ge}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,i.U)(({data:ge})=>ge?.phenotypePopover),(0,v.h)(t.ep))}}return I.\u0275fac=function(ge){return new(ge||I)(d.Y36(s.OHm))},I.\u0275cmp=d.Xpm({type:I,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},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","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(ge,Ce){1&ge&&(d.TgZ(0,"div",0),d.YNc(1,M,13,6,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&ge&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,Ce.phenotype$)))},dependencies:[L.O5,Q.Ls,Y.bd,A.l,S.R7,S.uj,N.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})()},1332:(Ot,be,a)=>{a.d(be,{I:()=>Q});var t=a(6814),i=a(2962),v=a(6067),d=a(8125),s=a(551),L=a(5879);let Q=(()=>{class Y{}return Y.\u0275fac=function(S){return new(S||Y)},Y.\u0275mod=L.oAB({type:Y}),Y.\u0275inj=L.cJS({imports:[t.ez,s.PV,i.vh,v.X,d.q6]}),Y})()},3897:(Ot,be,a)=>{a.d(be,{i:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),Q=a(551),Y=a(4402),A=a(2616);function S(F,R){}function N(F,R){if(1&F&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,S,0,0,"ng-template",6),i.qZA(),i.BQk()),2&F){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.phenotype.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function V(F,R){}function U(F,R){if(1&F&&i._UZ(0,"cvc-phenotype-popover",9),2&F){const O=i.oxw(2);i.Q6J("phenotypeId",O.phenotype.id)}}function M(F,R){if(1&F){const O=i.EpF();i.TgZ(0,"nz-tag",7),i.NdJ("nzOnClose",function(x){i.CHM(O);const de=i.oxw();return i.KtG(de.itemClosed(x))}),i.YNc(1,V,0,0,"ng-template",6),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,8,i.W1O)}if(2&F){const O=i.MAs(3),P=i.oxw(),x=i.MAs(8);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",x)}}function e(F,R){}function I(F,R){if(1&F){const O=i.EpF();i.TgZ(0,"nz-tag",10),i.NdJ("nzOnClose",function(x){i.CHM(O);const de=i.oxw();return i.KtG(de.itemClosed(x))}),i.YNc(1,e,0,0,"ng-template",6),i.qZA()}if(2&F){const O=i.oxw(),P=i.MAs(8);i.Q6J("nzMode",O.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function k(F,R){}function ge(F,R){if(1&F&&i.YNc(0,k,0,0,"ng-template",6),2&F){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function Ce(F,R){if(1&F&&(i._UZ(0,"i",11),i.ALo(1,"entityColor"),i._uU(2)),2&F){const O=i.oxw();i.Q6J("nzTwotoneColor",i.lcZ(1,2,"Phenotype")),i.xp6(2),i.hij(" ",O.phenotype.name,"\n")}}let Z=(()=>{class F extends t.a{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(O){if(!O)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=O}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}}return F.\u0275fac=function(){let R;return function(P){return(R||(R=i.n5z(F)))(P||F)}}(),F.\u0275cmp=i.Xpm({type:F,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[i.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["phenotypePopover",""],[3,"phenotypeId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(O,P){if(1&O&&(i.YNc(0,N,3,2,"ng-container",0),i.YNc(1,M,4,5,"ng-template",null,1,i.W1O),i.YNc(3,I,2,2,"ng-template",null,2,i.W1O),i.YNc(5,ge,1,1,"ng-template",null,3,i.W1O),i.YNc(7,Ce,3,4,"ng-template",null,4,i.W1O)),2&O){const x=i.MAs(6);i.Q6J("ngIf",P.linked)("ngIfElse",x)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,Q.Ls,Y.S,A.a],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),F})()},3043:(Ot,be,a)=>{a.d(be,{y:()=>A});var t=a(6814),i=a(4190),v=a(2524),d=a(551),s=a(7417),L=a(5695),Q=a(1332),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,i.Bz,L.X,s.$6,d.PV,Q.I,v.s]}),S})()},3103:(Ot,be,a)=>{a.d(be,{b:()=>A});var t=a(2023),i=a(5879),v=a(6814);const d=function(S){return{background:S}};function s(S,N){if(1&S&&i._UZ(0,"div",3),2&S){const V=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,V.flagColor))}}function L(S,N){if(1&S&&i._UZ(0,"div",4),2&S){const V=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,V.entityColor))}}function Q(S,N){if(1&S&&i._UZ(0,"div",5),2&S){const V=i.oxw();i.Q6J("ngStyle",i.VKq(1,d,V.entityColor))}}const Y=["*"];let A=(()=>{class S{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.f)("Flag")}}return S.\u0275fac=function(V){return new(V||S)},S.\u0275cmp=i.Xpm({type:S,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:Y,decls:4,vars:3,consts:[["class","cvc-badge badge-flags",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-revisions",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-comments",3,"ngStyle",4,"ngIf"],[1,"cvc-badge","badge-flags",3,"ngStyle"],[1,"cvc-badge","badge-revisions",3,"ngStyle"],[1,"cvc-badge","badge-comments",3,"ngStyle"]],template:function(V,U){1&V&&(i.F$t(),i.Hsn(0),i.YNc(1,s,1,3,"div",0),i.YNc(2,L,1,3,"div",1),i.YNc(3,Q,1,3,"div",2)),2&V&&(i.xp6(1),i.Q6J("ngIf",U.flagged),i.xp6(1),i.Q6J("ngIf",U.hasRevisions),i.xp6(1),i.Q6J("ngIf",U.hasComments))},dependencies:[v.O5,v.PC],styles:["[_nghost-%COMP%]{display:inline-block;position:relative;line-height:1}.cvc-badge[_ngcontent-%COMP%]{position:absolute;z-index:auto;width:4px;min-width:4px;height:4px;border-radius:100%;box-shadow:0 0 0 1px #fff;background:#aaa}.cvc-badge.badge-revisions[_ngcontent-%COMP%]{top:.5px;right:.5px;transform:translate(50%,-50%)}.cvc-badge.badge-flags[_ngcontent-%COMP%]{top:.5px;left:.5px;transform:translate(-50%,-50%)}.cvc-badge.badge-comments[_ngcontent-%COMP%]{bottom:.5px;right:.5px;transform:translate(50%,50%)}"],changeDetection:0}),S})()},3146:(Ot,be,a)=>{a.d(be,{C:()=>d});var t=a(6814),i=a(2524),v=a(5879);let d=(()=>{class s{}return s.\u0275fac=function(Q){return new(Q||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({imports:[t.ez,i.s]}),s})()},3317:(Ot,be,a)=>{a.d(be,{l:()=>L});var t=a(5879),i=a(6109),v=a(5695),d=a(551);const s=["*"];let L=(()=>{class Q{set href(A){if(!A)throw new Error("link-tag link Input requires string.");this._href=A}get href(){return this._href?this._href:""}}return Q.\u0275fac=function(A){return new(A||Q)},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:s,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(A,S){1&A&&(t.F$t(),t.TgZ(0,"a",0)(1,"nz-tag",1),t._UZ(2,"i",2),t.Hsn(3),t.qZA()()),2&A&&(t.Q6J("href",S.href,t.LSH),t.xp6(1),t.Q6J("nzTooltipTitle",S.tooltip)("nzTooltipTrigger",S.tooltip?"hover":null),t.xp6(1),t.Q6J("nzType",S.iconName?S.iconName:"link"))},dependencies:[i.SY,v.j,d.Ls],encapsulation:2}),Q})()},6067:(Ot,be,a)=>{a.d(be,{X:()=>L});var t=a(6814),i=a(6109),v=a(5695),d=a(551),s=a(5879);let L=(()=>{class Q{}return Q.\u0275fac=function(A){return new(A||Q)},Q.\u0275mod=s.oAB({type:Q}),Q.\u0275inj=s.cJS({imports:[t.ez,i.cg,v.X,d.PV]}),Q})()},9154:(Ot,be,a)=>{a.d(be,{y:()=>s});var t=a(6814),i=a(551),v=a(5695),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,v.X,i.PV]}),L})()},3489:(Ot,be,a)=>{a.d(be,{H:()=>S});var t=a(5619),i=a(1687),v=a(1374),d=a(5879),s=a(6814),L=a(5695),Q=a(551),Y=a(8091);function A(N,V){1&N&&(d.TgZ(0,"nz-tag",1),d._UZ(1,"i",2),d.TgZ(2,"span"),d._uU(3,"End of results reached"),d.qZA()())}let S=(()=>{class N{set cvcShowTag(U){void 0!==U&&U&&this.showTag()}constructor(U){this.cdr=U,this.showTag$=new t.X(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,i.F)(3e3).pipe((0,v.P)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}}return N.\u0275fac=function(U){return new(U||N)(d.Y36(d.sBO))},N.\u0275cmp=d.Xpm({type:N,selectors:[["cvc-no-more-rows"]],inputs:{cvcShowTag:"cvcShowTag"},decls:2,vars:3,consts:[["nzColor","warning",4,"ngIf"],["nzColor","warning"],["nz-icon","","nzType","exclamation-circle"]],template:function(U,M){1&U&&(d.YNc(0,A,4,0,"nz-tag",0),d.ALo(1,"ngrxPush")),2&U&&d.Q6J("ngIf",d.lcZ(1,1,M.showTag$))},dependencies:[s.O5,L.j,Q.Ls,Y.fM],encapsulation:2,changeDetection:0}),N})()},2384:(Ot,be,a)=>{a.d(be,{h:()=>N});var t=a(5879),i=a(6814),v=a(5695),d=a(551);function s(V,U){1&V&&t._UZ(0,"i",7)}function L(V,U){1&V&&t._UZ(0,"i",8)}function Q(V,U){1&V&&t._UZ(0,"i",9)}function Y(V,U){1&V&&t._UZ(0,"i",10)}function A(V,U){1&V&&t._UZ(0,"i",10)}function S(V,U){if(1&V&&(t.TgZ(0,"nz-tag",1),t.ynx(1,2),t.YNc(2,s,1,0,"i",3),t.YNc(3,L,1,0,"i",4),t.YNc(4,Q,1,0,"i",5),t.YNc(5,Y,1,0,"i",6),t.YNc(6,A,1,0,"i",6),t.BQk(),t._uU(7),t.ALo(8,"titlecase"),t.qZA()),2&V){const M=t.oxw();t.Q6J("nzColor",M.tagStatus),t.xp6(1),t.Q6J("ngSwitch",M.tagStatus),t.xp6(1),t.Q6J("ngSwitchCase","success"),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","warning"),t.xp6(1),t.Q6J("ngSwitchCase","processing"),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(1),t.hij(" ",t.lcZ(8,8,M.status),"\n")}}let N=(()=>{class V{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(M){this._status=M,M&&(this.tagStatus=this.statusColorMap[M])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus or RevisionStatus to cvc-status-tag component")}}return V.\u0275fac=function(M){return new(M||V)},V.\u0275cmp=t.Xpm({type:V,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(M,e){1&M&&t.YNc(0,S,9,10,"nz-tag",0),2&M&&t.Q6J("ngIf",e.tagStatus)},dependencies:[i.O5,i.RF,i.n9,v.j,d.Ls,i.rS],encapsulation:2}),V})()},2655:(Ot,be,a)=>{a.d(be,{x:()=>s});var t=a(6814),i=a(5695),v=a(551),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,i.X,v.PV]}),L})()},1887:(Ot,be,a)=>{a.d(be,{$:()=>v});var t=a(5879);const i=["*"];let v=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(L,Q){2&L&&t.ekj("xs","xs"===Q.size||!Q.size)("sm","sm"===Q.size)},inputs:{size:"size"},ngContentSelectors:i,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(L,Q){1&L&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"],changeDetection:0}),d})()},366:(Ot,be,a)=>{a.d(be,{$:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[t.ez]}),d})()},1813:(Ot,be,a)=>{a.d(be,{p:()=>Z});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(551),Y=a(2962),A=a(8125),S=a(3317),N=a(1887),V=a(3369),U=a(8091);function M(F,R){if(1&F&&(d._UZ(0,"i",11),d._uU(1)),2&F){const O=d.oxw().ngIf;d.xp6(1),d.AsE(" ",O.displayType,":\xa0",O.citation," ")}}function e(F,R){if(1&F&&(d.TgZ(0,"cvc-link-tag",12),d._uU(1),d.qZA()),2&F){const O=d.oxw().ngIf;d.Q6J("href",O.sourceUrl)("tooltip","View on "+O.displayType),d.xp6(1),d.hij(" ",O.displayType+":"+O.citationId," ")}}function I(F,R){1&F&&d._UZ(0,"cvc-clinical-trial-tag",14),2&F&&d.Q6J("clinicalTrial",R.$implicit)("enablePopover",!1)}function k(F,R){if(1&F&&(d.ynx(0),d.TgZ(1,"cvc-tag-list"),d.YNc(2,I,1,2,"cvc-clinical-trial-tag",13),d.qZA(),d.BQk()),2&F){const O=d.oxw().ngIf;d.xp6(2),d.Q6J("ngForOf",O.clinicalTrials)}}function ge(F,R){1&F&&d._uU(0," -- ")}function Ce(F,R){if(1&F&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,M,2,2,"ng-template",null,3,d.W1O),d.YNc(4,e,2,3,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),d._uU(8),d.qZA(),d.TgZ(9,"nz-descriptions-item",7),d._uU(10),d.qZA(),d.TgZ(11,"nz-descriptions-item",8),d.YNc(12,k,3,1,"ng-container",9),d.YNc(13,ge,1,0,"ng-template",null,10,d.W1O),d.qZA()()(),d.BQk()),2&F){const O=R.ngIf,P=d.MAs(3),x=d.MAs(5),de=d.MAs(14);d.xp6(1),d.Q6J("nzTitle",P)("nzExtra",x),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(2),d.hij(" ",O.name," "),d.xp6(2),d.hij(" ",O.evidenceItemCount," "),d.xp6(2),d.Q6J("ngIf",O.clinicalTrials&&O.clinicalTrials.length>0)("ngIfElse",de)}}let Z=(()=>{class F{constructor(O){this.gql=O}ngOnInit(){if(null==this.sourceId)throw new Error("cvc-source-popover requires valid sourceId input.");this.source$=this.gql.watch({sourceId:this.sourceId}).valueChanges.pipe((0,i.U)(({data:O})=>O?.sourcePopover),(0,v.h)(t.ep))}}return F.\u0275fac=function(O){return new(O||F)(d.Y36(s.TiL))},F.\u0275cmp=d.Xpm({type:F,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},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","Title","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Clinical Trials:","nzSpan","2"],[4,"ngIf","ngIfElse"],["noTrials",""],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(O,P){1&O&&(d.TgZ(0,"div",0),d.YNc(1,Ce,15,7,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&O&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,P.source$)))},dependencies:[L.sg,L.O5,Q.Ls,Y.bd,A.R7,A.uj,S.l,N.$,V.G,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}"]}),F})()},6247:(Ot,be,a)=>{a.d(be,{n:()=>A});var t=a(6814),i=a(2962),v=a(6067),d=a(8125),s=a(366),L=a(4605),Q=a(551),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,Q.PV,i.vh,d.q6,v.X,s.$,L.N]}),S})()},4138:(Ot,be,a)=>{a.d(be,{T:()=>P});var t=a(8130),i=a(5879),v=a(7023),d=a(6814),s=a(4190),L=a(551),Q=a(7417),Y=a(5695),A=a(1813),S=a(5869),N=a(2616);function V(x,de){}function U(x,de){if(1&x&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,V,0,0,"ng-template",5),i.qZA(),i.BQk()),2&x){const ue=i.oxw(),j=i.MAs(2);i.xp6(1),i.Q6J("routerLink",ue.source.link),i.xp6(1),i.Q6J("ngTemplateOutlet",j)}}function M(x,de){}function e(x,de){if(1&x&&i._UZ(0,"cvc-source-popover",8),2&x){const ue=i.oxw(2);i.Q6J("sourceId",ue.source.id)}}function I(x,de){if(1&x){const ue=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzPopoverVisibleChange",function(me){i.CHM(ue);const re=i.oxw();return i.KtG(re.popoverVisible=me)})("nzOnClose",function(me){i.CHM(ue);const re=i.oxw();return i.KtG(re.itemClosed(me))}),i.YNc(1,M,0,0,"ng-template",5),i.qZA(),i.YNc(2,e,1,1,"ng-template",null,7,i.W1O)}if(2&x){const ue=i.MAs(3),j=i.oxw(),me=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",j.onCloseClicked?0:.5)("nzPopoverContent",ue)("nzPopoverTrigger",j.enablePopover?"hover":null)("nzPopoverVisible",j.popoverVisible)("nzMode",j.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",me)}}function k(x,de){}function ge(x,de){if(1&x&&i.YNc(0,k,0,0,"ng-template",5),2&x){i.oxw();const ue=i.MAs(2);i.Q6J("ngTemplateOutlet",ue)}}function Ce(x,de){if(1&x&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&x){const ue=i.oxw(3);i.xp6(1),i.hij(" ",i.xi3(2,1,ue.displayName,50)," ")}}function Z(x,de){if(1&x&&(i.ynx(0),i._uU(1),i.BQk()),2&x){const ue=i.oxw(3);i.xp6(1),i.hij(" ",ue.displayName," ")}}function F(x,de){if(1&x&&(i.ynx(0),i.YNc(1,Ce,3,4,"ng-container",11),i.YNc(2,Z,2,1,"ng-container",11),i.BQk()),2&x){const ue=i.oxw(2);i.xp6(1),i.Q6J("ngIf",ue.truncateLongName),i.xp6(1),i.Q6J("ngIf",!ue.truncateLongName)}}function R(x,de){if(1&x&&i._uU(0),2&x){const ue=i.oxw(2);i.hij(" SID:",ue.source.id," ")}}function O(x,de){if(1&x&&(i._UZ(0,"i",9),i.ALo(1,"entityColor"),i.YNc(2,F,3,2,"ng-container",0),i.YNc(3,R,1,1,"ng-template",null,10,i.W1O)),2&x){const ue=i.MAs(4),j=i.oxw();i.Q6J("nzTwotoneColor",i.lcZ(1,3,"Source")),i.xp6(2),i.Q6J("ngIf","normal"===j.mode)("ngIfElse",ue)}}let P=(()=>{class x extends t.a{set source(ue){if(!ue)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=ue,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(ue){super(),this.sourceTypeDisplay=ue,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}}return x.\u0275fac=function(ue){return new(ue||x)(i.Y36(v.l))},x.\u0275cmp=i.Xpm({type:x,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode","nzPopoverVisibleChange","nzOnClose"],["sourcePopover",""],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["concise",""],[4,"ngIf"]],template:function(ue,j){if(1&ue&&(i.YNc(0,U,3,2,"ng-container",0),i.YNc(1,I,4,6,"ng-template",null,1,i.W1O),i.YNc(3,ge,1,1,"ng-template",null,2,i.W1O),i.YNc(5,O,5,5,"ng-template",null,3,i.W1O)),2&ue){const me=i.MAs(4);i.Q6J("ngIf",j.linked)("ngIfElse",me)}},dependencies:[d.O5,d.tP,s.rH,L.Ls,Q.lU,Y.j,A.p,S.W,N.a],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),x})()},8641:(Ot,be,a)=>{a.d(be,{s:()=>A});var t=a(6814),i=a(7417),v=a(4190),d=a(6247),s=a(5695),L=a(551),Q=a(2524),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,v.Bz,L.PV,i.$6,s.X,d.n,Q.s]}),S})()},96:(Ot,be,a)=>{a.d(be,{a:()=>P});var t=a(7398),i=a(2181),v=a(5676),d=a(5879),s=a(313),L=a(6814),Q=a(2962),Y=a(8125),A=a(551),S=a(2392),N=a(5695),V=a(6109),U=a(3317),M=a(8091),e=a(5869);function I(x,de){if(1&x&&(d._UZ(0,"i",12),d._uU(1),d.ALo(2,"truncate")),2&x){const ue=d.oxw().ngIf;d.xp6(1),d.hij(" ",d.xi3(2,1,ue.name,50)," ")}}function k(x,de){if(1&x&&(d.TgZ(0,"cvc-link-tag",14),d._uU(1),d.qZA()),2&x){const ue=d.oxw(2).ngIf;d.Q6J("href",ue.therapyUrl),d.xp6(1),d.hij(" ",ue.ncitId," ")}}function ge(x,de){if(1&x&&d.YNc(0,k,2,2,"cvc-link-tag",13),2&x){const ue=d.oxw().ngIf,j=d.MAs(7);d.Q6J("ngIf",ue.ncitId)("ngIfElse",j)}}function Ce(x,de){1&x&&(d.TgZ(0,"span",15),d._uU(1,"No NCIt ID"),d.qZA())}function Z(x,de){if(1&x&&(d.TgZ(0,"nz-descriptions-item",16),d._uU(1),d.qZA()),2&x){const ue=d.oxw().ngIf;d.xp6(1),d.hij(" ",ue.name," ")}}function F(x,de){if(1&x&&(d.TgZ(0,"nz-tag",19),d._uU(1),d.ALo(2,"truncate"),d.qZA()),2&x){const ue=de.$implicit;d.Q6J("nzTooltipTitle",ue),d.xp6(1),d.Oqu(d.lcZ(2,2,ue))}}function R(x,de){if(1&x&&(d.TgZ(0,"nz-descriptions-item",17),d.YNc(1,F,3,4,"nz-tag",18),d.qZA()),2&x){const ue=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",ue.therapyAliases)}}function O(x,de){if(1&x&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,I,3,4,"ng-template",null,3,d.W1O),d.YNc(4,ge,1,2,"ng-template",null,4,d.W1O),d.YNc(6,Ce,2,0,"ng-template",null,5,d.W1O),d.TgZ(8,"nz-descriptions",6),d.YNc(9,Z,2,1,"nz-descriptions-item",7),d.YNc(10,R,2,1,"nz-descriptions-item",8),d.TgZ(11,"nz-descriptions-item",9),d._uU(12),d.qZA(),d.TgZ(13,"nz-descriptions-item",10),d._uU(14),d.qZA(),d.TgZ(15,"nz-descriptions-item",11),d._uU(16),d.qZA()()(),d.BQk()),2&x){const ue=de.ngIf,j=d.MAs(3),me=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",j)("nzExtra",me),d.xp6(7),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",ue.name.length>50),d.xp6(1),d.Q6J("ngIf",ue.therapyAliases.length>0),d.xp6(2),d.hij(" ",ue.assertionCount," "),d.xp6(2),d.hij(" ",ue.evidenceItemCount," "),d.xp6(2),d.hij(" ",ue.molecularProfileCount," ")}}let P=(()=>{class x{constructor(ue){this.gql=ue}ngOnInit(){if(null==this.therapyId)throw new Error("cvc-therapy-popover requires valid therapyId input.");this.therapy$=this.gql.watch({therapyId:this.therapyId}).valueChanges.pipe((0,t.U)(({data:ue})=>ue?.therapyPopover),(0,i.h)(v.ep))}}return x.\u0275fac=function(ue){return new(ue||x)(d.Y36(s.L8L))},x.\u0275cmp=d.Xpm({type:x,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noNcitId",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(ue,j){1&ue&&(d.TgZ(0,"div",0),d.YNc(1,O,17,8,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&ue&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,j.therapy$)))},dependencies:[L.sg,L.O5,Q.bd,Y.R7,Y.uj,A.Ls,S.ZU,N.j,V.SY,U.l,M.fM,e.W],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}"]}),x})()},1207:(Ot,be,a)=>{a.d(be,{s:()=>V});var t=a(6814),i=a(4190),v=a(2962),d=a(8125),s=a(6067),L=a(551),Q=a(2392),Y=a(2524),A=a(5695),S=a(6109),N=a(5879);let V=(()=>{class U{}return U.\u0275fac=function(e){return new(e||U)},U.\u0275mod=N.oAB({type:U}),U.\u0275inj=N.cJS({imports:[t.ez,i.Bz,v.vh,d.q6,L.PV,Q.ZJ,A.X,S.cg,s.X,Y.s]}),U})()},4770:(Ot,be,a)=>{a.d(be,{T:()=>Z});var t=a(8130),i=a(5879),v=a(6814),d=a(4190),s=a(5695),L=a(7417),Q=a(551),Y=a(96),A=a(5869);function S(F,R){}function N(F,R){if(1&F&&(i.ynx(0),i.TgZ(1,"a",4),i.YNc(2,S,0,0,"ng-template",5),i.qZA(),i.BQk()),2&F){const O=i.oxw(),P=i.MAs(2);i.xp6(1),i.Q6J("routerLink",O.therapy.link),i.xp6(1),i.Q6J("ngTemplateOutlet",P)}}function V(F,R){}function U(F,R){if(1&F&&i._UZ(0,"cvc-therapy-popover",8),2&F){const O=i.oxw(2);i.Q6J("therapyId",O.therapy.id)}}function M(F,R){if(1&F){const O=i.EpF();i.TgZ(0,"nz-tag",6),i.NdJ("nzOnClose",function(x){i.CHM(O);const de=i.oxw();return i.KtG(de.itemClosed(x))}),i.YNc(1,V,0,0,"ng-template",5),i.qZA(),i.YNc(2,U,1,1,"ng-template",null,7,i.W1O)}if(2&F){const O=i.MAs(3),P=i.oxw(),x=i.MAs(6);i.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",O)("nzPopoverTrigger",P.enablePopover?"hover":null)("nzMode",P.onCloseClicked?"closeable":"default"),i.xp6(1),i.Q6J("ngTemplateOutlet",x)}}function e(F,R){}function I(F,R){if(1&F&&i.YNc(0,e,0,0,"ng-template",5),2&F){i.oxw();const O=i.MAs(2);i.Q6J("ngTemplateOutlet",O)}}function k(F,R){if(1&F&&(i.ynx(0),i._uU(1),i.ALo(2,"truncate"),i.BQk()),2&F){const O=i.oxw(2);i.xp6(1),i.hij(" ",i.xi3(2,1,O.therapy.name,21)," ")}}function ge(F,R){if(1&F&&i._uU(0),2&F){const O=i.oxw(2);i.hij(" ",O.therapy.name," ")}}function Ce(F,R){if(1&F&&(i._UZ(0,"i",9),i.YNc(1,k,3,4,"ng-container",0),i.YNc(2,ge,1,1,"ng-template",null,10,i.W1O)),2&F){const O=i.MAs(3),P=i.oxw();i.xp6(1),i.Q6J("ngIf",P.truncateLongName)("ngIfElse",O)}}let Z=(()=>{class F extends t.a{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(O){if(!O)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=O}get therapy(){return this._therapy}idFunction(){return this.therapy.id}}return F.\u0275fac=function(){let R;return function(P){return(R||(R=i.n5z(F)))(P||F)}}(),F.\u0275cmp=i.Xpm({type:F,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[i.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["therapyPopover",""],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["fullName",""]],template:function(O,P){if(1&O&&(i.YNc(0,N,3,2,"ng-container",0),i.YNc(1,M,4,5,"ng-template",null,1,i.W1O),i.YNc(3,I,1,1,"ng-template",null,2,i.W1O),i.YNc(5,Ce,4,2,"ng-template",null,3,i.W1O)),2&O){const x=i.MAs(4);i.Q6J("ngIf",P.linked)("ngIfElse",x)}},dependencies:[v.O5,v.tP,d.rH,s.j,L.lU,Q.Ls,Y.a,A.W],encapsulation:2,changeDetection:0}),F})()},6061:(Ot,be,a)=>{a.d(be,{N:()=>A});var t=a(6814),i=a(4190),v=a(5695),d=a(7417),s=a(551),L=a(2524),Q=a(1207),Y=a(5879);let A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=Y.oAB({type:S}),S.\u0275inj=Y.cJS({imports:[t.ez,i.Bz,v.X,d.$6,s.PV,L.s,Q.s]}),S})()},8545:(Ot,be,a)=>{a.d(be,{m:()=>ue});var t=a(5676),i=a(7398),v=a(2181),d=a(5879),s=a(313),L=a(6814),Q=a(4190),Y=a(2962),A=a(95),S=a(8125),N=a(5695),V=a(551),U=a(2574),M=a(4121),e=a(3317),I=a(8091),k=a(2616);function ge(j,me){if(1&j&&(d._UZ(0,"i",13),d.ALo(1,"entityColor"),d._uU(2)),2&j){const re=d.oxw().ngIf;d.Q6J("nzTwotoneColor",d.lcZ(1,2,"Variant")),d.xp6(2),d.hij(" ",re.name," ")}}function Ce(j,me){if(1&j&&d._UZ(0,"cvc-gene-tag",14),2&j){const re=d.oxw().ngIf;d.Q6J("enablePopover",!1)("gene",re.gene)}}function Z(j,me){if(1&j&&(d.TgZ(0,"nz-tag"),d._uU(1),d.qZA()),2&j){const re=me.$implicit;d.xp6(1),d.Oqu(re)}}function F(j,me){if(1&j&&(d.TgZ(0,"nz-descriptions-item",15),d.YNc(1,Z,2,1,"nz-tag",16),d.qZA()),2&j){const re=d.oxw().ngIf;d.xp6(1),d.Q6J("ngForOf",re.variantAliases)}}function R(j,me){if(1&j&&(d.TgZ(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),d._uU(2),d.qZA()()),2&j){const re=d.oxw().ngIf;d.xp6(1),d.MGl("href","https://reg.genome.network/allele/",re.alleleRegistryId,".html"),d.xp6(1),d.hij(" ",re.alleleRegistryId," ")}}function O(j,me){if(1&j&&(d.TgZ(0,"a",19)(1,"nz-tag",20),d._UZ(2,"i",21),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/variants/",re.id,"/flags"),d.xp6(3),d.hij(" Flags (",re.flags.totalCount,") ")}}function P(j,me){if(1&j&&(d.TgZ(0,"a",19)(1,"nz-tag",22),d._UZ(2,"i",23),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/variants/",re.id,"/revisions"),d.xp6(3),d.hij(" Revisions (",re.revisions.totalCount,") ")}}function x(j,me){if(1&j&&(d.TgZ(0,"a",19)(1,"nz-tag",24),d._UZ(2,"i",25),d._uU(3),d.qZA()()),2&j){const re=d.oxw().ngIf;d.MGl("routerLink","/variants/",re.id,"/comments"),d.xp6(3),d.hij(" Comments (",re.comments.totalCount,") ")}}function de(j,me){if(1&j&&(d.ynx(0),d.TgZ(1,"nz-card",2),d.YNc(2,ge,3,4,"ng-template",null,3,d.W1O),d.YNc(4,Ce,1,2,"ng-template",null,4,d.W1O),d.TgZ(6,"nz-descriptions",5),d.YNc(7,F,2,1,"nz-descriptions-item",6),d.YNc(8,R,3,2,"nz-descriptions-item",7),d.TgZ(9,"nz-descriptions-item",8),d._uU(10),d.qZA()(),d.TgZ(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),d.YNc(14,O,4,2,"a",12),d.YNc(15,P,4,2,"a",12),d.YNc(16,x,4,2,"a",12),d.qZA()()()(),d.BQk()),2&j){const re=me.ngIf,he=d.MAs(3),Me=d.MAs(5);d.xp6(1),d.Q6J("nzTitle",he)("nzExtra",Me),d.xp6(5),d.Q6J("nzColumn",2),d.xp6(1),d.Q6J("ngIf",re.variantAliases.length>0),d.xp6(1),d.Q6J("ngIf",re.alleleRegistryId&&"unregistered"!=re.alleleRegistryId),d.xp6(2),d.hij(" ",re.molecularProfiles.totalCount," ")}}let ue=(()=>{class j{constructor(re){this.gql=re}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,i.U)(({data:re})=>re?.variant),(0,v.h)(t.ep))}}return j.\u0275fac=function(re){return new(re||j)(d.Y36(s.ZYZ))},j.\u0275cmp=d.Xpm({type:j,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","Molecular Profiles","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[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(re,he){1&re&&(d.TgZ(0,"div",0),d.YNc(1,de,17,6,"ng-container",1),d.ALo(2,"ngrxPush"),d.qZA()),2&re&&(d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,he.variant$)))},dependencies:[L.sg,L.O5,Q.rH,Y.bd,A.t3,A.SK,S.R7,S.uj,N.j,V.Ls,U.NU,U.$1,M.H,e.l,I.fM,k.a],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}"]}),j})()},6446:(Ot,be,a)=>{a.d(be,{k:()=>U});var t=a(6814),i=a(4190),v=a(2962),d=a(95),s=a(8125),L=a(5695),Q=a(551),Y=a(2574),A=a(5956),S=a(6067),N=a(2524),V=a(5879);let U=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=V.oAB({type:M}),M.\u0275inj=V.cJS({imports:[t.ez,i.Bz,v.vh,d.Jb,s.q6,L.X,Q.PV,Y.zf,N.s,A.U,S.X]}),M})()},9408:(Ot,be,a)=>{a.d(be,{I:()=>P});var t=a(8130),i=a(2023),v=a(5879),d=a(6814),s=a(4190),L=a(5695),Q=a(7417),Y=a(551),A=a(8545),S=a(3103),N=a(5869);function V(x,de){}function U(x,de){if(1&x&&(v.ynx(0),v.TgZ(1,"a",4),v.YNc(2,V,0,0,"ng-template",5),v.qZA(),v.BQk()),2&x){const ue=v.oxw(),j=v.MAs(2);v.xp6(1),v.Q6J("routerLink",ue.variant.link),v.xp6(1),v.Q6J("ngTemplateOutlet",j)}}function M(x,de){}function e(x,de){if(1&x&&v._UZ(0,"cvc-variant-popover",9),2&x){const ue=v.oxw(3);v.Q6J("variantId",ue.variant.id)}}function I(x,de){if(1&x&&v.YNc(0,e,1,1,"cvc-variant-popover",8),2&x){const ue=v.oxw(2);v.Q6J("ngIf",ue.enablePopover)}}const k=function(x){return{deprecated:x}};function ge(x,de){if(1&x){const ue=v.EpF();v.TgZ(0,"nz-tag",6),v.NdJ("nzOnClose",function(me){v.CHM(ue);const re=v.oxw();return v.KtG(re.itemClosed(me))}),v.YNc(1,M,0,0,"ng-template",5),v.qZA(),v.YNc(2,I,1,1,"ng-template",null,7,v.W1O)}if(2&x){const ue=v.MAs(3),j=v.oxw(),me=v.MAs(6);v.Q6J("ngClass",v.VKq(6,k,j.variant.deprecated))("nzPopoverMouseEnterDelay",j.onCloseClicked?0:.5)("nzPopoverContent",ue)("nzPopoverTrigger",j.enablePopover?"hover":null)("nzMode",j.onCloseClicked?"closeable":"default"),v.xp6(1),v.Q6J("ngTemplateOutlet",me)}}function Ce(x,de){}function Z(x,de){if(1&x&&v.YNc(0,Ce,0,0,"ng-template",5),2&x){v.oxw();const ue=v.MAs(2);v.Q6J("ngTemplateOutlet",ue)}}function F(x,de){if(1&x&&(v.ynx(0),v._uU(1),v.ALo(2,"truncate"),v.BQk()),2&x){const ue=v.oxw(2);v.xp6(1),v.hij(" ",v.xi3(2,1,ue.variant.name,20)," ")}}function R(x,de){if(1&x&&v._uU(0),2&x){const ue=v.oxw(2);v.hij(" ",ue.variant.name," ")}}function O(x,de){if(1&x&&(v.TgZ(0,"cvc-icon-badges",10),v._UZ(1,"i",11),v.qZA(),v.YNc(2,F,3,4,"ng-container",0),v.YNc(3,R,1,1,"ng-template",null,12,v.W1O)),2&x){const ue=v.MAs(4),j=v.oxw();v.Q6J("flagged",j.variant.flagged)("entityColor",j.iconColor),v.xp6(1),v.Q6J("nzTwotoneColor",j.iconColor),v.xp6(1),v.Q6J("ngIf",j.truncateLongName)("ngIfElse",ue)}}let P=(()=>{class x extends t.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,i.f)("Variant")}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 x.\u0275fac=function(ue){return new(ue||x)},x.\u0275cmp=v.Xpm({type:x,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[v.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode","nzOnClose"],["popoverContent",""],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["fullName",""]],template:function(ue,j){if(1&ue&&(v.YNc(0,U,3,2,"ng-container",0),v.YNc(1,ge,4,8,"ng-template",null,1,v.W1O),v.YNc(3,Z,1,1,"ng-template",null,2,v.W1O),v.YNc(5,O,5,5,"ng-template",null,3,v.W1O)),2&ue){const me=v.MAs(4);v.Q6J("ngIf",j.linked)("ngIfElse",me)}},dependencies:[d.mk,d.O5,d.tP,s.rH,L.j,Q.lU,Y.Ls,A.m,S.b,N.W],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),x})()},7528:(Ot,be,a)=>{a.d(be,{Q:()=>S});var t=a(6814),i=a(4190),v=a(5695),d=a(551),s=a(7417),L=a(6446),Q=a(2524),Y=a(3146),A=a(5879);let S=(()=>{class N{}return N.\u0275fac=function(U){return new(U||N)},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({imports:[t.ez,i.Bz,v.X,s.$6,d.PV,Q.s,L.k,Y.C]}),N})()},3702:(Ot,be,a)=>{a.d(be,{t:()=>i});var t=a(5879);let i=(()=>{class v{transform(s,L){return s?"verbose"==L?"TIER_I_LEVEL_A"===s?"Tier I - Level A":"TIER_I_LEVEL_B"===s?"Tier I - Level B":"TIER_II_LEVEL_C"===s?"Tier II - Level C":"TIER_II_LEVEL_D"===s?"Tier II - Level D":"TIER_III"===s?"Tier III":"TIER_IV"===s?"Tier IV":"Not Applicable":s.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"formatAmp",type:v,pure:!0}),v})()},2616:(Ot,be,a)=>{a.d(be,{a:()=>v});var t=a(2023),i=a(5879);let v=(()=>{class d{transform(L){return(0,t.f)(L)}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275pipe=i.Yjl({name:"entityColor",type:d,pure:!0}),d})()},6967:(Ot,be,a)=>{a.d(be,{Do:()=>L});var t=a(313),i=a(2),v=a(5879);const d=new Map([[t.Sx0.A,"Validated association"],[t.Sx0.B,"Clinical evidence"],[t.Sx0.C,"Case study"],[t.Sx0.D,"Preclinical evidence"],[t.Sx0.E,"Inferential association"]]),s=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let L=(()=>{class Q{transform(A,S="display-string"){return null==A?"":"short-string"===S&&1===A.toString().length?"string"==typeof A?A:A.toString():"icon-name"===S?"number"==typeof A?`civic-rating${A}`:1===A.length?`civic-level${A.toLowerCase()}`:`civic-${A.replace(/_/g,"").toLowerCase()}`:"number"==typeof A?s.get(A)||A.toString():1===A.length?d.get(A)||A:(0,i.E)(A)}}return Q.\u0275fac=function(A){return new(A||Q)},Q.\u0275pipe=v.Yjl({name:"evidenceEnumDisplay",type:Q,pure:!0}),Q})()},8004:(Ot,be,a)=>{a.d(be,{v:()=>L});var t=a(313);const i={evidenceType:{[t.kqt.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.kqt.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.kqt.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.kqt.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.kqt.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.kqt.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.uBv.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.uBv.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.uBv.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.uBv.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.uBv.Oncogenic]:"Assertion pertains to a somatic variant's role in driving tumor formation, growth, and other processes related to the Hallmarks of Cancer"},variantOrigin:{[t.huM.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",[t.huM.RareGermline]:"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",[t.huM.CommonGermline]:"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",[t.huM.Unknown]:"The variant origin is uncertain based on the available evidence",[t.huM.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.huM.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.Sx0.A]:"Proven/consensus association in human medicine",[t.Sx0.B]:"Clinical trial or other primary patient data supports association",[t.Sx0.C]:"Individual case reports from clinical journals",[t.Sx0.D]:"In vivo or in vitro models support association",[t.Sx0.E]:"Indirect evidence"},evidenceLevelBrief:{[t.Sx0.A]:"Validated association",[t.Sx0.B]:"Clinical evidence",[t.Sx0.C]:"Case Study",[t.Sx0.D]:"Preclinical evidence",[t.Sx0.E]:"Inferential association"},therapyInteractionType:{[t.wkr.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.wkr.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.wkr.Substitutes]:"The therapies listed are often considered to be of the same family, or behave similarly in a treatment setting"},evidenceRating:{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"}},v={significance:{PREDICTIVE:{ADVERSE_RESPONSE:{EvidenceItem:"Associated with an adverse response to theraputic treatment",Assertion:"Associated with an adverse response to theraputic treatment"},REDUCED_SENSITIVITY:{EvidenceItem:"Response to treatment is lower than seen in other treatment contexts",Assertion:"Response to treatment is lower than seen in other treatment contexts"},RESISTANCE:{EvidenceItem:"Associated with clinical or preclinical resistance to treatment",Assertion:"Associated with clinical or preclinical resistance to treatment"},SENSITIVITYRESPONSE:{EvidenceItem:"Associated with clinical or preclinical response to treatment",Assertion:"Associated with a clinical or preclinical response to treatment"},NA:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},DIAGNOSTIC:{POSITIVE:{EvidenceItem:"Associated with diagnosis of disease or subtype",Assertion:"Associated with diagnosis of disease or subtype"},NEGATIVE:{EvidenceItem:"Associated with lack of disease or subtype",Assertion:"Associated with lack of disease or subtype"}},PROGNOSTIC:{BETTER_OUTCOME:{EvidenceItem:"Demonstrates better than expected clinical outcome",Assertion:"Demonstrates better than expected clinical outcome"},POOR_OUTCOME:{EvidenceItem:"Demonstrates worse than expected clinical outcome",Assertion:"Demonstrates worse than expected clinical outcome"},Na:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},PREDISPOSING:{PATHOGENIC:{Assertion:"Very strong evidence the variant is pathogenic"},LIKELY_PATHOGENIC:{Assertion:"Strong evidence (>90% certainty) the variant is pathogenic"},BENIGN:{Assertion:"Very strong evidence the variant is benign"},LIKELY_BENIGN:{Assertion:"Not expected to have a major effect on disease"},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},Na:{EvidenceItem:"Clinical Significance is not applicable"},PREDISPOSITION:{EvidenceItem:"Germline variant has predisposing potential for cancer, and may meet ACMG/AMP criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Germline variant has properties that protect individuals from acquiring cancer."}},ONCOGENIC:{ONCOGENICITY:{EvidenceItem:"Somatic variant has oncogenic potential for driving cancer, and may meet ClinGen/CGC/VICC criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Somatic variant has a protective role and minimizes co-occuring driver variants, tumor malignancy, or other oncogenic tumor properties."},ONCOGENIC:{Assertion:"Very strong evidence the variant is oncogenic."},LIKELY_ONCOGENIC:{Assertion:"Strong evidence the variant is oncogenic."},BENIGN:{Assertion:"Very strong evidence the variant does not have oncogenic properties."},LIKELY_BENIGN:{Assertion:"Strong evidence the variant does not have oncogenic properties."},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},evidenceDirection:{PREDICTIVE:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's response to a therapy"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support a prognostic association between variant and outcome"}},PREDISPOSING:{Na:{EvidenceItem:"Evidence Direction is not applicable"},SUPPORTS:{EvidenceItem:"The evidence supports a pathogenic or a protective role for a germline variant in cancer."},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence supports a benign (if Clinical Significance is Predisposition) or lack or protective (if Clinical Significance is Protectiveness) role for a germline variant in cancer."}},FUNCTIONAL:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{NA:{EvidenceItem:"Evidence Direction is not applicable for Oncogenic Evidence Type"},SUPPORTS:{EvidenceItem:"The evidence supports an oncogenic or protective role for a somatic variant"},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence does not support an oncogenic or protective role for a somatic variant"}}},assertionDirection:{PREDICTIVE:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's response to a therapy"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"}},PREDISPOSING:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome"}},FUNCTIONAL:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's oncogenic, benign, or uncertain significance"}}}};var s=a(5879);let L=(()=>{class Q{transform(A,S,N=void 0,V=void 0){return S&&A?function d(Q,Y,A,S){let N;return N=A&&S?v[Q][A][Y][S]:i[Q][Y],N||""}(S,A,N,V):""}}return Q.\u0275fac=function(A){return new(A||Q)},Q.\u0275pipe=s.Yjl({name:"enumTooltip",type:Q,pure:!0}),Q})()},7334:(Ot,be,a)=>{a.d(be,{A:()=>v});var t=a(5879),i=a(6593);let v=(()=>{class d{constructor(L){this.sanitizer=L}transform(L,Q){if(!Q||""==Q)return L;const Y=new RegExp(Q,"gi"),A=L.match(Y);if(!A)return L;let S=L.replace(Y,`${A[0]}`);return this.sanitizer.bypassSecurityTrustHtml(S)}}return d.\u0275fac=function(L){return new(L||d)(t.Y36(i.H7,16))},d.\u0275pipe=t.Yjl({name:"highlightTypeahead",type:d,pure:!0}),d})()},2524:(Ot,be,a)=>{a.d(be,{s:()=>d});var t=a(6814),i=a(7023),v=a(5879);let d=(()=>{class s{}return s.\u0275fac=function(Q){return new(Q||s)},s.\u0275mod=v.oAB({type:s}),s.\u0275inj=v.cJS({providers:[i.l],imports:[t.ez]}),s})()},7023:(Ot,be,a)=>{a.d(be,{l:()=>v});var t=a(2666),i=a(5879);let v=(()=>{class d{transform(L){return L?(0,t.c)(L):""}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275pipe=i.Yjl({name:"sourceTypeDisplay",type:d,pure:!0}),d})()},5869:(Ot,be,a)=>{a.d(be,{W:()=>i});var t=a(5879);let i=(()=>{class v{constructor(){}transform(s,L=25){if(s.length>L){let Y=s.slice(0,L);var Q=Y.lastIndexOf(" ");return Y.slice(0,Q)+"\u2026"}return s}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"truncate",type:v,pure:!0}),v})()},1201:(Ot,be,a)=>{a.d(be,{Z:()=>i});var t=a(5879);let i=(()=>{class v{transform(s){return s?`civic-${s.replace(/_/g,"").toLowerCase()}`:""}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275pipe=t.Yjl({name:"typenameToIcon",type:v,pure:!0}),v})()},7473:(Ot,be,a)=>{a.d(be,{Y:()=>v});var t=a(5619),i=a(5879);let v=(()=>{class d{constructor(){this.networkError$=new t.X(void 0)}clearErrors(){this.networkError$.next(void 0)}}return d.\u0275fac=function(L){return new(L||d)},d.\u0275prov=i.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},951:(Ot,be,a)=>{a.d(be,{a:()=>N});var S,t=a(655),i=a(313),v=a(1791),d=a(7398),s=a(7921),L=a(7081),Q=a(4223),Y=a(5879),A=a(9862);let N=((S=class{constructor(U,M){function e(F){return!(!F||F.role!==i.i44.Admin)}function I(F){return!(!F||F.role!==i.i44.Editor&&F.role!==i.i44.Admin)}function k(F){return!(!F||F.role!==i.i44.Curator)}function ge(F){return!(!F||F.role!==i.i44.Curator&&F.role!==i.i44.Editor&&F.role!==i.i44.Admin)}function Ce(F){return!(!F||F.role!==i.i44.Editor&&F.role!==i.i44.Admin||!F.mostRecentConflictOfInterestStatement||F.mostRecentConflictOfInterestStatement?.coiStatus!=i.Mgx.Conflict&&F.mostRecentConflictOfInterestStatement?.coiStatus!=i.Mgx.Valid)}function Z(F){if(F.mostRecentOrganizationId)return F.organizations.find(R=>R.id===F.mostRecentOrganizationId)}this.viewerBaseGQL=U,this.http=M,this.initialViewer={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0},this.queryRef=this.viewerBaseGQL.watch(void 0,{notifyOnNetworkStatusChange:!1}),this.viewer$=this.queryRef.valueChanges.pipe((0,Q.j)("data","viewer"),(0,d.U)(F=>({...F,signedIn:null!=F,signedOut:null==F,canCurate:ge(F),canModerate:Ce(F),isAdmin:e(F),isEditor:I(F),isCurator:k(F),organizations:null==F?[]:F.organizations,mostRecentOrg:null==F?void 0:Z(F),invalidCoi:I(F)&&(!F.mostRecentConflictOfInterestStatement||F.mostRecentConflictOfInterestStatement.coiStatus===i.Mgx.Expired||F.mostRecentConflictOfInterestStatement.coiStatus===i.Mgx.Missing)})),(0,s.O)(this.initialViewer),(0,L.d)(1)),this.signedIn$=this.viewer$.pipe((0,d.U)(F=>F.signedIn)),this.signedOut$=this.viewer$.pipe((0,d.U)(F=>F.signedOut)),this.isAdmin$=this.viewer$.pipe((0,d.U)(F=>e(F))),this.isEditor$=this.viewer$.pipe((0,d.U)(F=>I(F))),this.isCurator$=this.viewer$.pipe((0,d.U)(F=>k(F))),this.canCurate$=this.viewer$.pipe((0,d.U)(F=>ge(F))),this.canModerate$=this.viewer$.pipe((0,d.U)(F=>Ce(F)))}signOut(){this.http.get("/api/sign_out").pipe((0,v.t)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}}).\u0275fac=function(U){return new(U||S)(Y.LFG(i.Tt7),Y.LFG(A.eN))},S.\u0275prov=Y.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S);N=(0,t.gn)([(0,v.c)()],N)},8130:(Ot,be,a)=>{a.d(be,{a:()=>i});var t=a(5879);let i=(()=>{class v{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(s){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275cmp=t.Xpm({type:v,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(s,L){},encapsulation:2}),v})()},2:(Ot,be,a)=>{function t(i){if("number"==typeof i||"boolean"==typeof i)return i;let v;if("NA"===i)v=["Not Applicable"];else if("SENSITIVITYRESPONSE"===i)v=["Sensitivity","/","Response"];else{v=i.toLowerCase().replace(/_/g," ").split(" ");for(var d=0;dt})},2666:(Ot,be,a)=>{function t(i){switch(i){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return i}}a.d(be,{c:()=>t})},2023:(Ot,be,a)=>{a.d(be,{f:()=>i});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Gene","#07aff0"],["Therapy","#ac3996"],["MolecularProfile","#33b358"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Variant","#74d34c"],["VariantGroup","#74d34c"],["VariantType","#74d34c"],["Comment","#44d8ef"],["Event","#ffdb00"],["Flag","#e24759"],["Queue","#666699"],["Revision","#f0673a"],["Curator","#a0d8f5"],["Editor","#58a0c4"],["Admin","#58a0c4"],["Organization","#3d7b99"],["Rejected","#BBBBBB"],["Greyscale","#999999"]]);function i(v){let d="#AAAAAA";if(v){const s=t.get(v);s&&(d=s)}return d}},2024:(Ot,be,a)=>{a.d(be,{U:()=>s});var t=a(8645),i=a(5619),v=a(9773),d=a(4716);class s{constructor(Q){this.networkErrorService=Q}mutate(Q,Y,A,S){let N=new t.x,V={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{N.next(),N.complete()}};return V.isSubmitting$.next(!0),Q.mutate(Y,A).pipe((0,v.R)(N),(0,d.x)(()=>{V.isSubmitting$.next(!1)})).subscribe({next:U=>{U.data&&S&&S(U.data)},error:U=>{U.graphQLErrors.length>0?V.submitError$.next(U.graphQLErrors.map(M=>M.message)):U.networkError&&this.networkErrorService.networkError$.next(U.networkError),V.cleanup()},complete:()=>{V.submitError$.next([]),V.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),V.cleanup()}}),V}}},9333:(Ot,be,a)=>{a.d(be,{h:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[t.ez]}),d})()},7871:(Ot,be,a)=>{a.d(be,{P:()=>U});var t=a(5879),i=a(6814),v=a(6109);function d(M,e){1&M&&(t.ynx(0),t._uU(1," N/A "),t.BQk())}function s(M,e){1&M&&(t.ynx(0),t._uU(1," Not applicable "),t.BQk())}function L(M,e){if(1&M&&(t.TgZ(0,"span",4),t.ynx(1,0),t.YNc(2,d,2,0,"ng-container",5),t.YNc(3,s,2,0,"ng-container",6),t.BQk(),t.qZA()),2&M){const I=t.oxw();t.xp6(1),t.Q6J("ngSwitch",I.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function Q(M,e){1&M&&(t.ynx(0),t._uU(1," \u2013\xa0\u2013 "),t.BQk())}function Y(M,e){1&M&&(t.ynx(0),t._uU(1,"Not specified"),t.BQk())}function A(M,e){if(1&M&&(t.TgZ(0,"span",7),t.ynx(1,0),t.YNc(2,Q,2,0,"ng-container",5),t.YNc(3,Y,2,0,"ng-container",6),t.BQk(),t.qZA()),2&M){const I=t.oxw();t.xp6(1),t.Q6J("ngSwitch",I.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function S(M,e){1&M&&(t.ynx(0),t._uU(1,"!?"),t.BQk())}function N(M,e){1&M&&(t.ynx(0),t._uU(1,"Unspecified"),t.BQk())}function V(M,e){if(1&M&&(t.TgZ(0,"span",8),t.ynx(1,0),t.YNc(2,S,2,0,"ng-container",5),t.YNc(3,N,2,0,"ng-container",6),t.BQk(),t.qZA()),2&M){const I=t.oxw();t.xp6(1),t.Q6J("ngSwitch",I.cvcDisplayMode),t.xp6(1),t.Q6J("ngSwitchCase","small")}}let U=(()=>{class M{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}}return M.\u0275fac=function(I){return new(I||M)},M.\u0275cmp=t.Xpm({type:M,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(I,k){1&I&&(t.ynx(0,0),t.YNc(1,L,4,2,"span",1),t.YNc(2,A,4,2,"span",2),t.YNc(3,V,4,2,"span",3),t.BQk()),2&I&&(t.Q6J("ngSwitch",k.cvcEmptyCategory),t.xp6(1),t.Q6J("ngSwitchCase","not-applicable"),t.xp6(1),t.Q6J("ngSwitchCase","unspecified"),t.xp6(1),t.Q6J("ngSwitchCase","invalid"))},dependencies:[i.RF,i.n9,i.ED,v.SY],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]}),M})()},3517:(Ot,be,a)=>{a.d(be,{M:()=>s});var t=a(6814),i=a(551),v=a(6109),d=a(5879);let s=(()=>{class L{}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[t.ez,v.cg,i.PV]}),L})()},3670:(Ot,be,a)=>{a.d(be,{J:()=>Pe});var t=a(5879),i=a(9111),v=a(6814),d=a(156),s=a(2851),L=a(1813),Q=a(96),Y=a(4402),A=a(8213),S=a(1598),N=a(8545);function V(We,Be){if(1&We&&t._UZ(0,"cvc-molecular-profile-popover",9),2&We){const xe=t.oxw();t.Q6J("molecularProfileId",xe.entity.entityId)}}function U(We,Be){if(1&We&&t._UZ(0,"cvc-disease-popover",10),2&We){const xe=t.oxw();t.Q6J("diseaseId",xe.entity.entityId)}}function M(We,Be){if(1&We&&t._UZ(0,"cvc-therapy-popover",11),2&We){const xe=t.oxw();t.Q6J("therapyId",xe.entity.entityId)}}function e(We,Be){if(1&We&&t._UZ(0,"cvc-source-popover",12),2&We){const xe=t.oxw();t.Q6J("sourceId",xe.entity.entityId)}}function I(We,Be){if(1&We&&t._UZ(0,"cvc-phenotype-popover",13),2&We){const xe=t.oxw();t.Q6J("phenotypeId",xe.entity.entityId)}}function k(We,Be){if(1&We&&t._UZ(0,"cvc-evidence-popover",14),2&We){const xe=t.oxw();t.Q6J("evidenceId",xe.entity.entityId)}}function ge(We,Be){if(1&We&&t._UZ(0,"cvc-gene-popover",15),2&We){const xe=t.oxw();t.Q6J("geneId",xe.entity.entityId)}}function Ce(We,Be){if(1&We&&t._UZ(0,"cvc-variant-popover",16),2&We){const xe=t.oxw();t.Q6J("variantId",xe.entity.entityId)}}const Z=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let F=(()=>{class We{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}}return We.\u0275fac=function(xe){return new(xe||We)},We.\u0275cmp=t.Xpm({type:We,selectors:[["cvc-entity-tag-popover"]],inputs:{entity:"entity"},decls:9,vars:9,consts:[[3,"ngSwitch"],[3,"molecularProfileId",4,"ngSwitchCase"],[3,"diseaseId",4,"ngSwitchCase"],[3,"therapyId",4,"ngSwitchCase"],[3,"sourceId",4,"ngSwitchCase"],[3,"phenotypeId",4,"ngSwitchCase"],[3,"evidenceId",4,"ngSwitchCase"],[3,"geneId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"geneId"],[3,"variantId"]],template:function(xe,te){1&xe&&(t.ynx(0,0),t.YNc(1,V,1,1,"cvc-molecular-profile-popover",1),t.YNc(2,U,1,1,"cvc-disease-popover",2),t.YNc(3,M,1,1,"cvc-therapy-popover",3),t.YNc(4,e,1,1,"cvc-source-popover",4),t.YNc(5,I,1,1,"cvc-phenotype-popover",5),t.YNc(6,k,1,1,"cvc-evidence-popover",6),t.YNc(7,ge,1,1,"cvc-gene-popover",7),t.YNc(8,Ce,1,1,"cvc-variant-popover",8),t.BQk()),2&xe&&(t.Q6J("ngSwitch",te.entity.entityType),t.xp6(1),t.Q6J("ngSwitchCase","MolecularProfile"),t.xp6(1),t.Q6J("ngSwitchCase","Disease"),t.xp6(1),t.Q6J("ngSwitchCase","Therapy"),t.xp6(1),t.Q6J("ngSwitchCase","Source"),t.xp6(1),t.Q6J("ngSwitchCase","Phenotype"),t.xp6(1),t.Q6J("ngSwitchCase","EvidenceItem"),t.xp6(1),t.Q6J("ngSwitchCase","Gene"),t.xp6(1),t.Q6J("ngSwitchCase","Variant"))},dependencies:[v.RF,v.n9,d._,s.I,L.p,Q.a,Y.S,A._,S.Q,N.m],encapsulation:2,changeDetection:0}),We})();var R=a(4190),O=a(551),P=a(5695),x=a(6109),de=a(7417),ue=a(7334),j=a(2616),me=a(1201);function re(We,Be){}function he(We,Be){if(1&We){const xe=t.EpF();t.TgZ(0,"span",6)(1,"nz-tag",7),t.NdJ("nzCheckedChange",function(){t.CHM(xe);const ae=t.oxw();return t.KtG(ae.cvcTagCheckedChange)})("nzOnClose",function(ae){t.CHM(xe);const De=t.oxw();return t.KtG(De.cvcOnClose.next(ae))}),t.TgZ(2,"span",8),t.YNc(3,re,0,0,"ng-template",9),t.qZA()()()}if(2&We){const xe=t.oxw(),te=t.MAs(6),ae=t.MAs(8);t.xp6(1),t.Q6J("nzMode",xe.cvcMode)("nzChecked",xe.cvcTagChecked),t.xp6(1),t.Q6J("nzPopoverContent",xe.cvcShowPopover&&xe.popoverInput?te:void 0),t.xp6(1),t.Q6J("ngTemplateOutlet",ae)}}function Me(We,Be){}function Oe(We,Be){if(1&We&&(t.TgZ(0,"span",13),t.YNc(1,Me,0,0,"ng-template",9),t.qZA()),2&We){const xe=t.oxw(2),te=t.MAs(8);t.Q6J("nzTooltipTitle",xe.entity.tooltip),t.xp6(1),t.Q6J("ngTemplateOutlet",te)}}function kt(We,Be){if(1&We){const xe=t.EpF();t.TgZ(0,"span",10)(1,"nz-tag",11),t.NdJ("nzOnClose",function(ae){t.CHM(xe);const De=t.oxw();return t.KtG(De.cvcOnClose.next(ae))}),t.YNc(2,Oe,2,2,"span",12),t.qZA()()}if(2&We){const xe=t.oxw(),te=t.MAs(4);t.xp6(1),t.Q6J("nzMode","closeable"),t.xp6(1),t.Q6J("ngIf",xe.entity&&xe.entity.tooltip)("ngIfElse",te)}}function It(We,Be){}function Tt(We,Be){if(1&We&&(t.TgZ(0,"span",13),t.YNc(1,It,0,0,"ng-template",9),t.qZA()),2&We){const xe=t.oxw(2),te=t.MAs(8);t.Q6J("nzTooltipTitle",xe.entity.tooltip),t.xp6(1),t.Q6J("ngTemplateOutlet",te)}}function gt(We,Be){if(1&We&&(t.TgZ(0,"span",14),t.YNc(1,Tt,2,2,"span",12),t.qZA()),2&We){const xe=t.oxw(),te=t.MAs(4);t.xp6(1),t.Q6J("ngIf",xe.entity&&xe.entity.tooltip)("ngIfElse",te)}}function _t(We,Be){}function Ft(We,Be){if(1&We&&(t.TgZ(0,"span",8),t.YNc(1,_t,0,0,"ng-template",9),t.qZA()),2&We){const xe=t.oxw(),te=t.MAs(6),ae=t.MAs(8);t.Q6J("nzPopoverContent",xe.popoverInput?te:void 0),t.xp6(1),t.Q6J("ngTemplateOutlet",ae)}}function rn(We,Be){if(1&We&&t._UZ(0,"cvc-entity-tag-popover",16),2&We){const xe=t.oxw(2);t.Q6J("entity",xe.popoverInput)}}function bn(We,Be){if(1&We&&t.YNc(0,rn,1,1,"cvc-entity-tag-popover",15),2&We){const xe=t.oxw();t.Q6J("ngIf",xe.popoverInput)}}function et(We,Be){if(1&We&&(t.TgZ(0,"span"),t.GkF(1,9),t.qZA()),2&We){t.oxw();const xe=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",xe)}}function Re(We,Be){if(1&We&&(t.TgZ(0,"a",23),t.GkF(1,9),t.qZA()),2&We){t.oxw();const xe=t.MAs(4),te=t.oxw(2);t.Q6J("routerLink",te.entity.link),t.xp6(1),t.Q6J("ngTemplateOutlet",xe)}}function yt(We,Be){if(1&We&&(t._UZ(0,"span",26),t.ALo(1,"typenameToIcon"),t.ALo(2,"entityColor")),2&We){const xe=t.oxw(4);t.Q6J("nzType",t.lcZ(1,2,xe.typename))("nzTwotoneColor",t.lcZ(2,4,xe.typename))}}function je(We,Be){if(1&We&&(t.YNc(0,yt,3,6,"span",24),t._UZ(1,"span",25),t.ALo(2,"highlightTypeahead")),2&We){t.oxw(2);const xe=t.MAs(4),te=t.oxw();t.Q6J("ngIf",te.typename)("ngIfElse",xe),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,3,te.entity.name,te.cvcEmphasize),t.oJD)}}function Ut(We,Be){if(1&We&&(t.ynx(0),t.YNc(1,et,2,1,"span",20),t.YNc(2,Re,2,2,"a",21),t.YNc(3,je,3,6,"ng-template",null,22,t.W1O),t.BQk()),2&We){const xe=t.oxw(2);t.xp6(1),t.Q6J("ngIf",xe.cvcDisableLink),t.xp6(1),t.Q6J("ngIf",!xe.cvcDisableLink)}}function Xt(We,Be){}function _n(We,Be){if(1&We&&(t.YNc(0,Xt,0,0,"ng-template",9),t._uU(1)),2&We){t.oxw();const xe=t.MAs(4),te=t.oxw();t.Q6J("ngTemplateOutlet",xe),t.xp6(1),t.hij(" CACHE-MISS (",te.cvcCacheId,") ")}}function On(We,Be){1&We&&t._UZ(0,"span",27)}function Jt(We,Be){if(1&We&&(t.YNc(0,Ut,5,2,"ng-container",17),t.YNc(1,_n,2,2,"ng-template",null,18,t.W1O),t.YNc(3,On,1,0,"ng-template",null,19,t.W1O)),2&We){const xe=t.MAs(2),te=t.oxw();t.Q6J("ngIf",te.entity)("ngIfElse",xe)}}function Nt(We,Be){if(1&We&&t._UZ(0,"cvc-entity-tag-popover",16),2&We){const xe=t.oxw(2);t.Q6J("entity",xe.popoverInput)}}function Ye(We,Be){if(1&We&&t.YNc(0,Nt,1,1,"cvc-entity-tag-popover",15),2&We){const xe=t.oxw();t.Q6J("ngIf",xe.popoverInput)}}const He=We=>void 0!==We&&We.__typename&&We.id&&void 0!==We.name;let Pe=(()=>{class We{set cvcLinkableEntity(xe){xe&&this.setLinkableEntity(xe)}set cvcCacheId(xe){xe&&this.setCachedLinkableEntity(xe)}constructor(xe){this.apollo=xe,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcTagCheckedChange=new t.vpe,this.cvcOnClose=new t.vpe}hasPopover(xe){return Z.includes(xe)}setLinkableEntity(xe){He(xe)&&(this.typename=xe.__typename,this.id=xe.id,this.entity=xe,this.setPopoverInput(xe))}setCachedLinkableEntity(xe){const[te,ae]=xe.split(":");if(this.typename=te,this.id=+ae,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${xe}. Cache IDs must be in the format 'TYPENAME:ID'.`);let De;De=this.cvcDisableLink?this.cvcHasTooltip?{id:`${te}:${ae}`,fragment:i.Ps` - fragment Linkable${te}Entity on ${te} { - id - name - tooltip - } - `}:{id:`${te}:${ae}`,fragment:i.Ps` - fragment Linkable${te}Entity on ${te} { - id - name - } - `}:{id:`${te}:${ae}`,fragment:i.Ps` - fragment Linkable${te}Entity on ${te} { - id - name - link - } - `};const Ge=this.apollo.client.readFragment(De);He(Ge)?(this.setPopoverInput(Ge),this.entity=Ge):console.error(`entity-tag could not find cached entity ${xe}`)}setPopoverInput(xe){He(xe)&&this.hasPopover(xe.__typename)&&(this.popoverInput={entityId:xe.id,entityType:xe.__typename})}ngOnChanges(xe){xe.cvcMode&&"checkable"===xe.cvcMode.currentValue&&(this.cvcDisableLink=!0),xe.cvcContext&&"default"!==xe.cvcContext.currentValue&&(this.cvcDisableLink=!0)}}return We.\u0275fac=function(xe){return new(xe||We)(t.Y36(i._M))},We.\u0275cmp=t.Xpm({type:We,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(xe,te){2&xe&&t.ekj("full-width",!0===te.cvcFullWidth)("label-max",void 0!==te.cvcTruncateLabel)("label-max-50","50px"===te.cvcTruncateLabel)("label-max-75","75px"===te.cvcTruncateLabel)("label-max-100","100px"===te.cvcTruncateLabel)("label-max-125","125px"===te.cvcTruncateLabel)("label-max-150","150px"===te.cvcTruncateLabel)("label-max-175","175px"===te.cvcTruncateLabel)("label-max-200","200px"===te.cvcTruncateLabel)("label-max-250","250px"===te.cvcTruncateLabel)("label-max-300","300px"===te.cvcTruncateLabel)("label-max-350","350px"===te.cvcTruncateLabel)("label-max-400","400px"===te.cvcTruncateLabel)("label-max-450","450px"===te.cvcTruncateLabel)("label-max-500","500px"===te.cvcTruncateLabel)("rejected","REJECTED"===te.cvcStatus)("accepted","ACCEPTED"===te.cvcStatus)("submitted","SUBMITTED"===te.cvcStatus)("new","NEW"===te.cvcStatus)("superseded","SUPERSEDED"===te.cvcStatus)},inputs:{cvcLinkableEntity:"cvcLinkableEntity",cvcCacheId:"cvcCacheId",cvcStatus:"cvcStatus",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcEmphasize:"cvcEmphasize",cvcDisableLink:"cvcDisableLink",cvcTagChecked:"cvcTagChecked",cvcHasTooltip:"cvcHasTooltip",cvcFullWidth:"cvcFullWidth",cvcShowPopover:"cvcShowPopover",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.TTD],decls:11,vars:3,consts:[["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],["noTooltip",""],["popoverContent",""],["tagContent",""],[1,"default"],[3,"nzMode","nzChecked","nzCheckedChange","nzOnClose"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzMode","nzOnClose"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],["cacheMiss",""],["noIcon",""],[4,"ngIf"],[3,"routerLink",4,"ngIf"],["tagLabel",""],[3,"routerLink"],["nz-icon","","nzTheme","twotone","class","tag-icon",3,"nzType","nzTwotoneColor",4,"ngIf","ngIfElse"],[1,"tag-label",3,"innerHtml"],["nz-icon","","nzTheme","twotone",1,"tag-icon",3,"nzType","nzTwotoneColor"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"tag-icon"]],template:function(xe,te){1&xe&&(t.YNc(0,he,4,4,"span",0),t.YNc(1,kt,3,3,"span",1),t.YNc(2,gt,2,2,"span",2),t.YNc(3,Ft,2,2,"ng-template",null,3,t.W1O),t.YNc(5,bn,1,1,"ng-template",null,4,t.W1O),t.YNc(7,Jt,5,2,"ng-template",null,5,t.W1O),t.YNc(9,Ye,1,1,"ng-template",null,4,t.W1O)),2&xe&&(t.Q6J("ngIf","default"===te.cvcContext),t.xp6(1),t.Q6J("ngIf","select-item"===te.cvcContext),t.xp6(1),t.Q6J("ngIf","multi-select-item"===te.cvcContext))},dependencies:[v.O5,v.tP,R.rH,O.Ls,P.j,x.SY,de.lU,F,ue.A,j.a,me.Z],styles:['.label-max-50[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:50px;overflow:hidden;text-overflow:ellipsis}.label-max-75[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:75px;overflow:hidden;text-overflow:ellipsis}.label-max-100[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:100px;overflow:hidden;text-overflow:ellipsis}.label-max-125[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:125px;overflow:hidden;text-overflow:ellipsis}.label-max-150[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:150px;overflow:hidden;text-overflow:ellipsis}.label-max-175[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:175px;overflow:hidden;text-overflow:ellipsis}.label-max-200[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:200px;overflow:hidden;text-overflow:ellipsis}.label-max-250[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:250px;overflow:hidden;text-overflow:ellipsis}.label-max-300[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:300px;overflow:hidden;text-overflow:ellipsis}.label-max-350[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:350px;overflow:hidden;text-overflow:ellipsis}.label-max-400[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis}.label-max-450[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:450px;overflow:hidden;text-overflow:ellipsis}.label-max-500[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:500px;overflow:hidden;text-overflow:ellipsis}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-right-width:2px}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#e6e6e6;background-color:#fff;color:#999999d9}.submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#ffe58f}.accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#b7eb8f}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{width:100%}nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px} -checkable{background-color:transparent;cursor:pointer} -checkable:not( -checkable-checked):hover{color:#1890ff} -checkable:active, -checkable-checked{color:#fff} -checkable-checked{background-color:#1890ff} -checkable:active{background-color:#096dd9}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{padding-right:0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}a.disabled[_ngcontent-%COMP%]{pointer-events:none}'],changeDetection:0}),We})()},3328:(Ot,be,a)=>{a.d(be,{x:()=>Ce});var t=a(6814),i=a(551),v=a(5695),d=a(2524),s=a(6109),L=a(4190),Q=a(5879);let Y=(()=>{class Z{}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275mod=Q.oAB({type:Z}),Z.\u0275inj=Q.cJS({imports:[t.ez]}),Z})();var A=a(7417),S=a(5687),N=a(1855),V=a(9021),U=a(2064),M=a(1332),e=a(6247),I=a(1207),k=a(6446);let ge=(()=>{class Z{}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275mod=Q.oAB({type:Z}),Z.\u0275inj=Q.cJS({imports:[t.ez,U._,S.t,e.n,I.s,M.I,N.f,V.w,k.k]}),Z})(),Ce=(()=>{class Z{}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275mod=Q.oAB({type:Z}),Z.\u0275inj=Q.cJS({imports:[t.ez,L.Bz,i.PV,v.X,s.cg,A.$6,Y,d.s,ge,Y]}),Z})()},4634:(Ot,be,a)=>{a.d(be,{F:()=>k});var A,t=a(655),i=a(1791),v=a(5879),d=a(4190),s=a(6814),L=a(2669),Q=a(3903),Y=a(8091);function S(ge,Ce){if(1&ge&&v._UZ(0,"nz-alert",6),2&ge){v.oxw();const Z=v.MAs(3),F=v.oxw();v.MGl("nzMessage","Error Submitting ",F.entityType,""),v.Q6J("nzDescription",Z)}}function N(ge,Ce){if(1&ge&&(v.TgZ(0,"li"),v._uU(1),v.qZA()),2&ge){const Z=Ce.$implicit;v.xp6(1),v.hij(" ",Z," ")}}function V(ge,Ce){if(1&ge&&(v.TgZ(0,"ul"),v.YNc(1,N,2,1,"li",7),v.qZA()),2&ge){const Z=v.oxw().ngIf;v.xp6(1),v.Q6J("ngForOf",Z)}}function U(ge,Ce){if(1&ge&&(v.ynx(0),v.YNc(1,S,1,2,"nz-alert",4),v.YNc(2,V,2,1,"ng-template",null,5,v.W1O),v.BQk()),2&ge){const Z=Ce.ngIf;v.xp6(1),v.Q6J("ngIf",Z.length>0)}}function M(ge,Ce){if(1&ge&&(v.ynx(0),v._UZ(1,"nz-alert",8),v.BQk()),2&ge){const Z=v.oxw();v.xp6(1),v.MGl("nzMessage","",Z.entityType," Submitted"),v.Q6J("nzDescription",Z.successMessage?Z.successMessage:null)}}function e(ge,Ce){1&ge&&v.Hsn(0)}let k=((A=class{set mutationState(Ce){this._mutationState=Ce,this.currentTimer&&clearTimeout(this.currentTimer),Ce&&Ce.submitSuccess$.pipe((0,i.t)(this)).subscribe(Z=>{Z&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(Ce){this.router=Ce}ngOnInit(){}}).\u0275fac=function(Ce){return new(Ce||A)(v.Y36(d.F0))},A.\u0275cmp=v.Xpm({type:A,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:["*"],decls:8,vars:10,consts:[[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["form",""],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(Ce,Z){if(1&Ce&&(v.F$t(),v.TgZ(0,"nz-spin",0),v.ALo(1,"ngrxPush"),v.YNc(2,U,4,1,"ng-container",1),v.ALo(3,"ngrxPush"),v.YNc(4,M,2,2,"ng-container",2),v.ALo(5,"ngrxPush"),v.YNc(6,e,1,0,"ng-template",null,3,v.W1O),v.qZA()),2&Ce){const F=v.MAs(7);v.Q6J("nzSpinning",v.lcZ(1,4,null==Z.mutationState?null:Z.mutationState.isSubmitting$)),v.xp6(2),v.Q6J("ngIf",v.lcZ(3,6,null==Z.mutationState?null:Z.mutationState.submitError$)),v.xp6(2),v.Q6J("ngIf",v.lcZ(5,8,null==Z.mutationState?null:Z.mutationState.submitSuccess$))("ngIfElse",F)}},dependencies:[s.sg,s.O5,L.W,Q.r,Y.fM],encapsulation:2,changeDetection:0}),A);k=(0,t.gn)([(0,i.c)()],k)},5106:(Ot,be,a)=>{a.d(be,{g:()=>L});var t=a(6814),i=a(3903),v=a(2574),d=a(2669),s=a(5879);let L=(()=>{class Q{}return Q.\u0275fac=function(A){return new(A||Q)},Q.\u0275mod=s.oAB({type:Q}),Q.\u0275inj=s.cJS({imports:[t.ez,d.j,i.L,v.zf]}),Q})()},6683:(Ot,be,a)=>{a.d(be,{S:()=>F2});var t=a(6223),i=a(4190),v=a(5545),d=a(7459),s=a(3599),L=a(279),Q=a(6180);const Y={paramKey:!0};class A{constructor(y){this.route=y}postPopulate(y){if(y.fieldGroup||y.fieldArray||!1===(y.props||{...Y}).paramKey||(this.paramKey=this.getParamKey(y),!this.paramKey))return;const m=this.getRouteSub(this.route,y),G=y.hooks?.onDestroy;m&&G&&(y.hooks={...y.hooks,onDestroy:Fe=>{m.unsubscribe(),G(Fe)}})}getParamKey(y){const c=y.props;if("string"==typeof c.paramKey)return c.paramKey;if(y.key){if("string"==typeof y.key)return y.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(y.key)} of type ${typeof y.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(y,c){const m=y.queryParams.pipe((0,Q.g)(this.paramKey)).subscribe(G=>{const Fe=c.formControl,Et=G[this.paramKey];if(!Et)return void m.unsubscribe();let Mn;try{Mn=JSON.parse(Et)}catch(kn){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${c.id}: ${kn}`),console.warn("Note: Query values are parsed as JSON, therefore enum strings must be enclosed in double-quotes, and numeric entity IDs must be bare, unquoted."),void m.unsubscribe()}if(Mn){if(Object.keys(Mn).length>0&&Mn.constructor===Object)return console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(Mn)}`),void m.unsubscribe();Fe.setValue(Mn)}});return m}}function S(u){return{extensions:[{name:"observeQueryParam",extension:new A(u)}]}}const U={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,y)=>`This field has a minimum length of ${y.templateOptions?.minLength}.`},{name:"maxLength",message:(u,y)=>`This field has a maximum length of ${y.templateOptions?.maxLength}.`},{name:"min",message:(u,y)=>`This field has a minimum value of ${y.templateOptions?.min}.`},{name:"max",message:(u,y)=>`This field has a maximum value of ${y.templateOptions?.max}.`},{name:"pattern",message:(u,y)=>`This field's value must fit the pattern ${y.templateOptions?.pattern}.`},{name:"integer",message:(u,y)=>"Value must be an integer."},{name:"nucleotide",message:(u,y)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,y)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,y)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,y)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,y)=>{for(var c of u.value)if(""!==c&&null!=c&&!/^\d+$/.test(c))return{clinvar:!0};return null}}]};var M=a(6814),e=a(5879),I=a(8091),k=a(95),ge=a(2392);function Ce(u,y){if(1&u&&(e.TgZ(0,"div",9),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function Z(u,y){if(1&u&&(e.TgZ(0,"div",11),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function F(u,y){if(1&u&&(e.TgZ(0,"div",12),e.GkF(1,10),e.qZA()),2&u){e.oxw();const c=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function R(u,y){if(1&u&&(e.TgZ(0,"nz-form-label",17),e._UZ(1,"span",18),e.qZA()),2&u){const c=y.ngrxLet,m=e.oxw(3);e.Q6J("nzRequired",m.props.required)("nzFor",m.id)("nzNoColon",!0)("nzTooltipTitle",m.props.tooltip)("nzSpan",c.span?c.span:null),e.xp6(1),e.Q6J("nzContent",m.props.label)}}function O(u,y){if(1&u&&(e.ynx(0),e.YNc(1,R,2,6,"nz-form-label",16),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.label)}}function P(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",19),e.GkF(1,null,20),e.qZA()),2&u){const c=y.ngrxLet,m=e.oxw(2),G=e.MAs(11),Fe=e.MAs(13);e.Q6J("nzExtra",m.wrapper.showExtra&&!m.showError?G:void 0)("nzValidateStatus",m.errorState)("nzErrorTip",Fe)("nzSpan",m.props.hideLabel?24:c.span?c.span:null)}}const x=function(u,y,c,m){return{disabled:u,error:y,required:c,valid:m}};function de(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",13),e.YNc(1,O,2,1,"ng-container",14),e.YNc(2,P,3,4,"nz-form-control",15),e.qZA()),2&u){const c=e.oxw();e.Q6J("nzGutter",c.wrapper.layout.item.gutter)("ngClass",e.l5B(4,x,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}const ue=function(u,y){return{disabled:u,error:y}};function j(u,y){if(1&u&&(e.TgZ(0,"nz-form-label",24),e._UZ(1,"span",25),e.qZA()),2&u){const c=e.oxw(3);e.Q6J("ngClass",e.WLB(6,ue,c.props.disabled,c.showError))("nzRequired",c.props.required)("nzFor",c.id)("nzTooltipTitle",c.props.tooltip)("nzNoColon",!0),e.xp6(1),e.Q6J("nzContent",c.props.label)}}function me(u,y){if(1&u&&(e.ynx(0),e.YNc(1,j,2,9,"nz-form-label",23),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.label)}}function re(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",26),e.GkF(1,null,20),e.qZA()),2&u){const c=e.oxw(2),m=e.MAs(11),G=e.MAs(13);e.Q6J("nzExtra",c.wrapper.showExtra&&!c.showError?m:void 0)("nzValidateStatus",c.errorState)("nzErrorTip",G)}}function he(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",21),e.YNc(1,me,2,1,"ng-container",14),e.YNc(2,re,3,3,"nz-form-control",22),e.qZA()),2&u){const c=e.oxw();e.Q6J("ngClass",e.l5B(3,x,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}function Me(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-form-label",28),e._UZ(2,"span",25),e.qZA(),e.BQk()),2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("nzRequired",c.props.required)("nzTooltipTitle",c.props.tooltip)("nzFor",c.id)("nzNoColon",!0),e.xp6(1),e.Q6J("nzContent",c.props.label)}}function Oe(u,y){if(1&u&&e._UZ(0,"formly-validation-message",29),2&u){const c=e.oxw(3);e.Q6J("field",c.field)}}function kt(u,y){if(1&u&&(e.TgZ(0,"nz-form-control",26),e.GkF(1,null,20),e.YNc(3,Oe,1,1,"ng-template",null,8,e.W1O),e.qZA()),2&u){const c=e.MAs(4),m=e.oxw(2),G=e.MAs(11);e.Q6J("nzExtra",m.wrapper.showExtra&&!m.showError?G:void 0)("nzValidateStatus",m.errorState)("nzErrorTip",c)}}function It(u,y){if(1&u&&(e.TgZ(0,"nz-form-item",27),e.YNc(1,Me,3,5,"ng-container",14),e.YNc(2,kt,5,3,"nz-form-control",22),e.qZA()),2&u){const c=e.oxw();e.Q6J("ngClass",e.l5B(3,x,c.props.disabled,c.showError,c.props.required,"VALID"===c.field.formControl.status)),e.xp6(1),e.Q6J("ngIf",c.props.label&&!0!==c.props.hideLabel),e.xp6(1),e.Q6J("ngrxLet",c.wrapper.layout.control)}}function Tt(u,y){if(1&u&&e._UZ(0,"span",34),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function gt(u,y){if(1&u&&e._UZ(0,"span",35),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function _t(u,y){if(1&u&&e._UZ(0,"span",36),2&u){const c=e.oxw(2);e.Q6J("innerHTML",c.props.description,e.oJD)}}function Ft(u,y){if(1&u&&(e.TgZ(0,"div",30),e.ynx(1,0),e.YNc(2,Tt,1,1,"span",31),e.YNc(3,gt,1,1,"span",32),e.YNc(4,_t,1,1,"span",33),e.BQk(),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngSwitch",c.props.extraType),e.xp6(1),e.Q6J("ngSwitchCase","prompt"),e.xp6(1),e.Q6J("ngSwitchCase","description")}}function rn(u,y){if(1&u&&(e.TgZ(0,"div",37),e._UZ(1,"formly-validation-message",29),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("field",c.field)}}let bn=(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}constructor(){super(),this.formLayout="vertical"}ngOnInit(){try{this.wrapper={layout:{item:{gutter:[6,12],...this.props.layout?.item?this.props.layout.item:void 0},label:{span:4,...this.props.layout?.label?this.props.layout.label:void 0},control:{span:20,...this.props.layout?.control?this.props.layout?.control:void 0}},showExtra:void 0===this.props.layout?.showExtra||this.props.layout.showExtra}}catch(c){console.error(c)}this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-field-wrapper"]],features:[e.qOj],decls:14,vars:4,consts:[[3,"ngSwitch"],["class","layout-horizontal",4,"ngSwitchCase"],["class","layout-inline",4,"ngSwitchCase"],["class","layout-vertical",4,"ngSwitchCase"],["horizontalFieldWrapper",""],["verticalFieldWrapper",""],["inlineFieldWrapper",""],["descriptionTpl",""],["errorTpl",""],[1,"layout-horizontal"],[3,"ngTemplateOutlet"],[1,"layout-inline"],[1,"layout-vertical"],[1,"layout-horizontal",3,"nzGutter","ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip","nzSpan",4,"ngrxLet"],[3,"nzRequired","nzFor","nzNoColon","nzTooltipTitle","nzSpan",4,"ngrxLet"],[3,"nzRequired","nzFor","nzNoColon","nzTooltipTitle","nzSpan"],["nz-typography","","nzEllipsis","",3,"nzContent"],[3,"nzExtra","nzValidateStatus","nzErrorTip","nzSpan"],["fieldComponent",""],[1,"layout-vertical",3,"ngClass"],[3,"nzExtra","nzValidateStatus","nzErrorTip",4,"ngrxLet"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon",4,"ngrxLet"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[1,"layout-inline",3,"ngClass"],[3,"nzRequired","nzTooltipTitle","nzFor","nzNoColon"],[3,"field"],[1,"form-field-description"],["class","extra-prompt",3,"innerHTML",4,"ngSwitchCase"],["class","extra-description",3,"innerHTML",4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchDefault"],[1,"extra-prompt",3,"innerHTML"],[1,"extra-description",3,"innerHTML"],[3,"innerHTML"],[1,"cvc-form-field-validation"]],template:function(c,m){1&c&&(e.ynx(0,0),e.YNc(1,Ce,2,1,"div",1),e.YNc(2,Z,2,1,"div",2),e.YNc(3,F,2,1,"div",3),e.BQk(),e.YNc(4,de,3,9,"ng-template",null,4,e.W1O),e.YNc(6,he,3,8,"ng-template",null,5,e.W1O),e.YNc(8,It,3,8,"ng-template",null,6,e.W1O),e.YNc(10,Ft,5,3,"ng-template",null,7,e.W1O),e.YNc(12,rn,2,1,"ng-template",null,8,e.W1O)),2&c&&(e.Q6J("ngSwitch",m.formLayout),e.xp6(1),e.Q6J("ngSwitchCase","horizontal"),e.xp6(1),e.Q6J("ngSwitchCase","inline"),e.xp6(1),e.Q6J("ngSwitchCase","vertical"))},dependencies:[M.mk,M.O5,M.tP,M.RF,M.n9,M.ED,I.eJ,k.t3,k.SK,s.Nx,s.iK,s.Fd,ge.ZU,v.M2],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.layout-vertical[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-wrap:nowrap;flex-direction:column}.layout-horizontal[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-direction:inherit}.layout-horizontal[_ngcontent-%COMP%] nz-form-item:first-of-type nz-form-label{text-align:right;line-height:28px;white-space:inherit;padding:inherit}.layout-inline[_ngcontent-%COMP%] nz-form-item:first-of-type{flex-direction:inherit}.layout-inline[_ngcontent-%COMP%] nz-form-item:first-of-type nz-form-label{height:28px;line-height:28px;white-space:inherit;padding:inherit}.cvc-form-field-validation[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%]{min-height:16px;line-height:1.2;margin-top:4px}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%]{font-weight:400}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%]{font-style:oblique}.cvc-form-field-validation[_ngcontent-%COMP%]{font-weight:600}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-horizontal[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}nz-form-item.layout-vertical[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #d9d9d9;padding:4px 8px;border-radius:6px;margin-bottom:16px}nz-form-item.layout-vertical.disabled[_ngcontent-%COMP%]{border:1px solid #f5f5f5;background-color:#f5f5f5}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-vertical[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type{text-align:right;margin-right:6px}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required{font-weight:500}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type label.ant-form-item-required:before{border:1px solid #ff4d4f;height:1em;content:""}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type span.label{padding-right:4px}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.disabled label span.label{color:#00000073}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.error label span.label{color:#ff4d4f}nz-form-item.layout-inline[_ngcontent-%COMP%] nz-form-label:first-of-type.valid label span.label{color:#ff4d4f}'],changeDetection:0}),u})();var et=a(6109),Re=a(551);const yt={wrappers:[{name:"form-field",component:bn}]};let je=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,s.U5,k.Jb,Re.PV,et.cg,ge.ZJ,v.X0.forChild(yt)]}),u})();var Ut=a(2612);const _n={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends v.fS{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Ut.Ie,v.JD],changeDetection:0}),u})()}]};let On=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Ut.Wr,v.X0.forChild(_n),je]}),u})();var Jt=a(5695),Nt=a(2524);let Ye=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Jt.X,Re.PV,et.cg,Nt.s]}),u})();var He=a(7248),Pe=a(824),We=a(9691);let Be=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(),He.F,Re.PV,s.U5,We.LV,Pe.o7,Nt.s]}),u})();var xe=a(2),te=a(655),ae=a(1791),De=a(2181),Ge=a(5619),Ct=a(7398),sn=a(4223);function yn(){var u;let y=((u=class extends v.fS{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,De.h)(m=>m.field.id===this.field.id),(0,sn.j)("value")),this.onValueChange$=new Ge.X(this.formControl.value?this.formControl.value:void 0),this.onModelChange$.pipe((0,ae.t)(this)).subscribe(m=>{this.onValueChange$.next(m)}),this.field.options?.formState&&this.field.options.formState.fields&&(this.state=this.field.options.formState,this.autoConfigureStateValueChanges())):console.error(`${this.field.id} could not find its fieldChanges Observable, ensure configureBaseField() is called in this field's AfterViewInit hook.`)}autoConfigureStateValueChanges(){!this.field.key&&"string"==typeof this.field.key&&console.warn(`${this.field.id} cannot auto-configure state value changes, as its field key is not a string. field.key: `,this.field.key);const m=`${this.field.key}$`;this.state&&this.state.fields[m]?(this.stateValueChange$=this.state.fields[m],this.onValueChange$.pipe((0,Ct.U)(G=>null===G?void 0:G),(0,ae.t)(this)).subscribe(G=>{this.stateValueChange$&&this.stateValueChange$.next(G)})):console.warn(`${this.field.id} could not find state field ${m} on form state. State: `,this.state)}}).\u0275fac=function(){let c;return function(G){return(c||(c=e.n5z(u)))(G||u)}}(),u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac}),u);return y=(0,te.gn)([(0,ae.c)()],y),y}var st=a(8645),it=a(2460);function lt(){return function(y){return(()=>{class m extends y{configureEnumSelectField(Fe){this.selectOption$=new Ge.X([]),this.onTagClose$=new st.x,this.optionEnum$=Fe.optionEnum$,this.changeDetectorRef=Fe.changeDetectorRef,this.optionTemplate$=Fe.optionTemplate$?Fe.optionTemplate$:new Ge.X([]),this.optionTemplate$.pipe((0,it.M)(this.optionEnum$),(0,ae.t)(this)).subscribe(Et=>{this.emitSelectOptions(Et)}),this.onTagClose$.pipe((0,ae.t)(this)).subscribe(Et=>{this.resetField()})}emitSelectOptions([Fe,Et]){this.selectOption$.next(Et.map((Mn,kn)=>({label:Fe[kn]||Mn,value:Mn}))),this.changeDetectorRef?this.changeDetectorRef.detectChanges():console.error(`${this.field.id}'s configureEnumTagField() requires valid ChangeDetectorRef option, none detected.`)}resetField(){this.formControl.setValue(this.props.isMultiSelect?[]:void 0)}}return m.\u0275fac=function(){let G;return function(Et){return(G||(G=e.n5z(m)))(Et||m)}}(),m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac}),m})()}}var Pt=a(836);const Vt=function wt(u){for(var y=arguments.length,c=new Array(y>1?y-1:0),m=1;m{class u{constructor(){this.cvcSelectMode="default",this.cvcPlaceholder="Select an option",this.cvcOptions=[],this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcCustomTemplate=null,this.cvcOnFocus=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-enum-select"]],inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcOptions:"cvcOptions",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcModelChange:"cvcModelChange",cvcCustomTemplate:"cvcCustomTemplate"},outputs:{cvcOnFocus:"cvcOnFocus"},decls:1,vars:12,consts:[[3,"formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear","nzFocus","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-select",0),e.NdJ("nzFocus",function(){return m.cvcOnFocus.next()})("ngModelChange",function(Fe){return m.cvcModelChange&&m.cvcModelChange(m.cvcFormlyAttributes,Fe)}),e.qZA()),2&c&&(e.ekj("ng-dirty",m.cvcShowError),e.Q6J("formControl",m.cvcFormControl)("formlyAttributes",m.cvcFormlyAttributes)("nzMode",m.cvcSelectMode)("nzPlaceHolder",m.cvcPlaceholder?m.cvcPlaceholder:"Select Value")("nzOptions",m.cvcOptions?m.cvcOptions:e.DdM(11,jt))("nzCustomTemplate",m.cvcCustomTemplate?m.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",m.cvcDisabled)("nzAllowClear",m.cvcAllowClear))},dependencies:[t.JJ,t.oH,v.JD,We.Vq],changeDetection:0}),u})();var K=a(6967),w=a(7334);function J(u,y){}function Te(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",5)(1,"nz-tag",6),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnClose.next(G))}),e.YNc(2,J,0,0,"ng-template",7),e.qZA()()}if(2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode",c.cvcMode)("nzTooltipTitle",c.cvcTooltip)("nzChecked",c.cvcChecked),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function zt(u,y){}function nt(u,y){if(1&u&&(e.TgZ(0,"span",8)(1,"nz-tag",9),e.YNc(2,zt,0,0,"ng-template",7),e.qZA()()),2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode","checkable")("nzChecked",c.cvcChecked),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function qe(u,y){}function rt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",10)(1,"nz-tag",11),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnClose.next(G))}),e.YNc(2,qe,0,0,"ng-template",7),e.qZA()()}if(2&u){e.oxw();const c=e.MAs(5);e.xp6(1),e.Q6J("nzMode","closeable"),e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function Rt(u,y){}function St(u,y){if(1&u&&(e.TgZ(0,"span",12)(1,"nz-tag",13),e.YNc(2,Rt,0,0,"ng-template",7),e.qZA()()),2&u){const c=e.oxw(),m=e.MAs(5);e.xp6(1),e.Q6J("nzMode","default")("nzTooltipTitle",c.cvcTooltip),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}const gn=function(u){return{"tag-icon-large":u}};function Ze(u,y){if(1&u&&(e._UZ(0,"i",16),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw(2);e.Q6J("nzType",!0===c.cvcShowIcon?e.xi3(1,5,c.cvcAttrValue,"icon-name"):c.cvcShowIcon)("nzTwotoneColor",c.cvcIconColor)("nzTheme",c.cvcIconTheme)("ngClass",e.VKq(8,gn,!0===c.cvcZoomIcon)),e.uIk("style","color: "+c.cvcIconColor,e.Ckj)}}function ut(u,y){if(1&u&&(e._UZ(0,"span",17),e.ALo(1,"highlightTypeahead"),e.ALo(2,"evidenceEnumDisplay")),2&u){const c=e.oxw(2);e.Q6J("innerHtml",e.xi3(1,1,e.xi3(2,4,c.cvcAttrValue,"display-string"===c.cvcShowLabel?c.cvcShowLabel:"short-string"),c.cvcEmphasize),e.oJD)}}function ce(u,y){if(1&u&&(e.YNc(0,Ze,2,10,"i",14),e.YNc(1,ut,3,7,"span",15)),2&u){const c=e.oxw();e.Q6J("ngIf",c.cvcAttrValue&&c.cvcShowIcon),e.xp6(1),e.Q6J("ngIf",c.cvcShowLabel)}}let _e=(()=>{class u{constructor(){this.cvcShowLabel="display-string",this.cvcShowIcon=!0,this.cvcZoomIcon=!1,this.cvcContext="default",this.cvcMode="default",this.cvcChecked=!1,this.cvcIconColor="#797979",this.cvcLabelColor="#434343",this.cvcIconTheme="outline",this.cvcFullWidth=!1,this.cvcOnClose=new e.vpe}ngOnChanges(c){c.cvcContext&&"compact"===c.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(c,m){2&c&&e.ekj("full-width",!0===m.cvcFullWidth)},inputs:{cvcAttrValue:"cvcAttrValue",cvcShowLabel:"cvcShowLabel",cvcShowIcon:"cvcShowIcon",cvcZoomIcon:"cvcZoomIcon",cvcTooltip:"cvcTooltip",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcChecked:"cvcChecked",cvcEmphasize:"cvcEmphasize",cvcIconColor:"cvcIconColor",cvcLabelColor:"cvcLabelColor",cvcIconTheme:"cvcIconTheme",cvcFullWidth:"cvcFullWidth"},outputs:{cvcOnClose:"cvcOnClose"},features:[e.TTD],decls:6,vars:4,consts:[["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],["tagContent",""],[1,"default"],["nz-tooltip","",3,"nzMode","nzTooltipTitle","nzChecked","nzOnClose"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzMode","nzOnClose"],[1,"compact"],["nz-tooltip","",3,"nzMode","nzTooltipTitle"],["nz-icon","","class","tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass",4,"ngIf"],["class","tag-label",3,"innerHtml",4,"ngIf"],["nz-icon","",1,"tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass"],[1,"tag-label",3,"innerHtml"]],template:function(c,m){1&c&&(e.YNc(0,Te,3,4,"span",0),e.YNc(1,nt,3,3,"span",1),e.YNc(2,rt,3,2,"span",2),e.YNc(3,St,3,3,"span",3),e.YNc(4,ce,2,2,"ng-template",null,4,e.W1O)),2&c&&(e.Q6J("ngIf","default"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","menu-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","select-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","compact"===m.cvcContext))},dependencies:[M.mk,M.O5,M.tP,Jt.j,Re.Ls,et.SY,K.Do,w.A],styles:['.full-width[_nghost-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background-color:#fff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]{border:1px solid #d9d9d9}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]:active{background-color:#e6f7ff}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:not(.menu-item nz-tag.ant-tag-checkable-checked)[_ngcontent-%COMP%]:hover{color:#000000d9;border-color:#1890ff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable-checked[_ngcontent-%COMP%]{border:transparent;background-color:#fff;color:#000000d9}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #f0f0f0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}'],changeDetection:0}),u})();const mt=["optionTemplates"];function Ae(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function at(u,y){1&u&&(e.ynx(0),e.YNc(1,Ae,1,1,"ng-template",null,3,e.W1O),e.BQk())}function Ht(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const un={Evidence:{PREDICTIVE:{SUPPORTS:"Experiment or study supports the variant's response to a drug",DOES_NOT_SUPPORT:"Experiment or study does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Experiment or study does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Supports a benign (for Predisposition) or lack of protective (for Protectiveness) role for a germline variant in cancer."},FUNCTIONAL:{SUPPORTS:"Experiment or study supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Experiment or study does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Not Applicable for Oncogenic Evidence Type.",SUPPORTS:"Supports an oncogenic or protective role for a somatic variant.",DOES_NOT_SUPPORT:"Supports a benign (for Oncogenicity) or lack of protective (for Protectiveness) role for a somatic variant in cancer."}},Assertion:{PREDICTIVE:{SUPPORTS:"Support the variant's response to a drug",DOES_NOT_SUPPORT:"Does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"},FUNCTIONAL:{SUPPORTS:"Supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{SUPPORTS:"Supports an oncogenic or protective role for a somatic variant",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"}}},Lt=Vt(yn(),lt()),ft={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends Lt{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Direction",labelFn:m=>`${m} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(m,G)=>`Select ${G?G+" ":""}${m} Direction`,requireTypePromptFn:m=>`Select ${m} Type to select its Direction`,formMode:"add"}},this.directionEnum$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.directionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new Ge.X("ERROR: Form state not found"));if(this.props.label=this.props.labelFn(this.state.entityName),this.props.tooltip=`An indicator of whether the ${this.state.entityName} statement supports or refutes the clinical significance of an event.`,this.placeholder$=new Ge.X(this.props.placeholderFn(this.state.entityName)),!this.state.enums.direction$)return void console.error(`${this.field.id} could not find form state's direction$ to populate select.`);this.state.enums.direction$.pipe((0,ae.t)(this)).subscribe(m=>{this.directionEnum$.next(m)}),this.optionTemplates||console.info(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(m=>m.map(G=>G)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onEntityType$=this.state.fields[c],this.onEntityType$.pipe((0,Pt.T)("add"===this.props.formMode?0:1),(0,ae.t)(this)).subscribe(m=>{m?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,xe.E)(m)))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,it.M)(this.onEntityType$),(0,ae.t)(this)).subscribe(([m,G])=>{!G||!m||!this.state||(this.props.extraType="description",this.props.description=un[this.state.entityName][G][m])})):console.error(`${this.field.id} could not find form state's ${c} to populate Direction options.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(mt,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,at,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,Ht,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.directionEnum$))}},dependencies:[M.sg,Ke,_e,I.fM],changeDetection:0}),u})()}]};let ne=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ft),je,Be,Ye]}),u})();var B=a(5717),ze=a(3328),$e=a(2574),Mt=a(3903),on=a(6987);let Zt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(),Mt.L,Re.PV,We.LV,Pe.o7,s.U5,ge.ZJ,B.ic,$e.zf,on.S,ze.x,Nt.s]}),u})();var Wn=a(5106),pn=a(2840),qn=a(67),co=a(7417),_o=a(7328),Yo=a(5592),Ko=a(2096),ui=a(4664),mo=a(3997),Xn=a(9666),di=a(2428),pi=a(4911),wo=a(9397),So=a(5676),Eo=a(2572);function Pi(...u){let y=u[0],c=u[1];if(0===y.length)return(0,Ko.of)(c?c([]):[]);const m=y.slice();return c&&m.push((...G)=>c(G)),Eo.a.apply(null,m)}function Xo(){return function(y){return(()=>{class m extends y{configureEntitySelectField(Fe){if(this.typeaheadQuery=Fe.typeaheadQuery,this.tagQuery=Fe.tagQuery,this.getTypeaheadVars=Fe.getTypeaheadVarsFn,this.getTypeahedResults=Fe.getTypeaheadResultsFn,this.getTagQueryVars=Fe.getTagQueryVarsFn,this.getTagQueryResults=Fe.getTagQueryResultsFn,this.getSelectedItemOption=Fe.getSelectedItemOptionFn,this.getSelectOptions=Fe.getSelectOptionsFn,this.typeaheadParam$=Fe.typeaheadParam$,this.typeaheadParamName$=Fe.typeaheadParamName$,this.selectOpen$=Fe.selectOpen$||new _o.t,this.selectComponent=Fe.selectComponent,this.minSearchStrLength=Fe.minSearchStrLength||0,this.cdr=Fe.changeDetectorRef,this.onSearch$=new Ge.X(void 0),this.isLoading$=new Yo.y,this.result$=new Ge.X([]),this.onPopulate$=new st.x,this.onTagClose$=new st.x,this.onOpenChange$=new st.x,this.onCreate$=new st.x,this.selectOption$=new Ge.X(void 0),this.response$=this.onSearch$.pipe((0,Pt.T)(1),(0,De.h)(So.ep),(0,De.h)(Et=>0===this.minSearchStrLength||Et.length>=this.minSearchStrLength),(0,it.M)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,Ko.of)(void 0)),(0,ui.w)(([Et,Mn])=>{const kn=this.getTypeaheadVars(Et,Mn),$o=er=>(this.queryRef=this.typeaheadQuery.watch(er),this.isLoading$=this.queryRef.valueChanges.pipe((0,sn.j)("loading"),(0,mo.x)()),this.queryRef.valueChanges),Bi=er=>(0,Xn.D)(this.queryRef.refetch(er));return(0,di.s)(()=>void 0===this.queryRef,(0,pi.P)(()=>$o(kn)),(0,pi.P)(()=>Bi(kn)))})),this.onOpenChange$.subscribe(Et=>{Et&&this.onSearch$.next("")}),this.response$.pipe((0,De.h)(Et=>void 0!==Et.data),(0,Ct.U)(Et=>this.getTypeahedResults(Et)),(0,ae.t)(this)).subscribe(Et=>{this.result$.next(Et),0===Et.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,it.M)(this.result$),(0,ae.t)(this)).subscribe(([Et,Mn])=>{const kn=this.getSelectOptions(Mn,Et);this.selectOption$.next(kn),this.cdr.detectChanges()}):(console.warn(`${this.field.id} could not find reference to optionTemplates ViewChildren, options will only show entity name text.`),this.result$.pipe((0,ae.t)(this)).subscribe(Et=>{this.selectOption$.next(Et.map(Mn=>({label:Mn.name,value:Mn.id})))})),this.onPopulate$.pipe((0,De.h)(So.ep),(0,ui.w)(Et=>Pi(this.getTagQueries(Et))),(0,Ct.U)(Et=>Et.map(Mn=>this.getTagQueryResults(Mn))),(0,wo.b)(Et=>{this.result$.next(Et)}),(0,ae.t)(this)).subscribe(Et=>{let Mn;if(this.field.props&&this.field.props.isMultiSelect){const kn=[];Et.forEach($o=>kn.push($o?.id||void 0)),Mn=kn}else Mn=Et[0].id;this.formControl.setValue(Mn),this.selectOpen$.next(!1)}),this.formControl.value){const Et=this.formControl.value;if(Object.keys(Et).length>0&&Et.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,Et);this.onPopulate$.next(Et)}this.onTagClose$.pipe((0,ae.t)(this)).subscribe(Et=>{this.resetField()})}getTagQueries(Fe){return"number"==typeof Fe&&(Fe=[Fe]),Fe.map(Mn=>this.tagQuery.fetch(this.getTagQueryVars(Mn),{fetchPolicy:"cache-first"}).pipe((0,De.h)(kn=>!!kn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}}return m.\u0275fac=function(){let G;return function(Et){return(G||(G=e.n5z(m)))(Et||m)}}(),m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac}),m})()}}var Gi,zi=a(8180),An=a(313),bi=a(8753),Si=a(6321),tr=a(7081);function Or(u,y){1&u&&e._UZ(0,"span",5),2&u&&e.Q6J("nzType","loading")}function Ei(u,y){if(1&u&&(e.YNc(0,Or,1,1,"span",4),e.ynx(1),e._uU(2),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.Q6J("ngIf",c.showSpinner),e.xp6(2),e.hij(" ",c.message," ")}}const vr=function(u,y,c){return{$implicit:u,createMsg:y,model:c}};function Qi(u,y){if(1&u&&(e._UZ(0,"nz-divider"),e.TgZ(1,"div",6),e.GkF(2,7),e.qZA()),2&u){const c=e.oxw().ngrxLet,m=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",m.cvcAddEntity)("ngTemplateOutletContext",e.kEZ(2,vr,c.searchStr,c.message,m.cvcAddEntityModel))}}const ur=function(){return[]};function dr(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",1),e.NdJ("nzOpenChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onOpenChange$.next(G))})("nzOnSearch",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnSearch.next(G))})("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnModelChange.next(G))}),e.qZA(),e.YNc(2,Ei,3,2,"ng-template",null,2,e.W1O),e.YNc(4,Qi,3,6,"ng-template",null,3,e.W1O),e.BQk()}if(2&u){const c=y.ngrxLet,m=e.MAs(3),G=e.MAs(5),Fe=e.oxw();e.xp6(1),e.ekj("ng-dirty",Fe.cvcShowError),e.Q6J("nzDropdownMatchSelectWidth",!0)("formControl",Fe.cvcFormControl)("formlyAttributes",Fe.cvcFormlyAttributes)("nzMode",Fe.cvcSelectMode)("nzPlaceHolder",Fe.cvcPlaceholder||"Search "+Fe.cvcEntityName.plural)("nzCustomTemplate",Fe.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",Fe.cvcDisabled)("nzLoading",Fe.cvcLoading)("nzAllowClear",Fe.cvcAllowClear)("nzBorderless",Fe.cvcBorderless)("nzSuffixIcon",Fe.cvcSuffixIcon)("nzShowArrow",Fe.cvcShowArrow)("nzAutoClearSearchValue",Fe.cvcAutoClearSearchValue)("nzOptions",Fe.cvcOptions||e.DdM(20,ur))("nzDropdownRender",c.showAddForm?G:null)("nzNotFoundContent",m)("nzOpen",Fe.cvcSelectOpen)}}const lo={search:(u,y,c)=>`Searching ${u} matching "${y}"...`,searchAll:(u,y,c)=>`Listing all ${u}...`,searchParam:(u,y,c)=>`Searching ${c} ${u} matching "${y}"...`,searchParamAll:(u,y,c)=>`Listing all ${c} ${u}...`,searchEnterQuery:(u,y,c,m)=>`Enter at least ${m} characters to search ${c} ${u}`,searchEnterQueryAll:(u,y,c,m)=>`Enter at least least ${m} characters to search ${u}`,empty:(u,y,c)=>`No ${u} found matching "${y}"`,emptyAll:(u,y,c)=>`No ${u} found.`,emptyParam:(u,y,c)=>`No ${c} ${u} found matching "${y}"`,emptyParamAll:(u,y,c)=>`No ${c} ${u} found`};let Oo=((Gi=class{constructor(){this.cvcEntityName={singular:"Entity",plural:"Entities"},this.cvcSelectMode="default",this.cvcLoading=!1,this.cvcOptions=void 0,this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcBorderless=!1,this.cvcShowArrow=!1,this.cvcAutoClearSearchValue=!0,this.cvcSuffixIcon="search",this.cvcCustomTemplate=null,this.cvcAddEntity=null,this.cvcMinSearchStrLength=0,this.cvcAddEntityBehavior=(y,c)=>y.length>this.cvcMinSearchStrLength&&0===c.length,this.cvcOnOpenChange=new e.vpe,this.cvcOnSearch=(new e.vpe).pipe((0,bi.p)(300,Si.z,{leading:!1,trailing:!0}),(0,tr.d)(1)),this.cvcOnModelChange=new e.vpe,this.cvcSelectComponent=new e.vpe,this.messageOptions=lo,this.onParamName$=new Ge.X(void 0),this.onOption$=new Ge.X([]),this.onOpenChange$=new Ge.X(!1),this.onLoading$=new Ge.X(!1),this.notFoundDisplay$=new Ge.X({searchStr:"",showSpinner:!0,showAddForm:!1,message:`Searching ${this.cvcEntityName.plural}...`}),this.previousIsOpen=!1}ngAfterViewInit(){this.cvcSelectMessages&&(this.messageOptions={...this.messageOptions,...this.cvcSelectMessages}),this.nzSelectComponent?(this.cvcSelectComponent.next(this.nzSelectComponent),this.onOpenChange$.pipe((0,ae.t)(this)).subscribe(y=>{this.cvcOnOpenChange.next(y)}),(0,Eo.a)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,mo.x)())]).pipe((0,Ct.U)(([y,c,m,G,Fe])=>{const Et=this.cvcEntityName.plural,Mn=this.cvcMinSearchStrLength,kn=null!==this.cvcAddEntity,$o=!1===this.previousIsOpen&&!0===y;if(this.previousIsOpen=y,$o)return this.getSelectInitDisplay(Et,Mn,m);if(Fe&&c.length>=Mn){const Bi=this.cvcAddEntityBehavior(c,this.cvcResults||[]);return this.getSelectSearchingDisplay(c,Et,Mn,m,kn,Bi)}return y&&!Fe&&c.length>=Mn&&0===G.length?this.getSelectEmptyDisplay(c,Et,m,kn):{searchStr:"",showSpinner:!1,showAddForm:kn&&this.cvcAddEntityBehavior(c,this.cvcResults||[]),message:""}}),(0,wo.b)(y=>{console.log("NotFoundDisplay: ",y),this.notFoundDisplay$.next(y)}),(0,ae.t)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(y,c,m){let G=this.messageOptions.searchAll,Fe=!1;return 0==c?(Fe=!0,G=void 0===m?this.messageOptions.searchAll:this.messageOptions.searchParamAll):c>0&&(Fe=!1,G=void 0===m?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:G(y,"",m,c),showSpinner:Fe,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(y,c,m,G,Fe,Et=!1){let Mn=this.messageOptions.searchAll;return Mn=void 0===G?y.length>0?this.messageOptions.search:this.messageOptions.searchAll:y.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:Mn(c,y,G),showSpinner:!0,showAddForm:Fe&&Et,searchStr:y}}getSelectEmptyDisplay(y,c,m,G){let Fe=this.messageOptions.empty;return Fe=void 0===m?y.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:y.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:Fe(c,y,m),showSpinner:!1,showAddForm:G,searchStr:y}}ngOnChanges(y){if(y.cvcParamName&&this.onParamName$.next(y.cvcParamName.currentValue),y.cvcOptions){const c=y.cvcOptions.currentValue;void 0!==c&&this.onOption$.next(c)}if(y.cvcLoading){const c=y.cvcLoading.currentValue;void 0!==c&&this.onLoading$.next(c)}}}).\u0275fac=function(y){return new(y||Gi)},Gi.\u0275cmp=e.Xpm({type:Gi,selectors:[["cvc-entity-select"]],viewQuery:function(y,c){if(1&y&&e.Gf(We.Vq,5),2&y){let m;e.iGM(m=e.CRH())&&(c.nzSelectComponent=m.first)}},inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcEntityName:"cvcEntityName",cvcSelectMessages:"cvcSelectMessages",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcLoading:"cvcLoading",cvcOptions:"cvcOptions",cvcResults:"cvcResults",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcBorderless:"cvcBorderless",cvcShowArrow:"cvcShowArrow",cvcAutoClearSearchValue:"cvcAutoClearSearchValue",cvcSuffixIcon:"cvcSuffixIcon",cvcCustomTemplate:"cvcCustomTemplate",cvcParamName:"cvcParamName",cvcAddEntity:"cvcAddEntity",cvcAddEntityModel:"cvcAddEntityModel",cvcMinSearchStrLength:"cvcMinSearchStrLength",cvcAddEntityBehavior:"cvcAddEntityBehavior",cvcSelectOpen:"cvcSelectOpen"},outputs:{cvcOnOpenChange:"cvcOnOpenChange",cvcOnSearch:"cvcOnSearch",cvcOnModelChange:"cvcOnModelChange",cvcSelectComponent:"cvcSelectComponent"},features:[e.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen","nzOpenChange","nzOnSearch","ngModelChange"],["searchMessages",""],["addForm",""],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(y,c){1&y&&e.YNc(0,dr,6,21,"ng-container",0),2&y&&e.Q6J("ngrxLet",c.notFoundDisplay$)},dependencies:[M.O5,M.tP,t.JJ,t.oH,I.eJ,v.JD,Re.Ls,We.Vq,on.g],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0}),Gi);Oo=(0,te.gn)([(0,ae.c)({arrayName:"stateSubscriptions"})],Oo);var ji,Po=a(3670),Jo=a(2024),Ro=a(7473),Wo=a(855),qo=a(1958),Ti=a(4634);function Hi(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}function ei(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.hij(' "',c.model.name,'" ')}}const Yn=function(){return[0,0]};let so=((ji=class{set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.form=new t.nJ({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new st.x,this.searchString$=new Ge.X(void 0),this.addDiseaseMutator=new Jo.U(this.errors),this.fields=[{key:"doid",type:"input",props:{label:"DOID",keydown:(m,G)=>{"Tab"===G.code&&G.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,ae.t)(this)).subscribe(m=>{m&&(this.model.name=m)}),this.onSubmit$.pipe((0,ae.t)(this)).subscribe(m=>{console.log("disease-quick-add form model submitted.",m),this.submitDisease(m)})}submitDisease(y){y.name?this.mutationState=this.addDiseaseMutator.mutate(this.query,this.model,{},c=>{console.log("disease-quick-add submit data callback",c),c.addDisease&&(this.successMessage=c.addDisease.new?`New Disease ${c.addDisease.disease.name} added.`:`Existing Disease ${c.addDisease.disease.name} with DOID ${c.addDisease.disease.doid} found. `,setTimeout(()=>{c&&c.addDisease&&this.cvcOnCreate.next(c.addDisease.disease.id)},1e3))}):console.error("disease-quick-add form submitDisease requires model with valid name.")}}).\u0275fac=function(y){return new(y||ji)(e.Y36(An.MPi),e.Y36(Ro.Y))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["entityType","Disease",3,"mutationState","successMessage"],["success",""],["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(y,c){if(1&y&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,Hi,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"form",2),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(7,"nz-col",4)(8,"button",6),e._uU(9," Add Disease\xa0 "),e.YNc(10,ei,2,1,"ng-container",7),e.qZA()()()()()),2&y){const m=e.MAs(2);e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(10,Yn)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(2),e.Q6J("ngIf",c.model.name)}},dependencies:[M.O5,t._Y,t.JL,t.sg,v.T7,pn.ix,Wo.w,qo.dQ,k.t3,k.SK,s.Lr,Ti.F],encapsulation:2,changeDetection:0}),ji);so=(0,te.gn)([(0,ae.c)()],so);const Ue=["addDisease"],se=["optionTemplates"];function we(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"DOID:"),e.qZA(),e._UZ(3,"span",9),e.ALo(4,"highlightTypeahead"),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(3),e.Q6J("innerHtml",e.xi3(4,1,c.doid,m),e.oJD)}}function Qe(u,y){if(1&u&&(e.ynx(0),e._uU(1," \xa0 "),e.TgZ(2,"strong"),e._uU(3,"Aliases: "),e.qZA(),e.TgZ(4,"em"),e._UZ(5,"span",10),e.ALo(6,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(5),e.Q6J("nzTooltipTitle",c.diseaseAliases.join(", "))("innerHtml",e.xi3(6,2,c.diseaseAliases.join(", "),m),e.oJD)}}function bt(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",6),e.TgZ(1,"span",7),e.YNc(2,we,5,4,"ng-container",8),e.YNc(3,Qe,7,5,"ng-container",8),e._uU(4),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.doid),e.xp6(1),e.Q6J("ngIf",c.diseaseAliases.length>0),e.xp6(1),e.hij(" ",m," ")}}function Bt(u,y){1&u&&(e.ynx(0),e.YNc(1,bt,5,6,"ng-template",null,5,e.W1O),e.BQk())}function tn(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Bt,3,0,"ng-container",4),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function fn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",11)(1,"cvc-entity-tag",12),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Disease:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function qt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-disease-quick-add-form",13),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.qZA()}2&u&&e.Q6J("cvcSearchString",y.$implicit)}const Cn=Vt(yn(),Xo());let Nn=(()=>{class u extends Cn{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Disease",plural:"Diseases"},tooltip:"Cancer or cancer subtype that is a result of the described variant",isMultiSelect:!1,requireType:!0,placeholder:"Search Diseases",requireTypePromptFn:(Fe,Et)=>`Select an ${Fe} Type to select an associated Disease${Et?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new Ge.X(void 0),this.selectOpen$=new _o.t}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField(),this.addForm&&(this.field.props.addFormContent=this.addForm)}configureField(){this.placeholder$.next(this.props.placeholder),this.configureStateConnections()}configureStateConnections(){if(this.state){if(this.state.requires.requiresDisease$?this.onRequiresDisease$=this.state.requires.requiresDisease$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresDisease$ subject to attach.`),this.props.requireType){const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}!this.onRequiresDisease$||!this.onEntityType$||(0,Eo.a)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,ae.t)(this)).subscribe(([c,m,G])=>{this.onStateUpdates(c,m,G)})}}onStateUpdates(c,m,G){!c&&m&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,xe.E)(m)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!m&&(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"),c&&(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0),(!c&&void 0!==G||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.diseaseTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.disease}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.RYL),e.Y36(An.QVn),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(c,m){if(1&c&&(e.Gf(Ue,7),e.Gf(se,5,e.Rgc)),2&c){let G;e.iGM(G=e.CRH())&&(m.addForm=G.first),e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:12,vars:26,consts:[[3,"cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addDisease",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcSelectComponent",function(Fe){return m.selectComponent=Fe})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA(),e.YNc(7,tn,3,3,"ng-container",1),e.YNc(8,fn,2,3,"ng-template",null,2,e.W1O),e.YNc(10,qt,1,1,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(9),Fe=e.MAs(11);e.Q6J("cvcAddEntity",Fe)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,14,m.placeholder$))("cvcResults",e.lcZ(2,16,m.result$))("cvcOptions",e.lcZ(3,18,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresDisease$&&!e.lcZ(4,20,m.onRequiresDisease$))("cvcLoading",e.lcZ(5,22,m.isLoading$))("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,et.SY,ge.ZU,Oo,Po.J,so,I.fM,w.A],changeDetection:0}),u})();const Sn={types:[{name:"disease-select",wrappers:["form-field"],component:Nn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Nn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let dn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Sn),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,Wn.g,je,Zt,Nt.s,ze.x]}),u})();var xn=a(9154);let Qn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,ge.ZJ]}),u})();var In=a(2962),Vn=a(2787),Un=a(8373),jn=a(3740),eo=a(6699),Co=a(3620),yo=a(9111),Kn=a(9377),Fo=a(3019),Mo=a(3742);const Lo={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},Wi=u=>void 0!==u.sort,ii=u=>void 0!==u.filter,Ai={description:An.Cp0.Description,disease:An.Cp0.DiseaseName,evidenceDirection:An.Cp0.EvidenceDirection,evidenceLevel:An.Cp0.EvidenceLevel,evidenceRating:An.Cp0.EvidenceRating,evidenceType:An.Cp0.EvidenceType,id:An.Cp0.Id,significance:An.Cp0.Significance,status:An.Cp0.Status,therapies:An.Cp0.TherapyName,variantOrigin:An.Cp0.VariantOrigin},Zi={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},hi=["selected","id"];class ke{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{hidden:!0,key:"id",label:"ID",type:"default",width:"30px"},{hidden:!0,key:"status",label:"Status",type:"default",width:"50px"},{key:"id",label:"Evidence",type:"entity-tag",width:"95px",context:"evidenceItem",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"EID",value:null}],transform:y=>y?+y.toString().replace(/EID/i,""):null}},{key:"molecularProfile",label:"Molecular Profile",type:"entity-tag",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"MolecularProfile",options:[{key:"Filter Therapy Names",value:null}]}},{key:"disease",type:"entity-tag",label:"Disease",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"Disease",options:[{key:"Filter Disease Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapyInteractionType",label:"INT",tooltip:"Therapy Interaction Type",type:"enum-tag",width:"40px",align:"center",emptyValueCategory:"not-applicable",sort:{},filter:{options:this.getAttributeFilters((0,Mo.o6)(An.wkr))}},{key:"description",label:"DSC",tooltip:"Evidence Description",type:"text-tag",width:"40px",align:"center",fixedRight:!0,emptyValueCategory:"unspecified",sort:{},filter:{inputType:"default",options:[{key:"Search Descriptions",value:null}]}},{key:"evidenceType",label:"ET",tooltip:"Evidence Type",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Mo.o6)(An.kqt))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Mo.o6)(An.Sx0))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Mo.o6)(An.tI1))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Mo.o6)(An.y1h))}},{key:"evidenceRating",label:"ER",tooltip:"Evidence Rating",type:"enum-tag",width:"45px",align:"center",fixedRight:!0,tag:{showLabel:"short-string"},sort:{},filter:{options:[1,2,3,4,5].map(y=>({value:y,text:`${y} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(y,c){return y.getValues().map(G=>({text:(0,xe.E)(G),value:G,byDefault:c===G}))}configureColumnStreams(y){return y.forEach(c=>{const m=c;if(Wi(m)&&(m.sort.changes=new Ge.X({key:m.key,value:m.sort.default??null}),this.sortStreams.push(m.sort.changes)),ii(m)){const G=m.filter.options.find(Fe=>Fe.byDefault)?.value;m.filter.changes=new Ge.X({key:m.key,value:G??null}),this.filterStreams.push(m.filter.changes)}}),y}}var W,Yt=a(7871);function Ve(u,y){1&u&&e.GkF(0)}const Gt=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function an(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"span",1),e.YNc(2,Ve,1,0,"ng-container",2),e.qZA(),e.BQk()),2&u){const c=y.$implicit,m=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",m.cvcTagTemplate)("ngTemplateOutletContext",e.kEZ(2,Gt,c,m.config,null==m.config?null:m.config.emphasize))}}let Rn=((W=class{set cvcTagListConfig(y){!y||!y.tagList||!y.tag||(this.config=y,this.setEntities(y.tagList,y.tag))}constructor(){this.entities=[]}setEntities(y,c){this.entities=y&&0!==y.length&&0!==c.maxTags?y:[]}}).\u0275fac=function(y){return new(y||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["cvc-entity-tag-list"]],inputs:{cvcTagListConfig:"cvcTagListConfig",cvcTagTemplate:"cvcTagTemplate"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"tag-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(y,c){1&y&&e.YNc(0,an,3,6,"ng-container",0),2&y&&e.Q6J("ngForOf",c.entities)},dependencies:[M.sg,M.tP],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0}),W);Rn=(0,te.gn)([(0,ae.c)()],Rn);var ho=a(2616),fo=a(1201);function Uo(u,y){if(1&u&&(e._UZ(0,"span",6),e.ALo(1,"typenameToIcon"),e.ALo(2,"entityColor")),2&u){const c=y.$implicit;e.Q6J("nzType",e.lcZ(1,2,c.__typename))("nzTwotoneColor",e.lcZ(2,4,c.__typename))}}function ni(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Uo,3,6,"span",5),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",c.entities)}}function uo(u,y){if(1&u&&(e.TgZ(0,"span",7)(1,"strong"),e._uU(2),e.qZA()(),e._UZ(3,"span",6),e.ALo(4,"typenameToIcon"),e.ALo(5,"entityColor")),2&u){const c=e.oxw();e.xp6(2),e.Oqu(c.entities.length),e.xp6(1),e.Q6J("nzType",e.lcZ(4,3,c.entities[0].__typename))("nzTwotoneColor",e.lcZ(5,5,c.entities[0].__typename))}}const Li=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function Fi(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag-list",11),2&u){const c=e.oxw(2);e.Q6J("cvcTagTemplate",c.cvcTagTemplate)("cvcTagListConfig",e.qbA(2,Li,c.entities,c.config.tag,c.config.showPopover,c.config.status,c.config.emphasize))}}function _r(u,y){1&u&&e._uU(0," Invalid config specified for entity-tag-list. ")}function ls(u,y){if(1&u&&(e.TgZ(0,"div",8),e.YNc(1,Fi,1,8,"cvc-entity-tag-list",9),e.qZA(),e.YNc(2,_r,1,0,"ng-template",null,10,e.W1O)),2&u){const c=e.MAs(3),m=e.oxw();e.xp6(1),e.Q6J("ngIf",m.config)("ngIfElse",c)}}let Se=(()=>{class u{set cvcCollectionTagConfig(c){!c||!c.tagList||!c.tag||(this.setConfig(c),this.setEntities(c.tagList))}constructor(){this.cvcShowMaxIcons=5,this.cvcShowFullLabels=!0,this.entities=[]}setConfig(c){this.config=this.cvcShowFullLabels?{...c,tag:{...c.tag,truncateLabel:void 0}}:c}setEntities(c){this.entities=c&&0!==c.length?c:[]}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["showCount",""],["tagListPopover",""],["class","entity-icon","nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor",4,"ngFor","ngForOf"],["nz-icon","","nzTheme","twotone",1,"entity-icon",3,"nzType","nzTwotoneColor"],["nz-typography","","nzType","secondary",1,"entity-count"],[1,"popover-container"],[3,"cvcTagTemplate","cvcTagListConfig",4,"ngIf","ngIfElse"],["noConfig",""],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-tag",0)(1,"span",1)(2,"strong"),e._uU(3,"+"),e.qZA()(),e.YNc(4,ni,2,1,"ng-container",2),e.YNc(5,uo,6,7,"ng-template",null,3,e.W1O),e.qZA(),e.YNc(7,ls,4,2,"ng-template",null,4,e.W1O)),2&c){const G=e.MAs(6),Fe=e.MAs(8);e.Q6J("nzPopoverContent",Fe),e.xp6(4),e.Q6J("ngIf",m.entities.length<=m.cvcShowMaxIcons)("ngIfElse",G)}},dependencies:[M.sg,M.O5,Jt.j,ge.ZU,co.lU,Re.Ls,Rn,ho.a,fo.Z],styles:["[_nghost-%COMP%]{display:inline-block}.popover-container[_ngcontent-%COMP%]{max-width:300px}nz-tag[_ngcontent-%COMP%]{margin:0;padding:0;margin-inline-end:4px}nz-tag[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block}nz-tag[_ngcontent-%COMP%] .plus-sign[_ngcontent-%COMP%]{padding:3px 3px 3px 4px;margin:-3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:first-child{padding-left:2px}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]{margin:-3px 1px -4px -1px;padding:3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:last-child{padding-right:3px}nz-tag[_ngcontent-%COMP%] .entity-count[_ngcontent-%COMP%]{margin-left:-2px;padding-right:4px}"],changeDetection:0}),u})();var ye=a(3489);function pe(u,y){if(1&u&&(e.TgZ(0,"span",1),e._uU(1),e.ALo(2,"number"),e.ALo(3,"number"),e.qZA()),2&u){const c=y.ngIf;e.xp6(1),e.AsE(" ",e.lcZ(2,2,c.edgeCount)," of ",e.lcZ(3,4,c.filteredCount)," displayed\n")}}let ct=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,De.h)(c=>null!=c.totalCount||null!=c.filteredCount),(0,Ct.U)(c=>{const m=c.filteredCount,G=c.totalCount,Fe=c.edges;return null==m&&null==G&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:Fe.length,filteredCount:m??G}}))}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-table-counts2"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"]],template:function(c,m){1&c&&(e.YNc(0,pe,4,6,"span",0),e.ALo(1,"ngrxPush")),2&c&&e.Q6J("ngIf",e.lcZ(1,1,m.tableCountsInfo$))},dependencies:[M.O5,ge.ZU,M.JJ,I.fM],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),u})();var fi,zn=a(1374),Gn=a(9384);let si=((fi=class{set cvcTableScrollerToIndex(y){void 0!==y&&this.scrollToIndex(y)}set cvcTableScrollerToOffset(y){void 0!==y&&this.scrollToIndex(y)}constructor(y){this.host=y,this.cvcTableScrollerOnScroll=new e.vpe,this.cvcTableScrollerOnFetch=new e.vpe,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,zn.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,bi.p)(this.onScrollThrottleTime,Si.z,{leading:!0,trailing:!0}),(0,wo.b)(y=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Co.b)(this.onScrollDebounceTime),(0,ae.t)(this)).subscribe(y=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,Ct.U)(y=>this.viewport.measureScrollOffset("bottom")),(0,Gn.G)(),(0,De.h)(([y,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(y){const c=this.cvcTableScrollerQueryRef;if(!y&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(y&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(y&&c){const[m,G,Fe]=[this.cvcTableScrollerFetchCount,y.hasNextPage,y.endCursor];if(!m||!Fe)throw new Error("table-scroll PageInfo invalid.");if(!G)return;this.cvcTableScrollerOnFetch.next({first:m,after:Fe})}}scrollToIndex(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");m.scrollToIndex(y)}scrollToOffset(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");m.scrollToOffset(y)}}).\u0275fac=function(y){return new(y||fi)(e.Y36(jn.N8))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}}),fi);function wr(u,y){1&u&&e._UZ(0,"span",8)}function Ds(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Fe=e.oxw();return G.value="",e.KtG(Fe.cvcModelChange.next(null))}),e.qZA()}}function Sa(u,y){if(1&u&&(e.YNc(0,wr,1,0,"span",6),e.YNc(1,Ds,1,0,"span",7)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function Us(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",2)(2,"input",3,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcModelChange.next(G))}),e.qZA()(),e.YNc(4,Sa,2,2,"ng-template",null,5,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw();e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.cvcPlaceholder)("ngModel",m.cvcModel)}}function Gs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",10)(1,"nz-input-number",11,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcModelChange.next(""===G?null:G))}),e.qZA()()}if(2&u){const c=e.oxw();let m;e.xp6(1),e.Q6J("nzPlaceHolder",null!==(m=c.cvcPlaceholder)&&void 0!==m?m:"")("ngModel",c.cvcModel)("nzMin",1)("nzStep",1)}}si=(0,te.gn)([(0,ae.c)()],si);let us=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.vpe,this.cvcInputType="default"}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","ngModelChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"]],template:function(c,m){if(1&c&&(e.YNc(0,Us,6,3,"ng-container",0),e.YNc(1,Gs,3,4,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf","default"===m.cvcInputType)("ngIfElse",G)}},dependencies:[M.O5,t.Fj,t.JJ,t.On,Wo.w,Re.Ls,Pe.Zp,Pe.gB,Pe.ke,Un._V,Un.Rb],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700} nz-input-group{border-color:#d9d9d9!important}"]}),u})();var es=a(3460);function $r(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",5),e.NdJ("click",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.cvcOptionChange.next({key:Et.cvcColumnKey,value:Fe.value}))}),e._UZ(1,"cvc-attribute-tag",6),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("nzSelected",(null==m.cvcOption?null:m.cvcOption.value)===c.value),e.xp6(1),e.Q6J("cvcFullWidth",!0)("cvcChecked",(null==m.cvcOption?null:m.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let Yr=(()=>{class u{constructor(){this.cvcOptionChange=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"nzSelected","click"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(c,m){1&c&&(e.TgZ(0,"ul",0),e.YNc(1,$r,2,4,"li",1),e.TgZ(2,"li",2)(3,"button",3),e.NdJ("click",function(){return m.cvcOptionChange.next({key:m.cvcColumnKey,value:null})}),e._UZ(4,"span",4),e._uU(5," Reset "),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("ngForOf",m.cvcFilterOptions),e.xp6(2),e.Q6J("disabled",null===(null==m.cvcOption?null:m.cvcOption.value)))},dependencies:[M.sg,_e,pn.ix,Wo.w,qo.dQ,es.wO,es.r9,Re.Ls],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0}),u})(),or=(()=>{class u{transform(c){return null!=c&&Array.isArray(c)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.Yjl({name:"isArray",type:u,pure:!0}),u})(),Ur=(()=>{class u{transform(c,m){return m(c)?c:void 0}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.Yjl({name:"guardType",type:u,pure:!0}),u})();var ri;function pr(u,y){if(1&u&&e._UZ(0,"th",14),2&u){const c=y.ngIf;let m;e.Q6J("nzShowCheckbox",c.checkbox.th.showCheckbox||!1)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function Os(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",15),e.NdJ("nzSortOrderChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.sort.changes.next({key:Et.key,value:G}))}),e.ALo(1,"ngrxPush"),e.TgZ(2,"span",16),e._uU(3),e.qZA()()}if(2&u){const c=y.ngIf;let m,G;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",void 0!==c.sort)("nzSortFn",!0)("nzSortOrder",(null==(G=e.lcZ(1,10,c.sort.changes))?null:G.value)||null),e.xp6(2),e.Q6J("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Pr(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Mr(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Gr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,pr,1,5,"th",11),e.ALo(2,"guardType"),e.YNc(3,Os,4,12,"th",12),e.ALo(4,"guardType"),e.YNc(5,Pr,2,7,"th",13),e.ALo(6,"guardType"),e.YNc(7,Mr,2,7,"th",13),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Qs(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Gr,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function Ir(u,y){if(1&u&&(e.TgZ(0,"th",22),e._uU(1," \xa0 "),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function ds(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-table-filter-input",25),e.NdJ("cvcModelChange",function(G){const Et=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Et.changes.next(Et.transform?{key:Mn.key,value:Et.transform(G)}:{key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function hr(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,ds,1,3,"cvc-table-filter-input",24),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function lc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",26,27),e.NdJ("nzSortOrderChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.sort.changes.next({key:Et.key,value:G}))}),e.ALo(2,"ngrxPush"),e.TgZ(3,"nz-filter-trigger",28,29),e.ALo(5,"ngrxPush"),e._UZ(6,"span",30),e.qZA(),e.TgZ(7,"nz-dropdown-menu",null,31)(9,"cvc-enum-filter-menu",32),e.NdJ("cvcOptionChange",function(G){const Et=e.CHM(c).ngIf,Mn=e.MAs(4);return Et.filter.changes.next(G),e.KtG(Mn.nzVisible=!1)}),e.ALo(10,"ngrxPush"),e.qZA()()()}if(2&u){const c=y.ngIf,m=e.MAs(8);let G,Fe,Et;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(Fe=e.lcZ(2,15,c.sort.changes))?null:Fe.value)||null)("nzShowFilter",void 0!==c.filter)("nzFilterFn",!0),e.xp6(3),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Et=e.lcZ(5,17,c.filter.changes))?null:Et.value)),e.xp6(6),e.Q6J("cvcColumnKey",c.key)("cvcFilterOptions",c.filter.options)("cvcOption",e.lcZ(10,19,c.filter.changes))}}function br(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",33,27)(2,"nz-filter-trigger",28),e.ALo(3,"ngrxPush"),e._UZ(4,"span",34),e.qZA(),e.TgZ(5,"nz-dropdown-menu",null,35)(7,"div",36)(8,"div",37)(9,"cvc-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.filter.changes.next({key:Et.key,value:G}))}),e.qZA()()()()()}if(2&u){const c=y.ngIf,m=e.MAs(6);let G,Fe;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzFilterFn",!0),e.xp6(2),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Fe=e.lcZ(3,10,c.filter.changes))?null:Fe.value)),e.xp6(7),e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function Ea(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ir,2,5,"th",18),e.ALo(2,"guardType"),e.YNc(3,hr,2,6,"th",19),e.ALo(4,"guardType"),e.YNc(5,lc,11,21,"th",20),e.ALo(6,"guardType"),e.YNc(7,br,10,12,"th",21),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Wc(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ea,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function uc(u,y){if(1&u&&(e.TgZ(0,"thead")(1,"tr",7),e.YNc(2,Qs,2,1,"ng-container",8),e.qZA(),e.TgZ(3,"tr",9),e.YNc(4,Wc,2,1,"ng-container",8),e.qZA()()),2&u){const c=y.ngrxLet;e.xp6(2),e.Q6J("ngForOf",c),e.xp6(2),e.Q6J("ngForOf",c)}}function Sr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"td",43),e.NdJ("nzCheckedChange",function(G){e.CHM(c);const Fe=e.oxw(3).$implicit,Et=e.oxw(2);return e.KtG(Et.onRowSelected$.next({id:Fe.id,selected:G}))}),e.qZA()}if(2&u){const c=y.ngIf,m=e.oxw(3).$implicit;let G;e.Q6J("nzChecked",m.selected)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function ir(u,y){1&u&&e.GkF(0)}const ts=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function Ar(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ir,1,0,"ng-container",49),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw().ngIf,m=e.oxw().ngIf,G=e.MAs(3),Fe=e.MAs(5),Et=e.oxw(3).$implicit;let Mn;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,Et[c])?G:Fe)("ngTemplateOutletContext",e.kEZ(6,ts,Et[c],m,null==(Mn=e.lcZ(3,4,m.filter.changes))?null:Mn.value))}}function ws(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ar,4,10,"ng-container",48),e.BQk()),2&u){const c=y.ngIf;e.oxw();const m=e.MAs(7),G=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf",G[c])("ngIfElse",m)}}const ns=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function js(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-collection-tag",51),e.BQk()),2&u){const c=e.oxw(2),m=c.config,G=c.$implicit,Fe=c.emphasize;e.oxw();const Et=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcCollectionTagConfig",e.qbA(3,ns,G.slice(m.tag.maxTags,G.length),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Fe))("cvcTagTemplate",Et)("cvcShowFullLabels",!0)}}function ps(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-tag-list",50),e.YNc(2,js,2,9,"ng-container",10),e.BQk()),2&u){const c=e.oxw(),m=c.config,G=c.$implicit,Fe=c.emphasize;e.oxw();const Et=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcTagTemplate",Et)("cvcTagListConfig",e.qbA(3,ns,G.slice(0,m.tag.maxTags),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Fe)),e.xp6(1),e.Q6J("ngIf",G.slice(m.tag.maxTags,G.length).length>0)}}function hs(u,y){if(1&u&&e.YNc(0,ps,3,9,"ng-container",48),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function xa(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",52),2&u){const c=y.$implicit,m=y.config,G=y.emphasize,Fe=e.oxw(6);let Et;e.Q6J("cvcTruncateLabel",null==m.tag?null:m.tag.truncateLabel)("cvcLinkableEntity",c)("cvcEmphasize",G)("cvcShowPopover",!Fe.isScrolling)("cvcStatus",!0===m.showStatus?c.status:void 0)("cvcFullWidth",null!==(Et=null==m.tag?null:m.tag.fullWidth)&&void 0!==Et&&Et)}}function Ws(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",53),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"not-applicable")}}function Zs(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,ws,2,2,"ng-container",10),e.YNc(2,hs,1,2,"ng-template",null,45,e.W1O),e.YNc(4,xa,1,6,"ng-template",null,46,e.W1O),e.YNc(6,Ws,1,1,"ng-template",null,47,e.W1O),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.context||c.key)}}function Ks(u,y){if(1&u&&(e._UZ(0,"cvc-attribute-tag",56),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit,G=e.oxw(2);e.Q6J("cvcFullWidth",!0)("cvcAttrValue",m[c.key])("cvcTooltip",e.lcZ(1,3,!G.isScrolling&&m[c.key]))}}function $i(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",57),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Ni(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,Ks,2,5,"cvc-attribute-tag",54),e.YNc(2,$i,1,1,"ng-template",null,55,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Fe;e.Q6J("nzAlign",null!==(Fe=c.align)&&void 0!==Fe?Fe:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function Js(u,y){if(1&u&&(e.TgZ(0,"nz-tag",60),e._UZ(1,"span",61),e.qZA()),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit;e.Q6J("nzTooltipTitle",m[c.key])}}function ai(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",53),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Fr(u,y){if(1&u&&(e.TgZ(0,"td",44),e.YNc(1,Js,2,1,"nz-tag",58),e.YNc(2,ai,1,1,"ng-template",null,59,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Fe;e.Q6J("nzAlign",null!==(Fe=c.align)&&void 0!==Fe?Fe:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function ie(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Sr,1,4,"td",41),e.ALo(2,"guardType"),e.YNc(3,Zs,8,4,"td",42),e.ALo(4,"guardType"),e.YNc(5,Ni,4,5,"td",42),e.ALo(6,"guardType"),e.YNc(7,Fr,4,5,"td",42),e.ALo(8,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(3);e.xp6(1),e.Q6J("ngIf",e.xi3(2,4,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,7,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,10,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,13,c,m.colGuards.isTextTagCol))}}function Le(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ie,9,16,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function fe(u,y){if(1&u&&(e.TgZ(0,"tr",40),e.YNc(1,Le,2,1,"ng-container",8),e.qZA()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngForOf",c)}}function tt(u,y){1&u&&(e.TgZ(0,"tbody"),e.YNc(1,fe,2,1,"ng-template",39),e.qZA())}function At(u,y){1&u&&e._UZ(0,"span",69)}function hn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",70),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Fe=e.oxw().filter;return G.value="",e.KtG(Fe.changes.next({key:Fe.key,value:null}))}),e.qZA()}}function Tn(u,y){if(1&u&&(e.YNc(0,At,1,0,"span",67),e.YNc(1,hn,1,0,"span",68)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function to(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",63)(2,"input",64,65),e.NdJ("nzFilterChange",function(G){e.CHM(c);const Fe=e.oxw().filter;return e.KtG(Fe.changes.next({key:Fe.key,value:G}))}),e.qZA()(),e.YNc(4,Tn,2,2,"ng-template",null,66,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw().filter;e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.placeholder)("ngModel",m.defaultValue)}}function Qo(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",71)(1,"nz-input-number",72,65),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw().filter;return e.KtG(Fe.changes.next({key:Fe.key,value:G}))}),e.qZA()()}if(2&u){const c=e.oxw().filter;e.xp6(1),e.Q6J("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function go(u,y){if(1&u&&(e.YNc(0,to,6,3,"ng-container",48),e.YNc(1,Qo,3,4,"ng-template",null,62,e.W1O)),2&u){const c=y.filter,m=e.MAs(2);e.Q6J("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",m)}}const Vo=function(){return[6,6]};function Io(u,y){1&u&&(e.TgZ(0,"nz-row",73)(1,"nz-col")(2,"span"),e._uU(3,"Use checkboxes to select or deselect EIDs"),e.qZA()()()),2&u&&e.Q6J("nzGutter",e.DdM(1,Vo))}function vi(u,y){1&u&&(e.TgZ(0,"nz-tag",84),e._UZ(1,"i",85),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}const jo=function(u){return{$implicit:u}};function yi(u,y){if(1&u&&(e.TgZ(0,"nz-tag",88),e._UZ(1,"span",89),e.TgZ(2,"span",90),e._uU(3),e.qZA()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,jo,m.query)),e.xp6(1),e.hij(" Query Error",m.query.length>1?"s":""," ")}}function Ci(u,y){if(1&u&&(e.TgZ(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e._uU(4),e.qZA()()()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(1),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,jo,m.network)),e.xp6(3),e.hij(" Network Error",m.query.length>1?"s":""," ")}}function ao(u,y){if(1&u&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&u){const c=y.$implicit;e.xp6(1),e.hij(" ",c.message," ")}}function fr(u,y){1&u&&e.YNc(0,ao,2,1,"div",8),2&u&&e.Q6J("ngForOf",y.$implicit)}function rr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,yi,4,5,"nz-tag",86),e.YNc(2,Ci,5,5,"nz-tag",86),e.YNc(3,fr,1,1,"ng-template",null,87,e.W1O),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",c.query),e.xp6(1),e.Q6J("ngIf",c.network)}}function Nr(u,y){if(1&u&&(e.ynx(0),e.YNc(1,rr,5,2,"ng-container",10),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c)}}function Er(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",92)(1,"nz-checkbox-group",93),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onPreferenceChange$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngModel",e.lcZ(2,1,c.setPreference$))}}function sr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-row",73)(1,"nz-col",74),e.YNc(2,vi,4,0,"nz-tag",75),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._UZ(5,"cvc-no-more-rows",76),e.ALo(6,"ngrxPush"),e.qZA(),e.TgZ(7,"nz-col",74),e.YNc(8,Nr,2,1,"ng-container",3),e.qZA(),e.TgZ(9,"nz-col",74),e._UZ(10,"cvc-table-counts2",77),e.qZA(),e.TgZ(11,"nz-col",78)(12,"nz-button-group")(13,"button",79),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onResetFilter$.next())}),e._UZ(14,"span",80),e.qZA(),e.TgZ(15,"button",81),e._UZ(16,"span",82),e.qZA()(),e.YNc(17,Er,3,3,"ng-template",null,83,e.W1O),e.qZA()()}if(2&u){const c=e.MAs(18),m=e.oxw();e.Q6J("nzGutter",8),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,7,m.loading$)&&e.lcZ(4,9,m.isFetchMore$)),e.xp6(3),e.Q6J("cvcShowTag",e.lcZ(6,11,m.noMoreRows$)),e.xp6(3),e.Q6J("ngrxLet",m.queryError$),e.xp6(2),e.Q6J("cvcTableCountsConnection",m.connection$),e.xp6(5),e.Q6J("nzPopoverContent",c)("nzPopoverTrigger","click")}}const Da=function(){return[]},Qr=function(){return{x:"800px",y:"200px"}};let jr=((ri=class{constructor(y,c,m){this.queryGQL=y,this.apollo=c,this.cdr=m,this.cvcSelectedIdsChange=new e.vpe,this.isScrolling=!1,this.colGuards=Lo,this.onFetchMore$=new st.x,this.onPreferenceChange$=new Ge.X([]),this.onResetFilter$=new st.x,this.onRowSelected$=new st.x,this.onScroll$=new Ge.X("stop"),this.onSetSelectedRow$=new Ge.X(new Set),this.queryError$=new st.x,this.queryRequest$=new st.x,this.queryResult$=new _o.t(1),this.isFetchMore$=new Ge.X(!1),this.noMoreRows$=new Ge.X(!1),this.scrollToIndex$=new st.x,this.tableConfig=new ke;const G=(0,Eo.a)(this.tableConfig.getFilterStreams()),Fe=(0,Eo.a)(this.tableConfig.getSortStreams()).pipe((0,De.h)(Et=>Et.filter(Mn=>null!==Mn.value).length<=1));this.refetch$=(0,Eo.a)([Fe,G]).pipe((0,Ct.U)(([Et,Mn])=>({query:"refetch",sort:Et,filter:Mn}))),this.fetchMore$=this.onFetchMore$.pipe((0,Ct.U)(Et=>({query:"fetchMore",fetchMore:{...Et}}))),(0,Fo.T)(this.refetch$,this.fetchMore$).pipe((0,Co.b)(50),(0,ae.t)(this)).subscribe(Et=>{const Mn=this.getQueryVars(Et);this.queryRef?(this.queryError$.next({}),"refetch"===Et.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(Mn).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:Mn}).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(Mn),this.queryRef.valueChanges.pipe((0,ae.t)(this)).subscribe(kn=>{this.queryResult$.next(kn),(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))}),this.loading$=this.queryResult$.pipe((0,sn.j)("loading"),(0,mo.x)()),this.connection$=this.queryResult$.pipe((0,sn.j)("data","evidenceItems"),(0,De.h)(So.ep)),this.pageInfo$=this.connection$.pipe((0,sn.j)("pageInfo"),(0,De.h)(So.ep)),this.row$=(0,Eo.a)([this.connection$.pipe((0,sn.j)("edges"),(0,De.h)(So.ep),(0,Ct.U)(Et=>Et.map(Mn=>Mn.node))),this.onSetSelectedRow$]).pipe((0,Ct.U)(([Et,Mn])=>Et.map(kn=>{if(kn)return{...kn,evidenceItem:{__typename:"EvidenceItem",id:kn.id,name:kn.name,link:kn.link,status:kn.status},selected:Mn.has(kn.id)}}))),this.col$=new Ge.X(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,Ct.U)(Et=>this.getColPrefsFromTableConfig(Et))),this.onPreferenceChange$.pipe((0,it.M)(this.col$),(0,Ct.U)(([Et,Mn])=>this.getTableConfigFromColPrefs(Et,Mn)),(0,ae.t)(this)).subscribe(Et=>{this.col$.next(Et)}),this.onSetTableFilter$=new Ge.X([]),this.onSetTableFilter$.pipe((0,ae.t)(this)).subscribe(Et=>{const Mn=this.col$.getValue();Et.forEach(kn=>{const $o=Mn.find(Bi=>Bi.key===kn.key);if(void 0!==$o.filter.inputType){const Bi=$o.filter.options[0];if(null===kn.value)return $o.filter.options=[{...Bi,value:null}],void $o.filter.changes.next(kn);if(Array.isArray(kn.value)&&0===kn.value.length)return $o.filter.options=[{...Bi,value:null}],void $o.filter.changes.next({...kn,value:null});let er;Array.isArray(kn.value)?kn.value.length>0&&(er=kn.value[0]):er=kn.value;const Kl=$o.filter.typename;if(!Kl||!er)return void console.error(`evidence-manager requires column config '${$o.key}' provide a typename for cvcTablePrefs Input to set its filter`);const ac=this.getEntityName(Kl,er);if(!ac)return;$o.filter.options=[{...Bi,value:ac}],$o.filter.changes.next({...kn,value:ac})}else ii($o)&&$o.filter.changes.next(kn)})}),this.onSetTablePref$=new Ge.X([]),this.onSetTablePref$.pipe((0,it.M)(this.setPreference$),(0,Ct.U)(([Et,Mn])=>{const kn=[];return Et.forEach($o=>{let Bi=Mn.find(er=>er.value===$o.value);Bi?kn.push({...Bi,...$o}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${$o.value}', but a column with that key could not be found.`)}),kn}),(0,ae.t)(this)).subscribe(Et=>{this.onPreferenceChange$.next(Et)}),this.onRowSelected$.pipe((0,it.M)(this.onSetSelectedRow$),(0,ae.t)(this)).subscribe(([Et,Mn])=>{Et.selected?Mn.add(Et.id):Mn.delete(Et.id),this.onSetSelectedRow$.next(Mn),this.cvcSelectedIdsChange.next(Array.from(Mn))}),this.onScroll$.pipe((0,Ct.U)(Et=>"stop"!==Et),(0,mo.x)(),(0,ae.t)(this)).subscribe(Et=>{this.isScrolling=Et,this.cdr.detectChanges()}),this.onScroll$.pipe((0,De.h)(Et=>"bottom"===Et),(0,it.M)(this.pageInfo$),(0,Ct.U)(([Et,Mn])=>Mn),(0,ae.t)(this)).subscribe(Et=>{Et.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,it.M)((0,Ko.of)(this.tableConfig.get())),(0,ae.t)(this)).subscribe(([y,c])=>{const m=[];c.forEach(G=>{if(Wi(G)&&G.sort.changes&&G.sort.changes.next({key:G.key,value:G.sort.default??null}),ii(G)){const Fe=G.filter.options.find(Et=>1==Et.byDefault)?.value;G.filter.changes&&G.filter.changes.next({key:G.key,value:Fe||null})}m.push(G)}),this.col$.next(m)})}getQueryVars(y){const c=this.getQueryFilterParams(y);return{...this.getQuerySortParams(y),...c,...y.fetchMore}}getQuerySortParams(y){if(!y.sort)return;const m=y.sort.find(Fe=>null!==Fe.value);return m?{sortBy:{column:this.getSortColumnFromColKey(m.key),direction:"ascend"===m.value?An.SrV.Asc:An.SrV.Desc||void 0}}:void 0}getQueryFilterParams(y){let c={};return y.filter&&y.filter.forEach(m=>{c[Zi[m.key]||m.key]=null===m.value||""===m.value?void 0:m.value}),c}getRequestErrors(y){return{query:y.errors,network:y.error}}getTableConfigFromColPrefs(y,c){return c.forEach(m=>{if(hi.find(Fe=>Fe===m.key))return;const G=y.find(Fe=>Fe.value===m.key);G&&(m.hidden=!G?.checked)}),[...c]}getColPrefsFromTableConfig(y){let c=[];return y.forEach(m=>{hi.find(G=>G===m.key)||c.push({label:m.tooltip||m.label,value:m.key,checked:!m.hidden})}),c}getSortColumnFromColKey(y){return Ai[y]}getEntityName(y,c){const m={id:`${y}:${c}`,fragment:Kn.Ps` - fragment Linkable${y}Entity on ${y} { - id - name - link - }`},G=this.apollo.client.readFragment(m);if(G)return G.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${y}:${c} to populate input filter`)}trackByIndex(y,c){return c?.id}ngOnChanges(y){if(y.cvcTableSettings){const c=y.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(y.cvcSelectedIds){const c=y.cvcSelectedIds.currentValue,m=new Set;void 0!==c&&c.forEach(G=>m.add(G)),this.onSetSelectedRow$.next(m)}}}).\u0275fac=function(y){return new(y||ri)(e.Y36(An.EH_),e.Y36(yo._M),e.Y36(e.sBO))},ri.\u0275cmp=e.Xpm({type:ri,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.TTD],decls:16,vars:27,consts:[["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading","cvcTableScrollerOnScroll","cvcTableScrollerOnFetch"],["virtualTable",""],[4,"ngrxLet"],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange"],["enumTableFilter",""],[3,"nzDropdownMenu","nzActive"],["enumTagFilterTrigger",""],["nz-icon","","nzType","filter","nzTheme","fill"],["enumFilterMenu","nzDropdownMenu"],[3,"cvcColumnKey","cvcFilterOptions","cvcOption","cvcOptionChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],["textTagFilterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcPlaceholder","cvcModel","cvcModelChange"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange"],[3,"nzAlign","nzLeft","nzRight"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["emptyEnumTagCell",""],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["emptyTextTagCell",""],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","nzFilterChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["prefsPopover",""],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["queryError",""],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModel","ngModelChange"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.NdJ("cvcTableScrollerOnScroll",function(G){return c.onScroll$.next(G)})("cvcTableScrollerOnFetch",function(G){return c.onFetchMore$.next(G)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.YNc(8,uc,5,2,"thead",3),e.YNc(9,tt,2,0,"tbody",3),e.qZA()(),e.YNc(10,go,3,2,"ng-template",null,4,e.W1O),e.YNc(12,Io,4,2,"ng-template",null,5,e.W1O),e.YNc(14,sr,19,13,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(13),G=e.MAs(15);e.Q6J("nzTitle",m)("nzExtra",G),e.xp6(1),e.Q6J("nzData",e.lcZ(3,15,c.row$)||e.DdM(25,Da))("cvcTableScrollerQueryRef",c.queryRef)("cvcTableScrollerPageInfo",e.lcZ(4,17,c.pageInfo$))("cvcTableScrollerToIndex",e.lcZ(5,19,c.scrollToIndex$))("nzScroll",e.DdM(26,Qr))("nzVirtualForTrackBy",c.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.lcZ(6,21,c.loading$)&&!e.lcZ(7,23,c.isFetchMore$)),e.xp6(7),e.Q6J("ngrxLet",c.col$),e.xp6(1),e.Q6J("ngrxLet",c.col$)}},dependencies:[M.sg,M.O5,M.tP,_e,Yt.P,Se,Rn,Po.J,ye.H,ct,t.Fj,t.JJ,t.On,I.eJ,pn.ix,pn.fY,Wo.w,qo.dQ,In.bd,Ut.ub,Vn.RR,k.t3,k.SK,Re.Ls,Pe.Zp,Pe.gB,Pe.ke,Un._V,Un.Rb,co.lU,jn.N8,jn.qD,jn.Uo,jn._C,jn.h7,jn.Om,jn.p0,jn.$Z,jn.zu,jn.qn,jn.Ql,jn.UX,jn.g6,Jt.j,et.SY,ge.ZU,si,us,Yr,or,K.Do,Ur,I.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0}),ri);jr=(0,te.gn)([(0,ae.c)()],jr);const dc=["optionTemplates"];function eu(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"cvc-evidence-manager",10),e.NdJ("cvcSelectedIdsChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcSelectedIds",e.lcZ(2,2,c.onEid$))("cvcTableSettings",e.lcZ(3,4,c.tableSettingsChange$))}}function pc(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",13),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m)}}function Lr(u,y){1&u&&(e.ynx(0),e.YNc(1,pc,1,3,"ng-template",null,12,e.W1O),e.BQk())}function wn(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Lr,3,0,"ng-container",11),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Bo(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",14)(1,"cvc-entity-tag",15),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","EvidenceItem:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Zc=function(){return[6,6]},qs=function(u,y){return{show:u,hide:y}},xi=Vt(yn(),Xo());let os=(()=>{class u extends xi{constructor(c,m,G,Fe){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.apollo=Fe,this.synchronizedFields$=[],this.synchronizedRequired$=[],this.defaultOptions={props:{label:"Evidence Items",placeholder:"Select Evidence Items",isMultiSelect:!0,description:"Select Evidence by ID, or use the manager to select with filtering",entityName:{singular:"Evidence Item",plural:"Evidence Items"},minSearchStrLength:1}},this.synchronizedFieldToColMap=new Map([["molecularProfileId","molecularProfile"],["diseaseId","disease"],["therapyIds","therapies"]]),this.requiredFieldToColMap=new Map([["disease","requiresDisease$"],["therapies","requiresTherapy$"]]),this.onEid$=new _o.t,this.onShowMgrClick$=new st.x,this.showMgr$=this.onShowMgrClick$.pipe((0,eo.R)((Et,Mn)=>!Et,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.onEid$.pipe((0,ae.t)(this)).subscribe(),this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,it.M)(this.onEid$),(0,ae.t)(this)).subscribe(([c,m])=>{Array.isArray(c)&&this.onEid$.next(c)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((c,m)=>{const G=this.state.fields[`${m}$`];G&&this.synchronizedFields$.push(G.pipe((0,Ct.U)(Fe=>({key:m,value:Fe??null}))))}),this.requiredFieldToColMap.forEach((c,m)=>{const G=this.state.requires[c];G&&this.synchronizedRequired$.push(G.pipe((0,Ct.U)(Fe=>({key:m,required:Fe}))))}),this.onFieldsChange$=(0,Eo.a)(this.synchronizedFields$).pipe((0,Ct.U)(c=>{const m=[];return c.forEach(G=>{const Fe=this.synchronizedFieldToColMap.get(G.key);Fe&&m.push({key:Fe,value:G.value})}),m})),this.onRequiredChange$=(0,Eo.a)(this.synchronizedRequired$).pipe((0,Ct.U)(c=>{const m=[];return c.forEach(G=>{m.push({value:G.key,checked:G.required})}),m})),this.tableSettingsChange$=(0,Eo.a)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,Ct.U)(([c,m])=>({filters:c,preferences:m})),(0,Co.b)(100),(0,tr.d)(1)))}getTypeaheadVarsFn(c,m){return{eid:+c.replace(/EID/i,"")}}getTypeaheadResultsFn(c){return c.data.evidenceItems.nodes}getTagQueryVarsFn(c){return{eid:c}}getTagQueryResultsFn(c){return c.data.evidenceItem}getSelectedItemOptionFn(c){return{value:c.id,label:`EID${c.id}`}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||`EID${G.id}`,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.olA),e.Y36(An.EFm),e.Y36(e.sBO),e.Y36(yo._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(dc,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:18,vars:36,consts:[[3,"nzGutter"],["nzFlex","auto"],[3,"cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["selectedTemplate",""],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIds","cvcTableSettings","cvcSelectedIdsChange"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"cvc-entity-select",2),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcSelectComponent",function(Fe){return m.selectComponent=Fe})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA()(),e.TgZ(7,"nz-col",3)(8,"button",4),e.NdJ("click",function(){return m.onShowMgrClick$.next()}),e._UZ(9,"span",5),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e._uU(12," Manager "),e.qZA()(),e.YNc(13,eu,4,6,"nz-col",6),e.ALo(14,"ngrxPush"),e.qZA(),e.YNc(15,wn,3,3,"ng-container",7),e.YNc(16,Bo,2,3,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(17);e.Q6J("nzGutter",e.DdM(32,Zc)),e.xp6(2),e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",m.props.placeholder)("cvcResults",e.lcZ(3,18,m.result$))("cvcOptions",e.lcZ(4,20,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled)("cvcLoading",e.lcZ(5,22,m.isLoading$))("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngClass",e.WLB(33,qs,e.lcZ(10,26,m.showMgr$),!e.lcZ(11,28,m.showMgr$)))("nzType","caret-right"),e.xp6(4),e.Q6J("ngIf",e.lcZ(14,30,m.showMgr$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.mk,M.sg,M.O5,Oo,Po.J,I.eJ,pn.ix,Wo.w,qo.dQ,k.t3,k.SK,Re.Ls,jr,I.fM],styles:[".manager-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}.manager-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}"],changeDetection:0}),u})();var kr=a(3517);let ar=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Re.PV,Jt.X,et.cg,ge.ZJ,Nt.s,ze.x]}),u})(),Xs=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Jt.X,ge.ZJ,co.$6,Re.PV,et.cg,Nt.s,ar]}),u})();const Kc={types:[{name:"evidence-select",wrappers:["form-field"],component:os},{name:"evidence-multi-select",wrappers:["form-field"],component:os,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let ea=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Ye,kr.M,Xs,Zt,ar,ze.x,xn.y,Nt.s,Qn,v.X0.forChild(Kc),t.u5,pn.sL,In.vh,Ut.Wr,Vn.b1,s.U5,k.Jb,Re.PV,Pe.o7,Un.Zf,co.$6,jn.HQ,Jt.X,et.cg,ge.ZJ]}),u})();const d1=["optionTemplates"];function Jc(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",9),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c.geneAliases.join(", "))("innerHtml",e.xi3(3,2,c.geneAliases.join(", "),m),e.oJD)}}function Ji(u,y){1&u&&e._uU(0,"--")}function Rr(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,Jc,4,5,"ng-container",7),e.YNc(3,Ji,1,0,"ng-template",null,8,e.W1O),e.qZA()),2&u){const c=e.MAs(4),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(2),e.Q6J("ngIf",m.geneAliases.length>0)("ngIfElse",c)}}function Ps(u,y){1&u&&(e.ynx(0),e.YNc(1,Rr,5,5,"ng-template",null,4,e.W1O),e.BQk())}function fs(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ps,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Vr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",10)(1,"cvc-entity-tag",11),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Gene:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const qc=Vt(yn(),Xo());let Oa=(()=>{class u extends qc{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{label:"Gene",placeholder:"Search Genes",isMultiSelect:!1,entityName:{singular:"Gene",plural:"Genes"},description:"Entrez Gene Symbol"}}}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent})}getTypeaheadVarsFn(c){return{entrezSymbol:c}}getTypeaheadResultsFn(c){return c.data.geneTypeahead}getTagQueryVarsFn(c){return{geneId:c}}getTagQueryResultsFn(c){return c.data.gene}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.czh),e.Y36(An.HwR),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-gene-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(d1,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:17,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcResults","cvcOptions","cvcShowError","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcSelectComponent",function(Fe){return m.selectComponent=Fe})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,fs,3,3,"ng-container",1),e.YNc(5,Vr,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcPlaceholder",m.props.placeholder)("cvcEntityName",m.props.entityName)("cvcResults",e.lcZ(1,11,m.result$))("cvcOptions",e.lcZ(2,13,m.selectOption$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(3,15,m.isLoading$)),e.xp6(4),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,et.SY,ge.ZU,Oo,Po.J,I.fM,w.A],changeDetection:0}),u})();const Xc={types:[{name:"gene-select",wrappers:["form-field"],component:Oa},{name:"gene-multi-select",wrappers:["form-field"],component:Oa,defaultOptions:{props:{label:"Genes",isMultiSelect:!0}}}]};let el=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Xc),Mt.L,pn.sL,We.LV,Re.PV,Pe.o7,et.cg,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x]}),u})();const wa=["optionTemplates"];function Pa(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function Ia(u,y){1&u&&(e.ynx(0),e.YNc(1,Pa,1,1,"ng-template",null,3,e.W1O),e.BQk())}function Aa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const hc={COMBINATION:"Therapies specified were used as part of a combination therapy approach",SEQUENTIAL:"Therapies specified were used at separate timepoints in the same treatment plan",SUBSTITUTES:"Therapies specified are often considered to be of the same family, or behave similarly in a treatment setting"},Fa=Vt(yn(),lt()),fc={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends Fa{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Therapy Interaction",placeholder:"Select Therapy Interaction",requireMultipleTherapies:!0,requireMultipleTherapiesPromptFn:()=>"A single associated therapy does not have an Interaction type",tooltip:"Characterizes the interaction of a multi-therapy treatment",extraType:"prompt"}},this.interactionEnum$=new Ge.X([]),this.placeholder$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.interactionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void this.placeholder$.next("ERROR: Form state not found");this.placeholder$.next(this.props.placeholder),this.state.enums.interaction$?(this.state.enums.interaction$.pipe((0,ae.t)(this)).subscribe(c=>{this.interactionEnum$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m))),this.onTherapies$=this.state.fields.therapyIds$,this.optionTemplates||console.warn(`${this.field.id} could not find state's fields.therapyIds$ to handle its required & disabled states.`),this.onTherapies$.pipe((0,ae.t)(this)).subscribe(c=>{c&&0!=c.length?1==c.length?(this.props.description="A single associated therapy does not have an Interaction type",this.props.disabled=!0,this.props.required=!1,void 0!==this.formControl.value&&this.formControl.setValue(void 0)):(this.props.description="Select an Interaction Type",this.props.disabled=!1,this.props.required=!0):(this.props.disabled=!0,this.props.required=!1,this.props.description="Interaction type is not applicable when no therapies are selected.",void 0!==this.formControl.value&&this.formControl.setValue(void 0)),this.cdr.markForCheck()}),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.description=hc[c],this.props.extraType="description"):this.props.extraType="prompt"})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(wa,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,Ia,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,Aa,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.interactionEnum$))}},dependencies:[M.sg,Ke,_e,I.fM]}),u})()}]};let tu=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(fc),je,Be,Ye]}),u})();var nu=a(8004);const ou=["optionTemplates"];function nl(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"enumTooltip"),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c),e.xp6(1),e.hij(" - ",e.xi3(4,2,c,"evidenceLevelBrief")," ")}}function H(u,y){1&u&&(e.ynx(0),e.YNc(1,nl,5,5,"ng-template",null,3,e.W1O),e.BQk())}function X(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",7),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"enumTooltip"),e.qZA()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c.nzValue),e.xp6(1),e.hij(" - ",e.xi3(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function D(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.ALo(2,"enumTooltip"),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,c.nzValue,"evidenceLevelBrief")," ")}}function le(u,y){if(1&u&&(e.TgZ(0,"div",4),e.YNc(1,X,5,5,"nz-tag",5),e.YNc(2,D,3,4,"ng-container",6),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const Ne=new Map([[An.Sx0.A,"Evidence shows consensus association in human medicine"],[An.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[An.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[An.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[An.Sx0.E,"Evidential association is inferential or indirect"]]),pt=Vt(yn(),lt());let vt=(()=>{class u extends pt{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level"}},this.levelEnum$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.props.tooltip="Type of study performed to produce the evidence statement",this.placeholder$=new Ge.X(this.props.placeholder),this.levelEnum$.next((0,Mo.o6)(An.Sx0).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m))),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{this.props.description=c?Ne.get(c):void 0})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-level-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(ou,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,H,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,le,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.levelEnum$))}},dependencies:[M.sg,M.O5,Jt.j,Ke,I.fM,nu.v]}),u})();const cn={types:[{name:"level-select",wrappers:["form-field"],component:vt},{name:"level-multi-select",wrappers:["form-field"],component:vt,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let Fn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(cn),Jt.X,Nt.s,je,Be]}),u})();var ro,io=a(6928);let Ho=((ro=class{constructor(y){this.el=y,this.domChange=new e.vpe,this.changes=new MutationObserver(c=>{(0,Xn.D)(c).pipe((0,Ct.U)(m=>{const G=m.target;return"class"===m.attributeName?{type:"class",change:G.classList.value,key:`${m.attributeName}:${G.classList.value}`}:"disabled"===m.attributeName?{type:"disabled",change:G.disabled,key:`${m.attributeName}:${G.disabled}`}:"hidden"===m.attributeName?{type:"hidden",change:G.hidden,key:`${m.attributeName}:${G.hidden}`}:{type:m.attributeName,change:"unknown change type",key:`${m.attributeName}:unknown-change-type`}}),(0,Q.g)("key"),(0,ae.t)(this)).subscribe(m=>{this.domChange.emit(m)})}),this.changes.observe(this.el.nativeElement,{attributeFilter:["class","disabled","hidden"],attributes:!0,childList:!1,subtree:!1})}ngAfterViewInit(){this.initialClass=this.el.nativeElement.classList.value}ngOnDestroy(){this.changes.disconnect()}}).\u0275fac=function(y){return new(y||ro)(e.Y36(e.SBq))},ro.\u0275dir=e.lG2({type:ro,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}}),ro);Ho=(0,te.gn)([(0,ae.c)()],Ho);var Wr,Ii=a(951);function Zr(u,y){if(1&u&&(e.TgZ(0,"button",3),e._uU(1),e.qZA()),2&u){const c=e.oxw();e.Q6J("disabled",!c.form.valid),e.xp6(1),e.hij(" ",c.props.submitLabel," ")}}function Kr(u,y){1&u&&e.GkF(0)}function Yi(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Kr,1,0,"ng-container",7),e.BQk()),2&u){e.oxw(2);const c=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function xr(u,y){1&u&&e.GkF(0)}function p1(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-avatar",11),e.BQk()),2&u){const c=y.ngrxLet,m=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSrc",c?c.profileImagePath:m[0].profileImagePath)("nzSize",16)("nzShape","square")}}function h1(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-button-group"),e.YNc(2,xr,1,0,"ng-container",7),e.TgZ(3,"button",8),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.TgZ(7,"span"),e._uU(8,"for"),e.qZA(),e.YNc(9,p1,2,3,"ng-container",9),e._UZ(10,"i",10),e.qZA()(),e.BQk()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw(),G=e.MAs(2);e.xp6(2),e.Q6J("ngTemplateOutlet",G),e.xp6(1),e.Q6J("ngClass",e.lcZ(4,6,m.buttonClass$))("hidden",e.lcZ(5,8,m.isHidden$))("disabled",e.lcZ(6,10,m.isDisabled$))("nzDropdownMenu",c),e.xp6(6),e.Q6J("ngrxLet",m.mostRecentOrg$)}}function f1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw(2);return e.KtG(Et.menuSelection$.next(Fe.id))}),e._UZ(1,"nz-avatar",11),e._uU(2),e.qZA()}if(2&u){const c=y.$implicit;e.xp6(1),e.Q6J("nzSrc",null==c?null:c.profileImagePath)("nzSize",10)("nzShape","square"),e.xp6(1),e.hij(" ",c.name," ")}}function Na(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Yi,2,1,"ng-container",2),e.YNc(2,h1,11,12,"ng-container",2),e.TgZ(3,"nz-dropdown-menu",null,4)(5,"ul",5),e.YNc(6,f1,3,4,"li",6),e.qZA()(),e.BQk()),2&u){const c=y.ngIf;e.xp6(1),e.Q6J("ngIf",c.length<=1),e.xp6(1),e.Q6J("ngIf",c.length>1),e.xp6(4),e.Q6J("ngForOf",c)}}let Is=((Wr=class extends v.fS{constructor(y,c,m){super(),this.viewerService=y,this.cdr=c,this.apollo=m,this.menuSelection$=new st.x,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,sn.j)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,sn.j)("mostRecentOrg")),this.isDisabled$=new st.x,this.isHidden$=new st.x,this.buttonClass$=new Ge.X(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,it.M)(this.viewer$)).subscribe(([G,Fe])=>{const Et={id:`User:${Fe.id}`,fragment:yo.Ps` - fragment UserMostRecentOrgId on User { - mostRecentOrganizationId - } - `,data:{mostRecentOrganizationId:G}};this.apollo.client.writeFragment(Et)}),this.formUpdate$=new Ge.X(this.form.status);const y=this.form.statusChanges.subscribe(G=>this.formUpdate$.next(G)),c=this.formUpdate$.subscribe(G=>this.cdr.detectChanges()),m=this.mostRecentOrg$.pipe((0,sn.j)("id"),(0,De.h)(So.ep)).subscribe(G=>{this.formControl.setValue(G)});this.subscriptions=this.subscriptions.concat([y,c,m])}ngAfterViewInit(){if(this.button&&this.button.domChange){const y=this.button.domChange.subscribe(c=>{"class"===c.type&&"string"==typeof c.change?this.buttonClass$.next(`${this.baseButtonClass} ${c.change}`):"disabled"===c.type&&"boolean"==typeof c.change?this.isDisabled$.next(c.change):"hidden"===c.type&&"boolean"==typeof c.change&&this.isHidden$.next(c.change)});this.subscriptions.push(y)}}}).\u0275fac=function(y){return new(y||Wr)(e.Y36(Ii.a),e.Y36(e.sBO),e.Y36(yo._M))},Wr.\u0275cmp=e.Xpm({type:Wr,selectors:[["cvc-org-submit-button"]],viewQuery:function(y,c){if(1&y&&e.Gf(Ho,5),2&y){let m;e.iGM(m=e.CRH())&&(c.button=m.first)}},features:[e.qOj],decls:5,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],["submitButton",""],[4,"ngIf"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary",3,"disabled","nzDanger"],["orgMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],["type","button","nz-button","","nz-dropdown","","nzTrigger","click",3,"ngClass","hidden","disabled","nzDropdownMenu"],[4,"ngrxLet"],["nz-icon","","nzType","down"],[3,"nzSrc","nzSize","nzShape"],["nz-menu-item","",3,"click"]],template:function(y,c){1&y&&(e._UZ(0,"input",0),e.YNc(1,Zr,2,2,"ng-template",null,1,e.W1O),e.YNc(3,Na,7,3,"ng-container",2),e.ALo(4,"ngrxPush")),2&y&&(e.Q6J("formControl",c.formControl)("formlyAttributes",c.field),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,3,c.organizations$)))},dependencies:[M.mk,M.sg,M.O5,M.tP,t.Fj,t.JJ,t.oH,I.eJ,v.JD,Re.Ls,io.Dz,pn.ix,pn.fY,Wo.w,qo.dQ,es.wO,es.r9,Vn.cm,Vn.RR,Vn.wA,Ho,I.fM],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:first-child:not(:last-child){border-right-color:#ff4d4f}[_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:hover, [_nghost-%COMP%] .ant-btn-dangerous.ant-btn-primary:focus{border-right-color:#fd7978}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:-2px 6px 0;border:1px solid rgba(255,255,255,.3);background-color:#ffffffe6}.org-dropdown-btn.ant-btn-dangerous[_ngcontent-%COMP%]:last-child:not(:first-child), .org-dropdown-btn[_ngcontent-%COMP%] .ant-btn-dangerous[_ngcontent-%COMP%] + .ant-btn-dangerous[_ngcontent-%COMP%]{border-left-color:#fd7978}"],changeDetection:0}),Wr);Is=(0,te.gn)([(0,ae.c)({arrayName:"subscriptions"})],Is);const ol={types:[{name:"org-submit-button",component:Is}]};let ip=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(ol),Re.PV,io.Rt,pn.sL,Vn.b1]}),u})();const iu=["optionTemplates"];function m1(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function Td(u,y){1&u&&(e.ynx(0),e.YNc(1,m1,1,1,"ng-template",null,3,e.W1O),e.BQk())}function ru(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Md=new Map([[An.huM.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."],[An.huM.RareGermline,"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."],[An.huM.CommonGermline,"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."],[An.huM.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[An.huM.Unknown,"The variant origin is uncertain based on the available evidence."],[An.huM.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),rp=Vt(yn(),lt());let su=(()=>{class u extends rp{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Variant Origin",required:!1,isMultiSelect:!1,placeholder:"Select Variant Origin",tooltip:"Identifies whether the variant is inherited (germline mutation) or acquired (somatic mutation) in the context of the study"}},this.originEnum$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(Md.keys()))}configureStateConnections(){this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m))),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{this.props.description=c?Md.get(c):void 0})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(iu,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:6,vars:13,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.YNc(2,Td,3,0,"ng-container",1),e.ALo(3,"ngrxPush"),e.YNc(4,ru,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(5);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",m.props.placeholder)("cvcCustomTemplate",G)("cvcOptions",e.lcZ(1,9,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,11,m.originEnum$))}},dependencies:[M.sg,Ke,_e,I.fM]}),u})();const il={types:[{name:"origin-select",wrappers:["form-field"],component:su},{name:"origin-multi-select",wrappers:["form-field"],component:su,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let g1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(il),je,Be,Ye]}),u})();const ta=["optionTemplates"];function rl(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",8),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.hpoId,m),e.oJD)}}function sl(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,rl,4,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.hpoId)}}function bd(u,y){1&u&&(e.ynx(0),e.YNc(1,sl,3,4,"ng-template",null,4,e.W1O),e.BQk())}function v1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,bd,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function _1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",9)(1,"cvc-entity-tag",10),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Phenotype:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Sd=Vt(yn(),Xo());let Jr=(()=>{class u extends Sd{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Phenotype",plural:"Phenotypes"},isMultiSelect:!1,requireType:!0,tooltip:"Phenotype or phenotype combination which interacts with the specified variant",placeholders:{default:"Search Phenotypes",multiDefault:"Select Phenotype(s) (max MULTI_MAX)",requireTypePrompt:"Select an ENTITY_NAME Type to search Phenotypes"},description:'Please provide any HPO phenotypes, including age of onset.',extraType:"description"}},this.placeholder$=new Ge.X(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.phenotypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.phenotype}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.zOE),e.Y36(An.z_7),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(ta,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,v1,3,3,"ng-container",1),e.YNc(7,_1,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresPhenotype$&&!e.lcZ(4,18,m.onRequiresPhenotype$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,ge.ZU,Oo,Po.J,I.fM,w.A],changeDetection:0}),u})();const Ed={types:[{name:"phenotype-select",wrappers:["form-field"],component:Jr,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:Jr,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let al=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Ed),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x]}),u})();var mc=a(6028),gc=a(2438),na=a(9773),La=a(874),y1=a(9087),oa=a(7754),au=a(9388);const cu=["nz-rate-item",""];function lu(u,y){}function vc(u,y){}function ka(u,y){1&u&&e._UZ(0,"span",4)}const is=function(u){return{$implicit:u}},uu=["ulElement"];function cl(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",3)(1,"div",4),e.NdJ("itemHover",function(G){const Et=e.CHM(c).index,Mn=e.oxw();return e.KtG(Mn.onItemHover(Et,G))})("itemClick",function(G){const Et=e.CHM(c).index,Mn=e.oxw();return e.KtG(Mn.onItemClick(Et,G))}),e.qZA()()}if(2&u){const c=y.index,m=e.oxw();e.Q6J("ngClass",m.starStyleArray[c]||"")("nzTooltipTitle",m.nzTooltips[c]),e.xp6(1),e.Q6J("allowHalf",m.nzAllowHalf)("character",m.nzCharacter)("index",c)}}let ll=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.vpe,this.itemClick=new e.vpe}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:cu,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,m){if(1&c&&(e.TgZ(0,"div",0),e.NdJ("mouseover",function(Fe){return m.hoverRate(!1),Fe.stopPropagation()})("click",function(){return m.clickRate(!1)}),e.YNc(1,lu,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"div",2),e.NdJ("mouseover",function(Fe){return m.hoverRate(!0),Fe.stopPropagation()})("click",function(){return m.clickRate(!0)}),e.YNc(3,vc,0,0,"ng-template",1),e.qZA(),e.YNc(4,ka,1,0,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",m.character||G)("ngTemplateOutletContext",e.VKq(4,is,m.index)),e.xp6(2),e.Q6J("ngTemplateOutlet",m.character||G)("ngTemplateOutletContext",e.VKq(6,is,m.index))}},dependencies:[M.tP,Re.Ls],encapsulation:2,changeDetection:0}),(0,te.gn)([(0,oa.yF)()],u.prototype,"allowHalf",void 0),u})(),du=(()=>{class u{get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c),this.hoverValue=Math.ceil(c))}constructor(c,m,G,Fe,Et,Mn){this.nzConfigService=c,this.ngZone=m,this.renderer=G,this.cdr=Fe,this.directionality=Et,this.destroy$=Mn,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.vpe,this.nzOnFocus=new e.vpe,this.nzOnHoverChange=new e.vpe,this.nzOnKeyDown=new e.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.isNzDisableFirstChange=!0,this.onChange=()=>null,this.onTouched=()=>null}ngOnChanges(c){const{nzAutoFocus:m,nzCount:G,nzValue:Fe}=c;if(m&&!m.isFirstChange()){const Et=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(Et,"autofocus","autofocus"):this.renderer.removeAttribute(Et,"autofocus")}G&&this.updateStarArray(),Fe&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,na.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,na.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,gc.R)(this.ulElement.nativeElement,"focus").pipe((0,na.R)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,gc.R)(this.ulElement.nativeElement,"blur").pipe((0,na.R)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,m){if(this.nzDisabled)return;this.hoverValue=c+1;const G=m?c+.5:c+1;this.nzValue===G?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=G,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,m){this.nzDisabled||this.hoverValue===c+1&&m===this.hasHalf||(this.hoverValue=c+1,this.hasHalf=m,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 m=this.nzValue;c.keyCode===mc.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),m!==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,m)=>m),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const m="ant-rate-star",G=c+1;return{[`${m}-full`]:Gthis.hoverValue,[`${m}-focused`]:this.hasHalf&&G===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(La.jY),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(au.Is,8),e.Y36(y1.kn))},u.\u0275cmp=e.Xpm({type:u,selectors:[["nz-rate"]],viewQuery:function(c,m){if(1&c&&e.Gf(uu,7),2&c){let G;e.iGM(G=e.CRH())&&(m.ulElement=G.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:[e._Bn([y1.kn,{provide:t.JU,useExisting:(0,e.Gpc)(()=>u),multi:!0}]),e.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,m){1&c&&(e.TgZ(0,"ul",0,1),e.NdJ("keydown",function(Fe){return m.onKeyDown(Fe),Fe.preventDefault()})("mouseleave",function(Fe){return m.onRateLeave(),Fe.stopPropagation()}),e.YNc(2,cl,2,5,"li",2),e.qZA()),2&c&&(e.ekj("ant-rate-disabled",m.nzDisabled)("ant-rate-rtl","rtl"===m.dir),e.Q6J("ngClass",m.classMap)("tabindex",m.nzDisabled?-1:1),e.xp6(2),e.Q6J("ngForOf",m.starArray))},dependencies:[M.mk,M.sg,et.SY,ll],encapsulation:2,changeDetection:0}),(0,te.gn)([(0,La.oS)(),(0,oa.yF)()],u.prototype,"nzAllowClear",void 0),(0,te.gn)([(0,La.oS)(),(0,oa.yF)()],u.prototype,"nzAllowHalf",void 0),(0,te.gn)([(0,oa.yF)()],u.prototype,"nzDisabled",void 0),(0,te.gn)([(0,oa.yF)()],u.prototype,"nzAutoFocus",void 0),(0,te.gn)([(0,oa.Rn)()],u.prototype,"nzCount",void 0),u})(),pu=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[au.vT,M.ez,Re.PV,et.cg]}),u})();const _c={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."},hu=Vt(yn(),lt()),yc={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends hu{constructor(){super(),this.defaultOptions={props:{label:"Evidence Rating",count:5,tooltip:"A representation of the curator's confidence in the quality of the summarized evidence",hoverText:[]}},this.rating$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(_c).map(([c,m])=>{this.props.hoverText.push(m)}),this.rating$.pipe((0,ae.t)(this)).subscribe(c=>{this.formControl.setValue(c)}),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{this.props.description=c?_c[c]:void 0})}configureStateConnections(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-rating"]],features:[e.qOj],decls:2,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","nzCount","nzTooltips","ngModelChange"]],template:function(c,m){1&c&&(e._UZ(0,"input",0),e.TgZ(1,"nz-rate",1),e.NdJ("ngModelChange",function(Fe){return m.rating$.next(Fe)}),e.qZA()),2&c&&(e.Q6J("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.Q6J("ngModel",m.formControl.value)("nzCount",m.props.count)("nzTooltips",m.props.hoverText))},dependencies:[t.Fj,t.JJ,t.oH,t.On,v.JD,du],styles:["[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0}),u})()}]};let As=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,t.u5,v.X0.forChild(yc),pu,Nt.s,je,Be]}),u})();const Fs=["optionTemplates"];function Ns(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function ul(u,y){1&u&&(e.ynx(0),e.YNc(1,Ns,1,1,"ng-template",null,3,e.W1O),e.BQk())}function Cc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const ia={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:{PREDISPOSITION:"Germline variant has predisposing potential for cancer, and may meet select ACMG/AMP criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Germline variant has properties that protect individuals from acquiring cancer."},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:{ONCOGENICITY:"Somatic variant has oncogenic potential for driving cancer, and may meet select ClinGen/CGC/VICC criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Somatic variant has a protective role against cancer."}},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 meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},ONCOGENIC:{ONCOGENIC:"Very strong evidence the variant is oncogenic.",LIKELY_ONCOGENIC:"Strong evidence the variant is oncogenic.",BENIGN:"Very strong evidence the variant does not have oncogenic properties.",LIKELY_BENIGN:"Strong evidence the variant does not have oncogenic properties.",UNCERTAIN_SIGNIFICANCE:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},C1=Vt(yn(),lt()),T1={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends C1{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:m=>`Select ${m?m+" ":""} Significance`,requireTypePromptFn:m=>`Select ${m} Type to select its Significance`,tooltip:"Clinical impact of the variant",formMode:"add"}},this.significanceEnum$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.significanceEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new Ge.X("ERROR: Form state not found"));if(this.placeholder$=new Ge.X(this.props.placeholderFn(this.state.entityName)),!this.state.enums.significance$)return void console.error(`${this.field.id} could not find form state's enums.significance$ to populate select.`);this.state.enums.significance$.pipe((0,ae.t)(this)).subscribe(m=>{this.significanceEnum$.next(m)}),this.optionTemplates||console.warn(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(m=>m.map(G=>G)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onTypeSelect$=this.state.fields[c],this.onTypeSelect$.pipe((0,Pt.T)("add"===this.props.formMode?0:1),(0,ae.t)(this)).subscribe(m=>{m?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,it.M)(this.onTypeSelect$),(0,ae.t)(this)).subscribe(([m,G])=>{!G||!m||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=ia[this.state.entityName][G][m])})):console.error(`${this.field.id} could not find form state's ${c} to populate Significance options.`)}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Fs,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,ul,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,Cc,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.significanceEnum$))}},dependencies:[M.sg,Ke,_e,I.fM]}),u})()}]};let xd=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(T1),je,Be,Ye]}),u})();var ra,Dd=a(7907),zc=a(2666),Od=a(7921);function sa(u,y){1&u&&e._UZ(0,"span",9),2&u&&e.Q6J("nzType","loading")}function M1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,sa,1,1,"span",8),e._uU(2,"\xa0 "),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c.showSpinner),e.xp6(3),e.Oqu(c.message)}}function b1(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}function ki(u,y){1&u&&(e.TgZ(0,"button",10),e._uU(1," Add Source "),e.qZA()),2&u&&e.Q6J("disabled",null===y.ngrxLet.citation)}const mu=function(){return[0,0]};let Ls=((ra=class{constructor(y,c,m,G,Fe){this.checkCitation=y,this.addRemoteCitation=c,this.errors=m,this.apollo=G,this.cdr=Fe,this.cvcOnCreate=new e.vpe,this.messageOptions={empty:(Et,Mn)=>`No ${Mn} Source with a citation ID of "${Et}"`,searchCitation:(Et,Mn)=>`Searching ${Mn} for a citation ID of "${Et}"`,foundCitation:(Et,Mn,kn)=>`Found ${Mn} citation "${kn}" with ID ${Et}`,noCitation:(Et,Mn)=>`No ${Mn} Source with a citation ID of "${Et}" was found`},this.form=new t.nJ({}),this.model={citationId:"",sourceType:An.yic.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new st.x,this.citationId$=new Ge.X(""),this.sourceType$=new Ge.X(An.yic.Pubmed),this.addSourceStubMutator=new Jo.U(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,ae.t)(this)).subscribe(Et=>{console.log("disease-quick-add form model submitted.",Et),this.submitSourceStub()})}ngOnInit(){void 0!==this.model.citationId&&void 0!==this.model.sourceType?(this.queryRef=this.checkCitation.watch({citationId:this.model.citationId,sourceType:this.model.sourceType}),this.checkResult$=this.queryRef.valueChanges.pipe((0,Ct.U)(y=>({loading:y.loading,citation:y.data?y.data.remoteCitation:null,model:this.model})),(0,wo.b)(y=>{this.citationString=y.citation?y.citation:void 0})),this.citationId$.pipe((0,ae.t)(this)).subscribe(y=>{this.model.sourceType&&this.queryRef.refetch({citationId:y,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,Ct.U)(y=>{const c=y.loading,m=y.citation,G=y.model;return c?{message:this.messageOptions.searchCitation(G.citationId,G.sourceType),showSpinner:!0}:c||null===m?c||null!==m?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(G.citationId,G.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(G.citationId,(0,zc.c)(G.sourceType),m),showSpinner:!1}}),(0,Od.O)({message:this.messageOptions.searchCitation(this.model.citationId,this.model.sourceType),showSpinner:!0}))):console.error("source-quick-add provided invalid initial model")}submitSourceStub(){void 0!==this.model.citationId&&void 0!==this.model.sourceType&&(this.mutationState=this.addSourceStubMutator.mutate(this.addRemoteCitation,{input:{citationId:this.model.citationId,sourceType:this.model.sourceType}},{},y=>{if(console.log("source-quick-add submit data callback",y),y.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const c=y.addRemoteCitation.newSource,m=(0,zc.c)(this.model.sourceType),G=this.citationString?this.citationString:"NO CITATION",Fe={query:yo.Ps` - query WriteLocalSource($id: Int!) { - source(id: $id) { - id - name - link - citation - citationId - sourceType - } - } - `,data:{source:{__typename:"Source",id:c.id,name:`${m}: ${G}`,link:`sources/${c.id}`,citation:G,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:c.id}};this.apollo.client.cache.writeQuery(Fe)||console.error("source-quick-add.form Source writeQuery failed.",Fe),setTimeout(()=>{const Mn={id:`Source:${c.id}`,fragment:yo.Ps` - fragment LinkableSource on Source { - id - name - link - } - `},kn=this.apollo.client.cache.readFragment(Mn);null!==kn&&this.cvcOnCreate.next(kn.id)},1e3)}}))}ngOnChanges(y){if(y.cvcSourceType){const c=y.cvcSourceType.currentValue;this.sourceType$.next(c),this.model={...this.model,sourceType:c}}if(y.cvcCitationId){const c=y.cvcCitationId.currentValue;this.citationId$.next(c),this.model={...this.model,citationId:c}}}}).\u0275fac=function(y){return new(y||ra)(e.Y36(An.qgP),e.Y36(An.LHC),e.Y36(Ro.Y),e.Y36(yo._M),e.Y36(e.sBO))},ra.\u0275cmp=e.Xpm({type:ra,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.TTD],decls:10,vars:11,consts:[[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["success",""],["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled",4,"ngrxLet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(y,c){if(1&y&&(e.YNc(0,M1,5,2,"ng-container",0),e.TgZ(1,"cvc-form-submission-status-display",1),e.YNc(2,b1,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"form",3),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(8,"nz-col",5),e.YNc(9,ki,2,1,"button",7),e.qZA()()()()),2&y){const m=e.MAs(3);e.Q6J("ngrxLet",c.formMessageDisplay$),e.xp6(1),e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(10,mu)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("ngrxLet",c.checkResult$)}},dependencies:[M.O5,t._Y,t.JL,t.sg,I.eJ,v.T7,pn.ix,Wo.w,qo.dQ,Re.Ls,k.t3,k.SK,s.Lr,Ti.F],changeDetection:0}),ra);Ls=(0,te.gn)([(0,ae.c)()],Ls);const S1=["optionTemplates"];function yr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"nz-select",10),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.sourceType$.next(G))}),e.ALo(2,"ngrxPush"),e._UZ(3,"nz-option",11)(4,"nz-option",12)(5,"nz-option",13),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("nzOptionHeightPx",28)("ngModel",e.lcZ(2,2,c.sourceType$))}}function aa(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"PMID:"),e.qZA())}function dl(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"ID:"),e.qZA())}function Ra(u,y){1&u&&(e.TgZ(0,"div"),e._uU(1,"doi.org/"),e.qZA())}function ca(u,y){if(1&u&&(e.TgZ(0,"nz-col",14),e.ynx(1,15),e.ALo(2,"ngrxPush"),e.YNc(3,aa,2,0,"div",16),e.YNc(4,dl,2,0,"div",16),e.YNc(5,Ra,2,0,"div",16),e.BQk(),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngSwitch",e.lcZ(2,4,c.sourceType$)),e.xp6(2),e.Q6J("ngSwitchCase","PUBMED"),e.xp6(1),e.Q6J("ngSwitchCase","ASCO"),e.xp6(1),e.Q6J("ngSwitchCase","ASH")}}function gu(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",19),e.TgZ(1,"span",20),e._uU(2," ID: "),e._UZ(3,"span",21),e.ALo(4,"highlightTypeahead"),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(3),e.Q6J("innerHtml",e.xi3(4,4,c.citationId.toString(),m),e.oJD)}}function E1(u,y){1&u&&(e.ynx(0),e.YNc(1,gu,5,7,"ng-template",null,18,e.W1O),e.BQk())}function pl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,E1,3,0,"ng-container",17),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function x1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",22)(1,"cvc-entity-tag",23),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Source:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function mr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-source-quick-add",24),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.qZA()}if(2&u){const c=y.model;e.Q6J("cvcCitationId",c.citationId)("cvcSourceType",c.sourceType)}}function Tc(u,y){1&u&&(e.TgZ(0,"button",25),e._uU(1,"Add a New Source"),e.qZA())}const gs=function(){return[6,6]},hl=Vt(yn(),Xo());let fl=(()=>{class u extends hl{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.onModel$=new Yo.y,this.defaultSourceType=An.yic.Pubmed,this.defaultOptions={props:{entityName:{singular:"Source",plural:"Sources"},isMultiSelect:!1,minSearchStrLength:2,tooltip:"PubMed, ASCO, or ASH Abstract Source(s) that support items, statements or descriptions.",placeholders:{default:"Search PubMed, ASCO, and ASH Sources",contextualFn:Fe=>`Search ${Fe} Sources`},extraType:"prompt"}},this.sourceType$=new Ge.X(this.defaultSourceType),this.sourceTypeName$=new Ge.X((0,zc.c)(this.defaultSourceType)),this.placeholder$=new Ge.X(this.defaultOptions.props.placeholders.contextualFn((0,zc.c)(this.defaultSourceType))),this.showTypeSelect$=new Yo.y}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:this.sourceType$,typeaheadParamName$:this.sourceTypeName$||void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.showTypeSelect$=this.onValueChange$.pipe((0,Ct.U)(c=>!!(!c||c&&Array.isArray(c)))),this.sourceType$.pipe((0,ae.t)(this)).subscribe(c=>{const m=(0,zc.c)(c);this.sourceTypeName$.next(m),this.placeholder$.next(this.props.placeholders.contextualFn(m))}),this.onModel$=(0,Eo.a)([this.sourceType$,this.onSearch$]).pipe((0,Ct.U)(([c,m])=>({citationId:m,sourceType:c})))}getTypeaheadVarsFn(c,m=An.yic.Pubmed){return{partialCitationId:c,sourceType:m}}getTypeaheadResultsFn(c){return c.data.sourceTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.source}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.aC3),e.Y36(An.BYO),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-source-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(S1,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:21,vars:39,consts:[[3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen","cvcOnSearch","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"nzOptionHeightPx","ngModel","ngModelChange"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcCitationId","cvcSourceType","cvcOnCreate"],["type","button"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0),e.YNc(1,yr,6,4,"nz-col",1),e.ALo(2,"ngrxPush"),e.YNc(3,ca,6,6,"nz-col",2),e.ALo(4,"ngrxPush"),e.TgZ(5,"nz-col",3)(6,"cvc-entity-select",4),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(7,"ngrxPush"),e.ALo(8,"ngrxPush"),e.ALo(9,"ngrxPush"),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e.ALo(12,"ngrxPush"),e.ALo(13,"ngrxPush"),e.qZA()()(),e.YNc(14,pl,3,3,"ng-container",5),e.YNc(15,x1,2,3,"ng-template",null,6,e.W1O),e.YNc(17,mr,1,2,"ng-template",null,7,e.W1O),e.YNc(19,Tc,2,0,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(16),Fe=e.MAs(18);e.Q6J("nzGutter",e.DdM(38,gs)),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,20,m.showTypeSelect$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,22,m.showTypeSelect$)),e.xp6(3),e.Q6J("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(7,24,m.placeholder$))("cvcResults",e.lcZ(8,26,m.result$))("cvcOptions",e.lcZ(9,28,m.selectOption$))("cvcParamName",e.lcZ(10,30,m.sourceTypeName$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled)("cvcLoading",e.lcZ(11,32,m.isLoading$))("cvcAddEntity",Fe)("cvcAddEntityModel",e.lcZ(12,34,m.onModel$))("cvcSelectOpen",e.lcZ(13,36,m.selectOpen$)),e.xp6(8),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,M.RF,M.n9,t.JJ,t.On,I.eJ,We.Ip,We.Vq,k.t3,k.SK,ge.ZU,Oo,Po.J,Ls,I.fM,w.A],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}"],changeDetection:0}),u})();const vu={types:[{name:"source-select",wrappers:["form-field"],component:fl,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:fl,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let _u=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,t.UX,v.X0.forChild(vu),Mt.L,pn.sL,Dd.aF,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,on.S,Jt.X,Wn.g,je,Zt,Nt.s,ze.x]}),u})();function ml(u){return(()=>{class c extends u{configureStringTagField(){this.onValueChange$?(this.tagLabel$=new st.x,this.onValueChange$.pipe((0,ae.t)(this)).subscribe(G=>{this.tagLabel$.next(G?G.toString():void 0)}),this.onTagClose$=new st.x,this.onTagClose$.pipe((0,ae.t)(this)).subscribe(G=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})):console.error(`${this.field.id} cannot find onValueChange$ Subject, ensure configureBaseField() has been called before configureDisplayStringTag in its AfterViewInit hook.`)}}return c.\u0275fac=function(){let m;return function(Fe){return(m||(m=e.n5z(c)))(Fe||c)}}(),c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})()}function yu(u,y){}function Cu(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",4)(1,"nz-tag",5),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnClose.next(G))}),e.YNc(2,yu,0,0,"ng-template",6),e.qZA()()}if(2&u){const c=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("nzMode",c.cvcMode),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function Mc(u,y){}function Va(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",7)(1,"nz-tag",5),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcOnClose.next(G))}),e.YNc(2,Mc,0,0,"ng-template",6),e.qZA()()}if(2&u){e.oxw();const c=e.MAs(4);e.xp6(1),e.Q6J("nzMode","closeable"),e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function gl(u,y){}function Ba(u,y){if(1&u&&(e.TgZ(0,"span",8),e.YNc(1,gl,0,0,"ng-template",6),e.qZA()),2&u){e.oxw();const c=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",c)}}function zu(u,y){1&u&&e._UZ(0,"i",11)}function Ha(u,y){if(1&u&&(e.YNc(0,zu,1,0,"i",9),e._UZ(1,"span",10),e.ALo(2,"highlightTypeahead")),2&u){const c=e.oxw();e.Q6J("ngIf",!c.cvcLabel),e.xp6(1),e.Q6J("innerHtml",c.cvcLabel?e.xi3(2,2,c.cvcLabel,c.cvcEmphasize):"?STRING?",e.oJD)}}let vl=(()=>{class u{constructor(){this.cvcMode="default",this.cvcContext="default",this.cvcOnClose=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-string-tag"]],inputs:{cvcLabel:"cvcLabel",cvcEmphasize:"cvcEmphasize",cvcMode:"cvcMode",cvcContext:"cvcContext"},outputs:{cvcOnClose:"cvcOnClose"},decls:5,vars:3,consts:[["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],["tagContent",""],[1,"default"],[3,"nzMode","nzOnClose"],[3,"ngTemplateOutlet"],[1,"select-item"],[1,"multi-select-item"],["nz-icon","","nzType","question-circle","nzTheme","outline",4,"ngIf"],[3,"innerHtml"],["nz-icon","","nzType","question-circle","nzTheme","outline"]],template:function(c,m){1&c&&(e.YNc(0,Cu,3,2,"span",0),e.YNc(1,Va,3,2,"span",1),e.YNc(2,Ba,2,1,"span",2),e.YNc(3,Ha,3,5,"ng-template",null,3,e.W1O)),2&c&&(e.Q6J("ngIf","default"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","select-item"===m.cvcContext),e.xp6(1),e.Q6J("ngIf","multi-select-item"===m.cvcContext))},dependencies:[M.O5,M.tP,Re.Ls,Jt.j,w.A]}),u})();function _l(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-string-tag",3),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.tagClosed(Fe))}),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("cvcMode",m.props.disabled?"default":"closeable")("cvcLabel",c)}}const bc=Vt(yn(),ml);let la=(()=>{class u extends bc{constructor(c){super(),this.cdr=c,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return"}},this.tags$=new st.x,this.values=new Set}onEnter(c){let m=c.target;m.value&&(this.values.add(m.value),m.value="");let G=Array.from(this.values);this.tags$.next(G),this.formControl.setValue(G)}tagClosed(c){this.values.delete(c);let m=Array.from(this.values);this.tags$.next(m),this.formControl.setValue(m),this.tags$.next(m)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.formControl.value&&Array.isArray(this.formControl.value)&&(this.formControl.value.forEach(c=>this.values.add(c)),this.tags$.next(this.formControl.value),this.cdr.detectChanges())}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-tag-input"]],features:[e.qOj],decls:5,vars:7,consts:[[3,"cvcMode","cvcLabel","cvcOnClose",4,"ngFor","ngForOf"],["nz-input","",3,"disabled","placeholder","keydown.enter"],["hidden","","nz-input","",3,"formControl","formlyAttributes"],[3,"cvcMode","cvcLabel","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"div"),e.YNc(1,_l,1,2,"cvc-string-tag",0),e.ALo(2,"ngrxPush"),e.TgZ(3,"input",1),e.NdJ("keydown.enter",function(Fe){return m.onEnter(Fe)}),e.qZA()(),e._UZ(4,"input",2)),2&c&&(e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,5,m.tags$)),e.xp6(2),e.Q6J("disabled",m.props.disabled)("placeholder",m.props.placeholder),e.xp6(1),e.Q6J("formControl",m.formControl)("formlyAttributes",m.field))},dependencies:[M.sg,t.Fj,t.JJ,t.oH,v.JD,Pe.Zp,vl,I.fM],changeDetection:0}),u})(),ks=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Re.PV,Jt.X,Nt.s]}),u})();const yl={types:[{name:"tag-input",wrappers:["form-field"],component:la},{name:"tag-multi-input",wrappers:["form-field"],component:la,defaultOptions:{props:{isRepeatItem:!0}}}]};let Tu=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(yl),He.F,Pe.o7,s.U5,ks]}),u})();const Rs=Vt(yn()),Mu={types:[{name:"textarea",component:(()=>{class u extends Rs{constructor(){super(...arguments),this.defaultOptions={props:{label:"TEXTAREA!"}}}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.qOj],decls:1,vars:3,consts:[["nz-input","",3,"rows","formControl","formlyAttributes"]],template:function(c,m){1&c&&e._UZ(0,"textarea",0),2&c&&e.Q6J("rows",m.props.rows?m.props.rows:2)("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[t.Fj,t.JJ,t.oH,v.JD,Pe.Zp],encapsulation:2,changeDetection:0}),u})(),wrappers:["form-field"]}]};let D1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Mu),Pe.o7,je]}),u})();var vs;function bu(u,y){1&u&&e._UZ(0,"span",7)}function O1(u,y){1&u&&e._UZ(0,"span",8)}const Su=function(){return[0,0]},Eu={name:void 0};let Ya=((vs=class{set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.model=Eu,this.form=new t.nJ({}),this.options={},this.onSubmit$=new st.x,this.searchString$=new Ge.X(void 0),this.queryMutator=new Jo.U(this.errors),this.isSubmitting$=new Ge.X(!1),this.submitSuccess$=new Ge.X(!1),this.submitError$=new Ge.X([]),this.addTherapyMutator=new Jo.U(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,ae.t)(this)).subscribe(m=>{this.model.name=m}),this.onSubmit$.pipe((0,ae.t)(this)).subscribe(m=>{console.log("therapy-quick-add form model submitted.",m),this.submitTherapy(m)})}submitTherapy(y){if(!y.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let c=this.addTherapyMutator.mutate(this.query,{name:y.name},{},m=>{console.log("therapy-quick-add submit data callback",m),m.addTherapy&&this.cvcOnCreate.next(m.addTherapy.therapy.id)});c.submitSuccess$.pipe((0,ae.t)(this)).subscribe(m=>{console.log("therapy-quick-add submitSuccess$",m),this.submitSuccess$.next(m)}),c.submitError$.pipe((0,ae.t)(this)).subscribe(m=>{console.log("therapy-quick-add submitError$",m),this.submitError$.next(m)}),c.isSubmitting$.pipe((0,ae.t)(this)).subscribe(m=>{this.isSubmitting$.next(m)})}}).\u0275fac=function(y){return new(y||vs)(e.Y36(An.Y_K),e.Y36(Ro.Y))},vs.\u0275cmp=e.Xpm({type:vs,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],["nz-icon","","nzType","plus-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","loading","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["nz-icon","","nzType","loading","nzTheme","outline"]],template:function(y,c){1&y&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(4,"nz-col",2)(5,"button",4),e.YNc(6,bu,1,0,"span",5),e.ALo(7,"ngrxPush"),e.YNc(8,O1,1,0,"span",6),e.ALo(9,"ngrxPush"),e._uU(10," Create Therapy\xa0"),e.TgZ(11,"i"),e._uU(12),e.ALo(13,"ngrxPush"),e.qZA()()()()()),2&y&&(e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(16,Su)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(1),e.Q6J("ngIf",!e.lcZ(7,10,c.isSubmitting$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(9,12,c.isSubmitting$)),e.xp6(4),e.Oqu(e.lcZ(13,14,c.searchString$)))},dependencies:[M.O5,t._Y,t.JL,t.sg,v.T7,pn.ix,Wo.w,qo.dQ,Re.Ls,k.t3,k.SK,I.fM],encapsulation:2,changeDetection:0}),vs);Ya=(0,te.gn)([(0,ae.c)()],Ya);const Ua=["optionTemplates"];function Cl(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"NCIt ID:"),e.qZA(),e._UZ(3,"span",9),e.ALo(4,"highlightTypeahead"),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(3),e.Q6J("innerHtml",e.xi3(4,1,c.ncitId,m),e.oJD)}}function xu(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2,"Aliases: "),e.qZA(),e.TgZ(3,"em"),e._UZ(4,"span",10),e.ALo(5,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(4),e.Q6J("nzTooltipTitle",c.therapyAliases.join(", "))("innerHtml",e.xi3(5,2,c.therapyAliases.join(", "),m),e.oJD)}}function zl(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",6),e.TgZ(1,"span",7),e.YNc(2,Cl,5,4,"ng-container",8),e.YNc(3,xu,6,5,"ng-container",8),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.ncitId),e.xp6(1),e.Q6J("ngIf",c.therapyAliases.length>0)}}function w1(u,y){1&u&&(e.ynx(0),e.YNc(1,zl,4,5,"ng-template",null,5,e.W1O),e.BQk())}function Tl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,w1,3,0,"ng-container",4),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function P1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",11)(1,"cvc-entity-tag",12),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Therapy:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function Du(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-therapy-quick-add-form",13),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.qZA()}2&u&&e.Q6J("cvcSearchString",y.$implicit)}const Ou=Vt(yn(),Xo());let Ga=(()=>{class u extends Ou{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"Therapy",plural:"Therapies"},isMultiSelect:!1,requireType:!0,tooltip:"Therapy or therapy combination which interacts with the specified variant",placeholder:"Search Therapies",requireTypePromptFn:(Fe,Et)=>`Select an ${Fe} Type to search associated Therapies`}},this.placeholder$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresTherapy$?this.onRequiresTherapy$=this.state.requires.requiresTherapy$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresTherapy$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholder),this.onRequiresTherapy$&&this.onEntityType$&&(0,Eo.a)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,mo.x)(),(0,ae.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,xe.E)(m)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&(this.resetField(),console.log("HERE2"))})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.therapyTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.therapy}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.cIw),e.Y36(An.sjj),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Ua,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:12,vars:26,consts:[[3,"cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],["addTherapy",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.qZA(),e.YNc(7,Tl,3,3,"ng-container",1),e.YNc(8,P1,2,3,"ng-template",null,2,e.W1O),e.YNc(10,Du,1,1,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(9),Fe=e.MAs(11);e.Q6J("cvcAddEntity",Fe)("cvcCustomTemplate",G)("cvcDisabled",m.onRequiresTherapy$&&!e.lcZ(1,14,m.onRequiresTherapy$))("cvcEntityName",m.props.entityName)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcLoading",e.lcZ(2,16,m.isLoading$))("cvcOptions",e.lcZ(3,18,m.selectOption$))("cvcPlaceholder",e.lcZ(4,20,m.placeholder$))("cvcResults",e.lcZ(5,22,m.result$))("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcShowError",m.showError)("cvcSelectOpen",e.lcZ(6,24,m.selectOpen$)),e.xp6(7),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,et.SY,ge.ZU,Oo,Po.J,Ya,I.fM,w.A],changeDetection:0}),u})();const I1={types:[{name:"therapy-select",wrappers:["form-field"],component:Ga,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:Ga,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let A1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(I1),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x]}),u})();const Sc=["optionTemplates"];function F1(u,y){if(1&u&&e._UZ(0,"cvc-attribute-tag",4),2&u){const c=e.oxw().$implicit;e.Q6J("cvcAttrValue",c)}}function N1(u,y){1&u&&(e.ynx(0),e.YNc(1,F1,1,1,"ng-template",null,3,e.W1O),e.BQk())}function L1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",5)(1,"cvc-attribute-tag",6),e.NdJ("cvcOnClose",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onTagClose$.next(G))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcAttrValue",c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const k1={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."},R1=Vt(yn(),lt()),Qa={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends R1{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"ENTITY_NAME Type",entityName:{singular:"Entity",plural:"Entities"},placeholder:"Select an ENTITY_NAME Type",isMultiSelect:!1}},this.typeEnums$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.description=k1[c],this.props.extraType="description"):(this.props.description=void 0,this.props.extraType=void 0)}),this.state?(this.props.placeholder=this.props.placeholder.replace("ENTITY_NAME",this.state.entityName),this.props.label=this.props.label.replace("ENTITY_NAME",this.state.entityName),this.props.tooltip=`Type of clinical outcome associated with the ${this.state.entityName} statement.`,this.state.enums.entityType$?(this.state.enums.entityType$.pipe((0,ae.t)(this)).subscribe(c=>{this.typeEnums$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m))),this.configureEnumSelect()):console.error(`${this.field.id} could not find state's enums.inputEnum$ to populate its select options.`)):console.error(`${this.field.id} requires a form state to configure itself, none was found.`)}configureEnumSelect(){this.configureEnumSelectField({optionEnum$:this.typeEnums$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-type-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Sc,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:6,vars:13,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcAttrValue","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.YNc(2,N1,3,0,"ng-container",1),e.ALo(3,"ngrxPush"),e.YNc(4,L1,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(5);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",m.props.placeholder)("cvcCustomTemplate",G)("cvcOptions",e.lcZ(1,9,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,11,m.typeEnums$))}},dependencies:[M.sg,_e,Ke,I.fM],changeDetection:0}),u})()}]};let ja=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Qa),je,Ye,Be]}),u})();var Ml=a(6973);function Ec(u,y){const c="object"==typeof y;return new Promise((m,G)=>{let Et,Fe=!1;u.subscribe({next:Mn=>{Et=Mn,Fe=!0},error:G,complete:()=>{Fe?m(Et):c?m(y.defaultValue):G(new Ml.K)}})})}const Br={isDefaultCol:u=>"default"===u.type,isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},El=u=>void 0!==u.sort,Dc=u=>void 0!==u.filter,Oc={diseases:An.pP7.DiseaseName,gene:An.pP7.EntrezSymbol,therapies:An.pP7.TherapyName,variant:An.pP7.VariantName},Au={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",gene:"entrezSymbol",aliases:"variantAlias"},xl=["selected","id"];class Fu{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{key:"id",label:"ID",hidden:!0,type:"hidden",width:"0px"},{key:"variant",label:"Variant",type:"entity-tag",width:"215px",context:"variant",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0,truncateLabel:"200px"},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"Filter Variant Name",value:null}]}},{key:"aliases",label:"Aliases",type:"default",width:"150px",objectKey:"name",sort:{},filter:{inputType:"default",options:[{key:"Filter Aliases",value:null}]}},{key:"gene",label:"Gene",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Gene Name",value:null}]}},{key:"diseases",label:"Diseases",type:"entity-tag",width:"250px",sort:{},tag:{maxTags:1,truncateLabel:"175px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(y,c){return y.getValues().map(G=>({text:(0,xe.E)(G),value:G,byDefault:c===G}))}configureColumnStreams(y){return y.forEach(c=>{const m=c;if(El(m)&&(m.sort.changes=new Ge.X({key:m.key,value:m.sort.default??null}),this.sortStreams.push(m.sort.changes)),Dc(m)){const G=m.filter.options.find(Fe=>Fe.byDefault)?.value;m.filter.changes=new Ge.X({key:m.key,value:G??null}),this.filterStreams.push(m.filter.changes)}}),y}}var _s;let wc=((_s=class{set cvcTableScrollerToIndex(y){void 0!==y&&this.scrollToIndex(y)}set cvcTableScrollerToOffset(y){void 0!==y&&this.scrollToIndex(y)}constructor(y){this.host=y,this.cvcTableScrollerOnScroll=new e.vpe,this.cvcTableScrollerOnFetch=new e.vpe,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,zn.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,bi.p)(this.onScrollThrottleTime,Si.z,{leading:!0,trailing:!0}),(0,wo.b)(y=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Co.b)(this.onScrollDebounceTime),(0,ae.t)(this)).subscribe(y=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,Ct.U)(y=>this.viewport.measureScrollOffset("bottom")),(0,Gn.G)(),(0,De.h)(([y,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(y){const c=this.cvcTableScrollerQueryRef;if(!y&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(y&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(y&&c){const[m,G,Fe]=[this.cvcTableScrollerFetchCount,y.hasNextPage,y.endCursor];if(!m||!Fe)throw new Error("table-scroll PageInfo invalid.");if(!G)return;this.cvcTableScrollerOnFetch.next({first:m,after:Fe})}}scrollToIndex(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");m.scrollToIndex(y)}scrollToOffset(y){const[c,m]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!m)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");m.scrollToOffset(y)}}).\u0275fac=function(y){return new(y||_s)(e.Y36(jn.N8))},_s.\u0275dir=e.lG2({type:_s,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}}),_s);function Nu(u,y){1&u&&e._UZ(0,"span",8)}function qi(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Fe=e.oxw();return G.value="",e.KtG(Fe.cvcModelChange.next(null))}),e.qZA()}}function Pc(u,y){if(1&u&&(e.YNc(0,Nu,1,0,"span",6),e.YNc(1,qi,1,0,"span",7)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function Dl(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",2)(2,"input",3,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcModelChange.next(G))}),e.qZA()(),e.YNc(4,Pc,2,2,"ng-template",null,5,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw();e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.cvcPlaceholder)("ngModel",m.cvcModel)}}function Ic(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",10)(1,"nz-input-number",11,4),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.cvcModelChange.next(""===G?null:G))}),e.qZA()()}if(2&u){const c=e.oxw();let m;e.xp6(1),e.Q6J("nzPlaceHolder",null!==(m=c.cvcPlaceholder)&&void 0!==m?m:"")("ngModel",c.cvcModel)("nzMin",1)("nzStep",1)}}wc=(0,te.gn)([(0,ae.c)()],wc);let Ki=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.vpe,this.cvcInputType="default"}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","ngModelChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"]],template:function(c,m){if(1&c&&(e.YNc(0,Dl,6,3,"ng-container",0),e.YNc(1,Ic,3,4,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf","default"===m.cvcInputType)("ngIfElse",G)}},dependencies:[M.O5,t.Fj,t.JJ,t.On,Wo.w,Re.Ls,Pe.Zp,Pe.gB,Pe.ke,Un._V,Un.Rb]}),u})();function da(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"li",5),e.NdJ("click",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.cvcOptionChange.next({key:Et.cvcColumnKey,value:Fe.value}))}),e._UZ(1,"cvc-attribute-tag",6),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("nzSelected",(null==m.cvcOption?null:m.cvcOption.value)===c.value),e.xp6(1),e.Q6J("cvcFullWidth",!0)("cvcChecked",(null==m.cvcOption?null:m.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let Ol=(()=>{class u{constructor(){this.cvcOptionChange=new e.vpe}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"nzSelected","click"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(c,m){1&c&&(e.TgZ(0,"ul",0),e.YNc(1,da,2,4,"li",1),e.TgZ(2,"li",2)(3,"button",3),e.NdJ("click",function(){return m.cvcOptionChange.next({key:m.cvcColumnKey,value:null})}),e._UZ(4,"span",4),e._uU(5," Reset "),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("ngForOf",m.cvcFilterOptions),e.xp6(2),e.Q6J("disabled",null===(null==m.cvcOption?null:m.cvcOption.value)))},dependencies:[M.sg,_e,pn.ix,Wo.w,qo.dQ,Re.Ls,es.wO,es.r9],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0}),u})();var ys;function wd(u,y){if(1&u&&e._UZ(0,"th",14),2&u){const c=y.ngIf;let m;e.Q6J("nzShowCheckbox",c.checkbox.th.showCheckbox||!1)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function B1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",15),e.NdJ("nzSortOrderChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.sort.changes.next({key:Et.key,value:G}))}),e.ALo(1,"ngrxPush"),e.TgZ(2,"span",16),e._uU(3),e.qZA()()}if(2&u){const c=y.ngIf;let m,G;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",void 0!==c.sort)("nzSortFn",!0)("nzSortOrder",(null==(G=e.lcZ(1,10,c.sort.changes))?null:G.value)||null),e.xp6(2),e.Q6J("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Pd(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function Lu(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function H1(u,y){if(1&u&&(e.TgZ(0,"th",17),e._uU(1),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzTooltipTitle",c.tooltip),e.xp6(1),e.hij(" ",c.label," ")}}function ku(u,y){if(1&u&&(e.ynx(0),e.YNc(1,wd,1,5,"th",11),e.ALo(2,"guardType"),e.YNc(3,B1,4,12,"th",12),e.ALo(4,"guardType"),e.YNc(5,Pd,2,7,"th",13),e.ALo(6,"guardType"),e.YNc(7,Lu,2,7,"th",13),e.ALo(8,"guardType"),e.YNc(9,H1,2,7,"th",13),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function Id(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ku,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function $1(u,y){if(1&u&&(e.TgZ(0,"th",22),e._uU(1," \xa0 "),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzWidth",c.width)("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function wl(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-table-filter-input",25),e.NdJ("cvcModelChange",function(G){const Et=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Et.changes.next({key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function Ac(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,wl,1,3,"cvc-variant-table-filter-input",24),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function Y1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",26,27),e.NdJ("nzSortOrderChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.sort.changes.next({key:Et.key,value:G}))}),e.ALo(2,"ngrxPush"),e.TgZ(3,"nz-filter-trigger",28,29),e.ALo(5,"ngrxPush"),e._UZ(6,"span",30),e.qZA(),e.TgZ(7,"nz-dropdown-menu",null,31)(9,"cvc-variant-enum-filter-menu",32),e.NdJ("cvcOptionChange",function(G){const Et=e.CHM(c).ngIf,Mn=e.MAs(4);return Et.filter.changes.next(G),e.KtG(Mn.nzVisible=!1)}),e.ALo(10,"ngrxPush"),e.qZA()()()}if(2&u){const c=y.ngIf,m=e.MAs(8);let G,Fe,Et;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(Fe=e.lcZ(2,15,c.sort.changes))?null:Fe.value)||null)("nzShowFilter",void 0!==c.filter)("nzFilterFn",!0),e.xp6(3),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Et=e.lcZ(5,17,c.filter.changes))?null:Et.value)),e.xp6(6),e.Q6J("cvcColumnKey",c.key)("cvcFilterOptions",c.filter.options)("cvcOption",e.lcZ(10,19,c.filter.changes))}}function pa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"th",33,27)(2,"nz-filter-trigger",28),e.ALo(3,"ngrxPush"),e._UZ(4,"span",34),e.qZA(),e.TgZ(5,"nz-dropdown-menu",null,35)(7,"div",36)(8,"div",37)(9,"cvc-variant-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Et=e.CHM(c).ngIf;return e.KtG(Et.filter.changes.next({key:Et.key,value:G}))}),e.qZA()()()()()}if(2&u){const c=y.ngIf,m=e.MAs(6);let G,Fe;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)("nzFilterFn",!0),e.xp6(2),e.Q6J("nzDropdownMenu",m)("nzActive",null!==(null==(Fe=e.lcZ(3,10,c.filter.changes))?null:Fe.value)),e.xp6(7),e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function Za(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-table-filter-input",38),e.NdJ("cvcModelChange",function(G){const Et=e.CHM(c).ngIf,Mn=e.oxw().ngIf;return e.KtG(Et.changes.next({key:Mn.key,value:G}))}),e.qZA()}if(2&u){const c=e.oxw().ngIf;e.Q6J("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function U1(u,y){if(1&u&&(e.TgZ(0,"th",23),e.YNc(1,Za,1,2,"cvc-variant-table-filter-input",39),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzColumnKey",c.key)("nzWidth",c.width)("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.filter)}}function Ru(u,y){if(1&u&&(e.ynx(0),e.YNc(1,$1,2,5,"th",18),e.ALo(2,"guardType"),e.YNc(3,Ac,2,6,"th",19),e.ALo(4,"guardType"),e.YNc(5,Y1,11,21,"th",20),e.ALo(6,"guardType"),e.YNc(7,pa,10,12,"th",21),e.ALo(8,"guardType"),e.YNc(9,U1,2,6,"th",19),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function Vu(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ru,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function Pl(u,y){if(1&u&&(e.TgZ(0,"thead")(1,"tr",7),e.YNc(2,Id,2,1,"ng-container",8),e.qZA(),e.TgZ(3,"tr",9),e.YNc(4,Vu,2,1,"ng-container",8),e.qZA()()),2&u){const c=y.ngrxLet;e.xp6(2),e.Q6J("ngForOf",c),e.xp6(2),e.Q6J("ngForOf",c)}}function Vs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"td",45),e.NdJ("nzCheckedChange",function(G){e.CHM(c);const Fe=e.oxw(3).$implicit,Et=e.oxw(2);return e.KtG(Et.onRowSelected$.next({id:Fe.id,selected:G}))}),e.qZA()}if(2&u){const c=y.ngIf,m=e.oxw(3).$implicit;let G;e.Q6J("nzChecked",m.selected)("nzAlign",null!==(G=c.align)&&void 0!==G?G:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1)}}function Fc(u,y){1&u&&e.GkF(0)}const Il=function(u,y,c){return{$implicit:u,config:y,emphasize:c}};function Al(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Fc,1,0,"ng-container",51),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw().ngIf,m=e.oxw().ngIf,G=e.MAs(3),Fe=e.MAs(5),Et=e.oxw(3).$implicit;let Mn;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,Et[c])?G:Fe)("ngTemplateOutletContext",e.kEZ(6,Il,Et[c],m,null==(Mn=e.lcZ(3,4,m.filter.changes))?null:Mn.value))}}function Ka(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Al,4,10,"ng-container",50),e.BQk()),2&u){const c=y.ngIf;e.oxw();const m=e.MAs(7),G=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf",G[c])("ngIfElse",m)}}const Fl=function(u,y,c,m,G){return{tagList:u,tag:y,showPopover:c,status:m,emphasize:G}};function G1(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-collection-tag",53),e.BQk()),2&u){const c=e.oxw(2),m=c.config,G=c.$implicit,Fe=c.emphasize;e.oxw();const Et=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcCollectionTagConfig",e.qbA(3,Fl,G.slice(m.tag.maxTags,G.length),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Fe))("cvcTagTemplate",Et)("cvcShowFullLabels",!0)}}function Q1(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-entity-tag-list",52),e.YNc(2,G1,2,9,"ng-container",10),e.BQk()),2&u){const c=e.oxw(),m=c.config,G=c.$implicit,Fe=c.emphasize;e.oxw();const Et=e.MAs(5),Mn=e.oxw(5);e.xp6(1),e.Q6J("cvcTagTemplate",Et)("cvcTagListConfig",e.qbA(3,Fl,G.slice(0,m.tag.maxTags),m.tag,!Mn.isScrolling,!0===m.showStatus?G.status:void 0,Fe)),e.xp6(1),e.Q6J("ngIf",G.slice(m.tag.maxTags,G.length).length>0)}}function j1(u,y){if(1&u&&e.YNc(0,Q1,3,9,"ng-container",50),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function W1(u,y){if(1&u&&e._UZ(0,"cvc-entity-tag",54),2&u){const c=y.$implicit,m=y.config,G=y.emphasize,Fe=e.oxw(6);let Et;e.Q6J("cvcTruncateLabel",null==m.tag?null:m.tag.truncateLabel)("cvcLinkableEntity",c)("cvcEmphasize",G)("cvcShowPopover",!Fe.isScrolling)("cvcStatus",!0===m.showStatus?c.status:void 0)("cvcFullWidth",null!==(Et=null==m.tag?null:m.tag.fullWidth)&&void 0!==Et&&Et)}}function Z1(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Bu(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,Ka,2,2,"ng-container",10),e.YNc(2,j1,1,2,"ng-template",null,47,e.W1O),e.YNc(4,W1,1,6,"ng-template",null,48,e.W1O),e.YNc(6,Z1,1,1,"ng-template",null,49,e.W1O),e.qZA()),2&u){const c=y.ngIf;let m;e.Q6J("nzAlign",null!==(m=c.align)&&void 0!==m?m:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",c.context||c.key)}}function Nl(u,y){if(1&u&&(e._UZ(0,"cvc-attribute-tag",58),e.ALo(1,"evidenceEnumDisplay")),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit,G=e.oxw(2);e.Q6J("cvcFullWidth",!0)("cvcAttrValue",m[c.key])("cvcTooltip",e.lcZ(1,3,!G.isScrolling&&m[c.key]))}}function Hu(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Ll(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,Nl,2,5,"cvc-attribute-tag",56),e.YNc(2,Hu,1,1,"ng-template",null,57,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Fe;e.Q6J("nzAlign",null!==(Fe=c.align)&&void 0!==Fe?Fe:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function K1(u,y){if(1&u&&(e.TgZ(0,"nz-tag",61),e._UZ(1,"span",62),e.qZA()),2&u){const c=e.oxw().ngIf,m=e.oxw(3).$implicit;e.Q6J("nzTooltipTitle",m[c.key])}}function J1(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function kl(u,y){if(1&u&&(e.TgZ(0,"td",46),e.YNc(1,K1,2,1,"nz-tag",59),e.YNc(2,J1,1,1,"ng-template",null,60,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(3),G=e.oxw(3).$implicit;let Fe;e.Q6J("nzAlign",null!==(Fe=c.align)&&void 0!==Fe?Fe:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function $u(u,y){1&u&&e.GkF(0)}const Cs=function(u,y){return{$implicit:u,emphasize:y}};function Rl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,$u,1,0,"ng-container",51),e.ALo(2,"isArray"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=y.ngIf,m=e.oxw().ngIf,G=e.MAs(3),Fe=e.MAs(5);let Et;e.xp6(1),e.Q6J("ngTemplateOutlet",e.lcZ(2,2,c)?G:Fe)("ngTemplateOutletContext",e.WLB(6,Cs,c,null==(Et=e.lcZ(3,4,m.filter.changes))?null:Et.value))}}function Zn(u,y){1&u&&e.GkF(0)}function Di(u,y){1&u&&(e.ynx(0),e._uU(1,", "),e.BQk())}function Nc(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Zn,1,0,"ng-container",51),e.YNc(2,Di,2,0,"ng-container",10),e.BQk()),2&u){const c=y.$implicit,m=y.last,G=e.oxw(2).emphasize;e.oxw();const Fe=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",Fe)("ngTemplateOutletContext",e.WLB(3,Cs,c,G)),e.xp6(1),e.Q6J("ngIf",!m)}}function Bs(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Nc,3,6,"ng-container",8),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",c)}}function Lc(u,y){if(1&u&&e.YNc(0,Bs,2,1,"ng-container",50),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(7);e.Q6J("ngIf",c.length>0)("ngIfElse",m)}}function Yu(u,y){if(1&u&&(e._UZ(0,"span",67),e.ALo(1,"highlightTypeahead")),2&u){const c=y.$implicit,m=y.emphasize,G=e.oxw().ngIf;e.Q6J("innerHtml",e.xi3(1,1,G.objectKey?c[G.objectKey]:c,m),e.oJD)}}function Vl(u,y){if(1&u&&e._UZ(0,"cvc-empty-value",55),2&u){const c=e.oxw().ngIf;e.Q6J("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function zo(u,y){if(1&u&&(e.TgZ(0,"td",63),e.YNc(1,Rl,4,9,"ng-container",50),e.YNc(2,Lc,1,2,"ng-template",null,64,e.W1O),e.YNc(4,Yu,2,4,"ng-template",null,65,e.W1O),e.YNc(6,Vl,1,1,"ng-template",null,66,e.W1O),e.qZA()),2&u){const c=y.ngIf,m=e.MAs(7),G=e.oxw(3).$implicit;let Fe;e.Q6J("nzAlign",null!==(Fe=c.align)&&void 0!==Fe?Fe:"left")("nzLeft",c.fixedLeft||!1)("nzRight",c.fixedRight||!1),e.xp6(1),e.Q6J("ngIf",G[c.key])("ngIfElse",m)}}function Ja(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Vs,1,4,"td",42),e.ALo(2,"guardType"),e.YNc(3,Bu,8,4,"td",43),e.ALo(4,"guardType"),e.YNc(5,Ll,4,5,"td",43),e.ALo(6,"guardType"),e.YNc(7,kl,4,5,"td",43),e.ALo(8,"guardType"),e.YNc(9,zo,8,5,"td",44),e.ALo(10,"guardType"),e.BQk()),2&u){const c=e.oxw().$implicit,m=e.oxw(3);e.xp6(1),e.Q6J("ngIf",e.xi3(2,5,c,m.colGuards.isSelectCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(4,8,c,m.colGuards.isEntityTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(6,11,c,m.colGuards.isEnumTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(8,14,c,m.colGuards.isTextTagCol)),e.xp6(2),e.Q6J("ngIf",e.xi3(10,17,c,m.colGuards.isDefaultCol))}}function Bl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Ja,11,20,"ng-container",10),e.BQk()),2&u){const c=y.$implicit;e.xp6(1),e.Q6J("ngIf",!c.hidden)}}function qa(u,y){if(1&u&&(e.TgZ(0,"tr",41),e.YNc(1,Bl,2,1,"ng-container",8),e.qZA()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngForOf",c)}}function Xa(u,y){1&u&&(e.TgZ(0,"tbody"),e.YNc(1,qa,2,1,"ng-template",40),e.qZA())}function Hs(u,y){1&u&&e._UZ(0,"span",75)}function qr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"span",76),e.NdJ("click",function(){e.CHM(c),e.oxw(2);const G=e.MAs(3),Fe=e.oxw().filter;return G.value="",e.KtG(Fe.changes.next({key:Fe.key,value:null}))}),e.qZA()}}function ha(u,y){if(1&u&&(e.YNc(0,Hs,1,0,"span",73),e.YNc(1,qr,1,0,"span",74)),2&u){e.oxw();const c=e.MAs(3);e.Q6J("ngIf",!c.value),e.xp6(1),e.Q6J("ngIf",c.value)}}function Hr(u,y){if(1&u){const c=e.EpF();e.ynx(0),e.TgZ(1,"nz-input-group",69)(2,"input",70,71),e.NdJ("nzFilterChange",function(G){e.CHM(c);const Fe=e.oxw().filter;return e.KtG(Fe.changes.next({key:Fe.key,value:G}))}),e.qZA()(),e.YNc(4,ha,2,2,"ng-template",null,72,e.W1O),e.BQk()}if(2&u){const c=e.MAs(5),m=e.oxw().filter;e.xp6(1),e.Q6J("nzSuffix",c),e.xp6(1),e.Q6J("placeholder",m.placeholder)("ngModel",m.defaultValue)}}function Hl(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-input-number-group",77)(1,"nz-input-number",78,71),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw().filter;return e.KtG(Fe.changes.next({key:Fe.key,value:G}))}),e.qZA()()}if(2&u){const c=e.oxw().filter;e.xp6(1),e.Q6J("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function ec(u,y){if(1&u&&(e.YNc(0,Hr,6,3,"ng-container",50),e.YNc(1,Hl,3,4,"ng-template",null,68,e.W1O)),2&u){const c=y.filter,m=e.MAs(2);e.Q6J("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",m)}}const $l=function(){return[6,6]};function kc(u,y){1&u&&(e.TgZ(0,"nz-row",79)(1,"nz-col")(2,"span"),e._uU(3,"Use checkboxes to select or deselect EIDs"),e.qZA()()()),2&u&&e.Q6J("nzGutter",e.DdM(1,$l))}function C(u,y){1&u&&(e.TgZ(0,"nz-tag",90),e._UZ(1,"i",91),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}const Je=function(u){return{$implicit:u}};function ee(u,y){if(1&u&&(e.TgZ(0,"nz-tag",94),e._UZ(1,"span",95),e.TgZ(2,"span",96),e._uU(3),e.qZA()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Je,m.query)),e.xp6(1),e.hij(" Query Error",m.query.length>1?"s":""," ")}}function q1(u,y){if(1&u&&(e.TgZ(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e._uU(4),e.qZA()()()()),2&u){e.oxw();const c=e.MAs(4),m=e.oxw().ngrxLet;e.xp6(1),e.Q6J("nzTooltipTitle",c)("nzTooltipTitleContext",e.VKq(3,Je,m.network)),e.xp6(3),e.hij(" Network Error",m.query.length>1?"s":""," ")}}function X1(u,y){if(1&u&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&u){const c=y.$implicit;e.xp6(1),e.hij(" ",c.message," ")}}function Uu(u,y){1&u&&e.YNc(0,X1,2,1,"div",8),2&u&&e.Q6J("ngForOf",y.$implicit)}function Yl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ee,4,5,"nz-tag",92),e.YNc(2,q1,5,5,"nz-tag",92),e.YNc(3,Uu,1,1,"ng-template",null,93,e.W1O),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",c.query),e.xp6(1),e.Q6J("ngIf",c.network)}}function Rc(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Yl,5,2,"ng-container",10),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c)}}function Ad(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",98)(1,"nz-checkbox-group",99),e.NdJ("ngModelChange",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onPreferenceChange$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2);e.xp6(1),e.Q6J("ngModel",e.lcZ(2,1,c.setPreference$))}}function fa(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-row",79)(1,"nz-col",80),e.YNc(2,C,4,0,"nz-tag",81),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._UZ(5,"cvc-no-more-rows",82),e.ALo(6,"ngrxPush"),e.qZA(),e.TgZ(7,"nz-col",80),e.YNc(8,Rc,2,1,"ng-container",3),e.qZA(),e.TgZ(9,"nz-col",80),e._UZ(10,"cvc-table-counts2",83),e.qZA(),e.TgZ(11,"nz-col",84)(12,"nz-button-group")(13,"button",85),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onResetFilter$.next())}),e._UZ(14,"span",86),e.qZA(),e.TgZ(15,"button",87),e._UZ(16,"span",88),e.qZA()(),e.YNc(17,Ad,3,3,"ng-template",null,89,e.W1O),e.qZA()()}if(2&u){const c=e.MAs(18),m=e.oxw();e.Q6J("nzGutter",8),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,7,m.loading$)&&e.lcZ(4,9,m.isFetchMore$)),e.xp6(3),e.Q6J("cvcShowTag",e.lcZ(6,11,m.noMoreRows$)),e.xp6(3),e.Q6J("ngrxLet",m.queryError$),e.xp6(2),e.Q6J("cvcTableCountsConnection",m.connection$),e.xp6(5),e.Q6J("nzPopoverContent",c)("nzPopoverTrigger","click")}}const Fd=function(){return[]},Vc=function(){return{x:"800px",y:"200px"}};let Ul=((ys=class{constructor(y,c,m){this.queryGQL=y,this.apollo=c,this.cdr=m,this.cvcSelectedIdsChange=new e.vpe,this.isScrolling=!1,this.colGuards=Br,this.onFetchMore$=new st.x,this.onPreferenceChange$=new Ge.X([]),this.onResetFilter$=new st.x,this.onRowSelected$=new st.x,this.onScroll$=new Ge.X("stop"),this.onSetSelectedRow$=new Ge.X(new Set),this.queryError$=new st.x,this.queryRequest$=new st.x,this.queryResult$=new _o.t(1),this.isFetchMore$=new Ge.X(!1),this.noMoreRows$=new Ge.X(!1),this.scrollToIndex$=new st.x,this.tableConfig=new Fu;const G=(0,Eo.a)(this.tableConfig.getFilterStreams()),Fe=(0,Eo.a)(this.tableConfig.getSortStreams()).pipe((0,De.h)(Et=>Et.filter(Mn=>null!==Mn.value).length<=1));this.refetch$=(0,Eo.a)([Fe,G]).pipe((0,Ct.U)(([Et,Mn])=>({query:"refetch",sort:Et,filter:Mn}))),this.fetchMore$=this.onFetchMore$.pipe((0,Ct.U)(Et=>({query:"fetchMore",fetchMore:{...Et}}))),(0,Fo.T)(this.refetch$,this.fetchMore$).pipe((0,Co.b)(50),(0,ae.t)(this)).subscribe(Et=>{const Mn=this.getQueryVars(Et);this.queryRef?(this.queryError$.next({}),"refetch"===Et.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(Mn).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:Mn}).then(kn=>{(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(Mn),this.queryRef.valueChanges.pipe((0,ae.t)(this)).subscribe(kn=>{this.queryResult$.next(kn),(kn.error||kn.errors)&&this.queryError$.next(this.getRequestErrors(kn))}))}),this.loading$=this.queryResult$.pipe((0,sn.j)("loading"),(0,mo.x)()),this.connection$=this.queryResult$.pipe((0,sn.j)("data","browseVariants"),(0,De.h)(So.ep)),this.pageInfo$=this.connection$.pipe((0,sn.j)("pageInfo"),(0,De.h)(So.ep)),this.row$=(0,Eo.a)([this.connection$.pipe((0,sn.j)("edges"),(0,De.h)(So.ep),(0,Ct.U)(Et=>Et.map(Mn=>Mn.node))),this.onSetSelectedRow$]).pipe((0,Ct.U)(([Et,Mn])=>Et.map(kn=>{if(kn)return{...kn,variant:{__typename:"Variant",id:kn.id,name:kn.name,link:kn.link},gene:{__typename:"Gene",id:kn.geneId,name:kn.geneName,link:kn.geneLink},selected:Mn.has(kn.id)}}))),this.col$=new Ge.X(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,Ct.U)(Et=>this.getColPrefsFromTableConfig(Et))),this.onPreferenceChange$.pipe((0,it.M)(this.col$),(0,Ct.U)(([Et,Mn])=>this.getTableConfigFromColPrefs(Et,Mn)),(0,ae.t)(this)).subscribe(Et=>{this.col$.next(Et)}),this.onSetTableFilter$=new Ge.X([]),this.onSetTableFilter$.pipe((0,ae.t)(this)).subscribe(Et=>{const Mn=this.col$.getValue();Et.forEach(kn=>{const $o=Mn.find(Bi=>Bi.key===kn.key);if(void 0!==$o.filter.inputType){const Bi=$o.filter.options[0];if(null===kn.value)return $o.filter.options=[{...Bi,value:null}],void $o.filter.changes.next(kn);if(Array.isArray(kn.value)&&0===kn.value.length)return $o.filter.options=[{...Bi,value:null}],void $o.filter.changes.next({...kn,value:null});let er;Array.isArray(kn.value)?kn.value.length>0&&(er=kn.value[0]):er=kn.value;const Kl=$o.filter.typename;if(!Kl||!er)return void console.error(`variant-manager requires column config '${$o.key}' provide a typename for cvcTablePrefs Input to set its filter`);const ac=this.getEntityName(Kl,er);if(!ac)return;$o.filter.options=[{...Bi,value:ac}],$o.filter.changes.next({...kn,value:ac})}else Dc($o)&&$o.filter.changes.next(kn)})}),this.onSetTablePref$=new Ge.X([]),this.onSetTablePref$.pipe((0,it.M)(this.setPreference$),(0,Ct.U)(([Et,Mn])=>{const kn=[];return Et.forEach($o=>{let Bi=Mn.find(er=>er.value===$o.value);Bi?kn.push({...Bi,...$o}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${$o.value}', but a column with that key could not be found.`)}),kn}),(0,ae.t)(this)).subscribe(Et=>{this.onPreferenceChange$.next(Et)}),this.onRowSelected$.pipe((0,it.M)(this.onSetSelectedRow$),(0,ae.t)(this)).subscribe(([Et,Mn])=>{Et.selected?Mn.add(Et.id):Mn.delete(Et.id),this.onSetSelectedRow$.next(Mn),this.cvcSelectedIdsChange.next(Array.from(Mn))}),this.onScroll$.pipe((0,Ct.U)(Et=>"stop"!==Et),(0,mo.x)(),(0,ae.t)(this)).subscribe(Et=>{this.isScrolling=Et,this.cdr.detectChanges()}),this.onScroll$.pipe((0,De.h)(Et=>"bottom"===Et),(0,it.M)(this.pageInfo$),(0,Ct.U)(([Et,Mn])=>Mn),(0,ae.t)(this)).subscribe(Et=>{Et.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,it.M)((0,Ko.of)(this.tableConfig.get())),(0,ae.t)(this)).subscribe(([y,c])=>{const m=[];c.forEach(G=>{if(El(G)&&G.sort.changes&&G.sort.changes.next({key:G.key,value:G.sort.default??null}),Dc(G)){const Fe=G.filter.options.find(Et=>1==Et.byDefault)?.value;G.filter.changes&&G.filter.changes.next({key:G.key,value:Fe||null})}m.push(G)}),this.col$.next(m)})}getQueryVars(y){const c=this.getQueryFilterParams(y);return{...this.getQuerySortParams(y),...c,...y.fetchMore}}getQuerySortParams(y){if(!y.sort)return;const m=y.sort.find(Fe=>null!==Fe.value);return m?{sortBy:{column:this.getSortColumnFromColKey(m.key),direction:"ascend"===m.value?An.SrV.Asc:An.SrV.Desc||void 0}}:void 0}getQueryFilterParams(y){let c={};return y.filter&&y.filter.forEach(m=>{c[Au[m.key]||m.key]=null===m.value||""===m.value?void 0:m.value}),c}getRequestErrors(y){return{query:y.errors,network:y.error}}getTableConfigFromColPrefs(y,c){return c.forEach(m=>{if(xl.find(Fe=>Fe===m.key))return;const G=y.find(Fe=>Fe.value===m.key);G&&(m.hidden=!G?.checked)}),[...c]}getColPrefsFromTableConfig(y){let c=[];return y.forEach(m=>{xl.find(G=>G===m.key)||c.push({label:m.tooltip||m.label,value:m.key,checked:!m.hidden})}),c}getSortColumnFromColKey(y){return Oc[y]}getEntityName(y,c){const m={id:`${y}:${c}`,fragment:Kn.Ps` - fragment Linkable${y}Entity on ${y} { - id - name - link - }`},G=this.apollo.client.readFragment(m);if(G)return G.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${y}:${c} to populate input filter`)}trackByIndex(y,c){return c?.id}ngOnChanges(y){if(y.cvcTableSettings){const c=y.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(y.cvcSelectedIds){const c=y.cvcSelectedIds.currentValue,m=new Set;void 0!==c&&c.forEach(G=>m.add(G)),this.onSetSelectedRow$.next(m)}}}).\u0275fac=function(y){return new(y||ys)(e.Y36(An.XQi),e.Y36(yo._M),e.Y36(e.sBO))},ys.\u0275cmp=e.Xpm({type:ys,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.TTD],decls:16,vars:27,consts:[["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading","cvcTableScrollerOnScroll","cvcTableScrollerOnFetch"],["virtualTable",""],[4,"ngrxLet"],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange"],["enumTableFilter",""],[3,"nzDropdownMenu","nzActive"],["enumTagFilterTrigger",""],["nz-icon","","nzType","filter","nzTheme","fill"],["enumFilterMenu","nzDropdownMenu"],[3,"cvcColumnKey","cvcFilterOptions","cvcOption","cvcOptionChange"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],["textTagFilterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcPlaceholder","cvcModel","cvcModelChange"],[3,"cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],["class","default-col-type",3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange"],[3,"nzAlign","nzLeft","nzRight"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["emptyEnumTagCell",""],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["emptyTextTagCell",""],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],[1,"default-col-type",3,"nzAlign","nzLeft","nzRight"],["staticList",""],["staticValue",""],["emptyDefaultCell",""],[3,"innerHtml"],["numericInput",""],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"placeholder","ngModel","nzFilterChange"],["filterInput",""],["suffixIcon",""],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"nzPlaceHolder","ngModel","nzMin","nzStep","ngModelChange"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["prefsPopover",""],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["queryError",""],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModel","ngModelChange"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-table",1,2),e.NdJ("cvcTableScrollerOnScroll",function(G){return c.onScroll$.next(G)})("cvcTableScrollerOnFetch",function(G){return c.onFetchMore$.next(G)}),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.YNc(8,Pl,5,2,"thead",3),e.YNc(9,Xa,2,0,"tbody",3),e.qZA()(),e.YNc(10,ec,3,2,"ng-template",null,4,e.W1O),e.YNc(12,kc,4,2,"ng-template",null,5,e.W1O),e.YNc(14,fa,19,13,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(13),G=e.MAs(15);e.Q6J("nzTitle",m)("nzExtra",G),e.xp6(1),e.Q6J("nzData",e.lcZ(3,15,c.row$)||e.DdM(25,Fd))("cvcTableScrollerQueryRef",c.queryRef)("cvcTableScrollerPageInfo",e.lcZ(4,17,c.pageInfo$))("cvcTableScrollerToIndex",e.lcZ(5,19,c.scrollToIndex$))("nzScroll",e.DdM(26,Vc))("nzVirtualForTrackBy",c.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.lcZ(6,21,c.loading$)&&!e.lcZ(7,23,c.isFetchMore$)),e.xp6(7),e.Q6J("ngrxLet",c.col$),e.xp6(1),e.Q6J("ngrxLet",c.col$)}},dependencies:[M.sg,M.O5,M.tP,Po.J,ct,Rn,_e,Se,Yt.P,ye.H,t.Fj,t.JJ,t.On,I.eJ,pn.ix,pn.fY,Wo.w,qo.dQ,k.t3,k.SK,Re.Ls,Pe.Zp,Pe.gB,Pe.ke,ge.ZU,In.bd,Ut.ub,Vn.RR,Un._V,Un.Rb,co.lU,jn.N8,jn.qD,jn.Uo,jn._C,jn.h7,jn.Om,jn.p0,jn.$Z,jn.zu,jn.qn,jn.Ql,jn.UX,jn.g6,Jt.j,et.SY,wc,Ki,Ol,or,K.Do,w.A,Ur,I.fM],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}td.default-col-type[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0}),ys);var tc;function ma(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(2),e.Oqu(c.message)}}function Bc(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.Oqu(c.successMessage)}}Ul=(0,te.gn)([(0,ae.c)()],Ul);const Gu=function(){return[0,0]};let ga=((tc=class{set cvcGeneId(y){y&&this.geneId$.next(y)}set cvcGeneName(y){y&&this.geneName$.next(y)}set cvcSearchString(y){y&&this.searchString$.next(y)}constructor(y,c){this.query=y,this.errors=c,this.cvcOnCreate=new e.vpe,this.form=new t.nJ({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new st.x,this.searchString$=new Ge.X(void 0),this.geneName$=new Ge.X(void 0),this.geneId$=new Ge.X(void 0),this.formMessageDisplay$=new Ge.X({message:"Variant does not exist, create it?"}),this.queryMutator=new Jo.U(this.errors),this.addVariantMutator=new Jo.U(this.errors),this.minNameLength=3,this.fields=[{key:"geneId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}}],this.geneId$.pipe((0,ae.t)(this)).subscribe(m=>{this.model.geneId=m}),this.searchString$.pipe((0,ae.t)(this)).subscribe(m=>{this.model.name=m,this.formMessageDisplay$.next(void 0!==m&&m.length{console.log("variant-quick-add form model submitted.",m),this.submitVariant(m)})}submitVariant(y){y.name&&y.geneId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:y.name,geneId:y.geneId},{},c=>{console.log("variant-quick-add submit data callback",c),c.addVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.addVariant&&this.cvcOnCreate.next(c.addVariant.variant.id)},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and geneId.")}ngOnChanges(y){if(y.cvcGeneId){const c=y.cvcGeneId.currentValue;this.geneId$.next(c),this.model={...this.model,geneId:c}}y.cvcGeneName&&this.geneName$.next(y.cvcGeneName.currentValue),y.cvcSearchString&&(this.model={...this.model,name:y.cvcSearchString.currentValue})}}).\u0275fac=function(y){return new(y||tc)(e.Y36(An.MCG),e.Y36(Ro.Y))},tc.\u0275cmp=e.Xpm({type:tc,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcGeneId:"cvcGeneId",cvcGeneName:"cvcGeneName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.TTD],decls:18,vars:17,consts:[[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],["success",""],[3,"formGroup","ngSubmit"],[3,"nzGutter"],["nzSpan","24"],[3,"form","fields","model","options","modelChange"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(y,c){if(1&y&&(e.YNc(0,ma,3,1,"ng-container",0),e.TgZ(1,"cvc-form-submission-status-display",1),e.YNc(2,Bc,1,1,"ng-template",null,2,e.W1O),e.TgZ(4,"form",3),e.NdJ("ngSubmit",function(){return c.onSubmit$.next(c.model)}),e.TgZ(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.NdJ("modelChange",function(G){return c.model=G}),e.qZA()(),e.TgZ(8,"nz-col",5)(9,"button",7),e._uU(10," Add\xa0 "),e.TgZ(11,"strong"),e._uU(12),e.ALo(13,"ngrxPush"),e.qZA(),e._uU(14," \xa0Variant\xa0"),e.TgZ(15,"i"),e._uU(16),e.ALo(17,"ngrxPush"),e.qZA()()()()()()),2&y){const m=e.MAs(3);e.Q6J("ngrxLet",c.formMessageDisplay$),e.xp6(1),e.Q6J("mutationState",c.mutationState)("successMessage",m),e.xp6(3),e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("nzGutter",e.DdM(16,Gu)),e.xp6(2),e.Q6J("form",c.form)("fields",c.fields)("model",c.model)("options",c.options),e.xp6(2),e.Q6J("disabled",!c.form.valid),e.xp6(3),e.Oqu(e.lcZ(13,12,c.geneName$)),e.xp6(4),e.Oqu(e.lcZ(17,14,c.searchString$))}},dependencies:[Ti.F,v.T7,t._Y,t.JL,I.eJ,pn.ix,Wo.w,qo.dQ,k.t3,k.SK,t.sg,I.fM],encapsulation:2,changeDetection:0}),tc);ga=(0,te.gn)([(0,ae.c)()],ga);const ed=["optionTemplates"],Qu=function(u,y){return{show:u,hide:y}};function va(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",9)(1,"button",10),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onShowMgrClick$.next())}),e._UZ(2,"span",11),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e._uU(5," Manager "),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(2),e.Q6J("ngClass",e.WLB(6,Qu,e.lcZ(3,2,c.showMgr$),!e.lcZ(4,4,c.showMgr$)))("nzType","caret-right")}}function _a(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",12)(1,"cvc-variant-manager",13),e.NdJ("cvcSelectedIdsChange",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcSelectedIds",e.lcZ(2,1,c.onVid$))}}function ap(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",20),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("nzTooltipTitle",c.variantAliases.join(", "))("innerHtml",e.xi3(3,2,c.variantAliases.join(", "),m),e.oJD)}}function cp(u,y){1&u&&e._uU(0,"--")}function Gl(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",16),e.TgZ(1,"span",17)(2,"strong"),e._uU(3,"Aliases:"),e.qZA(),e.YNc(4,ap,4,5,"ng-container",18),e.YNc(5,cp,1,0,"ng-template",null,19,e.W1O),e.qZA()),2&u){const c=e.MAs(6),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(4),e.Q6J("ngIf",m.variantAliases.length>0)("ngIfElse",c)}}function ya(u,y){1&u&&(e.ynx(0),e.YNc(1,Gl,7,5,"ng-template",null,15,e.W1O),e.BQk())}function zs(u,y){if(1&u&&(e.ynx(0),e.YNc(1,ya,3,0,"ng-container",14),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Hc(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",21)(1,"cvc-entity-tag",22),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","Variant:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}function lp(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-variant-quick-add-form",23),e.NdJ("cvcOnCreate",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onPopulate$.next(G))}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.qZA()}if(2&u){const c=y.$implicit,m=e.oxw();e.Q6J("cvcSearchString",c)("cvcGeneId",e.lcZ(1,3,m.onGeneId$))("cvcGeneName",e.lcZ(2,5,m.onGeneName$))}}const up=function(){return[6,6]},dp=Vt(yn(),Xo());let Nd=(()=>{class u extends dp{constructor(c,m,G,Fe){super(),this.taq=c,this.tq=m,this.geneQuery=G,this.changeDetectorRef=Fe,this.onModel$=new Yo.y,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireGene:!0,requireGenePlaceholderFn:Et=>`Search ${Et} Variants`,requireGenePrompt:"Select a Gene to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onGeneName$=new Ge.X(void 0),this.onVid$=new _o.t,this.onShowMgrClick$=new st.x,this.showMgr$=this.onShowMgrClick$.pipe((0,eo.R)((Et,Mn)=>!Et,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,ae.t)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,Eo.a)([this.onGeneId$,this.onSearch$]).pipe((0,Ct.U)(([c,m])=>({geneId:c,name:m}))),this.onValueChange$.pipe((0,it.M)(this.onVid$),(0,ae.t)(this)).subscribe(([c,m])=>{Array.isArray(c)&&this.onVid$.next(c)})}configureStateConnections(){if(this.state&&this.props.requireGene){if(!this.state?.fields.geneId$)return void console.error(`${this.field.id} requireGene is set, but no geneId$ subject found on state.`);this.onGeneId$=this.state.fields.geneId$,this.onGeneId$.pipe((0,ae.t)(this)).subscribe(c=>{this.onGeneId(c)})}}getTypeaheadVarsFn(c){return{name:c,geneId:this.selectedGeneId}}getTypeaheadResultsFn(c){return c.data.variants.nodes}getTagQueryVarsFn(c){return{variantId:c}}getTagQueryResultsFn(c){return c.data.variant}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}showAddBehavior(c,m){const G=c.toLowerCase();return c.length>=3&&!m.some(Fe=>Fe.name.toLowerCase()===G)}onGeneId(c){this.selectedGeneId=c,!c&&this.props.requireGene?(this.resetField(),this.props.description=this.props.requireGenePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onGeneName$.next(void 0)):c&&(this.props.description=void 0,this.props.extraType=void 0,Ec(this.geneQuery.fetch({geneId:c},{fetchPolicy:"cache-first"})).then(({data:m})=>{m?.gene?.name?(this.props.placeholder=this.props.requireGene?this.props.requireGenePlaceholderFn(m.gene.name):this.props.placeholder,this.onGeneName$.next(m.gene.name)):console.error(`${this.field.id} could not fetch gene name for Gene:${c}.`)}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.nSb),e.Y36(An.dDn),e.Y36(An.DzV),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ng-component"]],viewQuery:function(c,m){if(1&c&&e.Gf(ed,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:20,vars:41,consts:[[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Gene to enable field.",3,"nzTooltipTrigger"],[3,"cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["selectedTemplate",""],["addVariant",""],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIds","cvcSelectedIdsChange"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"],[3,"cvcSearchString","cvcGeneId","cvcGeneName","cvcOnCreate"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1)(2,"span",2),e.ALo(3,"ngrxPush"),e.TgZ(4,"cvc-entity-select",3),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(5,"ngrxPush"),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.ALo(8,"ngrxPush"),e.ALo(9,"ngrxPush"),e.ALo(10,"ngrxPush"),e.ALo(11,"ngrxPush"),e.qZA()()(),e.YNc(12,va,6,9,"nz-col",4),e.YNc(13,_a,3,3,"nz-col",5),e.ALo(14,"ngrxPush"),e.qZA(),e.YNc(15,zs,3,3,"ng-container",6),e.YNc(16,Hc,2,3,"ng-template",null,7,e.W1O),e.YNc(18,lp,3,7,"ng-template",null,8,e.W1O)),2&c){const G=e.MAs(17),Fe=e.MAs(19);e.Q6J("nzGutter",e.DdM(40,up)),e.xp6(2),e.Q6J("nzTooltipTrigger",m.props.requireGene&&!e.lcZ(3,22,m.onGeneId$)?"hover":null),e.xp6(2),e.Q6J("cvcAddEntity",Fe)("cvcAddEntityModel",e.lcZ(5,24,m.onModel$))("cvcAddEntityBehavior",m.showAddBehavior)("cvcMinSearchStrLength",m.props.minSearchStrLength)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",m.props.placeholder)("cvcResults",e.lcZ(6,26,m.result$))("cvcDisabled",m.props.requireGene&&!e.lcZ(7,28,m.onGeneId$))("cvcOptions",e.lcZ(8,30,m.selectOption$))("cvcSelectOpen",e.lcZ(9,32,m.selectOpen$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(10,34,m.isLoading$))("cvcParamName",e.lcZ(11,36,m.onGeneName$)),e.xp6(8),e.Q6J("ngIf",m.props.showManagerBtn),e.xp6(1),e.Q6J("ngIf",e.lcZ(14,38,m.showMgr$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.mk,M.sg,M.O5,Oo,Po.J,I.eJ,pn.ix,Wo.w,qo.dQ,k.t3,k.SK,Re.Ls,ge.ZU,et.SY,Ul,ga,w.A,I.fM],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0}),u})();const pp={types:[{name:"variant-select",wrappers:["form-field"],component:Nd},{name:"variant-multi-select",wrappers:["form-field"],component:Nd,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let Ql=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Zt,ze.x,je,Wn.g,Nt.s,Qn,ar,Ye,Xs,kr.M,xn.y,v.X0.forChild(pp),t.u5,Mt.L,B.ic,pn.sL,s.U5,k.Jb,Re.PV,Pe.o7,qn.Qp,We.LV,ge.ZJ,pn.sL,In.vh,Ut.Wr,Vn.b1,s.U5,k.Jb,Re.PV,Pe.o7,Un.Zf,co.$6,jn.HQ,Jt.X,et.cg,ge.ZJ,t.UX]}),u})();var td=a(9858),Xi=a(6976),nd=a(4194);const Ld=/\(/g,od=/\)/g,$c=/AND|OR/i,Ts=/^(?NOT\s)?\s*#VID(?\d+)$/i,Ms=/\s+/,ju="EXPR";function jl(u){return id(u.replace(Ld," ( ").replace(od," ) "))}function id(u){let c,y=u.split(Ms),m=0,G=[],Fe=[],Et=[];for(let zr of y)if("("==zr)0!=m&&G.push(zr),m+=1;else if(")"==zr)if(m-=1,0==m){let Tr=id(G.join(" "));if("errorMessage"in Tr)return Tr;Et.push(Tr),Fe.push(ju),G=[]}else G.push(zr);else m>0?G.push(zr):Fe.push(zr);const Mn={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},kn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},$o={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},Bi={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let er=0;for(let zr of Fe){let Tr=$c.test(zr);if(Tr&&0==er)return kn;if(Tr&&er===y.length-1)return Mn;if(Tr&&!c)c=rd(zr);else if(Tr&&c&&rd(zr)!==c)return $o;er++}let Kl=[],ac=Fe.join(" ").split($c);for(let zr of ac.map(Tr=>Tr.trim())){let Tr=Ts.exec(zr);if(null===Tr){if(0===zr.length)return Bi;if("NOT"===zr||"NOT"===zr.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if(zr!==ju)return{errorType:"invalidToken",errorMessage:`Token '${zr}' does not match the expected format.`}}else Kl.push({not:!!Tr[1],variantId:parseInt(Tr[2])})}return{booleanOperator:c,variantComponents:Kl,complexComponents:Et}}function rd(u){return"AND"==u.toUpperCase()?An._Wm.And:An._Wm.Or}var hp=a(5095);let kd=(()=>{class u{constructor(c){this.apollo=c,this.cvcOnSelect=new e.vpe,this.cvcOnVariantSelect=new e.vpe,this.modelChange$=new Ge.X(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{geneId$:new Ge.X(void 0),variantId$:new Ge.X(void 0),variantMolecularProfile$:new Ge.X(void 0)}},this.form=new t.nJ({}),this.model={geneId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["field-grid"],props:{grid:{cols:2}},fieldGroup:[{key:"geneId",type:"gene-select",props:{placeholder:"Select MP Gene",hideLabel:!0,layout:{showExtra:!1}}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",requireGene:!0,layout:{showExtra:!1},hideLabel:!0}}]}]}modelChange(c){if(!c?.variantId)return;const m=this.getSelectedVariant(c.variantId);m&&(this.model={geneId:void 0,variantId:void 0},this.cvcOnSelect.next(m.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(m))}getSelectedVariant(c){if(!c)return;const m={id:`Variant:${c}`,fragment:yo.Ps` - fragment VariantSelectQuery on Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } - } - `};let G;try{G=this.apollo.client.readFragment(m)}catch(Fe){console.error(Fe)}if(G)return G;console.error("MpFinderForm could not resolve its Variant from the cache")}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(yo._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"nzLayout","formGroup"],[3,"form","fields","model","options","modelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"form",0)(1,"formly-form",1),e.NdJ("modelChange",function(Fe){return m.modelChange(Fe)}),e.qZA()()),2&c&&(e.Q6J("nzLayout",m.layout)("formGroup",m.form),e.xp6(1),e.Q6J("form",m.form)("fields",m.config)("model",m.model)("options",m.options))},dependencies:[t._Y,t.JL,t.sg,v.T7,s.Lr],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0}),u})();function sd(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.qZA(),e.BQk())}function Wu(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Complete the expression by appending a "),e.TgZ(3,"strong"),e._uU(4,"#VID"),e.qZA(),e._uU(5," token to the incomplete boolean expression. "),e.qZA(),e.BQk())}function ad(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," MP Expressions may not begin with an "),e.TgZ(3,"strong"),e._uU(4,"AND"),e.qZA(),e._uU(5," or "),e.TgZ(6,"strong"),e._uU(7,"OR"),e.qZA(),e._uU(8," boolean. Ensure the expression begins with a "),e.TgZ(9,"strong"),e._uU(10,"#VID"),e.qZA(),e._uU(11," or "),e.TgZ(12,"strong"),e._uU(13,"NOT #VID"),e.qZA(),e._uU(14," token. "),e.qZA(),e.BQk())}function fp(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Molecular Profile expressions use a simple domain-specific language to specify complex MPs using boolean expressions to combine variants. These expressions may contain: "),e.qZA(),e.TgZ(3,"ul")(4,"li"),e._uU(5," Variant Tokens - "),e.TgZ(6,"strong"),e._uU(7,"#VID"),e.qZA(),e._uU(8," or "),e.TgZ(9,"strong"),e._uU(10,"NOT #VID"),e.qZA(),e._uU(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.qZA(),e.TgZ(12,"li"),e._uU(13,"Boolean Tokens - "),e.TgZ(14,"strong"),e._uU(15,"AND"),e.qZA(),e._uU(16,", "),e.TgZ(17,"strong"),e._uU(18,"OR"),e.qZA()(),e.TgZ(19,"li"),e._uU(20," Parentheses - "),e.TgZ(21,"strong"),e._uU(22,"("),e.qZA(),e._uU(23," or "),e.TgZ(24,"strong"),e._uU(25,")"),e.qZA(),e._uU(26,", for grouping tokens into nested expressions "),e.qZA()(),e.TgZ(27,"p")(28,"strong"),e._uU(29,"Invalid Token"),e.qZA(),e._uU(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.qZA(),e.BQk())}function Zu(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," A single expression may not include more than one "),e.TgZ(3,"strong"),e._uU(4,"AND"),e.qZA(),e._uU(5," or "),e.TgZ(6,"strong"),e._uU(7,"OR"),e.qZA(),e._uU(8," boolean operator. To construct complex expressions, use parentheses. "),e.qZA(),e.TgZ(9,"p"),e._uU(10," For example, the expression "),e.TgZ(11,"strong"),e._uU(12,"#VID12 AND #VID2220 OR #VID456"),e.qZA(),e._uU(13," is invalid, but the expression "),e.TgZ(14,"strong"),e._uU(15,"#VID12 AND (#VID2220 OR #VID456)"),e.qZA(),e._uU(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.qZA(),e.BQk())}function mp(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," Complete the expression by appending a "),e.TgZ(3,"strong"),e._uU(4,"#VID"),e.qZA(),e._uU(5," token to the incomplete boolean expression. "),e.qZA(),e.BQk())}function Rd(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The expression contains a Variant ID that cannot be matched to any Variant in the CIViC database. Please re-check the Variant ID, or create a new one by following these steps: "),e.qZA(),e.TgZ(3,"ol")(4,"li"),e._uU(5,"click the 'Variant' button,"),e.qZA(),e.TgZ(6,"li"),e._uU(7,"enter a Gene name, then select a Gene"),e.qZA(),e.TgZ(8,"li"),e._uU(9,"enter the Variant name"),e.qZA(),e.TgZ(10,"li"),e._uU(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.qZA()(),e.BQk())}function Vd(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.TgZ(3,"strong"),e._uU(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.qZA(),e._uU(5,", which is invalid, is logically identical to the valid MP expression "),e.TgZ(6,"strong"),e._uU(7,"#VID123 AND (#VID456 OR #VID789)"),e.qZA(),e._uU(8,". "),e.qZA(),e.BQk())}function cd(u,y){1&u&&(e.ynx(0),e.TgZ(1,"p"),e._uU(2," The Molecular Profile editor allows the selection or creation of complex Molecular Profiles by writing Molecular Profile Expressions. These expressions are composed with a simple language consisting of Variant tokens, boolean operators, and parentheses. For example: "),e.qZA(),e.TgZ(3,"blockquote")(4,"strong"),e._uU(5,"#VID12 AND #VID2220"),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"strong"),e._uU(8,"#VID12 OR #VID2220"),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"strong"),e._uU(11,"#VID12 AND NOT #VID2220"),e.qZA(),e._UZ(12,"br"),e.TgZ(13,"strong"),e._uU(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.qZA(),e._UZ(15,"br"),e.TgZ(16,"strong"),e._uU(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.qZA(),e._UZ(18,"br"),e.qZA(),e.TgZ(19,"p")(20,"strong"),e._uU(21,"Variant Tokens"),e.qZA(),e._UZ(22,"br"),e._uU(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.TgZ(24,"strong"),e._uU(25,"#VID"),e.qZA(),e._uU(26,", and refer to specific CIViC Variants. For example, "),e.TgZ(27,"strong"),e._uU(28,"#VID12"),e.qZA(),e._uU(29," refers to "),e.TgZ(30,"strong"),e._uU(31,"BRAF V600E"),e.qZA(),e._uU(32,"; "),e.TgZ(33,"strong"),e._uU(34,"#VID2220"),e.qZA(),e._uU(35," refers to "),e.TgZ(36,"strong"),e._uU(37,"ALK FUSION"),e.qZA(),e._uU(38,". If you don\u2019t know the CIViC ID of a Variant, you can search for Variants by name using the \u2018Variant\u2019 or \u2018NOT Variant\u2019 buttons below. These interfaces can also be used to add a Variant that\u2019s not yet in CIViC. "),e.qZA(),e.TgZ(39,"p")(40,"strong"),e._uU(41,"Boolean Operators"),e.qZA(),e._UZ(42,"br"),e._uU(43," MP Expressions with more than a single variant must include boolean operators - "),e.TgZ(44,"strong"),e._uU(45,"AND"),e.qZA(),e._uU(46,", "),e.TgZ(47,"strong"),e._uU(48,"OR"),e.qZA(),e._uU(49,", and "),e.TgZ(50,"strong"),e._uU(51,"NOT"),e.qZA(),e._uU(52," - indicating their relationship. For example, the expression "),e.TgZ(53,"strong"),e._uU(54,"#VID12 AND #VID2220"),e.qZA(),e._uU(55," describes a MP that includes both "),e.TgZ(56,"strong"),e._uU(57,"BRAF V600E"),e.qZA(),e._uU(58," and "),e.TgZ(59,"strong"),e._uU(60,"ALK FUSION"),e.qZA(),e._uU(61,". "),e.qZA(),e.TgZ(62,"p")(63,"strong"),e._uU(64,"Parentheses"),e.qZA(),e._UZ(65,"br"),e._uU(66," Expressions cannot have both "),e.TgZ(67,"strong"),e._uU(68,"AND"),e.qZA(),e._uU(69," and "),e.TgZ(70,"strong"),e._uU(71,"OR"),e.qZA(),e._uU(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.qZA(),e.TgZ(73,"p")(74,"strong"),e._uU(75,"NOTE:"),e.qZA(),e._uU(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.qZA(),e.BQk())}let Wl=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-mp-editor-popover-help"]],inputs:{cvcErrorType:"cvcErrorType"},decls:11,vars:9,consts:[[1,"help-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(c,m){1&c&&(e.TgZ(0,"div",0),e.ynx(1,1),e.YNc(2,sd,3,0,"ng-container",2),e.YNc(3,Wu,6,0,"ng-container",2),e.YNc(4,ad,15,0,"ng-container",2),e.YNc(5,fp,31,0,"ng-container",2),e.YNc(6,Zu,17,0,"ng-container",2),e.YNc(7,mp,6,0,"ng-container",2),e.YNc(8,Rd,12,0,"ng-container",2),e.YNc(9,Vd,9,0,"ng-container",2),e.YNc(10,cd,77,0,"ng-container",3),e.BQk(),e.qZA()),2&c&&(e.xp6(1),e.Q6J("ngSwitch",m.cvcErrorType),e.xp6(1),e.Q6J("ngSwitchCase","incompleteExpression"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteNOT"),e.xp6(1),e.Q6J("ngSwitchCase","initialBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","invalidToken"),e.xp6(1),e.Q6J("ngSwitchCase","multipleBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","trailingBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","unknownVariant"),e.xp6(1),e.Q6J("ngSwitchCase","identicalVariants"))},dependencies:[M.RF,M.n9,M.ED],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]}),u})();var bs;const ld=["expressionEditor"];function ud(u,y){1&u&&e._uU(0,"Added new Molecular Profile")}function gp(u,y){if(1&u&&e._UZ(0,"cvc-mp-tag-name",24),2&u){const c=e.oxw().ngrxLet;e.Q6J("nameSegments",c)}}function Ui(u,y){1&u&&(e.TgZ(0,"span",25),e._uU(1," Valid Molecular Profile expressions will be previewed here. "),e.qZA())}function Bd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,gp,1,1,"cvc-mp-tag-name",22),e.YNc(2,Ui,2,0,"span",23),e.BQk()),2&u){const c=y.ngrxLet;e.xp6(1),e.Q6J("ngIf",c),e.xp6(1),e.Q6J("ngIf",!c)}}function Ku(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help")}function $s(u,y){if(1&u&&(e.TgZ(0,"button",28),e._UZ(1,"span",29),e._uU(2," GETTING STARTED "),e.qZA(),e.YNc(3,Ku,1,0,"ng-template",null,30,e.W1O)),2&u){const c=e.MAs(4);e.Q6J("nzPopoverContent",c)}}function dd(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",26),e.YNc(2,$s,5,1,"ng-template",null,27,e.W1O),e.BQk()),2&u){const c=y.ngIf,m=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",c)("nzAction",m)}}function vp(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(c);const G=e.oxw(3).ngrxLet,Fe=e.oxw();return e.KtG(Fe.cvcOnSelect.next(G))}),e._uU(1," Select this MP "),e.qZA()}}function Hd(u,y){if(1&u&&(e._uU(0," Molecular Profile "),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," found. ")),2&u){const c=e.oxw(3).ngrxLet;e.xp6(2),e.Oqu(c.name)}}function $d(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",31),e.YNc(2,vp,2,0,"ng-template",null,32,e.W1O),e.YNc(4,Hd,4,1,"ng-template",null,33,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",m)("nzAction",c)}}function Ca(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(c);const G=e.oxw(4);return e.KtG(G.onCreateNewMp$.next())}),e._uU(1," Create New MP "),e.qZA()}}function pd(u,y){1&u&&e._uU(0," Molecular Profile not found, create it? ")}function Jp(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"nz-alert",31),e.YNc(2,Ca,2,0,"ng-template",null,35,e.W1O),e.YNc(4,pd,1,0,"ng-template",null,36,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.MAs(5);e.xp6(1),e.Q6J("nzMessage",m)("nzAction",c)}}function qp(u,y){if(1&u&&(e.ynx(0),e.YNc(1,$d,6,2,"ng-container",6),e.YNc(2,Jp,6,2,"ng-container",6),e.BQk()),2&u){const c=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",void 0!==c),e.xp6(1),e.Q6J("ngIf",void 0===c)}}function za(u,y){if(1&u&&(e.ynx(0),e.YNc(1,qp,3,2,"ng-container",6),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!e.lcZ(2,1,c.expressionError$)&&!e.lcZ(3,3,c.expressionMessage$))}}function ci(u,y){if(1&u&&(e.TgZ(0,"button",40),e._UZ(1,"span",29),e._uU(2," SYNTAX ASSISTANCE "),e.qZA()),2&u){const c=e.oxw().helpContent;e.Q6J("nzPopoverContent",c)}}function Ju(u,y){if(1&u&&(e._UZ(0,"nz-alert",38),e.YNc(1,ci,3,1,"ng-template",null,39,e.W1O)),2&u){const c=y.$implicit,m=e.MAs(2);e.Q6J("nzMessage",c.errorMessage)("nzAction",m)}}function _p(u,y){1&u&&e.GkF(0)}function yp(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",46)}const ti=function(u,y){return{$implicit:u,helpContent:y}};function Zl(u,y){if(1&u&&(e.ynx(0),e.YNc(1,_p,1,0,"ng-container",44),e.YNc(2,yp,1,0,"ng-template",null,45,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function Cp(u,y){1&u&&e.GkF(0)}function Yd(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",48)}function Ud(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Cp,1,0,"ng-container",44),e.YNc(2,Yd,1,0,"ng-template",null,47,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function hd(u,y){1&u&&e.GkF(0)}function Xp(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",50)}function fd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,hd,1,0,"ng-container",44),e.YNc(2,Xp,1,0,"ng-template",null,49,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function zp(u,y){1&u&&e.GkF(0)}function md(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",52)}function Gd(u,y){if(1&u&&(e.ynx(0),e.YNc(1,zp,1,0,"ng-container",44),e.YNc(2,md,1,0,"ng-template",null,51,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function Qd(u,y){1&u&&e.GkF(0)}function nc(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",54)}function Tp(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Qd,1,0,"ng-container",44),e.YNc(2,nc,1,0,"ng-template",null,53,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function gd(u,y){1&u&&e.GkF(0)}function qu(u,y){1&u&&e._UZ(0,"cvc-mp-editor-popover-help",56)}function T(u,y){if(1&u&&(e.ynx(0),e.YNc(1,gd,1,0,"ng-container",44),e.YNc(2,qu,1,0,"ng-template",null,55,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function p(u,y){1&u&&e.GkF(0)}function h(u,y){1&u&&(e.ynx(0),e._UZ(1,"cvc-mp-editor-popover-help",58),e.BQk())}function g(u,y){1&u&&(e.ynx(0),e._UZ(1,"cvc-mp-editor-popover-help",59),e.BQk())}function z(u,y){if(1&u&&(e.YNc(0,h,2,0,"ng-container",6),e.YNc(1,g,2,0,"ng-container",6)),2&u){const c=e.oxw(2).ngIf;e.Q6J("ngIf",c.errorMessage.split(" ").includes("multiple")),e.xp6(1),e.Q6J("ngIf",c.errorMessage.split(" ").includes("found."))}}function E(u,y){if(1&u&&(e.ynx(0),e.YNc(1,p,1,0,"ng-container",44),e.YNc(2,z,2,2,"ng-template",null,57,e.W1O),e.BQk()),2&u){const c=e.MAs(3),m=e.oxw().ngIf;e.oxw();const G=e.MAs(14);e.xp6(1),e.Q6J("ngTemplateOutlet",G)("ngTemplateOutletContext",e.WLB(2,ti,m,c))}}function q(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"pre"),e._uU(2),e.ALo(3,"json"),e.qZA(),e.BQk()),2&u){const c=e.oxw().ngIf;e.xp6(2),e.hij(" ",e.lcZ(3,1,c),"\n ")}}function ve(u,y){if(1&u&&(e.ynx(0)(1,41),e.YNc(2,Zl,4,5,"ng-container",42),e.YNc(3,Ud,4,5,"ng-container",42),e.YNc(4,fd,4,5,"ng-container",42),e.YNc(5,Gd,4,5,"ng-container",42),e.YNc(6,Tp,4,5,"ng-container",42),e.YNc(7,T,4,5,"ng-container",42),e.YNc(8,E,4,5,"ng-container",42),e.YNc(9,q,4,3,"ng-container",43),e.BQk()()),2&u){const c=y.ngIf;e.xp6(1),e.Q6J("ngSwitch",c.errorType),e.xp6(1),e.Q6J("ngSwitchCase","invalidToken"),e.xp6(1),e.Q6J("ngSwitchCase","trailingBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","initialBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","multipleBoolean"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteExpression"),e.xp6(1),e.Q6J("ngSwitchCase","incompleteNOT"),e.xp6(1),e.Q6J("ngSwitchCase","queryError")}}function Ee(u,y){1&u&&(e.TgZ(0,"span",25),e._uU(1," Append: "),e.qZA())}function Xe(u,y){if(1&u&&(e.TgZ(0,"button",60)(1,"strong"),e._uU(2,"Variant"),e.qZA()()),2&u){e.oxw();const c=e.MAs(37);e.Q6J("nzPopoverContent",c)}}function ht(u,y){if(1&u&&(e.TgZ(0,"button",61)(1,"strong"),e._uU(2,"NOT Variant"),e.qZA()()),2&u){e.oxw();const c=e.MAs(39);e.Q6J("nzPopoverContent",c)}}function Dt(u,y){1&u&&(e.TgZ(0,"span",62),e._uU(1," | "),e.qZA())}function $t(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("AND"))}),e.TgZ(1,"strong"),e._uU(2,"AND"),e.qZA()()}}function Qt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("OR"))}),e.TgZ(1,"strong"),e._uU(2,"OR"),e.qZA()()}}function Kt(u,y){1&u&&(e.TgZ(0,"span",62),e._uU(1," | "),e.qZA())}function Wt(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next("("))}),e.TgZ(1,"strong"),e._uU(2,"("),e.qZA()()}}function mn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(c);const G=e.oxw();return e.KtG(G.onAppendInput$.next(")"))}),e.TgZ(1,"strong"),e._uU(2,")"),e.qZA()()}}const En=function(){return[6,8]};function Hn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",64)(1,"nz-row",2)(2,"nz-col",3)(3,"p",65),e._uU(4," Select a Gene and Variant to append its #VID. "),e.qZA()(),e.TgZ(5,"nz-col",3)(6,"cvc-mp-finder",66),e.NdJ("cvcOnVariantSelect",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onVariantSelect$.next({variant:G,prependNot:!1}))}),e.qZA()()()()}2&u&&(e.xp6(1),e.Q6J("nzGutter",e.DdM(1,En)))}function nn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",64)(1,"nz-row",2)(2,"nz-col",3)(3,"p",65),e._uU(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.qZA()(),e.TgZ(5,"nz-col",3)(6,"cvc-mp-finder",66),e.NdJ("cvcOnVariantSelect",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onVariantSelect$.next({variant:G,prependNot:!0}))}),e.qZA()()()()}2&u&&(e.xp6(1),e.Q6J("nzGutter",e.DdM(1,En)))}function vn(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e._UZ(3,"cvc-entity-tag",70),e.qZA(),e.TgZ(4,"nz-list-item-meta-description"),e._uU(5),e.qZA()(),e.TgZ(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.NdJ("click",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw(2);return e.KtG(Et.onSelectExample$.next(Fe))}),e._uU(9," Select "),e.qZA()()()()}if(2&u){const c=y.$implicit;e.xp6(3),e.Q6J("cvcLinkableEntity",c.mp),e.xp6(2),e.hij(" ",c.description," ")}}function $n(u,y){if(1&u&&(e.TgZ(0,"div",67)(1,"nz-list",68),e.YNc(2,vn,10,2,"nz-list-item",69),e.qZA()()),2&u){const c=e.oxw();e.xp6(2),e.Q6J("ngForOf",c.exampleExpressions)}}const Ln=function(u){return{active:u}};let no=((bs=class{constructor(y,c,m,G){this.previewMpGql=y,this.createMolecularProfileGql=c,this.mpEditorPrepopulate=m,this.networkErrorService=G,this.cvcOnSelect=new e.vpe,this.expressionMessages={initial:"Use the editor below to construct a molecular profile."},this.exampleExpressions=[{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND EGFR L858R AND EGFR T790M"},expression:"#VID12 AND #VID33 AND #VID34",description:"BRAF V600E, EGFR L858R, and EGFR T790M must all be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND NOT EGFR L858R"},expression:"#VID12 AND NOT #VID33",description:"BRAF V600E must be observed and EGFR L858R must be absent."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E OR EGFR L858R OR EGFR T790M"},expression:"#VID12 OR #VID33 OR #VID34",description:"Either BRAF V600E, or EGFR L858R, or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND (EGFR L858R OR EGFR T790M)"},expression:"#VID12 AND (#VID33 OR #VID34)",description:"BRAF V600E must be observed and either EGFR L858R or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"NOT KIT D816V"},expression:"NOT #VID4353",description:"KIT D816V must be absent."}],this.createMolecularProfileMutator=new Jo.U(this.networkErrorService),this.onInputChange$=new Ge.X(void 0),this.onAppendInput$=new st.x,this.onVariantSelect$=new st.x,this.onCreateNewMp$=new st.x,this.onSelectExample$=new st.x,this.inputValue$=new Ge.X(""),this.expressionError$=new Ge.X(void 0),this.expressionHelp$=new Ge.X(void 0),this.expressionMessage$=new Ge.X(this.expressionMessages.initial),this.expressionSegment$=new st.x,this.existingMp$=new st.x}ngAfterViewInit(){this.onInputChange$.pipe((0,Co.b)(250),(0,wo.b)(y=>{y||this.expressionSegment$.next(void 0)}),(0,De.h)(So.ep),(0,wo.b)(y=>{0===y.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,De.h)(y=>y.length>0),(0,De.h)(y=>" "!==y[y.length-1]),(0,Ct.U)(y=>{let c=jl(y);return"errorMessage"in c?c:this.previewQueryRef.refetch({mpStructure:c})}),(0,ae.t)(this)).subscribe(y=>{if(this.isMpParseError(y)){const c=y;this.expressionMessage$.next(void 0),this.expressionError$.next(c),this.expressionSegment$.next(void 0)}else y.then(({data:m,errors:G})=>{if(G)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:G.map(Fe=>Fe.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(m.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(m.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,ae.t)(this)).subscribe(y=>{if(this.expressionEditor){const c=this.expressionEditor.nativeElement,G=`${c.value}${/\s+$/.test(y)?y:" "+y}`;c.value=G,this.inputValue$.next(G),this.onInputChange$.next(G)}}),this.onSelectExample$.pipe((0,ae.t)(this)).subscribe(y=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=y.expression,this.inputValue$.next(y.expression),this.onInputChange$.next(y.expression))}),this.onVariantSelect$.pipe((0,it.M)(this.onInputChange$),(0,Ct.U)(([y,c])=>{const m=`${y.prependNot?"NOT ":""}#VID${y.variant.id}`;return c&&0!=c.trim().length?`${c.trim()} ${m}`:m}),(0,ae.t)(this)).subscribe(y=>{this.inputValue$.next(y),this.onInputChange$.next(y)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,sn.j)("data","previewMolecularProfileName"),(0,De.h)(So.ep),(0,Ct.U)(y=>y.segments),(0,ae.t)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,sn.j)("data","previewMolecularProfileName"),(0,De.h)(So.ep),(0,Ct.U)(y=>y.existingMolecularProfile),(0,ae.t)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,sn.j)("data","previewMolecularProfileName"),(0,De.h)(So.ep),(0,Ct.U)(y=>y.deprecatedVariants),(0,ae.t)(this)),this.onCreateNewMp$.pipe((0,it.M)(this.onInputChange$),(0,ae.t)(this)).subscribe(([y,c])=>{if(!c||0===c.length)return;let m=jl(c);"errorMessage"in m||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:m},{},G=>{setTimeout(()=>{G.createMolecularProfile&&this.cvcOnSelect.next(G.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(y){return void 0!==y.errorMessage}prepopulateMp(y){if(!y)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");Ec(this.mpEditorPrepopulate.fetch({mpId:y},{fetchPolicy:"cache-first"})).then(({data:c})=>{if(!c?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${y} to prepolate editor fields.`);const m=c.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(m),this.onInputChange$.next(m)})}ngOnChanges(y){y.cvcPrepopulateWithId&&this.prepopulateMp(y.cvcPrepopulateWithId.currentValue)}}).\u0275fac=function(y){return new(y||bs)(e.Y36(An.mki),e.Y36(An.zpu),e.Y36(An.vjc),e.Y36(Ro.Y))},bs.\u0275cmp=e.Xpm({type:bs,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(y,c){if(1&y&&e.Gf(ld,5),2&y){let m;e.iGM(m=e.CRH())&&(c.expressionEditor=m.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.TTD],decls:42,vars:23,consts:[["entityType","Molecular Profile",3,"mutationState","successMessage"],["success",""],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["errorAlert",""],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModel","ngModelChange"],["expressionEditor",""],[1,"btn-row"],["nzFlex","80px"],["nzBlock","","nz-button","","nzType","primary","nzShape","round","nzSize","small","nz-popover","","nzPopoverTitle","Select a Profile to view its expression","nzPopoverTrigger","click","nzPopoverPlacement","bottomLeft",3,"nzPopoverContent"],["nzFlex","auto",2,"text-align","right"],["nz-typography","","nzType","secondary",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["class","btn-divider",4,"nzSpaceItem"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click",4,"nzSpaceItem"],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["messageAction",""],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["gettingStartedHelp",""],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["selectAction",""],["foundMessage",""],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["createAction",""],["createMessage",""],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["errorAction",""],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["invalidTokenHelp",""],["cvcErrorType","invalidToken"],["trailingBooleanHelp",""],["cvcErrorType","trailingBoolean"],["initialBooleanHelp",""],["cvcErrorType","initialBoolean"],["multipleBooleanHelp",""],["cvcErrorType","multipleBoolean"],["incompleteExpressionHelp",""],["cvcErrorType","incompleteExpression"],["incompleteNOTHelp",""],["cvcErrorType","incompleteNOT"],["queryErrorHelp",""],["cvcErrorType","identicalVariants"],["cvcErrorType","unknownVariant"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],[1,"btn-divider"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click"],[1,"append-popover-contents"],["nz-typography","","nzType","secondary",2,"margin","0","padding-bottom","2px"],[3,"cvcOnVariantSelect"],[2,"min-width","525px","margin","-8px -12px"],["nzSize","small","nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],[3,"cvcLinkableEntity"],["nz-list-item-actions",""],["type","button","nz-button","","nzType","primary","nzSize","small",3,"click"]],template:function(y,c){if(1&y&&(e.TgZ(0,"cvc-form-submission-status-display",0),e.YNc(1,ud,1,0,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-row",2)(4,"nz-col",3)(5,"div",4),e.ALo(6,"ngrxPush"),e.YNc(7,Bd,3,2,"ng-container",5),e.ALo(8,"ngrxPush"),e.qZA()(),e.TgZ(9,"nz-col",3),e.YNc(10,dd,4,2,"ng-container",6),e.ALo(11,"ngrxPush"),e.YNc(12,za,4,5,"ng-container",5),e.YNc(13,Ju,3,2,"ng-template",null,7,e.W1O),e.YNc(15,ve,10,8,"ng-container",6),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"nz-col",3)(18,"textarea",8,9),e.NdJ("ngModelChange",function(G){return c.onInputChange$.next(G)}),e.ALo(20,"ngrxPush"),e.qZA()()(),e.TgZ(21,"nz-row",10)(22,"nz-col",11)(23,"button",12),e._uU(24," Examples "),e.qZA()(),e.TgZ(25,"nz-col",13)(26,"nz-space"),e.YNc(27,Ee,2,0,"span",14),e.YNc(28,Xe,3,1,"button",15),e.YNc(29,ht,3,1,"button",16),e.YNc(30,Dt,2,0,"span",17),e.YNc(31,$t,3,0,"button",18),e.YNc(32,Qt,3,0,"button",18),e.YNc(33,Kt,2,0,"span",17),e.YNc(34,Wt,3,0,"button",18),e.YNc(35,mn,3,0,"button",18),e.qZA()(),e.YNc(36,Hn,7,2,"ng-template",null,19,e.W1O),e.YNc(38,nn,7,2,"ng-template",null,20,e.W1O),e.YNc(40,$n,3,1,"ng-template",null,21,e.W1O),e.qZA()()),2&y){const m=e.MAs(2),G=e.MAs(41);e.Q6J("mutationState",c.state)("successMessage",m),e.xp6(3),e.Q6J("nzGutter",e.DdM(20,En)),e.xp6(2),e.Q6J("ngClass",e.VKq(21,Ln,void 0!==e.lcZ(6,10,c.expressionSegment$))),e.xp6(2),e.Q6J("ngrxLet",e.lcZ(8,12,c.expressionSegment$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(11,14,c.expressionMessage$)),e.xp6(2),e.Q6J("ngrxLet",c.existingMp$),e.xp6(3),e.Q6J("ngIf",e.lcZ(16,16,c.expressionError$)),e.xp6(3),e.Q6J("ngModel",e.lcZ(20,18,c.inputValue$)),e.xp6(5),e.Q6J("nzPopoverContent",G)}},dependencies:[M.mk,M.sg,M.O5,M.tP,M.RF,M.n9,M.ED,t.Fj,t.JJ,t.On,I.eJ,Mt.r,pn.ix,Wo.w,qo.dQ,Re.Ls,Pe.Zp,k.t3,k.SK,$e.NU,$e.$1,ge.ZU,co.lU,Xi.n_,Xi.AA,Xi.yi,Xi.IO,Xi.Pb,Xi.nk,Xi.KC,Ti.F,hp.C,Po.J,kd,Wl,M.Ts,I.fM],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6;border:1px solid #dedede;border-radius:4px;padding:8px}.expression-preview[_ngcontent-%COMP%]{width:100%;padding:8px;border:1px solid #dedede;border-radius:4px}.expression-preview.active[_ngcontent-%COMP%]{background-color:#fff}.append-popover-contents[_ngcontent-%COMP%]{min-width:450px}.help-content[_ngcontent-%COMP%]{max-width:500px}.btn-row[_ngcontent-%COMP%]{margin-top:10px;flex-wrap:nowrap}.btn-row[_ngcontent-%COMP%] .btn-divider[_ngcontent-%COMP%]{color:#aaa}"],changeDetection:0}),bs);no=(0,te.gn)([(0,ae.c)()],no);const xo=["optionTemplates"];function Oi(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-mp-finder",11),e.NdJ("cvcOnSelect",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onMpSelect$.next(G))}),e.qZA()}}function Mi(u,y){1&u&&(e.TgZ(0,"div",12),e._uU(1," \xa0 "),e.TgZ(2,"span",13)(3,"i"),e._uU(4,"Select or create a Molecular Profile with the expression editor "),e.qZA()()())}function rs(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",14)(1,"cvc-entity-select",15),e.NdJ("cvcOnSearch",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onSearch$.next(G))})("cvcOnModelChange",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.props.change&&Fe.props.change(Fe.field,G))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw(2),m=e.MAs(13);e.xp6(1),e.Q6J("cvcSelectMode",c.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",m)("cvcFormControl",c.formControl)("cvcFormlyAttributes",c.field)("cvcEntityName",c.props.entityName)("cvcPlaceholder",c.props.placeholder)("cvcResults",e.lcZ(2,15,c.result$))("cvcDisabled",c.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.lcZ(3,17,c.selectOption$))("cvcShowError",c.showError)("cvcLoading",e.lcZ(4,19,c.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function Ri(u,y){if(1&u&&(e.ynx(0),e.YNc(1,Oi,1,0,"cvc-mp-finder",8),e.YNc(2,Mi,5,0,"div",9),e.YNc(3,rs,5,21,"div",10),e.BQk()),2&u){const c=y.ngrxLet,m=e.oxw();e.xp6(1),e.Q6J("ngIf",c.showFinder&&!m.editorOpen),e.xp6(1),e.Q6J("ngIf",m.editorOpen),e.xp6(1),e.Q6J("ngIf",c.showSelect&&!m.editorOpen)}}function gr(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-col",16)(1,"cvc-mp-expression-editor",17),e.NdJ("cvcOnSelect",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onMpSelect$.next(G))}),e.ALo(2,"ngrxPush"),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcPrepopulateWithId",e.lcZ(2,1,c.onMpId$))}}function Xu(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",24),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.molecularProfileAliases.join(", "),m),e.oJD)}}function Yc(u,y){1&u&&e._uU(0,"--")}function oo(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",20),e.TgZ(1,"span",21),e._uU(2," Aliases: "),e.YNc(3,Xu,4,4,"ng-container",22),e.YNc(4,Yc,1,0,"ng-template",null,23,e.W1O),e.qZA()),2&u){const c=e.MAs(5),m=e.oxw().$implicit,G=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",m.__typename+":"+m.id)("cvcEmphasize",G),e.xp6(3),e.Q6J("ngIf",m.molecularProfileAliases.length>0)("ngIfElse",c)}}function po(u,y){1&u&&(e.ynx(0),e.YNc(1,oo,6,5,"ng-template",null,19,e.W1O),e.BQk())}function bo(u,y){if(1&u&&(e.ynx(0),e.YNc(1,po,3,0,"ng-container",18),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Zo(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",25)(1,"cvc-entity-tag",26),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","MolecularProfile:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Vi=function(){return[8,12]},Ys=function(u,y){return{show:u,hide:y}},Cr=Vt(yn(),Xo());let ss=(()=>{class u extends Cr{constructor(c,m,G,Fe){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.apollo=Fe,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",isMultiSelect:!1,description:"Select a Gene and Variant to specify a simple Molecular Profile.",extraType:"prompt",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new Ge.X(void 0),this.onMpId$=new _o.t,this.onShowExpClick$=new st.x,this.showExp$=this.onShowExpClick$.pipe((0,eo.R)((Et,Mn)=>!Et,!1),(0,wo.b)(Et=>this.editorOpen=Et)),this.selectDisplay$=new Ge.X({showFinder:!0,showSelect:!1})}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.initialDescription=this.props.description,this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{const m=void 0!==c;this.selectDisplay$.next({showFinder:!m,showSelect:m}),this.onMpId$.next(c),this.props.description=c?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.selectOption$.next([{label:c.name,value:c.id}]),this.editorOpen&&this.onShowExpClick$.next(),this.cdr.detectChanges(),this.field.formControl.setValue(c.id)):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(c,m){return{name:c,geneId:m}}getTypeaheadResultsFn(c){return c.data.molecularProfiles.nodes}getTagQueryVarsFn(c){return{molecularProfileId:c}}getTagQueryResultsFn(c){return c.data.molecularProfile}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.F4e),e.Y36(An.dGO),e.Y36(e.sBO),e.Y36(yo._M))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ng-component"]],viewQuery:function(c,m){if(1&c&&e.Gf(xo,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:14,vars:16,consts:[[3,"nzGutter"],["nzFlex","auto"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","","nz-tooltip","","nzTooltipTitle","Add/Edit Complex MP Expression",1,"expression-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","editor-drawer",4,"ngIf"],["selectedTemplate",""],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["style","display: inline-block",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[2,"display","inline-block"],[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow","cvcOnSearch","cvcOnModelChange"],["nzSpan","24",1,"editor-drawer"],[3,"cvcPrepopulateWithId","cvcOnSelect"],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["noAliases",""],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.YNc(2,Ri,4,3,"ng-container",2),e.qZA(),e.TgZ(3,"nz-col",3)(4,"button",4),e.NdJ("click",function(){return m.onShowExpClick$.next()}),e._UZ(5,"span",5),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e._uU(8,"Editor "),e.qZA()(),e.YNc(9,gr,3,3,"nz-col",6),e.ALo(10,"ngrxPush"),e.qZA(),e.YNc(11,bo,3,3,"ng-container",2),e.YNc(12,Zo,2,3,"ng-template",null,7,e.W1O)),2&c&&(e.Q6J("nzGutter",e.DdM(12,Vi)),e.xp6(2),e.Q6J("ngrxLet",m.selectDisplay$),e.xp6(3),e.Q6J("ngClass",e.WLB(13,Ys,e.lcZ(6,6,m.showExp$),!e.lcZ(7,8,m.showExp$)))("nzType","caret-right"),e.xp6(4),e.Q6J("ngIf",e.lcZ(10,10,m.showExp$)),e.xp6(2),e.Q6J("ngrxLet",m.onSearch$))},dependencies:[M.mk,M.sg,M.O5,I.eJ,pn.ix,Wo.w,qo.dQ,Re.Ls,k.t3,k.SK,ge.ZU,et.SY,Oo,Po.J,no,kd,I.fM,w.A],styles:["form[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}form[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}.editor-message[_ngcontent-%COMP%]{padding:3px;background-color:#f5f5f5;cursor:default;border-radius:2px}"],data:{animation:[nd.mF,nd.MC]},changeDetection:0}),u})();const wi={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:ss},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:ss,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let jd=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,t.UX,v.X0.forChild(wi),Mt.L,pn.sL,We.LV,qn.Qp,Re.PV,Pe.o7,k.Jb,$e.zf,s.U5,B.ic,ge.ZJ,et.cg,co.$6,$e.zf,Ut.Wr,Xi.Ph,Wn.g,td.r,je,Zt,Nt.s,ze.x]}),u})();var Mp=a(3702);const cr=["optionTemplates"];function Ta(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.ALo(3,"formatAmp"),e.qZA()(),e.TgZ(4,"span",4),e._uU(5),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw();e.xp6(2),e.Oqu(e.xi3(3,2,c,"verbose")),e.xp6(3),e.Oqu(m.descriptionForCategory(c))}}function Xr(u,y){1&u&&(e.ynx(0),e.YNc(1,Ta,6,5,"ng-template",null,3,e.W1O),e.BQk())}function e1(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",8),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.ALo(3,"formatAmp"),e.qZA()()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,c.nzValue,"verbose"))}}function Wd(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.ALo(2,"formatAmp"),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,c.nzValue,"verbose")," ")}}function n4(u,y){if(1&u&&(e.TgZ(0,"div",5),e.YNc(1,e1,4,4,"nz-tag",6),e.YNc(2,Wd,3,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const Zd=new Map([[An.iwm.Na,"Not Applicable"],[An.iwm.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[An.iwm.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[An.iwm.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[An.iwm.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[An.iwm.TierIii,"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."],[An.iwm.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),bp=Vt(yn(),lt());let eh=(()=>{class u extends bp{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"AMP/ASCO/CAP Category",required:!1,isMultiSelect:!1,placeholder:"Select AMP/ASCO/CAP Category"}},this.ampCategoryEnum$=new Ge.X([])}descriptionForCategory(c){return Zd.get(c)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.ampCategoryEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.configurePlaceholder()}configureStateConnections(){this.props.tooltip="If applicable, please provide the AMP/ASCO/CAP somatic variant classification.",this.ampCategoryEnum$.next((0,Mo.o6)(An.iwm).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m))),this.state&&(this.state.requires.requiresAmpLevel$?this.onRequiresAmpCategory$=this.state.requires.requiresAmpLevel$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAmpLevel$ subject to attach.`),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.extraType=void 0,this.props.description=Zd.get(c)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new Ge.X(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,mo.x)(),(0,ae.t)(this)).subscribe(c=>{this.props.extraType=void 0,c?(this.formControl.value||(this.props.extraType="description",this.props.description='Please provide the AMP/ASCO/CAP somatic variant classification.'),this.props.required=!0,this.props.disabled=!1):(this.props.required=!1,this.props.disabled=!0,this.resetField()),this.cdr.markForCheck()})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(cr,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,Xr,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,n4,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.ampCategoryEnum$))}},dependencies:[M.sg,M.O5,Jt.j,ge.ZU,Ke,I.fM,Mp.t]}),u})();const th={types:[{name:"amp-category-select",wrappers:["form-field"],component:eh},{name:"amp-category-multi-select",wrappers:["form-field"],component:eh,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let Sp=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(th),Jt.X,ge.ZJ,Nt.s,je,Be]}),u})();const Kd=["optionTemplates"];function nh(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em")(2,"span",6),e._uU(3),e.qZA()(),e.BQk()),2&u){const c=e.oxw(2).$implicit;e.xp6(3),e.Oqu(c.description)}}function oh(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA(),e.TgZ(2,"span",6),e.YNc(3,nh,4,1,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.code),e.xp6(2),e.Q6J("ngIf",c.description)}}function o4(u,y){1&u&&(e.ynx(0),e.YNc(1,oh,4,2,"ng-template",null,4,e.W1O),e.BQk())}function ih(u,y){if(1&u&&(e.ynx(0),e.YNc(1,o4,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function c2(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",8)(1,"cvc-entity-tag",9),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const i4=Vt(yn(),Xo());let t1=(()=>{class u extends i4{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"ACMG/AMP Code",plural:"ACMG/AMP Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP.",placeholder:"Search ACMG/AMP Codes",requireTypePromptFn:(Fe,Et)=>`Select an ${Fe} Type to search associated ACMG Code(s)`}},this.placeholder$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresAcmgCodes$?this.onRequiresAcmgCode$=this.state.requires.requiresAcmgCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAcmgCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresAcmgCode$&&this.onEntityType$&&(0,Eo.a)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,mo.x)(),(0,ae.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,xe.E)(m)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.acmgCodesTypeahead}getTagQueryResultsFn(c){return c.data.acmgCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>(console.log(G),{label:m.get(Fe)||G.code,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.O2u),e.Y36(An.AIY),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(Kd,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,ih,3,3,"ng-container",1),e.YNc(7,c2,2,5,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresAcmgCode$&&!e.lcZ(4,18,m.onRequiresAcmgCode$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,et.SY,ge.ZU,Jt.j,Oo,Po.J,I.fM],changeDetection:0}),u})();const r4={types:[{name:"acmg-code-select",wrappers:["form-field"],component:t1,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:t1,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let n1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(r4),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x,ks]}),u})();const vd=["optionTemplates"];function s4(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em")(2,"span",6),e._uU(3),e.qZA()(),e.BQk()),2&u){const c=e.oxw(2).$implicit;e.xp6(3),e.Oqu(c.description)}}function rh(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA(),e.TgZ(2,"span",6),e.YNc(3,s4,4,1,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.code),e.xp6(2),e.Q6J("ngIf",c.description)}}function a4(u,y){1&u&&(e.ynx(0),e.YNc(1,rh,4,2,"ng-template",null,4,e.W1O),e.BQk())}function c4(u,y){if(1&u&&(e.ynx(0),e.YNc(1,a4,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function l4(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",8)(1,"cvc-entity-tag",9),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const sh=Vt(yn(),Xo());let ah=(()=>{class u extends sh{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.exclusiveCodes=new Set,this.exclusiveSelected=!1,this.defaultOptions={props:{entityName:{singular:"ClinGen/CGC/VICC Code",plural:"ClinGen/CGC/VICC Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity).",placeholder:"Search ClinGen/CGC/VICC Codes",requireTypePromptFn:(Fe,Et)=>`Select an ${Fe} Type to search associated ClinGen Code(s)`}},this.placeholder$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders(),this.onValueChange$.pipe((0,ae.t)(this)).subscribe(c=>{if(c&&Array.isArray(c)&&c.length>1){const m=c.find(G=>this.exclusiveCodes.has(G));m?(this.previousDescription=this.props.description,this.previousDescriptionType=this.props.extraType,this.props.description="You have selected N/A which precludes selecting any other codes. Please remove it if you wish to select additional codes.",this.exclusiveSelected=!0,this.formControl.setValue([m])):this.exclusiveSelected=!1}this.previousDescription&&!this.exclusiveSelected&&(this.props.description=this.previousDescription,this.props.extraType=this.previousDescriptionType),this.cdr.detectChanges()})}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresClingenCodes$?this.onRequiresClingenCode$=this.state.requires.requiresClingenCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresClingenCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresClingenCode$&&this.onEntityType$&&(0,Eo.a)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,mo.x)(),(0,ae.t)(this)).subscribe(([c,m])=>{!c&&m?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,xe.E)(m)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!m?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide the evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity) in Horak et. al. 2022.. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!m&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.clingenCodesTypeahead.forEach(m=>{m.exclusive&&this.exclusiveCodes.add(m.id)}),c.data.clingenCodesTypeahead}getTagQueryResultsFn(c){return c.data.clingenCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.code,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.E2B),e.Y36(An.R8F),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(vd,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:9,vars:22,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.qZA(),e.YNc(6,c4,3,3,"ng-container",1),e.YNc(7,l4,2,5,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(8);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.onRequiresClingenCode$&&!e.lcZ(4,18,m.onRequiresClingenCode$))("cvcLoading",e.lcZ(5,20,m.isLoading$)),e.xp6(6),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,et.SY,ge.ZU,Jt.j,Oo,Po.J,I.fM],changeDetection:0}),u})();const Ep={types:[{name:"clingen-code-select",wrappers:["form-field"],component:ah,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:ah,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let _d=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Ep),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x,ks]}),u})();const ch=["optionTemplates"];function l2(u,y){if(1&u&&(e.TgZ(0,"nz-tag",5),e._uU(1),e.qZA()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.Oqu(c.name)}}function xp(u,y){1&u&&(e.ynx(0),e.YNc(1,l2,2,1,"ng-template",null,4,e.W1O),e.BQk())}function o1(u,y){if(1&u&&(e.ynx(0),e.YNc(1,xp,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function Jd(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",6)(1,"cvc-entity-tag",7),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const lh=Vt(yn(),Xo());let Dp=(()=>{class u extends lh{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"NCCN Guideline",plural:"NCCN Guidelines"},isMultiSelect:!1,requireType:!1,tooltip:"If applicable, please provide cancer (e.g., Breast Cancer) for the appropriate NCCN guideline.",placeholder:"Search NCCN Guidelines"}},this.placeholder$=new Ge.X(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.nccnGuidelinesTypeahead}getTagQueryResultsFn(c){return c.data.nccnGuideline}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.sA8),e.Y36(An.N$2),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(ch,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:8,vars:20,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA(),e.YNc(5,o1,3,3,"ng-container",1),e.YNc(6,Jd,2,4,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(7);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,12,m.placeholder$))("cvcResults",e.lcZ(2,14,m.result$))("cvcOptions",e.lcZ(3,16,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",!1)("cvcLoading",e.lcZ(4,18,m.isLoading$)),e.xp6(5),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,I.eJ,et.SY,Jt.j,Oo,Po.J,I.fM],changeDetection:0}),u})();const u4={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:Dp,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:Dp,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let d4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(u4),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x,ks]}),u})();const p4=Vt(yn()),uh={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends p4{constructor(c){super(),this.cdr=c,this.defaultDescription="Please enter the version of the NCCN guideline you're referencing in the format Version.Year",this.defaultOptions={validators:{nccnVersionNumber:{expression:m=>{if(m.value){if(/^\d{1,2}\.\d{4}$/.test(m.value)){let G=+m.value.split(".")[1];return G>=2e3&&G<=(new Date).getFullYear()+1}return!1}return!0},message:(m,G)=>`"${G.formControl?.value}" does not fit the format Version.Year`}},props:{label:"NCCN Guideline Version",extraType:"description",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.required=!0,this.props.extraType="description",this.props.description=this.defaultDescription):(this.props.disabled=!0,this.props.required=!1,this.props.extraType="prompt",this.props.description="NCCN Guideline Version is only required when NCCN Guideline is specified.",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.qOj],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(c,m){1&c&&e._UZ(0,"input",0),2&c&&e.Q6J("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[t.Fj,t.JJ,t.oH,v.JD,Pe.Zp],encapsulation:2,changeDetection:0}),u})(),wrappers:["form-field"]}]};let h4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(uh),Pe.o7,je]}),u})();const Op=Vt(yn()),oc={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends Op{constructor(){super(...arguments),this.defaultDescription="Check this if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",this.defaultOptions={props:{hideLabel:!1,label:"FDA Regulatory Approval",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Regulatory Approval does not apply to this Assertion Type",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Ut.Ie,v.JD],changeDetection:0}),u})()}]};let dh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Ut.Wr,v.X0.forChild(oc),je]}),u})();const d2=Vt(yn()),h2={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends d2{constructor(){super(...arguments),this.defaultDescription='Select Yes if an FDA approved companion test exists for the variant and therapy associated with the Assertion (such as tests listed here).',this.defaultOptions={props:{hideLabel:!1,label:"FDA Companion Test",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,De.h)(c=>c),(0,zi.q)(1),(0,ae.t)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,ae.t)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Companion Test only applies when Regulatory Approval is selected",this.formControl.setValue(void 0))})}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(c,m){1&c&&(e.TgZ(0,"label",0),e.NdJ("ngModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e._uU(1),e.qZA()),2&c&&(e.Q6J("nzIndeterminate",m.props.indeterminate&&null==m.formControl.value)("formControl",m.formControl)("formlyAttributes",m.field),e.xp6(1),e.hij(" ",m.props.label,"\n"))},dependencies:[t.JJ,t.oH,Ut.Ie,v.JD],changeDetection:0}),u})()}]};let f2=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,Ut.Wr,v.X0.forChild(h2),je]}),u})();const ph=["optionTemplates"];function hh(u,y){if(1&u&&(e.TgZ(0,"nz-tag")(1,"strong"),e._uU(2),e.qZA()()),2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c)}}function m2(u,y){1&u&&(e.ynx(0),e.YNc(1,hh,3,1,"ng-template",null,3,e.W1O),e.BQk())}function fh(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"nz-tag",7),e.NdJ("nzOnClose",function(G){e.CHM(c);const Fe=e.oxw(2);return e.KtG(Fe.onTagClose$.next(G))}),e.TgZ(1,"strong"),e._uU(2),e.qZA()()}if(2&u){const c=e.oxw().$implicit;e.xp6(2),e.Oqu(c.nzValue)}}function yd(u,y){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const c=e.oxw().$implicit;e.xp6(1),e.hij(" ",c.nzValue," ")}}function mh(u,y){if(1&u&&(e.TgZ(0,"div",4),e.YNc(1,fh,3,1,"nz-tag",5),e.YNc(2,yd,2,1,"ng-container",6),e.qZA()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngIf",!c.props.isMultiSelect),e.xp6(1),e.Q6J("ngIf",c.props.isMultiSelect)}}const gh=Vt(yn(),lt());let wp=(()=>{class u extends gh{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Reference Build",required:!1,isMultiSelect:!1,description:"Select the human genome reference sequence from which these coordinates are obtained",placeholder:"Select Reference Build"}},this.buildEnum$=new Ge.X([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new Ge.X(this.props.placeholder),this.buildEnum$.next((0,Mo.o6)(An.JDX).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,Ct.U)(c=>c.map(m=>m)))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(ph,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:7,vars:15,consts:[[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["selectedTemplate",""],["optionTemplates",""],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(c,m){if(1&c&&(e._UZ(0,"cvc-enum-select",0),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.YNc(3,m2,3,0,"ng-container",1),e.ALo(4,"ngrxPush"),e.YNc(5,mh,3,2,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(6);e.Q6J("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.lcZ(1,9,m.placeholder$))("cvcCustomTemplate",G)("cvcOptions",e.lcZ(2,11,m.selectOption$))("cvcShowError",m.showError)("cvcDisabled",m.props.disabled),e.xp6(3),e.Q6J("ngForOf",e.lcZ(4,13,m.buildEnum$))}},dependencies:[M.sg,M.O5,Jt.j,Ke,I.fM]}),u})();const No={types:[{name:"reference-build-select",wrappers:["form-field"],component:wp},{name:"reference-build-multi-select",wrappers:["form-field"],component:wp,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let vh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(No),Jt.X,Nt.s,je,Be]}),u})();const _h=["optionTemplates"];function g2(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"em"),e._UZ(2,"span",8),e.ALo(3,"highlightTypeahead"),e.qZA(),e.BQk()),2&u){const c=e.oxw(2).$implicit,m=e.oxw().ngrxLet;e.xp6(2),e.Q6J("innerHtml",e.xi3(3,1,c.soid,m),e.oJD)}}function f4(u,y){if(1&u&&(e._UZ(0,"cvc-entity-tag",5),e.TgZ(1,"span",6),e.YNc(2,g2,4,4,"ng-container",7),e.qZA()),2&u){const c=e.oxw().$implicit,m=e.oxw().ngrxLet;e.Q6J("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",m),e.xp6(2),e.Q6J("ngIf",c.soid)}}function yh(u,y){1&u&&(e.ynx(0),e.YNc(1,f4,3,4,"ng-template",null,4,e.W1O),e.BQk())}function m4(u,y){if(1&u&&(e.ynx(0),e.YNc(1,yh,3,0,"ng-container",3),e.ALo(2,"ngrxPush"),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,c.result$))}}function g4(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div",9)(1,"cvc-entity-tag",10),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw();return e.KtG(Et.onTagClose$.next(Fe.nzValue))}),e.qZA()()}if(2&u){const c=y.$implicit,m=e.oxw();e.xp6(1),e.Q6J("cvcCacheId","VariantType:"+c.nzValue)("cvcContext",m.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",m.props.isMultiSelect?"default":"closeable")}}const Ch=Vt(yn(),Xo());let zh=(()=>{class u extends Ch{constructor(c,m,G){super(),this.taq=c,this.tq=m,this.changeDetectorRef=G,this.defaultOptions={props:{entityName:{singular:"VariantType",plural:"VariantTypes"},isMultiSelect:!1,placeholders:{default:"Search Variant Types",multiDefault:"Select VariantType(s)"},description:'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.',extraType:"prompt"}},this.placeholder$=new Ge.X(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.variantTypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.variantType}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,m){return c.map((G,Fe)=>({label:m.get(Fe)||G.name,value:G.id}))}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(An.jmY),e.Y36(An._nE),e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(c,m){if(1&c&&e.Gf(_h,5,e.Rgc),2&c){let G;e.iGM(G=e.CRH())&&(m.optionTemplates=G)}},features:[e.qOj],decls:8,vars:19,consts:[[3,"cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading","cvcOnSearch","cvcOnOpenChange","cvcOnModelChange"],[4,"ngrxLet"],["selectedTemplate",""],[4,"ngFor","ngForOf"],["optionTemplates",""],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcCacheId","cvcContext","cvcMode","cvcOnClose"]],template:function(c,m){if(1&c&&(e.TgZ(0,"cvc-entity-select",0),e.NdJ("cvcOnSearch",function(Fe){return m.onSearch$.next(Fe)})("cvcOnOpenChange",function(Fe){return m.onOpenChange$.next(Fe)})("cvcOnModelChange",function(Fe){return m.props.change&&m.props.change(m.field,Fe)}),e.ALo(1,"ngrxPush"),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.qZA(),e.YNc(5,m4,3,3,"ng-container",1),e.YNc(6,g4,2,3,"ng-template",null,2,e.W1O)),2&c){const G=e.MAs(7);e.Q6J("cvcSelectMode",m.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",G)("cvcFormControl",m.formControl)("cvcFormlyAttributes",m.field)("cvcEntityName",m.props.entityName)("cvcPlaceholder",e.lcZ(1,11,m.placeholder$))("cvcResults",e.lcZ(2,13,m.result$))("cvcOptions",e.lcZ(3,15,m.selectOption$))("cvcShowError",m.showError)("cvcLoading",e.lcZ(4,17,m.isLoading$)),e.xp6(5),e.Q6J("ngrxLet",m.onSearch$)}},dependencies:[M.sg,M.O5,I.eJ,ge.ZU,Oo,Po.J,I.fM,w.A],changeDetection:0}),u})();const Th={types:[{name:"variant-type-select",wrappers:["form-field"],component:zh,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:zh,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let v4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(Th),Mt.L,pn.sL,We.LV,co.$6,qn.Qp,Re.PV,Pe.o7,k.Jb,et.cg,$e.zf,s.U5,B.ic,ge.ZJ,Jt.X,je,Zt,Nt.s,ze.x]}),u})();var ic=a(2701);function v2(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"cvc-string-tag",5),e.NdJ("cvcOnClose",function(){const Fe=e.CHM(c).$implicit,Et=e.oxw(2);return e.KtG(Et.tagClosed(Fe))}),e.qZA()}if(2&u){const c=y.$implicit;e.Q6J("cvcMode","closeable")("cvcLabel",c)}}function Mh(u,y){if(1&u){const c=e.EpF();e.TgZ(0,"div"),e.YNc(1,v2,1,2,"cvc-string-tag",3),e.ALo(2,"ngrxPush"),e.TgZ(3,"input",4),e.NdJ("keydown.enter",function(G){e.CHM(c);const Fe=e.oxw();return e.KtG(Fe.onEnter(G))}),e.qZA()()}if(2&u){const c=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,2,c.clinvarIds$)),e.xp6(2),e.Q6J("placeholder",c.props.placeholder)}}const bh=Vt(yn(),ml);let rc=(()=>{class u extends bh{constructor(c){super(),this.cdr=c,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return"}},this.clinvarIds$=new Ge.X([]),this.values=new Set,this.showClinvarIdEntry$=new Ge.X(!1),this.selectModel=void 0,this.selectOptions=[{value:ic.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:ic.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:ic.li.Found,label:"Clinvar IDs were found for this variant"},{value:void 0,label:""}]}optionSelected(c){const m=c;this.values.clear(),this.clinvarIds$.next([]),null!=m?m==ic.li.Found?(this.showClinvarIdEntry$.next(!0),this.formControl.setValue([])):m==ic.li.NoneFound?(this.showClinvarIdEntry$.next(!1),this.formControl.setValue(["NONE FOUND"])):m==ic.li.NotApplicable&&(console.log("HERE"),this.showClinvarIdEntry$.next(!1),this.formControl.setValue(["NA"])):(this.showClinvarIdEntry$.next(!1),this.formControl.setValue([]),this.clinvarIds$.next([]))}onEnter(c){let m=c.target;m.value&&(this.values.add(m.value),m.value="");let G=Array.from(this.values);this.clinvarIds$.next(G),this.formControl.setValue(G)}tagClosed(c){this.values.delete(c);let m=Array.from(this.values);this.clinvarIds$.next(m),this.formControl.setValue(m),this.clinvarIds$.next(m)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField();const c=this.formControl.value;c&&Array.isArray(c)&&("NONE FOUND"==c[0]?this.selectModel=ic.li.NoneFound:"N/A"==c[0]?this.selectModel=ic.li.NotApplicable:(this.selectModel=ic.li.Found,c.forEach(m=>this.values.add(m)),this.showClinvarIdEntry$.next(!0)),this.clinvarIds$.next(c),this.cdr.detectChanges())}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(e.sBO))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-clinvar-input"]],features:[e.qOj],decls:4,vars:7,consts:[["nzAllowClear","",3,"nzOptions","ngModel","ngModelChange"],[4,"ngIf"],["hidden","","nz-input","",3,"formControl","formlyAttributes"],[3,"cvcMode","cvcLabel","cvcOnClose",4,"ngFor","ngForOf"],["nz-input","",3,"placeholder","keydown.enter"],[3,"cvcMode","cvcLabel","cvcOnClose"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(Fe){return m.optionSelected(Fe)}),e.qZA(),e.YNc(1,Mh,4,4,"div",1),e.ALo(2,"ngrxPush"),e._UZ(3,"input",2)),2&c&&(e.Q6J("nzOptions",m.selectOptions)("ngModel",m.selectModel),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,5,m.showClinvarIdEntry$)),e.xp6(2),e.Q6J("formControl",m.formControl)("formlyAttributes",m.field))},dependencies:[M.sg,M.O5,t.Fj,t.JJ,t.oH,t.On,v.JD,Pe.Zp,We.Vq,vl,I.fM],changeDetection:0}),u})();const s1={types:[{name:"clinvar-input",wrappers:["form-field"],component:rc},{name:"clinvar-multi-input",wrappers:["form-field"],component:rc,defaultOptions:{props:{isRepeatItem:!0}}}]};let Sh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,t.u5,v.X0.forChild(s1),He.F,Pe.o7,s.U5,We.LV,ks]}),u})();const qd={types:[{name:"cvc-cancel-button",component:(()=>{class u extends v.fS{constructor(c){super(),this.location=c}cancelClicked(){this.location.back()}}return u.\u0275fac=function(c){return new(c||u)(e.Y36(M.Ye))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-cancel-button"]],features:[e.qOj],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(c,m){1&c&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return m.cancelClicked()}),e._uU(1," Cancel\n"),e.qZA())},dependencies:[pn.ix,Wo.w,qo.dQ],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0}),u})()}]};let a1=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,v.X0.forChild(qd),pn.sL]}),u})(),Pp=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,ip,A1,ja,el,Ql,xd,ne,dn,tu,On,Fn,As,g1,_u,D1,Tu,al,jd,ea,Sp,n1,_d,d4,h4,dh,f2,vh,v4,Sh,a1]}),u})();var Ma;function Eh(u,y){if(1&u&&e._uU(0),2&u){const c=e.oxw();e.hij(" ",c.props.addFormTitle,"\n")}}const Ip=function(){return[6,6]};let c1=((Ma=class extends v.n2{constructor(){super(),this.contentTemplate$=new _o.t}ngAfterViewInit(){this.field.props&&this.field.props.addFormContent?this.contentTemplate$.next(this.field.props.addFormContent):console.error(`${this.field.id} add-entity-form wrapper failed to find parent field's props.addFormContent TemplateRef.`)}}).\u0275fac=function(y){return new(y||Ma)},Ma.\u0275cmp=e.Xpm({type:Ma,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.qOj],decls:10,vars:7,consts:[[3,"nzGutter"],["nzFlex","auto"],["fieldComponent",""],["nzFlex","20px"],["type","button","nz-button","","nzType","primary","nzSize","default","nzShape","circle","nz-popover","",3,"disabled","nzPopoverTitle","nzPopoverContent"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["titleTemplate",""]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA(),e.TgZ(4,"nz-col",3)(5,"button",4),e.ALo(6,"ngrxPush"),e._UZ(7,"span",5),e.qZA()()(),e.YNc(8,Eh,1,1,"ng-template",null,6,e.W1O)),2&y){const m=e.MAs(9);e.Q6J("nzGutter",e.DdM(6,Ip)),e.xp6(5),e.Q6J("disabled",null==c.field.props?null:c.field.props.disabled)("nzPopoverTitle",m)("nzPopoverContent",e.lcZ(6,4,c.contentTemplate$))}},dependencies:[pn.ix,Wo.w,qo.dQ,co.lU,Re.Ls,k.t3,k.SK,I.fM],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0}),Ma);c1=(0,te.gn)([(0,ae.c)()],c1);const Xd={wrappers:[{name:"add-entity-form",component:c1}]};let xh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,v.X0.forChild(Xd),pn.sL,co.$6,Re.PV,k.Jb]}),u})();const _4={wrappers:[{name:"field-grid",component:(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}ngOnInit(){this.props.grid={cols:2,...this.props.grid?this.props.grid:void 0}}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-field-grid"]],features:[e.qOj],decls:3,vars:1,consts:[[1,"field-grid",3,"ngClass"],["fieldComponent",""]],template:function(c,m){1&c&&(e.TgZ(0,"div",0),e.GkF(1,null,1),e.qZA()),2&c&&e.Q6J("ngClass","cols-"+m.props.grid.cols)},dependencies:[M.mk],styles:[".field-grid.cols-2[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.field-grid.cols-3[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.field-grid.cols-4[_ngcontent-%COMP%] formly-group:first-of-type{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}"],changeDetection:0}),u})()}]};let y4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.UX,s.U5,k.Jb,v.X0.forChild(_4)]}),u})();function C4(u,y){if(1&u&&(e.TgZ(0,"nz-col",4),e._UZ(1,"formly-field",5),e.qZA()),2&u){const c=y.$implicit;e.Q6J("nzSpan",(null==c.props?null:c.props.colSpan)||12),e.xp6(1),e.Q6J("field",c)}}function Oh(u,y){}const z4=function(){return[6,6]},T4={wrappers:[{name:"form-card",component:(()=>{class u extends v.n2{get errorState(){return this.showError?"error":""}constructor(){super()}ngOnInit(){this.props.gutterHorizontal=this.props.gutterHorizontal||8,this.props.gutterVertical=this.props.gutterVertical||8}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-card"]],features:[e.qOj],decls:5,vars:5,consts:[[3,"nzTitle","nzExtra"],[3,"nzGutter"],[3,"nzSpan",4,"ngFor","ngForOf"],["cardExtra",""],[3,"nzSpan"],[3,"field"]],template:function(c,m){if(1&c&&(e.TgZ(0,"nz-card",0)(1,"nz-row",1),e.YNc(2,C4,2,2,"nz-col",2),e.qZA()(),e.YNc(3,Oh,0,0,"ng-template",null,3,e.W1O)),2&c){const G=e.MAs(4);e.Q6J("nzTitle",m.props.title)("nzExtra",G),e.xp6(1),e.Q6J("nzGutter",e.DdM(4,z4)),e.xp6(1),e.Q6J("ngForOf",m.field.fieldGroup)}},dependencies:[M.sg,v.cw,k.t3,k.SK,In.bd]}),u})()}]};let Ph=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,t.u5,v.X0.forChild(T4),k.Jb,In.vh,Ut.Wr]}),u})();const z2={wrappers:[{name:"form-footer",component:(()=>{class u extends v.n2{ngOnInit(){}}return u.\u0275fac=function(){let y;return function(m){return(y||(y=e.n5z(u)))(m||u)}}(),u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-footer"]],features:[e.qOj],decls:4,vars:0,consts:[[1,"form-footer"],["nzSpan","24",1,"submit-col"],["fieldComponent",""]],template:function(c,m){1&c&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA()())},dependencies:[k.t3,k.SK],styles:[".form-footer[_ngcontent-%COMP%]{margin-top:1em;border-radius:8px;background-color:#f0f0f0;padding:1em}.submit-col[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0}),u})()}]};let Ss=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,k.Jb,v.X0.forChild(z2)]}),u})();var T2=a(9333),Ih=a(8125),Ah=a(9382);let Fh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Re.PV,k.Jb,In.vh,Ah.we,Ih.q6,Xi.Ph,Jt.X,ge.ZJ,L.s]}),u})(),b4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,pn.sL,io.Rt,Vn.b1]}),u})();var M2=a(553);const b2={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let S4=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(c){this._status=c,this.tagColor=c?b2[c]:"default"}get cvcFormControlStatus(){return this._status}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(c,m){1&c&&(e.TgZ(0,"nz-tag",0),e._uU(1),e.ALo(2,"lowercase"),e.qZA()),2&c&&(e.Q6J("nzColor",m.tagColor),e.xp6(1),e.hij(" ",m.cvcFormControlStatus?e.lcZ(2,2,m.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[Jt.j,M.i8]}),u})();function E4(u,y){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&u){const c=e.oxw(2).ctrl;e.xp6(1),e.hij(" ",c.value," ")}}function S2(u,y){1&u&&(e.TgZ(0,"span",8),e._uU(1," undefined "),e.qZA())}function E2(u,y){if(1&u&&(e.TgZ(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e._uU(3),e.qZA(),e.TgZ(4,"nz-list-item-meta-description"),e.YNc(5,E4,2,1,"span",5),e.YNc(6,S2,2,0,"span",6),e.qZA()(),e.TgZ(7,"nz-list-item-extra"),e._UZ(8,"cvc-form-status-tag",7),e.qZA()()),2&u){const c=e.oxw(),m=c.key,G=c.ctrl;e.xp6(3),e.hij(" ",m," "),e.xp6(2),e.Q6J("ngIf",G.value),e.xp6(1),e.Q6J("ngIf",!G.value),e.xp6(2),e.Q6J("cvcFormControlStatus",G.status)}}function Nh(u,y){}const x4=function(u,y){return{key:u,ctrl:y}};function x2(u,y){if(1&u&&e.YNc(0,Nh,0,0,"ng-template",12),2&u){const c=y.$implicit;e.oxw(3);const m=e.MAs(3);e.Q6J("ngTemplateOutlet",m)("ngTemplateOutletContext",e.WLB(2,x4,c.key,c.value))}}function D2(u,y){if(1&u&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&u){const c=e.oxw(2).key;e.xp6(1),e.Oqu(c)}}function O2(u,y){if(1&u&&(e.TgZ(0,"nz-list-item")(1,"nz-card",9)(2,"nz-list",10),e.YNc(3,x2,1,5,null,4),e.ALo(4,"keyvalue"),e.qZA()(),e.YNc(5,D2,2,1,"ng-template",null,11,e.W1O),e.qZA()),2&u){const c=e.oxw(),m=c.key,G=c.ctrl;e.xp6(1),e.Q6J("nzTitle",m),e.xp6(2),e.Q6J("ngForOf",e.lcZ(4,2,G.controls))}}function w2(u,y){if(1&u&&(e.YNc(0,E2,9,4,"nz-list-item",5),e.YNc(1,O2,7,4,"nz-list-item",5)),2&u){const c=y.ctrl;e.Q6J("ngIf",!c.controls),e.xp6(1),e.Q6J("ngIf",c.controls)}}function sc(u,y){}function Lh(u,y){if(1&u&&e.YNc(0,sc,0,0,"ng-template",12),2&u){const c=y.$implicit;e.oxw();const m=e.MAs(3);e.Q6J("ngTemplateOutlet",m)("ngTemplateOutletContext",e.WLB(2,x4,c.key,c.value))}}function P2(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-list",2),e.YNc(2,w2,2,2,"ng-template",null,3,e.W1O),e.qZA(),e.YNc(4,Lh,1,5,null,4),e.ALo(5,"keyvalue"),e.BQk()),2&u){const c=y.ngIf;e.xp6(4),e.Q6J("ngForOf",e.lcZ(5,1,c.controls))}}function D4(u,y){1&u&&e._uU(0," No AbstractFormControl provided. ")}let I2=(()=>{class u{set cvcAbstractControl(c){if(!c)throw new Error("cvc-form-debug-field-list requires valid cvcFormControl Input.");this._cvcFormControl=c,this.formControl=c}get cvcFormControl(){return this._cvcFormControl}constructor(){}ngOnInit(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noFormControl",""],["nzSize","small"],["ctrlTemplateRef",""],[4,"ngFor","ngForOf"],[4,"ngIf"],["style","padding: 0px 4px; color: white; background-color: #ccc",4,"ngIf"],[3,"cvcFormControlStatus"],[2,"padding","0px 4px","color","white","background-color","#ccc"],["nzSize","small",2,"width","100%",3,"nzTitle"],["nzSize","small",2,"padding","0"],["cardExtra",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){if(1&c&&(e.YNc(0,P2,6,3,"ng-container",0),e.YNc(1,D4,1,0,"ng-template",null,1,e.W1O)),2&c){const G=e.MAs(2);e.Q6J("ngIf",m.formControl)("ngIfElse",G)}},dependencies:[M.sg,M.O5,M.tP,In.bd,Xi.n_,Xi.AA,Xi.yi,Xi.IO,Xi.Pb,Xi.yw,S4,M.Nd],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]}),u})();var l1;function O4(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"ngx-json-viewer",9),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("json",c.watchModel)}}function Ap(u,y){if(1&u&&(e.ynx(0),e.TgZ(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e._UZ(3,"cvc-form-status-tag",12),e.qZA(),e.TgZ(4,"nz-descriptions-item",13),e._uU(5),e.qZA(),e.TgZ(6,"nz-descriptions-item",14),e._uU(7),e.qZA(),e.TgZ(8,"nz-descriptions-item",15),e._uU(9),e.qZA(),e.TgZ(10,"nz-descriptions-item",16),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",17),e._uU(13),e.qZA()(),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.pending," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.touched," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.valid," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.dirty," "),e.xp6(2),e.hij(" ",null==c.cvcForm?null:c.cvcForm.enabled," ")}}function kh(u,y){if(1&u&&(e.ynx(0),e._UZ(1,"cvc-form-debug-field-list",18),e.BQk()),2&u){const c=e.oxw();e.xp6(1),e.Q6J("cvcAbstractControl",c.cvcForm)}}function j0(u,y){1&u&&(e.ynx(0),e._uU(1," State Content "),e.BQk())}function w4(u,y){if(1&u&&(e.TgZ(0,"nz-row")(1,"nz-col",19),e._uU(2," Form Details "),e.qZA(),e.TgZ(3,"nz-col",20),e._UZ(4,"cvc-form-status-tag",12),e.qZA()()),2&u){const c=e.oxw();e.xp6(4),e.Q6J("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status)}}let Fp=((l1=class{constructor(y){this.cdr=y,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new Ge.X(this.cvcForm.value),this.statusChange$=new Ge.X(this.cvcForm.status),this.formChange$=Pi([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(y=>{this.watchModel={...this.cvcModel},this.valueChange$.next(y)}),this.cvcForm.statusChanges.subscribe(y=>{this.statusChange$.next(y)}),this.formChange$.subscribe(y=>{this.cdr.detectChanges()})]}}).\u0275fac=function(y){return new(y||l1)(e.Y36(e.sBO))},l1.\u0275cmp=e.Xpm({type:l1,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndex","nzSelectedIndexChange"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],["cardTitle",""],[3,"json"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","status"],[3,"cvcFormControlStatus"],["nzTitle","pending"],["nzTitle","touched"],["nzTitle","valid"],["nzTitle","dirty"],["nzTitle","enabled"],[3,"cvcAbstractControl"],["nzFlex","2"],["nzFlex","3",1,"form-status-col"]],template:function(y,c){if(1&y&&(e.TgZ(0,"nz-card",0)(1,"nz-card-tab")(2,"nz-tabset",1),e.NdJ("nzSelectedIndexChange",function(G){return c.selectedIndex=G}),e._UZ(3,"nz-tab",2)(4,"nz-tab",3)(5,"nz-tab",4)(6,"nz-tab",5),e.qZA()(),e.ynx(7,6),e.YNc(8,O4,2,1,"ng-container",7),e.YNc(9,Ap,14,7,"ng-container",7),e.YNc(10,kh,2,1,"ng-container",7),e.YNc(11,j0,2,0,"ng-container",7),e.BQk(),e.qZA(),e.YNc(12,w4,5,1,"ng-template",null,8,e.W1O)),2&y){const m=e.MAs(13);e.Q6J("nzTitle",m),e.xp6(2),e.Q6J("nzSelectedIndex",c.selectedIndex),e.xp6(5),e.Q6J("ngSwitch",c.selectedIndex),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",3),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2)}},dependencies:[M.RF,M.n9,k.t3,k.SK,In.bd,In._i,Ah.xH,Ah.xw,Ih.R7,Ih.uj,L.Y,I2,S4],styles:["[_nghost-%COMP%]{display:block}.form-status-col[_ngcontent-%COMP%]{text-align:right}.form-status-col[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:last-child{margin-right:0}"],changeDetection:0}),l1);var u1;function P4(u,y){if(1&u&&(e.TgZ(0,"nz-col",4),e._UZ(1,"cvc-form-debug",5),e.qZA()),2&u){const c=e.oxw();e.Q6J("nzSpan",8),e.xp6(1),e.Q6J("cvcForm",c.form)("cvcModel",c.model)}}Fp=(0,te.gn)([(0,ae.c)({arrayName:"subscriptions"})],Fp);const Rh=function(){return[8,8]};let Vh=((u1=class extends v.n2{constructor(y){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.title=this.props.title||"Form Card",this.props.submitLabel=this.props.submitLabel||"Submit",this.props.showDevPanel=!M2.N.production&&(this.props.showDevPanel||false)}}).\u0275fac=function(y){return new(y||u1)(e.Y36(e.sBO))},u1.\u0275cmp=e.Xpm({type:u1,selectors:[["cvc-form-layout-wrapper"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["fieldComponent",""],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(y,c){1&y&&(e.TgZ(0,"nz-row",0)(1,"nz-col",1),e.GkF(2,null,2),e.qZA(),e.YNc(4,P4,2,3,"nz-col",3),e.qZA()),2&y&&(e.Q6J("nzGutter",e.DdM(3,Rh)),e.xp6(1),e.Q6J("nzSpan",c.props.showDevPanel?16:24),e.xp6(3),e.Q6J("ngIf",c.props.showDevPanel))},dependencies:[M.O5,k.t3,k.SK,Fp],changeDetection:0}),u1);Vh=(0,te.gn)([(0,ae.c)({arrayName:"subscriptions"})],Vh);const A2={wrappers:[{name:"form-layout",component:Vh}]};let Bh=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,v.X0.forChild(A2),pn.sL,In.vh,Re.PV,Jt.X,Ah.we,co.$6,Xi.Ph,k.Jb,T2.h,b4,Fh,L.s]}),u})(),I4=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[M.ez,Bh,Ph,Ss,je,y4,xh]}),u})(),F2=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({providers:[{provide:v.l7,multi:!0,useFactory:S,deps:[i.gz]}],imports:[v.X0.forRoot(U),t.UX,s.U5,d.u,I4,L.s,t.UX,v.X0,d.u,s.U5,I4,Pp]}),u})()},2701:(Ot,be,a)=>{function t(A){let S={value:void 0,unset:void 0};return A&&A.trim().length>0?S.value=A.trim():S.unset=!0,S}function i(A){let S={value:void 0,unset:void 0};return void 0!==A?S.value=A:S.unset=!0,S}a.d(be,{aP:()=>Y,li:()=>v,uP:()=>i,xt:()=>t});var v=(()=>((v=v||{})[v.NotApplicable=0]="NotApplicable",v[v.NoneFound=1]="NoneFound",v[v.Found=2]="Found",v))();const Y=[{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"}]},313:(Ot,be,a)=>{a.d(be,{A4J:()=>xa,A94:()=>Ic,AIY:()=>Va,AMF:()=>Vu,AO2:()=>I,B0s:()=>au,B97:()=>lc,BQZ:()=>x,BTF:()=>Uo,BYO:()=>ua,Bk6:()=>Nl,Bo4:()=>kc,Cp0:()=>F,D9L:()=>uu,Del:()=>G1,DkJ:()=>Ds,DzV:()=>b1,E1C:()=>T1,E2B:()=>Ba,E8d:()=>S,EFm:()=>vs,EH_:()=>Rs,EwB:()=>lu,F1Y:()=>Ra,F3s:()=>bn,F4e:()=>Ua,FB1:()=>Ye,FJi:()=>gt,FNv:()=>he,FOU:()=>ka,Fvz:()=>ue,GYx:()=>tl,Gbq:()=>Ao,Gnp:()=>$u,HUC:()=>_n,Hmr:()=>Zc,HwR:()=>Eu,IP1:()=>As,IRu:()=>Nt,IZ6:()=>hn,JDX:()=>Tt,Kk:()=>Yt,Kmw:()=>Rr,L5n:()=>ns,L8L:()=>to,LHC:()=>ja,LLl:()=>Xc,LiH:()=>Bs,Lr0:()=>Ka,MCG:()=>Oc,MNv:()=>ku,MPi:()=>_l,MYm:()=>Zs,Mgx:()=>N,MsG:()=>re,N$2:()=>Sc,NQC:()=>It,O2u:()=>Cu,OHm:()=>ds,OIL:()=>ye,OfU:()=>V,P_b:()=>Ai,Pm:()=>Os,QVn:()=>yl,Qtd:()=>Bl,Qzn:()=>ir,R8F:()=>Ha,R8w:()=>e,RTy:()=>R,RYL:()=>la,Rdc:()=>ea,SAN:()=>Ci,SrV:()=>Ft,Sx0:()=>Ce,T1I:()=>du,TNk:()=>pa,TbJ:()=>On,Tg0:()=>Vs,TiL:()=>tt,Tq1:()=>an,Tt7:()=>Jc,UIR:()=>gi,UWf:()=>Js,VGG:()=>jo,VZq:()=>uc,WFw:()=>y1,WGV:()=>j1,WOS:()=>Il,WRV:()=>Fr,X5f:()=>Mr,XQi:()=>Pu,Xft:()=>gs,Y6e:()=>hl,YMi:()=>ho,Y_K:()=>wu,Ybm:()=>uo,ZYZ:()=>xi,Zo2:()=>Qr,_3P:()=>L,_Wm:()=>A,_jb:()=>$i,_nE:()=>Pc,aC3:()=>Ec,bgg:()=>fs,c$m:()=>qc,cCu:()=>U1,cEv:()=>Nr,cIw:()=>xc,cMj:()=>ys,ce2:()=>Io,czh:()=>O1,d4o:()=>He,dDn:()=>_s,dGO:()=>xu,da2:()=>fr,db2:()=>Z1,eDl:()=>ml,eJ3:()=>vu,eY8:()=>Fi,ejK:()=>da,enw:()=>or,fow:()=>Me,fwG:()=>wn,g0X:()=>Ll,ghc:()=>si,h01:()=>U,hVB:()=>J1,h_Y:()=>aa,huM:()=>Pe,i44:()=>Jt,iGM:()=>wa,iJT:()=>ec,iST:()=>hi,io:()=>Qs,iwm:()=>v,jMx:()=>zo,jmY:()=>Nu,jw9:()=>et,k7O:()=>Ve,kQf:()=>ps,kQl:()=>Re,kqt:()=>P,l$X:()=>Xs,l4w:()=>Cc,lYz:()=>kt,lcA:()=>us,ld2:()=>$r,m$d:()=>Yu,m55:()=>O,mII:()=>Ia,mdl:()=>s,mki:()=>w1,mpB:()=>Ut,nSb:()=>xl,nnL:()=>mr,o71:()=>je,oRL:()=>me,olA:()=>Mu,otH:()=>Ar,pHu:()=>$1,pP7:()=>Be,pR8:()=>ll,q1D:()=>qr,q8c:()=>Gn,q9q:()=>Us,qf4:()=>dc,qgP:()=>V1,rJ8:()=>ct,rZD:()=>_t,rzy:()=>ls,sA8:()=>I1,sBY:()=>Ac,sLD:()=>Rl,sfv:()=>de,sjj:()=>El,tI$:()=>ri,tI1:()=>ge,tJ6:()=>sr,tWC:()=>pl,td:()=>Wi,ti:()=>Ea,tji:()=>sa,tw_:()=>pc,u4i:()=>Q,uBv:()=>Y,ubO:()=>Hr,vMt:()=>hc,vjc:()=>P1,vv6:()=>C1,vxe:()=>gu,vz2:()=>go,wJ2:()=>k,wRZ:()=>fu,wbP:()=>Ns,wg3:()=>Lu,wkr:()=>Xt,wpb:()=>We,xlL:()=>Oe,y1h:()=>Z,yic:()=>rn,yqR:()=>Di,z8D:()=>B1,zOE:()=>N1,z_7:()=>k1,zpu:()=>Ou,zwS:()=>kr});var t=a(9111),i=a(5879),v=(()=>((v=v||{}).Na="NA",v.TierIii="TIER_III",v.TierIiLevelC="TIER_II_LEVEL_C",v.TierIiLevelD="TIER_II_LEVEL_D",v.TierIv="TIER_IV",v.TierILevelA="TIER_I_LEVEL_A",v.TierILevelB="TIER_I_LEVEL_B",v))(),s=(()=>((s=s||{}).DoesNotSupport="DOES_NOT_SUPPORT",s.Supports="SUPPORTS",s))(),L=(()=>((L=L||{}).AdverseResponse="ADVERSE_RESPONSE",L.Benign="BENIGN",L.BetterOutcome="BETTER_OUTCOME",L.LikelyBenign="LIKELY_BENIGN",L.LikelyOncogenic="LIKELY_ONCOGENIC",L.LikelyPathogenic="LIKELY_PATHOGENIC",L.Na="NA",L.Negative="NEGATIVE",L.Oncogenic="ONCOGENIC",L.Pathogenic="PATHOGENIC",L.PoorOutcome="POOR_OUTCOME",L.Positive="POSITIVE",L.ReducedSensitivity="REDUCED_SENSITIVITY",L.Resistance="RESISTANCE",L.Sensitivityresponse="SENSITIVITYRESPONSE",L.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",L))(),Q=(()=>((Q=Q||{}).AmpLevel="AMP_LEVEL",Q.AssertionDirection="ASSERTION_DIRECTION",Q.AssertionType="ASSERTION_TYPE",Q.DiseaseName="DISEASE_NAME",Q.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",Q.Id="ID",Q.Significance="SIGNIFICANCE",Q.Status="STATUS",Q.Summary="SUMMARY",Q.TherapyName="THERAPY_NAME",Q))(),Y=(()=>((Y=Y||{}).Diagnostic="DIAGNOSTIC",Y.Oncogenic="ONCOGENIC",Y.Predictive="PREDICTIVE",Y.Predisposing="PREDISPOSING",Y.Prognostic="PROGNOSTIC",Y))(),A=(()=>((A=A||{}).And="AND",A.Or="OR",A))(),S=(()=>((S=S||{}).EvidenceItemCount="EVIDENCE_ITEM_COUNT",S.Name="NAME",S.NctId="NCT_ID",S.SourceCount="SOURCE_COUNT",S))(),N=(()=>((N=N||{}).Conflict="CONFLICT",N.Expired="EXPIRED",N.Missing="MISSING",N.Valid="VALID",N))(),V=(()=>((V=V||{}).Assertion="ASSERTION",V.EvidenceItem="EVIDENCE_ITEM",V.Gene="GENE",V.MolecularProfile="MOLECULAR_PROFILE",V.Source="SOURCE",V.Variant="VARIANT",V.VariantGroup="VARIANT_GROUP",V))(),U=(()=>((U=U||{}).Created="CREATED",U.LastModified="LAST_MODIFIED",U))(),e=(()=>((e=e||{}).AssertionCount="ASSERTION_COUNT",e.Doid="DOID",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneCount="GENE_COUNT",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e))(),I=(()=>((I=I||{}).Accepted="ACCEPTED",I.AssertionAccepted="ASSERTION_ACCEPTED",I.AssertionRejected="ASSERTION_REJECTED",I.AssertionReverted="ASSERTION_REVERTED",I.AssertionSubmitted="ASSERTION_SUBMITTED",I.Commented="COMMENTED",I.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",I.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",I.DeprecatedVariant="DEPRECATED_VARIANT",I.Flagged="FLAGGED",I.FlagResolved="FLAG_RESOLVED",I.PublicationSuggested="PUBLICATION_SUGGESTED",I.Rejected="REJECTED",I.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",I.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",I.Reverted="REVERTED",I.RevisionAccepted="REVISION_ACCEPTED",I.RevisionRejected="REVISION_REJECTED",I.RevisionSuggested="REVISION_SUGGESTED",I.RevisionSuperseded="REVISION_SUPERSEDED",I.Submitted="SUBMITTED",I))(),k=(()=>((k=k||{}).Organization="ORGANIZATION",k.Subject="SUBJECT",k.Unscoped="UNSCOPED",k.User="USER",k))(),ge=(()=>((ge=ge||{}).DoesNotSupport="DOES_NOT_SUPPORT",ge.Na="NA",ge.Supports="SUPPORTS",ge))(),Ce=(()=>((Ce=Ce||{}).A="A",Ce.B="B",Ce.C="C",Ce.D="D",Ce.E="E",Ce))(),Z=(()=>((Z=Z||{}).AdverseResponse="ADVERSE_RESPONSE",Z.Benign="BENIGN",Z.BetterOutcome="BETTER_OUTCOME",Z.DominantNegative="DOMINANT_NEGATIVE",Z.GainOfFunction="GAIN_OF_FUNCTION",Z.LikelyBenign="LIKELY_BENIGN",Z.LikelyPathogenic="LIKELY_PATHOGENIC",Z.LossOfFunction="LOSS_OF_FUNCTION",Z.Na="NA",Z.Negative="NEGATIVE",Z.Neomorphic="NEOMORPHIC",Z.Oncogenicity="ONCOGENICITY",Z.Pathogenic="PATHOGENIC",Z.PoorOutcome="POOR_OUTCOME",Z.Positive="POSITIVE",Z.Predisposition="PREDISPOSITION",Z.Protectiveness="PROTECTIVENESS",Z.ReducedSensitivity="REDUCED_SENSITIVITY",Z.Resistance="RESISTANCE",Z.Sensitivityresponse="SENSITIVITYRESPONSE",Z.UnalteredFunction="UNALTERED_FUNCTION",Z.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",Z.Unknown="UNKNOWN",Z))(),F=(()=>((F=F||{}).Description="DESCRIPTION",F.DiseaseName="DISEASE_NAME",F.EvidenceDirection="EVIDENCE_DIRECTION",F.EvidenceLevel="EVIDENCE_LEVEL",F.EvidenceRating="EVIDENCE_RATING",F.EvidenceType="EVIDENCE_TYPE",F.Id="ID",F.Significance="SIGNIFICANCE",F.Status="STATUS",F.TherapyName="THERAPY_NAME",F.VariantOrigin="VARIANT_ORIGIN",F))(),R=(()=>((R=R||{}).Accepted="ACCEPTED",R.Rejected="REJECTED",R.Submitted="SUBMITTED",R))(),O=(()=>((O=O||{}).Accepted="ACCEPTED",O.All="ALL",O.Rejected="REJECTED",O.Submitted="SUBMITTED",O))(),P=(()=>((P=P||{}).Diagnostic="DIAGNOSTIC",P.Functional="FUNCTIONAL",P.Oncogenic="ONCOGENIC",P.Predictive="PREDICTIVE",P.Predisposing="PREDISPOSING",P.Prognostic="PROGNOSTIC",P))(),x=(()=>((x=x||{}).Open="OPEN",x.Resolved="RESOLVED",x))(),de=(()=>((de=de||{}).Assertion="ASSERTION",de.EvidenceItem="EVIDENCE_ITEM",de.Gene="GENE",de.MolecularProfile="MOLECULAR_PROFILE",de.Variant="VARIANT",de.VariantGroup="VARIANT_GROUP",de))(),ue=(()=>((ue=ue||{}).AssertionCount="assertionCount",ue.DiseaseName="diseaseName",ue.EntrezSymbol="entrezSymbol",ue.EvidenceItemCount="evidenceItemCount",ue.GeneAlias="geneAlias",ue.MolecularProfileCount="molecularProfileCount",ue.TherapyName="therapyName",ue.VariantCount="variantCount",ue))(),me=(()=>((me=me||{}).Assertion="ASSERTION",me.EvidenceItem="EVIDENCE_ITEM",me.Gene="GENE",me.MolecularProfile="MOLECULAR_PROFILE",me.Variant="VARIANT",me.VariantGroup="VARIANT_GROUP",me))(),re=(()=>((re=re||{}).All="ALL",re.WithAccepted="WITH_ACCEPTED",re.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",re.WithSubmitted="WITH_SUBMITTED",re))(),he=(()=>((he=he||{}).AssertionCount="assertionCount",he.EvidenceItemCount="evidenceItemCount",he.MolecularProfileScore="molecularProfileScore",he.VariantCount="variantCount",he))(),Me=(()=>((Me=Me||{}).Mention="MENTION",Me.Subscription="SUBSCRIPTION",Me))(),Oe=(()=>((Oe=Oe||{}).Id="ID",Oe.Name="NAME",Oe))(),kt=(()=>((kt=kt||{}).AssertionCount="ASSERTION_COUNT",kt.EvidenceItemCount="EVIDENCE_ITEM_COUNT",kt.HpoId="HPO_ID",kt.Name="NAME",kt))(),It=(()=>((It=It||{}).Read="READ",It.Unread="UNREAD",It))(),Tt=(()=>((Tt=Tt||{}).Grch37="GRCH37",Tt.Grch38="GRCH38",Tt.Ncbi36="NCBI36",Tt))(),gt=(()=>((gt=gt||{}).Accepted="ACCEPTED",gt.New="NEW",gt.Rejected="REJECTED",gt.Superseded="SUPERSEDED",gt))(),_t=(()=>((_t=_t||{}).Assertion="ASSERTION",_t.EvidenceItem="EVIDENCE_ITEM",_t.Gene="GENE",_t.MolecularProfile="MOLECULAR_PROFILE",_t.Revision="REVISION",_t.Variant="VARIANT",_t.VariantGroup="VARIANT_GROUP",_t))(),Ft=(()=>((Ft=Ft||{}).Asc="ASC",Ft.Desc="DESC",Ft))(),rn=(()=>((rn=rn||{}).Asco="ASCO",rn.Ash="ASH",rn.Pubmed="PUBMED",rn))(),bn=(()=>((bn=bn||{}).Curated="CURATED",bn.New="NEW",bn.Rejected="REJECTED",bn))(),et=(()=>((et=et||{}).Citation="CITATION",et.CitationId="CITATION_ID",et.CreatedAt="CREATED_AT",et.DiseaseName="DISEASE_NAME",et.SourceType="SOURCE_TYPE",et.Submitter="SUBMITTER",et))(),Re=(()=>((Re=Re||{}).Authors="AUTHORS",Re.CitationId="CITATION_ID",Re.EvidenceCount="EVIDENCE_COUNT",Re.Journal="JOURNAL",Re.Name="NAME",Re.SourceType="SOURCE_TYPE",Re.SuggestionCount="SUGGESTION_COUNT",Re.Year="YEAR",Re))(),je=(()=>((je=je||{}).Assertion="ASSERTION",je.EvidenceItem="EVIDENCE_ITEM",je.Gene="GENE",je.MolecularProfile="MOLECULAR_PROFILE",je.Revision="REVISION",je.SourceSuggestion="SOURCE_SUGGESTION",je.Variant="VARIANT",je.VariantGroup="VARIANT_GROUP",je))(),Ut=(()=>((Ut=Ut||{}).Assertion="ASSERTION",Ut.EvidenceItem="EVIDENCE_ITEM",Ut.Gene="GENE",Ut.MolecularProfile="MOLECULAR_PROFILE",Ut.Revision="REVISION",Ut.Role="ROLE",Ut.Variant="VARIANT",Ut.VariantGroup="VARIANT_GROUP",Ut))(),Xt=(()=>((Xt=Xt||{}).Combination="COMBINATION",Xt.Sequential="SEQUENTIAL",Xt.Substitutes="SUBSTITUTES",Xt))(),_n=(()=>((_n=_n||{}).AssertionCount="ASSERTION_COUNT",_n.EvidenceItemCount="EVIDENCE_ITEM_COUNT",_n.Name="NAME",_n.NcitId="NCIT_ID",_n))(),On=(()=>((On=On||{}).AllTime="ALL_TIME",On.LastMonth="LAST_MONTH",On.LastWeek="LAST_WEEK",On.LastYear="LAST_YEAR",On))(),Jt=(()=>((Jt=Jt||{}).Admin="ADMIN",Jt.Curator="CURATOR",Jt.Editor="EDITOR",Jt))(),Nt=(()=>((Nt=Nt||{}).Id="ID",Nt.LastAction="LAST_ACTION",Nt.Name="NAME",Nt.Role="ROLE",Nt))(),Ye=(()=>((Ye=Ye||{}).EvidenceItemCount="EVIDENCE_ITEM_COUNT",Ye.GeneNames="GENE_NAMES",Ye.Name="NAME",Ye.VariantCount="VARIANT_COUNT",Ye.VariantNames="VARIANT_NAMES",Ye))(),He=(()=>((He=He||{}).CoordinateEnd="COORDINATE_END",He.CoordinateStart="COORDINATE_START",He.Name="NAME",He))(),Pe=(()=>((Pe=Pe||{}).Combined="COMBINED",Pe.CommonGermline="COMMON_GERMLINE",Pe.Na="NA",Pe.RareGermline="RARE_GERMLINE",Pe.Somatic="SOMATIC",Pe.Unknown="UNKNOWN",Pe))(),We=(()=>((We=We||{}).Name="NAME",We.Soid="SOID",We.VariantCount="VARIANT_COUNT",We))(),Be=(()=>((Be=Be||{}).DiseaseName="diseaseName",Be.EntrezSymbol="entrezSymbol",Be.TherapyName="therapyName",Be.VariantName="variantName",Be))();const xe=t.Ps` - fragment MolecularProfileParsedName on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Gene { - id - name - link - } - ... on Variant { - id - name - link - deprecated - } -} - `,te=t.Ps` - fragment assertionPopover on Assertion { - id - name - status - summary - assertionType - assertionDirection - significance - variantOrigin - ampLevel - acmgCodes { - code - description - } - clingenCodes { - code - description - } - nccnGuideline { - id - name - } - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - therapies { - id - name - link - } - therapyInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${xe}`,ae=t.Ps` - fragment AssertionBrowseFields on Assertion { - id - name - link - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - disease { - id - name - link - } - therapies { - id - name - link - } - therapyInteractionType - summary - assertionType - assertionDirection - significance - ampLevel - evidenceItemsCount - status - flagged -} - ${xe}`,De=t.Ps` - fragment clinicalTrialPopover on BrowseClinicalTrial { - id - name - nctId - url - sourceCount - evidenceCount -} - `,Ge=t.Ps` - fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { - id - name - nctId - evidenceCount - sourceCount - link -} - `,Ct=t.Ps` - fragment commentPopover on Comment { - id - name - createdAt - title - comment - commenter { - id - displayName - role - } - commentable { - id - name - link - __typename - } -} - `,sn=t.Ps` - fragment BrowseDiseaseRowFields on BrowseDisease { - id - name - doid - diseaseUrl - geneNames - assertionCount - evidenceItemCount - variantCount - geneCount - link -} - `,yn=t.Ps` - fragment eventFeedNode on Event { - id - action - createdAt - organization { - id - name - profileImagePath(size: 32) - } - originatingUser { - id - username - displayName - role - profileImagePath(size: 32) - } - subject { - name - id - link - ... on Source { - citation - sourceType - } - ... on EvidenceItem { - status - } - ... on Assertion { - status - } - ... on Revision { - revisionSetId - } - ... on Variant { - deprecated - } - ... on MolecularProfile { - deprecated - } - __typename - } - originatingObject { - id - name - link - __typename - ... on Revision { - id - revisionSetId - } - ... on Comment { - id - } - ... on Flag { - id - } - } -} - `,st=t.Ps` - fragment eventFeed on EventConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - eventTypes @include(if: $showFilters) - unfilteredCount - uniqueParticipants @include(if: $showFilters) { - id - displayName - role - profileImagePath(size: 32) - } - participatingOrganizations @include(if: $showFilters) { - id - name - profileImagePath(size: 32) - } - edges { - cursor - node { - ...eventFeedNode - } - } -} - ${yn}`,it=t.Ps` - fragment evidencePopover on EvidenceItem { - id - name - status - description - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - } - therapyInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - evidenceRating - molecularProfile { - id - name - link - deprecated - parsedName { - ...MolecularProfileParsedName - } - } - source { - id - citation - sourceType - displayType - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${xe}`,lt=t.Ps` - fragment EvidenceGridFields on EvidenceItem { - id - name - link - disease { - id - name - link - } - therapies { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${xe}`,Pt=t.Ps` - fragment flag on Flag { - id - state - createdAt - resolvedAt - flaggable { - id - name - link - } - flaggingUser { - id - displayName - role - profileImagePath(size: 32) - } - resolvingUser { - id - displayName - role - profileImagePath(size: 32) - } - openComment { - __typename - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - resolutionComment { - __typename - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } -} - `,wt=t.Ps` - fragment flagList on FlagConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - totalCount - unfilteredCountForSubject - uniqueFlaggingUsers { - username - id - profileImagePath(size: 32) - } - uniqueResolvingUsers { - username - id - profileImagePath(size: 32) - } - edges { - node { - ...flag - } - } -} - ${Pt}`,Vt=t.Ps` - fragment flagPopover on Flag { - id - name - state - flaggingUser { - id - displayName - role - } - flaggable { - id - link - name - } - createdAt - openComment { - comment - } -} - `,jt=t.Ps` - fragment genePopover on Gene { - id - name - officialName - geneAliases - variants { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,Ke=t.Ps` - fragment BrowseGenesFields on BrowseGene { - id - entrezId - name - link - flagged - geneAliases - diseases { - name - id - link - } - therapies { - name - id - link - } - variantCount - evidenceItemCount - assertionCount - molecularProfileCount -} - `,K=t.Ps` - fragment QuicksearchResult on SearchResult { - id - resultType - name - matchingText -} - `,w=t.Ps` - fragment molecularProfilePopoverFields on MolecularProfile { - id - name - parsedName { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Gene { - id - name - link - } - ... on Variant { - id - name - deprecated - link - } - } - molecularProfileAliases - evidenceItems { - totalCount - } - assertions { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,J=t.Ps` - fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { - id - name - evidenceItemCount - molecularProfileScore - assertionCount - variantCount - aliases { - name - } - genes { - id - name - link - } - variants { - id - name - link - } - therapies { - id - name - link - } - diseases { - id - name - link - } - link -} - `,Te=t.Ps` - fragment menuMolecularProfile on MolecularProfile { - id - name - link - flagged -} - `,zt=t.Ps` - fragment LeaderboardOrganizationFields on LeaderboardOrganization { - id - name - actionCount - rank - profileImagePath(size: 64) -} - `,nt=t.Ps` - fragment orgPopover on Organization { - id - profileImagePath(size: 64) - name - description - url -} - `,qe=t.Ps` - fragment OrganizationBrowseTableRowFields on Organization { - id - name - description - url - memberCount - eventCount - subGroups { - name - id - } - mostRecentEvent { - createdAt - } -} - `,rt=t.Ps` - fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { - id - name - hpoId - url - assertionCount - evidenceCount - link -} - `,Rt=t.Ps` - fragment validationError on FieldValidationError { - fieldName - error -} - `,St=t.Ps` - fragment revisionPopover on Revision { - id - name - link - status - revisor { - id - displayName - role - } - subject { - id - link - name - } - createdAt - linkoutData { - name - } - creationComment { - comment - } -} - `,gn=t.Ps` - fragment revision on Revision { - id - revisionSetId - createdAt - resolvedAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - currentObjects { - id - displayName - displayType - entityType - link - deleted - } - addedObjects { - id - displayName - displayType - entityType - link - deleted - } - removedObjects { - id - displayName - displayType - entityType - link - deleted - } - keptObjects { - id - displayName - displayType - entityType - link - deleted - } - suggestedObjects { - id - displayName - displayType - entityType - link - deleted - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - displayName - role - } - resolver { - id - displayName - role - } - creationComment { - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - resolutionComment { - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - status -} - `,Ze=t.Ps` - fragment ContributorFields on ContributingUser { - user { - id - profileImagePath(size: 12) - } - uniqueActions { - action - count - } - lastActionDate - totalActionCount -} - `,ut=t.Ps` - fragment subscriptionId on Subscription { - id - __typename -} - `,ce=t.Ps` - fragment TimepointCount on TimePointCounts { - allTime - newThisMonth - newThisWeek - newThisYear -} - `,_e=t.Ps` - fragment BrowseSourceSuggestionRowFields on SourceSuggestion { - id - molecularProfile { - id - name - link - } - disease { - id - name - link - } - source { - link - id - citation - citationId - sourceType - sourceUrl - displayType - } - user { - id - displayName - role - profileImagePath(size: 32) - } - initialComment - status - reason - createdAt -} - `,mt=t.Ps` - fragment sourcePopover on SourcePopover { - id - name - evidenceItemCount - citation - citationId - displayType - sourceUrl - clinicalTrials { - id - nctId - link - } -} - `,Ae=t.Ps` - fragment BrowseSourceRowFields on BrowseSource { - id - authors - citationId - evidenceItemCount - sourceSuggestionCount - journal - name - publicationYear - sourceType - citation - displayType - link - openAccess -} - `,at=t.Ps` - fragment TherapyBrowseTableRowFields on BrowseTherapy { - id - name - ncitId - therapyUrl - assertionCount - evidenceCount - link -} - `,Ht=t.Ps` - fragment LeaderboardUserFields on LeaderboardUser { - id - name - displayName - actionCount - role - rank - profileImagePath(size: 64) -} - `,un=t.Ps` - fragment popoverUser on User { - id - profileImagePath(size: 64) - displayName - bio - role - organizations { - id - name - } -} - `,Lt=t.Ps` - fragment UserBrowseTableRowFields on User { - id - name - displayName - organizations { - id - name - } - role - statsHash { - submittedEvidenceItems - revisions - } - profileImagePath(size: 64) - mostRecentActionTimestamp -} - `,dt=t.Ps` - fragment variantGroupPopoverFields on VariantGroup { - id - name - description - variants { - edges { - node { - id - name - link - } - } - } - sources { - id - citation - sourceType - link - } -} - `,ft=t.Ps` - fragment BrowseVariantGroupRowFields on BrowseVariantGroup { - id - name - link - geneNames - variantNames - variantCount - evidenceItemCount -} - `,ne=t.Ps` - fragment variantTypePopover on VariantTypePopover { - id - name - url - soid - variantCount -} - `,B=t.Ps` - fragment VariantTypeBrowseTableRowFields on BrowseVariantType { - id - name - soid - url - variantCount - link -} - `,ze=t.Ps` - fragment CoordinatesCardFields on Variant { - id - name - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases -} - `,$e=t.Ps` - fragment variantPopoverFields on Variant { - id - name - variantAliases - alleleRegistryId - gene { - id - name - link - } - molecularProfiles { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,Mt=t.Ps` - fragment menuVariantType on BrowseVariantType { - id - name - link -} - `,on=t.Ps` - fragment menuVariant on Variant { - id - name - link - flagged -} - `,Zt=t.Ps` - fragment BrowseVariantsFields on BrowseVariant { - id - name - link - geneId - geneName - geneLink - diseases { - id - name - link - } - therapies { - id - name - link - } - aliases { - name - } - variantTypes { - id - name - link - } -} - `,Wn=t.Ps` - fragment RevisableAssertionFields on Assertion { - id - summary - description - molecularProfile { - id - name - link - } - variantOrigin - significance - disease { - id - doid - name - displayName - link - } - therapies { - id - ncitId - name - link - } - therapyInteractionType - assertionDirection - assertionType - phenotypes { - id - hpoId - name - } - ampLevel - acmgCodes { - id - name - code - description - tooltip - } - clingenCodes { - id - code - description - name - tooltip - exclusive - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - fdaCompanionTest - evidenceItems { - id - name - link - status - } -} - `,pn=t.Ps` - fragment previewComment on CommentBodySegment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - status - deprecated - __typename - } - ... on CommentTextSegment { - text - __typename - } - ... on User { - id - displayName - role - __typename - } -} - `,qn=t.Ps` - fragment previewMpName on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Gene { - id - name - link - } - ... on Variant { - id - name - link - } -} - `,co=t.Ps` - fragment AddDiseaseFields on AddDiseasePayload { - new - disease { - id - name - displayName - } -} - `,_o=t.Ps` - fragment GeneTypeaheadFields on Gene { - id - name - geneAliases - entrezId -} - `,Yo=t.Ps` - fragment SourceTypeaheadResult on Source { - id - name - citation - citationId - sourceType -} - `,Ko=t.Ps` - fragment SourceStubFields on SourceStub { - id - citationId - sourceType -} - `,mo=(t.Ps` - fragment SourceTypeaheadFields on Source { - id - name - citation - citationId - sourceType -} - `,t.Ps` - fragment AddTherapyFields on AddTherapyPayload { - new - therapy { - id - ncitId - name - } -} - `),Xn=t.Ps` - fragment VariantTypeaheadFields on Variant { - id - name - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } -} - `,di=t.Ps` - fragment AddVariantFields on AddVariantPayload { - clientMutationId - new - variant { - id - name - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } - } -} - `,wo=(t.Ps` - fragment VariantSelectFields on Variant { - id - name - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } -} - `,t.Ps` - fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { - id - name - link - molecularProfileAliases -} - `),So=t.Ps` - fragment DiseaseSelectTypeaheadFields on Disease { - id - name - link - displayName - doid - diseaseAliases -} - `,Eo=t.Ps` - fragment TherapySelectTypeaheadFields on Therapy { - id - name - link - ncitId - therapyAliases -} - `,Pi=t.Ps` - fragment PhenotypeSelectTypeaheadFields on Phenotype { - id - name - link - hpoId -} - `,Xo=t.Ps` - fragment SourceSelectTypeaheadFields on Source { - id - name - link - citation - citationId - sourceType -} - `,zi=t.Ps` - fragment RevisableEvidenceFields on EvidenceItem { - id - molecularProfile { - ...MolecularProfileSelectTypeaheadFields - } - variantOrigin - description - significance - disease { - ...DiseaseSelectTypeaheadFields - } - therapies { - ...TherapySelectTypeaheadFields - } - therapyInteractionType - evidenceDirection - evidenceLevel - evidenceType - phenotypes { - ...PhenotypeSelectTypeaheadFields - } - evidenceRating - source { - ...SourceSelectTypeaheadFields - } -} - ${wo} -${So} -${Eo} -${Pi} -${Xo}`,An=t.Ps` - fragment SubmittableEvidenceFields on EvidenceItem { - id - description - variantOrigin - evidenceType - significance - evidenceLevel - evidenceDirection - evidenceRating - therapyInteractionType - source { - id - citation - sourceType - } - phenotypes { - id - name - } - therapies { - id - name - } - disease { - id - name - } -} - `,bi=t.Ps` - fragment RevisableGeneFields on Gene { - id - description - sources { - id - sourceType - citation - citationId - } -} - `,Si=t.Ps` - fragment RevisableMolecularProfileFields on MolecularProfile { - id - description - sources { - id - sourceType - citation - citationId - } - molecularProfileAliases - isComplex -} - `,tr=t.Ps` - fragment SubmittableVariantGroupFields on VariantGroup { - id - name - description - variants(first: 50) { - nodes { - id - name - link - singleVariantMolecularProfile { - id - name - link - } - } - } - sources { - id - link - citation - sourceType - } -} - `,Gi=t.Ps` - fragment RevisableEvidenceFields2 on EvidenceItem { - id - molecularProfile { - ...MolecularProfileSelectTypeaheadFields - } - variantOrigin - description - significance - disease { - ...DiseaseSelectTypeaheadFields - } - therapies { - ...TherapySelectTypeaheadFields - } - therapyInteractionType - evidenceDirection - evidenceLevel - evidenceType - phenotypes { - ...PhenotypeSelectTypeaheadFields - } - evidenceRating - source { - ...SourceSelectTypeaheadFields - } -} - ${wo} -${So} -${Eo} -${Pi} -${Xo}`,Or=t.Ps` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop -} - `,Ei=t.Ps` - fragment RevisableVariantFields on Variant { - id - name - gene { - id - name - } - variantAliases - alleleRegistryId - clinvarIds - ensemblVersion - hgvsDescriptions - referenceBuild - variantTypes { - id - name - soid - } - primaryCoordinates { - ...CoordinateFields - } - secondaryCoordinates { - ...CoordinateFields - } - referenceBases - variantBases -} - ${Or}`,vr=t.Ps` - fragment VariantGroupRevisableFields2 on VariantGroup { - id - name - description - variants { - totalCount - edges { - cursor - node { - id - name - link - } - } - nodes { - id - name - link - } - } - sources { - id - name - link - } -} - `,Qi=t.Ps` - fragment AcmgCodeSelectTypeaheadFields on AcmgCode { - id - code - name - description - tooltip -} - `,ur=t.Ps` - fragment ClingenCodeSelectTypeaheadFields on ClingenCode { - id - code - name - description - tooltip - exclusive -} - `,dr=t.Ps` - fragment QuickAddDiseaseFields on AddDiseasePayload { - new - disease { - ...DiseaseSelectTypeaheadFields - } -} - ${So}`,lo=t.Ps` - fragment EvidenceManagerFields on EvidenceItem { - id - name - link - disease { - id - name - link - } - therapies { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${xe}`,Oo=t.Ps` - fragment EvidenceSelectTypeaheadFields on EvidenceItem { - id - name - link - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin - status -} - `,Po=t.Ps` - fragment GeneSelectTypeaheadFields on Gene { - id - entrezId - name - geneAliases - link -} - `,Jo=t.Ps` - fragment PreviewMpName2 on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Gene { - id - name - link - } - ... on Variant { - id - name - link - } -} - `,Ro=t.Ps` - fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { - id - name -} - `,Wo=t.Ps` - fragment QuickAddTherapyFields on AddTherapyPayload { - new - therapy { - ...TherapySelectTypeaheadFields - } -} - ${Eo}`,Ti=(t.Ps` - fragment VariantManagerFields on BrowseVariant { - id - name - link - geneId - geneName - geneLink - diseases { - id - name - link - } - therapies { - id - name - link - } - aliases { - name - } -} - `,t.Ps` - fragment VariantSelectTypeaheadFields on Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } -} - `),Hi=(t.Ps` - fragment QuickAddVariantFields on AddVariantPayload { - clientMutationId - new - variant { - ...VariantSelectTypeaheadFields - } -} - ${Ti}`,t.Ps` - fragment VariantTypeSelectTypeaheadFields on VariantType { - id - name - link - soid -} - `),ei=t.Ps` - fragment AssertionDetailFields on Assertion { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Yn=t.Ps` - fragment AssertionSummaryFields on Assertion { - id - name - summary - description - status - variantOrigin - disease { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - assertionType - assertionDirection - significance - therapies { - ncitId - name - link - id - } - phenotypes { - id - name - link - } - therapyInteractionType - ampLevel - acmgCodes { - code - description - } - clingenCodes { - id - code - description - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${xe}`,so=t.Ps` - fragment MyDiseaseInfoFields on MyDiseaseInfo { - diseaseOntologyExactSynonyms - diseaseOntologyRelatedSynonyms - mesh - icdo - icd10 - ncit - omim - doDef - doDefCitations - mondoDef -} - `,Ue=t.Ps` - fragment DiseasesSummaryFields on Disease { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - myDiseaseInfo { - ...MyDiseaseInfoFields - } -} - ${so}`,se=t.Ps` - fragment EvidenceDetailFields on EvidenceItem { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - } - assertions { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,we=t.Ps` - fragment EvidenceSummaryFields on EvidenceItem { - id - name - description - status - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - } - therapyInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - source { - id - citation - citationId - sourceType - displayType - sourceUrl - ascoAbstractId - link - clinicalTrials { - nctId - id - link - } - } - evidenceRating - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${xe}`,Qe=t.Ps` - fragment GeneDetailFields on Gene { - id - name - officialName - entrezId - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,bt=t.Ps` - fragment GeneSummaryFields on Gene { - description - entrezId - geneAliases - id - name - officialName - sources { - id - citation - link - sourceUrl - displayType - sourceType - } - variants { - edges { - node { - id - name - } - } - } - myGeneInfoDetails - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - `,Bt=t.Ps` - fragment commentListNode on Comment { - id - title - comment - createdAt - commenter { - id - username - displayName - name - role - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - } - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - status - deprecated - link - revisionSetId - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } -} - `,tn=t.Ps` - fragment MolecularProfileDetailFields on MolecularProfile { - id - name - deprecated - deprecatedVariants { - deprecationReason - deprecationComment { - ...commentListNode - } - id - deprecated - name - link - } - molecularProfileAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${Bt}`,fn=t.Ps` - fragment VariantMolecularProfileCardFields on Variant { - id - name - link - gene { - id - name - link - } - molecularProfiles(first: 3) { - totalCount - nodes { - id - link - name - deprecated - } - } - variantAliases - clinvarIds - alleleRegistryId - openCravatUrl - variantTypes { - id - link - soid - name - } - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases - hgvsDescriptions -} - `,qt=t.Ps` - fragment MolecularProfileSummaryFields on MolecularProfile { - id - name - description - molecularProfileAliases - molecularProfileScore - sources { - id - citation - link - sourceType - } - variants { - ...VariantMolecularProfileCardFields - } - parsedName { - ...MolecularProfileParsedName - } -} - ${fn} -${xe}`,Cn=t.Ps` - fragment OrganizationDetailFields on Organization { - id - name - url - description - profileImagePath(size: 256) - subGroups { - id - name - profileImagePath(size: 12) - } - orgStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - orgAndSuborgsStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } -} - `,Nn=t.Ps` - fragment OrganizationGroupsFields on Organization { - id - name - url - description - profileImagePath(size: 128) - subGroups { - id - name - url - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } -} - `,Sn=t.Ps` - fragment OrganizationMembersFields on User { - id - name - displayName - username - profileImagePath(size: 64) - role - url - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - url - } -} - `,dn=t.Ps` - fragment Release on DataRelease { - name - geneTsv { - filename - path - } - variantTsv { - filename - path - } - variantGroupTsv { - filename - path - } - evidenceTsv { - filename - path - } - molecularProfileTsv { - filename - path - } - assertionTsv { - filename - path - } - acceptedVariantsVcf { - filename - path - } - acceptedAndSubmittedVariantsVcf { - filename - path - } -} - `,xn=t.Ps` - fragment SourceDetailFields on Source { - id - citation - sourceUrl - displayType - citationId - comments { - totalCount - } -} - `,Qn=t.Ps` - fragment SourceSummaryFields on Source { - id - citation - displayType - sourceUrl - title - abstract - publicationDate - citationId - fullJournalTitle - pmcId - authorString - clinicalTrials { - nctId - id - link - } -} - `,In=t.Ps` - fragment MyChemInfoFields on MyChemInfo { - chebiId - chebiDefinition - fdaEpcCodes { - code - description - } - fdaMoaCodes { - code - description - } - firstApproval - chemblMoleculeType - chemblId - pubchemCid - pharmgkbId - rxnorm - inchikey - drugbankId - indications -} - `,Vn=t.Ps` - fragment TherapiesSummaryFields on Therapy { - id - name - ncitId - therapyUrl - therapyAliases - link - myChemInfo { - ...MyChemInfoFields - } -} - ${In}`,Un=t.Ps` - fragment UserDetailFields on User { - id - name - displayName - username - email - profileImagePath(size: 128) - role - url - bio - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - url - } - country { - id - name - } - statsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } - mostRecentConflictOfInterestStatement { - id - coiPresent - coiStatement - coiStatus - createdAt - expiresAt - } -} - `,jn=t.Ps` - fragment notificationOrganization on Organization { - id - name -} - `,eo=t.Ps` - fragment notificationOriginatingUsers on User { - id - displayName -} - `,Co=t.Ps` - fragment notificationFeedSubjects on EventSubjectWithCount { - subject { - id - __typename - name - } - occuranceCount -} - `,yo=t.Ps` - fragment notificationNode on Notification { - id - type - event { - ...eventFeedNode - } - seen - subscription { - id - subscribable { - id - name - __typename - } - } -} - ${yn}`,Kn=t.Ps` - fragment subscribable on Subscribable { - id - entityType - __typename -} - `,Fo=t.Ps` - fragment VariantGroupDetailFields on VariantGroup { - id - name - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Mo=t.Ps` - fragment VariantGroupSummaryFields on VariantGroup { - id - name - description - sources { - id - link - citation - sourceUrl - displayType - sourceType - } -} - `,Go=t.Ps` - fragment VariantDetailFields on Variant { - id - name - deprecated - deprecationReason - deprecationComment { - ...commentListNode - } - gene { - id - name - link - } - variantAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${Bt}`,To=t.Ps` - fragment MyVariantInfoFields on MyVariantInfo { - myVariantInfoId - caddConsequence - caddDetail - caddScore - caddPhred - clinvarClinicalSignificance - clinvarHgvsCoding - clinvarHgvsGenomic - clinvarHgvsNonCoding - clinvarHgvsProtein - clinvarId - clinvarOmim - cosmicId - dbnsfpInterproDomain - dbsnpRsid - eglClass - eglHgvs - eglProtein - eglTranscript - exacAlleleCount - exacAlleleFrequency - exacAlleleNumber - fathmmMklPrediction - fathmmMklScore - fathmmPrediction - fathmmScore - fitconsScore - gerp - gnomadExomeAlleleCount - gnomadExomeAlleleFrequency - gnomadExomeAlleleNumber - gnomadExomeFilter - gnomadGenomeAlleleCount - gnomadGenomeAlleleFrequency - gnomadGenomeAlleleNumber - gnomadGenomeFilter - lrtPrediction - lrtScore - metalrPrediction - metalrScore - metasvmPrediction - metasvmScore - mutationassessorPrediction - mutationassessorScore - mutationtasterPrediction - mutationtasterScore - phastcons100way - phastcons30way - phyloP100way - phyloP30way - polyphen2HdivPrediction - polyphen2HdivScore - polyphen2HvarPrediction - polyphen2HvarScore - proveanPrediction - proveanScore - revelScore - siftPrediction - siftScore - siphy - snpeffSnpEffect - snpeffSnpImpact -} - `,mi=t.Ps` - fragment VariantSummaryFields on Variant { - id - name - gene { - id - name - link - } - variantAliases - alleleRegistryId - openCravatUrl - maneSelectTranscript - variantTypes { - id - link - soid - name - } - hgvsDescriptions - clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - myVariantInfo { - ...MyVariantInfoFields - } - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${To}`,_i=t.Ps` - query AssertionPopover($assertionId: Int!) { - assertion(id: $assertionId) { - ...assertionPopover - } -} - ${te}`;let Ao=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=_i}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Lo=t.Ps` - query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $significance: EvidenceSignificance, $assertionType: EvidenceType, $variantId: Int, $molecularProfileId: Int, $evidenceId: Int, $molecularProfileName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $status: EvidenceStatusFilter) { - assertions( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - summary: $summary - assertionDirection: $assertionDirection - significance: $significance - assertionType: $assertionType - variantId: $variantId - molecularProfileId: $molecularProfileId - sortBy: $sortBy - ampLevel: $ampLevel - molecularProfileName: $molecularProfileName - evidenceId: $evidenceId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - therapyId: $therapyId - diseaseId: $diseaseId - status: $status - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...AssertionBrowseFields - } - } - } -} - ${ae}`;let Wi=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Lo}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ii=t.Ps` - query ClinicalTrialPopover($clinicalTrialId: Int!) { - clinicalTrials(id: $clinicalTrialId) { - edges { - node { - ...clinicalTrialPopover - } - } - } -} - ${De}`;let gi=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ii}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const nr=t.Ps` - query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { - clinicalTrials( - first: $first - last: $last - before: $before - after: $after - name: $name - nctId: $nctId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...BrowseClinicalTrialsRowFields - } - } - } -} - ${Ge}`;let Ai=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=nr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Zi=t.Ps` - query CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { - comments( - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - mentionedUserId: $mentionedUserId - mentionedRole: $mentionedRole - mentionedEntity: $mentionedEntity - subject: $subject - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - uniqueCommenters { - id - displayName - role - profileImagePath(size: 32) - } - mentionedUsers { - id - displayName - role - profileImagePath(size: 32) - } - mentionedRoles { - displayName - entityId - tagType - link - } - mentionedEntities { - displayName - entityId - tagType - link - } - unfilteredCountForSubject - edges { - cursor - node { - ...commentListNode - } - } - } -} - ${Bt}`;let hi=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Zi}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ke=t.Ps` - query CommentPopover($commentId: Int!) { - comment(id: $commentId) { - ...commentPopover - } -} - ${Ct}`;let Yt=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ke}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const W=t.Ps` - query DiseasePopover($diseaseId: Int!) { - diseasePopover(id: $diseaseId) { - id - name - displayName - doid - diseaseUrl - diseaseAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - } -} - `;let Ve=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=W}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gt=t.Ps` - query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $geneNames: String) { - browseDiseases( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - doid: $doid - geneNames: $geneNames - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseDiseaseRowFields - } - } - } -} - ${sn}`;let an=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Gt}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Rn=t.Ps` - query EventFeedCount($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $includeAutomatedEvents: Boolean, $mode: EventFeedMode) { - events( - subject: $subject - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - organizationId: $organizationId - eventType: $eventType - mode: $mode - includeAutomatedEvents: $includeAutomatedEvents - ) { - unfilteredCount - } -} - `;let ho=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Rn}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fo=t.Ps` - query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $includeAutomatedEvents: Boolean = true, $showFilters: Boolean!) { - events( - subject: $subject - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - organizationId: $organizationId - eventType: $eventType - includeAutomatedEvents: $includeAutomatedEvents - mode: $mode - ) { - ...eventFeed - } -} - ${st}`;let Uo=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=fo}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ni=t.Ps` - query EvidencePopover($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...evidencePopover - } -} - ${it}`;let uo=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ni}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Li=t.Ps` - query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { - evidenceItems( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - description: $description - evidenceLevel: $evidenceLevel - evidenceDirection: $evidenceDirection - significance: $significance - evidenceType: $evidenceType - evidenceRating: $rating - variantOrigin: $variantOrigin - variantId: $variantId - molecularProfileId: $molecularProfileId - assertionId: $assertionId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - diseaseId: $diseaseId - therapyId: $therapyId - sourceId: $sourceId - clinicalTrialId: $clinicalTrialId - molecularProfileName: $molecularProfileName - status: $status - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...EvidenceGridFields - } - } - } -} - ${lt}`;let Fi=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Li}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _r=t.Ps` - query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { - flags( - flaggable: $flaggable - flaggingUserId: $flaggingUserId - resolvingUserId: $resolvingUserId - state: $state - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - ...flagList - } -} - ${wt}`;let ls=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=_r}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Se=t.Ps` - query FlagPopover($flagId: Int!) { - flag(id: $flagId) { - ...flagPopover - } -} - ${Vt}`;let ye=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Se}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const pe=t.Ps` - query GenePopover($geneId: Int!) { - gene(id: $geneId) { - ...genePopover - } -} - ${jt}`;let ct=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=pe}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zn=t.Ps` - query BrowseGenes($entrezSymbol: String, $therapyName: String, $geneAlias: String, $diseaseName: String, $sortBy: GenesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseGenes( - entrezSymbol: $entrezSymbol - therapyName: $therapyName - geneAlias: $geneAlias - diseaseName: $diseaseName - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - edges { - cursor - node { - ...BrowseGenesFields - } - } - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - totalCount - filteredCount - pageCount - } -} - ${Ke}`;let Gn=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=zn}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fi=t.Ps` - query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { - search(query: $query, types: $types, highlightMatches: $highlightMatches) { - ...QuicksearchResult - } -} - ${K}`;let si=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=fi}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wr=t.Ps` - query MolecularProfilePopover($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...molecularProfilePopoverFields - } -} - ${w}`;let Ds=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=wr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Sa=t.Ps` - query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseMolecularProfiles( - molecularProfileName: $molecularProfileName - variantName: $variantName - variantId: $variantId - entrezSymbol: $entrezSymbol - diseaseName: $diseaseName - therapyName: $therapyName - molecularProfileAlias: $molecularProfileAlias - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseMolecularProfilesFields - } - } - filteredCount - pageCount - } -} - ${J}`;let Us=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Sa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gs=t.Ps` - query MolecularProfileMenu($geneId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { - molecularProfiles( - geneId: $geneId - name: $mpName - evidenceStatusFilter: $evidenceStatusFilter - first: $first - last: $last - before: $before - after: $after - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuMolecularProfile - } - } - } -} - ${Te}`;let us=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Gs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const es=t.Ps` - query OrganizationCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - commentsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${zt}`;let $r=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=es}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Yr=t.Ps` - query OrganizationRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - revisionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${zt}`;let or=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Yr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ur=t.Ps` - query OrganizationModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - moderationLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${zt}`;let ri=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ur}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const pr=t.Ps` - query OrganizationSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - submissionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${zt}`;let Os=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=pr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Pr=t.Ps` - query OrgPopover($orgId: Int!) { - organization(id: $orgId) { - ...orgPopover - } -} - ${nt}`;let Mr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Pr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Gr=t.Ps` - query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort) { - organizations( - first: $first - last: $last - before: $before - after: $after - name: $orgName - id: $id - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationBrowseTableRowFields - } - } - } -} - ${qe}`;let Qs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Gr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ir=t.Ps` - query PhenotypePopover($phenotypeId: Int!) { - phenotypePopover(id: $phenotypeId) { - id - name - url - hpoId - assertionCount - evidenceItemCount - molecularProfileCount - link - } -} - `;let ds=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ir}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hr=t.Ps` - query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { - phenotypes( - first: $first - last: $last - before: $before - after: $after - name: $name - hpoId: $hpoId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...PhenotypeBrowseTableRowFields - } - } - } -} - ${rt}`;let lc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=hr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const br=t.Ps` - mutation AcceptRevision($input: AcceptRevisionsInput!) { - acceptRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let Ea=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=br}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Wc=t.Ps` - mutation RejectRevision($input: RejectRevisionsInput!) { - rejectRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let uc=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Wc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Sr=t.Ps` - query ValidateRevisionsForAcceptance($ids: [Int!]!) { - validateRevisionsForAcceptance(revisionIds: $ids) { - genericErrors - validationErrors { - ...validationError - } - } -} - ${Rt}`;let ir=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Sr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ts=t.Ps` - query RevisionPopover($revisionId: Int!) { - revision(id: $revisionId) { - ...revisionPopover - } -} - ${St}`;let Ar=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ts}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ws=t.Ps` - query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionSetId: Int, $status: RevisionStatus) { - revisions( - first: $first - last: $last - before: $before - after: $after - fieldName: $fieldName - originatingUserId: $originatingUserId - resolvingUserId: $resolvingUserId - subject: $subject - status: $status - revisionSetId: $revisionSetId - ) { - totalCount - unfilteredCountForSubject - uniqueRevisors { - username - id - profileImagePath(size: 32) - } - uniqueResolvers { - username - id - profileImagePath(size: 32) - } - revisedFieldNames { - name - displayName - } - pageInfo { - hasNextPage - hasPreviousPage - endCursor - startCursor - } - edges { - node { - ...revision - } - } - } -} - ${gn}`;let ns=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ws}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const js=t.Ps` - query ContributorAvatars($subscribable: SubscribableInput!) { - contributors(subscribable: $subscribable) { - editors { - ...ContributorFields - } - curators { - ...ContributorFields - } - } -} - ${Ze}`;let ps=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=js}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const hs=t.Ps` - query SubscriptionForEntity($subscribable: SubscribableInput!) { - subscriptionForEntity(subscribable: $subscribable) { - ...subscriptionId - } -} - ${ut}`;let xa=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=hs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ws=t.Ps` - mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { - moderateEvidenceItem(input: $input) { - evidenceItem { - id - } - } -} - `;let Zs=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Ws}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ks=t.Ps` - mutation ModerateAssertion($input: ModerateAssertionInput!) { - moderateAssertion(input: $input) { - assertion { - id - } - } -} - `;let $i=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Ks}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ni=t.Ps` - query CivicStats { - timepointStats { - assertions { - ...TimepointCount - } - diseases { - ...TimepointCount - } - therapies { - ...TimepointCount - } - evidenceItems { - ...TimepointCount - } - genes { - ...TimepointCount - } - revisions { - ...TimepointCount - } - sources { - ...TimepointCount - } - users { - ...TimepointCount - } - variants { - ...TimepointCount - } - comments { - ...TimepointCount - } - molecularProfiles { - ...TimepointCount - } - } -} - ${ce}`;let Js=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ni}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ai=t.Ps` - query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $molecularProfileName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { - sourceSuggestions( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - sourceType: $sourceType - citationId: $citationId - sourceId: $sourceId - molecularProfileName: $molecularProfileName - diseaseName: $diseaseName - comment: $comment - submitter: $submitter - citation: $citation - submitterId: $submitterId - status: $status - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseSourceSuggestionRowFields - } - } - } -} - ${_e}`;let Fr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ai}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;const fe=t.Ps` - query SourcePopover($sourceId: Int!) { - sourcePopover(id: $sourceId) { - ...sourcePopover - } -} - ${mt}`;let tt=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=fe}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const At=t.Ps` - query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int, $openAccess: Boolean) { - browseSources( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - year: $year - sourceType: $sourceType - citationId: $citationId - author: $author - journal: $journal - clinicalTrialId: $clinicalTrialId - openAccess: $openAccess - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseSourceRowFields - } - } - } -} - ${Ae}`;let hn=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=At}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tn=t.Ps` - query TherapyPopover($therapyId: Int!) { - therapyPopover(id: $therapyId) { - id - name - therapyUrl - ncitId - therapyAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - } -} - `;let to=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Tn}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Qo=t.Ps` - query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $sortBy: TherapySort) { - therapies( - first: $first - last: $last - before: $before - after: $after - name: $name - ncitId: $ncitId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...TherapyBrowseTableRowFields - } - } - } -} - ${at}`;let go=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Qo}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Vo=t.Ps` - query UserCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - commentsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${Ht}`;let Io=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Vo}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vi=t.Ps` - query UserRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - revisionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${Ht}`;let jo=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=vi}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const yi=t.Ps` - query UserModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - moderationLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${Ht}`;let Ci=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=yi}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ao=t.Ps` - query UserSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - submissionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${Ht}`;let fr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ao}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const rr=t.Ps` - query UserPopover($userId: Int!) { - user(id: $userId) { - ...popoverUser - } -} - ${un}`;let Nr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=rr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Er=t.Ps` - query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { - users( - first: $first - last: $last - before: $before - after: $after - name: $userName - organization: $orgName - role: $userRole - sortBy: $sortBy - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - totalCount - edges { - cursor - node { - ...UserBrowseTableRowFields - } - } - } -} - ${Lt}`;let sr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Er}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Da=t.Ps` - query VariantGroupPopover($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...variantGroupPopoverFields - } -} - ${dt}`;let Qr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Da}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const jr=t.Ps` - query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $geneNames: String, $variantNames: String) { - browseVariantGroups( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - geneNames: $geneNames - variantNames: $variantNames - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseVariantGroupRowFields - } - } - } -} - ${ft}`;let dc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=jr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const eu=t.Ps` - query VariantTypePopover($variantTypeId: Int!) { - variantTypePopover(id: $variantTypeId) { - ...variantTypePopover - } -} - ${ne}`;let pc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=eu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Lr=t.Ps` - query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { - variantTypes( - first: $first - last: $last - before: $before - after: $after - name: $name - soid: $soid - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...VariantTypeBrowseTableRowFields - } - } - } -} - ${B}`;let wn=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Lr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Bo=t.Ps` - query CoordinatesCard($variantId: Int!) { - variant(id: $variantId) { - ...CoordinatesCardFields - } -} - ${ze}`;let Zc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Bo}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const qs=t.Ps` - query VariantPopover($variantId: Int!) { - variant(id: $variantId) { - ...variantPopoverFields - } -} - ${$e}`;let xi=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=qs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const os=t.Ps` - query VariantsMenu($geneId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { - variants( - geneId: $geneId - name: $variantName - variantTypeIds: $variantTypeIds - hasNoVariantType: $hasNoVariantType - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuVariant - } - } - } -} - ${on}`;let kr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=os}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ar=t.Ps` - query VariantTypesForGene($geneId: Int) { - variantTypes(geneId: $geneId, first: 50) { - edges { - node { - ...menuVariantType - } - } - } -} - ${Mt}`;let Xs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ar}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Kc=t.Ps` - query BrowseVariants($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - entrezSymbol: $entrezSymbol - diseaseName: $diseaseName - therapyName: $therapyName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - variantTypeName: $variantTypeName - hasNoVariantType: $hasNoVariantType - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseVariantsFields - } - } - totalCount - filteredCount - pageCount - } -} - ${Zt}`;let ea=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Kc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const d1=t.Ps` - query ViewerBase { - viewer { - id - username - role - displayName - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - mostRecentConflictOfInterestStatement { - coiStatus - } - mostRecentOrganizationId - } -} - `;let Jc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=d1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ji=t.Ps` - query ViewerNotificationCount { - notifications { - unreadCount - } -} - `;let Rr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ji}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ps=t.Ps` - query AssertionRevisableFields($assertionId: Int!) { - assertion(id: $assertionId) { - ...RevisableAssertionFields - } -} - ${Wn}`;let fs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ps}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Vr=t.Ps` - mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { - suggestAssertionRevision(input: $input) { - clientMutationId - assertion { - id - } - results { - newlyCreated - } - } -} - `;let qc=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Vr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Oa=t.Ps` - mutation SubmitAssertion($input: SubmitAssertionInput!) { - submitAssertion(input: $input) { - clientMutationId - assertion { - id - } - } -} - `;let Xc=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Oa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const el=t.Ps` - mutation AddComment($input: AddCommentInput!) { - addComment(input: $input) { - clientMutationId - comment { - ...commentListNode - } - } -} - ${Bt}`;let wa=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=el}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Pa=t.Ps` - query previewComment($commentText: String!) { - previewCommentText(commentText: $commentText) { - ...previewComment - } -} - ${pn}`;let Ia=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Pa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Aa=t.Ps` - query userTypeahead($queryTerm: String!) { - userTypeahead(queryTerm: $queryTerm) { - username - } -} - `;let hc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Aa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fa=t.Ps` - query entityTypeahead($queryTerm: String!) { - entityTypeahead(queryTerm: $queryTerm) { - entityId - tagType - displayName - } -} - `;let tl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Fa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - query previewMolecularProfileName($mpStructure: MolecularProfileComponentInput) { - previewMolecularProfileName(structure: $mpStructure) { - existingMolecularProfile { - id - name - link - } - segments { - ...previewMpName - } - deprecatedVariants { - id - name - link - } - } -} - ${qn}`,t.Ps` - mutation createMolecularProfile($mpStructure: MolecularProfileComponentInput!) { - createMolecularProfile(input: {structure: $mpStructure}) { - molecularProfile { - id - name - link - } - } -} - `,t.Ps` - query AcmgCodeTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - id - code - description - name - tooltip - } -} - `,t.Ps` - query ClingenCodeTypeahead($code: String!) { - clingenCodesTypeahead(queryTerm: $code) { - id - code - description - name - tooltip - exclusive - } -} - `,t.Ps` - query DiseaseTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - id - name - displayName - doid - diseaseAliases - } -} - `,t.Ps` - mutation AddDisease($name: String!, $doid: String) { - addDisease(input: {name: $name, doid: $doid}) { - ...AddDiseaseFields - } -} - ${co}`,t.Ps` - query EvidenceTypeahead($id: Int!) { - evidenceItem(id: $id) { - id - status - name - } -} - `,t.Ps` - query GeneTypeahead($entrezSymbol: String!) { - geneTypeahead(queryTerm: $entrezSymbol) { - ...GeneTypeaheadFields - } -} - ${_o}`,t.Ps` - query NccnGuidelineTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - id - name - } -} - `,t.Ps` - query PhenotypeTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - hpoId - id - name - } -} - `,t.Ps` - query CitationExistenceCheck($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `,t.Ps` - mutation CreateSourceStub($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } - } -} - `,t.Ps` - query CitationTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult - } -} - ${Yo}`,t.Ps` - query CheckRemoteCitation($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `,t.Ps` - mutation AddRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - ...SourceStubFields - } - } -} - ${Ko}`,t.Ps` - query SourceTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult - } -} - ${Yo}`,t.Ps` - query TherapyTypeahead($name: String!) { - therapyTypeahead(queryTerm: $name) { - id - name - ncitId - therapyAliases - } -} - `,t.Ps` - mutation AddTherapy($name: String!, $ncitId: String) { - addTherapy(input: {name: $name, ncitId: $ncitId}) { - ...AddTherapyFields - } -} - ${mo}`,t.Ps` - query VariantTypeahead($name: String!, $geneId: Int) { - variants(name: $name, geneId: $geneId, first: 20) { - nodes { - ...VariantTypeaheadFields - } - } -} - ${Xn}`,t.Ps` - mutation AddVariant($name: String!, $geneId: Int!) { - addVariant(input: {name: $name, geneId: $geneId}) { - ...AddVariantFields - } -} - ${di}`,t.Ps` - query VariantSelect($name: String!, $geneId: Int) { - variants(name: $name, first: 20, geneId: $geneId) { - nodes { - ...VariantTypeaheadFields - } - } -} - ${Xn}`,t.Ps` - query VariantTypeTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - name - soid - id - } -} - `,t.Ps` - query EvidenceItemRevisableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields - } -} - ${zi}`,t.Ps` - mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - results { - newlyCreated - } - } -} - `,t.Ps` - query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { - sourceSuggestionValues( - molecularProfileId: $molecularProfileId - diseaseId: $diseaseId - sourceId: $sourceId - ) { - molecularProfile { - id - name - link - } - disease { - id - name - link - } - source { - id - sourceType - citationId - citation - link - } - } -} - `,t.Ps` - query EvidenceSubmittableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...SubmittableEvidenceFields - } -} - ${An}`;const La=t.Ps` - mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { - submitEvidence(input: $input) { - clientMutationId - evidenceItem { - id - } - } -} - `;let y1=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=La}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const oa=t.Ps` - mutation FlagEntity($input: FlagEntityInput!) { - flagEntity(input: $input) { - flag { - id - } - } -} - `;let au=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=oa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cu=t.Ps` - mutation ResolveFlag($input: ResolveFlagInput!) { - resolveFlag(input: $input) { - flag { - id - } - } -} - `;let lu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=cu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vc=t.Ps` - query GeneRevisableFields($geneId: Int!) { - gene(id: $geneId) { - ...RevisableGeneFields - } -} - ${bi}`;let ka=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=vc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const is=t.Ps` - mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { - suggestGeneRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let uu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=is}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const cl=t.Ps` - query MolecularProfileRevisableFields($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...RevisableMolecularProfileFields - } -} - ${Si}`;let ll=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=cl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ms=t.Ps` - mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { - suggestMolecularProfileRevision(input: $input) { - clientMutationId - molecularProfile { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let du=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=ms}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - mutation SuggestSource($input: SuggestSourceInput!) { - suggestSource(input: $input) { - clientMutationId - sourceSuggestion { - id - } - } -} - `;const hu=t.Ps` - mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;let fu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=hu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const yc=t.Ps` - mutation UpdateCoi($input: UpdateCoiInput!) { - updateCoi(input: $input) { - coiStatement { - coiPresent - coiStatus - createdAt - id - } - } -} - `;let As=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=yc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fs=t.Ps` - mutation UpdateUserProfile($input: EditUserInput!) { - editUser(input: $input) { - user { - id - } - } -} - `;let Ns=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Fs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ul=t.Ps` - query Countries { - countries { - id - name - } -} - `;let Cc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ul}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ia=t.Ps` - mutation DeprecateVariant($variantId: Int!, $deprecationReason: DeprecationReason!, $comment: String!, $organizationId: Int) { - deprecateVariant( - input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - newlyDeprecatedMolecularProfiles { - id - } - variant { - id - name - } - } -} - `;let C1=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=ia}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const z1=t.Ps` - query MolecularProfilesForVariant($variantId: Int!) { - molecularProfiles(variantId: $variantId, first: 50) { - nodes { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount - } - } - } -} - `;let T1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=z1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { - suggestVariantGroupRevision(input: $input) { - clientMutationId - variantGroup { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `,t.Ps` - query VariantGroupSubmittableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...SubmittableVariantGroupFields - } -} - ${tr}`;const ra=t.Ps` - mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { - submitVariantGroup(input: $input) { - clientMutationId - variantGroup { - id - } - } -} - `;let sa=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=ra}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const M1=t.Ps` - query LinkableGene($geneId: Int!) { - gene(id: $geneId) { - id - name - link - } -} - `;let b1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=M1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - query LinkableVariant($variantId: Int!) { - variant(id: $variantId) { - id - name - link - } -} - `,t.Ps` - query LinkableTherapy($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - link - } -} - `;const yr=t.Ps` - query EvidenceItemRevisableFields2($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields2 - } -} - ${Gi}`;let aa=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=yr}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const dl=t.Ps` - mutation SuggestEvidenceItemRevision2($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - results { - newlyCreated - } - } -} - `;let Ra=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=dl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ca=t.Ps` - query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { - evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { - totalCount - } -} - `;let gu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ca}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const E1=t.Ps` - mutation SubmitSource($input: SuggestSourceInput!) { - suggestSource(input: $input) { - clientMutationId - sourceSuggestion { - id - } - } -} - `;let pl=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=E1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const x1=t.Ps` - query VariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - ...RevisableVariantFields - } -} - ${Ei}`;let mr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=x1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tc=t.Ps` - mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { - suggestVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let gs=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Tc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const sp=t.Ps` - query VariantGroupRevisableFields2($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupRevisableFields2 - } -} - ${vr}`;let hl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=sp}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const fl=t.Ps` - mutation SuggestVariantGroupRevision2($input: SuggestVariantGroupRevisionInput!) { - suggestVariantGroupRevision(input: $input) { - clientMutationId - variantGroup { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let vu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=fl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const _u=t.Ps` - query EntityTagsTest($molecularProfileId: Int!, $geneId: Int!, $variantId: Int!, $therapyId: Int!, $diseaseId: Int!, $eid: Int!) { - evidenceItem(id: $eid) { - id - name - link - } - molecularProfile(id: $molecularProfileId) { - id - name - link - } - gene(id: $geneId) { - id - name - link - } - variant(id: $variantId) { - id - name - link - } - therapy(id: $therapyId) { - id - name - link - } - disease(id: $diseaseId) { - id - name - link - } -} - `;let ml=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=_u}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const yu=t.Ps` - query AcmgCodeSelectTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Qi}`;let Cu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=yu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Mc=t.Ps` - query AcmgCodeSelectTag($id: Int!) { - acmgCode(id: $id) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Qi}`;let Va=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Mc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const gl=t.Ps` - query ClingenCodeSelectTypeahead($code: String!) { - clingenCodesTypeahead(queryTerm: $code) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${ur}`;let Ba=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=gl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zu=t.Ps` - query ClingenCodeSelectTag($id: Int!) { - clingenCode(id: $id) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${ur}`;let Ha=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=zu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const vl=t.Ps` - mutation QuickAddDisease($name: String!, $doid: String) { - addDisease(input: {name: $name, doid: $doid}) { - ...QuickAddDiseaseFields - } -} - ${dr}`;let _l=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=vl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const bc=t.Ps` - query DiseaseSelectTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - ...DiseaseSelectTypeaheadFields - } -} - ${So}`;let la=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=bc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ks=t.Ps` - query DiseaseSelectTag($id: Int!) { - disease(id: $id) { - ...DiseaseSelectTypeaheadFields - } -} - ${So}`;let yl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ks}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tu=t.Ps` - query EvidenceManager($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { - evidenceItems( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - description: $description - evidenceLevel: $evidenceLevel - evidenceDirection: $evidenceDirection - significance: $significance - evidenceType: $evidenceType - evidenceRating: $rating - variantOrigin: $variantOrigin - variantId: $variantId - molecularProfileId: $molecularProfileId - assertionId: $assertionId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - diseaseId: $diseaseId - therapyId: $therapyId - sourceId: $sourceId - clinicalTrialId: $clinicalTrialId - molecularProfileName: $molecularProfileName - status: $status - sortBy: $sortBy - ) { - totalCount - pageCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...EvidenceManagerFields - } - } - nodes { - ...EvidenceManagerFields - } - } -} - ${lo}`;let Rs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Tu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const $a=t.Ps` - query EvidenceSelectTypeahead($eid: Int!) { - evidenceItems(id: $eid) { - nodes { - ...EvidenceSelectTypeaheadFields - } - } -} - ${Oo}`;let Mu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=$a}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const D1=t.Ps` - query EvidenceSelectTag($eid: Int!) { - evidenceItem(id: $eid) { - ...EvidenceSelectTypeaheadFields - } -} - ${Oo}`;let vs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=D1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const bu=t.Ps` - query GeneSelectTypeahead($entrezSymbol: String!) { - geneTypeahead(queryTerm: $entrezSymbol) { - ...GeneSelectTypeaheadFields - } -} - ${Po}`;let O1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=bu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Su=t.Ps` - query GeneSelectTag($geneId: Int!) { - gene(id: $geneId) { - ...GeneSelectTypeaheadFields - } -} - ${Po}`;let Eu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Su}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ya=t.Ps` - query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { - molecularProfiles(name: $name, geneId: $geneId, first: 25) { - nodes { - ...MolecularProfileSelectTypeaheadFields - } - } -} - ${wo}`;let Ua=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ya}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Cl=t.Ps` - query MolecularProfileSelectTag($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...MolecularProfileSelectTypeaheadFields - } -} - ${wo}`;let xu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Cl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const zl=t.Ps` - query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { - previewMolecularProfileName(structure: $mpStructure) { - existingMolecularProfile { - id - name - link - } - segments { - ...PreviewMpName2 - } - deprecatedVariants { - id - name - link - } - } -} - ${Jo}`;let w1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=zl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Tl=t.Ps` - query MpExpressionEditorPrepopulate($mpId: Int!) { - molecularProfile(id: $mpId) { - id - parsedName { - ...MolecularProfileParsedName - } - rawName - } -} - ${xe}`;let P1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Tl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Du=t.Ps` - mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!) { - createMolecularProfile(input: {structure: $mpStructure}) { - molecularProfile { - id - name - link - } - } -} - `;let Ou=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Du}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ga=t.Ps` - query NccnGuidelineSelectTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${Ro}`;let I1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ga}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const A1=t.Ps` - query NccnGuidelineSelectTag($id: Int!) { - nccnGuideline(id: $id) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${Ro}`;let Sc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=A1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const F1=t.Ps` - query PhenotypeSelectTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - ...PhenotypeSelectTypeaheadFields - } -} - ${Pi}`;let N1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=F1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const L1=t.Ps` - query PhenotypeSelectTag($id: Int!) { - phenotype(id: $id) { - ...PhenotypeSelectTypeaheadFields - } -} - ${Pi}`;let k1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=L1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const R1=t.Ps` - query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `;let V1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=R1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Qa=t.Ps` - mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } - } -} - `;let ja=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Qa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ml=t.Ps` - query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceSelectTypeaheadFields - } -} - ${Xo}`;let Ec=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ml}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const bl=t.Ps` - query SourceSelectTag($id: Int!) { - source(id: $id) { - ...SourceSelectTypeaheadFields - } -} - ${Xo}`;let ua=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=bl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Sl=t.Ps` - mutation QuickAddTherapy($name: String!, $ncitId: String) { - addTherapy(input: {name: $name, ncitId: $ncitId}) { - ...QuickAddTherapyFields - } -} - ${Wo}`;let wu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Sl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Wa=t.Ps` - query TherapySelectTypeahead($name: String!) { - therapyTypeahead(queryTerm: $name) { - ...TherapySelectTypeaheadFields - } -} - ${Eo}`;let xc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Wa}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Br=t.Ps` - query TherapySelectTag($id: Int!) { - therapy(id: $id) { - ...TherapySelectTypeaheadFields - } -} - ${Eo}`;let El=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Br}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Dc=t.Ps` - query VariantManager($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - entrezSymbol: $entrezSymbol - diseaseName: $diseaseName - therapyName: $therapyName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseVariantsFields - } - } - totalCount - filteredCount - pageCount - } -} - ${Zt}`;let Pu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Dc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Iu=t.Ps` - mutation QuickAddVariant($name: String!, $geneId: Int!) { - addVariant(input: {name: $name, geneId: $geneId}) { - ...AddVariantFields - } -} - ${di}`;let Oc=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Iu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Au=t.Ps` - query VariantSelectTypeahead($name: String!, $geneId: Int) { - variants(name: $name, geneId: $geneId, first: 50) { - totalCount - edges { - node { - ...VariantSelectTypeaheadFields - } - } - nodes { - ...VariantSelectTypeaheadFields - } - } -} - ${Ti}`;let xl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Au}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fu=t.Ps` - query VariantSelectTag($variantId: Int!) { - variant(id: $variantId) { - ...VariantSelectTypeaheadFields - } -} - ${Ti}`;let _s=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Fu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wc=t.Ps` - query VariantTypeSelectTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - ...VariantTypeSelectTypeaheadFields - } -} - ${Hi}`;let Nu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=wc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const qi=t.Ps` - query VariantTypeSelectTag($id: Int!) { - variantType(id: $id) { - ...VariantTypeSelectTypeaheadFields - } -} - ${Hi}`;let Pc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=qi}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Dl=t.Ps` - query AssertionDetail($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionDetailFields - } -} - ${ei}`;let Ic=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Dl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ki=t.Ps` - query AssertionSummary($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionSummaryFields - } -} - ${Yn}`;let da=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ki}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ol=t.Ps` - query ClinicalTrialDetail($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let ys=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ol}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wd=t.Ps` - query ClinicalTrialSummary($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let B1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=wd}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Pd=t.Ps` - query DiseaseDetail($diseaseId: Int!) { - disease(id: $diseaseId) { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - } -} - `;let Lu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Pd}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const H1=t.Ps` - query DiseasesSummary($diseaseId: Int!) { - disease(id: $diseaseId) { - ...DiseasesSummaryFields - } -} - ${Ue}`;let ku=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=H1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Id=t.Ps` - query EvidenceDetail($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceDetailFields - } -} - ${se}`;let $1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Id}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const wl=t.Ps` - query EvidenceSummary($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceSummaryFields - } -} - ${we}`;let Ac=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=wl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Y1=t.Ps` - query GeneDetail($geneId: Int!) { - gene(id: $geneId) { - ...GeneDetailFields - } -} - ${Qe}`;let pa=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Y1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Za=t.Ps` - query GenesSummary($geneId: Int!) { - gene(id: $geneId) { - ...GeneSummaryFields - } -} - ${bt}`;let U1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Za}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ru=t.Ps` - query MolecularProfileDetail($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileDetailFields - } -} - ${tn}`;let Vu=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ru}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Pl=t.Ps` - query MolecularProfileSummary($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileSummaryFields - } -} - ${qt}`;let Vs=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Pl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fc=t.Ps` - query OrganizationDetail($organizationId: Int!) { - organization(id: $organizationId) { - ...OrganizationDetailFields - } -} - ${Cn}`;let Il=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Fc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Al=t.Ps` - query OrganizationGroups($organizationId: Int!) { - organization(id: $organizationId) { - subGroups { - ...OrganizationGroupsFields - } - } -} - ${Nn}`;let Ka=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Al}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Fl=t.Ps` - query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { - users( - organization: {id: $organizationId} - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationMembersFields - } - } - } -} - ${Sn}`;let G1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Fl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Q1=t.Ps` - query PhenotypeDetail($phenotypeId: Int!) { - phenotype(id: $phenotypeId) { - id - name - description - hpoId - url - link - } -} - `;let j1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Q1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const W1=t.Ps` - query DataReleases { - dataReleases { - ...Release - } -} - ${dn}`;let Z1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=W1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Bu=t.Ps` - query SourceDetail($sourceId: Int!) { - source(id: $sourceId) { - ...SourceDetailFields - } -} - ${xn}`;let Nl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Bu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Hu=t.Ps` - query SourceSummary($sourceId: Int!) { - source(id: $sourceId) { - ...SourceSummaryFields - } -} - ${Qn}`;let Ll=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Hu}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const K1=t.Ps` - query TherapyDetail($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - ncitId - therapyUrl - therapyAliases - link - } -} - `;let J1=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=K1}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const kl=t.Ps` - query TherapiesSummary($therapyId: Int!) { - therapy(id: $therapyId) { - ...TherapiesSummaryFields - } -} - ${Vn}`;let $u=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=kl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Cs=t.Ps` - query UserDetail($userId: Int!) { - user(id: $userId) { - ...UserDetailFields - } -} - ${Un}`;let Rl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Cs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Zn=t.Ps` - query UserNotifications($first: Int, $last: Int, $before: String, $after: String, $notificationReason: NotificationReason, $subscriptionId: Int, $originatingObject: SubscribableInput, $eventType: EventAction, $originatingUserId: Int, $organizationId: Int, $includeRead: Boolean) { - notifications( - first: $first - last: $last - before: $before - after: $after - notificationReason: $notificationReason - subscriptionId: $subscriptionId - originatingObject: $originatingObject - eventType: $eventType - originatingUserId: $originatingUserId - organizationId: $organizationId - includeRead: $includeRead - ) { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - notificationSubjects { - ...notificationFeedSubjects - } - originatingUsers { - ...notificationOriginatingUsers - } - organizations { - ...notificationOrganization - } - eventTypes - edges { - node { - ...notificationNode - } - } - } -} - ${Co} -${eo} -${jn} -${yo}`;let Di=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Zn}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Nc=t.Ps` - mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { - updateNotificationStatus(input: $input) { - notifications { - ...notificationNode - } - } -} - ${yo}`;let Bs=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Nc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Lc=t.Ps` - mutation Unsubscribe($input: UnsubscribeInput!) { - unsubscribe(input: $input) { - unsubscribedEntities { - ...subscribable - } - } -} - ${Kn}`;let Yu=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Lc}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Vl=t.Ps` - mutation Subscribe($input: SubscribeInput!) { - subscribe(input: $input) { - subscriptions { - id - } - } -} - `;let zo=(()=>{class C extends t.mm{constructor(ee){super(ee),this.document=Vl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Ja=t.Ps` - query VariantGroupDetail($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupDetailFields - } -} - ${Fo}`;let Bl=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Ja}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();t.Ps` - query VariantGroupRevisions($variantGroupId: Int!, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int) { - variantGroup(id: $variantGroupId) { - id - revisions( - first: $first - last: $last - before: $before - after: $after - fieldName: $fieldName - originatingUserId: $originatingUserId - ) { - totalCount - uniqueRevisors { - username - id - profileImagePath(size: 32) - } - revisedFieldNames { - name - displayName - } - 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 - } - } - } - } -} - `;const Hs=t.Ps` - query VariantGroupsSummary($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupSummaryFields - } -} - ${Mo}`;let qr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Hs}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const ha=t.Ps` - query VariantTypeDetail($variantTypeId: Int!) { - variantType(id: $variantTypeId) { - id - name - soid - description - url - link - } -} - `;let Hr=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=ha}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const Hl=t.Ps` - query VariantDetail($variantId: Int!) { - variant(id: $variantId) { - ...VariantDetailFields - } -} - ${Go}`;let ec=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=Hl}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const $l=t.Ps` - query VariantSummary($variantId: Int!) { - variant(id: $variantId) { - ...VariantSummaryFields - } -} - ${mi}`;let kc=(()=>{class C extends t.AE{constructor(ee){super(ee),this.document=$l}}return C.\u0275fac=function(ee){return new(ee||C)(i.LFG(t._M))},C.\u0275prov=i.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},553:(Ot,be,a)=>{a.d(be,{N:()=>t});const t={production:!0}},7568:(Ot,be,a)=>{var t=a(6593),i=a(5879),v=a(5592),d=a(305),s=a(2096),L=a(4911),Q=a(3019),Y=a(2420);const A=new v.y(Y.Z);var N=a(8645),V=a(9315),U=a(5619),M=a(7394),e=a(7081),I=a(6232),k=a(8504),ge=a(4674);class Z{constructor(p,h,g){this.kind=p,this.value=h,this.error=g,this.hasValue="N"===p}observe(p){return F(this,p)}do(p,h,g){const{kind:z,value:E,error:q}=this;return"N"===z?p?.(E):"E"===z?h?.(q):g?.()}accept(p,h,g){var z;return(0,ge.m)(null===(z=p)||void 0===z?void 0:z.next)?this.observe(p):this.do(p,h,g)}toObservable(){const{kind:p,value:h,error:g}=this,z="N"===p?(0,s.of)(h):"E"===p?(0,k._)(()=>g):"C"===p?I.E:0;if(!z)throw new TypeError(`Unexpected notification kind ${p}`);return z}static createNext(p){return new Z("N",p)}static createError(p){return new Z("E",void 0,p)}static createComplete(){return Z.completeNotification}}function F(T,p){var h,g,z;const{kind:E,value:q,error:ve}=T;if("string"!=typeof E)throw new TypeError('Invalid notification, missing "kind"');"N"===E?null===(h=p.next)||void 0===h||h.call(p,q):"E"===E?null===(g=p.error)||void 0===g||g.call(p,ve):null===(z=p.complete)||void 0===z||z.call(p)}Z.completeNotification=new Z("C");var R=a(9360),O=a(8251),de=a(975),ue=function(){},j=ue;function re(T){j=T||ue}var he=console;function Me(T){if(T.error&&T.group&&T.groupCollapsed&&T.groupEnd&&T.warn)return T;var h=0;return{error:function(E){for(var q=arguments.length,ve=new Array(q>1?q-1:0),Ee=1;Ee1?q-1:0),Ee=1;Ee1?q-1:0),Ee=1;Ee2?Ee-2:0),ht=2;ht"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var z,g=Pe(T);if(p){var E=Pe(this).constructor;z=Reflect.construct(g,arguments,E)}else z=g.apply(this,arguments);return function te(T,p){return!p||"object"!=typeof p&&"function"!=typeof p?xe(T):p}(this,z)}}function Ge(T){return function Ct(T){if(Array.isArray(T))return lt(T)}(T)||function yn(T){if(typeof Symbol<"u"&&null!=T[Symbol.iterator]||null!=T["@@iterator"])return Array.from(T)}(T)||it(T)||function Pt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(T,p){if(T){if("string"==typeof T)return lt(T,p);var h=Object.prototype.toString.call(T).slice(8,-1);if("Object"===h&&T.constructor&&(h=T.constructor.name),"Map"===h||"Set"===h)return Array.from(T);if("Arguments"===h||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return lt(T,p)}}function lt(T,p){(null==p||p>T.length)&&(p=T.length);for(var h=0,g=new Array(p);h-1&&(ht=ht.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var Dt=ht.replace(/^\s+/,"").replace(/\(eval code/g,"("),$t=Dt.match(/ (\((.+):(\d+):(\d+)\)$)/),Qt=(Dt=$t?Dt.replace($t[0],""):Dt).split(/\s+/).slice(1),Kt=this.extractLocation($t?$t[1]:Qt.pop()),Wt=Qt.join(" ")||void 0,mn=["eval",""].indexOf(Kt[0])>-1?void 0:Kt[0];return new g({functionName:Wt,fileName:mn,lineNumber:Kt[1],columnNumber:Kt[2],source:ht})},this)},parseFFOrSafari:function(Ee){return Ee.stack.split("\n").filter(function(ht){return!ht.match(q)},this).map(function(ht){if(ht.indexOf(" > eval")>-1&&(ht=ht.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===ht.indexOf("@")&&-1===ht.indexOf(":"))return new g({functionName:ht});var Dt=/((.*".+"[^@]*)?[^@]*)(?:@)/,$t=ht.match(Dt),Qt=$t&&$t[1]?$t[1]:void 0,Kt=this.extractLocation(ht.replace(Dt,""));return new g({functionName:Qt,fileName:Kt[0],lineNumber:Kt[1],columnNumber:Kt[2],source:ht})},this)},parseOpera:function(Ee){return!Ee.stacktrace||Ee.message.indexOf("\n")>-1&&Ee.message.split("\n").length>Ee.stacktrace.split("\n").length?this.parseOpera9(Ee):Ee.stack?this.parseOpera11(Ee):this.parseOpera10(Ee)},parseOpera9:function(Ee){for(var Xe=/Line (\d+).*script (?:in )?(\S+)/i,ht=Ee.message.split("\n"),Dt=[],$t=2,Qt=ht.length;$t/,"$2").replace(/\([^)]*\)/g,"")||void 0;Qt.match(/\(([^)]*)\)/)&&(Wt=Qt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var mn=void 0===Wt||"[arguments not available]"===Wt?void 0:Wt.split(",");return new g({functionName:Kt,args:mn,fileName:$t[0],lineNumber:$t[1],columnNumber:$t[2],source:ht})},this)}})}),Te=Ke(function(T,p){p.getArg=function h(nn,vn,$n){if(vn in nn)return nn[vn];if(3===arguments.length)return $n;throw new Error('"'+vn+'" is a required argument.')};var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,z=/^data:.+\,.+$/;function E(nn){var vn=nn.match(g);return vn?{scheme:vn[1],auth:vn[2],host:vn[3],port:vn[4],path:vn[5]}:null}function q(nn){var vn="";return nn.scheme&&(vn+=nn.scheme+":"),vn+="//",nn.auth&&(vn+=nn.auth+"@"),nn.host&&(vn+=nn.host),nn.port&&(vn+=":"+nn.port),nn.path&&(vn+=nn.path),vn}function ve(nn){var vn=nn,$n=E(nn);if($n){if(!$n.path)return nn;vn=$n.path}for(var xo,Ln=p.isAbsolute(vn),no=vn.split(/\/+/),Oi=0,Mi=no.length-1;Mi>=0;Mi--)"."===(xo=no[Mi])?no.splice(Mi,1):".."===xo?Oi++:Oi>0&&(""===xo?(no.splice(Mi+1,Oi),Oi=0):(no.splice(Mi,2),Oi--));return""===(vn=no.join("/"))&&(vn=Ln?"/":"."),$n?($n.path=vn,q($n)):vn}p.urlParse=E,p.urlGenerate=q,p.normalize=ve,p.join=function Ee(nn,vn){""===nn&&(nn="."),""===vn&&(vn=".");var $n=E(vn),Ln=E(nn);if(Ln&&(nn=Ln.path||"/"),$n&&!$n.scheme)return Ln&&($n.scheme=Ln.scheme),q($n);if($n||vn.match(z))return vn;if(Ln&&!Ln.host&&!Ln.path)return Ln.host=vn,q(Ln);var no="/"===vn.charAt(0)?vn:ve(nn.replace(/\/+$/,"")+"/"+vn);return Ln?(Ln.path=no,q(Ln)):no},p.isAbsolute=function(nn){return"/"===nn.charAt(0)||!!nn.match(g)},p.relative=function Xe(nn,vn){""===nn&&(nn="."),nn=nn.replace(/\/$/,"");for(var $n=0;0!==vn.indexOf(nn+"/");){var Ln=nn.lastIndexOf("/");if(Ln<0||(nn=nn.slice(0,Ln)).match(/^([^\/]+:\/)?\/*$/))return vn;++$n}return Array($n+1).join("../")+vn.substr(nn.length+1)};var ht=!("__proto__"in Object.create(null));function Dt(nn){return nn}function Kt(nn){if(!nn)return!1;var vn=nn.length;if(vn<9||95!==nn.charCodeAt(vn-1)||95!==nn.charCodeAt(vn-2)||111!==nn.charCodeAt(vn-3)||116!==nn.charCodeAt(vn-4)||111!==nn.charCodeAt(vn-5)||114!==nn.charCodeAt(vn-6)||112!==nn.charCodeAt(vn-7)||95!==nn.charCodeAt(vn-8)||95!==nn.charCodeAt(vn-9))return!1;for(var $n=vn-10;$n>=0;$n--)if(36!==nn.charCodeAt($n))return!1;return!0}function En(nn,vn){return nn===vn?0:nn>vn?1:-1}p.toSetString=ht?Dt:function $t(nn){return Kt(nn)?"$"+nn:nn},p.fromSetString=ht?Dt:function Qt(nn){return Kt(nn)?nn.slice(1):nn},p.compareByOriginalPositions=function Wt(nn,vn,$n){var Ln=nn.source-vn.source;return 0!==Ln||0!=(Ln=nn.originalLine-vn.originalLine)||0!=(Ln=nn.originalColumn-vn.originalColumn)||$n||0!=(Ln=nn.generatedColumn-vn.generatedColumn)||0!=(Ln=nn.generatedLine-vn.generatedLine)?Ln:nn.name-vn.name},p.compareByGeneratedPositionsDeflated=function mn(nn,vn,$n){var Ln=nn.generatedLine-vn.generatedLine;return 0!==Ln||0!=(Ln=nn.generatedColumn-vn.generatedColumn)||$n||0!=(Ln=nn.source-vn.source)||0!=(Ln=nn.originalLine-vn.originalLine)||0!=(Ln=nn.originalColumn-vn.originalColumn)?Ln:nn.name-vn.name},p.compareByGeneratedPositionsInflated=function Hn(nn,vn){var $n=nn.generatedLine-vn.generatedLine;return 0!==$n||0!=($n=nn.generatedColumn-vn.generatedColumn)||0!==($n=En(nn.source,vn.source))||0!=($n=nn.originalLine-vn.originalLine)||0!=($n=nn.originalColumn-vn.originalColumn)?$n:En(nn.name,vn.name)}}),zt=Ke(function(T,p){function h(g,z,E,q,ve,Ee){var Xe=Math.floor((z-g)/2)+g,ht=ve(E,q[Xe],!0);return 0===ht?Xe:ht>0?z-Xe>1?h(Xe,z,E,q,ve,Ee):Ee==p.LEAST_UPPER_BOUND?z1?h(g,Xe,E,q,ve,Ee):Ee==p.LEAST_UPPER_BOUND?Xe:g<0?-1:g}p.GREATEST_LOWER_BOUND=1,p.LEAST_UPPER_BOUND=2,p.search=function(z,E,q,ve){if(0===E.length)return-1;var Ee=h(-1,E.length,z,E,q,ve||p.GREATEST_LOWER_BOUND);if(Ee<0)return-1;for(;Ee-1>=0&&0===q(E[Ee],E[Ee-1],!0);)--Ee;return Ee}}),nt=Object.prototype.hasOwnProperty;function qe(){this._array=[],this._set=Object.create(null)}qe.fromArray=function(p,h){for(var g=new qe,z=0,E=p.length;z=0&&p=z)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(Ee=ut_decode(p.charCodeAt(h++))))throw new Error("Invalid base64 digit: "+p.charAt(h-1));ve=!!(32&Ee),E+=(Ee&=31)<>1;return 1==(1&T)?-h:h}(E),g.rest=h};function ft(T,p,h){var g=T[p];T[p]=T[h],T[h]=g}function B(T,p,h,g){if(h=0){var q=this._originalMappings[E];if(void 0===p.column)for(var ve=q.originalLine;q&&q.originalLine===ve;)z.push({line:Te.getArg(q,"generatedLine",null),column:Te.getArg(q,"generatedColumn",null),lastColumn:Te.getArg(q,"lastGeneratedColumn",null)}),q=this._originalMappings[++E];else for(var Ee=q.originalColumn;q&&q.originalLine===h&&q.originalColumn==Ee;)z.push({line:Te.getArg(q,"generatedLine",null),column:Te.getArg(q,"generatedColumn",null),lastColumn:Te.getArg(q,"lastGeneratedColumn",null)}),q=this._originalMappings[++E]}return z};var Wn=Zt;function pn(T){var p=T;"string"==typeof T&&(p=JSON.parse(T.replace(/^\)\]\}'/,"")));var h=Te.getArg(p,"version"),g=Te.getArg(p,"sources"),z=Te.getArg(p,"names",[]),E=Te.getArg(p,"sourceRoot",null),q=Te.getArg(p,"sourcesContent",null),ve=Te.getArg(p,"mappings"),Ee=Te.getArg(p,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);g=g.map(String).map(Te.normalize).map(function(Xe){return E&&Te.isAbsolute(E)&&Te.isAbsolute(Xe)?Te.relative(E,Xe):Xe}),this._names=Mt.fromArray(z.map(String),!0),this._sources=Mt.fromArray(g,!0),this.sourceRoot=E,this.sourcesContent=q,this._mappings=ve,this.file=Ee}function qn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(pn.prototype=Object.create(Zt.prototype)).consumer=Zt,pn.fromSourceMap=function(p){var h=Object.create(pn.prototype),g=h._names=Mt.fromArray(p._names.toArray(),!0),z=h._sources=Mt.fromArray(p._sources.toArray(),!0);h.sourceRoot=p._sourceRoot,h.sourcesContent=p._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=p._file;for(var E=p._mappings.toArray().slice(),q=h.__generatedMappings=[],ve=h.__originalMappings=[],Ee=0,Xe=E.length;Ee1&&(Wt.source=ve+En[1],ve+=En[1],Wt.originalLine=E+En[2],E=Wt.originalLine,Wt.originalLine+=1,Wt.originalColumn=q+En[3],q=Wt.originalColumn,En.length>4&&(Wt.name=Ee+En[4],Ee+=En[4])),Kt.push(Wt),"number"==typeof Wt.originalLine&&Qt.push(Wt)}on(Kt,Te.compareByGeneratedPositionsDeflated),this.__generatedMappings=Kt,on(Qt,Te.compareByOriginalPositions),this.__originalMappings=Qt},pn.prototype._findMapping=function(p,h,g,z,E,q){if(p[g]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+p[g]);if(p[z]<0)throw new TypeError("Column must be greater than or equal to 0, got "+p[z]);return zt.search(p,h,E,q)},pn.prototype.computeColumnSpans=function(){for(var p=0;p=0){var z=this._generatedMappings[g];if(z.generatedLine===h.generatedLine){var E=Te.getArg(z,"source",null);null!==E&&(E=this._sources.at(E),null!=this.sourceRoot&&(E=Te.join(this.sourceRoot,E)));var q=Te.getArg(z,"name",null);return null!==q&&(q=this._names.at(q)),{source:E,line:Te.getArg(z,"originalLine",null),column:Te.getArg(z,"originalColumn",null),name:q}}}return{source:null,line:null,column:null,name:null}},pn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(p){return null==p})},pn.prototype.sourceContentFor=function(p,h){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(p=Te.relative(this.sourceRoot,p)),this._sources.has(p))return this.sourcesContent[this._sources.indexOf(p)];var g;if(null!=this.sourceRoot&&(g=Te.urlParse(this.sourceRoot))){var z=p.replace(/^file:\/\//,"");if("file"==g.scheme&&this._sources.has(z))return this.sourcesContent[this._sources.indexOf(z)];if((!g.path||"/"==g.path)&&this._sources.has("/"+p))return this.sourcesContent[this._sources.indexOf("/"+p)]}if(h)return null;throw new Error('"'+p+'" is not in the SourceMap.')},pn.prototype.generatedPositionFor=function(p){var h=Te.getArg(p,"source");if(null!=this.sourceRoot&&(h=Te.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};var g={source:h=this._sources.indexOf(h),originalLine:Te.getArg(p,"line"),originalColumn:Te.getArg(p,"column")},z=this._findMapping(g,this._originalMappings,"originalLine","originalColumn",Te.compareByOriginalPositions,Te.getArg(p,"bias",Zt.GREATEST_LOWER_BOUND));if(z>=0){var E=this._originalMappings[z];if(E.source===g.source)return{line:Te.getArg(E,"generatedLine",null),column:Te.getArg(E,"generatedColumn",null),lastColumn:Te.getArg(E,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var co=pn;function _o(T){var p=T;"string"==typeof T&&(p=JSON.parse(T.replace(/^\)\]\}'/,"")));var h=Te.getArg(p,"version"),g=Te.getArg(p,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new Mt,this._names=new Mt;var z={line:-1,column:0};this._sections=g.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var q=Te.getArg(E,"offset"),ve=Te.getArg(q,"line"),Ee=Te.getArg(q,"column");if(ve=200&&Wt.status<300||"file://"===$t.substr(0,7)&&Wt.responseText?Qt(Wt.responseText):Kt(new Error("HTTP status: "+Wt.status+" retrieving "+$t)))},Wt.send()})}function E($t){if(typeof window<"u"&&window.atob)return window.atob($t);throw new Error("You must supply a polyfill for window.atob in this environment")}function Xe($t){if("object"!==_n($t))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof $t.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof $t.lineNumber||$t.lineNumber%1!=0||$t.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof $t.columnNumber||$t.columnNumber%1!=0||$t.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function $t(Qt){if(!(this instanceof $t))return new $t(Qt);this.sourceCache=(Qt=Qt||{}).sourceCache||{},this.sourceMapConsumerCache=Qt.sourceMapConsumerCache||{},this.ajax=Qt.ajax||z,this._atob=Qt.atob||E,this._get=function(Wt){return new Promise(function(mn,En){var Hn="data:"===Wt.substr(0,5);if(this.sourceCache[Wt])mn(this.sourceCache[Wt]);else if(Qt.offline&&!Hn)En(new Error("Cannot make network requests in offline mode"));else if(Hn){var vn=Wt.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(vn){var Ln=Wt.substr(vn[0].length),no=this._atob(Ln);this.sourceCache[Wt]=no,mn(no)}else En(new Error("The encoding of the inline sourcemap is not supported"))}else{var xo=this.ajax(Wt,{method:"get"});this.sourceCache[Wt]=xo,xo.then(mn,En)}}.bind(this))},this._getSourceMapConsumer=function(Wt,mn){return new Promise(function(En){if(this.sourceMapConsumerCache[Wt])En(this.sourceMapConsumerCache[Wt]);else{var Hn=new Promise(function(nn,vn){return this._get(Wt).then(function($n){"string"==typeof $n&&($n=function q($t){if(typeof JSON<"u"&&JSON.parse)return JSON.parse($t);throw new Error("You must supply a polyfill for JSON.parse in this environment")}($n.replace(/^\)\]\}'/,""))),typeof $n.sourceRoot>"u"&&($n.sourceRoot=mn),nn(new h.SourceMapConsumer($n))},vn)}.bind(this));this.sourceMapConsumerCache[Wt]=Hn,En(Hn)}}.bind(this))},this.pinpoint=function(Wt){return new Promise(function(mn,En){this.getMappedLocation(Wt).then(function(Hn){function nn(){mn(Hn)}this.findFunctionName(Hn).then(mn,nn).catch(nn)}.bind(this),En)}.bind(this))},this.findFunctionName=function(Wt){return new Promise(function(mn,En){Xe(Wt),this._get(Wt.fileName).then(function(nn){var vn=Wt.lineNumber,$n=Wt.columnNumber,Ln=function ve($t,Qt){for(var Kt=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],Wt=$t.split("\n"),mn="",En=Math.min(Qt,20),Hn=0;Hn=0&&(nn=nn.substr(0,vn)),nn){mn=nn+mn;for(var $n=Kt.length,Ln=0;Ln<$n;Ln++){var no=Kt[Ln].exec(mn);if(no&&no[1])return no[1]}}}}(nn,vn);mn(Ln?new g({functionName:Ln,args:Wt.args,fileName:Wt.fileName,lineNumber:vn,columnNumber:$n}):Wt)},En).catch(En)}.bind(this))},this.getMappedLocation=function(Wt){return new Promise(function(mn,En){(function Ee(){if("function"!=typeof Object.defineProperty||"function"!=typeof Object.create)throw new Error("Unable to consume source maps in older browsers")})(),Xe(Wt);var Hn=this.sourceCache,nn=Wt.fileName;this._get(nn).then(function(vn){var $n=function ht($t){for(var Kt,Wt,Qt=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm;Wt=Qt.exec($t);)Kt=Wt[1];if(Kt)return Kt;throw new Error("sourceMappingURL not found")}(vn),Ln="data:"===$n.substr(0,5),no=nn.substring(0,nn.lastIndexOf("/")+1);return"/"!==$n[0]&&!Ln&&!/^https?:\/\/|^\/\//i.test($n)&&($n=no+$n),this._getSourceMapConsumer($n,no).then(function(xo){return function Dt($t,Qt,Kt){return new Promise(function(Wt,mn){var En=Qt.originalPositionFor({line:$t.lineNumber,column:$t.columnNumber});if(En.source){var Hn=Qt.sourceContentFor(En.source);Hn&&(Kt[En.source]=Hn),Wt(new g({functionName:En.name||$t.functionName,args:$t.args,fileName:En.source,lineNumber:En.line,columnNumber:En.column}))}else mn(new Error("Could not get original source for given stackframe and source map"))})}(Wt,xo,Hn).then(mn).catch(function(){mn(Wt)})})}.bind(this),En).catch(En)}.bind(this))}}}(Ko,w)}),mo=Object.freeze(Object.assign(Object.create(null),ui,{default:ui}));function Xn(){return function(p){return p.lift(new di)}}var di=function(){function T(){On(this,T),Ye(this,"hide",!0)}return Nt(T,[{key:"call",value:function(h,g){return g.subscribe(h)}}]),T}(),So=Symbol("stackTraceRef");function Eo(T){var p=Xo(T);return p?p.mappedStackTrace:(0,s.of)([])}function Pi(T){var p=Xo(T);return p?p.stackTrace:[]}function Xo(T){return T[So]}function zi(T,p){return T[So]=p,p}var An=function(T){He(h,T);var p=ae(h);function h(){var g,E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,q=void 0!==E&&E;return On(this,h),Ye(xe(g=p.call(this,"stackTrace")),"sourceCache_",void 0),Ye(xe(g),"sourceMaps_",void 0),g.sourceCache_={},g.sourceMaps_=q,g}return Nt(h,[{key:"beforeSubscribe",value:function(z){var E=this,q=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?zi(z,{mappedStackTrace:(0,L.P)(function(){var ve=new mo({sourceCache:E.sourceCache_});return Promise.all(q.map(function(Ee){return ve.pinpoint(Ee).catch(function(){return Ee})}))}).pipe((0,e.d)(1),Xn()),stackTrace:q}):zi(z,{mappedStackTrace:(0,s.of)(q).pipe(Xn()),stackTrace:q})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(E){var z=!0;return J.parse(E).filter(function(q){var ve=!z;return/coreSubscribe_/.test(q.functionName||"")&&(z=!1),ve})}}}]),h}(Vt),bi=Symbol("cycleDetected"),Si=Symbol("cycleWarned"),tr=function(T){He(h,T);var p=ae(h);function h(g,z){var E;return On(this,h),Ye(xe(E=p.call(this,"cycle")),"logger_",void 0),Ye(xe(E),"nexts_",[]),Ye(xe(E),"spy_",void 0),E.logger_=Me(z),E.spy_=g,E}return Nt(h,[{key:"afterNext",value:function(z,E){this.nexts_.pop()}},{key:"beforeNext",value:function(z,E){var q=this.logger_,ve=this.nexts_,Ee=this.spy_,Xe=z.observable,ht=z.subscription;if(-1!==ve.indexOf(z)&&!ht[bi]&&(ht[bi]=!0,-1===ve.findIndex(function(Kt){return Kt.subscription[Si]}))){ht[Si]=!0;var Dt=Pi(z);0===Dt.length&&Ee.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var $t=Dt.length?"; subscribed at\n".concat(Dt.join("\n")):"",Qt=_t(Xe);q.warn("Cyclic next detected; type = ".concat(Qt,"; value = ").concat(E).concat($t))}ve.push(z)}}]),h}(Vt),Gi=function(T){He(h,T);var p=ae(h);function h(g,z){var E;return On(this,h),Ye(xe(E=p.call(this,"debug(".concat(je(g),")"))),"notifications_",void 0),Ye(xe(E),"matcher_",void 0),E.notifications_=z,E.matcher_=function(q,ve){return Re(q,g)&&-1!==E.notifications_.indexOf(ve)},E}return Nt(h,[{key:"beforeComplete",value:function(z){(0,this.matcher_)(z,"complete")}},{key:"beforeError",value:function(z,E){(0,this.matcher_)(z,"error")}},{key:"beforeNext",value:function(z,E){(0,this.matcher_)(z,"next")}},{key:"beforeSubscribe",value:function(z){(0,this.matcher_)(z,"subscribe")}},{key:"beforeUnsubscribe",value:function(z){(0,this.matcher_)(z,"unsubscribe")}}]),h}(Vt),Or=Symbol("graphRef");function Ei(T){return T[Or]}var Qi=function(T){He(h,T);var p=ae(h);function h(){var g,E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,q=void 0===E?3e4:E;return On(this,h),Ye(xe(g=p.call(this,"graph")),"flushIntervalId_",void 0),Ye(xe(g),"flushQueue_",void 0),Ye(xe(g),"keptDuration_",void 0),Ye(xe(g),"notifications_",void 0),Ye(xe(g),"sentinel_",void 0),g.flushIntervalId_=void 0,g.flushQueue_=[],g.keptDuration_=q,g.notifications_=[],g.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},g.sentinel_.link=g.sentinel_,g.sentinel_.sentinel=g.sentinel_,g}return Nt(h,[{key:"afterNext",value:function(z,E){this.notifications_.pop()}},{key:"afterSubscribe",value:function(z){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(z){this.notifications_.pop(),this.flush_(z)}},{key:"beforeNext",value:function(z,E){this.notifications_.push({notification:"next",ref:z})}},{key:"beforeSubscribe",value:function(z){var E=this.notifications_,q=this.sentinel_,ve=function vr(T,p){return T[Or]=p,p}(z,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:q,rootSink:void 0,sentinel:q,sink:void 0,sources:[],sourcesFlushed:0}),Ee=E.length;if(Ee>0&&"next"===E[Ee-1].notification){var Xe=E[Ee-1].ref,ht=Ei(Xe);ht.flattenings.push(z),ve.link=ht,ve.flattened=!0,ve.rootSink=ht.rootSink||Xe,ve.sink=Xe}else for(var Dt=Ee-1;Dt>-1;--Dt)if("subscribe"===E[Dt].notification){var $t=E[Ee-1].ref,Qt=Ei($t);Qt.sources.push(z),ve.depth=Qt.depth+1,ve.link=Qt,ve.rootSink=Qt.rootSink||$t,ve.sink=$t;break}ve.link===ve.sentinel&&ve.sentinel.sources.push(z),E.push({notification:"subscribe",ref:z})}},{key:"beforeUnsubscribe",value:function(z){this.notifications_.push({notification:"unsubscribe",ref:z})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(z){var E=this,q=Ei(z),Ee=q.sources;if(z.unsubscribed&&q.flattenings.every(function($t){return $t.unsubscribed})&&Ee.every(function($t){return $t.unsubscribed})){var Xe=this.keptDuration_,ht=q.link,Dt=function(){var Qt=ht.flattenings,Kt=ht.sources,Wt=Qt.indexOf(z);-1!==Wt&&(Qt.splice(Wt,1),++ht.flatteningsFlushed);var mn=Kt.indexOf(z);-1!==mn&&(Kt.splice(mn,1),++ht.sourcesFlushed)};0===Xe?Dt():Xe>0&&Xe<1/0&&(this.flushQueue_.push({due:Date.now()+Xe,flush:Dt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var $t=Date.now();E.flushQueue_=E.flushQueue_.filter(function(Qt){return Qt.due>$t||(Qt.flush(),!1)}),0===E.flushQueue_.length&&(clearInterval(E.flushIntervalId_),E.flushIntervalId_=void 0)},Xe)))}}}]),h}(Vt),ur=function(T){He(h,T);var p=ae(h);function h(g,z){var E,ve=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,Ee=void 0===ve||ve;return On(this,h),Ye(xe(E=p.call(this,"let(".concat(je(g),")"))),"match_",void 0),Ye(xe(E),"select_",void 0),E.match_=g,E.select_=Ee?z:function(Xe){return(0,Q.T)(A,z(Xe))},E}return Nt(h,[{key:"select",value:function(z){var q=this.select_;if(Re(z,this.match_))return q}}]),h}(Vt),dr=function(T){He(h,T);var p=ae(h);function h(g,z){var E;On(this,h),Ye(xe(E=p.call(this,"log(".concat(je(z),")"))),"auditor_",void 0),Ye(xe(E),"logger_",void 0),Ye(xe(E),"notificationMatch_",void 0),Ye(xe(E),"tagMatch_",void 0),E.auditor_=g.auditor,E.tagMatch_=z;var q=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:E.notificationMatch_=q,E.logger_=Me(he);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(E.notificationMatch_=arguments.length<=2?void 0:arguments[2],E.logger_=Me(he)):(E.notificationMatch_=q,E.logger_=Me(arguments.length<=2?void 0:arguments[2]));break;default:E.notificationMatch_=arguments.length<=2?void 0:arguments[2],E.logger_=Me(arguments.length<=3?void 0:arguments[3])}return E}return Nt(h,[{key:"beforeComplete",value:function(z){this.log_(z,"complete")}},{key:"beforeError",value:function(z,E){this.log_(z,"error",E)}},{key:"beforeNext",value:function(z,E){this.log_(z,"next",E)}},{key:"beforeSubscribe",value:function(z){this.log_(z,"subscribe")}},{key:"beforeUnsubscribe",value:function(z){this.log_(z,"unsubscribe")}},{key:"log_",value:function(z,E,q){var ve=this,Ee=this.auditor_,Xe=this.notificationMatch_,ht=this.tagMatch_;Re(z,ht)&&Re(z,Xe,E)&&Ee.audit(this,function(Dt){var $t=ve.logger_,Qt=z.observable,Kt=yt(Qt),Wt=_t(Qt),mn="string"==typeof ht?"":"; matching ".concat(je(ht)),En=0===Dt?"":"; ignored ".concat(Dt),Hn=Kt?"Tag = ".concat(Kt,"; notification = ").concat(E).concat(mn).concat(En):"Type = ".concat(Wt,"; notification = ").concat(E).concat(mn).concat(En);switch(E){case"error":$t.error("".concat(Hn,"; error ="),q);break;case"next":$t.log("".concat(Hn,"; value ="),q);break;default:$t.log(Hn)}})}}]),h}(Vt),lo=function(){function T(p){On(this,T),Ye(this,"teardown",void 0),Ye(this,"match_",void 0),Ye(this,"paused_",!0),Ye(this,"states_",new Map),Ye(this,"stats_",void 0),this.match_=p,this.stats_=new N.x}return Nt(T,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(g){g.notifications_=g.notifications_.filter(function(z){return!h(z)})}),this.broadcast_()}},{key:"log",value:function(){var g=Me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:he);g.group("Deck matching ".concat(je(this.match_))),g.log("Paused =",this.paused_),this.states_.forEach(function(z){g.group("Observable; tag = ".concat(z.tag_)),g.log("Notifications =",z.notifications_),g.groupEnd()}),g.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(h){for(;h.notifications_.length>0;)h.subject_.next(h.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(h){var g=this,z=h.observable;return function(E){var q=g.states_.get(z);return q?q.subscription_.unsubscribe():(q={notifications_:[],subject_:new N.x,subscription_:void 0,tag_:yt(z)},g.states_.set(z,q)),q.subscription_=E.pipe(function P(){return(0,R.e)((T,p)=>{T.subscribe((0,O.x)(p,h=>{p.next(Z.createNext(h))},()=>{p.next(Z.createComplete()),p.complete()},h=>{p.next(Z.createError(h)),p.complete()}))})}(),Xn()).subscribe({next:function(Ee){g.paused_?q.notifications_.push(Ee):q.subject_.next(Ee),g.broadcast_()}}),g.broadcast_(),q.subject_.asObservable().pipe(function x(){return(0,R.e)((T,p)=>{T.subscribe((0,O.x)(p,h=>F(h,p)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(h){h.notifications_.length>0&&h.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(h){h.notifications_.length>0&&h.subject_.next(h.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(h){h.subscription_&&(h.subscription_.unsubscribe(),h.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var h=this.paused_,z=this.stats_,E=0;this.states_.forEach(function(q){return E+=q.notifications_.length}),z.next({notifications:E,paused:h})}}]),T}(),Oo=function(T){He(h,T);var p=ae(h);function h(g){var z;return On(this,h),Ye(xe(z=p.call(this,"pause(".concat(je(g),")"))),"match_",void 0),Ye(xe(z),"deck_",void 0),z.deck_=new lo(g),z.match_=g,z}return Nt(h,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(z){var E=this.deck_;if(Re(z,this.match_))return E.select(z)}},{key:"teardown",value:function(){var z=this.deck_;z&&(z.resume(),z.unsubscribe())}}]),h}(Vt),Po=Symbol("snapshotRef");function Jo(T){return T[Po]}function Ro(T){var p=[(0,s.of)(null)];return T.forEach(function(g){g.subscriptions?g.subscriptions.forEach(h):h(g)}),(0,V.D)(p).pipe((0,de.h)(void 0),Xn());function h(g){p.push(g.mappedStackTrace),g.rootSink&&p.push(g.rootSink.mappedStackTrace)}}var qo=function(T){He(h,T);var p=ae(h);function h(g){var z,q=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,ve=void 0===q?4:q;return On(this,h),Ye(xe(z=p.call(this,"snapshot")),"keptValues_",void 0),Ye(xe(z),"sentinel_",void 0),Ye(xe(z),"spy_",void 0),z.keptValues_=ve,z.sentinel_=void 0,z.spy_=g,z}return Nt(h,[{key:"afterUnsubscribe",value:function(z){var E=Jo(z);E.tick=this.spy_.tick,E.unsubscribed=!0}},{key:"beforeComplete",value:function(z){var E=Jo(z);E.tick=this.spy_.tick,E.complete=!0}},{key:"beforeError",value:function(z,E){var q=Jo(z);q.tick=this.spy_.tick,q.error=E}},{key:"beforeNext",value:function(z,E){var q=this.spy_.tick,ve=Jo(z);ve.tick=q,ve.values.push({tick:q,timestamp:Date.now(),value:E});var Xe=ve.values.length-this.keptValues_;Xe>0&&(ve.values.splice(0,Xe),ve.valuesFlushed+=Xe)}},{key:"beforeSubscribe",value:function(z){!function Wo(T,p){T[Po]=p}(z,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var E=Ei(z);E?this.sentinel_=E.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var E=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,q=new Map,ve=new Map,Ee=new Map,Xe=this.getSubscriptionRefs_();return Xe.forEach(function(ht,Dt){var $t,Qt=Dt.observable,Kt=Dt.subscriber,Wt=Dt.subscription,mn=Ei(Dt),En=mn.flatteningsFlushed,Hn=mn.sourcesFlushed,nn=Jo(Dt),Ln=nn.tick,no=nn.timestamp,xo=nn.unsubscribed,Oi=nn.values,Mi=nn.valuesFlushed,rs={complete:nn.complete,error:nn.error,flattenings:new Map,flatteningsFlushed:En,id:It(Dt),mappedStackTrace:Eo(Dt),observable:Qt,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:Hn,stackTrace:Pi(Dt),subscriber:Kt,subscription:Wt,tick:Ln,timestamp:no,unsubscribed:xo};Ee.set(Wt,rs);var Ri=ve.get(Kt);Ri||(Ri={id:It(Kt),subscriber:Kt,subscriptions:new Map,tick:Ln,values:[],valuesFlushed:0},ve.set(Kt,Ri)),Ri.subscriptions.set(Wt,rs),Ri.tick=Math.max(Ri.tick,Ln),($t=Ri.values).push.apply($t,Ge(Oi)),Ri.valuesFlushed+=Mi;var gr=q.get(Qt);gr||(gr={id:It(Qt),observable:Qt,path:gt(Qt),subscriptions:new Map,tag:yt(Qt),tick:Ln,type:_t(Qt)},q.set(Qt,gr)),gr.subscriptions.set(Wt,rs),gr.tick=Math.max(gr.tick,Ln)}),Xe.forEach(function(ht,Dt){var $t=Ei(Dt),Qt=Ee.get(Dt.subscription);$t.sink&&(Qt.sink=Ee.get($t.sink.subscription)),$t.rootSink&&(Qt.rootSink=Ee.get($t.rootSink.subscription)),$t.flattenings.forEach(function(Kt){return Qt.flattenings.set(Kt.subscription,Ee.get(Kt.subscription))}),$t.sources.forEach(function(Kt){return Qt.sources.set(Kt.subscription,Ee.get(Kt.subscription))})}),ve.forEach(function(ht){ht.values.sort(function(Dt,$t){return Dt.tick-$t.tick})}),void 0!==E&&(q.forEach(function(ht,Dt){ht.tick<=E.tick&&q.delete(Dt)}),ve.forEach(function(ht,Dt){ht.tick<=E.tick&&ve.delete(Dt)}),Ee.forEach(function(ht,Dt){ht.tick<=E.tick&&Ee.delete(Dt)})),{mapStackTraces:Ro,observables:q,subscribers:ve,subscriptions:Ee,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(z){return this.snapshotAll().observables.get(z.observable)}},{key:"snapshotSubscriber",value:function(z){return this.snapshotAll().subscribers.get(z.subscriber)}},{key:"addSubscriptionRefs_",value:function(z,E){var q=this;E.set(z,!0);var ve=Ei(z);ve.flattenings.forEach(function(Ee){return q.addSubscriptionRefs_(Ee,E)}),ve.sources.forEach(function(Ee){return q.addSubscriptionRefs_(Ee,E)})}},{key:"getSubscriptionRefs_",value:function(){var z=this,E=this.sentinel_,q=new Map;return E&&E.sources.forEach(function(ve){return z.addSubscriptionRefs_(ve,q)}),q}}]),h}(Vt),Ti=function(T){He(h,T);var p=ae(h);function h(g){var z;return On(this,h),Ye(xe(z=p.call(this,"stats")),"spy_",void 0),Ye(xe(z),"stats_",void 0),Ye(xe(z),"time_",void 0),z.spy_=g,z.stats_={completes:0,errors:0,flattenedSubscribes:0,leafSubscribes:0,maxDepth:0,nexts:0,rootSubscribes:0,subscribes:0,tick:0,timespan:0,totalDepth:0,unsubscribes:0},z.time_=0,z}return Nt(h,[{key:"afterSubscribe",value:function(z){var E=this.stats_,q=Ei(z);if(q){var ve=q.depth,Ee=q.flattened,Xe=q.flattenings,ht=q.flatteningsFlushed,$t=q.sources,Qt=q.sourcesFlushed;q.rootSink||(E.rootSubscribes+=1),Ee&&(E.flattenedSubscribes+=1),Xe.length+ht+$t.length+Qt===0&&(E.maxDepth0&&(this.timeoutId_=setTimeout(function(){for(var q=Date.now()-g;z.length>0&&z[0].timestamp<=q;){var ve=z.shift();ve.task(ve.ignored)}h.timeoutId_=void 0,h.wait_()},Math.max(0,z[0].timestamp+g-Date.now())))}}]),T}(),Hi=function(){function T(p){On(this,T),Ye(this,"detectorRecords_",void 0),Ye(this,"snapshotPlugin_",void 0),Ye(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=p.find(qo),this.spy_=p}return Nt(T,[{key:"detect",value:function(h){var g=this.detectorRecords_,z=this.snapshotPlugin_,E=this.spy_;if(z){var q=g.get(h),ve=this.record_(z.snapshotAll());if(q?q.snapshotRecords.push(ve):g.set(h,q={snapshotRecords:[ve]}),q.snapshotRecords.length>2&&q.snapshotRecords.shift(),!(q.snapshotRecords.length<2)){var Ee=function De(T,p){return function sn(T){if(Array.isArray(T))return T}(T)||function st(T,p){var h=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(null!=h){var q,ve,g=[],z=!0,E=!1;try{for(h=h.call(T);!(z=(q=h.next()).done)&&(g.push(q.value),!p||g.length!==p);z=!0);}catch(Ee){E=!0,ve=Ee}finally{try{!z&&null!=h.return&&h.return()}finally{if(E)throw ve}}return g}}(T,p)||it(T,p)||function wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(q.snapshotRecords,2);return this.compare_(h,Ee[0],Ee[1])}}else E.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(h,g,z){var E=[],q=[],ve=[],Ee=[],Xe=g.rootSubscriptions,ht=z.rootSubscriptions;if(Xe.forEach(function(Dt,$t){ht.has($t)||q.push(Dt)}),ht.forEach(function(Dt,$t){var Qt=Xe.get($t);if(Qt){var Kt=Qt.flattenings,Wt=Dt.flattenings;Kt.forEach(function(mn,En){Wt.has(En)||Ee.push(mn)}),Wt.forEach(function(mn,En){Kt.has(En)||ve.push(mn)})}else E.push(Dt)}),0!==ve.length||0!==Ee.length||0!==E.length||0!==q.length)return{flatteningSubscriptions:ve,flatteningUnsubscriptions:Ee,subscriptions:E.map(function(Dt){return Dt.subscriptionSnapshot}),unsubscriptions:q.map(function(Dt){return Dt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(h,g){var z=g.flattenings,E=g.subscriptionSnapshot;h.subscriptions.forEach(function(q){q.rootSink===E&&q.flattenings.forEach(function(ve){var Ee=ve.subscription;Ee.closed||z.set(Ee,ve)})})}},{key:"findRootSubscriptions_",value:function(h,g){var z=this;h.observables.forEach(function(E){E.subscriptions.forEach(function(q){var ht=q.subscription;if(!(q.complete||q.error||q.sink||ht.closed)){var Dt={flattenings:new Map,subscriptionSnapshot:q};z.findFlatteningSubscriptions_(h,Dt),g.set(ht,Dt)}})})}},{key:"record_",value:function(h){var g=new Map;return this.findRootSubscriptions_(h,g),{rootSubscriptions:g,snapshot:h}}}]),T}();var so=v.y.prototype.subscribe,Ue={},se=function(){function T(){var p=this,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(On(this,T),Ye(this,"auditor_",void 0),Ye(this,"defaultLogger_",void 0),Ye(this,"maxLogged_",20),Ye(this,"plugins_",void 0),Ye(this,"pluginsSubject_",void 0),Ye(this,"teardown_",void 0),Ye(this,"tick_",void 0),Ye(this,"undos_",void 0),Ye(this,"warned_",void 0),T.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");h.warning&&console.warn("Spying on Observable.prototype.subscribe."),T.spy_=this,v.y.prototype.subscribe=T.coreSubscribe_,this.auditor_=new ji(h.audit||0),this.defaultLogger_=h.defaultLogger||he,this.plugins_=!1===h.defaultPlugins?[]:[new An(h),new Qi(h),new qo(this,h),new tr(this,this.defaultLogger_),new Ti(this)],this.pluginsSubject_=new U.X(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var g=new Hi(this);re(function(z){return p.detect_(z,g)}),typeof window<"u"&&[h.global||"spy","rxSpy"].forEach(function(z){window.hasOwnProperty(z)&&(p.defaultLogger_.log("Overwriting window.".concat(z)),Ue[z]=window[z]),window[z]=function Yn(T){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(g){p();var z=T.findAll(Oo);if(void 0!==g){var q=z[g-1];return q?q.deck:void 0}var E=Me(he);E.group("".concat(z.length," Deck(s)")),z.forEach(function(ve,Ee){return E.log("".concat(Ee+1," pause(").concat(ve.name,")"))}),E.groupEnd()},debug:function(){p();for(var g=arguments.length,z=new Array(g),E=0;E0&&void 0!==arguments[0]?arguments[0]:"";p(),function me(T){j(T)}(g)},flush:function(){p(),T.flush()},inferPath:gt,inferType:_t,let:function(){p();for(var g=arguments.length,z=new Array(g),E=0;E1?g-1:0),E=1;Eht?Xe.length-ht:0;Dt&&Xe.splice(ht,Dt),Ee.group("".concat(Xe.length+Dt," snapshot(s) found"));var $t=Xe.length>3?"groupCollapsed":"group";Xe.forEach(function(Qt){var Kt=Qt.observable;Ee[$t].call(Ee,Kt.tag?"Tag = ".concat(Kt.tag):"Type = ".concat(Kt.type)),Ee.log("Path =",Kt.path);var Wt=Qt.subs,mn=Qt.subs.length>3?"groupCollapsed":"group";Ee.group("".concat(Wt.length," subscriber(s)")),Wt.forEach(function(En){var Hn=En.subscription,nn=En.subscriber,vn=nn.values,$n=nn.valuesFlushed;Ee[mn].call(Ee,"Subscriber"),Ee.log("Value count =",vn.length+$n),vn.length>0&&Ee.log("Last value =",vn[vn.length-1].value),Qe(Ee,Hn),Array.from(nn.subscriptions.values()).filter(function(no){return no!==Hn}).forEach(function(no){Ee.groupCollapsed("Other subscription"),Qe(Ee,no),Ee.groupEnd()}),Ee.groupEnd()}),Ee.groupEnd(),Ee.groupEnd()}),Dt&&Ee.log("... another ".concat(Dt," snapshot(s) not logged.")),Ee.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(h,g){var z=/.+/;h?"function"==typeof h.log&&(g=h,h=z):h=z;var E=this.find(qo);if(E){var q=E.snapshotAll(),ve=Array.from(q.observables.values()).filter(function(Dt){return Re(Dt.observable,h)}),Ee=Me(g||this.defaultLogger_),Xe=this.maxLogged_,ht=ve.length>Xe?ve.length-Xe:0;ht&&ve.splice(Xe,ht),q.mapStackTraces(ve).subscribe(function(){Ee.group("".concat(ve.length+ht," snapshot(s) matching ").concat(je(h)));var Dt=ve.length>3?"groupCollapsed":"group";ve.forEach(function($t){Ee[Dt].call(Ee,$t.tag?"Tag = ".concat($t.tag):"Type = ".concat($t.type)),Ee.log("Path =",$t.path);var Qt=$t.subscriptions,Kt=Qt.size>3?"groupCollapsed":"group";Ee.group("".concat(Qt.size," subscriber(s)")),Qt.forEach(function(Wt){var mn=q.subscribers.get(Wt.subscriber);if(mn){var En=mn.values,Hn=mn.valuesFlushed;Ee[Kt].call(Ee,"Subscriber"),Ee.log("Value count =",En.length+Hn),En.length>0&&Ee.log("Last value =",En[En.length-1].value),Qe(Ee,Wt),Array.from(mn.subscriptions.values()).filter(function(vn){return vn!==Wt}).forEach(function(vn){Ee.groupCollapsed("Other subscription"),Qe(Ee,vn),Ee.groupEnd()}),Ee.groupEnd()}else Ee.warn("Cannot find subscriber snapshot")}),Ee.groupEnd(),Ee.groupEnd()}),ht&&Ee.log("... another ".concat(ht," snapshot(s) not logged.")),Ee.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(h){var g=this.find(Ti);if(g){var z=g.stats,E=z.leafSubscribes,q=z.maxDepth,ve=z.flattenedSubscribes,Ee=z.rootSubscribes,Xe=z.totalDepth,ht=Me(h||this.defaultLogger_);ht.group("Stats"),ht.log("Subscribes =",z.subscribes),Ee>0&&ht.log("Root subscribes =",Ee),E>0&&ht.log("Leaf subscribes =",E),ve>0&&ht.log("Flattened subscribes =",ve),ht.log("Unsubscribes =",z.unsubscribes),ht.log("Nexts =",z.nexts),ht.log("Errors =",z.errors),ht.log("Completes =",z.completes),q>0&&(ht.log("Max. depth =",q),ht.log("Avg. depth =",(Xe/E).toFixed(1))),ht.log("Tick =",z.tick),ht.log("Timespan =",z.timespan),ht.groupEnd()}else this.warnOnce(console,"Stats are not enabled.")}},{key:"teardown",value:function(){this.teardown_&&(this.teardown_(),this.teardown_=void 0)}},{key:"unplug",value:function(){for(var h=this,g=arguments.length,z=new Array(g),E=0;E2?z-2:0),q=2;q2?E-2:0),ve=2;ve0){this.preSelectSubject||(this.preSelectSubject=new N.x),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var mn=this.preSelectSubject.asObservable();Wt.forEach(function(En){return mn=En(mn)}),this.postSelectSubscription=mn.pipe(Xn()).subscribe(Dt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(Kt){this.preSelectSubject?this.preSelectSubject.next(Kt):this.postSelectObserver.next(Kt)},postSelectObserver:Dt,postSelectSubscription:void 0,preSelectSubject:void 0,unsubscribe:function(){this.unsubscribed||(this.unsubscribed=!0,!this.completed&&!this.errored&&this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0))},unsubscribed:!1};return Ee.add(g.pluginsSubject_.pipe(Xn()).subscribe({next:function(Kt){return $t.let(Kt)}})),ve(function(Qt){return Qt.beforeSubscribe(Xe)},function(){Ee.add(so.call(h,$t)),Ee.add(function(){return $t.unsubscribe()})},function(Qt){return Qt.afterSubscribe(Xe)}),Ee}}]),T}();function Qe(T,p){var g=p.error,z=p.unsubscribed;T.log("State =",p.complete?"complete":g?"error":"incomplete"),g&&T.error("Error =",g),z&&T.log("Unsubscribed =",!0),function we(T,p){var g=p.rootSink;(g?g.mappedStackTrace:p.mappedStackTrace).subscribe(function(E){return T.log("Root subscribe",E)})}(T,p)}Ye(se,"spy_",void 0);var fn=a(6814);const qt=void 0,Nn=["en",[["a","p"],["AM","PM"],qt],[["AM","PM"],qt,qt],[["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"]],qt,[["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"]],qt,[["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}",qt,"{1} 'at' {0}",qt],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cn(T){const h=Math.floor(Math.abs(T)),g=T.toString().replace(/^[^.]*\.?/,"").length;return 1===h&&0===g?1:5}];var Sn=a(9862),dn=a(6825);function Qn(T){return new i.vHH(3e3,!1)}function Fi(T){switch(T.length){case 0:return new dn.ZN;case 1:return T[0];default:return new dn.ZE(T)}}function _r(T,p,h=new Map,g=new Map){const z=[],E=[];let q=-1,ve=null;if(p.forEach(Ee=>{const Xe=Ee.get("offset"),ht=Xe==q,Dt=ht&&ve||new Map;Ee.forEach(($t,Qt)=>{let Kt=Qt,Wt=$t;if("offset"!==Qt)switch(Kt=T.normalizePropertyName(Kt,z),Wt){case dn.k1:Wt=h.get(Qt);break;case dn.l3:Wt=g.get(Qt);break;default:Wt=T.normalizeStyleValue(Qt,Kt,Wt,z)}Dt.set(Kt,Wt)}),ht||E.push(Dt),ve=Dt,q=Xe}),z.length)throw function ke(T){return new i.vHH(3502,!1)}();return E}function ls(T,p,h,g){switch(p){case"start":T.onStart(()=>g(h&&Se(h,"start",T)));break;case"done":T.onDone(()=>g(h&&Se(h,"done",T)));break;case"destroy":T.onDestroy(()=>g(h&&Se(h,"destroy",T)))}}function Se(T,p,h){const E=ye(T.element,T.triggerName,T.fromState,T.toState,p||T.phaseName,h.totalTime??T.totalTime,!!h.disabled),q=T._data;return null!=q&&(E._data=q),E}function ye(T,p,h,g,z="",E=0,q){return{element:T,triggerName:p,fromState:h,toState:g,phaseName:z,totalTime:E,disabled:!!q}}function pe(T,p,h){let g=T.get(p);return g||T.set(p,g=h),g}function ct(T){const p=T.indexOf(":");return[T.substring(1,p),T.slice(p+1)]}const zn=(()=>typeof document>"u"?null:document.documentElement)();function Gn(T){const p=T.parentNode||T.host||null;return p===zn?null:p}let si=null,wr=!1;function Gs(T,p){for(;p;){if(p===T)return!0;p=Gn(p)}return!1}function us(T,p,h){if(h)return Array.from(T.querySelectorAll(p));const g=T.querySelector(p);return g?[g]:[]}let $r=(()=>{class T{validateStyleProperty(h){return function Ds(T){si||(si=function Us(){return typeof document<"u"?document.body:null}()||{},wr=!!si.style&&"WebkitAppearance"in si.style);let p=!0;return si.style&&!function fi(T){return"ebkit"==T.substring(1,6)}(T)&&(p=T in si.style,!p&&wr&&(p="Webkit"+T.charAt(0).toUpperCase()+T.slice(1)in si.style)),p}(h)}matchesElement(h,g){return!1}containsElement(h,g){return Gs(h,g)}getParentElement(h){return Gn(h)}query(h,g,z){return us(h,g,z)}computeStyle(h,g,z){return z||""}animate(h,g,z,E,q,ve=[],Ee){return new dn.ZN(z,E)}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})(),Yr=(()=>{class T{}return T.NOOP=new $r,T})();const or=1e3,pr="ng-enter",Os="ng-leave",Pr="ng-trigger",Mr=".ng-trigger",Gr="ng-animating",Qs=".ng-animating";function Ir(T){if("number"==typeof T)return T;const p=T.match(/^(-?[\.\d]+)(m?s)/);return!p||p.length<2?0:ds(parseFloat(p[1]),p[2])}function ds(T,p){return"s"===p?T*or:T}function hr(T,p,h){return T.hasOwnProperty("duration")?T:function lc(T,p,h){let z,E=0,q="";if("string"==typeof T){const ve=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ve)return p.push(Qn()),{duration:0,delay:0,easing:""};z=ds(parseFloat(ve[1]),ve[2]);const Ee=ve[3];null!=Ee&&(E=ds(parseFloat(Ee),ve[4]));const Xe=ve[5];Xe&&(q=Xe)}else z=T;if(!h){let ve=!1,Ee=p.length;z<0&&(p.push(function In(){return new i.vHH(3100,!1)}()),ve=!0),E<0&&(p.push(function Vn(){return new i.vHH(3101,!1)}()),ve=!0),ve&&p.splice(Ee,0,Qn())}return{duration:z,delay:E,easing:q}}(T,p,h)}function br(T,p={}){return Object.keys(T).forEach(h=>{p[h]=T[h]}),p}function Ea(T){const p=new Map;return Object.keys(T).forEach(h=>{p.set(h,T[h])}),p}function Sr(T,p=new Map,h){if(h)for(let[g,z]of h)p.set(g,z);for(let[g,z]of T)p.set(g,z);return p}function ir(T,p,h){p.forEach((g,z)=>{const E=Ws(z);h&&!h.has(z)&&h.set(z,T.style[E]),T.style[E]=g})}function ts(T,p){p.forEach((h,g)=>{const z=Ws(g);T.style[z]=""})}function Ar(T){return Array.isArray(T)?1==T.length?T[0]:(0,dn.vP)(T):T}const ns=new RegExp("{{\\s*(.+?)\\s*}}","g");function js(T){let p=[];if("string"==typeof T){let h;for(;h=ns.exec(T);)p.push(h[1]);ns.lastIndex=0}return p}function ps(T,p,h){const g=T.toString(),z=g.replace(ns,(E,q)=>{let ve=p[q];return null==ve&&(h.push(function jn(T){return new i.vHH(3003,!1)}()),ve=""),ve.toString()});return z==g?T:z}function hs(T){const p=[];let h=T.next();for(;!h.done;)p.push(h.value),h=T.next();return p}const xa=/-+([a-z0-9])/g;function Ws(T){return T.replace(xa,(...p)=>p[1].toUpperCase())}function Ni(T,p,h){switch(p.type){case 7:return T.visitTrigger(p,h);case 0:return T.visitState(p,h);case 1:return T.visitTransition(p,h);case 2:return T.visitSequence(p,h);case 3:return T.visitGroup(p,h);case 4:return T.visitAnimate(p,h);case 5:return T.visitKeyframes(p,h);case 6:return T.visitStyle(p,h);case 8:return T.visitReference(p,h);case 9:return T.visitAnimateChild(p,h);case 10:return T.visitAnimateRef(p,h);case 11:return T.visitQuery(p,h);case 12:return T.visitStagger(p,h);default:throw function eo(T){return new i.vHH(3004,!1)}()}}function Js(T,p){return window.getComputedStyle(T)[p]}const At="*";function hn(T,p){const h=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(g=>function Tn(T,p,h){if(":"==T[0]){const Ee=function to(T,p){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,g)=>parseFloat(g)>parseFloat(h);case":decrement":return(h,g)=>parseFloat(g) *"}}(T,h);if("function"==typeof Ee)return void p.push(Ee);T=Ee}const g=T.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return h.push(function gi(T){return new i.vHH(3015,!1)}()),p;const z=g[1],E=g[2],q=g[3];p.push(Vo(z,q));"<"==E[0]&&!(z==At&&q==At)&&p.push(Vo(q,z))}(g,h,p)):h.push(T),h}const Qo=new Set(["true","1"]),go=new Set(["false","0"]);function Vo(T,p){const h=Qo.has(T)||go.has(T),g=Qo.has(p)||go.has(p);return(z,E)=>{let q=T==At||T==z,ve=p==At||p==E;return!q&&h&&"boolean"==typeof z&&(q=z?Qo.has(T):go.has(T)),!ve&&g&&"boolean"==typeof E&&(ve=E?Qo.has(p):go.has(p)),q&&ve}}const vi=new RegExp("s*:selfs*,?","g");function jo(T,p,h,g){return new Ci(T).build(p,h,g)}class Ci{constructor(p){this._driver=p}build(p,h,g){const z=new rr(h);return this._resetContextStyleTimingState(z),Ni(this,Ar(p),z)}_resetContextStyleTimingState(p){p.currentQuerySelector="",p.collectedStyles=new Map,p.collectedStyles.set("",new Map),p.currentTime=0}visitTrigger(p,h){let g=h.queryCount=0,z=h.depCount=0;const E=[],q=[];return"@"==p.name.charAt(0)&&h.errors.push(function yo(){return new i.vHH(3006,!1)}()),p.definitions.forEach(ve=>{if(this._resetContextStyleTimingState(h),0==ve.type){const Ee=ve,Xe=Ee.name;Xe.toString().split(/\s*,\s*/).forEach(ht=>{Ee.name=ht,E.push(this.visitState(Ee,h))}),Ee.name=Xe}else if(1==ve.type){const Ee=this.visitTransition(ve,h);g+=Ee.queryCount,z+=Ee.depCount,q.push(Ee)}else h.errors.push(function Kn(){return new i.vHH(3007,!1)}())}),{type:7,name:p.name,states:E,transitions:q,queryCount:g,depCount:z,options:null}}visitState(p,h){const g=this.visitStyle(p.styles,h),z=p.options&&p.options.params||null;if(g.containsDynamicStyles){const E=new Set,q=z||{};g.styles.forEach(ve=>{ve instanceof Map&&ve.forEach(Ee=>{js(Ee).forEach(Xe=>{q.hasOwnProperty(Xe)||E.add(Xe)})})}),E.size&&(hs(E.values()),h.errors.push(function Fo(T,p){return new i.vHH(3008,!1)}()))}return{type:0,name:p.name,style:g,options:z?{params:z}:null}}visitTransition(p,h){h.queryCount=0,h.depCount=0;const g=Ni(this,Ar(p.animation),h);return{type:1,matchers:hn(p.expr,h.errors),animation:g,queryCount:h.queryCount,depCount:h.depCount,options:sr(p.options)}}visitSequence(p,h){return{type:2,steps:p.steps.map(g=>Ni(this,g,h)),options:sr(p.options)}}visitGroup(p,h){const g=h.currentTime;let z=0;const E=p.steps.map(q=>{h.currentTime=g;const ve=Ni(this,q,h);return z=Math.max(z,h.currentTime),ve});return h.currentTime=z,{type:3,steps:E,options:sr(p.options)}}visitAnimate(p,h){const g=function Er(T,p){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Da(hr(T,p).duration,0,"");const h=T;if(h.split(/\s+/).some(E=>"{"==E.charAt(0)&&"{"==E.charAt(1))){const E=Da(0,0,"");return E.dynamic=!0,E.strValue=h,E}const z=hr(h,p);return Da(z.duration,z.delay,z.easing)}(p.timings,h.errors);h.currentAnimateTimings=g;let z,E=p.styles?p.styles:(0,dn.oB)({});if(5==E.type)z=this.visitKeyframes(E,h);else{let q=p.styles,ve=!1;if(!q){ve=!0;const Xe={};g.easing&&(Xe.easing=g.easing),q=(0,dn.oB)(Xe)}h.currentTime+=g.duration+g.delay;const Ee=this.visitStyle(q,h);Ee.isEmptyStep=ve,z=Ee}return h.currentAnimateTimings=null,{type:4,timings:g,style:z,options:null}}visitStyle(p,h){const g=this._makeStyleAst(p,h);return this._validateStyleAst(g,h),g}_makeStyleAst(p,h){const g=[],z=Array.isArray(p.styles)?p.styles:[p.styles];for(let ve of z)"string"==typeof ve?ve===dn.l3?g.push(ve):h.errors.push(new i.vHH(3002,!1)):g.push(Ea(ve));let E=!1,q=null;return g.forEach(ve=>{if(ve instanceof Map&&(ve.has("easing")&&(q=ve.get("easing"),ve.delete("easing")),!E))for(let Ee of ve.values())if(Ee.toString().indexOf("{{")>=0){E=!0;break}}),{type:6,styles:g,easing:q,offset:p.offset,containsDynamicStyles:E,options:null}}_validateStyleAst(p,h){const g=h.currentAnimateTimings;let z=h.currentTime,E=h.currentTime;g&&E>0&&(E-=g.duration+g.delay),p.styles.forEach(q=>{"string"!=typeof q&&q.forEach((ve,Ee)=>{const Xe=h.collectedStyles.get(h.currentQuerySelector),ht=Xe.get(Ee);let Dt=!0;ht&&(E!=z&&E>=ht.startTime&&z<=ht.endTime&&(h.errors.push(function To(T,p,h,g,z){return new i.vHH(3010,!1)}()),Dt=!1),E=ht.startTime),Dt&&Xe.set(Ee,{startTime:E,endTime:z}),h.options&&function ws(T,p,h){const g=p.params||{},z=js(T);z.length&&z.forEach(E=>{g.hasOwnProperty(E)||h.push(function Un(T){return new i.vHH(3001,!1)}())})}(ve,h.options,h.errors)})})}visitKeyframes(p,h){const g={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function mi(){return new i.vHH(3011,!1)}()),g;let E=0;const q=[];let ve=!1,Ee=!1,Xe=0;const ht=p.steps.map(En=>{const Hn=this._makeStyleAst(En,h);let nn=null!=Hn.offset?Hn.offset:function Nr(T){if("string"==typeof T)return null;let p=null;if(Array.isArray(T))T.forEach(h=>{if(h instanceof Map&&h.has("offset")){const g=h;p=parseFloat(g.get("offset")),g.delete("offset")}});else if(T instanceof Map&&T.has("offset")){const h=T;p=parseFloat(h.get("offset")),h.delete("offset")}return p}(Hn.styles),vn=0;return null!=nn&&(E++,vn=Hn.offset=nn),Ee=Ee||vn<0||vn>1,ve=ve||vn0&&E{const nn=$t>0?Hn==Qt?1:$t*Hn:q[Hn],vn=nn*mn;h.currentTime=Kt+Wt.delay+vn,Wt.duration=vn,this._validateStyleAst(En,h),En.offset=nn,g.styles.push(En)}),g}visitReference(p,h){return{type:8,animation:Ni(this,Ar(p.animation),h),options:sr(p.options)}}visitAnimateChild(p,h){return h.depCount++,{type:9,options:sr(p.options)}}visitAnimateRef(p,h){return{type:10,animation:this.visitReference(p.animation,h),options:sr(p.options)}}visitQuery(p,h){const g=h.currentQuerySelector,z=p.options||{};h.queryCount++,h.currentQuery=p;const[E,q]=function ao(T){const p=!!T.split(/\s*,\s*/).find(h=>":self"==h);return p&&(T=T.replace(vi,"")),T=T.replace(/@\*/g,Mr).replace(/@\w+/g,h=>Mr+"-"+h.slice(1)).replace(/:animating/g,Qs),[T,p]}(p.selector);h.currentQuerySelector=g.length?g+" "+E:E,pe(h.collectedStyles,h.currentQuerySelector,new Map);const ve=Ni(this,Ar(p.animation),h);return h.currentQuery=null,h.currentQuerySelector=g,{type:11,selector:E,limit:z.limit||0,optional:!!z.optional,includeSelf:q,animation:ve,originalSelector:p.selector,options:sr(p.options)}}visitStagger(p,h){h.currentQuery||h.errors.push(function Wi(){return new i.vHH(3013,!1)}());const g="full"===p.timings?{duration:0,delay:0,easing:"full"}:hr(p.timings,h.errors,!0);return{type:12,animation:Ni(this,Ar(p.animation),h),timings:g,options:null}}}class rr{constructor(p){this.errors=p,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function sr(T){return T?(T=br(T)).params&&(T.params=function fr(T){return T?br(T):null}(T.params)):T={},T}function Da(T,p,h){return{duration:T,delay:p,easing:h}}function Qr(T,p,h,g,z,E,q=null,ve=!1){return{type:1,element:T,keyframes:p,preStyleProps:h,postStyleProps:g,duration:z,delay:E,totalTime:z+E,easing:q,subTimeline:ve}}class jr{constructor(){this._map=new Map}get(p){return this._map.get(p)||[]}append(p,h){let g=this._map.get(p);g||this._map.set(p,g=[]),g.push(...h)}has(p){return this._map.has(p)}clear(){this._map.clear()}}const pc=new RegExp(":enter","g"),wn=new RegExp(":leave","g");function Bo(T,p,h,g,z,E=new Map,q=new Map,ve,Ee,Xe=[]){return(new Zc).buildKeyframes(T,p,h,g,z,E,q,ve,Ee,Xe)}class Zc{buildKeyframes(p,h,g,z,E,q,ve,Ee,Xe,ht=[]){Xe=Xe||new jr;const Dt=new xi(p,h,Xe,z,E,ht,[]);Dt.options=Ee;const $t=Ee.delay?Ir(Ee.delay):0;Dt.currentTimeline.delayNextStep($t),Dt.currentTimeline.setStyles([q],null,Dt.errors,Ee),Ni(this,g,Dt);const Qt=Dt.timelines.filter(Kt=>Kt.containsAnimation());if(Qt.length&&ve.size){let Kt;for(let Wt=Qt.length-1;Wt>=0;Wt--){const mn=Qt[Wt];if(mn.element===h){Kt=mn;break}}Kt&&!Kt.allowOnlyTimelineStyles()&&Kt.setStyles([ve],null,Dt.errors,Ee)}return Qt.length?Qt.map(Kt=>Kt.buildKeyframes()):[Qr(h,[],[],[],0,$t,"",!1)]}visitTrigger(p,h){}visitState(p,h){}visitTransition(p,h){}visitAnimateChild(p,h){const g=h.subInstructions.get(h.element);if(g){const z=h.createSubContext(p.options),E=h.currentTimeline.currentTime,q=this._visitSubInstructions(g,z,z.options);E!=q&&h.transformIntoNewTimeline(q)}h.previousNode=p}visitAnimateRef(p,h){const g=h.createSubContext(p.options);g.transformIntoNewTimeline(),this._applyAnimationRefDelays([p.options,p.animation.options],h,g),this.visitReference(p.animation,g),h.transformIntoNewTimeline(g.currentTimeline.currentTime),h.previousNode=p}_applyAnimationRefDelays(p,h,g){for(const z of p){const E=z?.delay;if(E){const q="number"==typeof E?E:Ir(ps(E,z?.params??{},h.errors));g.delayNextStep(q)}}}_visitSubInstructions(p,h,g){let E=h.currentTimeline.currentTime;const q=null!=g.duration?Ir(g.duration):null,ve=null!=g.delay?Ir(g.delay):null;return 0!==q&&p.forEach(Ee=>{const Xe=h.appendInstructionToTimeline(Ee,q,ve);E=Math.max(E,Xe.duration+Xe.delay)}),E}visitReference(p,h){h.updateOptions(p.options,!0),Ni(this,p.animation,h),h.previousNode=p}visitSequence(p,h){const g=h.subContextCount;let z=h;const E=p.options;if(E&&(E.params||E.delay)&&(z=h.createSubContext(E),z.transformIntoNewTimeline(),null!=E.delay)){6==z.previousNode.type&&(z.currentTimeline.snapshotCurrentStyles(),z.previousNode=qs);const q=Ir(E.delay);z.delayNextStep(q)}p.steps.length&&(p.steps.forEach(q=>Ni(this,q,z)),z.currentTimeline.applyStylesToKeyframe(),z.subContextCount>g&&z.transformIntoNewTimeline()),h.previousNode=p}visitGroup(p,h){const g=[];let z=h.currentTimeline.currentTime;const E=p.options&&p.options.delay?Ir(p.options.delay):0;p.steps.forEach(q=>{const ve=h.createSubContext(p.options);E&&ve.delayNextStep(E),Ni(this,q,ve),z=Math.max(z,ve.currentTimeline.currentTime),g.push(ve.currentTimeline)}),g.forEach(q=>h.currentTimeline.mergeTimelineCollectedStyles(q)),h.transformIntoNewTimeline(z),h.previousNode=p}_visitTiming(p,h){if(p.dynamic){const g=p.strValue;return hr(h.params?ps(g,h.params,h.errors):g,h.errors)}return{duration:p.duration,delay:p.delay,easing:p.easing}}visitAnimate(p,h){const g=h.currentAnimateTimings=this._visitTiming(p.timings,h),z=h.currentTimeline;g.delay&&(h.incrementTime(g.delay),z.snapshotCurrentStyles());const E=p.style;5==E.type?this.visitKeyframes(E,h):(h.incrementTime(g.duration),this.visitStyle(E,h),z.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=p}visitStyle(p,h){const g=h.currentTimeline,z=h.currentAnimateTimings;!z&&g.hasCurrentStyleProperties()&&g.forwardFrame();const E=z&&z.easing||p.easing;p.isEmptyStep?g.applyEmptyStep(E):g.setStyles(p.styles,E,h.errors,h.options),h.previousNode=p}visitKeyframes(p,h){const g=h.currentAnimateTimings,z=h.currentTimeline.duration,E=g.duration,ve=h.createSubContext().currentTimeline;ve.easing=g.easing,p.styles.forEach(Ee=>{ve.forwardTime((Ee.offset||0)*E),ve.setStyles(Ee.styles,Ee.easing,h.errors,h.options),ve.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(ve),h.transformIntoNewTimeline(z+E),h.previousNode=p}visitQuery(p,h){const g=h.currentTimeline.currentTime,z=p.options||{},E=z.delay?Ir(z.delay):0;E&&(6===h.previousNode.type||0==g&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=qs);let q=g;const ve=h.invokeQuery(p.selector,p.originalSelector,p.limit,p.includeSelf,!!z.optional,h.errors);h.currentQueryTotal=ve.length;let Ee=null;ve.forEach((Xe,ht)=>{h.currentQueryIndex=ht;const Dt=h.createSubContext(p.options,Xe);E&&Dt.delayNextStep(E),Xe===h.element&&(Ee=Dt.currentTimeline),Ni(this,p.animation,Dt),Dt.currentTimeline.applyStylesToKeyframe(),q=Math.max(q,Dt.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(q),Ee&&(h.currentTimeline.mergeTimelineCollectedStyles(Ee),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=p}visitStagger(p,h){const g=h.parentContext,z=h.currentTimeline,E=p.timings,q=Math.abs(E.duration),ve=q*(h.currentQueryTotal-1);let Ee=q*h.currentQueryIndex;switch(E.duration<0?"reverse":E.easing){case"reverse":Ee=ve-Ee;break;case"full":Ee=g.currentStaggerTime}const ht=h.currentTimeline;Ee&&ht.delayNextStep(Ee);const Dt=ht.currentTime;Ni(this,p.animation,h),h.previousNode=p,g.currentStaggerTime=z.currentTime-Dt+(z.startTime-g.currentTimeline.startTime)}}const qs={};class xi{constructor(p,h,g,z,E,q,ve,Ee){this._driver=p,this.element=h,this.subInstructions=g,this._enterClassName=z,this._leaveClassName=E,this.errors=q,this.timelines=ve,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ee||new os(this._driver,h,0),ve.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(p,h){if(!p)return;const g=p;let z=this.options;null!=g.duration&&(z.duration=Ir(g.duration)),null!=g.delay&&(z.delay=Ir(g.delay));const E=g.params;if(E){let q=z.params;q||(q=this.options.params={}),Object.keys(E).forEach(ve=>{(!h||!q.hasOwnProperty(ve))&&(q[ve]=ps(E[ve],q,this.errors))})}}_copyOptions(){const p={};if(this.options){const h=this.options.params;if(h){const g=p.params={};Object.keys(h).forEach(z=>{g[z]=h[z]})}}return p}createSubContext(p=null,h,g){const z=h||this.element,E=new xi(this._driver,z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(z,g||0));return E.previousNode=this.previousNode,E.currentAnimateTimings=this.currentAnimateTimings,E.options=this._copyOptions(),E.updateOptions(p),E.currentQueryIndex=this.currentQueryIndex,E.currentQueryTotal=this.currentQueryTotal,E.parentContext=this,this.subContextCount++,E}transformIntoNewTimeline(p){return this.previousNode=qs,this.currentTimeline=this.currentTimeline.fork(this.element,p),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(p,h,g){const z={duration:h??p.duration,delay:this.currentTimeline.currentTime+(g??0)+p.delay,easing:""},E=new kr(this._driver,p.element,p.keyframes,p.preStyleProps,p.postStyleProps,z,p.stretchStartingKeyframe);return this.timelines.push(E),z}incrementTime(p){this.currentTimeline.forwardTime(this.currentTimeline.duration+p)}delayNextStep(p){p>0&&this.currentTimeline.delayNextStep(p)}invokeQuery(p,h,g,z,E,q){let ve=[];if(z&&ve.push(this.element),p.length>0){p=(p=p.replace(pc,"."+this._enterClassName)).replace(wn,"."+this._leaveClassName);let Xe=this._driver.query(this.element,p,1!=g);0!==g&&(Xe=g<0?Xe.slice(Xe.length+g,Xe.length):Xe.slice(0,g)),ve.push(...Xe)}return!E&&0==ve.length&&q.push(function ii(T){return new i.vHH(3014,!1)}()),ve}}class os{constructor(p,h,g,z){this._driver=p,this.element=h,this.startTime=g,this._elementTimelineStylesLookup=z,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(p){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+p),h&&this.snapshotCurrentStyles()):this.startTime+=p}fork(p,h){return this.applyStylesToKeyframe(),new os(this._driver,p,h||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(p){this.applyStylesToKeyframe(),this.duration=p,this._loadKeyframe()}_updateStyle(p,h){this._localTimelineStyles.set(p,h),this._globalTimelineStyles.set(p,h),this._styleSummary.set(p,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(p){p&&this._previousKeyframe.set("easing",p);for(let[h,g]of this._globalTimelineStyles)this._backFill.set(h,g||dn.l3),this._currentKeyframe.set(h,dn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(p,h,g,z){h&&this._previousKeyframe.set("easing",h);const E=z&&z.params||{},q=function Xs(T,p){const h=new Map;let g;return T.forEach(z=>{if("*"===z){g=g||p.keys();for(let E of g)h.set(E,dn.l3)}else Sr(z,h)}),h}(p,this._globalTimelineStyles);for(let[ve,Ee]of q){const Xe=ps(Ee,E,g);this._pendingStyles.set(ve,Xe),this._localTimelineStyles.has(ve)||this._backFill.set(ve,this._globalTimelineStyles.get(ve)??dn.l3),this._updateStyle(ve,Xe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((p,h)=>{this._currentKeyframe.set(h,p)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((p,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,p)}))}snapshotCurrentStyles(){for(let[p,h]of this._localTimelineStyles)this._pendingStyles.set(p,h),this._updateStyle(p,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const p=[];for(let h in this._currentKeyframe)p.push(h);return p}mergeTimelineCollectedStyles(p){p._styleSummary.forEach((h,g)=>{const z=this._styleSummary.get(g);(!z||h.time>z.time)&&this._updateStyle(g,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const p=new Set,h=new Set,g=1===this._keyframes.size&&0===this.duration;let z=[];this._keyframes.forEach((ve,Ee)=>{const Xe=Sr(ve,new Map,this._backFill);Xe.forEach((ht,Dt)=>{ht===dn.k1?p.add(Dt):ht===dn.l3&&h.add(Dt)}),g||Xe.set("offset",Ee/this.duration),z.push(Xe)});const E=p.size?hs(p.values()):[],q=h.size?hs(h.values()):[];if(g){const ve=z[0],Ee=new Map(ve);ve.set("offset",0),Ee.set("offset",1),z=[ve,Ee]}return Qr(this.element,z,E,q,this.duration,this.startTime,this.easing,!1)}}class kr extends os{constructor(p,h,g,z,E,q,ve=!1){super(p,h,q.delay),this.keyframes=g,this.preStyleProps=z,this.postStyleProps=E,this._stretchStartingKeyframe=ve,this.timings={duration:q.duration,delay:q.delay,easing:q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let p=this.keyframes,{delay:h,duration:g,easing:z}=this.timings;if(this._stretchStartingKeyframe&&h){const E=[],q=g+h,ve=h/q,Ee=Sr(p[0]);Ee.set("offset",0),E.push(Ee);const Xe=Sr(p[0]);Xe.set("offset",ar(ve)),E.push(Xe);const ht=p.length-1;for(let Dt=1;Dt<=ht;Dt++){let $t=Sr(p[Dt]);const Qt=$t.get("offset");$t.set("offset",ar((h+Qt*g)/q)),E.push($t)}g=q,h=0,z="",p=E}return Qr(this.element,p,this.preStyleProps,this.postStyleProps,g,h,z,!0)}}function ar(T,p=3){const h=Math.pow(10,p-1);return Math.round(T*h)/h}class ea{}const Jc=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ji extends ea{normalizePropertyName(p,h){return Ws(p)}normalizeStyleValue(p,h,g,z){let E="";const q=g.toString().trim();if(Jc.has(h)&&0!==g&&"0"!==g)if("number"==typeof g)E="px";else{const ve=g.match(/^[+-]?[\d\.]+([a-z]*)$/);ve&&0==ve[1].length&&z.push(function Co(T,p){return new i.vHH(3005,!1)}())}return q+E}}function Rr(T,p,h,g,z,E,q,ve,Ee,Xe,ht,Dt,$t){return{type:0,element:T,triggerName:p,isRemovalTransition:z,fromState:h,fromStyles:E,toState:g,toStyles:q,timelines:ve,queriedElements:Ee,preStyleProps:Xe,postStyleProps:ht,totalTime:Dt,errors:$t}}const Ps={};class fs{constructor(p,h,g){this._triggerName=p,this.ast=h,this._stateStyles=g}match(p,h,g,z){return function qc(T,p,h,g,z){return T.some(E=>E(p,h,g,z))}(this.ast.matchers,p,h,g,z)}buildStyles(p,h,g){let z=this._stateStyles.get("*");return void 0!==p&&(z=this._stateStyles.get(p?.toString())||z),z?z.buildStyles(h,g):new Map}build(p,h,g,z,E,q,ve,Ee,Xe,ht){const Dt=[],$t=this.ast.options&&this.ast.options.params||Ps,Kt=this.buildStyles(g,ve&&ve.params||Ps,Dt),Wt=Ee&&Ee.params||Ps,mn=this.buildStyles(z,Wt,Dt),En=new Set,Hn=new Map,nn=new Map,vn="void"===z,$n={params:Oa(Wt,$t),delay:this.ast.options?.delay},Ln=ht?[]:Bo(p,h,this.ast.animation,E,q,Kt,mn,$n,Xe,Dt);let no=0;if(Ln.forEach(Oi=>{no=Math.max(Oi.duration+Oi.delay,no)}),Dt.length)return Rr(h,this._triggerName,g,z,vn,Kt,mn,[],[],Hn,nn,no,Dt);Ln.forEach(Oi=>{const Mi=Oi.element,rs=pe(Hn,Mi,new Set);Oi.preStyleProps.forEach(gr=>rs.add(gr));const Ri=pe(nn,Mi,new Set);Oi.postStyleProps.forEach(gr=>Ri.add(gr)),Mi!==h&&En.add(Mi)});const xo=hs(En.values());return Rr(h,this._triggerName,g,z,vn,Kt,mn,Ln,xo,Hn,nn,no)}}function Oa(T,p){const h=br(p);for(const g in T)T.hasOwnProperty(g)&&null!=T[g]&&(h[g]=T[g]);return h}class Xc{constructor(p,h,g){this.styles=p,this.defaultParams=h,this.normalizer=g}buildStyles(p,h){const g=new Map,z=br(this.defaultParams);return Object.keys(p).forEach(E=>{const q=p[E];null!==q&&(z[E]=q)}),this.styles.styles.forEach(E=>{"string"!=typeof E&&E.forEach((q,ve)=>{q&&(q=ps(q,z,h));const Ee=this.normalizer.normalizePropertyName(ve,h);q=this.normalizer.normalizeStyleValue(ve,Ee,q,h),g.set(ve,q)})}),g}}class wa{constructor(p,h,g){this.name=p,this.ast=h,this._normalizer=g,this.transitionFactories=[],this.states=new Map,h.states.forEach(z=>{this.states.set(z.name,new Xc(z.style,z.options&&z.options.params||{},g))}),Ia(this.states,"true","1"),Ia(this.states,"false","0"),h.transitions.forEach(z=>{this.transitionFactories.push(new fs(p,z,this.states))}),this.fallbackTransition=function Pa(T,p,h){return new fs(T,{type:1,animation:{type:2,steps:[],options:null},matchers:[(q,ve)=>!0],options:null,queryCount:0,depCount:0},p)}(p,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(p,h,g,z){return this.transitionFactories.find(q=>q.match(p,h,g,z))||null}matchStyles(p,h,g){return this.fallbackTransition.buildStyles(p,h,g)}}function Ia(T,p,h){T.has(p)?T.has(h)||T.set(h,T.get(p)):T.has(h)&&T.set(p,T.get(h))}const Aa=new jr;class hc{constructor(p,h,g){this.bodyNode=p,this._driver=h,this._normalizer=g,this._animations=new Map,this._playersById=new Map,this.players=[]}register(p,h){const g=[],E=jo(this._driver,h,g,[]);if(g.length)throw function Yt(T){return new i.vHH(3503,!1)}();this._animations.set(p,E)}_buildPlayer(p,h,g){const z=p.element,E=_r(this._normalizer,p.keyframes,h,g);return this._driver.animate(z,E,p.duration,p.delay,p.easing,[],!0)}create(p,h,g={}){const z=[],E=this._animations.get(p);let q;const ve=new Map;if(E?(q=Bo(this._driver,h,E,pr,Os,new Map,new Map,g,Aa,z),q.forEach(ht=>{const Dt=pe(ve,ht.element,new Map);ht.postStyleProps.forEach($t=>Dt.set($t,null))})):(z.push(function W(){return new i.vHH(3300,!1)}()),q=[]),z.length)throw function Ve(T){return new i.vHH(3504,!1)}();ve.forEach((ht,Dt)=>{ht.forEach(($t,Qt)=>{ht.set(Qt,this._driver.computeStyle(Dt,Qt,dn.l3))})});const Xe=Fi(q.map(ht=>{const Dt=ve.get(ht.element);return this._buildPlayer(ht,new Map,Dt)}));return this._playersById.set(p,Xe),Xe.onDestroy(()=>this.destroy(p)),this.players.push(Xe),Xe}destroy(p){const h=this._getPlayer(p);h.destroy(),this._playersById.delete(p);const g=this.players.indexOf(h);g>=0&&this.players.splice(g,1)}_getPlayer(p){const h=this._playersById.get(p);if(!h)throw function Gt(T){return new i.vHH(3301,!1)}();return h}listen(p,h,g,z){const E=ye(h,"","","");return ls(this._getPlayer(p),g,E,z),()=>{}}command(p,h,g,z){if("register"==g)return void this.register(p,z[0]);if("create"==g)return void this.create(p,h,z[0]||{});const E=this._getPlayer(p);switch(g){case"play":E.play();break;case"pause":E.pause();break;case"reset":E.reset();break;case"restart":E.restart();break;case"finish":E.finish();break;case"init":E.init();break;case"setPosition":E.setPosition(parseFloat(z[0]));break;case"destroy":this.destroy(p)}}}const Fa="ng-animate-queued",fc="ng-animate-disabled",nl=[],H={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},X={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},D="__ng_removed";class le{get params(){return this.options.params}constructor(p,h=""){this.namespaceId=h;const g=p&&p.hasOwnProperty("value");if(this.value=function ro(T){return T??null}(g?p.value:p),g){const E=br(p);delete E.value,this.options=E}else this.options={};this.options.params||(this.options.params={})}absorbOptions(p){const h=p.params;if(h){const g=this.options.params;Object.keys(h).forEach(z=>{null==g[z]&&(g[z]=h[z])})}}}const Ne="void",pt=new le(Ne);class vt{constructor(p,h,g){this.id=p,this.hostElement=h,this._engine=g,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+p,Yi(h,this._hostClassName)}listen(p,h,g,z){if(!this._triggers.has(h))throw function an(T,p){return new i.vHH(3302,!1)}();if(null==g||0==g.length)throw function Rn(T){return new i.vHH(3303,!1)}();if(!function Ii(T){return"start"==T||"done"==T}(g))throw function ho(T,p){return new i.vHH(3400,!1)}();const E=pe(this._elementListeners,p,[]),q={name:h,phase:g,callback:z};E.push(q);const ve=pe(this._engine.statesByElement,p,new Map);return ve.has(h)||(Yi(p,Pr),Yi(p,Pr+"-"+h),ve.set(h,pt)),()=>{this._engine.afterFlush(()=>{const Ee=E.indexOf(q);Ee>=0&&E.splice(Ee,1),this._triggers.has(h)||ve.delete(h)})}}register(p,h){return!this._triggers.has(p)&&(this._triggers.set(p,h),!0)}_getTrigger(p){const h=this._triggers.get(p);if(!h)throw function fo(T){return new i.vHH(3401,!1)}();return h}trigger(p,h,g,z=!0){const E=this._getTrigger(h),q=new Fn(this.id,h,p);let ve=this._engine.statesByElement.get(p);ve||(Yi(p,Pr),Yi(p,Pr+"-"+h),this._engine.statesByElement.set(p,ve=new Map));let Ee=ve.get(h);const Xe=new le(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ee&&Xe.absorbOptions(Ee.options),ve.set(h,Xe),Ee||(Ee=pt),Xe.value!==Ne&&Ee.value===Xe.value){if(!function Na(T,p){const h=Object.keys(T),g=Object.keys(p);if(h.length!=g.length)return!1;for(let z=0;z{ts(p,mn),ir(p,En)})}return}const $t=pe(this._engine.playersByElement,p,[]);$t.forEach(Wt=>{Wt.namespaceId==this.id&&Wt.triggerName==h&&Wt.queued&&Wt.destroy()});let Qt=E.matchTransition(Ee.value,Xe.value,p,Xe.params),Kt=!1;if(!Qt){if(!z)return;Qt=E.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:h,transition:Qt,fromState:Ee,toState:Xe,player:q,isFallbackTransition:Kt}),Kt||(Yi(p,Fa),q.onStart(()=>{xr(p,Fa)})),q.onDone(()=>{let Wt=this.players.indexOf(q);Wt>=0&&this.players.splice(Wt,1);const mn=this._engine.playersByElement.get(p);if(mn){let En=mn.indexOf(q);En>=0&&mn.splice(En,1)}}),this.players.push(q),$t.push(q),q}deregister(p){this._triggers.delete(p),this._engine.statesByElement.forEach(h=>h.delete(p)),this._elementListeners.forEach((h,g)=>{this._elementListeners.set(g,h.filter(z=>z.name!=p))})}clearElementCache(p){this._engine.statesByElement.delete(p),this._elementListeners.delete(p);const h=this._engine.playersByElement.get(p);h&&(h.forEach(g=>g.destroy()),this._engine.playersByElement.delete(p))}_signalRemovalForInnerTriggers(p,h){const g=this._engine.driver.query(p,Mr,!0);g.forEach(z=>{if(z[D])return;const E=this._engine.fetchNamespacesByElement(z);E.size?E.forEach(q=>q.triggerLeaveAnimation(z,h,!1,!0)):this.clearElementCache(z)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(z=>this.clearElementCache(z)))}triggerLeaveAnimation(p,h,g,z){const E=this._engine.statesByElement.get(p),q=new Map;if(E){const ve=[];if(E.forEach((Ee,Xe)=>{if(q.set(Xe,Ee.value),this._triggers.has(Xe)){const ht=this.trigger(p,Xe,Ne,z);ht&&ve.push(ht)}}),ve.length)return this._engine.markElementAsRemoved(this.id,p,!0,h,q),g&&Fi(ve).onDone(()=>this._engine.processLeaveNode(p)),!0}return!1}prepareLeaveAnimationListeners(p){const h=this._elementListeners.get(p),g=this._engine.statesByElement.get(p);if(h&&g){const z=new Set;h.forEach(E=>{const q=E.name;if(z.has(q))return;z.add(q);const Ee=this._triggers.get(q).fallbackTransition,Xe=g.get(q)||pt,ht=new le(Ne),Dt=new Fn(this.id,q,p);this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:q,transition:Ee,fromState:Xe,toState:ht,player:Dt,isFallbackTransition:!0})})}}removeNode(p,h){const g=this._engine;if(p.childElementCount&&this._signalRemovalForInnerTriggers(p,h),this.triggerLeaveAnimation(p,h,!0))return;let z=!1;if(g.totalAnimations){const E=g.players.length?g.playersByQueriedElement.get(p):[];if(E&&E.length)z=!0;else{let q=p;for(;q=q.parentNode;)if(g.statesByElement.get(q)){z=!0;break}}}if(this.prepareLeaveAnimationListeners(p),z)g.markElementAsRemoved(this.id,p,!1,h);else{const E=p[D];(!E||E===H)&&(g.afterFlush(()=>this.clearElementCache(p)),g.destroyInnerAnimations(p),g._onRemovalComplete(p,h))}}insertNode(p,h){Yi(p,this._hostClassName)}drainQueuedTransitions(p){const h=[];return this._queue.forEach(g=>{const z=g.player;if(z.destroyed)return;const E=g.element,q=this._elementListeners.get(E);q&&q.forEach(ve=>{if(ve.name==g.triggerName){const Ee=ye(E,g.triggerName,g.fromState.value,g.toState.value);Ee._data=p,ls(g.player,ve.phase,Ee,ve.callback)}}),z.markedForDestroy?this._engine.afterFlush(()=>{z.destroy()}):h.push(g)}),this._queue=[],h.sort((g,z)=>{const E=g.transition.ast.depCount,q=z.transition.ast.depCount;return 0==E||0==q?E-q:this._engine.driver.containsElement(g.element,z.element)?1:-1})}destroy(p){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,p)}}class cn{_onRemovalComplete(p,h){this.onRemovalComplete(p,h)}constructor(p,h,g){this.bodyNode=p,this.driver=h,this._normalizer=g,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=(z,E)=>{}}get queuedPlayers(){const p=[];return this._namespaceList.forEach(h=>{h.players.forEach(g=>{g.queued&&p.push(g)})}),p}createNamespace(p,h){const g=new vt(p,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(g,h):(this.newHostElements.set(h,g),this.collectEnterElement(h)),this._namespaceLookup[p]=g}_balanceNamespaceList(p,h){const g=this._namespaceList,z=this.namespacesByHostElement;if(g.length-1>=0){let q=!1,ve=this.driver.getParentElement(h);for(;ve;){const Ee=z.get(ve);if(Ee){const Xe=g.indexOf(Ee);g.splice(Xe+1,0,p),q=!0;break}ve=this.driver.getParentElement(ve)}q||g.unshift(p)}else g.push(p);return z.set(h,p),p}register(p,h){let g=this._namespaceLookup[p];return g||(g=this.createNamespace(p,h)),g}registerTrigger(p,h,g){let z=this._namespaceLookup[p];z&&z.register(h,g)&&this.totalAnimations++}destroy(p,h){p&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const g=this._fetchNamespace(p);this.namespacesByHostElement.delete(g.hostElement);const z=this._namespaceList.indexOf(g);z>=0&&this._namespaceList.splice(z,1),g.destroy(h),delete this._namespaceLookup[p]}))}_fetchNamespace(p){return this._namespaceLookup[p]}fetchNamespacesByElement(p){const h=new Set,g=this.statesByElement.get(p);if(g)for(let z of g.values())if(z.namespaceId){const E=this._fetchNamespace(z.namespaceId);E&&h.add(E)}return h}trigger(p,h,g,z){if(Ho(h)){const E=this._fetchNamespace(p);if(E)return E.trigger(h,g,z),!0}return!1}insertNode(p,h,g,z){if(!Ho(h))return;const E=h[D];if(E&&E.setForRemoval){E.setForRemoval=!1,E.setForMove=!0;const q=this.collectedLeaveElements.indexOf(h);q>=0&&this.collectedLeaveElements.splice(q,1)}if(p){const q=this._fetchNamespace(p);q&&q.insertNode(h,g)}z&&this.collectEnterElement(h)}collectEnterElement(p){this.collectedEnterElements.push(p)}markElementAsDisabled(p,h){h?this.disabledNodes.has(p)||(this.disabledNodes.add(p),Yi(p,fc)):this.disabledNodes.has(p)&&(this.disabledNodes.delete(p),xr(p,fc))}removeNode(p,h,g){if(Ho(h)){const z=p?this._fetchNamespace(p):null;z?z.removeNode(h,g):this.markElementAsRemoved(p,h,!1,g);const E=this.namespacesByHostElement.get(h);E&&E.id!==p&&E.removeNode(h,g)}else this._onRemovalComplete(h,g)}markElementAsRemoved(p,h,g,z,E){this.collectedLeaveElements.push(h),h[D]={namespaceId:p,setForRemoval:z,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:E}}listen(p,h,g,z,E){return Ho(h)?this._fetchNamespace(p).listen(h,g,z,E):()=>{}}_buildInstruction(p,h,g,z,E){return p.transition.build(this.driver,p.element,p.fromState.value,p.toState.value,g,z,p.fromState.options,p.toState.options,h,E)}destroyInnerAnimations(p){let h=this.driver.query(p,Mr,!0);h.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(p,Qs,!0),h.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(p){const h=this.playersByElement.get(p);h&&h.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(p){const h=this.playersByQueriedElement.get(p);h&&h.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(p=>{if(this.players.length)return Fi(this.players).onDone(()=>p());p()})}processLeaveNode(p){const h=p[D];if(h&&h.setForRemoval){if(p[D]=H,h.namespaceId){this.destroyInnerAnimations(p);const g=this._fetchNamespace(h.namespaceId);g&&g.clearElementCache(p)}this._onRemovalComplete(p,h.setForRemoval)}p.classList?.contains(fc)&&this.markElementAsDisabled(p,!1),this.driver.query(p,".ng-animate-disabled",!0).forEach(g=>{this.markElementAsDisabled(g,!1)})}flush(p=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,z)=>this._balanceNamespaceList(g,z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],h.length?Fi(h).onDone(()=>{g.forEach(z=>z())}):g.forEach(z=>z())}}reportError(p){throw function Uo(T){return new i.vHH(3402,!1)}()}_flushAnimations(p,h){const g=new jr,z=[],E=new Map,q=[],ve=new Map,Ee=new Map,Xe=new Map,ht=new Set;this.disabledNodes.forEach(oo=>{ht.add(oo);const po=this.driver.query(oo,".ng-animate-queued",!0);for(let bo=0;bo{const bo=pr+Wt++;Kt.set(po,bo),oo.forEach(Zo=>Yi(Zo,bo))});const mn=[],En=new Set,Hn=new Set;for(let oo=0;ooEn.add(Zo)):Hn.add(po))}const nn=new Map,vn=Kr($t,Array.from(En));vn.forEach((oo,po)=>{const bo=Os+Wt++;nn.set(po,bo),oo.forEach(Zo=>Yi(Zo,bo))}),p.push(()=>{Qt.forEach((oo,po)=>{const bo=Kt.get(po);oo.forEach(Zo=>xr(Zo,bo))}),vn.forEach((oo,po)=>{const bo=nn.get(po);oo.forEach(Zo=>xr(Zo,bo))}),mn.forEach(oo=>{this.processLeaveNode(oo)})});const $n=[],Ln=[];for(let oo=this._namespaceList.length-1;oo>=0;oo--)this._namespaceList[oo].drainQueuedTransitions(h).forEach(bo=>{const Zo=bo.player,Vi=bo.element;if($n.push(Zo),this.collectedEnterElements.length){const cr=Vi[D];if(cr&&cr.setForMove){if(cr.previousTriggersValues&&cr.previousTriggersValues.has(bo.triggerName)){const Ta=cr.previousTriggersValues.get(bo.triggerName),Xr=this.statesByElement.get(bo.element);if(Xr&&Xr.has(bo.triggerName)){const e1=Xr.get(bo.triggerName);e1.value=Ta,Xr.set(bo.triggerName,e1)}}return void Zo.destroy()}}const Ys=!Dt||!this.driver.containsElement(Dt,Vi),Cr=nn.get(Vi),ss=Kt.get(Vi),wi=this._buildInstruction(bo,g,ss,Cr,Ys);if(wi.errors&&wi.errors.length)return void Ln.push(wi);if(Ys)return Zo.onStart(()=>ts(Vi,wi.fromStyles)),Zo.onDestroy(()=>ir(Vi,wi.toStyles)),void z.push(Zo);if(bo.isFallbackTransition)return Zo.onStart(()=>ts(Vi,wi.fromStyles)),Zo.onDestroy(()=>ir(Vi,wi.toStyles)),void z.push(Zo);const jd=[];wi.timelines.forEach(cr=>{cr.stretchStartingKeyframe=!0,this.disabledNodes.has(cr.element)||jd.push(cr)}),wi.timelines=jd,g.append(Vi,wi.timelines),q.push({instruction:wi,player:Zo,element:Vi}),wi.queriedElements.forEach(cr=>pe(ve,cr,[]).push(Zo)),wi.preStyleProps.forEach((cr,Ta)=>{if(cr.size){let Xr=Ee.get(Ta);Xr||Ee.set(Ta,Xr=new Set),cr.forEach((e1,Wd)=>Xr.add(Wd))}}),wi.postStyleProps.forEach((cr,Ta)=>{let Xr=Xe.get(Ta);Xr||Xe.set(Ta,Xr=new Set),cr.forEach((e1,Wd)=>Xr.add(Wd))})});if(Ln.length){const oo=[];Ln.forEach(po=>{oo.push(function uo(T,p){return new i.vHH(3505,!1)}())}),$n.forEach(po=>po.destroy()),this.reportError(oo)}const no=new Map,xo=new Map;q.forEach(oo=>{const po=oo.element;g.has(po)&&(xo.set(po,po),this._beforeAnimationBuild(oo.player.namespaceId,oo.instruction,no))}),z.forEach(oo=>{const po=oo.element;this._getPreviousPlayers(po,!1,oo.namespaceId,oo.triggerName,null).forEach(Zo=>{pe(no,po,[]).push(Zo),Zo.destroy()})});const Oi=mn.filter(oo=>Is(oo,Ee,Xe)),Mi=new Map;Zr(Mi,this.driver,Hn,Xe,dn.l3).forEach(oo=>{Is(oo,Ee,Xe)&&Oi.push(oo)});const Ri=new Map;Qt.forEach((oo,po)=>{Zr(Ri,this.driver,new Set(oo),Ee,dn.k1)}),Oi.forEach(oo=>{const po=Mi.get(oo),bo=Ri.get(oo);Mi.set(oo,new Map([...po?.entries()??[],...bo?.entries()??[]]))});const gr=[],Xu=[],Yc={};q.forEach(oo=>{const{element:po,player:bo,instruction:Zo}=oo;if(g.has(po)){if(ht.has(po))return bo.onDestroy(()=>ir(po,Zo.toStyles)),bo.disabled=!0,bo.overrideTotalTime(Zo.totalTime),void z.push(bo);let Vi=Yc;if(xo.size>1){let Cr=po;const ss=[];for(;Cr=Cr.parentNode;){const wi=xo.get(Cr);if(wi){Vi=wi;break}ss.push(Cr)}ss.forEach(wi=>xo.set(wi,Vi))}const Ys=this._buildAnimation(bo.namespaceId,Zo,no,E,Ri,Mi);if(bo.setRealPlayer(Ys),Vi===Yc)gr.push(bo);else{const Cr=this.playersByElement.get(Vi);Cr&&Cr.length&&(bo.parentPlayer=Fi(Cr)),z.push(bo)}}else ts(po,Zo.fromStyles),bo.onDestroy(()=>ir(po,Zo.toStyles)),Xu.push(bo),ht.has(po)&&z.push(bo)}),Xu.forEach(oo=>{const po=E.get(oo.element);if(po&&po.length){const bo=Fi(po);oo.setRealPlayer(bo)}}),z.forEach(oo=>{oo.parentPlayer?oo.syncPlayerEvents(oo.parentPlayer):oo.destroy()});for(let oo=0;oo!Ys.destroyed);Vi.length?p1(this,po,Vi):this.processLeaveNode(po)}return mn.length=0,gr.forEach(oo=>{this.players.push(oo),oo.onDone(()=>{oo.destroy();const po=this.players.indexOf(oo);this.players.splice(po,1)}),oo.play()}),gr}afterFlush(p){this._flushFns.push(p)}afterFlushAnimationsDone(p){this._whenQuietFns.push(p)}_getPreviousPlayers(p,h,g,z,E){let q=[];if(h){const ve=this.playersByQueriedElement.get(p);ve&&(q=ve)}else{const ve=this.playersByElement.get(p);if(ve){const Ee=!E||E==Ne;ve.forEach(Xe=>{Xe.queued||!Ee&&Xe.triggerName!=z||q.push(Xe)})}}return(g||z)&&(q=q.filter(ve=>!(g&&g!=ve.namespaceId||z&&z!=ve.triggerName))),q}_beforeAnimationBuild(p,h,g){const E=h.element,q=h.isRemovalTransition?void 0:p,ve=h.isRemovalTransition?void 0:h.triggerName;for(const Ee of h.timelines){const Xe=Ee.element,ht=Xe!==E,Dt=pe(g,Xe,[]);this._getPreviousPlayers(Xe,ht,q,ve,h.toState).forEach(Qt=>{const Kt=Qt.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),Qt.destroy(),Dt.push(Qt)})}ts(E,h.fromStyles)}_buildAnimation(p,h,g,z,E,q){const ve=h.triggerName,Ee=h.element,Xe=[],ht=new Set,Dt=new Set,$t=h.timelines.map(Kt=>{const Wt=Kt.element;ht.add(Wt);const mn=Wt[D];if(mn&&mn.removedBeforeQueried)return new dn.ZN(Kt.duration,Kt.delay);const En=Wt!==Ee,Hn=function h1(T){const p=[];return f1(T,p),p}((g.get(Wt)||nl).map(no=>no.getRealPlayer())).filter(no=>!!no.element&&no.element===Wt),nn=E.get(Wt),vn=q.get(Wt),$n=_r(this._normalizer,Kt.keyframes,nn,vn),Ln=this._buildPlayer(Kt,$n,Hn);if(Kt.subTimeline&&z&&Dt.add(Wt),En){const no=new Fn(p,ve,Wt);no.setRealPlayer(Ln),Xe.push(no)}return Ln});Xe.forEach(Kt=>{pe(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function io(T,p,h){let g=T.get(p);if(g){if(g.length){const z=g.indexOf(h);g.splice(z,1)}0==g.length&&T.delete(p)}return g}(this.playersByQueriedElement,Kt.element,Kt))}),ht.forEach(Kt=>Yi(Kt,Gr));const Qt=Fi($t);return Qt.onDestroy(()=>{ht.forEach(Kt=>xr(Kt,Gr)),ir(Ee,h.toStyles)}),Dt.forEach(Kt=>{pe(z,Kt,[]).push(Qt)}),Qt}_buildPlayer(p,h,g){return h.length>0?this.driver.animate(p.element,h,p.duration,p.delay,p.easing,g):new dn.ZN(p.duration,p.delay)}}class Fn{constructor(p,h,g){this.namespaceId=p,this.triggerName=h,this.element=g,this._player=new dn.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(p){this._containsRealPlayer||(this._player=p,this._queuedCallbacks.forEach((h,g)=>{h.forEach(z=>ls(p,g,void 0,z))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(p.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(p){this.totalTime=p}syncPlayerEvents(p){const h=this._player;h.triggerCallback&&p.onStart(()=>h.triggerCallback("start")),p.onDone(()=>this.finish()),p.onDestroy(()=>this.destroy())}_queueEvent(p,h){pe(this._queuedCallbacks,p,[]).push(h)}onDone(p){this.queued&&this._queueEvent("done",p),this._player.onDone(p)}onStart(p){this.queued&&this._queueEvent("start",p),this._player.onStart(p)}onDestroy(p){this.queued&&this._queueEvent("destroy",p),this._player.onDestroy(p)}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(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(p){const h=this._player;h.triggerCallback&&h.triggerCallback(p)}}function Ho(T){return T&&1===T.nodeType}function Wr(T,p){const h=T.style.display;return T.style.display=p??"none",h}function Zr(T,p,h,g,z){const E=[];h.forEach(Ee=>E.push(Wr(Ee)));const q=[];g.forEach((Ee,Xe)=>{const ht=new Map;Ee.forEach(Dt=>{const $t=p.computeStyle(Xe,Dt,z);ht.set(Dt,$t),(!$t||0==$t.length)&&(Xe[D]=X,q.push(Xe))}),T.set(Xe,ht)});let ve=0;return h.forEach(Ee=>Wr(Ee,E[ve++])),q}function Kr(T,p){const h=new Map;if(T.forEach(ve=>h.set(ve,[])),0==p.length)return h;const z=new Set(p),E=new Map;function q(ve){if(!ve)return 1;let Ee=E.get(ve);if(Ee)return Ee;const Xe=ve.parentNode;return Ee=h.has(Xe)?Xe:z.has(Xe)?1:q(Xe),E.set(ve,Ee),Ee}return p.forEach(ve=>{const Ee=q(ve);1!==Ee&&h.get(Ee).push(ve)}),h}function Yi(T,p){T.classList?.add(p)}function xr(T,p){T.classList?.remove(p)}function p1(T,p,h){Fi(h).onDone(()=>T.processLeaveNode(p))}function f1(T,p){for(let h=0;hz.add(E)):p.set(T,g),h.delete(T),!0}class ol{constructor(p,h,g){this.bodyNode=p,this._driver=h,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(z,E)=>{},this._transitionEngine=new cn(p,h,g),this._timelineEngine=new hc(p,h,g),this._transitionEngine.onRemovalComplete=(z,E)=>this.onRemovalComplete(z,E)}registerTrigger(p,h,g,z,E){const q=p+"-"+z;let ve=this._triggerCache[q];if(!ve){const Ee=[],ht=jo(this._driver,E,Ee,[]);if(Ee.length)throw function hi(T,p){return new i.vHH(3404,!1)}();ve=function el(T,p,h){return new wa(T,p,h)}(z,ht,this._normalizer),this._triggerCache[q]=ve}this._transitionEngine.registerTrigger(h,z,ve)}register(p,h){this._transitionEngine.register(p,h)}destroy(p,h){this._transitionEngine.destroy(p,h)}onInsert(p,h,g,z){this._transitionEngine.insertNode(p,h,g,z)}onRemove(p,h,g){this._transitionEngine.removeNode(p,h,g)}disableAnimations(p,h){this._transitionEngine.markElementAsDisabled(p,h)}process(p,h,g,z){if("@"==g.charAt(0)){const[E,q]=ct(g);this._timelineEngine.command(E,h,q,z)}else this._transitionEngine.trigger(p,h,g,z)}listen(p,h,g,z,E){if("@"==g.charAt(0)){const[q,ve]=ct(g);return this._timelineEngine.listen(q,h,ve,E)}return this._transitionEngine.listen(p,h,g,z,E)}flush(p=-1){this._transitionEngine.flush(p)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(p){this._transitionEngine.afterFlushAnimationsDone(p)}}let iu=(()=>{class T{constructor(h,g,z){this._element=h,this._startStyles=g,this._endStyles=z,this._state=0;let E=T.initialStylesByElement.get(h);E||T.initialStylesByElement.set(h,E=new Map),this._initialStyles=E}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(T.initialStylesByElement.delete(this._element),this._startStyles&&(ts(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ts(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}}return T.initialStylesByElement=new WeakMap,T})();function m1(T){let p=null;return T.forEach((h,g)=>{(function Td(T){return"display"===T||"position"===T})(g)&&(p=p||new Map,p.set(g,h))}),p}class ru{constructor(p,h,g,z){this.element=p,this.keyframes=h,this.options=g,this._specialStyles=z,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const p=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,p,this.options),this._finalKeyframe=p.length?p[p.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(p){const h=[];return p.forEach(g=>{h.push(Object.fromEntries(g))}),h}_triggerWebAnimation(p,h,g){return p.animate(this._convertKeyframesToObject(h),g)}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(p=>p()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const p=new Map;this.hasStarted()&&this._finalKeyframe.forEach((g,z)=>{"offset"!==z&&p.set(z,this._finished?g:Js(this.element,z))}),this.currentSnapshot=p}triggerCallback(p){const h="start"===p?this._onStartFns:this._onDoneFns;h.forEach(g=>g()),h.length=0}}class Md{validateStyleProperty(p){return!0}validateAnimatableStyleProperty(p){return!0}matchesElement(p,h){return!1}containsElement(p,h){return Gs(p,h)}getParentElement(p){return Gn(p)}query(p,h,g){return us(p,h,g)}computeStyle(p,h,g){return window.getComputedStyle(p)[h]}animate(p,h,g,z,E,q=[]){const Ee={duration:g,delay:z,fill:0==z?"both":"forwards"};E&&(Ee.easing=E);const Xe=new Map,ht=q.filter(Qt=>Qt instanceof ru);(function Ks(T,p){return 0===T||0===p})(g,z)&&ht.forEach(Qt=>{Qt.currentSnapshot.forEach((Kt,Wt)=>Xe.set(Wt,Kt))});let Dt=function Wc(T){return T.length?T[0]instanceof Map?T:T.map(p=>Ea(p)):[]}(h).map(Qt=>Sr(Qt));Dt=function $i(T,p,h){if(h.size&&p.length){let g=p[0],z=[];if(h.forEach((E,q)=>{g.has(q)||z.push(q),g.set(q,E)}),z.length)for(let E=1;Eq.set(ve,Js(T,ve)))}}return p}(p,Dt,Xe);const $t=function ip(T,p){let h=null,g=null;return Array.isArray(p)&&p.length?(h=m1(p[0]),p.length>1&&(g=m1(p[p.length-1]))):p instanceof Map&&(h=m1(p)),h||g?new iu(T,h,g):null}(p,Dt);return new ru(p,Dt,Ee,$t)}}let rp=(()=>{class T extends dn._j{constructor(h,g){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(g.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(h){const g=this._nextAnimationId.toString();this._nextAnimationId++;const z=Array.isArray(h)?(0,dn.vP)(h):h;return g1(this._renderer,null,g,"register",[z]),new su(g,this._renderer)}}return T.\u0275fac=function(h){return new(h||T)(i.LFG(i.FYo),i.LFG(fn.K0))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();class su extends dn.LC{constructor(p,h){super(),this._id=p,this._renderer=h}create(p,h){return new il(this._id,p,h||{},this._renderer)}}class il{constructor(p,h,g,z){this.id=p,this.element=h,this._renderer=z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(p,h){return this._renderer.listen(this.element,`@@${this.id}:${p}`,h)}_command(p,...h){return g1(this._renderer,this.element,this.id,p,h)}onDone(p){this._listen("done",p)}onStart(p){this._listen("start",p)}onDestroy(p){this._listen("destroy",p)}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(p){this._command("setPosition",p)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function g1(T,p,h,g,z){return T.setProperty(p,`@@${h}:${g}`,z)}const rl="@.disabled";let sl=(()=>{class T{constructor(h,g,z){this.delegate=h,this.engine=g,this._zone=z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,g.onRemovalComplete=(E,q)=>{const ve=q?.parentNode(E);ve&&q.removeChild(ve,E)}}createRenderer(h,g){const E=this.delegate.createRenderer(h,g);if(!(h&&g&&g.data&&g.data.animation)){let ht=this._rendererCache.get(E);return ht||(ht=new bd("",E,this.engine,()=>this._rendererCache.delete(E)),this._rendererCache.set(E,ht)),ht}const q=g.id,ve=g.id+"-"+this._currentId;this._currentId++,this.engine.register(ve,h);const Ee=ht=>{Array.isArray(ht)?ht.forEach(Ee):this.engine.registerTrigger(q,ve,h,ht.name,ht)};return g.data.animation.forEach(Ee),new v1(this,ve,E,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(h,g,z){h>=0&&hg(z)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(E=>{const[q,ve]=E;q(ve)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,z]))}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 T.\u0275fac=function(h){return new(h||T)(i.LFG(i.FYo),i.LFG(ol),i.LFG(i.R0b))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();class bd{constructor(p,h,g,z){this.namespaceId=p,this.delegate=h,this.engine=g,this._onDestroy=z}get data(){return this.delegate.data}destroyNode(p){this.delegate.destroyNode?.(p)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(p,h){return this.delegate.createElement(p,h)}createComment(p){return this.delegate.createComment(p)}createText(p){return this.delegate.createText(p)}appendChild(p,h){this.delegate.appendChild(p,h),this.engine.onInsert(this.namespaceId,h,p,!1)}insertBefore(p,h,g,z=!0){this.delegate.insertBefore(p,h,g),this.engine.onInsert(this.namespaceId,h,p,z)}removeChild(p,h,g){this.engine.onRemove(this.namespaceId,h,this.delegate)}selectRootElement(p,h){return this.delegate.selectRootElement(p,h)}parentNode(p){return this.delegate.parentNode(p)}nextSibling(p){return this.delegate.nextSibling(p)}setAttribute(p,h,g,z){this.delegate.setAttribute(p,h,g,z)}removeAttribute(p,h,g){this.delegate.removeAttribute(p,h,g)}addClass(p,h){this.delegate.addClass(p,h)}removeClass(p,h){this.delegate.removeClass(p,h)}setStyle(p,h,g,z){this.delegate.setStyle(p,h,g,z)}removeStyle(p,h,g){this.delegate.removeStyle(p,h,g)}setProperty(p,h,g){"@"==h.charAt(0)&&h==rl?this.disableAnimations(p,!!g):this.delegate.setProperty(p,h,g)}setValue(p,h){this.delegate.setValue(p,h)}listen(p,h,g){return this.delegate.listen(p,h,g)}disableAnimations(p,h){this.engine.disableAnimations(p,h)}}class v1 extends bd{constructor(p,h,g,z,E){super(h,g,z,E),this.factory=p,this.namespaceId=h}setProperty(p,h,g){"@"==h.charAt(0)?"."==h.charAt(1)&&h==rl?this.disableAnimations(p,g=void 0===g||!!g):this.engine.process(this.namespaceId,p,h.slice(1),g):this.delegate.setProperty(p,h,g)}listen(p,h,g){if("@"==h.charAt(0)){const z=function _1(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(p);let E=h.slice(1),q="";return"@"!=E.charAt(0)&&([E,q]=function Sd(T){const p=T.indexOf(".");return[T.substring(0,p),T.slice(p+1)]}(E)),this.engine.listen(this.namespaceId,z,E,q,ve=>{this.factory.scheduleListenerCallback(ve._data||-1,g,ve)})}return this.delegate.listen(p,h,g)}}let Jr=(()=>{class T extends ol{constructor(h,g,z,E){super(h.body,g,z)}ngOnDestroy(){this.flush()}}return T.\u0275fac=function(h){return new(h||T)(i.LFG(fn.K0),i.LFG(Yr),i.LFG(ea),i.LFG(i.z2F))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();const mc=[{provide:dn._j,useClass:rp},{provide:ea,useFactory:function Ed(){return new Ji}},{provide:ol,useClass:Jr},{provide:i.FYo,useFactory:function al(T,p,h){return new sl(T,p,h)},deps:[t.se,ol,i.R0b]}],gc=[{provide:Yr,useFactory:()=>new Md},{provide:i.QbO,useValue:"BrowserAnimations"},...mc],na=[{provide:Yr,useClass:$r},{provide:i.QbO,useValue:"NoopAnimations"},...mc];let La=(()=>{class T{static withConfig(h){return{ngModule:T,providers:h.disableAnimations?na:gc}}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:gc,imports:[t.b2]}),T})();var cu=a(459);a(4715);const H1=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"clinicaltrialFullcolor",data:''},{name:"queueFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceitemFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"geneFullcolor",data:''},{name:"therapyFullcolor",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:''}],ku=function $1(T){const p=[];return T.forEach(h=>{const g={name:wl(h.name),theme:Ac(h.name),icon:h.data};p.push(g)}),p}([{name:"adminOutline",data:''},{name:"adminTwotone",data:''},{name:"adverseresponseOutline",data:''},{name:"assertionOutline",data:''},{name:"assertionTwotone",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"clinicaltrialOutline",data:''},{name:"clinicaltrialTwotone",data:''},{name:"queueOutline",data:''},{name:"queueTwotone",data:''},{name:"combinationOutline",data:''},{name:"combinedOutline",data:''},{name:"commentOutline",data:''},{name:"commentTwotone",data:''},{name:"commongermlineOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorOutline",data:''},{name:"curatorTwotone",data:''},{name:"diagnosticOutline",data:''},{name:"diseaseOutline",data:''},{name:"diseaseTwotone",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"editorOutline",data:''},{name:"editorTwotone",data:''},{name:"eventOutline",data:''},{name:"eventTwotone",data:''},{name:"evidenceOutline",data:''},{name:"evidenceTwotone",data:''},{name:"evidenceitemOutline",data:''},{name:"evidenceitemTwotone",data:''},{name:"flagOutline",data:''},{name:"flagTwotone",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"geneOutline",data:''},{name:"geneTwotone",data:''},{name:"levelaOutline",data:''},{name:"levelbOutline",data:''},{name:"levelcOutline",data:''},{name:"leveldOutline",data:''},{name:"leveleOutline",data:''},{name:"therapyOutline",data:''},{name:"therapyTwotone",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"molecularprofileTwotone",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"oncogenictypeOutline",data:''},{name:"oncogenicsignificanceOutline",data:''},{name:"oncogenicityOutline",data:''},{name:"orcid",data:''},{name:"organizationOutline",data:''},{name:"organizationTwotone",data:''},{name:"pathogenicOutline",data:''},{name:"phenotypeOutline",data:''},{name:"phenotypeTwotone",data:''},{name:"pooroutcomeOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"predispositionOutline",data:''},{name:"prognosticOutline",data:''},{name:"protectivenessOutline",data:''},{name:"raregermlineOutline",data:''},{name:"rating1Outline",data:''},{name:"rating2Outline",data:''},{name:"rating3Outline",data:''},{name:"rating4Outline",data:''},{name:"rating5Outline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"revisionOutline",data:''},{name:"revisionTwotone",data:''},{name:"sensitivityresponseOutline",data:''},{name:"sequentialOutline",data:''},{name:"somaticOutline",data:''},{name:"sourceOutline",data:''},{name:"sourceTwotone",data:''},{name:"substitutesOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"unknownOutline",data:''},{name:"userOutline",data:''},{name:"userTwotone",data:''},{name:"variantOutline",data:''},{name:"variantTwotone",data:''},{name:"variantgroupOutline",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeOutline",data:''},{name:"varianttypeTwotone",data:''}]);function wl(T){return"civic-"+function lu(T){return T.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(T.replace(/Outline|Fill|TwoTone/i,""))}function Ac(T){return T.includes("Twotone")?"twotone":T.includes("Outline")?"outline":T.includes("Fill")?"fill":"outline"}var Y1=a(279),pa=a(1752),Za=a(4190);const U1=[{path:"",loadChildren:()=>a.e(9641).then(a.bind(a,9641)).then(T=>T.LayoutModule)}],Ru={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Vu=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({imports:[Za.Bz.forRoot(U1,Ru),Za.Bz]}),T})();var Pl=a(553),Vs=a(551),Fc=a(7473),Il=a(67),Al=a(342),Ka=a(3903),Fl=a(2840),G1=a(855),Q1=a(1958),j1=a(8091);function W1(T,p){if(1&T&&i._uU(0),2&T){const h=i.oxw().ngIf;i.AsE(" ",h.name," ",h.message," ")}}function Z1(T,p){1&T&&i.GkF(0)}const Bu=function(T){return{error:T}};function Nl(T,p){if(1&T&&i.YNc(0,Z1,1,0,"ng-container",8),2&T){const h=i.oxw().ngIf,g=i.MAs(7);i.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",i.VKq(2,Bu,h))}}function Hu(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(h);const z=i.oxw().error;i.oxw();const E=i.MAs(11),q=i.MAs(9),ve=i.oxw();return i.KtG(ve.showModal("Backtrace for '"+z.message+"'",z.backtrace,E,q))}),i._uU(1," View Backtrace "),i.qZA()}}function Ll(T,p){if(1&T&&(i._uU(0),i.YNc(1,Hu,2,0,"button",9)),2&T){const h=p.error;i.hij(" ",h.message," "),i.xp6(1),i.Q6J("ngIf",h.backtrace.length>0)}}function K1(T,p){if(1&T&&(i.TgZ(0,"pre",11),i._uU(1),i.qZA()),2&T){const h=p.$implicit;i.xp6(1),i.Oqu(h.backtrace)}}function J1(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"button",12),i.NdJ("click",function(){i.CHM(h);const z=i.oxw(2);return i.KtG(z.copyToClipboard())}),i._uU(1," Copy to Clipboard "),i.qZA(),i.TgZ(2,"button",13),i.NdJ("click",function(){const E=i.CHM(h).modalRef,q=i.oxw(2);return i.KtG(q.hideModal(E))}),i._uU(3," OK "),i.qZA()}}function kl(T,p){if(1&T){const h=i.EpF();i.TgZ(0,"div",1)(1,"nz-alert",2),i.NdJ("nzOnClose",function(){i.CHM(h);const z=i.oxw();return i.KtG(z.onClose())}),i.qZA(),i.YNc(2,W1,1,2,"ng-template",null,3,i.W1O),i.YNc(4,Nl,1,4,"ng-template",null,4,i.W1O),i.YNc(6,Ll,2,2,"ng-template",null,5,i.W1O),i.YNc(8,K1,2,1,"ng-template",null,6,i.W1O),i.YNc(10,J1,4,0,"ng-template",null,7,i.W1O),i.qZA()}if(2&T){const h=i.MAs(3),g=i.MAs(5);i.xp6(1),i.Q6J("nzMessage",h)("nzDescription",g)}}let $u=(()=>{class T{constructor(h,g,z){this.modal=g,this.clipboard=z,this.modalVisible=!1,this.errors=h}showModal(h,g,z,E){this.modalContent=g.join("\n"),this.modal.create({nzTitle:h,nzFooter:z,nzContent:E,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(h){h.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}}return T.\u0275fac=function(h){return new(h||T)(i.Y36(Fc.Y),i.Y36(Il.Sf),i.Y36(Al.TU))},T.\u0275cmp=i.Xpm({type:T,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,"ngTemplateOutlet","ngTemplateOutletContext"],["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(h,g){1&h&&(i.YNc(0,kl,12,2,"div",0),i.ALo(1,"ngrxPush")),2&h&&i.Q6J("ngIf",i.lcZ(1,1,g.errors.networkError$))},dependencies:[fn.O5,fn.tP,Ka.r,Fl.ix,G1.w,Q1.dQ,j1.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}"],changeDetection:0}),T})(),Cs=(()=>{class T{constructor(h,g){this.iconService=h,this.router=g,this.addIcons(H1),Pl.N.production&&this.router.events.subscribe(z=>{z instanceof Za.m2&>ag("config","UA-60119642-1",{page_path:z.urlAfterRedirects})})}addIcons(h){h.forEach(g=>{const E="civic:"+g.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(E,g.data)})}}return T.\u0275fac=function(h){return new(h||T)(i.Y36(Vs.H5),i.Y36(Za.F0))},T.\u0275cmp=i.Xpm({type:T,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(h,g){1&h&&(i.TgZ(0,"div",0),i._UZ(1,"cvc-network-error-alert"),i.qZA(),i.TgZ(2,"div",1),i._UZ(3,"router-outlet"),i.qZA())},dependencies:[Za.lC,$u],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.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}"]}),T})();var Rl=a(8632),Zn=a(655),Di=a(3555),Nc=a(5907),Bs=a(692),Lc=a(7095),Yu=function(){function T(){this.getFragmentDoc=(0,Nc.re)(Lc.Yk)}return T.prototype.batch=function(p){var z,h=this;return this.performTransaction(function(){return z=p.update(h)},"string"==typeof p.optimistic?p.optimistic:!1===p.optimistic?null:void 0),z},T.prototype.recordOptimisticTransaction=function(p,h){this.performTransaction(p,h)},T.prototype.transformDocument=function(p){return p},T.prototype.transformForLink=function(p){return p},T.prototype.identify=function(p){},T.prototype.gc=function(){return[]},T.prototype.modify=function(p){return!1},T.prototype.readQuery=function(p,h){return void 0===h&&(h=!!p.optimistic),this.read((0,Zn.pi)((0,Zn.pi)({},p),{rootId:p.id||"ROOT_QUERY",optimistic:h}))},T.prototype.readFragment=function(p,h){return void 0===h&&(h=!!p.optimistic),this.read((0,Zn.pi)((0,Zn.pi)({},p),{query:this.getFragmentDoc(p.fragment,p.fragmentName),rootId:p.id,optimistic:h}))},T.prototype.writeQuery=function(p){var h=p.id,g=p.data,z=(0,Zn._T)(p,["id","data"]);return this.write(Object.assign(z,{dataId:h||"ROOT_QUERY",result:g}))},T.prototype.writeFragment=function(p){var h=p.id,g=p.data,z=p.fragment,E=p.fragmentName,q=(0,Zn._T)(p,["id","data","fragment","fragmentName"]);return this.write(Object.assign(q,{query:this.getFragmentDoc(z,E),dataId:h,result:g}))},T.prototype.updateQuery=function(p,h){return this.batch({update:function(g){var z=g.readQuery(p),E=h(z);return null==E?z:(g.writeQuery((0,Zn.pi)((0,Zn.pi)({},p),{data:E})),E)}})},T.prototype.updateFragment=function(p,h){return this.batch({update:function(g){var z=g.readFragment(p),E=h(z);return null==E?z:(g.writeFragment((0,Zn.pi)((0,Zn.pi)({},p),{data:E})),E)}})},T}(),Vl=function(T){function p(h,g,z,E){var q,ve=T.call(this,h)||this;if(ve.message=h,ve.path=g,ve.query=z,ve.variables=E,Array.isArray(ve.path)){ve.missing=ve.message;for(var Ee=ve.path.length-1;Ee>=0;--Ee)ve.missing=((q={})[ve.path[Ee]]=ve.missing,q)}else ve.missing=ve.path;return ve.__proto__=p.prototype,ve}return(0,Zn.ZT)(p,T),p}(Error),zo=a(9173),Ja=a(6140),Bl=a(5560),qa=a(2794),Xa=a(9990),Hs=a(8725),qr=a(6630),ha=a(2954),Hr=a(1352);function $l(T){return __DEV__&&function Hl(T){var p=new Set([T]);return p.forEach(function(h){(0,Hr.s)(h)&&function ec(T){if(__DEV__&&!Object.isFrozen(T))try{Object.freeze(T)}catch(p){if(p instanceof TypeError)return null;throw p}return T}(h)===h&&Object.getOwnPropertyNames(h).forEach(function(g){(0,Hr.s)(h[g])&&p.add(h[g])})}),T}(T),T}var kc=a(1823),C=a(6001),Je=Object.prototype.hasOwnProperty;function ee(T){return null==T}function q1(T,p){var h=T.__typename,g=T.id,z=T._id;if("string"==typeof h&&(p&&(p.keyObject=ee(g)?ee(z)?void 0:{_id:z}:{id:g}),ee(g)&&!ee(z)&&(g=z),!ee(g)))return"".concat(h,":").concat("number"==typeof g||"string"==typeof g?g:JSON.stringify(g))}var X1={dataIdFromObject:q1,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Yl(T){var p=T.canonizeResults;return void 0===p?X1.canonizeResults:p}var Ad=/^[_a-z][_0-9a-z]*/i;function fa(T){var p=T.match(Ad);return p?p[0]:T}function Fd(T,p,h){return!!(0,Hr.s)(p)&&((0,C.k)(p)?p.every(function(g){return Fd(T,g,h)}):T.selections.every(function(g){if((0,zo.My)(g)&&(0,ha.LZ)(g,h)){var z=(0,zo.u2)(g);return Je.call(p,z)&&(!g.selectionSet||Fd(g.selectionSet,p[z],h))}return!0}))}function Vc(T){return(0,Hr.s)(T)&&!(0,zo.Yk)(T)&&!(0,C.k)(T)}function tc(T,p){var h=(0,Lc.F)((0,Hs.kU)(T));return{fragmentMap:h,lookupFragment:function(g){var z=h[g];return!z&&p&&(z=p.lookup(g)),z||null}}}var T,p,ma=Object.create(null),Bc=function(){return ma},Gu=Object.create(null),ga=function(){function T(p,h){var g=this;this.policies=p,this.group=h,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(z,E){return $l((0,zo.Yk)(z)?g.get(z.__ref,E):z&&z[E])},this.canRead=function(z){return(0,zo.Yk)(z)?g.has(z.__ref):"object"==typeof z},this.toReference=function(z,E){if("string"==typeof z)return(0,zo.kQ)(z);if((0,zo.Yk)(z))return z;var q=g.policies.identify(z)[0];if(q){var ve=(0,zo.kQ)(q);return E&&g.merge(q,z),ve}}}return T.prototype.toObject=function(){return(0,Zn.pi)({},this.data)},T.prototype.has=function(p){return void 0!==this.lookup(p,!0)},T.prototype.get=function(p,h){if(this.group.depend(p,h),Je.call(this.data,p)){var g=this.data[p];if(g&&Je.call(g,h))return g[h]}return"__typename"===h&&Je.call(this.policies.rootTypenamesById,p)?this.policies.rootTypenamesById[p]:this instanceof _a?this.parent.get(p,h):void 0},T.prototype.lookup=function(p,h){return h&&this.group.depend(p,"__exists"),Je.call(this.data,p)?this.data[p]:this instanceof _a?this.parent.lookup(p,h):this.policies.rootTypenamesById[p]?Object.create(null):void 0},T.prototype.merge=function(p,h){var z,g=this;(0,zo.Yk)(p)&&(p=p.__ref),(0,zo.Yk)(h)&&(h=h.__ref);var E="string"==typeof p?this.lookup(z=p):p,q="string"==typeof h?this.lookup(z=h):h;if(q){__DEV__?(0,Di.kG)("string"==typeof z,"store.merge expects a string ID"):(0,Di.kG)("string"==typeof z,1);var ve=new qr.w0(cp).merge(E,q);if(this.data[z]=ve,ve!==E&&(delete this.refs[z],this.group.caching)){var Ee=Object.create(null);E||(Ee.__exists=1),Object.keys(q).forEach(function(Xe){if(!E||E[Xe]!==ve[Xe]){Ee[Xe]=1;var ht=fa(Xe);ht!==Xe&&!g.policies.hasKeyArgs(ve.__typename,ht)&&(Ee[ht]=1),void 0===ve[Xe]&&!(g instanceof _a)&&delete ve[Xe]}}),Ee.__typename&&!(E&&E.__typename)&&this.policies.rootTypenamesById[z]===ve.__typename&&delete Ee.__typename,Object.keys(Ee).forEach(function(Xe){return g.group.dirty(z,Xe)})}}},T.prototype.modify=function(p,h){var g=this,z=this.lookup(p);if(z){var E=Object.create(null),q=!1,ve=!0,Ee={DELETE:ma,INVALIDATE:Gu,isReference:zo.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Xe,ht){return g.policies.readField("string"==typeof Xe?{fieldName:Xe,from:ht||(0,zo.kQ)(p)}:Xe,{store:g})}};if(Object.keys(z).forEach(function(Xe){var ht=fa(Xe),Dt=z[Xe];if(void 0!==Dt){var $t="function"==typeof h?h:h[Xe]||h[ht];if($t){var Qt=$t===Bc?ma:$t($l(Dt),(0,Zn.pi)((0,Zn.pi)({},Ee),{fieldName:ht,storeFieldName:Xe,storage:g.getStorage(p,Xe)}));Qt===Gu?g.group.dirty(p,Xe):(Qt===ma&&(Qt=void 0),Qt!==Dt&&(E[Xe]=Qt,q=!0,Dt=Qt))}void 0!==Dt&&(ve=!1)}}),q)return this.merge(p,E),ve&&(this instanceof _a?this.data[p]=void 0:delete this.data[p],this.group.dirty(p,"__exists")),!0}return!1},T.prototype.delete=function(p,h,g){var z,E=this.lookup(p);if(E){var q=this.getFieldValue(E,"__typename"),ve=h&&g?this.policies.getStoreFieldName({typename:q,fieldName:h,args:g}):h;return this.modify(p,ve?((z={})[ve]=Bc,z):Bc)}return!1},T.prototype.evict=function(p,h){var g=!1;return p.id&&(Je.call(this.data,p.id)&&(g=this.delete(p.id,p.fieldName,p.args)),this instanceof _a&&this!==h&&(g=this.parent.evict(p,h)||g),(p.fieldName||g)&&this.group.dirty(p.id,p.fieldName||"__exists")),g},T.prototype.clear=function(){this.replace(null)},T.prototype.extract=function(){var p=this,h=this.toObject(),g=[];return this.getRootIdSet().forEach(function(z){Je.call(p.policies.rootTypenamesById,z)||g.push(z)}),g.length&&(h.__META={extraRootIds:g.sort()}),h},T.prototype.replace=function(p){var h=this;if(Object.keys(this.data).forEach(function(E){p&&Je.call(p,E)||h.delete(E)}),p){var g=p.__META,z=(0,Zn._T)(p,["__META"]);Object.keys(z).forEach(function(E){h.merge(E,z[E])}),g&&g.extraRootIds.forEach(this.retain,this)}},T.prototype.retain=function(p){return this.rootIds[p]=(this.rootIds[p]||0)+1},T.prototype.release=function(p){if(this.rootIds[p]>0){var h=--this.rootIds[p];return h||delete this.rootIds[p],h}return 0},T.prototype.getRootIdSet=function(p){return void 0===p&&(p=new Set),Object.keys(this.rootIds).forEach(p.add,p),this instanceof _a?this.parent.getRootIdSet(p):Object.keys(this.policies.rootTypenamesById).forEach(p.add,p),p},T.prototype.gc=function(){var p=this,h=this.getRootIdSet(),g=this.toObject();h.forEach(function(q){Je.call(g,q)&&(Object.keys(p.findChildRefIds(q)).forEach(h.add,h),delete g[q])});var z=Object.keys(g);if(z.length){for(var E=this;E instanceof _a;)E=E.parent;z.forEach(function(q){return E.delete(q)})}return z},T.prototype.findChildRefIds=function(p){if(!Je.call(this.refs,p)){var h=this.refs[p]=Object.create(null),g=this.data[p];if(!g)return h;var z=new Set([g]);z.forEach(function(E){(0,zo.Yk)(E)&&(h[E.__ref]=!0),(0,Hr.s)(E)&&Object.keys(E).forEach(function(q){var ve=E[q];(0,Hr.s)(ve)&&z.add(ve)})})}return this.refs[p]},T.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},T}(),ed=function(){function T(p,h){void 0===h&&(h=null),this.caching=p,this.parent=h,this.d=null,this.resetCaching()}return T.prototype.resetCaching=function(){this.d=this.caching?(0,Nc.dP)():null,this.keyMaker=new kc.B(qa.mr)},T.prototype.depend=function(p,h){if(this.d){this.d(Qu(p,h));var g=fa(h);g!==h&&this.d(Qu(p,g)),this.parent&&this.parent.depend(p,h)}},T.prototype.dirty=function(p,h){this.d&&this.d.dirty(Qu(p,h),"__exists"===h?"forget":"setDirty")},T}();function Qu(T,p){return p+"#"+T}function va(T,p){Gl(T)&&T.group.depend(p,"__exists")}p=function(h){function g(z){var q=z.resultCaching,Ee=z.seed,Xe=h.call(this,z.policies,new ed(void 0===q||q))||this;return Xe.stump=new ap(Xe),Xe.storageTrie=new kc.B(qa.mr),Ee&&Xe.replace(Ee),Xe}return(0,Zn.ZT)(g,h),g.prototype.addLayer=function(z,E){return this.stump.addLayer(z,E)},g.prototype.removeLayer=function(){return this},g.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},g}(T=ga||(ga={})),T.Root=p;var _a=function(T){function p(h,g,z,E){var q=T.call(this,g.policies,E)||this;return q.id=h,q.parent=g,q.replay=z,q.group=E,z(q),q}return(0,Zn.ZT)(p,T),p.prototype.addLayer=function(h,g){return new p(h,this,g,this.group)},p.prototype.removeLayer=function(h){var g=this,z=this.parent.removeLayer(h);return h===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(E){var q=g.data[E],ve=z.lookup(E);ve?q?q!==ve&&Object.keys(q).forEach(function(Ee){(0,Bs.D)(q[Ee],ve[Ee])||g.group.dirty(E,Ee)}):(g.group.dirty(E,"__exists"),Object.keys(ve).forEach(function(Ee){g.group.dirty(E,Ee)})):g.delete(E)}),z):z===this.parent?this:z.addLayer(this.id,this.replay)},p.prototype.toObject=function(){return(0,Zn.pi)((0,Zn.pi)({},this.parent.toObject()),this.data)},p.prototype.findChildRefIds=function(h){var g=this.parent.findChildRefIds(h);return Je.call(this.data,h)?(0,Zn.pi)((0,Zn.pi)({},g),T.prototype.findChildRefIds.call(this,h)):g},p.prototype.getStorage=function(){for(var h=this.parent;h.parent;)h=h.parent;return h.getStorage.apply(h,arguments)},p}(ga),ap=function(T){function p(h){return T.call(this,"EntityStore.Stump",h,function(){},new ed(h.group.caching,h.group))||this}return(0,Zn.ZT)(p,T),p.prototype.removeLayer=function(){return this},p.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},p}(_a);function cp(T,p,h){var g=T[h],z=p[h];return(0,Bs.D)(g,z)?g:z}function Gl(T){return!!(T instanceof ga&&T.group.caching)}var ya=a(1789);function zs(T){return[T.selectionSet,T.objectOrReference,T.context,T.context.canonizeResults]}var Hc=function(){function T(p){var h=this;this.knownResults=new(qa.mr?WeakMap:Map),this.config=(0,Xa.o)(p,{addTypename:!1!==p.addTypename,canonizeResults:Yl(p)}),this.canon=p.canon||new ya.h,this.executeSelectionSet=(0,Nc.re)(function(g){var z,E=g.context.canonizeResults,q=zs(g);q[3]=!E;var ve=(z=h.executeSelectionSet).peek.apply(z,q);return ve?E?(0,Zn.pi)((0,Zn.pi)({},ve),{result:h.canon.admit(ve.result)}):ve:(va(g.context.store,g.enclosingRef.__ref),h.execSelectionSetImpl(g))},{max:this.config.resultCacheMaxSize,keyArgs:zs,makeCacheKey:function(g,z,E,q){if(Gl(E.store))return E.store.makeCacheKey(g,(0,zo.Yk)(z)?z.__ref:z,E.varString,q)}}),this.executeSubSelectedArray=(0,Nc.re)(function(g){return va(g.context.store,g.enclosingRef.__ref),h.execSubSelectedArrayImpl(g)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(g){var z=g.field,E=g.array,q=g.context;if(Gl(q.store))return q.store.makeCacheKey(z,E,q.varString)}})}return T.prototype.resetCanon=function(){this.canon=new ya.h},T.prototype.diffQueryAgainstStore=function(p){var h=p.store,g=p.query,z=p.rootId,E=void 0===z?"ROOT_QUERY":z,q=p.variables,ve=p.returnPartialData,Ee=void 0===ve||ve,Xe=p.canonizeResults,ht=void 0===Xe?this.config.canonizeResults:Xe,Dt=this.config.cache.policies;q=(0,Zn.pi)((0,Zn.pi)({},(0,Hs.O4)((0,Hs.iW)(g))),q);var Kt,$t=(0,zo.kQ)(E),Qt=this.executeSelectionSet({selectionSet:(0,Hs.p$)(g).selectionSet,objectOrReference:$t,enclosingRef:$t,context:(0,Zn.pi)({store:h,query:g,policies:Dt,variables:q,varString:(0,ya.B)(q),canonizeResults:ht},tc(g,this.config.fragments))});if(Qt.missing&&(Kt=[new Vl(lp(Qt.missing),Qt.missing,g,q)],!Ee))throw Kt[0];return{result:Qt.result,complete:!Kt,missing:Kt}},T.prototype.isFresh=function(p,h,g,z){if(Gl(z.store)&&this.knownResults.get(p)===g){var E=this.executeSelectionSet.peek(g,h,z,this.canon.isKnown(p));if(E&&p===E.result)return!0}return!1},T.prototype.execSelectionSetImpl=function(p){var h=this,g=p.selectionSet,z=p.objectOrReference,E=p.enclosingRef,q=p.context;if((0,zo.Yk)(z)&&!q.policies.rootTypenamesById[z.__ref]&&!q.store.has(z.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(z.__ref," object")};var $t,ve=q.variables,Ee=q.policies,ht=q.store.getFieldValue(z,"__typename"),Dt=[],Qt=new qr.w0;function Kt(nn,vn){var $n;return nn.missing&&($t=Qt.merge($t,(($n={})[vn]=nn.missing,$n))),nn.result}this.config.addTypename&&"string"==typeof ht&&!Ee.rootIdsByTypename[ht]&&Dt.push({__typename:ht});var Wt=new Set(g.selections);Wt.forEach(function(nn){var vn,$n;if((0,ha.LZ)(nn,ve))if((0,zo.My)(nn)){var Ln=Ee.readField({fieldName:nn.name.value,field:nn,variables:q.variables,from:z},q),no=(0,zo.u2)(nn);void 0===Ln?Ja.Gw.added(nn)||($t=Qt.merge($t,((vn={})[no]="Can't find field '".concat(nn.name.value,"' on ").concat((0,zo.Yk)(z)?z.__ref+" object":"object "+JSON.stringify(z,null,2)),vn))):(0,C.k)(Ln)?Ln=Kt(h.executeSubSelectedArray({field:nn,array:Ln,enclosingRef:E,context:q}),no):nn.selectionSet?null!=Ln&&(Ln=Kt(h.executeSelectionSet({selectionSet:nn.selectionSet,objectOrReference:Ln,enclosingRef:(0,zo.Yk)(Ln)?Ln:E,context:q}),no)):q.canonizeResults&&(Ln=h.canon.pass(Ln)),void 0!==Ln&&Dt.push((($n={})[no]=Ln,$n))}else{var xo=(0,Lc.hi)(nn,q.lookupFragment);if(!xo&&nn.kind===Bl.h.FRAGMENT_SPREAD)throw __DEV__?new Di.ej("No fragment named ".concat(nn.name.value)):new Di.ej(5);xo&&Ee.fragmentMatches(xo,ht)&&xo.selectionSet.selections.forEach(Wt.add,Wt)}});var En={result:(0,qr.bw)(Dt),missing:$t},Hn=q.canonizeResults?this.canon.admit(En):$l(En);return Hn.result&&this.knownResults.set(Hn.result,g),Hn},T.prototype.execSubSelectedArrayImpl=function(p){var ve,h=this,g=p.field,z=p.array,E=p.enclosingRef,q=p.context,Ee=new qr.w0;function Xe(ht,Dt){var $t;return ht.missing&&(ve=Ee.merge(ve,(($t={})[Dt]=ht.missing,$t))),ht.result}return g.selectionSet&&(z=z.filter(q.store.canRead)),z=z.map(function(ht,Dt){return null===ht?null:(0,C.k)(ht)?Xe(h.executeSubSelectedArray({field:g,array:ht,enclosingRef:E,context:q}),Dt):g.selectionSet?Xe(h.executeSelectionSet({selectionSet:g.selectionSet,objectOrReference:ht,enclosingRef:(0,zo.Yk)(ht)?ht:E,context:q}),Dt):(__DEV__&&function up(T,p,h){if(!p.selectionSet){var g=new Set([h]);g.forEach(function(z){(0,Hr.s)(z)&&(__DEV__?(0,Di.kG)(!(0,zo.Yk)(z),"Missing selection set for object of type ".concat(function Rc(T,p){return(0,zo.Yk)(p)?T.get(p.__ref,"__typename"):p&&p.__typename}(T,z)," returned for query field ").concat(p.name.value)):(0,Di.kG)(!(0,zo.Yk)(z),6),Object.values(z).forEach(g.add,g))})}}(q.store,g,ht),ht)}),{result:q.canonizeResults?this.canon.admit(z):z,missing:ve}},T}();function lp(T){try{JSON.stringify(T,function(p,h){if("string"==typeof h)throw h;return h})}catch(p){return p}}var dp=a(5078),Nd=a(6726),Ql=a(3088),td=Object.create(null);function Xi(T){var p=JSON.stringify(T);return td[p]||(td[p]=Object.create(null))}function nd(T){var p=Xi(T);return p.keyFieldsFn||(p.keyFieldsFn=function(h,g){var z=function(q,ve){return g.readField(ve,q)},E=g.keyObject=od(T,function(q){var ve=Ms(g.storeObject,q,z);return void 0===ve&&h!==g.storeObject&&Je.call(h,q[0])&&(ve=Ms(h,q,Ts)),__DEV__?(0,Di.kG)(void 0!==ve,"Missing field '".concat(q.join("."),"' while extracting keyFields from ").concat(JSON.stringify(h))):(0,Di.kG)(void 0!==ve,2),ve});return"".concat(g.typename,":").concat(JSON.stringify(E))})}function Ld(T){var p=Xi(T);return p.keyArgsFn||(p.keyArgsFn=function(h,g){var z=g.field,E=g.variables,q=g.fieldName,ve=od(T,function(Xe){var ht=Xe[0],Dt=ht.charAt(0);if("@"!==Dt)if("$"!==Dt){if(h)return Ms(h,Xe)}else{var Wt=ht.slice(1);if(E&&Je.call(E,Wt)){var mn=Xe.slice(0);return mn[0]=Wt,Ms(E,mn)}}else if(z&&(0,C.O)(z.directives)){var $t=ht.slice(1),Qt=z.directives.find(function(En){return En.name.value===$t}),Kt=Qt&&(0,zo.NC)(Qt,E);return Kt&&Ms(Kt,Xe.slice(1))}}),Ee=JSON.stringify(ve);return(h||"{}"!==Ee)&&(q+=":"+Ee),q})}function od(T,p){var h=new qr.w0;return $c(T).reduce(function(g,z){var E,q=p(z);if(void 0!==q){for(var ve=z.length-1;ve>=0;--ve)(E={})[z[ve]]=q,q=E;g=h.merge(g,q)}return g},Object.create(null))}function $c(T){var p=Xi(T);if(!p.paths){var h=p.paths=[],g=[];T.forEach(function(z,E){(0,C.k)(z)?($c(z).forEach(function(q){return h.push(g.concat(q))}),g.length=0):(g.push(z),(0,C.k)(T[E+1])||(h.push(g.slice(0)),g.length=0))})}return p.paths}function Ts(T,p){return T[p]}function Ms(T,p,h){return h=h||Ts,ju(p.reduce(function g(z,E){return(0,C.k)(z)?z.map(function(q){return g(q,E)}):z&&h(z,E)},T))}function ju(T){return(0,Hr.s)(T)?(0,C.k)(T)?T.map(ju):od(Object.keys(T).sort(),function(p){return Ms(T,p)}):T}function jl(T){return void 0!==T.args?T.args:T.field?(0,zo.NC)(T.field,T.variables):null}zo.PT.setStringify(ya.B);var id=function(){},rd=function(T,p){return p.fieldName},hp=function(T,p,h){return(0,h.mergeObjects)(T,p)},kd=function(T,p){return p},sd=function(){function T(p){this.config=p,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:q1},p),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),p.possibleTypes&&this.addPossibleTypes(p.possibleTypes),p.typePolicies&&this.addTypePolicies(p.typePolicies)}return T.prototype.identify=function(p,h){var g,z=this,E=h&&(h.typename||(null===(g=h.storeObject)||void 0===g?void 0:g.__typename))||p.__typename;if(E===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var Ee,q=h&&h.storeObject||p,ve=(0,Zn.pi)((0,Zn.pi)({},h),{typename:E,storeObject:q,readField:h&&h.readField||function(){var $t=ad(arguments,q);return z.readField($t,{store:z.cache.data,variables:$t.variables})}}),Xe=E&&this.getTypePolicy(E),ht=Xe&&Xe.keyFn||this.config.dataIdFromObject;ht;){var Dt=ht((0,Zn.pi)((0,Zn.pi)({},p),q),ve);if(!(0,C.k)(Dt)){Ee=Dt;break}ht=nd(Dt)}return Ee=Ee?String(Ee):void 0,ve.keyObject?[Ee,ve.keyObject]:[Ee]},T.prototype.addTypePolicies=function(p){var h=this;Object.keys(p).forEach(function(g){var z=p[g],E=z.queryType,q=z.mutationType,ve=z.subscriptionType,Ee=(0,Zn._T)(z,["queryType","mutationType","subscriptionType"]);E&&h.setRootTypename("Query",g),q&&h.setRootTypename("Mutation",g),ve&&h.setRootTypename("Subscription",g),Je.call(h.toBeAdded,g)?h.toBeAdded[g].push(Ee):h.toBeAdded[g]=[Ee]})},T.prototype.updateTypePolicy=function(p,h){var g=this,z=this.getTypePolicy(p),E=h.keyFields,q=h.fields;function ve(Ee,Xe){Ee.merge="function"==typeof Xe?Xe:!0===Xe?hp:!1===Xe?kd:Ee.merge}ve(z,h.merge),z.keyFn=!1===E?id:(0,C.k)(E)?nd(E):"function"==typeof E?E:z.keyFn,q&&Object.keys(q).forEach(function(Ee){var Xe=g.getFieldPolicy(p,Ee,!0),ht=q[Ee];if("function"==typeof ht)Xe.read=ht;else{var Dt=ht.keyArgs,$t=ht.read,Qt=ht.merge;Xe.keyFn=!1===Dt?rd:(0,C.k)(Dt)?Ld(Dt):"function"==typeof Dt?Dt:Xe.keyFn,"function"==typeof $t&&(Xe.read=$t),ve(Xe,Qt)}Xe.read&&Xe.merge&&(Xe.keyFn=Xe.keyFn||rd)})},T.prototype.setRootTypename=function(p,h){void 0===h&&(h=p);var g="ROOT_"+p.toUpperCase(),z=this.rootTypenamesById[g];h!==z&&(__DEV__?(0,Di.kG)(!z||z===p,"Cannot change root ".concat(p," __typename more than once")):(0,Di.kG)(!z||z===p,3),z&&delete this.rootIdsByTypename[z],this.rootIdsByTypename[h]=g,this.rootTypenamesById[g]=h)},T.prototype.addPossibleTypes=function(p){var h=this;this.usingPossibleTypes=!0,Object.keys(p).forEach(function(g){h.getSupertypeSet(g,!0),p[g].forEach(function(z){h.getSupertypeSet(z,!0).add(g);var E=z.match(Ad);(!E||E[0]!==z)&&h.fuzzySubtypes.set(z,new RegExp(z))})})},T.prototype.getTypePolicy=function(p){var h=this;if(!Je.call(this.typePolicies,p)){var g=this.typePolicies[p]=Object.create(null);g.fields=Object.create(null);var z=this.supertypeMap.get(p);z&&z.size&&z.forEach(function(q){var ve=h.getTypePolicy(q),Ee=ve.fields,Xe=(0,Zn._T)(ve,["fields"]);Object.assign(g,Xe),Object.assign(g.fields,Ee)})}var E=this.toBeAdded[p];return E&&E.length&&E.splice(0).forEach(function(q){h.updateTypePolicy(p,q)}),this.typePolicies[p]},T.prototype.getFieldPolicy=function(p,h,g){if(p){var z=this.getTypePolicy(p).fields;return z[h]||g&&(z[h]=Object.create(null))}},T.prototype.getSupertypeSet=function(p,h){var g=this.supertypeMap.get(p);return!g&&h&&this.supertypeMap.set(p,g=new Set),g},T.prototype.fragmentMatches=function(p,h,g,z){var E=this;if(!p.typeCondition)return!0;if(!h)return!1;var q=p.typeCondition.name.value;if(h===q)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(q))for(var ve=this.getSupertypeSet(h,!0),Ee=[ve],Xe=function(Kt){var Wt=E.getSupertypeSet(Kt,!1);Wt&&Wt.size&&Ee.indexOf(Wt)<0&&Ee.push(Wt)},ht=!(!g||!this.fuzzySubtypes.size),Dt=!1,$t=0;$t1?T[1]:p}:(q=(0,Zn.pi)({},g),Je.call(q,"from")||(q.from=p)),__DEV__&&void 0===q.from&&__DEV__&&Di.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function pp(T){var p=(0,Nd.X)("stringifyForDisplay");return JSON.stringify(T,function(h,g){return void 0===g?p:g}).split(JSON.stringify(p)).join("")}(Array.from(T)))),void 0===q.variables&&(q.variables=h),q}function fp(T){return function(h,g){if((0,C.k)(h)||(0,C.k)(g))throw __DEV__?new Di.ej("Cannot automatically merge arrays"):new Di.ej(4);if((0,Hr.s)(h)&&(0,Hr.s)(g)){var z=T.getFieldValue(h,"__typename"),E=T.getFieldValue(g,"__typename");if(z&&E&&z!==E)return g;if((0,zo.Yk)(h)&&Vc(g))return T.merge(h.__ref,g),h;if(Vc(h)&&(0,zo.Yk)(g))return T.merge(h,g.__ref),g;if(Vc(h)&&Vc(g))return(0,Zn.pi)((0,Zn.pi)({},h),g)}return g}}function Zu(T,p,h){var g="".concat(p).concat(h),z=T.flavors.get(g);return z||T.flavors.set(g,z=T.clientOnly===p&&T.deferred===h?T:(0,Zn.pi)((0,Zn.pi)({},T),{clientOnly:p,deferred:h})),z}var mp=function(){function T(p,h,g){this.cache=p,this.reader=h,this.fragments=g}return T.prototype.writeToStore=function(p,h){var g=this,z=h.query,E=h.result,q=h.dataId,ve=h.variables,Ee=h.overwrite,Xe=(0,Hs.$H)(z),ht=function Ul(){return new qr.w0}();ve=(0,Zn.pi)((0,Zn.pi)({},(0,Hs.O4)(Xe)),ve);var Dt=(0,Zn.pi)((0,Zn.pi)({store:p,written:Object.create(null),merge:function(Qt,Kt){return ht.merge(Qt,Kt)},variables:ve,varString:(0,ya.B)(ve)},tc(z,this.fragments)),{overwrite:!!Ee,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),$t=this.processSelectionSet({result:E||Object.create(null),dataId:q,selectionSet:Xe.selectionSet,mergeTree:{map:new Map},context:Dt});if(!(0,zo.Yk)($t))throw __DEV__?new Di.ej("Could not identify object ".concat(JSON.stringify(E))):new Di.ej(7);return Dt.incomingById.forEach(function(Qt,Kt){var Wt=Qt.storeObject,mn=Qt.mergeTree,En=Qt.fieldNodeSet,Hn=(0,zo.kQ)(Kt);if(mn&&mn.map.size){var nn=g.applyMerges(mn,Hn,Wt,Dt);if((0,zo.Yk)(nn))return;Wt=nn}if(__DEV__&&!Dt.overwrite){var vn=Object.create(null);En.forEach(function(no){no.selectionSet&&(vn[no.name.value]=!0)}),Object.keys(Wt).forEach(function(no){(function(no){return!0===vn[fa(no)]})(no)&&!function(no){var xo=mn&&mn.map.get(no);return!!(xo&&xo.info&&xo.info.merge)}(no)&&function ud(T,p,h,g){var z=function(Dt){var $t=g.getFieldValue(Dt,h);return"object"==typeof $t&&$t},E=z(T);if(E){var q=z(p);if(q&&!(0,zo.Yk)(E)&&!(0,Bs.D)(E,q)&&!Object.keys(E).every(function(Dt){return void 0!==g.getFieldValue(q,Dt)})){var ve=g.getFieldValue(T,"__typename")||g.getFieldValue(p,"__typename"),Ee=fa(h),Xe="".concat(ve,".").concat(Ee);if(!ld.has(Xe)){ld.add(Xe);var ht=[];!(0,C.k)(E)&&!(0,C.k)(q)&&[E,q].forEach(function(Dt){var $t=g.getFieldValue(Dt,"__typename");"string"==typeof $t&&!ht.includes($t)&&ht.push($t)}),__DEV__&&Di.kG.warn("Cache data may be lost when replacing the ".concat(Ee," field of a ").concat(ve," object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(ht.length?"either ensure all objects of type "+ht.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(Xe," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(E).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(q).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"))}}}}(Hn,Wt,no,Dt.store)})}p.merge(Kt,Wt)}),p.retain($t.__ref),$t},T.prototype.processSelectionSet=function(p){var h=this,g=p.dataId,z=p.result,E=p.selectionSet,q=p.context,ve=p.mergeTree,Ee=this.cache.policies,Xe=Object.create(null),ht=g&&Ee.rootTypenamesById[g]||(0,zo.qw)(z,E,q.fragmentMap)||g&&q.store.get(g,"__typename");"string"==typeof ht&&(Xe.__typename=ht);var Dt=function(){var nn=ad(arguments,Xe,q.variables);if((0,zo.Yk)(nn.from)){var vn=q.incomingById.get(nn.from.__ref);if(vn){var $n=Ee.readField((0,Zn.pi)((0,Zn.pi)({},nn),{from:vn.storeObject}),q);if(void 0!==$n)return $n}}return Ee.readField(nn,q)},$t=new Set;this.flattenFields(E,z,q,ht).forEach(function(nn,vn){var $n,Ln=(0,zo.u2)(vn),no=z[Ln];if($t.add(vn),void 0!==no){var xo=Ee.getStoreFieldName({typename:ht,fieldName:vn.name.value,field:vn,variables:nn.variables}),Oi=Vd(ve,xo),Mi=h.processFieldValue(no,vn,vn.selectionSet?Zu(nn,!1,!1):nn,Oi),rs=void 0;vn.selectionSet&&((0,zo.Yk)(Mi)||Vc(Mi))&&(rs=Dt("__typename",Mi));var Ri=Ee.getMergeFunction(ht,vn.name.value,rs);Ri?Oi.info={field:vn,typename:ht,merge:Ri}:bs(ve,xo),Xe=nn.merge(Xe,(($n={})[xo]=Mi,$n))}else __DEV__&&!nn.clientOnly&&!nn.deferred&&!Ja.Gw.added(vn)&&!Ee.getReadFunction(ht,vn.name.value)&&__DEV__&&Di.kG.error("Missing field '".concat((0,zo.u2)(vn),"' while writing result ").concat(JSON.stringify(z,null,2)).substring(0,1e3))});try{var Qt=Ee.identify(z,{typename:ht,selectionSet:E,fragmentMap:q.fragmentMap,storeObject:Xe,readField:Dt}),Wt=Qt[1];g=g||Qt[0],Wt&&(Xe=q.merge(Xe,Wt))}catch(nn){if(!g)throw nn}if("string"==typeof g){var mn=(0,zo.kQ)(g),En=q.written[g]||(q.written[g]=[]);if(En.indexOf(E)>=0||(En.push(E),this.reader&&this.reader.isFresh(z,mn,E,q)))return mn;var Hn=q.incomingById.get(g);return Hn?(Hn.storeObject=q.merge(Hn.storeObject,Xe),Hn.mergeTree=cd(Hn.mergeTree,ve),$t.forEach(function(nn){return Hn.fieldNodeSet.add(nn)})):q.incomingById.set(g,{storeObject:Xe,mergeTree:Wl(ve)?void 0:ve,fieldNodeSet:$t}),mn}return Xe},T.prototype.processFieldValue=function(p,h,g,z){var E=this;return h.selectionSet&&null!==p?(0,C.k)(p)?p.map(function(q,ve){var Ee=E.processFieldValue(q,h,g,Vd(z,ve));return bs(z,ve),Ee}):this.processSelectionSet({result:p,selectionSet:h.selectionSet,context:g,mergeTree:z}):__DEV__?(0,dp.X)(p):p},T.prototype.flattenFields=function(p,h,g,z){void 0===z&&(z=(0,zo.qw)(h,p,g.fragmentMap));var E=new Map,q=this.cache.policies,ve=new kc.B(!1);return function Ee(Xe,ht){var Dt=ve.lookup(Xe,ht.clientOnly,ht.deferred);Dt.visited||(Dt.visited=!0,Xe.selections.forEach(function($t){if((0,ha.LZ)($t,g.variables)){var Qt=ht.clientOnly,Kt=ht.deferred;if(!(Qt&&Kt)&&(0,C.O)($t.directives)&&$t.directives.forEach(function(En){var Hn=En.name.value;if("client"===Hn&&(Qt=!0),"defer"===Hn){var nn=(0,zo.NC)(En,g.variables);(!nn||!1!==nn.if)&&(Kt=!0)}}),(0,zo.My)($t)){var Wt=E.get($t);Wt&&(Qt=Qt&&Wt.clientOnly,Kt=Kt&&Wt.deferred),E.set($t,Zu(g,Qt,Kt))}else{var mn=(0,Lc.hi)($t,g.lookupFragment);if(!mn&&$t.kind===Bl.h.FRAGMENT_SPREAD)throw __DEV__?new Di.ej("No fragment named ".concat($t.name.value)):new Di.ej(8);mn&&q.fragmentMatches(mn,z,h,g.variables)&&Ee(mn.selectionSet,Zu(g,Qt,Kt))}}}))}(p,g),E},T.prototype.applyMerges=function(p,h,g,z,E){var q,ve=this;if(p.map.size&&!(0,zo.Yk)(g)){var Ee=(0,C.k)(g)||!(0,zo.Yk)(h)&&!Vc(h)?void 0:h,Xe=g;Ee&&!E&&(E=[(0,zo.Yk)(Ee)?Ee.__ref:Ee]);var ht,Dt=function($t,Qt){return(0,C.k)($t)?"number"==typeof Qt?$t[Qt]:void 0:z.store.getFieldValue($t,String(Qt))};p.map.forEach(function($t,Qt){var Kt=Dt(Ee,Qt),Wt=Dt(Xe,Qt);if(void 0!==Wt){E&&E.push(Qt);var mn=ve.applyMerges($t,Kt,Wt,z,E);mn!==Wt&&(ht=ht||new Map).set(Qt,mn),E&&(0,Di.kG)(E.pop()===Qt)}}),ht&&(g=(0,C.k)(Xe)?Xe.slice(0):(0,Zn.pi)({},Xe),ht.forEach(function($t,Qt){g[Qt]=$t}))}return p.info?this.cache.policies.runMergeFunction(h,g,p.info,z,E&&(q=z.store).getStorage.apply(q,E)):g},T}(),Rd=[];function Vd(T,p){var h=T.map;return h.has(p)||h.set(p,Rd.pop()||{map:new Map}),h.get(p)}function cd(T,p){if(T===p||!p||Wl(p))return T;if(!T||Wl(T))return p;var h=T.info&&p.info?(0,Zn.pi)((0,Zn.pi)({},T.info),p.info):T.info||p.info,g=T.map.size&&p.map.size,E={info:h,map:g?new Map:T.map.size?T.map:p.map};if(g){var q=new Set(p.map.keys());T.map.forEach(function(ve,Ee){E.map.set(Ee,cd(ve,p.map.get(Ee))),q.delete(Ee)}),q.forEach(function(ve){E.map.set(ve,cd(p.map.get(ve),T.map.get(ve)))})}return E}function Wl(T){return!T||!(T.info||T.map.size)}function bs(T,p){var h=T.map,g=h.get(p);g&&Wl(g)&&(Rd.push(g),h.delete(p))}var ld=new Set,gp=function(T){function p(h){void 0===h&&(h={});var g=T.call(this)||this;return g.watches=new Set,g.typenameDocumentCache=new Map,g.makeVar=Ql.QS,g.txCount=0,g.config=function Uu(T){return(0,Xa.o)(X1,T)}(h),g.addTypename=!!g.config.addTypename,g.policies=new sd({cache:g,dataIdFromObject:g.config.dataIdFromObject,possibleTypes:g.config.possibleTypes,typePolicies:g.config.typePolicies}),g.init(),g}return(0,Zn.ZT)(p,T),p.prototype.init=function(){var h=this.data=new ga.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=h.stump,this.resetResultCache()},p.prototype.resetResultCache=function(h){var g=this,z=this.storeReader,E=this.config.fragments;this.storeWriter=new mp(this,this.storeReader=new Hc({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Yl(this.config),canon:h?void 0:z&&z.canon,fragments:E}),E),this.maybeBroadcastWatch=(0,Nc.re)(function(q,ve){return g.broadcastWatch(q,ve)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(q){var ve=q.optimistic?g.optimisticData:g.data;if(Gl(ve))return ve.makeCacheKey(q.query,q.callback,(0,ya.B)({optimistic:q.optimistic,id:q.id,variables:q.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(q){return q.resetCaching()})},p.prototype.restore=function(h){return this.init(),h&&this.data.replace(h),this},p.prototype.extract=function(h){return void 0===h&&(h=!1),(h?this.optimisticData:this.data).extract()},p.prototype.read=function(h){var g=h.returnPartialData,z=void 0!==g&&g;try{return this.storeReader.diffQueryAgainstStore((0,Zn.pi)((0,Zn.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:z})).result||null}catch(E){if(E instanceof Vl)return null;throw E}},p.prototype.write=function(h){try{return++this.txCount,this.storeWriter.writeToStore(this.data,h)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.modify=function(h){if(Je.call(h,"id")&&!h.id)return!1;var g=h.optimistic?this.optimisticData:this.data;try{return++this.txCount,g.modify(h.id||"ROOT_QUERY",h.fields)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.diff=function(h){return this.storeReader.diffQueryAgainstStore((0,Zn.pi)((0,Zn.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,rootId:h.id||"ROOT_QUERY",config:this.config}))},p.prototype.watch=function(h){var g=this;return this.watches.size||(0,Ql._v)(this),this.watches.add(h),h.immediate&&this.maybeBroadcastWatch(h),function(){g.watches.delete(h)&&!g.watches.size&&(0,Ql.li)(g),g.maybeBroadcastWatch.forget(h)}},p.prototype.gc=function(h){ya.B.reset();var g=this.optimisticData.gc();return h&&!this.txCount&&(h.resetResultCache?this.resetResultCache(h.resetResultIdentities):h.resetResultIdentities&&this.storeReader.resetCanon()),g},p.prototype.retain=function(h,g){return(g?this.optimisticData:this.data).retain(h)},p.prototype.release=function(h,g){return(g?this.optimisticData:this.data).release(h)},p.prototype.identify=function(h){if((0,zo.Yk)(h))return h.__ref;try{return this.policies.identify(h)[0]}catch(g){__DEV__&&Di.kG.warn(g)}},p.prototype.evict=function(h){if(!h.id){if(Je.call(h,"id"))return!1;h=(0,Zn.pi)((0,Zn.pi)({},h),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(h,this.data)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},p.prototype.reset=function(h){var g=this;return this.init(),ya.B.reset(),h&&h.discardWatches?(this.watches.forEach(function(z){return g.maybeBroadcastWatch.forget(z)}),this.watches.clear(),(0,Ql.li)(this)):this.broadcastWatches(),Promise.resolve()},p.prototype.removeOptimistic=function(h){var g=this.optimisticData.removeLayer(h);g!==this.optimisticData&&(this.optimisticData=g,this.broadcastWatches())},p.prototype.batch=function(h){var Xe,g=this,z=h.update,E=h.optimistic,q=void 0===E||E,ve=h.removeOptimistic,Ee=h.onWatchUpdated,ht=function($t){var Kt=g.data,Wt=g.optimisticData;++g.txCount,$t&&(g.data=g.optimisticData=$t);try{return Xe=z(g)}finally{--g.txCount,g.data=Kt,g.optimisticData=Wt}},Dt=new Set;return Ee&&!this.txCount&&this.broadcastWatches((0,Zn.pi)((0,Zn.pi)({},h),{onWatchUpdated:function($t){return Dt.add($t),!1}})),"string"==typeof q?this.optimisticData=this.optimisticData.addLayer(q,ht):!1===q?ht(this.data):ht(),"string"==typeof ve&&(this.optimisticData=this.optimisticData.removeLayer(ve)),Ee&&Dt.size?(this.broadcastWatches((0,Zn.pi)((0,Zn.pi)({},h),{onWatchUpdated:function($t,Qt){var Kt=Ee.call(this,$t,Qt);return!1!==Kt&&Dt.delete($t),Kt}})),Dt.size&&Dt.forEach(function($t){return g.maybeBroadcastWatch.dirty($t)})):this.broadcastWatches(h),Xe},p.prototype.performTransaction=function(h,g){return this.batch({update:h,optimistic:g||null!==g})},p.prototype.transformDocument=function(h){if(this.addTypename){var g=this.typenameDocumentCache.get(h);return g||(g=(0,Ja.Gw)(h),this.typenameDocumentCache.set(h,g),this.typenameDocumentCache.set(g,g)),g}return h},p.prototype.transformForLink=function(h){var g=this.config.fragments;return g?g.transform(h):h},p.prototype.broadcastWatches=function(h){var g=this;this.txCount||this.watches.forEach(function(z){return g.maybeBroadcastWatch(z,h)})},p.prototype.broadcastWatch=function(h,g){var z=h.lastDiff,E=this.diff(h);g&&(h.optimistic&&"string"==typeof g.optimistic&&(E.fromOptimisticTransaction=!0),g.onWatchUpdated&&!1===g.onWatchUpdated.call(this,h,E,z))||(!z||!(0,Bs.D)(z.result,E.result))&&h.callback(h.lastDiff=E,z)},p}(Yu);const Bd={possibleTypes:{CommentBodySegment:["CommentTagSegment","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Flag","Gene","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Flag","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","EvidenceItem","Gene","MolecularProfile","Revision","Source","SourcePopover","SourceSuggestion","Variant","VariantGroup"],Flaggable:["Assertion","BrowseGene","EvidenceItem","Gene","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Gene","Variant"],MolecularProfileSegment:["Gene","MolecularProfileTextSegment","Variant"],WithRevisions:["Assertion","EvidenceItem","Gene","MolecularProfile","Variant","VariantGroup"]}};var Ku=a(9111),$s=a(7691),dd=a(86),vp=a(7619);class Jp extends Rl.i{constructor(p,h){super(),(0,$s.Z)(this,"httpClient",void 0),(0,$s.Z)(this,"options",void 0),(0,$s.Z)(this,"requester",void 0),(0,$s.Z)(this,"print",dd.S),this.httpClient=p,this.options=h,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=g=>new vp.y(z=>{const E=g.getContext(),q=(Hn,nn)=>function Ca(...T){const p=T.find(h=>typeof h<"u");return typeof p>"u"?T[T.length-1]:p}(E[Hn],this.options[Hn],nn);let ve=q("method","POST");const Ee=q("includeQuery",!0),Xe=q("includeExtensions",!1),ht=q("uri","graphql"),Dt=q("withCredentials"),$t=q("useMultipart"),Qt=!0===this.options.useGETForQueries,Kt=g.query.definitions.some(Hn=>"OperationDefinition"===Hn.kind&&"query"===Hn.operation);Qt&&Kt&&(ve="GET");const Wt={method:ve,url:"function"==typeof ht?ht(g):ht,body:{operationName:g.operationName,variables:g.variables},options:{withCredentials:Dt,useMultipart:$t,headers:this.options.headers}};Xe&&(Wt.body.extensions=g.extensions),Ee&&(Wt.body.query=this.print(g.query));const mn=function pd(T){let p=T.headers&&T.headers instanceof Sn.WM?T.headers:new Sn.WM(T.headers);if(T.clientAwareness){const{name:h,version:g}=T.clientAwareness;h&&!p.has("apollographql-client-name")&&(p=p.set("apollographql-client-name",h)),g&&!p.has("apollographql-client-version")&&(p=p.set("apollographql-client-version",g))}return p}(E);Wt.options.headers=((T,p)=>T&&p?p.keys().reduce((g,z)=>g.set(z,p.getAll(z)),T):p||T)(Wt.options.headers,mn);const En=((T,p,h)=>{const g=-1!==["POST","PUT","PATCH"].indexOf(T.method.toUpperCase()),E=T.body.length;let ve,q=T.options&&T.options.useMultipart;if(q){if(E)return new v.y(Xe=>Xe.error(new Error("File upload is not available when combined with Batching")));if(!g)return new v.y(Xe=>Xe.error(new Error("File upload is not available when GET is used")));if(!h)return new v.y(Xe=>Xe.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));ve=h(T.body),q=!!ve.files.size}let Ee={};if(E){if(!g)return new v.y(Xe=>Xe.error(new Error("Batching is not available for GET requests")));Ee={body:T.body}}else Ee=g?{body:q?ve.clone:T.body}:{params:Object.keys(T.body).reduce((Dt,$t)=>{const Qt=T.body[$t];return Dt[$t]=-1!==["variables","extensions"].indexOf($t.toLowerCase())?JSON.stringify(Qt):Qt,Dt},{})};if(q&&g){const Xe=new FormData;Xe.append("operations",JSON.stringify(Ee.body));const ht={},Dt=ve.files;let $t=0;Dt.forEach(Qt=>{ht[++$t]=Qt}),Xe.append("map",JSON.stringify(ht)),$t=0,Dt.forEach((Qt,Kt)=>{Xe.append(++$t+"",Kt,Kt.name)}),Ee.body=Xe}return p.request(T.method,T.url,{observe:"response",responseType:"json",reportProgress:!1,...Ee,...T.options})})(Wt,this.httpClient,this.options.extractFiles).subscribe({next:Hn=>{g.setContext({response:Hn}),z.next(Hn.body)},error:Hn=>z.error(Hn),complete:()=>z.complete()});return()=>{En.closed||En.unsubscribe()}})}request(p){return this.requester(p)}}let qp=(()=>{class T{constructor(h){(0,$s.Z)(this,"httpClient",void 0),this.httpClient=h}create(h){return new Jp(this.httpClient,h)}}return(0,$s.Z)(T,"\u0275fac",function(h){return new(h||T)(i.LFG(Sn.eN))}),(0,$s.Z)(T,"\u0275prov",i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})),T})();function ti(T){return void 0===T&&(T=!1),{keyArgs:T,read:function(p,h){var g=h.canRead,z=h.readField;if(!p)return p;var E=[],q="",ve="";p.edges.forEach(function(Dt){g(z("node",Dt))&&(E.push(Dt),Dt.cursor&&(q=q||Dt.cursor||"",ve=Dt.cursor||ve))}),E.length>1&&q===ve&&(q="");var Ee=p.pageInfo||{},Xe=Ee.startCursor,ht=Ee.endCursor;return(0,Zn.pi)((0,Zn.pi)({},Zl(p)),{edges:E,pageInfo:(0,Zn.pi)((0,Zn.pi)({},p.pageInfo),{startCursor:Xe||q,endCursor:ht||ve})})},merge:function(p,h,g){var z=g.args,E=g.isReference,q=g.readField;if(p||(p={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!h)return p;var ve=h.edges?h.edges.map(function(xo){return E(xo=(0,Zn.pi)({},xo))&&(xo.cursor=q("cursor",xo)),xo}):[];if(h.pageInfo){var Ee=h.pageInfo,Xe=Ee.startCursor,ht=Ee.endCursor,Dt=ve[0],$t=ve[ve.length-1];Dt&&Xe&&(Dt.cursor=Xe),$t&&ht&&($t.cursor=ht);var Qt=Dt&&Dt.cursor;Qt&&!Xe&&(h=(0,qr.Ee)(h,{pageInfo:{startCursor:Qt}}));var Kt=$t&&$t.cursor;Kt&&!ht&&(h=(0,qr.Ee)(h,{pageInfo:{endCursor:Kt}}))}var Wt=p.edges,mn=[];if(z&&z.after)(En=Wt.findIndex(function(xo){return xo.cursor===z.after}))>=0&&(Wt=Wt.slice(0,En+1));else if(z&&z.before){var En;mn=(En=Wt.findIndex(function(Oi){return Oi.cursor===z.before}))<0?Wt:Wt.slice(En),Wt=[]}else h.edges&&(Wt=[]);var Hn=(0,Zn.ev)((0,Zn.ev)((0,Zn.ev)([],Wt,!0),ve,!0),mn,!0),nn=(0,Zn.pi)((0,Zn.pi)({},h.pageInfo),p.pageInfo);if(h.pageInfo){var vn=h.pageInfo,$n=vn.hasPreviousPage,Ln=vn.hasNextPage,no=(Xe=vn.startCursor,ht=vn.endCursor,(0,Zn._T)(vn,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(nn,no),Wt.length||(void 0!==$n&&(nn.hasPreviousPage=$n),void 0!==Xe&&(nn.startCursor=Xe)),mn.length||(void 0!==Ln&&(nn.hasNextPage=Ln),void 0!==ht&&(nn.endCursor=ht))}return(0,Zn.pi)((0,Zn.pi)((0,Zn.pi)({},Zl(p)),Zl(h)),{edges:Hn,pageInfo:nn})}}}var Zl=function(T){return(0,Zn._T)(T,Cp)},Cp=["edges","pageInfo"];const hd={Gene:{fields:{comments:ti(),revisions:ti(),events:ti(),variants:ti()}},Query:{fields:{browseGenes:ti(["entrezSymbol","therapayName","geneAlias","diseaseName"]),browseVariants:ti(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId"]),browseMolecularProfiles:ti(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:ti(["name","geneNames","variantNames","variantId"]),browseSources:ti(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:ti(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:ti(["name","doid","geneNames","id"]),events:ti(["subject","organizationId","originatingUserId","eventType"]),variants:ti(["geneId","name"]),molecularProfiles:ti(["geneId","name","evidenceStatusFilter"]),comments:ti(["originatingUserId","subject"]),evidenceItems:ti(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:ti(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:ti(["name","id"]),flags:ti(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:ti(["hpoId","name","id"]),variantTypes:ti(["soid","name","id"]),therapies:ti(["ncitId","name","id"]),clinicalTrials:ti(["nctId","name","id"]),notifications:ti(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:ti(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:ti(["userName","orgName","userRole"])}},User:{fields:{mostRecentOrg:{read:(T,{readField:p})=>{const h=p("mostRecentOrganizationId"),g=p("organizations");if(h&&g)return g.find(z=>z.__ref===`Organization:${h}`)}}}}},fd=hd;function zp(T){let p=T.create({uri:"/api/graphql",withCredentials:!0});return{link:new Rl.i((g,z)=>(g.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),z(g))).concat(p),cache:new gp({possibleTypes:Bd.possibleTypes,typePolicies:fd}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}}}}let md=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:[{provide:Ku.BV,useValue:{useInitialLoading:!0}},{provide:Ku.zu,useFactory:zp,deps:[qp]}],imports:[Ku.VG]}),T})();var Gd=a(2392);let Qd=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({imports:[fn.ez,Ka.L,Fl.sL,Il.Qp,Gd.ZJ]}),T})(),nc=(()=>{class T{handleError(h){/Loading chunk [\d]+ failed/.test(h.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload()}}return T.\u0275fac=function(h){return new(h||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac}),T})();var Tp=a(6683);function gd(T){return()=>T.get("/api/status")}(0,fn.qS)(Nn);let qu=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=i.oAB({type:T,bootstrap:[Cs]}),T.\u0275inj=i.cJS({providers:[cu.N,{provide:i.qLn,useClass:nc},{provide:pa.u7,useValue:pa.iF},{provide:i.ip1,useFactory:gd,deps:[Sn.eN],multi:!0}],imports:[Vu,La,t.b2,md,Sn.JF,Sn.PD,Sn.Ed,Y1.s,Vs.PV.forRoot(ku),Tp.S,Qd]}),T})();if(Pl.N.production)(0,i.G48)();else{const T=function bt(){return new se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();T.unplug(T.find(tr)),T.show(),T.log()}t.q6().bootstrapModule(qu).catch(T=>console.error(T))},530:(Ot,be,a)=>{a.d(be,{g7:()=>A});var t=null,i={},v=1;function s(k){try{return k()}catch{}}var L="@wry/context:Slot",Y=s(function(){return globalThis})||s(function(){return global})||Object.create(null),A=Y[L]||Array[L]||function(k){try{Object.defineProperty(Y,L,{value:k,enumerable:!1,writable:!1,configurable:!0})}finally{return k}}(function(){function k(){this.id=["slot",v++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return k.prototype.hasValue=function(){for(var ge=t;ge;ge=ge.parent)if(this.id in ge.slots){var Ce=ge.slots[this.id];if(Ce===i)break;return ge!==t&&(t.slots[this.id]=Ce),!0}return t&&(t.slots[this.id]=i),!1},k.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},k.prototype.withValue=function(ge,Ce,Z,F){var R,O=((R={__proto__:null})[this.id]=ge,R),P=t;t={parent:P,slots:O};try{return Ce.apply(F,Z)}finally{t=P}},k.bind=function(ge){var Ce=t;return function(){var Z=t;try{return t=Ce,ge.apply(this,arguments)}finally{t=Z}}},k.noContext=function(ge,Ce,Z){if(!t)return ge.apply(Z,Ce);var F=t;try{return t=null,ge.apply(Z,Ce)}finally{t=F}},k}())},692:(Ot,be,a)=>{a.d(be,{D:()=>L});var t=Object.prototype,i=t.toString,v=t.hasOwnProperty,d=Function.prototype.toString,s=new Map;function L(U,M){try{return Q(U,M)}finally{s.clear()}}function Q(U,M){if(U===M)return!0;var e=i.call(U);if(e!==i.call(M))return!1;switch(e){case"[object Array]":if(U.length!==M.length)return!1;case"[object Object]":if(V(U,M))return!0;var k=Y(U),ge=Y(M),Ce=k.length;if(Ce!==ge.length)return!1;for(var Z=0;Z=0&&U.indexOf(M,e)===e}(me,S)}return!1}function Y(U){return Object.keys(U).filter(A,U)}function A(U){return void 0!==this[U]}var S="{ [native code] }";function V(U,M){var e=s.get(U);if(e){if(e.has(M))return!0}else s.set(U,e=new Set);return e.add(M),!1}},9377:(Ot,be,a)=>{a.d(be,{Ps:()=>te});var t=a(655);function v(st,it){if(!st)throw new Error(it??"Unexpected invariant triggered.")}const d=/\r\n|[\n\r]/g;function s(st,it){let lt=0,Pt=1;for(const wt of st.body.matchAll(d)){if("number"==typeof wt.index||v(!1),wt.index>=it)break;lt=wt.index+wt[0].length,Pt+=1}return{line:Pt,column:it+1-lt}}function Q(st,it){const lt=st.locationOffset.column-1,Pt="".padStart(lt)+st.body,wt=it.line-1,jt=it.line+(st.locationOffset.line-1),K=it.column+(1===it.line?lt:0),w=`${st.name}:${jt}:${K}\n`,J=Pt.split(/\r\n|[\n\r]/g),Te=J[wt];if(Te.length>120){const zt=Math.floor(K/80),nt=K%80,qe=[];for(let rt=0;rt["|",rt]),["|","^".padStart(nt)],["|",qe[zt+1]]])}return w+Y([[jt-1+" |",J[wt-1]],[`${jt} |`,Te],["|","^".padStart(K)],[`${jt+1} |`,J[wt+1]]])}function Y(st){const it=st.filter(([Pt,wt])=>void 0!==wt),lt=Math.max(...it.map(([Pt])=>Pt.length));return it.map(([Pt,wt])=>Pt.padStart(lt)+(wt?" "+wt:"")).join("\n")}class S extends Error{constructor(it,...lt){var Pt,wt,Vt;const{nodes:jt,source:Ke,positions:K,path:w,originalError:J,extensions:Te}=function A(st){const it=st[0];return null==it||"kind"in it||"length"in it?{nodes:it,source:st[1],positions:st[2],path:st[3],originalError:st[4],extensions:st[5]}:it}(lt);super(it),this.name="GraphQLError",this.path=w??void 0,this.originalError=J??void 0,this.nodes=N(Array.isArray(jt)?jt:jt?[jt]:void 0);const zt=N(null===(Pt=this.nodes)||void 0===Pt?void 0:Pt.map(qe=>qe.loc).filter(qe=>null!=qe));this.source=Ke??(null==zt||null===(wt=zt[0])||void 0===wt?void 0:wt.source),this.positions=K??zt?.map(qe=>qe.start),this.locations=K&&Ke?K.map(qe=>s(Ke,qe)):zt?.map(qe=>s(qe.source,qe.start));const nt=function i(st){return"object"==typeof st&&null!==st}(J?.extensions)?J?.extensions:void 0;this.extensions=null!==(Vt=Te??nt)&&void 0!==Vt?Vt:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=J&&J.stack?Object.defineProperty(this,"stack",{value:J.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,S):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let it=this.message;if(this.nodes)for(const lt of this.nodes)lt.loc&&(it+="\n\n"+Q((st=lt.loc).source,s(st.source,st.start)));else if(this.source&&this.locations)for(const lt of this.locations)it+="\n\n"+Q(this.source,lt);var st;return it}toJSON(){const it={message:this.message};return null!=this.locations&&(it.locations=this.locations),null!=this.path&&(it.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(it.extensions=this.extensions),it}}function N(st){return void 0===st||0===st.length?void 0:st}function M(st,it,lt){return new S(`Syntax Error: ${lt}`,{source:st,positions:[it]})}var e=a(2236),I=(()=>((I=I||{}).QUERY="QUERY",I.MUTATION="MUTATION",I.SUBSCRIPTION="SUBSCRIPTION",I.FIELD="FIELD",I.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",I.FRAGMENT_SPREAD="FRAGMENT_SPREAD",I.INLINE_FRAGMENT="INLINE_FRAGMENT",I.VARIABLE_DEFINITION="VARIABLE_DEFINITION",I.SCHEMA="SCHEMA",I.SCALAR="SCALAR",I.OBJECT="OBJECT",I.FIELD_DEFINITION="FIELD_DEFINITION",I.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",I.INTERFACE="INTERFACE",I.UNION="UNION",I.ENUM="ENUM",I.ENUM_VALUE="ENUM_VALUE",I.INPUT_OBJECT="INPUT_OBJECT",I.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",I))(),k=a(5560),ge=a(7571),Ce=a(7116),Z=(()=>((Z=Z||{}).SOF="",Z.EOF="",Z.BANG="!",Z.DOLLAR="$",Z.AMP="&",Z.PAREN_L="(",Z.PAREN_R=")",Z.SPREAD="...",Z.COLON=":",Z.EQUALS="=",Z.AT="@",Z.BRACKET_L="[",Z.BRACKET_R="]",Z.BRACE_L="{",Z.PIPE="|",Z.BRACE_R="}",Z.NAME="Name",Z.INT="Int",Z.FLOAT="Float",Z.STRING="String",Z.BLOCK_STRING="BlockString",Z.COMMENT="Comment",Z))();class F{constructor(it){const lt=new e.WU(Z.SOF,0,0,0,0);this.source=it,this.lastToken=lt,this.token=lt,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let it=this.token;if(it.kind!==Z.EOF)do{if(it.next)it=it.next;else{const lt=me(this,it.end);it.next=lt,lt.prev=it,it=lt}}while(it.kind===Z.COMMENT);return it}}function O(st){return st>=0&&st<=55295||st>=57344&&st<=1114111}function P(st,it){return x(st.charCodeAt(it))&&de(st.charCodeAt(it+1))}function x(st){return st>=55296&&st<=56319}function de(st){return st>=56320&&st<=57343}function ue(st,it){const lt=st.source.body.codePointAt(it);if(void 0===lt)return Z.EOF;if(lt>=32&<<=126){const Pt=String.fromCodePoint(lt);return'"'===Pt?"'\"'":`"${Pt}"`}return"U+"+lt.toString(16).toUpperCase().padStart(4,"0")}function j(st,it,lt,Pt,wt){return new e.WU(it,lt,Pt,st.line,1+lt-st.lineStart,wt)}function me(st,it){const lt=st.source.body,Pt=lt.length;let wt=it;for(;wt=48&&st<=57?st-48:st>=65&&st<=70?st-55:st>=97&&st<=102?st-87:-1}function _t(st,it){const lt=st.source.body;switch(lt.charCodeAt(it+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw M(st.source,it,`Invalid character escape sequence: "${lt.slice(it,it+2)}".`)}function Ft(st,it){const lt=st.source.body,Pt=lt.length;let wt=st.lineStart,Vt=it+3,jt=Vt,Ke="";const K=[];for(;Vtthis.parseValueLiteral(it),Z.BRACKET_R)})}parseObject(it){return this.node(this._lexer.token,{kind:k.h.OBJECT,fields:this.any(Z.BRACE_L,()=>this.parseObjectField(it),Z.BRACE_R)})}parseObjectField(it){const lt=this._lexer.token,Pt=this.parseName();return this.expectToken(Z.COLON),this.node(lt,{kind:k.h.OBJECT_FIELD,name:Pt,value:this.parseValueLiteral(it)})}parseDirectives(it){const lt=[];for(;this.peek(Z.AT);)lt.push(this.parseDirective(it));return lt}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(it){const lt=this._lexer.token;return this.expectToken(Z.AT),this.node(lt,{kind:k.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(it)})}parseTypeReference(){const it=this._lexer.token;let lt;if(this.expectOptionalToken(Z.BRACKET_L)){const Pt=this.parseTypeReference();this.expectToken(Z.BRACKET_R),lt=this.node(it,{kind:k.h.LIST_TYPE,type:Pt})}else lt=this.parseNamedType();return this.expectOptionalToken(Z.BANG)?this.node(it,{kind:k.h.NON_NULL_TYPE,type:lt}):lt}parseNamedType(){return this.node(this._lexer.token,{kind:k.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Z.STRING)||this.peek(Z.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("schema");const Pt=this.parseConstDirectives(),wt=this.many(Z.BRACE_L,this.parseOperationTypeDefinition,Z.BRACE_R);return this.node(it,{kind:k.h.SCHEMA_DEFINITION,description:lt,directives:Pt,operationTypes:wt})}parseOperationTypeDefinition(){const it=this._lexer.token,lt=this.parseOperationType();this.expectToken(Z.COLON);const Pt=this.parseNamedType();return this.node(it,{kind:k.h.OPERATION_TYPE_DEFINITION,operation:lt,type:Pt})}parseScalarTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("scalar");const Pt=this.parseName(),wt=this.parseConstDirectives();return this.node(it,{kind:k.h.SCALAR_TYPE_DEFINITION,description:lt,name:Pt,directives:wt})}parseObjectTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("type");const Pt=this.parseName(),wt=this.parseImplementsInterfaces(),Vt=this.parseConstDirectives(),jt=this.parseFieldsDefinition();return this.node(it,{kind:k.h.OBJECT_TYPE_DEFINITION,description:lt,name:Pt,interfaces:wt,directives:Vt,fields:jt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Z.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Z.BRACE_L,this.parseFieldDefinition,Z.BRACE_R)}parseFieldDefinition(){const it=this._lexer.token,lt=this.parseDescription(),Pt=this.parseName(),wt=this.parseArgumentDefs();this.expectToken(Z.COLON);const Vt=this.parseTypeReference(),jt=this.parseConstDirectives();return this.node(it,{kind:k.h.FIELD_DEFINITION,description:lt,name:Pt,arguments:wt,type:Vt,directives:jt})}parseArgumentDefs(){return this.optionalMany(Z.PAREN_L,this.parseInputValueDef,Z.PAREN_R)}parseInputValueDef(){const it=this._lexer.token,lt=this.parseDescription(),Pt=this.parseName();this.expectToken(Z.COLON);const wt=this.parseTypeReference();let Vt;this.expectOptionalToken(Z.EQUALS)&&(Vt=this.parseConstValueLiteral());const jt=this.parseConstDirectives();return this.node(it,{kind:k.h.INPUT_VALUE_DEFINITION,description:lt,name:Pt,type:wt,defaultValue:Vt,directives:jt})}parseInterfaceTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("interface");const Pt=this.parseName(),wt=this.parseImplementsInterfaces(),Vt=this.parseConstDirectives(),jt=this.parseFieldsDefinition();return this.node(it,{kind:k.h.INTERFACE_TYPE_DEFINITION,description:lt,name:Pt,interfaces:wt,directives:Vt,fields:jt})}parseUnionTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("union");const Pt=this.parseName(),wt=this.parseConstDirectives(),Vt=this.parseUnionMemberTypes();return this.node(it,{kind:k.h.UNION_TYPE_DEFINITION,description:lt,name:Pt,directives:wt,types:Vt})}parseUnionMemberTypes(){return this.expectOptionalToken(Z.EQUALS)?this.delimitedMany(Z.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("enum");const Pt=this.parseName(),wt=this.parseConstDirectives(),Vt=this.parseEnumValuesDefinition();return this.node(it,{kind:k.h.ENUM_TYPE_DEFINITION,description:lt,name:Pt,directives:wt,values:Vt})}parseEnumValuesDefinition(){return this.optionalMany(Z.BRACE_L,this.parseEnumValueDefinition,Z.BRACE_R)}parseEnumValueDefinition(){const it=this._lexer.token,lt=this.parseDescription(),Pt=this.parseEnumValueName(),wt=this.parseConstDirectives();return this.node(it,{kind:k.h.ENUM_VALUE_DEFINITION,description:lt,name:Pt,directives:wt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw M(this._lexer.source,this._lexer.token.start,`${Xt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("input");const Pt=this.parseName(),wt=this.parseConstDirectives(),Vt=this.parseInputFieldsDefinition();return this.node(it,{kind:k.h.INPUT_OBJECT_TYPE_DEFINITION,description:lt,name:Pt,directives:wt,fields:Vt})}parseInputFieldsDefinition(){return this.optionalMany(Z.BRACE_L,this.parseInputValueDef,Z.BRACE_R)}parseTypeSystemExtension(){const it=this._lexer.lookahead();if(it.kind===Z.NAME)switch(it.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(it)}parseSchemaExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const lt=this.parseConstDirectives(),Pt=this.optionalMany(Z.BRACE_L,this.parseOperationTypeDefinition,Z.BRACE_R);if(0===lt.length&&0===Pt.length)throw this.unexpected();return this.node(it,{kind:k.h.SCHEMA_EXTENSION,directives:lt,operationTypes:Pt})}parseScalarTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const lt=this.parseName(),Pt=this.parseConstDirectives();if(0===Pt.length)throw this.unexpected();return this.node(it,{kind:k.h.SCALAR_TYPE_EXTENSION,name:lt,directives:Pt})}parseObjectTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const lt=this.parseName(),Pt=this.parseImplementsInterfaces(),wt=this.parseConstDirectives(),Vt=this.parseFieldsDefinition();if(0===Pt.length&&0===wt.length&&0===Vt.length)throw this.unexpected();return this.node(it,{kind:k.h.OBJECT_TYPE_EXTENSION,name:lt,interfaces:Pt,directives:wt,fields:Vt})}parseInterfaceTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const lt=this.parseName(),Pt=this.parseImplementsInterfaces(),wt=this.parseConstDirectives(),Vt=this.parseFieldsDefinition();if(0===Pt.length&&0===wt.length&&0===Vt.length)throw this.unexpected();return this.node(it,{kind:k.h.INTERFACE_TYPE_EXTENSION,name:lt,interfaces:Pt,directives:wt,fields:Vt})}parseUnionTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const lt=this.parseName(),Pt=this.parseConstDirectives(),wt=this.parseUnionMemberTypes();if(0===Pt.length&&0===wt.length)throw this.unexpected();return this.node(it,{kind:k.h.UNION_TYPE_EXTENSION,name:lt,directives:Pt,types:wt})}parseEnumTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const lt=this.parseName(),Pt=this.parseConstDirectives(),wt=this.parseEnumValuesDefinition();if(0===Pt.length&&0===wt.length)throw this.unexpected();return this.node(it,{kind:k.h.ENUM_TYPE_EXTENSION,name:lt,directives:Pt,values:wt})}parseInputObjectTypeExtension(){const it=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const lt=this.parseName(),Pt=this.parseConstDirectives(),wt=this.parseInputFieldsDefinition();if(0===Pt.length&&0===wt.length)throw this.unexpected();return this.node(it,{kind:k.h.INPUT_OBJECT_TYPE_EXTENSION,name:lt,directives:Pt,fields:wt})}parseDirectiveDefinition(){const it=this._lexer.token,lt=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Z.AT);const Pt=this.parseName(),wt=this.parseArgumentDefs(),Vt=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const jt=this.parseDirectiveLocations();return this.node(it,{kind:k.h.DIRECTIVE_DEFINITION,description:lt,name:Pt,arguments:wt,repeatable:Vt,locations:jt})}parseDirectiveLocations(){return this.delimitedMany(Z.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const it=this._lexer.token,lt=this.parseName();if(Object.prototype.hasOwnProperty.call(I,lt.value))return lt;throw this.unexpected(it)}node(it,lt){return!0!==this._options.noLocation&&(lt.loc=new e.Ye(it,this._lexer.lastToken,this._lexer.source)),lt}peek(it){return this._lexer.token.kind===it}expectToken(it){const lt=this._lexer.token;if(lt.kind===it)return this.advanceLexer(),lt;throw M(this._lexer.source,lt.start,`Expected ${_n(it)}, found ${Xt(lt)}.`)}expectOptionalToken(it){return this._lexer.token.kind===it&&(this.advanceLexer(),!0)}expectKeyword(it){const lt=this._lexer.token;if(lt.kind!==Z.NAME||lt.value!==it)throw M(this._lexer.source,lt.start,`Expected "${it}", found ${Xt(lt)}.`);this.advanceLexer()}expectOptionalKeyword(it){const lt=this._lexer.token;return lt.kind===Z.NAME&<.value===it&&(this.advanceLexer(),!0)}unexpected(it){const lt=it??this._lexer.token;return M(this._lexer.source,lt.start,`Unexpected ${Xt(lt)}.`)}any(it,lt,Pt){this.expectToken(it);const wt=[];for(;!this.expectOptionalToken(Pt);)wt.push(lt.call(this));return wt}optionalMany(it,lt,Pt){if(this.expectOptionalToken(it)){const wt=[];do{wt.push(lt.call(this))}while(!this.expectOptionalToken(Pt));return wt}return[]}many(it,lt,Pt){this.expectToken(it);const wt=[];do{wt.push(lt.call(this))}while(!this.expectOptionalToken(Pt));return wt}delimitedMany(it,lt){this.expectOptionalToken(it);const Pt=[];do{Pt.push(lt.call(this))}while(this.expectOptionalToken(it));return Pt}advanceLexer(){const{maxTokens:it}=this._options,lt=this._lexer.advance();if(void 0!==it&<.kind!==Z.EOF&&(++this._tokenCounter,this._tokenCounter>it))throw M(this._lexer.source,lt.start,`Document contains more that ${it} tokens. Parsing aborted.`)}}function Xt(st){const it=st.value;return _n(st.kind)+(null!=it?` "${it}"`:"")}function _n(st){return function R(st){return st===Z.BANG||st===Z.DOLLAR||st===Z.AMP||st===Z.PAREN_L||st===Z.PAREN_R||st===Z.SPREAD||st===Z.COLON||st===Z.EQUALS||st===Z.AT||st===Z.BRACKET_L||st===Z.BRACKET_R||st===Z.BRACE_L||st===Z.PIPE||st===Z.BRACE_R}(st)?`"${st}"`:st}var On=new Map,Jt=new Map,Nt=!0,Ye=!1;function He(st){return st.replace(/[\s,]+/g," ").trim()}function xe(st){var it=He(st);if(!On.has(it)){var lt=function et(st,it){return new Ut(st,it).parseDocument()}(st,{experimentalFragmentVariables:Ye,allowLegacyFragmentVariables:Ye});if(!lt||"Document"!==lt.kind)throw new Error("Not a valid GraphQL document.");On.set(it,function Be(st){var it=new Set(st.definitions);it.forEach(function(Pt){Pt.loc&&delete Pt.loc,Object.keys(Pt).forEach(function(wt){var Vt=Pt[wt];Vt&&"object"==typeof Vt&&it.add(Vt)})});var lt=st.loc;return lt&&(delete lt.startToken,delete lt.endToken),st}(function We(st){var it=new Set,lt=[];return st.definitions.forEach(function(Pt){if("FragmentDefinition"===Pt.kind){var wt=Pt.name.value,Vt=function Pe(st){return He(st.source.body.substring(st.start,st.end))}(Pt.loc),jt=Jt.get(wt);jt&&!jt.has(Vt)?Nt&&console.warn("Warning: fragment with name "+wt+" 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"):jt||Jt.set(wt,jt=new Set),jt.add(Vt),it.has(Vt)||(it.add(Vt),lt.push(Pt))}else lt.push(Pt)}),(0,t.pi)((0,t.pi)({},st),{definitions:lt})}(lt)))}return On.get(it)}function te(st){for(var it=[],lt=1;lt{a.d(be,{dP:()=>gt,re:()=>bn});var t=function(){return Object.create(null)},i=Array.prototype,v=i.forEach,d=i.slice,s=function(){function et(Re,yt){void 0===Re&&(Re=!0),void 0===yt&&(yt=t),this.weakness=Re,this.makeData=yt}return et.prototype.lookup=function(){for(var Re=[],yt=0;ytthis.max;)this.delete(this.oldest.key)},et.prototype.delete=function(Re){var yt=this.map.get(Re);return!!yt&&(yt===this.newest&&(this.newest=yt.older),yt===this.oldest&&(this.oldest=yt.newer),yt.newer&&(yt.newer.older=yt.older),yt.older&&(yt.older.newer=yt.newer),this.map.delete(Re),this.dispose(yt.value,Re),!0)},et}(),S=new Q.g7,V=Object.prototype.hasOwnProperty,U=void 0===(N=Array.from)?function(et){var Re=[];return et.forEach(function(yt){return Re.push(yt)}),Re}:N;function M(et){var Re=et.unsubscribe;"function"==typeof Re&&(et.unsubscribe=void 0,Re())}var e=[],I=100;function k(et,Re){if(!et)throw new Error(Re||"assertion failure")}function Ce(et){switch(et.length){case 0:throw new Error("unknown value");case 1:return et[0];case 2:throw et[1]}}var F=function(){function et(Re){this.fn=Re,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++et.count}return et.prototype.peek=function(){if(1===this.value.length&&!x(this))return R(this),this.value[0]},et.prototype.recompute=function(Re){return k(!this.recomputing,"already recomputing"),R(this),x(this)?function O(et,Re){return Oe(et),S.withValue(et,P,[et,Re]),function It(et,Re){if("function"==typeof et.subscribe)try{M(et),et.unsubscribe=et.subscribe.apply(null,Re)}catch{return et.setDirty(),!1}return!0}(et,Re)&&function de(et){et.dirty=!1,!x(et)&&j(et)}(et),Ce(et.value)}(this,Re):Ce(this.value)},et.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ue(this),M(this))},et.prototype.dispose=function(){var Re=this;this.setDirty(),Oe(this),me(this,function(yt,je){yt.setDirty(),kt(yt,Re)})},et.prototype.forget=function(){this.dispose()},et.prototype.dependOn=function(Re){Re.add(this),this.deps||(this.deps=e.pop()||new Set),this.deps.add(Re)},et.prototype.forgetDeps=function(){var Re=this;this.deps&&(U(this.deps).forEach(function(yt){return yt.delete(Re)}),this.deps.clear(),e.push(this.deps),this.deps=null)},et.count=0,et}();function R(et){var Re=S.getValue();if(Re)return et.parents.add(Re),Re.childValues.has(et)||Re.childValues.set(et,[]),x(et)?re(Re,et):he(Re,et),Re}function P(et,Re){et.recomputing=!0,et.value.length=0;try{et.value[0]=et.fn.apply(null,Re)}catch(yt){et.value[1]=yt}et.recomputing=!1}function x(et){return et.dirty||!(!et.dirtyChildren||!et.dirtyChildren.size)}function ue(et){me(et,re)}function j(et){me(et,he)}function me(et,Re){var yt=et.parents.size;if(yt)for(var je=U(et.parents),Ut=0;Ut0&&yt===Re.length&&et[yt-1]===Re[yt-1]}(yt,Re.value)||et.setDirty(),Me(et,Re),!x(et)&&j(et)}function Me(et,Re){var yt=et.dirtyChildren;yt&&(yt.delete(Re),0===yt.size&&(e.length0&&et.childValues.forEach(function(Re,yt){kt(et,yt)}),et.forgetDeps(),k(null===et.dirtyChildren)}function kt(et,Re){Re.parents.delete(et),et.childValues.delete(Re),Me(et,Re)}var Tt={setDirty:!0,dispose:!0,forget:!0};function gt(et){var Re=new Map,yt=et&&et.subscribe;function je(Ut){var Xt=S.getValue();if(Xt){var _n=Re.get(Ut);_n||Re.set(Ut,_n=new Set),Xt.dependOn(_n),"function"==typeof yt&&(M(_n),_n.unsubscribe=yt(Ut))}}return je.dirty=function(Xt,_n){var On=Re.get(Xt);if(On){var Jt=_n&&V.call(Tt,_n)?_n:"setDirty";U(On).forEach(function(Nt){return Nt[Jt]()}),Re.delete(Xt),M(On)}},je}function _t(){var et=new s("function"==typeof WeakMap);return function(){return et.lookupArray(arguments)}}_t();var rn=new Set;function bn(et,Re){void 0===Re&&(Re=Object.create(null));var yt=new A(Re.max||Math.pow(2,16),function(Nt){return Nt.dispose()}),je=Re.keyArgs,Ut=Re.makeCacheKey||_t(),Xt=function(){var Nt=Ut.apply(null,je?je.apply(null,arguments):arguments);if(void 0===Nt)return et.apply(null,arguments);var Ye=yt.get(Nt);Ye||(yt.set(Nt,Ye=new F(et)),Ye.subscribe=Re.subscribe,Ye.forget=function(){return yt.delete(Nt)});var He=Ye.recompute(Array.prototype.slice.call(arguments));return yt.set(Nt,Ye),rn.add(yt),S.hasValue()||(rn.forEach(function(Pe){return Pe.clean()}),rn.clear()),He};function _n(Nt){var Ye=yt.get(Nt);Ye&&Ye.setDirty()}function On(Nt){var Ye=yt.get(Nt);if(Ye)return Ye.peek()}function Jt(Nt){return yt.delete(Nt)}return Object.defineProperty(Xt,"size",{get:function(){return yt.map.size},configurable:!1,enumerable:!1}),Xt.dirtyKey=_n,Xt.dirty=function(){_n(Ut.apply(null,arguments))},Xt.peekKey=On,Xt.peek=function(){return On(Ut.apply(null,arguments))},Xt.forgetKey=Jt,Xt.forget=function(){return Jt(Ut.apply(null,arguments))},Xt.makeCacheKey=Ut,Xt.getKey=je?function(){return Ut.apply(null,je.apply(null,arguments))}:Ut,Object.freeze(Xt)}},4223:(Ot,be,a)=>{a.d(be,{j:()=>i});var t=a(2185);function i(...v){return d=>(0,t.j)(...v)(d)}},5676:(Ot,be,a)=>{function t(Q){return null!=Q}a.d(be,{ep:()=>t,lm:()=>i});const i=t},5619:(Ot,be,a)=>{a.d(be,{X:()=>i});var t=a(8645);class i extends t.x{constructor(d){super(),this._value=d}get value(){return this.getValue()}_subscribe(d){const s=super._subscribe(d);return!s.closed&&d.next(this._value),s}getValue(){const{hasError:d,thrownError:s,_value:L}=this;if(d)throw s;return this._throwIfClosed(),L}next(d){super.next(this._value=d)}}},5592:(Ot,be,a)=>{a.d(be,{y:()=>Y});var t=a(305),i=a(7394),v=a(4850),d=a(8407),s=a(2653),L=a(4674),Q=a(1441);let Y=(()=>{class V{constructor(M){M&&(this._subscribe=M)}lift(M){const e=new V;return e.source=this,e.operator=M,e}subscribe(M,e,I){const k=function N(V){return V&&V instanceof t.Lv||function S(V){return V&&(0,L.m)(V.next)&&(0,L.m)(V.error)&&(0,L.m)(V.complete)}(V)&&(0,i.Nn)(V)}(M)?M:new t.Hp(M,e,I);return(0,Q.x)(()=>{const{operator:ge,source:Ce}=this;k.add(ge?ge.call(k,Ce):Ce?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(M){try{return this._subscribe(M)}catch(e){M.error(e)}}forEach(M,e){return new(e=A(e))((I,k)=>{const ge=new t.Hp({next:Ce=>{try{M(Ce)}catch(Z){k(Z),ge.unsubscribe()}},error:k,complete:I});this.subscribe(ge)})}_subscribe(M){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(M)}[v.L](){return this}pipe(...M){return(0,d.U)(M)(this)}toPromise(M){return new(M=A(M))((e,I)=>{let k;this.subscribe(ge=>k=ge,ge=>I(ge),()=>e(k))})}}return V.create=U=>new V(U),V})();function A(V){var U;return null!==(U=V??s.config.Promise)&&void 0!==U?U:Promise}},7328:(Ot,be,a)=>{a.d(be,{t:()=>v});var t=a(8645),i=a(4552);class v extends t.x{constructor(s=1/0,L=1/0,Q=i.l){super(),this._bufferSize=s,this._windowTime=L,this._timestampProvider=Q,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=L===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,L)}next(s){const{isStopped:L,_buffer:Q,_infiniteTimeWindow:Y,_timestampProvider:A,_windowTime:S}=this;L||(Q.push(s),!Y&&Q.push(A.now()+S)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const L=this._innerSubscribe(s),{_infiniteTimeWindow:Q,_buffer:Y}=this,A=Y.slice();for(let S=0;S{a.d(be,{x:()=>Q});var t=a(5592),i=a(7394);const d=(0,a(2306).d)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=a(9039),L=a(1441);let Q=(()=>{class A extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(N){const V=new Y(this,this);return V.operator=N,V}_throwIfClosed(){if(this.closed)throw new d}next(N){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(N)}})}error(N){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=N;const{observers:V}=this;for(;V.length;)V.shift().error(N)}})}complete(){(0,L.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:N}=this;for(;N.length;)N.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var N;return(null===(N=this.observers)||void 0===N?void 0:N.length)>0}_trySubscribe(N){return this._throwIfClosed(),super._trySubscribe(N)}_subscribe(N){return this._throwIfClosed(),this._checkFinalizedStatuses(N),this._innerSubscribe(N)}_innerSubscribe(N){const{hasError:V,isStopped:U,observers:M}=this;return V||U?i.Lc:(this.currentObservers=null,M.push(N),new i.w0(()=>{this.currentObservers=null,(0,s.P)(M,N)}))}_checkFinalizedStatuses(N){const{hasError:V,thrownError:U,isStopped:M}=this;V?N.error(U):M&&N.complete()}asObservable(){const N=new t.y;return N.source=this,N}}return A.create=(S,N)=>new Y(S,N),A})();class Y extends Q{constructor(S,N){super(),this.destination=S,this.source=N}next(S){var N,V;null===(V=null===(N=this.destination)||void 0===N?void 0:N.next)||void 0===V||V.call(N,S)}error(S){var N,V;null===(V=null===(N=this.destination)||void 0===N?void 0:N.error)||void 0===V||V.call(N,S)}complete(){var S,N;null===(N=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===N||N.call(S)}_subscribe(S){var N,V;return null!==(V=null===(N=this.source)||void 0===N?void 0:N.subscribe(S))&&void 0!==V?V:i.Lc}}},305:(Ot,be,a)=>{a.d(be,{Hp:()=>I,Lv:()=>V});var t=a(4674),i=a(7394),v=a(2653),d=a(3894),s=a(2420);const L=A("C",void 0,void 0);function A(F,R,O){return{kind:F,value:R,error:O}}var S=a(7599),N=a(1441);class V extends i.w0{constructor(R){super(),this.isStopped=!1,R?(this.destination=R,(0,i.Nn)(R)&&R.add(this)):this.destination=Z}static create(R,O,P){return new I(R,O,P)}next(R){this.isStopped?Ce(function Y(F){return A("N",F,void 0)}(R),this):this._next(R)}error(R){this.isStopped?Ce(function Q(F){return A("E",void 0,F)}(R),this):(this.isStopped=!0,this._error(R))}complete(){this.isStopped?Ce(L,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(R){this.destination.next(R)}_error(R){try{this.destination.error(R)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const U=Function.prototype.bind;function M(F,R){return U.call(F,R)}class e{constructor(R){this.partialObserver=R}next(R){const{partialObserver:O}=this;if(O.next)try{O.next(R)}catch(P){k(P)}}error(R){const{partialObserver:O}=this;if(O.error)try{O.error(R)}catch(P){k(P)}else k(R)}complete(){const{partialObserver:R}=this;if(R.complete)try{R.complete()}catch(O){k(O)}}}class I extends V{constructor(R,O,P){let x;if(super(),(0,t.m)(R)||!R)x={next:R??void 0,error:O??void 0,complete:P??void 0};else{let de;this&&v.config.useDeprecatedNextContext?(de=Object.create(R),de.unsubscribe=()=>this.unsubscribe(),x={next:R.next&&M(R.next,de),error:R.error&&M(R.error,de),complete:R.complete&&M(R.complete,de)}):x=R}this.destination=new e(x)}}function k(F){v.config.useDeprecatedSynchronousErrorHandling?(0,N.O)(F):(0,d.h)(F)}function Ce(F,R){const{onStoppedNotification:O}=v.config;O&&S.z.setTimeout(()=>O(F,R))}const Z={closed:!0,next:s.Z,error:function ge(F){throw F},complete:s.Z}},7394:(Ot,be,a)=>{a.d(be,{Lc:()=>L,w0:()=>s,Nn:()=>Q});var t=a(4674);const v=(0,a(2306).d)(A=>function(N){A(this),this.message=N?`${N.length} errors occurred during unsubscription:\n${N.map((V,U)=>`${U+1}) ${V.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=N});var d=a(9039);class s{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:N}=this;if(N)if(this._parentage=null,Array.isArray(N))for(const M of N)M.remove(this);else N.remove(this);const{initialTeardown:V}=this;if((0,t.m)(V))try{V()}catch(M){S=M instanceof v?M.errors:[M]}const{_finalizers:U}=this;if(U){this._finalizers=null;for(const M of U)try{Y(M)}catch(e){S=S??[],e instanceof v?S=[...S,...e.errors]:S.push(e)}}if(S)throw new v(S)}}add(S){var N;if(S&&S!==this)if(this.closed)Y(S);else{if(S instanceof s){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(N=this._finalizers)&&void 0!==N?N:[]).push(S)}}_hasParent(S){const{_parentage:N}=this;return N===S||Array.isArray(N)&&N.includes(S)}_addParent(S){const{_parentage:N}=this;this._parentage=Array.isArray(N)?(N.push(S),N):N?[N,S]:S}_removeParent(S){const{_parentage:N}=this;N===S?this._parentage=null:Array.isArray(N)&&(0,d.P)(N,S)}remove(S){const{_finalizers:N}=this;N&&(0,d.P)(N,S),S instanceof s&&S._removeParent(this)}}s.EMPTY=(()=>{const A=new s;return A.closed=!0,A})();const L=s.EMPTY;function Q(A){return A instanceof s||A&&"closed"in A&&(0,t.m)(A.remove)&&(0,t.m)(A.add)&&(0,t.m)(A.unsubscribe)}function Y(A){(0,t.m)(A)?A():A.unsubscribe()}},2653:(Ot,be,a)=>{a.d(be,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(Ot,be,a)=>{a.d(be,{c:()=>L});var t=a(5592),i=a(7394),v=a(6196),d=a(8251),s=a(9360);class L extends t.y{constructor(Y,A){super(),this.source=Y,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,s.A)(Y)&&(this.lift=Y.lift)}_subscribe(Y){return this.getSubject().subscribe(Y)}getSubject(){const Y=this._subject;return(!Y||Y.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Y}=this;this._subject=this._connection=null,Y?.unsubscribe()}connect(){let Y=this._connection;if(!Y){Y=this._connection=new i.w0;const A=this.getSubject();Y.add(this.source.subscribe((0,d.x)(A,void 0,()=>{this._teardown(),A.complete()},S=>{this._teardown(),A.error(S)},()=>this._teardown()))),Y.closed&&(this._connection=null,Y=i.w0.EMPTY)}return Y}refCount(){return(0,v.x)()(this)}}},2572:(Ot,be,a)=>{a.d(be,{a:()=>S});var t=a(5592),i=a(7453),v=a(9666),d=a(2737),s=a(7400),L=a(9940),Q=a(2714),Y=a(8251),A=a(7103);function S(...U){const M=(0,L.yG)(U),e=(0,L.jO)(U),{args:I,keys:k}=(0,i.D)(U);if(0===I.length)return(0,v.D)([],M);const ge=new t.y(function N(U,M,e=d.y){return I=>{V(M,()=>{const{length:k}=U,ge=new Array(k);let Ce=k,Z=k;for(let F=0;F{const R=(0,v.D)(U[F],M);let O=!1;R.subscribe((0,Y.x)(I,P=>{ge[F]=P,O||(O=!0,Z--),Z||I.next(e(ge.slice()))},()=>{--Ce||I.complete()}))},I)},I)}}(I,M,k?Ce=>(0,Q.n)(k,Ce):d.y));return e?ge.pipe((0,s.Z)(e)):ge}function V(U,M,e){U?(0,A.f)(e,U,M):M()}},5211:(Ot,be,a)=>{a.d(be,{z:()=>s});var t=a(7537),v=a(9940),d=a(9666);function s(...L){return function i(){return(0,t.J)(1)}()((0,d.D)(L,(0,v.yG)(L)))}},4911:(Ot,be,a)=>{a.d(be,{P:()=>v});var t=a(5592),i=a(4829);function v(d){return new t.y(s=>{(0,i.Xf)(d()).subscribe(s)})}},6232:(Ot,be,a)=>{a.d(be,{E:()=>i});const i=new(a(5592).y)(s=>s.complete())},9315:(Ot,be,a)=>{a.d(be,{D:()=>Y});var t=a(5592),i=a(7453),v=a(4829),d=a(9940),s=a(8251),L=a(7400),Q=a(2714);function Y(...A){const S=(0,d.jO)(A),{args:N,keys:V}=(0,i.D)(A),U=new t.y(M=>{const{length:e}=N;if(!e)return void M.complete();const I=new Array(e);let k=e,ge=e;for(let Ce=0;Ce{Z||(Z=!0,ge--),I[Ce]=F},()=>k--,void 0,()=>{(!k||!Z)&&(ge||M.next(V?(0,Q.n)(V,I):I),M.complete())}))}});return S?U.pipe((0,L.Z)(S)):U}},9666:(Ot,be,a)=>{a.d(be,{D:()=>O});var t=a(4829),i=a(3093),v=a(9360);function d(P,x=0){return(0,v.e)((de,ue)=>{ue.add(P.schedule(()=>de.subscribe(ue),x))})}var Q=a(5592),A=a(4971),S=a(4674),N=a(7103);function U(P,x){if(!P)throw new Error("Iterable cannot be null");return new Q.y(de=>{(0,N.f)(de,x,()=>{const ue=P[Symbol.asyncIterator]();(0,N.f)(de,x,()=>{ue.next().then(j=>{j.done?de.complete():de.next(j.value)})},0,!0)})})}var M=a(8382),e=a(4026),I=a(4266),k=a(3664),ge=a(5726),Ce=a(9853),Z=a(541);function O(P,x){return x?function R(P,x){if(null!=P){if((0,M.c)(P))return function s(P,x){return(0,t.Xf)(P).pipe(d(x),(0,i.Q)(x))}(P,x);if((0,I.z)(P))return function Y(P,x){return new Q.y(de=>{let ue=0;return x.schedule(function(){ue===P.length?de.complete():(de.next(P[ue++]),de.closed||this.schedule())})})}(P,x);if((0,e.t)(P))return function L(P,x){return(0,t.Xf)(P).pipe(d(x),(0,i.Q)(x))}(P,x);if((0,ge.D)(P))return U(P,x);if((0,k.T)(P))return function V(P,x){return new Q.y(de=>{let ue;return(0,N.f)(de,x,()=>{ue=P[A.h](),(0,N.f)(de,x,()=>{let j,me;try{({value:j,done:me}=ue.next())}catch(re){return void de.error(re)}me?de.complete():de.next(j)},0,!0)}),()=>(0,S.m)(ue?.return)&&ue.return()})}(P,x);if((0,Z.L)(P))return function F(P,x){return U((0,Z.Q)(P),x)}(P,x)}throw(0,Ce.z)(P)}(P,x):(0,t.Xf)(P)}},2438:(Ot,be,a)=>{a.d(be,{R:()=>S});var t=a(4829),i=a(5592),v=a(1631),d=a(4266),s=a(4674),L=a(7400);const Q=["addListener","removeListener"],Y=["addEventListener","removeEventListener"],A=["on","off"];function S(e,I,k,ge){if((0,s.m)(k)&&(ge=k,k=void 0),ge)return S(e,I,k).pipe((0,L.Z)(ge));const[Ce,Z]=function M(e){return(0,s.m)(e.addEventListener)&&(0,s.m)(e.removeEventListener)}(e)?Y.map(F=>R=>e[F](I,R,k)):function V(e){return(0,s.m)(e.addListener)&&(0,s.m)(e.removeListener)}(e)?Q.map(N(e,I)):function U(e){return(0,s.m)(e.on)&&(0,s.m)(e.off)}(e)?A.map(N(e,I)):[];if(!Ce&&(0,d.z)(e))return(0,v.z)(F=>S(F,I,k))((0,t.Xf)(e));if(!Ce)throw new TypeError("Invalid event target");return new i.y(F=>{const R=(...O)=>F.next(1Z(R)})}function N(e,I){return k=>ge=>e[k](I,ge)}},2428:(Ot,be,a)=>{a.d(be,{s:()=>i});var t=a(4911);function i(v,d,s){return(0,t.P)(()=>v()?d:s)}},4829:(Ot,be,a)=>{a.d(be,{Xf:()=>U});var t=a(655),i=a(4266),v=a(4026),d=a(5592),s=a(8382),L=a(5726),Q=a(9853),Y=a(3664),A=a(541),S=a(4674),N=a(3894),V=a(4850);function U(F){if(F instanceof d.y)return F;if(null!=F){if((0,s.c)(F))return function M(F){return new d.y(R=>{const O=F[V.L]();if((0,S.m)(O.subscribe))return O.subscribe(R);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(F);if((0,i.z)(F))return function e(F){return new d.y(R=>{for(let O=0;O{F.then(O=>{R.closed||(R.next(O),R.complete())},O=>R.error(O)).then(null,N.h)})}(F);if((0,L.D)(F))return ge(F);if((0,Y.T)(F))return function k(F){return new d.y(R=>{for(const O of F)if(R.next(O),R.closed)return;R.complete()})}(F);if((0,A.L)(F))return function Ce(F){return ge((0,A.Q)(F))}(F)}throw(0,Q.z)(F)}function ge(F){return new d.y(R=>{(function Z(F,R){var O,P,x,de;return(0,t.mG)(this,void 0,void 0,function*(){try{for(O=(0,t.KL)(F);!(P=yield O.next()).done;)if(R.next(P.value),R.closed)return}catch(ue){x={error:ue}}finally{try{P&&!P.done&&(de=O.return)&&(yield de.call(O))}finally{if(x)throw x.error}}R.complete()})})(F,R).catch(O=>R.error(O))})}},1687:(Ot,be,a)=>{a.d(be,{F:()=>v});var t=a(6321),i=a(4825);function v(d=0,s=t.z){return d<0&&(d=0),(0,i.H)(d,d,s)}},3019:(Ot,be,a)=>{a.d(be,{T:()=>L});var t=a(7537),i=a(4829),v=a(6232),d=a(9940),s=a(9666);function L(...Q){const Y=(0,d.yG)(Q),A=(0,d._6)(Q,1/0),S=Q;return S.length?1===S.length?(0,i.Xf)(S[0]):(0,t.J)(A)((0,s.D)(S,Y)):v.E}},2096:(Ot,be,a)=>{a.d(be,{of:()=>v});var t=a(9940),i=a(9666);function v(...d){const s=(0,t.yG)(d);return(0,i.D)(d,s)}},8504:(Ot,be,a)=>{a.d(be,{_:()=>v});var t=a(5592),i=a(4674);function v(d,s){const L=(0,i.m)(d)?d:()=>d,Q=Y=>Y.error(L());return new t.y(s?Y=>s.schedule(Q,0,Y):Q)}},4825:(Ot,be,a)=>{a.d(be,{H:()=>s});var t=a(5592),i=a(6321),v=a(671);function s(L=0,Q,Y=i.P){let A=-1;return null!=Q&&((0,v.K)(Q)?Y=Q:A=Q),new t.y(S=>{let N=function d(L){return L instanceof Date&&!isNaN(L)}(L)?+L-Y.now():L;N<0&&(N=0);let V=0;return Y.schedule(function(){S.closed||(S.next(V++),0<=A?this.schedule(void 0,A):S.complete())},N)})}},8251:(Ot,be,a)=>{a.d(be,{x:()=>i});var t=a(305);function i(d,s,L,Q,Y){return new v(d,s,L,Q,Y)}class v extends t.Lv{constructor(s,L,Q,Y,A,S){super(s),this.onFinalize=A,this.shouldUnsubscribe=S,this._next=L?function(N){try{L(N)}catch(V){s.error(V)}}:super._next,this._error=Y?function(N){try{Y(N)}catch(V){s.error(V)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(N){s.error(N)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:L}=this;super.unsubscribe(),!L&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},9028:(Ot,be,a)=>{a.d(be,{e:()=>Q});var t=a(6321),i=a(9360),v=a(4829),d=a(8251),L=a(4825);function Q(Y,A=t.z){return function s(Y){return(0,i.e)((A,S)=>{let N=!1,V=null,U=null,M=!1;const e=()=>{if(U?.unsubscribe(),U=null,N){N=!1;const k=V;V=null,S.next(k)}M&&S.complete()},I=()=>{U=null,M&&S.complete()};A.subscribe((0,d.x)(S,k=>{N=!0,V=k,U||(0,v.Xf)(Y(k)).subscribe(U=(0,d.x)(S,e,I))},()=>{M=!0,(!N||!U||U.closed)&&S.complete()}))})}(()=>(0,L.H)(Y,A))}},6306:(Ot,be,a)=>{a.d(be,{K:()=>d});var t=a(4829),i=a(8251),v=a(9360);function d(s){return(0,v.e)((L,Q)=>{let S,Y=null,A=!1;Y=L.subscribe((0,i.x)(Q,void 0,void 0,N=>{S=(0,t.Xf)(s(N,d(s)(L))),Y?(Y.unsubscribe(),Y=null,S.subscribe(Q)):A=!0})),A&&(Y.unsubscribe(),Y=null,S.subscribe(Q))})}},6328:(Ot,be,a)=>{a.d(be,{b:()=>v});var t=a(1631),i=a(4674);function v(d,s){return(0,i.m)(s)?(0,t.z)(d,s,1):(0,t.z)(d,1)}},3620:(Ot,be,a)=>{a.d(be,{b:()=>d});var t=a(6321),i=a(9360),v=a(8251);function d(s,L=t.z){return(0,i.e)((Q,Y)=>{let A=null,S=null,N=null;const V=()=>{if(A){A.unsubscribe(),A=null;const M=S;S=null,Y.next(M)}};function U(){const M=N+s,e=L.now();if(e{S=M,N=L.now(),A||(A=L.schedule(U,s),Y.add(A))},()=>{V(),Y.complete()},void 0,()=>{S=A=null}))})}},3572:(Ot,be,a)=>{a.d(be,{d:()=>v});var t=a(9360),i=a(8251);function v(d){return(0,t.e)((s,L)=>{let Q=!1;s.subscribe((0,i.x)(L,Y=>{Q=!0,L.next(Y)},()=>{Q||L.next(d),L.complete()}))})}},5177:(Ot,be,a)=>{a.d(be,{g:()=>U});var t=a(6321),i=a(5211),v=a(8180),d=a(9360),s=a(8251),L=a(2420),Y=a(975),A=a(1631),S=a(4829);function N(M,e){return e?I=>(0,i.z)(e.pipe((0,v.q)(1),function Q(){return(0,d.e)((M,e)=>{M.subscribe((0,s.x)(e,L.Z))})}()),I.pipe(N(M))):(0,A.z)((I,k)=>(0,S.Xf)(M(I,k)).pipe((0,v.q)(1),(0,Y.h)(I)))}var V=a(4825);function U(M,e=t.z){const I=(0,V.H)(M,e);return N(()=>I)}},3997:(Ot,be,a)=>{a.d(be,{x:()=>d});var t=a(2737),i=a(9360),v=a(8251);function d(L,Q=t.y){return L=L??s,(0,i.e)((Y,A)=>{let S,N=!0;Y.subscribe((0,v.x)(A,V=>{const U=Q(V);(N||!L(S,U))&&(N=!1,S=U,A.next(V))}))})}function s(L,Q){return L===Q}},6180:(Ot,be,a)=>{a.d(be,{g:()=>i});var t=a(3997);function i(v,d){return(0,t.x)((s,L)=>d?d(s[v],L[v]):s[v]===L[v])}},2181:(Ot,be,a)=>{a.d(be,{h:()=>v});var t=a(9360),i=a(8251);function v(d,s){return(0,t.e)((L,Q)=>{let Y=0;L.subscribe((0,i.x)(Q,A=>d.call(s,A,Y++)&&Q.next(A)))})}},4716:(Ot,be,a)=>{a.d(be,{x:()=>i});var t=a(9360);function i(v){return(0,t.e)((d,s)=>{try{d.subscribe(s)}finally{s.add(v)}})}},1374:(Ot,be,a)=>{a.d(be,{P:()=>Q});var t=a(6973),i=a(2181),v=a(8180),d=a(3572),s=a(3026),L=a(2737);function Q(Y,A){const S=arguments.length>=2;return N=>N.pipe(Y?(0,i.h)((V,U)=>Y(V,U,N)):L.y,(0,v.q)(1),S?(0,d.d)(A):(0,s.T)(()=>new t.K))}},7398:(Ot,be,a)=>{a.d(be,{U:()=>v});var t=a(9360),i=a(8251);function v(d,s){return(0,t.e)((L,Q)=>{let Y=0;L.subscribe((0,i.x)(Q,A=>{Q.next(d.call(s,A,Y++))}))})}},975:(Ot,be,a)=>{a.d(be,{h:()=>i});var t=a(7398);function i(v){return(0,t.U)(()=>v)}},7537:(Ot,be,a)=>{a.d(be,{J:()=>v});var t=a(1631),i=a(2737);function v(d=1/0){return(0,t.z)(i.y,d)}},1631:(Ot,be,a)=>{a.d(be,{z:()=>Y});var t=a(7398),i=a(4829),v=a(9360),d=a(7103),s=a(8251),Q=a(4674);function Y(A,S,N=1/0){return(0,Q.m)(S)?Y((V,U)=>(0,t.U)((M,e)=>S(V,M,U,e))((0,i.Xf)(A(V,U))),N):("number"==typeof S&&(N=S),(0,v.e)((V,U)=>function L(A,S,N,V,U,M,e,I){const k=[];let ge=0,Ce=0,Z=!1;const F=()=>{Z&&!k.length&&!ge&&S.complete()},R=P=>ge{M&&S.next(P),ge++;let x=!1;(0,i.Xf)(N(P,Ce++)).subscribe((0,s.x)(S,de=>{U?.(de),M?R(de):S.next(de)},()=>{x=!0},void 0,()=>{if(x)try{for(ge--;k.length&&geO(de)):O(de)}F()}catch(de){S.error(de)}}))};return A.subscribe((0,s.x)(S,R,()=>{Z=!0,F()})),()=>{I?.()}}(V,U,A,N)))}},3093:(Ot,be,a)=>{a.d(be,{Q:()=>d});var t=a(7103),i=a(9360),v=a(8251);function d(s,L=0){return(0,i.e)((Q,Y)=>{Q.subscribe((0,v.x)(Y,A=>(0,t.f)(Y,s,()=>Y.next(A),L),()=>(0,t.f)(Y,s,()=>Y.complete(),L),A=>(0,t.f)(Y,s,()=>Y.error(A),L)))})}},9384:(Ot,be,a)=>{a.d(be,{G:()=>v});var t=a(9360),i=a(8251);function v(){return(0,t.e)((d,s)=>{let L,Q=!1;d.subscribe((0,i.x)(s,Y=>{const A=L;L=Y,Q&&s.next([A,Y]),Q=!0}))})}},2185:(Ot,be,a)=>{a.d(be,{j:()=>i});var t=a(7398);function i(...v){const d=v.length;if(0===d)throw new Error("list of properties cannot be empty.");return(0,t.U)(s=>{let L=s;for(let Q=0;Q{a.d(be,{x:()=>v});var t=a(9360),i=a(8251);function v(){return(0,t.e)((d,s)=>{let L=null;d._refCount++;const Q=(0,i.x)(s,void 0,void 0,void 0,()=>{if(!d||d._refCount<=0||0<--d._refCount)return void(L=null);const Y=d._connection,A=L;L=null,Y&&(!A||Y===A)&&Y.unsubscribe(),s.unsubscribe()});d.subscribe(Q),Q.closed||(L=d.connect())})}},6699:(Ot,be,a)=>{a.d(be,{R:()=>d});var t=a(9360),i=a(8251);function d(s,L){return(0,t.e)(function v(s,L,Q,Y,A){return(S,N)=>{let V=Q,U=L,M=0;S.subscribe((0,i.x)(N,e=>{const I=M++;U=V?s(U,e,I):(V=!0,e),Y&&N.next(U)},A&&(()=>{V&&N.next(U),N.complete()})))}}(s,L,arguments.length>=2,!0))}},3020:(Ot,be,a)=>{a.d(be,{B:()=>s});var t=a(4829),i=a(8645),v=a(305),d=a(9360);function s(Q={}){const{connector:Y=(()=>new i.x),resetOnError:A=!0,resetOnComplete:S=!0,resetOnRefCountZero:N=!0}=Q;return V=>{let U,M,e,I=0,k=!1,ge=!1;const Ce=()=>{M?.unsubscribe(),M=void 0},Z=()=>{Ce(),U=e=void 0,k=ge=!1},F=()=>{const R=U;Z(),R?.unsubscribe()};return(0,d.e)((R,O)=>{I++,!ge&&!k&&Ce();const P=e=e??Y();O.add(()=>{I--,0===I&&!ge&&!k&&(M=L(F,N))}),P.subscribe(O),!U&&I>0&&(U=new v.Hp({next:x=>P.next(x),error:x=>{ge=!0,Ce(),M=L(Z,A,x),P.error(x)},complete:()=>{k=!0,Ce(),M=L(Z,S),P.complete()}}),(0,t.Xf)(R).subscribe(U))})(V)}}function L(Q,Y,...A){if(!0===Y)return void Q();if(!1===Y)return;const S=new v.Hp({next:()=>{S.unsubscribe(),Q()}});return(0,t.Xf)(Y(...A)).subscribe(S)}},7081:(Ot,be,a)=>{a.d(be,{d:()=>v});var t=a(7328),i=a(3020);function v(d,s,L){let Q,Y=!1;return d&&"object"==typeof d?({bufferSize:Q=1/0,windowTime:s=1/0,refCount:Y=!1,scheduler:L}=d):Q=d??1/0,(0,i.B)({connector:()=>new t.t(Q,s,L),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Y})}},836:(Ot,be,a)=>{a.d(be,{T:()=>i});var t=a(2181);function i(v){return(0,t.h)((d,s)=>v<=s)}},7921:(Ot,be,a)=>{a.d(be,{O:()=>d});var t=a(5211),i=a(9940),v=a(9360);function d(...s){const L=(0,i.yG)(s);return(0,v.e)((Q,Y)=>{(L?(0,t.z)(s,Q,L):(0,t.z)(s,Q)).subscribe(Y)})}},4664:(Ot,be,a)=>{a.d(be,{w:()=>d});var t=a(4829),i=a(9360),v=a(8251);function d(s,L){return(0,i.e)((Q,Y)=>{let A=null,S=0,N=!1;const V=()=>N&&!A&&Y.complete();Q.subscribe((0,v.x)(Y,U=>{A?.unsubscribe();let M=0;const e=S++;(0,t.Xf)(s(U,e)).subscribe(A=(0,v.x)(Y,I=>Y.next(L?L(U,I,e,M++):I),()=>{A=null,V()}))},()=>{N=!0,V()}))})}},8180:(Ot,be,a)=>{a.d(be,{q:()=>d});var t=a(6232),i=a(9360),v=a(8251);function d(s){return s<=0?()=>t.E:(0,i.e)((L,Q)=>{let Y=0;L.subscribe((0,v.x)(Q,A=>{++Y<=s&&(Q.next(A),s<=Y&&Q.complete())}))})}},9773:(Ot,be,a)=>{a.d(be,{R:()=>s});var t=a(9360),i=a(8251),v=a(4829),d=a(2420);function s(L){return(0,t.e)((Q,Y)=>{(0,v.Xf)(L).subscribe((0,i.x)(Y,()=>Y.complete(),d.Z)),!Y.closed&&Q.subscribe(Y)})}},812:(Ot,be,a)=>{a.d(be,{o:()=>v});var t=a(9360),i=a(8251);function v(d,s=!1){return(0,t.e)((L,Q)=>{let Y=0;L.subscribe((0,i.x)(Q,A=>{const S=d(A,Y++);(S||s)&&Q.next(A),!S&&Q.complete()}))})}},9397:(Ot,be,a)=>{a.d(be,{b:()=>s});var t=a(4674),i=a(9360),v=a(8251),d=a(2737);function s(L,Q,Y){const A=(0,t.m)(L)||Q||Y?{next:L,error:Q,complete:Y}:L;return A?(0,i.e)((S,N)=>{var V;null===(V=A.subscribe)||void 0===V||V.call(A);let U=!0;S.subscribe((0,v.x)(N,M=>{var e;null===(e=A.next)||void 0===e||e.call(A,M),N.next(M)},()=>{var M;U=!1,null===(M=A.complete)||void 0===M||M.call(A),N.complete()},M=>{var e;U=!1,null===(e=A.error)||void 0===e||e.call(A,M),N.error(M)},()=>{var M,e;U&&(null===(M=A.unsubscribe)||void 0===M||M.call(A)),null===(e=A.finalize)||void 0===e||e.call(A)}))}):d.y}},8753:(Ot,be,a)=>{a.d(be,{p:()=>Q});var t=a(6321),i=a(9360),v=a(8251),d=a(4829),L=a(4825);function Q(Y,A=t.z,S){const N=(0,L.H)(Y,A);return function s(Y,A){return(0,i.e)((S,N)=>{const{leading:V=!0,trailing:U=!1}=A??{};let M=!1,e=null,I=null,k=!1;const ge=()=>{I?.unsubscribe(),I=null,U&&(F(),k&&N.complete())},Ce=()=>{I=null,k&&N.complete()},Z=R=>I=(0,d.Xf)(Y(R)).subscribe((0,v.x)(N,ge,Ce)),F=()=>{if(M){M=!1;const R=e;e=null,N.next(R),!k&&Z(R)}};S.subscribe((0,v.x)(N,R=>{M=!0,e=R,(!I||I.closed)&&(V?F():Z(R))},()=>{k=!0,(!(U&&M&&I)||I.closed)&&N.complete()}))})}(()=>N,S)}},3026:(Ot,be,a)=>{a.d(be,{T:()=>d});var t=a(6973),i=a(9360),v=a(8251);function d(L=s){return(0,i.e)((Q,Y)=>{let A=!1;Q.subscribe((0,v.x)(Y,S=>{A=!0,Y.next(S)},()=>A?Y.complete():Y.error(L())))})}function s(){return new t.K}},2460:(Ot,be,a)=>{a.d(be,{M:()=>Q});var t=a(9360),i=a(8251),v=a(4829),d=a(2737),s=a(2420),L=a(9940);function Q(...Y){const A=(0,L.jO)(Y);return(0,t.e)((S,N)=>{const V=Y.length,U=new Array(V);let M=Y.map(()=>!1),e=!1;for(let I=0;I{U[I]=k,!e&&!M[I]&&(M[I]=!0,(e=M.every(d.y))&&(M=null))},s.Z));S.subscribe((0,i.x)(N,I=>{if(e){const k=[I,...U];N.next(A?A(...k):k)}}))})}},1954:(Ot,be,a)=>{a.d(be,{o:()=>s});var t=a(7394);class i extends t.w0{constructor(Q,Y){super()}schedule(Q,Y=0){return this}}const v={setInterval(L,Q,...Y){const{delegate:A}=v;return A?.setInterval?A.setInterval(L,Q,...Y):setInterval(L,Q,...Y)},clearInterval(L){const{delegate:Q}=v;return(Q?.clearInterval||clearInterval)(L)},delegate:void 0};var d=a(9039);class s extends i{constructor(Q,Y){super(Q,Y),this.scheduler=Q,this.work=Y,this.pending=!1}schedule(Q,Y=0){var A;if(this.closed)return this;this.state=Q;const S=this.id,N=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(N,S,Y)),this.pending=!0,this.delay=Y,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(N,this.id,Y),this}requestAsyncId(Q,Y,A=0){return v.setInterval(Q.flush.bind(Q,this),A)}recycleAsyncId(Q,Y,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return Y;null!=Y&&v.clearInterval(Y)}execute(Q,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(Q,Y);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,Y){let S,A=!1;try{this.work(Q)}catch(N){A=!0,S=N||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:Q,scheduler:Y}=this,{actions:A}=Y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.P)(A,this),null!=Q&&(this.id=this.recycleAsyncId(Y,Q,null)),this.delay=null,super.unsubscribe()}}}},2631:(Ot,be,a)=>{a.d(be,{v:()=>v});var t=a(4552);class i{constructor(s,L=i.now){this.schedulerActionCtor=s,this.now=L}schedule(s,L=0,Q){return new this.schedulerActionCtor(this,s).schedule(Q,L)}}i.now=t.l.now;class v extends i{constructor(s,L=i.now){super(s,L),this.actions=[],this._active=!1}flush(s){const{actions:L}=this;if(this._active)return void L.push(s);let Q;this._active=!0;do{if(Q=s.execute(s.state,s.delay))break}while(s=L.shift());if(this._active=!1,Q){for(;s=L.shift();)s.unsubscribe();throw Q}}}},927:(Ot,be,a)=>{a.d(be,{Z:()=>Q});var t=a(1954),i=a(7394);const v={schedule(A){let S=requestAnimationFrame,N=cancelAnimationFrame;const{delegate:V}=v;V&&(S=V.requestAnimationFrame,N=V.cancelAnimationFrame);const U=S(M=>{N=void 0,A(M)});return new i.w0(()=>N?.(U))},requestAnimationFrame(...A){const{delegate:S}=v;return(S?.requestAnimationFrame||requestAnimationFrame)(...A)},cancelAnimationFrame(...A){const{delegate:S}=v;return(S?.cancelAnimationFrame||cancelAnimationFrame)(...A)},delegate:void 0};var s=a(2631);const Q=new class L extends s.v{flush(S){this._active=!0;const N=this._scheduled;this._scheduled=void 0;const{actions:V}=this;let U;S=S||V.shift();do{if(U=S.execute(S.state,S.delay))break}while((S=V[0])&&S.id===N&&V.shift());if(this._active=!1,U){for(;(S=V[0])&&S.id===N&&V.shift();)S.unsubscribe();throw U}}}(class d extends t.o{constructor(S,N){super(S,N),this.scheduler=S,this.work=N}requestAsyncId(S,N,V=0){return null!==V&&V>0?super.requestAsyncId(S,N,V):(S.actions.push(this),S._scheduled||(S._scheduled=v.requestAnimationFrame(()=>S.flush(void 0))))}recycleAsyncId(S,N,V=0){var U;if(null!=V?V>0:this.delay>0)return super.recycleAsyncId(S,N,V);const{actions:M}=S;null!=N&&(null===(U=M[M.length-1])||void 0===U?void 0:U.id)!==N&&(v.cancelAnimationFrame(N),S._scheduled=void 0)}})},6410:(Ot,be,a)=>{a.d(be,{E:()=>M});var t=a(1954);let v,i=1;const d={};function s(I){return I in d&&(delete d[I],!0)}const L={setImmediate(I){const k=i++;return d[k]=!0,v||(v=Promise.resolve()),v.then(()=>s(k)&&I()),k},clearImmediate(I){s(I)}},{setImmediate:Y,clearImmediate:A}=L,S={setImmediate(...I){const{delegate:k}=S;return(k?.setImmediate||Y)(...I)},clearImmediate(I){const{delegate:k}=S;return(k?.clearImmediate||A)(I)},delegate:void 0};var V=a(2631);const M=new class U extends V.v{flush(k){this._active=!0;const ge=this._scheduled;this._scheduled=void 0;const{actions:Ce}=this;let Z;k=k||Ce.shift();do{if(Z=k.execute(k.state,k.delay))break}while((k=Ce[0])&&k.id===ge&&Ce.shift());if(this._active=!1,Z){for(;(k=Ce[0])&&k.id===ge&&Ce.shift();)k.unsubscribe();throw Z}}}(class N extends t.o{constructor(k,ge){super(k,ge),this.scheduler=k,this.work=ge}requestAsyncId(k,ge,Ce=0){return null!==Ce&&Ce>0?super.requestAsyncId(k,ge,Ce):(k.actions.push(this),k._scheduled||(k._scheduled=S.setImmediate(k.flush.bind(k,void 0))))}recycleAsyncId(k,ge,Ce=0){var Z;if(null!=Ce?Ce>0:this.delay>0)return super.recycleAsyncId(k,ge,Ce);const{actions:F}=k;null!=ge&&(null===(Z=F[F.length-1])||void 0===Z?void 0:Z.id)!==ge&&(S.clearImmediate(ge),k._scheduled===ge&&(k._scheduled=void 0))}})},6321:(Ot,be,a)=>{a.d(be,{P:()=>d,z:()=>v});var t=a(1954);const v=new(a(2631).v)(t.o),d=v},4552:(Ot,be,a)=>{a.d(be,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(Ot,be,a)=>{a.d(be,{z:()=>t});const t={setTimeout(i,v,...d){const{delegate:s}=t;return s?.setTimeout?s.setTimeout(i,v,...d):setTimeout(i,v,...d)},clearTimeout(i){const{delegate:v}=t;return(v?.clearTimeout||clearTimeout)(i)},delegate:void 0}},4971:(Ot,be,a)=>{a.d(be,{h:()=>i});const i=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Ot,be,a)=>{a.d(be,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(Ot,be,a)=>{a.d(be,{K:()=>i});const i=(0,a(2306).d)(v=>function(){v(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(Ot,be,a)=>{a.d(be,{_6:()=>L,jO:()=>d,yG:()=>s});var t=a(4674),i=a(671);function v(Q){return Q[Q.length-1]}function d(Q){return(0,t.m)(v(Q))?Q.pop():void 0}function s(Q){return(0,i.K)(v(Q))?Q.pop():void 0}function L(Q,Y){return"number"==typeof v(Q)?Q.pop():Y}},7453:(Ot,be,a)=>{a.d(be,{D:()=>s});const{isArray:t}=Array,{getPrototypeOf:i,prototype:v,keys:d}=Object;function s(Q){if(1===Q.length){const Y=Q[0];if(t(Y))return{args:Y,keys:null};if(function L(Q){return Q&&"object"==typeof Q&&i(Q)===v}(Y)){const A=d(Y);return{args:A.map(S=>Y[S]),keys:A}}}return{args:Q,keys:null}}},9039:(Ot,be,a)=>{function t(i,v){if(i){const d=i.indexOf(v);0<=d&&i.splice(d,1)}}a.d(be,{P:()=>t})},2306:(Ot,be,a)=>{function t(i){const d=i(s=>{Error.call(s),s.stack=(new Error).stack});return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d}a.d(be,{d:()=>t})},2714:(Ot,be,a)=>{function t(i,v){return i.reduce((d,s,L)=>(d[s]=v[L],d),{})}a.d(be,{n:()=>t})},1441:(Ot,be,a)=>{a.d(be,{O:()=>d,x:()=>v});var t=a(2653);let i=null;function v(s){if(t.config.useDeprecatedSynchronousErrorHandling){const L=!i;if(L&&(i={errorThrown:!1,error:null}),s(),L){const{errorThrown:Q,error:Y}=i;if(i=null,Q)throw Y}}else s()}function d(s){t.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=s)}},7103:(Ot,be,a)=>{function t(i,v,d,s=0,L=!1){const Q=v.schedule(function(){d(),L?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(Q),!L)return Q}a.d(be,{f:()=>t})},2737:(Ot,be,a)=>{function t(i){return i}a.d(be,{y:()=>t})},4266:(Ot,be,a)=>{a.d(be,{z:()=>t});const t=i=>i&&"number"==typeof i.length&&"function"!=typeof i},5726:(Ot,be,a)=>{a.d(be,{D:()=>i});var t=a(4674);function i(v){return Symbol.asyncIterator&&(0,t.m)(v?.[Symbol.asyncIterator])}},4674:(Ot,be,a)=>{function t(i){return"function"==typeof i}a.d(be,{m:()=>t})},8382:(Ot,be,a)=>{a.d(be,{c:()=>v});var t=a(4850),i=a(4674);function v(d){return(0,i.m)(d[t.L])}},3664:(Ot,be,a)=>{a.d(be,{T:()=>v});var t=a(4971),i=a(4674);function v(d){return(0,i.m)(d?.[t.h])}},2664:(Ot,be,a)=>{a.d(be,{b:()=>v});var t=a(5592),i=a(4674);function v(d){return!!d&&(d instanceof t.y||(0,i.m)(d.lift)&&(0,i.m)(d.subscribe))}},4026:(Ot,be,a)=>{a.d(be,{t:()=>i});var t=a(4674);function i(v){return(0,t.m)(v?.then)}},541:(Ot,be,a)=>{a.d(be,{L:()=>d,Q:()=>v});var t=a(655),i=a(4674);function v(s){return(0,t.FC)(this,arguments,function*(){const Q=s.getReader();try{for(;;){const{value:Y,done:A}=yield(0,t.qq)(Q.read());if(A)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(Y)}}finally{Q.releaseLock()}})}function d(s){return(0,i.m)(s?.getReader)}},671:(Ot,be,a)=>{a.d(be,{K:()=>i});var t=a(4674);function i(v){return v&&(0,t.m)(v.schedule)}},9360:(Ot,be,a)=>{a.d(be,{A:()=>i,e:()=>v});var t=a(4674);function i(d){return(0,t.m)(d?.lift)}function v(d){return s=>{if(i(s))return s.lift(function(L){try{return d(L,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Ot,be,a)=>{a.d(be,{Z:()=>d});var t=a(7398);const{isArray:i}=Array;function d(s){return(0,t.U)(L=>function v(s,L){return i(L)?s(...L):s(L)}(s,L))}},2420:(Ot,be,a)=>{function t(){}a.d(be,{Z:()=>t})},8407:(Ot,be,a)=>{a.d(be,{U:()=>v,z:()=>i});var t=a(2737);function i(...d){return v(d)}function v(d){return 0===d.length?t.y:1===d.length?d[0]:function(L){return d.reduce((Q,Y)=>Y(Q),L)}}},3894:(Ot,be,a)=>{a.d(be,{h:()=>v});var t=a(2653),i=a(7599);function v(d){i.z.setTimeout(()=>{const{onUnhandledError:s}=t.config;if(!s)throw d;s(d)})}},9853:(Ot,be,a)=>{function t(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(be,{z:()=>t})},3742:(Ot,be,a)=>{function t(P){return P!==String(parseFloat(P))}a.d(be,{o6:()=>O});var s=Object.getOwnPropertyNames?function i(P){return Object.getOwnPropertyNames(P).filter(function(x){return P.propertyIsEnumerable(x)&&t(x)})}:Object.keys?function v(P){return Object.keys(P).filter(t)}:function d(P){var x=[];for(var de in P)P.hasOwnProperty(de)&&P.propertyIsEnumerable(de)&&t(de)&&x.push(de);return x},L=function(){function P(x){this.enumObj=x,this.keysList=Object.freeze(s(x));for(var de=this.keysList.length,ue=new Array(de),j=new Map,me=0;me=de.length,value:de.keysList[ue]};return++ue,me}})[Symbol.iterator]=function(){return this},x},P.prototype.values=function(){var x,de=this,ue=0;return(x={next:function(){var me={done:ue>=de.length,value:de.valuesList[ue]};return++ue,me}})[Symbol.iterator]=function(){return this},x},P.prototype.entries=function(){var x,de=this,ue=0;return(x={next:function(){var me={done:ue>=de.length,value:de[ue]};return++ue,me}})[Symbol.iterator]=function(){return this},x},P.prototype[Symbol.iterator]=function(){return this.entries()},P.prototype.forEach=function(x,de){for(var ue=this.length,j=0;j{a.d(be,{FC:()=>ge,Jh:()=>A,KL:()=>Z,ZT:()=>i,_T:()=>d,ev:()=>I,gn:()=>s,mG:()=>Y,pi:()=>v,qq:()=>k});var t=function(j,me){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,he){re.__proto__=he}||function(re,he){for(var Me in he)Object.prototype.hasOwnProperty.call(he,Me)&&(re[Me]=he[Me])})(j,me)};function i(j,me){if("function"!=typeof me&&null!==me)throw new TypeError("Class extends value "+String(me)+" is not a constructor or null");function re(){this.constructor=j}t(j,me),j.prototype=null===me?Object.create(me):(re.prototype=me.prototype,new re)}var v=function(){return v=Object.assign||function(me){for(var re,he=1,Me=arguments.length;he=0;It--)(kt=j[It])&&(Oe=(Me<3?kt(Oe):Me>3?kt(me,re,Oe):kt(me,re))||Oe);return Me>3&&Oe&&Object.defineProperty(me,re,Oe),Oe}function Y(j,me,re,he){return new(re||(re=Promise))(function(Oe,kt){function It(_t){try{gt(he.next(_t))}catch(Ft){kt(Ft)}}function Tt(_t){try{gt(he.throw(_t))}catch(Ft){kt(Ft)}}function gt(_t){_t.done?Oe(_t.value):function Me(Oe){return Oe instanceof re?Oe:new re(function(kt){kt(Oe)})}(_t.value).then(It,Tt)}gt((he=he.apply(j,me||[])).next())})}function A(j,me){var he,Me,Oe,kt,re={label:0,sent:function(){if(1&Oe[0])throw Oe[1];return Oe[1]},trys:[],ops:[]};return kt={next:It(0),throw:It(1),return:It(2)},"function"==typeof Symbol&&(kt[Symbol.iterator]=function(){return this}),kt;function It(gt){return function(_t){return function Tt(gt){if(he)throw new TypeError("Generator is already executing.");for(;kt&&(kt=0,gt[0]&&(re=0)),re;)try{if(he=1,Me&&(Oe=2>[0]?Me.return:gt[0]?Me.throw||((Oe=Me.return)&&Oe.call(Me),0):Me.next)&&!(Oe=Oe.call(Me,gt[1])).done)return Oe;switch(Me=0,Oe&&(gt=[2>[0],Oe.value]),gt[0]){case 0:case 1:Oe=gt;break;case 4:return re.label++,{value:gt[1],done:!1};case 5:re.label++,Me=gt[1],gt=[0];continue;case 7:gt=re.ops.pop(),re.trys.pop();continue;default:if(!(Oe=(Oe=re.trys).length>0&&Oe[Oe.length-1])&&(6===gt[0]||2===gt[0])){re=0;continue}if(3===gt[0]&&(!Oe||gt[1]>Oe[0]&>[1]1||It(rn,bn)})})}function It(rn,bn){try{!function Tt(rn){rn.value instanceof k?Promise.resolve(rn.value.v).then(gt,_t):Ft(Oe[0][2],rn)}(he[rn](bn))}catch(et){Ft(Oe[0][3],et)}}function gt(rn){It("next",rn)}function _t(rn){It("throw",rn)}function Ft(rn,bn){rn(bn),Oe.shift(),Oe.length&&It(Oe[0][0],Oe[0][1])}}function Z(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,me=j[Symbol.asyncIterator];return me?me.call(j):(j=function V(j){var me="function"==typeof Symbol&&Symbol.iterator,re=me&&j[me],he=0;if(re)return re.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&he>=j.length&&(j=void 0),{value:j&&j[he++],done:!j}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),re={},he("next"),he("throw"),he("return"),re[Symbol.asyncIterator]=function(){return this},re);function he(Oe){re[Oe]=j[Oe]&&function(kt){return new Promise(function(It,Tt){!function Me(Oe,kt,It,Tt){Promise.resolve(Tt).then(function(gt){Oe({value:gt,done:It})},kt)}(It,Tt,(kt=j[Oe](kt)).done,kt.value)})}}}},7691:(Ot,be,a)=>{function t(s){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(s)}function d(s,L,Q){return(L=function v(s){var L=function i(s,L){if("object"!==t(s)||null===s)return s;var Q=s[Symbol.toPrimitive];if(void 0!==Q){var Y=Q.call(s,L||"default");if("object"!==t(Y))return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(s)}(s,"string");return"symbol"===t(L)?L:String(L)}(L))in s?Object.defineProperty(s,L,{value:Q,enumerable:!0,configurable:!0,writable:!0}):s[L]=Q,s}a.d(be,{Z:()=>d})},6825:(Ot,be,a)=>{a.d(be,{EY:()=>I,IO:()=>e,LC:()=>i,SB:()=>A,X$:()=>d,ZE:()=>ge,ZN:()=>k,_j:()=>t,eR:()=>N,jt:()=>s,k1:()=>Ce,l3:()=>v,oB:()=>Y,vP:()=>Q});class t{}class i{}const v="*";function d(Z,F){return{type:7,name:Z,definitions:F,options:{}}}function s(Z,F=null){return{type:4,styles:F,timings:Z}}function Q(Z,F=null){return{type:2,steps:Z,options:F}}function Y(Z){return{type:6,styles:Z,offset:null}}function A(Z,F,R){return{type:0,name:Z,styles:F,options:R}}function N(Z,F,R=null){return{type:1,expr:Z,animation:F,options:R}}function e(Z,F,R=null){return{type:11,selector:Z,animation:F,options:R}}function I(Z,F){return{type:12,timings:Z,animation:F}}class k{constructor(F=0,R=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=F+R}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}onStart(F){this._originalOnStartFns.push(F),this._onStartFns.push(F)}onDone(F){this._originalOnDoneFns.push(F),this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(F=>F()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(F){this._position=this.totalTime?F*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(F){const R="start"==F?this._onStartFns:this._onDoneFns;R.forEach(O=>O()),R.length=0}}class ge{constructor(F){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=F;let R=0,O=0,P=0;const x=this.players.length;0==x?queueMicrotask(()=>this._onFinish()):this.players.forEach(de=>{de.onDone(()=>{++R==x&&this._onFinish()}),de.onDestroy(()=>{++O==x&&this._onDestroy()}),de.onStart(()=>{++P==x&&this._onStart()})}),this.totalTime=this.players.reduce((de,ue)=>Math.max(de,ue.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}init(){this.players.forEach(F=>F.init())}onStart(F){this._onStartFns.push(F)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(F=>F()),this._onStartFns=[])}onDone(F){this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(F=>F.play())}pause(){this.players.forEach(F=>F.pause())}restart(){this.players.forEach(F=>F.restart())}finish(){this._onFinish(),this.players.forEach(F=>F.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(F=>F.destroy()),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this.players.forEach(F=>F.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(F){const R=F*this.totalTime;this.players.forEach(O=>{const P=O.totalTime?Math.min(1,R/O.totalTime):1;O.setPosition(P)})}getPosition(){const F=this.players.reduce((R,O)=>null===R||O.totalTime>R.totalTime?O:R,null);return null!=F?F.getPosition():0}beforeDestroy(){this.players.forEach(F=>{F.beforeDestroy&&F.beforeDestroy()})}triggerCallback(F){const R="start"==F?this._onStartFns:this._onDoneFns;R.forEach(O=>O()),R.length=0}}const Ce="!"},4300:(Ot,be,a)=>{a.d(be,{Em:()=>Oe,X6:()=>Be,kH:()=>Ke,qV:()=>On,rt:()=>zt,tE:()=>jt,yG:()=>xe});var t=a(6814),i=a(5879),v=a(2831),d=a(8645),s=a(7394),L=a(5619),Q=a(2096),Y=a(6028),A=a(9397),S=a(3620),N=a(2181),V=a(7398),U=a(8180),M=a(836),e=a(3997),I=a(9773),k=a(2495),ge=a(7131),Ce=a(1088);class he{constructor(qe){this._items=qe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new d.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=rt=>rt.disabled,this._pressedLetters=[],this.tabOut=new d.x,this.change=new d.x,qe instanceof i.n_E&&(this._itemChangesSubscription=qe.changes.subscribe(rt=>{if(this._activeItem){const St=rt.toArray().indexOf(this._activeItem);St>-1&&St!==this._activeItemIndex&&(this._activeItemIndex=St)}}))}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.b)(rt=>this._pressedLetters.push(rt)),(0,S.b)(qe),(0,N.h)(()=>this._pressedLetters.length>0),(0,V.U)(()=>this._pressedLetters.join(""))).subscribe(rt=>{const Rt=this._getItemsArray();for(let St=1;St!qe[gn]||this._allowedModifierKeys.indexOf(gn)>-1);switch(rt){case Y.Mf:return void this.tabOut.next();case Y.JH:if(this._vertical&&St){this.setNextItemActive();break}return;case Y.LH:if(this._vertical&&St){this.setPreviousItemActive();break}return;case Y.SV:if(this._horizontal&&St){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Y.oh:if(this._horizontal&&St){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Y.Sd:if(this._homeAndEnd&&St){this.setFirstItemActive();break}return;case Y.uR:if(this._homeAndEnd&&St){this.setLastItemActive();break}return;case Y.Ku:if(this._pageUpAndDown.enabled&&St){const gn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(gn>0?gn:0,1);break}return;case Y.VM:if(this._pageUpAndDown.enabled&&St){const gn=this._activeItemIndex+this._pageUpAndDown.delta,Ze=this._getItemsArray().length;this._setActiveItemByIndex(gn=Y.A&&rt<=Y.Z||rt>=Y.xE&&rt<=Y.aO)&&this._letterKeyStream.next(String.fromCharCode(rt))))}this._pressedLetters=[],qe.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(qe){const rt=this._getItemsArray(),Rt="number"==typeof qe?qe:rt.indexOf(qe);this._activeItem=rt[Rt]??null,this._activeItemIndex=Rt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(qe){this._wrap?this._setActiveInWrapMode(qe):this._setActiveInDefaultMode(qe)}_setActiveInWrapMode(qe){const rt=this._getItemsArray();for(let Rt=1;Rt<=rt.length;Rt++){const St=(this._activeItemIndex+qe*Rt+rt.length)%rt.length;if(!this._skipPredicateFn(rt[St]))return void this.setActiveItem(St)}}_setActiveInDefaultMode(qe){this._setActiveItemByIndex(this._activeItemIndex+qe,qe)}_setActiveItemByIndex(qe,rt){const Rt=this._getItemsArray();if(Rt[qe]){for(;this._skipPredicateFn(Rt[qe]);)if(!Rt[qe+=rt])return;this.setActiveItem(qe)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Oe extends he{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let It=(()=>{class nt{constructor(rt){this._platform=rt}isDisabled(rt){return rt.hasAttribute("disabled")}isVisible(rt){return function gt(nt){return!!(nt.offsetWidth||nt.offsetHeight||"function"==typeof nt.getClientRects&&nt.getClientRects().length)}(rt)&&"visible"===getComputedStyle(rt).visibility}isTabbable(rt){if(!this._platform.isBrowser)return!1;const Rt=function Tt(nt){try{return nt.frameElement}catch{return null}}(function Xt(nt){return nt.ownerDocument&&nt.ownerDocument.defaultView||window}(rt));if(Rt&&(-1===yt(Rt)||!this.isVisible(Rt)))return!1;let St=rt.nodeName.toLowerCase(),gn=yt(rt);return rt.hasAttribute("contenteditable")?-1!==gn:!("iframe"===St||"object"===St||this._platform.WEBKIT&&this._platform.IOS&&!function je(nt){let qe=nt.nodeName.toLowerCase(),rt="input"===qe&&nt.type;return"text"===rt||"password"===rt||"select"===qe||"textarea"===qe}(rt))&&("audio"===St?!!rt.hasAttribute("controls")&&-1!==gn:"video"===St?-1!==gn&&(null!==gn||this._platform.FIREFOX||rt.hasAttribute("controls")):rt.tabIndex>=0)}isFocusable(rt,Rt){return function Ut(nt){return!function Ft(nt){return function bn(nt){return"input"==nt.nodeName.toLowerCase()}(nt)&&"hidden"==nt.type}(nt)&&(function _t(nt){let qe=nt.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(nt)||function rn(nt){return function et(nt){return"a"==nt.nodeName.toLowerCase()}(nt)&&nt.hasAttribute("href")}(nt)||nt.hasAttribute("contenteditable")||Re(nt))}(rt)&&!this.isDisabled(rt)&&(Rt?.ignoreVisibility||this.isVisible(rt))}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.LFG(v.t4))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Re(nt){if(!nt.hasAttribute("tabindex")||void 0===nt.tabIndex)return!1;let qe=nt.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function yt(nt){if(!Re(nt))return null;const qe=parseInt(nt.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class _n{get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}constructor(qe,rt,Rt,St,gn=!1){this._element=qe,this._checker=rt,this._ngZone=Rt,this._document=St,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,gn||this.attachAnchors()}destroy(){const qe=this._startAnchor,rt=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),rt&&(rt.removeEventListener("focus",this.endAnchorListener),rt.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(qe){return new Promise(rt=>{this._executeOnStable(()=>rt(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(rt=>{this._executeOnStable(()=>rt(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(rt=>{this._executeOnStable(()=>rt(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const rt=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?rt.length?rt[0]:this._getFirstTabbableElement(this._element):rt.length?rt[rt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const rt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(rt){if(!this._checker.isFocusable(rt)){const Rt=this._getFirstTabbableElement(rt);return Rt?.focus(qe),!!Rt}return rt.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const rt=this._getRegionBoundary("start");return rt&&rt.focus(qe),!!rt}focusLastTabbableElement(qe){const rt=this._getRegionBoundary("end");return rt&&rt.focus(qe),!!rt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const rt=qe.children;for(let Rt=0;Rt=0;Rt--){const St=rt[Rt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(rt[Rt]):null;if(St)return St}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,rt){qe?rt.setAttribute("tabindex","0"):rt.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._ngZone.isStable?qe():this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(qe)}}let On=(()=>{class nt{constructor(rt,Rt,St){this._checker=rt,this._ngZone=Rt,this._document=St}create(rt,Rt=!1){return new _n(rt,this._checker,this._ngZone,this._document,Rt)}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.LFG(It),i.LFG(i.R0b),i.LFG(t.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Be(nt){return 0===nt.buttons||0===nt.offsetX&&0===nt.offsetY}function xe(nt){const qe=nt.touches&&nt.touches[0]||nt.changedTouches&&nt.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const te=new i.OlP("cdk-input-modality-detector-options"),ae={ignoreKeys:[Y.zL,Y.jx,Y.b2,Y.MW,Y.JU]},Ge=(0,v.i$)({passive:!0,capture:!0});let Ct=(()=>{class nt{get mostRecentModality(){return this._modality.value}constructor(rt,Rt,St,gn){this._platform=rt,this._mostRecentTarget=null,this._modality=new L.X(null),this._lastTouchMs=0,this._onKeydown=Ze=>{this._options?.ignoreKeys?.some(ut=>ut===Ze.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(Ze))},this._onMousedown=Ze=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Be(Ze)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(Ze))},this._onTouchstart=Ze=>{xe(Ze)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(Ze))},this._options={...ae,...gn},this.modalityDetected=this._modality.pipe((0,M.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,e.x)()),rt.isBrowser&&Rt.runOutsideAngular(()=>{St.addEventListener("keydown",this._onKeydown,Ge),St.addEventListener("mousedown",this._onMousedown,Ge),St.addEventListener("touchstart",this._onTouchstart,Ge)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ge),document.removeEventListener("mousedown",this._onMousedown,Ge),document.removeEventListener("touchstart",this._onTouchstart,Ge))}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.LFG(v.t4),i.LFG(i.R0b),i.LFG(t.K0),i.LFG(te,8))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const wt=new i.OlP("cdk-focus-monitor-default-options"),Vt=(0,v.i$)({passive:!0,capture:!0});let jt=(()=>{class nt{constructor(rt,Rt,St,gn,Ze){this._ngZone=rt,this._platform=Rt,this._inputModalityDetector=St,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new d.x,this._rootNodeFocusAndBlurListener=ut=>{for(let _e=(0,v.sA)(ut);_e;_e=_e.parentElement)"focus"===ut.type?this._onFocus(ut,_e):this._onBlur(ut,_e)},this._document=gn,this._detectionMode=Ze?.detectionMode||0}monitor(rt,Rt=!1){const St=(0,k.fI)(rt);if(!this._platform.isBrowser||1!==St.nodeType)return(0,Q.of)();const gn=(0,v.kV)(St)||this._getDocument(),Ze=this._elementInfo.get(St);if(Ze)return Rt&&(Ze.checkChildren=!0),Ze.subject;const ut={checkChildren:Rt,subject:new d.x,rootNode:gn};return this._elementInfo.set(St,ut),this._registerGlobalListeners(ut),ut.subject}stopMonitoring(rt){const Rt=(0,k.fI)(rt),St=this._elementInfo.get(Rt);St&&(St.subject.complete(),this._setClasses(Rt),this._elementInfo.delete(Rt),this._removeGlobalListeners(St))}focusVia(rt,Rt,St){const gn=(0,k.fI)(rt);gn===this._getDocument().activeElement?this._getClosestElementsInfo(gn).forEach(([ut,ce])=>this._originChanged(ut,Rt,ce)):(this._setOrigin(Rt),"function"==typeof gn.focus&&gn.focus(St))}ngOnDestroy(){this._elementInfo.forEach((rt,Rt)=>this.stopMonitoring(Rt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(rt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(rt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:rt&&this._isLastInteractionFromInputLabel(rt)?"mouse":"program"}_shouldBeAttributedToTouch(rt){return 1===this._detectionMode||!!rt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(rt,Rt){rt.classList.toggle("cdk-focused",!!Rt),rt.classList.toggle("cdk-touch-focused","touch"===Rt),rt.classList.toggle("cdk-keyboard-focused","keyboard"===Rt),rt.classList.toggle("cdk-mouse-focused","mouse"===Rt),rt.classList.toggle("cdk-program-focused","program"===Rt)}_setOrigin(rt,Rt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=rt,this._originFromTouchInteraction="touch"===rt&&Rt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(rt,Rt){const St=this._elementInfo.get(Rt),gn=(0,v.sA)(rt);!St||!St.checkChildren&&Rt!==gn||this._originChanged(Rt,this._getFocusOrigin(gn),St)}_onBlur(rt,Rt){const St=this._elementInfo.get(Rt);!St||St.checkChildren&&rt.relatedTarget instanceof Node&&Rt.contains(rt.relatedTarget)||(this._setClasses(Rt),this._emitOrigin(St,null))}_emitOrigin(rt,Rt){rt.subject.observers.length&&this._ngZone.run(()=>rt.subject.next(Rt))}_registerGlobalListeners(rt){if(!this._platform.isBrowser)return;const Rt=rt.rootNode,St=this._rootNodeFocusListenerCount.get(Rt)||0;St||this._ngZone.runOutsideAngular(()=>{Rt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Rt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(Rt,St+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,I.R)(this._stopInputModalityDetector)).subscribe(gn=>{this._setOrigin(gn,!0)}))}_removeGlobalListeners(rt){const Rt=rt.rootNode;if(this._rootNodeFocusListenerCount.has(Rt)){const St=this._rootNodeFocusListenerCount.get(Rt);St>1?this._rootNodeFocusListenerCount.set(Rt,St-1):(Rt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Rt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(Rt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(rt,Rt,St){this._setClasses(rt,Rt),this._emitOrigin(St,Rt),this._lastFocusOrigin=Rt}_getClosestElementsInfo(rt){const Rt=[];return this._elementInfo.forEach((St,gn)=>{(gn===rt||St.checkChildren&&gn.contains(rt))&&Rt.push([gn,St])}),Rt}_isLastInteractionFromInputLabel(rt){const{_mostRecentTarget:Rt,mostRecentModality:St}=this._inputModalityDetector;if("mouse"!==St||!Rt||Rt===rt||"INPUT"!==rt.nodeName&&"TEXTAREA"!==rt.nodeName||rt.disabled)return!1;const gn=rt.labels;if(gn)for(let Ze=0;Ze{class nt{constructor(rt,Rt){this._elementRef=rt,this._focusMonitor=Rt,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const rt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(rt,1===rt.nodeType&&rt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Rt=>{this._focusOrigin=Rt,this.cdkFocusChange.emit(Rt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.Y36(i.SBq),i.Y36(jt))},nt.\u0275dir=i.lG2({type:nt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),nt})();const K="cdk-high-contrast-black-on-white",w="cdk-high-contrast-white-on-black",J="cdk-high-contrast-active";let Te=(()=>{class nt{constructor(rt,Rt){this._platform=rt,this._document=Rt,this._breakpointSubscription=(0,i.f3M)(Ce.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const rt=this._document.createElement("div");rt.style.backgroundColor="rgb(1,2,3)",rt.style.position="absolute",this._document.body.appendChild(rt);const Rt=this._document.defaultView||window,St=Rt&&Rt.getComputedStyle?Rt.getComputedStyle(rt):null,gn=(St&&St.backgroundColor||"").replace(/ /g,"");switch(rt.remove(),gn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const rt=this._document.body.classList;rt.remove(J,K,w),this._hasCheckedHighContrastMode=!0;const Rt=this.getHighContrastMode();1===Rt?rt.add(J,K):2===Rt&&rt.add(J,w)}}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.LFG(v.t4),i.LFG(t.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),zt=(()=>{class nt{constructor(rt){rt._applyBodyHighContrastModeCssClasses()}}return nt.\u0275fac=function(rt){return new(rt||nt)(i.LFG(Te))},nt.\u0275mod=i.oAB({type:nt}),nt.\u0275inj=i.cJS({imports:[ge.Q8]}),nt})()},9388:(Ot,be,a)=>{a.d(be,{Is:()=>Q,vT:()=>A});var t=a(5879),i=a(6814);const v=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function d(){return(0,t.f3M)(i.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Q=(()=>{class S{constructor(V){this.value="ltr",this.change=new t.vpe,V&&(this.value=function L(S){const N=S?.toLowerCase()||"";return"auto"===N&&typeof navigator<"u"&&navigator?.language?s.test(navigator.language)?"rtl":"ltr":"rtl"===N?"rtl":"ltr"}((V.body?V.body.dir:null)||(V.documentElement?V.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return S.\u0275fac=function(V){return new(V||S)(t.LFG(v,8))},S.\u0275prov=t.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),A=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({}),S})()},342:(Ot,be,a)=>{a.d(be,{Iq:()=>Q,TU:()=>d});var t=a(6814),i=a(5879);class v{constructor(A,S){this._document=S;const N=this._textarea=this._document.createElement("textarea"),V=N.style;V.position="fixed",V.top=V.opacity="0",V.left="-999em",N.setAttribute("aria-hidden","true"),N.value=A,N.readOnly=!0,this._document.body.appendChild(N)}copy(){const A=this._textarea;let S=!1;try{if(A){const N=this._document.activeElement;A.select(),A.setSelectionRange(0,A.value.length),S=this._document.execCommand("copy"),N&&N.focus()}}catch{}return S}destroy(){const A=this._textarea;A&&(A.remove(),this._textarea=void 0)}}let d=(()=>{class Y{constructor(S){this._document=S}copy(S){const N=this.beginCopy(S),V=N.copy();return N.destroy(),V}beginCopy(S){return new v(S,this._document)}}return Y.\u0275fac=function(S){return new(S||Y)(i.LFG(t.K0))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),Q=(()=>{class Y{}return Y.\u0275fac=function(S){return new(S||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({}),Y})()},2495:(Ot,be,a)=>{a.d(be,{Eq:()=>s,HM:()=>L,Ig:()=>i,fI:()=>Q,su:()=>v,t6:()=>d});var t=a(5879);function i(A){return null!=A&&"false"!=`${A}`}function v(A,S=0){return d(A)?Number(A):S}function d(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}function s(A){return Array.isArray(A)?A:[A]}function L(A){return null==A?"":"string"==typeof A?A:`${A}px`}function Q(A){return A instanceof t.SBq?A.nativeElement:A}},6028:(Ot,be,a)=>{a.d(be,{A:()=>Ft,JH:()=>Z,JU:()=>L,K5:()=>s,Ku:()=>U,LH:()=>ge,L_:()=>V,MW:()=>st,Mf:()=>v,SV:()=>Ce,Sd:()=>I,VM:()=>M,Vb:()=>zi,Z:()=>yn,ZH:()=>i,aO:()=>kt,b2:()=>Xo,hY:()=>N,jx:()=>Q,oh:()=>k,uR:()=>e,xE:()=>x,zL:()=>Y});const i=8,v=9,s=13,L=16,Q=17,Y=18,N=27,V=32,U=33,M=34,e=35,I=36,k=37,ge=38,Ce=39,Z=40,x=48,kt=57,Ft=65,yn=90,st=91,Xo=224;function zi(An,...bi){return bi.length?bi.some(Si=>An[Si]):An.altKey||An.shiftKey||An.ctrlKey||An.metaKey}},1088:(Ot,be,a)=>{a.d(be,{Yg:()=>Z,vx:()=>k,xu:()=>M});var t=a(5879),i=a(2495),v=a(8645),d=a(2572),s=a(5211),L=a(5592),Q=a(8180),Y=a(836),A=a(3620),S=a(7398),N=a(7921),V=a(9773),U=a(2831);let M=(()=>{class O{}return O.\u0275fac=function(x){return new(x||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({}),O})();const e=new Set;let I,k=(()=>{class O{constructor(x,de){this._platform=x,this._nonce=de,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ce}matchMedia(x){return(this._platform.WEBKIT||this._platform.BLINK)&&function ge(O,P){if(!e.has(O))try{I||(I=document.createElement("style"),P&&(I.nonce=P),I.setAttribute("type","text/css"),document.head.appendChild(I)),I.sheet&&(I.sheet.insertRule(`@media ${O} {body{ }}`,0),e.add(O))}catch(x){console.error(x)}}(x,this._nonce),this._matchMedia(x)}}return O.\u0275fac=function(x){return new(x||O)(t.LFG(U.t4),t.LFG(t.Ojb,8))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();function Ce(O){return{matches:"all"===O||""===O,media:O,addListener:()=>{},removeListener:()=>{}}}let Z=(()=>{class O{constructor(x,de){this._mediaMatcher=x,this._zone=de,this._queries=new Map,this._destroySubject=new v.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(x){return F((0,i.Eq)(x)).some(ue=>this._registerQuery(ue).mql.matches)}observe(x){const ue=F((0,i.Eq)(x)).map(me=>this._registerQuery(me).observable);let j=(0,d.a)(ue);return j=(0,s.z)(j.pipe((0,Q.q)(1)),j.pipe((0,Y.T)(1),(0,A.b)(0))),j.pipe((0,S.U)(me=>{const re={matches:!1,breakpoints:{}};return me.forEach(({matches:he,query:Me})=>{re.matches=re.matches||he,re.breakpoints[Me]=he}),re}))}_registerQuery(x){if(this._queries.has(x))return this._queries.get(x);const de=this._mediaMatcher.matchMedia(x),j={observable:new L.y(me=>{const re=he=>this._zone.run(()=>me.next(he));return de.addListener(re),()=>{de.removeListener(re)}}).pipe((0,N.O)(de),(0,S.U)(({matches:me})=>({query:x,matches:me})),(0,V.R)(this._destroySubject)),mql:de};return this._queries.set(x,j),j}}return O.\u0275fac=function(x){return new(x||O)(t.LFG(k),t.LFG(t.R0b))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();function F(O){return O.map(P=>P.split(",")).reduce((P,x)=>P.concat(x)).map(P=>P.trim())}},7131:(Ot,be,a)=>{a.d(be,{Q8:()=>s});var t=a(5879);let i=(()=>{class L{create(Y){return typeof MutationObserver>"u"?null:new MutationObserver(Y)}}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),s=(()=>{class L{}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[i]}),L})()},9594:(Ot,be,a)=>{a.d(be,{Iu:()=>It,U8:()=>We,X_:()=>x,aV:()=>_n,pI:()=>Ye,tR:()=>de,xu:()=>Nt});var t=a(532),i=a(6814),v=a(5879),d=a(2495),s=a(2831),L=a(2181),Q=a(8180),Y=a(9773),A=a(812),S=a(9388),N=a(8484),V=a(8645),U=a(7394),M=a(3019),e=a(6028);const I=(0,s.Mq)();class k{constructor(te,ae){this._viewportRuler=te,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const te=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=te.style.left||"",this._previousHTMLStyles.top=te.style.top||"",te.style.left=(0,d.HM)(-this._previousScrollPosition.left),te.style.top=(0,d.HM)(-this._previousScrollPosition.top),te.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const te=this._document.documentElement,De=te.style,Ge=this._document.body.style,Ct=De.scrollBehavior||"",sn=Ge.scrollBehavior||"";this._isEnabled=!1,De.left=this._previousHTMLStyles.left,De.top=this._previousHTMLStyles.top,te.classList.remove("cdk-global-scrollblock"),I&&(De.scrollBehavior=Ge.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),I&&(De.scrollBehavior=Ct,Ge.scrollBehavior=sn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,De=this._viewportRuler.getViewportSize();return ae.scrollHeight>De.height||ae.scrollWidth>De.width}}class Ce{constructor(te,ae,De,Ge){this._scrollDispatcher=te,this._ngZone=ae,this._viewportRuler=De,this._config=Ge,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(te){this._overlayRef=te}enable(){if(this._scrollSubscription)return;const te=this._scrollDispatcher.scrolled(0).pipe((0,L.h)(ae=>!ae||!this._overlayRef.overlayElement.contains(ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=te.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=te.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Z{enable(){}disable(){}attach(){}}function F(xe,te){return te.some(ae=>xe.bottomae.bottom||xe.rightae.right)}function R(xe,te){return te.some(ae=>xe.topae.bottom||xe.leftae.right)}class O{constructor(te,ae,De,Ge){this._scrollDispatcher=te,this._viewportRuler=ae,this._ngZone=De,this._config=Ge,this._scrollSubscription=null}attach(te){this._overlayRef=te}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:De,height:Ge}=this._viewportRuler.getViewportSize();F(ae,[{width:De,height:Ge,bottom:Ge,right:De,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 P=(()=>{class xe{constructor(ae,De,Ge,Ct){this._scrollDispatcher=ae,this._viewportRuler=De,this._ngZone=Ge,this.noop=()=>new Z,this.close=sn=>new Ce(this._scrollDispatcher,this._ngZone,this._viewportRuler,sn),this.block=()=>new k(this._viewportRuler,this._document),this.reposition=sn=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,sn),this._document=Ct}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(t.mF),v.LFG(t.rL),v.LFG(v.R0b),v.LFG(i.K0))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class x{constructor(te){if(this.scrollStrategy=new Z,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,te){const ae=Object.keys(te);for(const De of ae)void 0!==te[De]&&(this[De]=te[De])}}}class de{constructor(te,ae,De,Ge,Ct){this.offsetX=De,this.offsetY=Ge,this.panelClass=Ct,this.originX=te.originX,this.originY=te.originY,this.overlayX=ae.overlayX,this.overlayY=ae.overlayY}}class j{constructor(te,ae){this.connectionPair=te,this.scrollableViewProperties=ae}}let he=(()=>{class xe{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const De=this._attachedOverlays.indexOf(ae);De>-1&&this._attachedOverlays.splice(De,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(i.K0))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Me=(()=>{class xe extends he{constructor(ae,De){super(ae),this._ngZone=De,this._keydownListener=Ge=>{const Ct=this._attachedOverlays;for(let sn=Ct.length-1;sn>-1;sn--)if(Ct[sn]._keydownEvents.observers.length>0){const yn=Ct[sn]._keydownEvents;this._ngZone?this._ngZone.run(()=>yn.next(Ge)):yn.next(Ge);break}}}add(ae){super.add(ae),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(i.K0),v.LFG(v.R0b,8))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Oe=(()=>{class xe extends he{constructor(ae,De,Ge){super(ae),this._platform=De,this._ngZone=Ge,this._cursorStyleIsSet=!1,this._pointerDownListener=Ct=>{this._pointerDownEventTarget=(0,s.sA)(Ct)},this._clickListener=Ct=>{const sn=(0,s.sA)(Ct),yn="click"===Ct.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:sn;this._pointerDownEventTarget=null;const st=this._attachedOverlays.slice();for(let it=st.length-1;it>-1;it--){const lt=st[it];if(lt._outsidePointerEvents.observers.length<1||!lt.hasAttached())continue;if(lt.overlayElement.contains(sn)||lt.overlayElement.contains(yn))break;const Pt=lt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Pt.next(Ct)):Pt.next(Ct)}}}add(ae){if(super.add(ae),!this._isAttached){const De=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(De)):this._addEventListeners(De),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=De.style.cursor,De.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(i.K0),v.LFG(s.t4),v.LFG(v.R0b,8))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),kt=(()=>{class xe{constructor(ae,De){this._platform=De,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const Ge=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Ct=0;Ctthis._backdropClick.next(Pt),this._backdropTransitionendHandler=Pt=>{this._disposeBackdrop(Pt.target)},this._keydownEvents=new V.x,this._outsidePointerEvents=new V.x,Ge.scrollStrategy&&(this._scrollStrategy=Ge.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ge.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(te){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(te);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Q.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),"function"==typeof ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const te=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),te}dispose(){const te=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,te&&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(te){te!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=te,this.hasAttached()&&(te.attach(this),this.updatePosition()))}updateSize(te){this._config={...this._config,...te},this._updateElementSize()}setDirection(te){this._config={...this._config,direction:te},this._updateElementDirection()}addPanelClass(te){this._pane&&this._toggleClasses(this._pane,te,!0)}removePanelClass(te){this._pane&&this._toggleClasses(this._pane,te,!1)}getDirection(){const te=this._config.direction;return te?"string"==typeof te?te:te.value:"ltr"}updateScrollStrategy(te){te!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=te,this.hasAttached()&&(te.attach(this),te.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const te=this._pane.style;te.width=(0,d.HM)(this._config.width),te.height=(0,d.HM)(this._config.height),te.minWidth=(0,d.HM)(this._config.minWidth),te.minHeight=(0,d.HM)(this._config.minHeight),te.maxWidth=(0,d.HM)(this._config.maxWidth),te.maxHeight=(0,d.HM)(this._config.maxHeight)}_togglePointerEvents(te){this._pane.style.pointerEvents=te?"":"none"}_attachBackdrop(){const te="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(te)})}):this._backdropElement.classList.add(te)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const te=this._backdropElement;if(te){if(this._animationsDisabled)return void this._disposeBackdrop(te);te.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{te.addEventListener("transitionend",this._backdropTransitionendHandler)}),te.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(te)},500))}}_toggleClasses(te,ae,De){const Ge=(0,d.Eq)(ae||[]).filter(Ct=>!!Ct);Ge.length&&(De?te.classList.add(...Ge):te.classList.remove(...Ge))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const te=this._ngZone.onStable.pipe((0,Y.R)((0,M.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()),te.unsubscribe())})})}_disposeScrollStrategy(){const te=this._scrollStrategy;te&&(te.disable(),te.detach&&te.detach())}_disposeBackdrop(te){te&&(te.removeEventListener("click",this._backdropClickHandler),te.removeEventListener("transitionend",this._backdropTransitionendHandler),te.remove(),this._backdropElement===te&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Tt="cdk-overlay-connected-position-bounding-box",gt=/([A-Za-z%]+)$/;class _t{get positions(){return this._preferredPositions}constructor(te,ae,De,Ge,Ct){this._viewportRuler=ae,this._document=De,this._platform=Ge,this._overlayContainer=Ct,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new V.x,this._resizeSubscription=U.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(te)}attach(te){this._validatePositions(),te.hostElement.classList.add(Tt),this._overlayRef=te,this._boundingBox=te.hostElement,this._pane=te.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const te=this._originRect,ae=this._overlayRect,De=this._viewportRect,Ge=this._containerRect,Ct=[];let sn;for(let yn of this._preferredPositions){let st=this._getOriginPoint(te,Ge,yn),it=this._getOverlayPoint(st,ae,yn),lt=this._getOverlayFit(it,ae,De,yn);if(lt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(yn,st);this._canFitWithFlexibleDimensions(lt,it,De)?Ct.push({position:yn,origin:st,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(st,yn)}):(!sn||sn.overlayFit.visibleAreast&&(st=lt,yn=it)}return this._isPushed=!1,void this._applyPosition(yn.position,yn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(sn.position,sn.originPoint);this._applyPosition(sn.position,sn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ft(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Tt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const te=this._lastPosition;if(te){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,te);this._applyPosition(te,ae)}else this.apply()}withScrollableContainers(te){return this._scrollables=te,this}withPositions(te){return this._preferredPositions=te,-1===te.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(te){return this._viewportMargin=te,this}withFlexibleDimensions(te=!0){return this._hasFlexibleDimensions=te,this}withGrowAfterOpen(te=!0){return this._growAfterOpen=te,this}withPush(te=!0){return this._canPush=te,this}withLockedPosition(te=!0){return this._positionLocked=te,this}setOrigin(te){return this._origin=te,this}withDefaultOffsetX(te){return this._offsetX=te,this}withDefaultOffsetY(te){return this._offsetY=te,this}withTransformOriginOn(te){return this._transformOriginSelector=te,this}_getOriginPoint(te,ae,De){let Ge,Ct;if("center"==De.originX)Ge=te.left+te.width/2;else{const sn=this._isRtl()?te.right:te.left,yn=this._isRtl()?te.left:te.right;Ge="start"==De.originX?sn:yn}return ae.left<0&&(Ge-=ae.left),Ct="center"==De.originY?te.top+te.height/2:"top"==De.originY?te.top:te.bottom,ae.top<0&&(Ct-=ae.top),{x:Ge,y:Ct}}_getOverlayPoint(te,ae,De){let Ge,Ct;return Ge="center"==De.overlayX?-ae.width/2:"start"===De.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Ct="center"==De.overlayY?-ae.height/2:"top"==De.overlayY?0:-ae.height,{x:te.x+Ge,y:te.y+Ct}}_getOverlayFit(te,ae,De,Ge){const Ct=bn(ae);let{x:sn,y:yn}=te,st=this._getOffset(Ge,"x"),it=this._getOffset(Ge,"y");st&&(sn+=st),it&&(yn+=it);let wt=0-yn,Vt=yn+Ct.height-De.height,jt=this._subtractOverflows(Ct.width,0-sn,sn+Ct.width-De.width),Ke=this._subtractOverflows(Ct.height,wt,Vt),K=jt*Ke;return{visibleArea:K,isCompletelyWithinViewport:Ct.width*Ct.height===K,fitsInViewportVertically:Ke===Ct.height,fitsInViewportHorizontally:jt==Ct.width}}_canFitWithFlexibleDimensions(te,ae,De){if(this._hasFlexibleDimensions){const Ge=De.bottom-ae.y,Ct=De.right-ae.x,sn=rn(this._overlayRef.getConfig().minHeight),yn=rn(this._overlayRef.getConfig().minWidth);return(te.fitsInViewportVertically||null!=sn&&sn<=Ge)&&(te.fitsInViewportHorizontally||null!=yn&&yn<=Ct)}return!1}_pushOverlayOnScreen(te,ae,De){if(this._previousPushAmount&&this._positionLocked)return{x:te.x+this._previousPushAmount.x,y:te.y+this._previousPushAmount.y};const Ge=bn(ae),Ct=this._viewportRect,sn=Math.max(te.x+Ge.width-Ct.width,0),yn=Math.max(te.y+Ge.height-Ct.height,0),st=Math.max(Ct.top-De.top-te.y,0),it=Math.max(Ct.left-De.left-te.x,0);let lt=0,Pt=0;return lt=Ge.width<=Ct.width?it||-sn:te.xjt&&!this._isInitialRender&&!this._growAfterOpen&&(sn=te.y-jt/2)}if("end"===ae.overlayX&&!Ge||"start"===ae.overlayX&&Ge)wt=De.width-te.x+this._viewportMargin,lt=te.x-this._viewportMargin;else if("start"===ae.overlayX&&!Ge||"end"===ae.overlayX&&Ge)Pt=te.x,lt=De.right-te.x;else{const Vt=Math.min(De.right-te.x+De.left,te.x),jt=this._lastBoundingBoxSize.width;lt=2*Vt,Pt=te.x-Vt,lt>jt&&!this._isInitialRender&&!this._growAfterOpen&&(Pt=te.x-jt/2)}return{top:sn,left:Pt,bottom:yn,right:wt,width:lt,height:Ct}}_setBoundingBoxStyles(te,ae){const De=this._calculateBoundingBoxRect(te,ae);!this._isInitialRender&&!this._growAfterOpen&&(De.height=Math.min(De.height,this._lastBoundingBoxSize.height),De.width=Math.min(De.width,this._lastBoundingBoxSize.width));const Ge={};if(this._hasExactPosition())Ge.top=Ge.left="0",Ge.bottom=Ge.right=Ge.maxHeight=Ge.maxWidth="",Ge.width=Ge.height="100%";else{const Ct=this._overlayRef.getConfig().maxHeight,sn=this._overlayRef.getConfig().maxWidth;Ge.height=(0,d.HM)(De.height),Ge.top=(0,d.HM)(De.top),Ge.bottom=(0,d.HM)(De.bottom),Ge.width=(0,d.HM)(De.width),Ge.left=(0,d.HM)(De.left),Ge.right=(0,d.HM)(De.right),Ge.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",Ge.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Ct&&(Ge.maxHeight=(0,d.HM)(Ct)),sn&&(Ge.maxWidth=(0,d.HM)(sn))}this._lastBoundingBoxSize=De,Ft(this._boundingBox.style,Ge)}_resetBoundingBoxStyles(){Ft(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ft(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(te,ae){const De={},Ge=this._hasExactPosition(),Ct=this._hasFlexibleDimensions,sn=this._overlayRef.getConfig();if(Ge){const lt=this._viewportRuler.getViewportScrollPosition();Ft(De,this._getExactOverlayY(ae,te,lt)),Ft(De,this._getExactOverlayX(ae,te,lt))}else De.position="static";let yn="",st=this._getOffset(ae,"x"),it=this._getOffset(ae,"y");st&&(yn+=`translateX(${st}px) `),it&&(yn+=`translateY(${it}px)`),De.transform=yn.trim(),sn.maxHeight&&(Ge?De.maxHeight=(0,d.HM)(sn.maxHeight):Ct&&(De.maxHeight="")),sn.maxWidth&&(Ge?De.maxWidth=(0,d.HM)(sn.maxWidth):Ct&&(De.maxWidth="")),Ft(this._pane.style,De)}_getExactOverlayY(te,ae,De){let Ge={top:"",bottom:""},Ct=this._getOverlayPoint(ae,this._overlayRect,te);return this._isPushed&&(Ct=this._pushOverlayOnScreen(Ct,this._overlayRect,De)),"bottom"===te.overlayY?Ge.bottom=this._document.documentElement.clientHeight-(Ct.y+this._overlayRect.height)+"px":Ge.top=(0,d.HM)(Ct.y),Ge}_getExactOverlayX(te,ae,De){let sn,Ge={left:"",right:""},Ct=this._getOverlayPoint(ae,this._overlayRect,te);return this._isPushed&&(Ct=this._pushOverlayOnScreen(Ct,this._overlayRect,De)),sn=this._isRtl()?"end"===te.overlayX?"left":"right":"end"===te.overlayX?"right":"left","right"===sn?Ge.right=this._document.documentElement.clientWidth-(Ct.x+this._overlayRect.width)+"px":Ge.left=(0,d.HM)(Ct.x),Ge}_getScrollVisibility(){const te=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),De=this._scrollables.map(Ge=>Ge.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:R(te,De),isOriginOutsideView:F(te,De),isOverlayClipped:R(ae,De),isOverlayOutsideView:F(ae,De)}}_subtractOverflows(te,...ae){return ae.reduce((De,Ge)=>De-Math.max(Ge,0),te)}_getNarrowedViewportRect(){const te=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,De=this._viewportRuler.getViewportScrollPosition();return{top:De.top+this._viewportMargin,left:De.left+this._viewportMargin,right:De.left+te-this._viewportMargin,bottom:De.top+ae-this._viewportMargin,width:te-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(te,ae){return"x"===ae?null==te.offsetX?this._offsetX:te.offsetX:null==te.offsetY?this._offsetY:te.offsetY}_validatePositions(){}_addPanelClasses(te){this._pane&&(0,d.Eq)(te).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(te=>{this._pane.classList.remove(te)}),this._appliedPanelClasses=[])}_getOriginRect(){const te=this._origin;if(te instanceof v.SBq)return te.nativeElement.getBoundingClientRect();if(te instanceof Element)return te.getBoundingClientRect();const ae=te.width||0,De=te.height||0;return{top:te.y,bottom:te.y+De,left:te.x,right:te.x+ae,height:De,width:ae}}}function Ft(xe,te){for(let ae in te)te.hasOwnProperty(ae)&&(xe[ae]=te[ae]);return xe}function rn(xe){if("number"!=typeof xe&&null!=xe){const[te,ae]=xe.split(gt);return ae&&"px"!==ae?null:parseFloat(te)}return xe||null}function bn(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const yt="cdk-global-overlay-wrapper";class je{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(te){const ae=te.getConfig();this._overlayRef=te,this._width&&!ae.width&&te.updateSize({width:this._width}),this._height&&!ae.height&&te.updateSize({height:this._height}),te.hostElement.classList.add(yt),this._isDisposed=!1}top(te=""){return this._bottomOffset="",this._topOffset=te,this._alignItems="flex-start",this}left(te=""){return this._xOffset=te,this._xPosition="left",this}bottom(te=""){return this._topOffset="",this._bottomOffset=te,this._alignItems="flex-end",this}right(te=""){return this._xOffset=te,this._xPosition="right",this}start(te=""){return this._xOffset=te,this._xPosition="start",this}end(te=""){return this._xOffset=te,this._xPosition="end",this}width(te=""){return this._overlayRef?this._overlayRef.updateSize({width:te}):this._width=te,this}height(te=""){return this._overlayRef?this._overlayRef.updateSize({height:te}):this._height=te,this}centerHorizontally(te=""){return this.left(te),this._xPosition="center",this}centerVertically(te=""){return this.top(te),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const te=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,De=this._overlayRef.getConfig(),{width:Ge,height:Ct,maxWidth:sn,maxHeight:yn}=De,st=!("100%"!==Ge&&"100vw"!==Ge||sn&&"100%"!==sn&&"100vw"!==sn),it=!("100%"!==Ct&&"100vh"!==Ct||yn&&"100%"!==yn&&"100vh"!==yn),lt=this._xPosition,Pt=this._xOffset,wt="rtl"===this._overlayRef.getConfig().direction;let Vt="",jt="",Ke="";st?Ke="flex-start":"center"===lt?(Ke="center",wt?jt=Pt:Vt=Pt):wt?"left"===lt||"end"===lt?(Ke="flex-end",Vt=Pt):("right"===lt||"start"===lt)&&(Ke="flex-start",jt=Pt):"left"===lt||"start"===lt?(Ke="flex-start",Vt=Pt):("right"===lt||"end"===lt)&&(Ke="flex-end",jt=Pt),te.position=this._cssPosition,te.marginLeft=st?"0":Vt,te.marginTop=it?"0":this._topOffset,te.marginBottom=this._bottomOffset,te.marginRight=st?"0":jt,ae.justifyContent=Ke,ae.alignItems=it?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const te=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,De=ae.style;ae.classList.remove(yt),De.justifyContent=De.alignItems=te.marginTop=te.marginBottom=te.marginLeft=te.marginRight=te.position="",this._overlayRef=null,this._isDisposed=!0}}let Ut=(()=>{class xe{constructor(ae,De,Ge,Ct){this._viewportRuler=ae,this._document=De,this._platform=Ge,this._overlayContainer=Ct}global(){return new je}flexibleConnectedTo(ae){return new _t(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(t.rL),v.LFG(i.K0),v.LFG(s.t4),v.LFG(kt))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Xt=0,_n=(()=>{class xe{constructor(ae,De,Ge,Ct,sn,yn,st,it,lt,Pt,wt,Vt){this.scrollStrategies=ae,this._overlayContainer=De,this._componentFactoryResolver=Ge,this._positionBuilder=Ct,this._keyboardDispatcher=sn,this._injector=yn,this._ngZone=st,this._document=it,this._directionality=lt,this._location=Pt,this._outsideClickDispatcher=wt,this._animationsModuleType=Vt}create(ae){const De=this._createHostElement(),Ge=this._createPaneElement(De),Ct=this._createPortalOutlet(Ge),sn=new x(ae);return sn.direction=sn.direction||this._directionality.value,new It(Ct,De,Ge,sn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const De=this._document.createElement("div");return De.id="cdk-overlay-"+Xt++,De.classList.add("cdk-overlay-pane"),ae.appendChild(De),De}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new N.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.LFG(P),v.LFG(kt),v.LFG(v._Vd),v.LFG(Ut),v.LFG(Me),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(i.K0),v.LFG(S.Is),v.LFG(i.Ye),v.LFG(Oe),v.LFG(v.QbO,8))},xe.\u0275prov=v.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const On=[{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"}],Jt=new v.OlP("cdk-connected-overlay-scroll-strategy");let Nt=(()=>{class xe{constructor(ae){this.elementRef=ae}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.Y36(v.SBq))},xe.\u0275dir=v.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),xe})(),Ye=(()=>{class xe{get offsetX(){return this._offsetX}set offsetX(ae){this._offsetX=ae,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ae){this._offsetY=ae,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,d.Ig)(ae)}get lockPosition(){return this._lockPosition}set lockPosition(ae){this._lockPosition=(0,d.Ig)(ae)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ae){this._flexibleDimensions=(0,d.Ig)(ae)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ae){this._growAfterOpen=(0,d.Ig)(ae)}get push(){return this._push}set push(ae){this._push=(0,d.Ig)(ae)}constructor(ae,De,Ge,Ct,sn){this._overlay=ae,this._dir=sn,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=U.w0.EMPTY,this._attachSubscription=U.w0.EMPTY,this._detachSubscription=U.w0.EMPTY,this._positionSubscription=U.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new N.UE(De,Ge),this._scrollStrategyFactory=Ct,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ae){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ae.origin&&this.open&&this._position.apply()),ae.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=On);const ae=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ae.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ae.detachments().subscribe(()=>this.detach.emit()),ae.keydownEvents().subscribe(De=>{this.overlayKeydown.next(De),De.keyCode===e.hY&&!this.disableClose&&!(0,e.Vb)(De)&&(De.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(De=>{this.overlayOutsideClick.next(De)})}_buildConfig(){const ae=this._position=this.positionStrategy||this._createPositionStrategy(),De=new x({direction:this._dir,positionStrategy:ae,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(De.width=this.width),(this.height||0===this.height)&&(De.height=this.height),(this.minWidth||0===this.minWidth)&&(De.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(De.minHeight=this.minHeight),this.backdropClass&&(De.backdropClass=this.backdropClass),this.panelClass&&(De.panelClass=this.panelClass),De}_updatePositionStrategy(ae){const De=this.positions.map(Ge=>({originX:Ge.originX,originY:Ge.originY,overlayX:Ge.overlayX,overlayY:Ge.overlayY,offsetX:Ge.offsetX||this.offsetX,offsetY:Ge.offsetY||this.offsetY,panelClass:Ge.panelClass||void 0}));return ae.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(De).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ae=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ae),ae}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Nt?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(ae=>{this.backdropClick.emit(ae)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,A.o)(()=>this.positionChange.observers.length>0)).subscribe(ae=>{this.positionChange.emit(ae),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(ae){return new(ae||xe)(v.Y36(_n),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Jt),v.Y36(S.Is,8))},xe.\u0275dir=v.lG2({type:xe,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"],standalone:!0,features:[v.TTD]}),xe})();const Pe={provide:Jt,deps:[_n],useFactory:function He(xe){return()=>xe.scrollStrategies.reposition()}};let We=(()=>{class xe{}return xe.\u0275fac=function(ae){return new(ae||xe)},xe.\u0275mod=v.oAB({type:xe}),xe.\u0275inj=v.cJS({providers:[_n,Pe],imports:[S.vT,N.eL,t.Cl,t.Cl]}),xe})()},2831:(Ot,be,a)=>{a.d(be,{Mq:()=>M,Oy:()=>F,_i:()=>e,i$:()=>N,kV:()=>ge,sA:()=>Z,t4:()=>d,ud:()=>s});var t=a(5879),i=a(6814);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}let A,V,U,I,d=(()=>{class R{constructor(P){this._platformId=P,this.isBrowser=this._platformId?(0,i.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&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return R.\u0275fac=function(P){return new(P||R)(t.LFG(t.Lbi))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),s=(()=>{class R{}return R.\u0275fac=function(P){return new(P||R)},R.\u0275mod=t.oAB({type:R}),R.\u0275inj=t.cJS({}),R})();function N(R){return function S(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?R:!!R.capture}function M(){if(null==U){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return U=!1,U;if("scrollBehavior"in document.documentElement.style)U=!0;else{const R=Element.prototype.scrollTo;U=!!R&&!/\{\s*\[native code\]\s*\}/.test(R.toString())}}return U}function e(){if("object"!=typeof document||!document)return 0;if(null==V){const R=document.createElement("div"),O=R.style;R.dir="rtl",O.width="1px",O.overflow="auto",O.visibility="hidden",O.pointerEvents="none",O.position="absolute";const P=document.createElement("div"),x=P.style;x.width="2px",x.height="1px",R.appendChild(P),document.body.appendChild(R),V=0,0===R.scrollLeft&&(R.scrollLeft=1,V=0===R.scrollLeft?1:2),R.remove()}return V}function ge(R){if(function k(){if(null==I){const R=typeof document<"u"?document.head:null;I=!(!R||!R.createShadowRoot&&!R.attachShadow)}return I}()){const O=R.getRootNode?R.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&O instanceof ShadowRoot)return O}return null}function Z(R){return R.composedPath?R.composedPath()[0]:R.target}function F(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(Ot,be,a)=>{a.d(be,{C5:()=>S,Pl:()=>Ce,UE:()=>N,eL:()=>F,en:()=>U,u0:()=>e});var t=a(5879),i=a(6814);class A{attach(P){return this._attachedHost=P,P.attach(this)}detach(){let P=this._attachedHost;null!=P&&(this._attachedHost=null,P.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(P){this._attachedHost=P}}class S extends A{constructor(P,x,de,ue,j){super(),this.component=P,this.viewContainerRef=x,this.injector=de,this.componentFactoryResolver=ue,this.projectableNodes=j}}class N extends A{constructor(P,x,de,ue){super(),this.templateRef=P,this.viewContainerRef=x,this.context=de,this.injector=ue}get origin(){return this.templateRef.elementRef}attach(P,x=this.context){return this.context=x,super.attach(P)}detach(){return this.context=void 0,super.detach()}}class V extends A{constructor(P){super(),this.element=P instanceof t.SBq?P.nativeElement:P}}class U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(P){return P instanceof S?(this._attachedPortal=P,this.attachComponentPortal(P)):P instanceof N?(this._attachedPortal=P,this.attachTemplatePortal(P)):this.attachDomPortal&&P instanceof V?(this._attachedPortal=P,this.attachDomPortal(P)):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(P){this._disposeFn=P}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class e extends U{constructor(P,x,de,ue,j){super(),this.outletElement=P,this._componentFactoryResolver=x,this._appRef=de,this._defaultInjector=ue,this.attachDomPortal=me=>{const re=me.element,he=this._document.createComment("dom-portal");re.parentNode.insertBefore(he,re),this.outletElement.appendChild(re),this._attachedPortal=me,super.setDisposeFn(()=>{he.parentNode&&he.parentNode.replaceChild(re,he)})},this._document=j}attachComponentPortal(P){const de=(P.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(P.component);let ue;return P.viewContainerRef?(ue=P.viewContainerRef.createComponent(de,P.viewContainerRef.length,P.injector||P.viewContainerRef.injector,P.projectableNodes||void 0),this.setDisposeFn(()=>ue.destroy())):(ue=de.create(P.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(ue.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ue.hostView),ue.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ue)),this._attachedPortal=P,ue}attachTemplatePortal(P){let x=P.viewContainerRef,de=x.createEmbeddedView(P.templateRef,P.context,{injector:P.injector});return de.rootNodes.forEach(ue=>this.outletElement.appendChild(ue)),de.detectChanges(),this.setDisposeFn(()=>{let ue=x.indexOf(de);-1!==ue&&x.remove(ue)}),this._attachedPortal=P,de}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(P){return P.hostView.rootNodes[0]}}let Ce=(()=>{class O extends U{constructor(x,de,ue){super(),this._componentFactoryResolver=x,this._viewContainerRef=de,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=j=>{const me=j.element,re=this._document.createComment("dom-portal");j.setAttachedHost(this),me.parentNode.insertBefore(re,me),this._getRootNode().appendChild(me),this._attachedPortal=j,super.setDisposeFn(()=>{re.parentNode&&re.parentNode.replaceChild(me,re)})},this._document=ue}get portal(){return this._attachedPortal}set portal(x){this.hasAttached()&&!x&&!this._isInitialized||(this.hasAttached()&&super.detach(),x&&super.attach(x),this._attachedPortal=x||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(x){x.setAttachedHost(this);const de=null!=x.viewContainerRef?x.viewContainerRef:this._viewContainerRef,j=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component),me=de.createComponent(j,de.length,x.injector||de.injector,x.projectableNodes||void 0);return de!==this._viewContainerRef&&this._getRootNode().appendChild(me.hostView.rootNodes[0]),super.setDisposeFn(()=>me.destroy()),this._attachedPortal=x,this._attachedRef=me,this.attached.emit(me),me}attachTemplatePortal(x){x.setAttachedHost(this);const de=this._viewContainerRef.createEmbeddedView(x.templateRef,x.context,{injector:x.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=x,this._attachedRef=de,this.attached.emit(de),de}_getRootNode(){const x=this._viewContainerRef.element.nativeElement;return x.nodeType===x.ELEMENT_NODE?x:x.parentNode}}return O.\u0275fac=function(x){return new(x||O)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(i.K0))},O.\u0275dir=t.lG2({type:O,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),O})(),F=(()=>{class O{}return O.\u0275fac=function(x){return new(x||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({}),O})()},532:(Ot,be,a)=>{a.d(be,{xd:()=>gt,ZD:()=>Ye,x0:()=>On,N7:()=>Xt,mF:()=>Ft,Cl:()=>He,rL:()=>et});var t=a(2495),i=a(5879),v=a(8645),d=a(2096),s=a(5592),L=a(2438),Q=a(927),Y=a(6410),A=a(7394),S=a(2664),N=a(3997),V=a(9028),U=a(2181),M=a(9773),e=a(7921),I=a(9384),k=a(4664),ge=a(7081),Ce=a(2831),Z=a(6814),F=a(9388),R=a(3168);class O{}class x extends O{constructor(We){super(),this._data=We}connect(){return(0,S.b)(this._data)?this._data:(0,d.of)(this._data)}disconnect(){}}class ue{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(We,Be,xe,te,ae){We.forEachOperation((De,Ge,Ct)=>{let sn,yn;null==De.previousIndex?(sn=this._insertView(()=>xe(De,Ge,Ct),Ct,Be,te(De)),yn=sn?1:0):null==Ct?(this._detachAndCacheView(Ge,Be),yn=3):(sn=this._moveView(Ge,Ct,Be,te(De)),yn=2),ae&&ae({context:sn?.context,operation:yn,record:De})})}detach(){for(const We of this._viewCache)We.destroy();this._viewCache=[]}_insertView(We,Be,xe,te){const ae=this._insertViewFromCache(Be,xe);if(ae)return void(ae.context.$implicit=te);const De=We();return xe.createEmbeddedView(De.templateRef,De.context,De.index)}_detachAndCacheView(We,Be){const xe=Be.detach(We);this._maybeCacheView(xe,Be)}_moveView(We,Be,xe,te){const ae=xe.get(We);return xe.move(ae,Be),ae.context.$implicit=te,ae}_maybeCacheView(We,Be){if(this._viewCache.length0?ae/this._itemSize:0;if(Be.end>te){const Ct=Math.ceil(xe/this._itemSize),sn=Math.max(0,Math.min(De,te-Ct));De!=sn&&(De=sn,ae=sn*this._itemSize,Be.start=Math.floor(De)),Be.end=Math.max(0,Math.min(te,Be.start+Ct))}const Ge=ae-Be.start*this._itemSize;if(Ge0&&(Be.end=Math.min(te,Be.end+sn),Be.start=Math.max(0,Math.floor(De-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Be),this._viewport.setRenderedContentOffset(this._itemSize*Be.start),this._scrolledIndexChange.next(Math.floor(De))}}function Tt(Pe){return Pe._scrollStrategy}let gt=(()=>{class Pe{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new It(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Be){this._itemSize=(0,t.su)(Be)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Be){this._minBufferPx=(0,t.su)(Be)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Be){this._maxBufferPx=(0,t.su)(Be)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Pe.\u0275fac=function(Be){return new(Be||Pe)},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[i._Bn([{provide:kt,useFactory:Tt,deps:[(0,i.Gpc)(()=>Pe)]}]),i.TTD]}),Pe})(),Ft=(()=>{class Pe{constructor(Be,xe,te){this._ngZone=Be,this._platform=xe,this._scrolled=new v.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=te}register(Be){this.scrollContainers.has(Be)||this.scrollContainers.set(Be,Be.elementScrolled().subscribe(()=>this._scrolled.next(Be)))}deregister(Be){const xe=this.scrollContainers.get(Be);xe&&(xe.unsubscribe(),this.scrollContainers.delete(Be))}scrolled(Be=20){return this._platform.isBrowser?new s.y(xe=>{this._globalSubscription||this._addGlobalListener();const te=Be>0?this._scrolled.pipe((0,V.e)(Be)).subscribe(xe):this._scrolled.subscribe(xe);return this._scrolledCount++,()=>{te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,d.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Be,xe)=>this.deregister(xe)),this._scrolled.complete()}ancestorScrolled(Be,xe){const te=this.getAncestorScrollContainers(Be);return this.scrolled(xe).pipe((0,U.h)(ae=>!ae||te.indexOf(ae)>-1))}getAncestorScrollContainers(Be){const xe=[];return this.scrollContainers.forEach((te,ae)=>{this._scrollableContainsElement(ae,Be)&&xe.push(ae)}),xe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Be,xe){let te=(0,t.fI)(xe),ae=Be.getElementRef().nativeElement;do{if(te==ae)return!0}while(te=te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Be=this._getWindow();return(0,L.R)(Be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.LFG(i.R0b),i.LFG(Ce.t4),i.LFG(Z.K0,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),rn=(()=>{class Pe{constructor(Be,xe,te,ae){this.elementRef=Be,this.scrollDispatcher=xe,this.ngZone=te,this.dir=ae,this._destroyed=new v.x,this._elementScrolled=new s.y(De=>this.ngZone.runOutsideAngular(()=>(0,L.R)(this.elementRef.nativeElement,"scroll").pipe((0,M.R)(this._destroyed)).subscribe(De)))}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(Be){const xe=this.elementRef.nativeElement,te=this.dir&&"rtl"==this.dir.value;null==Be.left&&(Be.left=te?Be.end:Be.start),null==Be.right&&(Be.right=te?Be.start:Be.end),null!=Be.bottom&&(Be.top=xe.scrollHeight-xe.clientHeight-Be.bottom),te&&0!=(0,Ce._i)()?(null!=Be.left&&(Be.right=xe.scrollWidth-xe.clientWidth-Be.left),2==(0,Ce._i)()?Be.left=Be.right:1==(0,Ce._i)()&&(Be.left=Be.right?-Be.right:Be.right)):null!=Be.right&&(Be.left=xe.scrollWidth-xe.clientWidth-Be.right),this._applyScrollToOptions(Be)}_applyScrollToOptions(Be){const xe=this.elementRef.nativeElement;(0,Ce.Mq)()?xe.scrollTo(Be):(null!=Be.top&&(xe.scrollTop=Be.top),null!=Be.left&&(xe.scrollLeft=Be.left))}measureScrollOffset(Be){const xe="left",ae=this.elementRef.nativeElement;if("top"==Be)return ae.scrollTop;if("bottom"==Be)return ae.scrollHeight-ae.clientHeight-ae.scrollTop;const De=this.dir&&"rtl"==this.dir.value;return"start"==Be?Be=De?"right":xe:"end"==Be&&(Be=De?xe:"right"),De&&2==(0,Ce._i)()?Be==xe?ae.scrollWidth-ae.clientWidth-ae.scrollLeft:ae.scrollLeft:De&&1==(0,Ce._i)()?Be==xe?ae.scrollLeft+ae.scrollWidth-ae.clientWidth:-ae.scrollLeft:Be==xe?ae.scrollLeft:ae.scrollWidth-ae.clientWidth-ae.scrollLeft}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.Y36(i.SBq),i.Y36(Ft),i.Y36(i.R0b),i.Y36(F.Is,8))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Pe})(),et=(()=>{class Pe{constructor(Be,xe,te){this._platform=Be,this._change=new v.x,this._changeListener=ae=>{this._change.next(ae)},this._document=te,xe.runOutsideAngular(()=>{if(Be.isBrowser){const ae=this._getWindow();ae.addEventListener("resize",this._changeListener),ae.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Be=this._getWindow();Be.removeEventListener("resize",this._changeListener),Be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Be}getViewportRect(){const Be=this.getViewportScrollPosition(),{width:xe,height:te}=this.getViewportSize();return{top:Be.top,left:Be.left,bottom:Be.top+te,right:Be.left+xe,height:te,width:xe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Be=this._document,xe=this._getWindow(),te=Be.documentElement,ae=te.getBoundingClientRect();return{top:-ae.top||Be.body.scrollTop||xe.scrollY||te.scrollTop||0,left:-ae.left||Be.body.scrollLeft||xe.scrollX||te.scrollLeft||0}}change(Be=20){return Be>0?this._change.pipe((0,V.e)(Be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Be.innerWidth,height:Be.innerHeight}:{width:0,height:0}}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.LFG(Ce.t4),i.LFG(i.R0b),i.LFG(Z.K0,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const Re=new i.OlP("VIRTUAL_SCROLLABLE");let yt=(()=>{class Pe extends rn{constructor(Be,xe,te,ae){super(Be,xe,te,ae)}measureViewportSize(Be){const xe=this.elementRef.nativeElement;return"horizontal"===Be?xe.clientWidth:xe.clientHeight}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.Y36(i.SBq),i.Y36(Ft),i.Y36(i.R0b),i.Y36(F.Is,8))},Pe.\u0275dir=i.lG2({type:Pe,features:[i.qOj]}),Pe})();const Ut=typeof requestAnimationFrame<"u"?Q.Z:Y.E;let Xt=(()=>{class Pe extends yt{get orientation(){return this._orientation}set orientation(Be){this._orientation!==Be&&(this._orientation=Be,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Be){this._appendOnly=(0,t.Ig)(Be)}constructor(Be,xe,te,ae,De,Ge,Ct,sn){super(Be,Ge,te,De),this.elementRef=Be,this._changeDetectorRef=xe,this._scrollStrategy=ae,this.scrollable=sn,this._platform=(0,i.f3M)(Ce.t4),this._detachedSubject=new v.x,this._renderedRangeSubject=new v.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new s.y(yn=>this._scrollStrategy.scrolledIndexChange.subscribe(st=>Promise.resolve().then(()=>this.ngZone.run(()=>yn.next(st))))),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=A.w0.EMPTY,this._viewportChanges=Ct.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,e.O)(null),(0,V.e)(0,Ut)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Be){this.ngZone.runOutsideAngular(()=>{this._forOf=Be,this._forOf.dataStream.pipe((0,M.R)(this._detachedSubject)).subscribe(xe=>{const te=xe.length;te!==this._dataLength&&(this._dataLength=te,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Be){return this.getElementRef().nativeElement.getBoundingClientRect()[Be]}setTotalContentSize(Be){this._totalContentSize!==Be&&(this._totalContentSize=Be,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Be){(function je(Pe,We){return Pe.start==We.start&&Pe.end==We.end})(this._renderedRange,Be)||(this.appendOnly&&(Be={start:0,end:Math.max(this._renderedRange.end,Be.end)}),this._renderedRangeSubject.next(this._renderedRange=Be),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Be,xe="to-start"){Be=this.appendOnly&&"to-start"===xe?0:Be;const ae="horizontal"==this.orientation,De=ae?"X":"Y";let Ct=`translate${De}(${Number((ae&&this.dir&&"rtl"==this.dir.value?-1:1)*Be)}px)`;this._renderedContentOffset=Be,"to-end"===xe&&(Ct+=` translate${De}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ct&&(this._renderedContentTransform=Ct,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Be,xe="auto"){const te={behavior:xe};"horizontal"===this.orientation?te.start=Be:te.top=Be,this.scrollable.scrollTo(te)}scrollToIndex(Be,xe="auto"){this._scrollStrategy.scrollToIndex(Be,xe)}measureScrollOffset(Be){let xe;return xe=this.scrollable==this?te=>super.measureScrollOffset(te):te=>this.scrollable.measureScrollOffset(te),Math.max(0,xe(Be??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Be){let xe;const De="rtl"==this.dir?.value;xe="start"==Be?De?"right":"left":"end"==Be?De?"left":"right":Be||("horizontal"===this.orientation?"left":"top");const Ge=this.scrollable.measureBoundingClientRectWithScrollOffset(xe);return this.elementRef.nativeElement.getBoundingClientRect()[xe]-Ge}measureRenderedContentSize(){const Be=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Be.offsetWidth:Be.offsetHeight}measureRangeSize(Be){return this._forOf?this._forOf.measureRangeSize(Be,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Be){Be&&this._runAfterChangeDetection.push(Be),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 Be=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const xe of Be)xe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(kt,8),i.Y36(F.Is,8),i.Y36(Ft),i.Y36(et),i.Y36(Re,8))},Pe.\u0275cmp=i.Xpm({type:Pe,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Be,xe){if(1&Be&&i.Gf(Me,7),2&Be){let te;i.iGM(te=i.CRH())&&(xe._contentWrapper=te.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Be,xe){2&Be&&i.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===xe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==xe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[i._Bn([{provide:rn,useFactory:(We,Be)=>We||Be,deps:[[new i.FiY,new i.tBr(Re)],Pe]}]),i.qOj,i.jDz],ngContentSelectors:Oe,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Be,xe){1&Be&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA(),i._UZ(3,"div",2)),2&Be&&(i.xp6(3),i.Udp("width",xe._totalContentWidth)("height",xe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-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{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Pe})();function _n(Pe,We,Be){if(!Be.getBoundingClientRect)return 0;const te=Be.getBoundingClientRect();return"horizontal"===Pe?"start"===We?te.left:te.right:"start"===We?te.top:te.bottom}let On=(()=>{class Pe{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Be){this._cdkVirtualForOf=Be,function P(Pe){return Pe&&"function"==typeof Pe.connect&&!(Pe instanceof R.c)}(Be)?this._dataSourceChanges.next(Be):this._dataSourceChanges.next(new x((0,S.b)(Be)?Be:Array.from(Be||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Be){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Be?(xe,te)=>Be(xe+(this._renderedRange?this._renderedRange.start:0),te):void 0}set cdkVirtualForTemplate(Be){Be&&(this._needsUpdate=!0,this._template=Be)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Be){this._viewRepeater.viewCacheSize=(0,t.su)(Be)}constructor(Be,xe,te,ae,De,Ge){this._viewContainerRef=Be,this._template=xe,this._differs=te,this._viewRepeater=ae,this._viewport=De,this.viewChange=new v.x,this._dataSourceChanges=new v.x,this.dataStream=this._dataSourceChanges.pipe((0,e.O)(null),(0,I.G)(),(0,k.w)(([Ct,sn])=>this._changeDataSource(Ct,sn)),(0,ge.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new v.x,this.dataStream.subscribe(Ct=>{this._data=Ct,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,M.R)(this._destroyed)).subscribe(Ct=>{this._renderedRange=Ct,this.viewChange.observers.length&&Ge.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(Be,xe){if(Be.start>=Be.end)return 0;const te=Be.start-this._renderedRange.start,ae=Be.end-Be.start;let De,Ge;for(let Ct=0;Ct-1;Ct--){const sn=this._viewContainerRef.get(Ct+te);if(sn&&sn.rootNodes.length){Ge=sn.rootNodes[sn.rootNodes.length-1];break}}return De&&Ge?_n(xe,"end",Ge)-_n(xe,"start",De):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Be=this._differ.diff(this._renderedItems);Be?this._applyChanges(Be):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((Be,xe)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Be,xe):xe)),this._needsUpdate=!0)}_changeDataSource(Be,xe){return Be&&Be.disconnect(this),this._needsUpdate=!0,xe?xe.connect(this):(0,d.of)()}_updateContext(){const Be=this._data.length;let xe=this._viewContainerRef.length;for(;xe--;){const te=this._viewContainerRef.get(xe);te.context.index=this._renderedRange.start+xe,te.context.count=Be,this._updateComputedContextProperties(te.context),te.detectChanges()}}_applyChanges(Be){this._viewRepeater.applyChanges(Be,this._viewContainerRef,(ae,De,Ge)=>this._getEmbeddedViewArgs(ae,Ge),ae=>ae.item),Be.forEachIdentityChange(ae=>{this._viewContainerRef.get(ae.currentIndex).context.$implicit=ae.item});const xe=this._data.length;let te=this._viewContainerRef.length;for(;te--;){const ae=this._viewContainerRef.get(te);ae.context.index=this._renderedRange.start+te,ae.context.count=xe,this._updateComputedContextProperties(ae.context)}}_updateComputedContextProperties(Be){Be.first=0===Be.index,Be.last=Be.index===Be.count-1,Be.even=Be.index%2==0,Be.odd=!Be.even}_getEmbeddedViewArgs(Be,xe){return{templateRef:this._template,context:{$implicit:Be.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:xe}}}return Pe.\u0275fac=function(Be){return new(Be||Pe)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(he),i.Y36(Xt,4),i.Y36(i.R0b))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[i._Bn([{provide:he,useClass:ue}])]}),Pe})(),Ye=(()=>{class Pe{}return Pe.\u0275fac=function(Be){return new(Be||Pe)},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({}),Pe})(),He=(()=>{class Pe{}return Pe.\u0275fac=function(Be){return new(Be||Pe)},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({imports:[F.vT,Ye,F.vT,Ye]}),Pe})()},6814:(Ot,be,a)=>{a.d(be,{Do:()=>I,ED:()=>Gi,EM:()=>Go,HT:()=>d,JF:()=>Lo,JJ:()=>qt,K0:()=>L,Mx:()=>Ko,NF:()=>Co,Nd:()=>tn,O5:()=>Xo,Ov:()=>Wo,PC:()=>Qi,PM:()=>yo,RF:()=>Si,S$:()=>U,Ts:()=>bt,V_:()=>Y,Ye:()=>k,b0:()=>e,bD:()=>Vn,dv:()=>rn,ez:()=>In,gd:()=>Hi,i8:()=>qo,iq:()=>Ei,mk:()=>Xn,n9:()=>tr,q:()=>v,qS:()=>Yo,rS:()=>ji,sg:()=>So,tP:()=>ur,uU:()=>Ue,wE:()=>j,w_:()=>s,zE:()=>vr});var t=a(5879);let i=null;function v(){return i}function d(ie){i||(i=ie)}class s{}const L=new t.OlP("DocumentToken");let Q=(()=>{class ie{historyGo(fe){throw new Error("Not implemented")}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275prov=t.Yz7({token:ie,factory:function(){return(0,t.f3M)(A)},providedIn:"platform"}),ie})();const Y=new t.OlP("Location Initialized");let A=(()=>{class ie extends Q{constructor(){super(),this._doc=(0,t.f3M)(L),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(fe){const tt=v().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("popstate",fe,!1),()=>tt.removeEventListener("popstate",fe)}onHashChange(fe){const tt=v().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("hashchange",fe,!1),()=>tt.removeEventListener("hashchange",fe)}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(fe){this._location.pathname=fe}pushState(fe,tt,At){this._history.pushState(fe,tt,At)}replaceState(fe,tt,At){this._history.replaceState(fe,tt,At)}forward(){this._history.forward()}back(){this._history.back()}historyGo(fe=0){this._history.go(fe)}getState(){return this._history.state}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275prov=t.Yz7({token:ie,factory:function(){return new ie},providedIn:"platform"}),ie})();function S(ie,Le){if(0==ie.length)return Le;if(0==Le.length)return ie;let fe=0;return ie.endsWith("/")&&fe++,Le.startsWith("/")&&fe++,2==fe?ie+Le.substring(1):1==fe?ie+Le:ie+"/"+Le}function N(ie){const Le=ie.match(/#|\?|$/),fe=Le&&Le.index||ie.length;return ie.slice(0,fe-("/"===ie[fe-1]?1:0))+ie.slice(fe)}function V(ie){return ie&&"?"!==ie[0]?"?"+ie:ie}let U=(()=>{class ie{historyGo(fe){throw new Error("Not implemented")}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275prov=t.Yz7({token:ie,factory:function(){return(0,t.f3M)(e)},providedIn:"root"}),ie})();const M=new t.OlP("appBaseHref");let e=(()=>{class ie extends U{constructor(fe,tt){super(),this._platformLocation=fe,this._removeListenerFns=[],this._baseHref=tt??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}getBaseHref(){return this._baseHref}prepareExternalUrl(fe){return S(this._baseHref,fe)}path(fe=!1){const tt=this._platformLocation.pathname+V(this._platformLocation.search),At=this._platformLocation.hash;return At&&fe?`${tt}${At}`:tt}pushState(fe,tt,At,hn){const Tn=this.prepareExternalUrl(At+V(hn));this._platformLocation.pushState(fe,tt,Tn)}replaceState(fe,tt,At,hn){const Tn=this.prepareExternalUrl(At+V(hn));this._platformLocation.replaceState(fe,tt,Tn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(fe=0){this._platformLocation.historyGo?.(fe)}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.LFG(Q),t.LFG(M,8))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),I=(()=>{class ie extends U{constructor(fe,tt){super(),this._platformLocation=fe,this._baseHref="",this._removeListenerFns=[],null!=tt&&(this._baseHref=tt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}getBaseHref(){return this._baseHref}path(fe=!1){let tt=this._platformLocation.hash;return null==tt&&(tt="#"),tt.length>0?tt.substring(1):tt}prepareExternalUrl(fe){const tt=S(this._baseHref,fe);return tt.length>0?"#"+tt:tt}pushState(fe,tt,At,hn){let Tn=this.prepareExternalUrl(At+V(hn));0==Tn.length&&(Tn=this._platformLocation.pathname),this._platformLocation.pushState(fe,tt,Tn)}replaceState(fe,tt,At,hn){let Tn=this.prepareExternalUrl(At+V(hn));0==Tn.length&&(Tn=this._platformLocation.pathname),this._platformLocation.replaceState(fe,tt,Tn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(fe=0){this._platformLocation.historyGo?.(fe)}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.LFG(Q),t.LFG(M,8))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),k=(()=>{class ie{constructor(fe){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=fe;const tt=this._locationStrategy.getBaseHref();this._basePath=function F(ie){if(new RegExp("^(https?:)?//").test(ie)){const[,fe]=ie.split(/\/\/[^\/]+/);return fe}return ie}(N(Z(tt))),this._locationStrategy.onPopState(At=>{this._subject.emit({url:this.path(!0),pop:!0,state:At.state,type:At.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(fe=!1){return this.normalize(this._locationStrategy.path(fe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(fe,tt=""){return this.path()==this.normalize(fe+V(tt))}normalize(fe){return ie.stripTrailingSlash(function Ce(ie,Le){if(!ie||!Le.startsWith(ie))return Le;const fe=Le.substring(ie.length);return""===fe||["/",";","?","#"].includes(fe[0])?fe:Le}(this._basePath,Z(fe)))}prepareExternalUrl(fe){return fe&&"/"!==fe[0]&&(fe="/"+fe),this._locationStrategy.prepareExternalUrl(fe)}go(fe,tt="",At=null){this._locationStrategy.pushState(At,"",fe,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(fe+V(tt)),At)}replaceState(fe,tt="",At=null){this._locationStrategy.replaceState(At,"",fe,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(fe+V(tt)),At)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(fe=0){this._locationStrategy.historyGo?.(fe)}onUrlChange(fe){return this._urlChangeListeners.push(fe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)})),()=>{const tt=this._urlChangeListeners.indexOf(fe);this._urlChangeListeners.splice(tt,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(fe="",tt){this._urlChangeListeners.forEach(At=>At(fe,tt))}subscribe(fe,tt,At){return this._subject.subscribe({next:fe,error:tt,complete:At})}}return ie.normalizeQueryParams=V,ie.joinWithSlash=S,ie.stripTrailingSlash=N,ie.\u0275fac=function(fe){return new(fe||ie)(t.LFG(U))},ie.\u0275prov=t.Yz7({token:ie,factory:function(){return function ge(){return new k((0,t.LFG)(U))}()},providedIn:"root"}),ie})();function Z(ie){return ie.replace(/\/index.html$/,"")}var O=(()=>((O=O||{})[O.Decimal=0]="Decimal",O[O.Percent=1]="Percent",O[O.Currency=2]="Currency",O[O.Scientific=3]="Scientific",O))(),P=(()=>((P=P||{})[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",P))(),x=(()=>((x=x||{})[x.Format=0]="Format",x[x.Standalone=1]="Standalone",x))(),de=(()=>((de=de||{})[de.Narrow=0]="Narrow",de[de.Abbreviated=1]="Abbreviated",de[de.Wide=2]="Wide",de[de.Short=3]="Short",de))(),ue=(()=>((ue=ue||{})[ue.Short=0]="Short",ue[ue.Medium=1]="Medium",ue[ue.Long=2]="Long",ue[ue.Full=3]="Full",ue))(),j=(()=>((j=j||{})[j.Decimal=0]="Decimal",j[j.Group=1]="Group",j[j.List=2]="List",j[j.PercentSign=3]="PercentSign",j[j.PlusSign=4]="PlusSign",j[j.MinusSign=5]="MinusSign",j[j.Exponential=6]="Exponential",j[j.SuperscriptingExponent=7]="SuperscriptingExponent",j[j.PerMille=8]="PerMille",j[j.Infinity=9]="Infinity",j[j.NaN=10]="NaN",j[j.TimeSeparator=11]="TimeSeparator",j[j.CurrencyDecimal=12]="CurrencyDecimal",j[j.CurrencyGroup=13]="CurrencyGroup",j))();function gt(ie,Le){return Nt((0,t.cg1)(ie)[t.wAp.DateFormat],Le)}function _t(ie,Le){return Nt((0,t.cg1)(ie)[t.wAp.TimeFormat],Le)}function Ft(ie,Le){return Nt((0,t.cg1)(ie)[t.wAp.DateTimeFormat],Le)}function rn(ie,Le){const fe=(0,t.cg1)(ie),tt=fe[t.wAp.NumberSymbols][Le];if(typeof tt>"u"){if(Le===j.CurrencyDecimal)return fe[t.wAp.NumberSymbols][j.Decimal];if(Le===j.CurrencyGroup)return fe[t.wAp.NumberSymbols][j.Group]}return tt}const Ut=t.kL8;function Xt(ie){if(!ie[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ie[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nt(ie,Le){for(let fe=Le;fe>-1;fe--)if(typeof ie[fe]<"u")return ie[fe];throw new Error("Locale data API: locale data undefined")}function Ye(ie){const[Le,fe]=ie.split(":");return{hours:+Le,minutes:+fe}}const Be=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xe={},te=/((?:[^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 ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),De=(()=>((De=De||{})[De.FullYear=0]="FullYear",De[De.Month=1]="Month",De[De.Date=2]="Date",De[De.Hours=3]="Hours",De[De.Minutes=4]="Minutes",De[De.Seconds=5]="Seconds",De[De.FractionalSeconds=6]="FractionalSeconds",De[De.Day=7]="Day",De))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Ct(ie,Le,fe,tt){let At=function Ze(ie){if(ce(ie))return ie;if("number"==typeof ie&&!isNaN(ie))return new Date(ie);if("string"==typeof ie){if(ie=ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ie)){const[At,hn=1,Tn=1]=ie.split("-").map(to=>+to);return sn(At,hn-1,Tn)}const fe=parseFloat(ie);if(!isNaN(ie-fe))return new Date(fe);let tt;if(tt=ie.match(Be))return function ut(ie){const Le=new Date(0);let fe=0,tt=0;const At=ie[8]?Le.setUTCFullYear:Le.setFullYear,hn=ie[8]?Le.setUTCHours:Le.setHours;ie[9]&&(fe=Number(ie[9]+ie[10]),tt=Number(ie[9]+ie[11])),At.call(Le,Number(ie[1]),Number(ie[2])-1,Number(ie[3]));const Tn=Number(ie[4]||0)-fe,to=Number(ie[5]||0)-tt,Qo=Number(ie[6]||0),go=Math.floor(1e3*parseFloat("0."+(ie[7]||0)));return hn.call(Le,Tn,to,Qo,go),Le}(tt)}const Le=new Date(ie);if(!ce(Le))throw new Error(`Unable to convert "${ie}" into a date`);return Le}(ie);Le=yn(fe,Le)||Le;let to,Tn=[];for(;Le;){if(to=te.exec(Le),!to){Tn.push(Le);break}{Tn=Tn.concat(to.slice(1));const Vo=Tn.pop();if(!Vo)break;Le=Vo}}let Qo=At.getTimezoneOffset();tt&&(Qo=Rt(tt,Qo),At=function gn(ie,Le,fe){const tt=fe?-1:1,At=ie.getTimezoneOffset();return function St(ie,Le){return(ie=new Date(ie.getTime())).setMinutes(ie.getMinutes()+Le),ie}(ie,tt*(Rt(Le,At)-At))}(At,tt,!0));let go="";return Tn.forEach(Vo=>{const Io=function rt(ie){if(qe[ie])return qe[ie];let Le;switch(ie){case"G":case"GG":case"GGG":Le=Vt(Ge.Eras,de.Abbreviated);break;case"GGGG":Le=Vt(Ge.Eras,de.Wide);break;case"GGGGG":Le=Vt(Ge.Eras,de.Narrow);break;case"y":Le=Pt(De.FullYear,1,0,!1,!0);break;case"yy":Le=Pt(De.FullYear,2,0,!0,!0);break;case"yyy":Le=Pt(De.FullYear,3,0,!1,!0);break;case"yyyy":Le=Pt(De.FullYear,4,0,!1,!0);break;case"Y":Le=nt(1);break;case"YY":Le=nt(2,!0);break;case"YYY":Le=nt(3);break;case"YYYY":Le=nt(4);break;case"M":case"L":Le=Pt(De.Month,1,1);break;case"MM":case"LL":Le=Pt(De.Month,2,1);break;case"MMM":Le=Vt(Ge.Months,de.Abbreviated);break;case"MMMM":Le=Vt(Ge.Months,de.Wide);break;case"MMMMM":Le=Vt(Ge.Months,de.Narrow);break;case"LLL":Le=Vt(Ge.Months,de.Abbreviated,x.Standalone);break;case"LLLL":Le=Vt(Ge.Months,de.Wide,x.Standalone);break;case"LLLLL":Le=Vt(Ge.Months,de.Narrow,x.Standalone);break;case"w":Le=zt(1);break;case"ww":Le=zt(2);break;case"W":Le=zt(1,!0);break;case"d":Le=Pt(De.Date,1);break;case"dd":Le=Pt(De.Date,2);break;case"c":case"cc":Le=Pt(De.Day,1);break;case"ccc":Le=Vt(Ge.Days,de.Abbreviated,x.Standalone);break;case"cccc":Le=Vt(Ge.Days,de.Wide,x.Standalone);break;case"ccccc":Le=Vt(Ge.Days,de.Narrow,x.Standalone);break;case"cccccc":Le=Vt(Ge.Days,de.Short,x.Standalone);break;case"E":case"EE":case"EEE":Le=Vt(Ge.Days,de.Abbreviated);break;case"EEEE":Le=Vt(Ge.Days,de.Wide);break;case"EEEEE":Le=Vt(Ge.Days,de.Narrow);break;case"EEEEEE":Le=Vt(Ge.Days,de.Short);break;case"a":case"aa":case"aaa":Le=Vt(Ge.DayPeriods,de.Abbreviated);break;case"aaaa":Le=Vt(Ge.DayPeriods,de.Wide);break;case"aaaaa":Le=Vt(Ge.DayPeriods,de.Narrow);break;case"b":case"bb":case"bbb":Le=Vt(Ge.DayPeriods,de.Abbreviated,x.Standalone,!0);break;case"bbbb":Le=Vt(Ge.DayPeriods,de.Wide,x.Standalone,!0);break;case"bbbbb":Le=Vt(Ge.DayPeriods,de.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":Le=Vt(Ge.DayPeriods,de.Abbreviated,x.Format,!0);break;case"BBBB":Le=Vt(Ge.DayPeriods,de.Wide,x.Format,!0);break;case"BBBBB":Le=Vt(Ge.DayPeriods,de.Narrow,x.Format,!0);break;case"h":Le=Pt(De.Hours,1,-12);break;case"hh":Le=Pt(De.Hours,2,-12);break;case"H":Le=Pt(De.Hours,1);break;case"HH":Le=Pt(De.Hours,2);break;case"m":Le=Pt(De.Minutes,1);break;case"mm":Le=Pt(De.Minutes,2);break;case"s":Le=Pt(De.Seconds,1);break;case"ss":Le=Pt(De.Seconds,2);break;case"S":Le=Pt(De.FractionalSeconds,1);break;case"SS":Le=Pt(De.FractionalSeconds,2);break;case"SSS":Le=Pt(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Le=Ke(ae.Short);break;case"ZZZZZ":Le=Ke(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Le=Ke(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Le=Ke(ae.Long);break;default:return null}return qe[ie]=Le,Le}(Vo);go+=Io?Io(At,fe,Qo):"''"===Vo?"'":Vo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),go}function sn(ie,Le,fe){const tt=new Date(0);return tt.setFullYear(ie,Le,fe),tt.setHours(0,0,0),tt}function yn(ie,Le){const fe=function re(ie){return(0,t.cg1)(ie)[t.wAp.LocaleId]}(ie);if(xe[fe]=xe[fe]||{},xe[fe][Le])return xe[fe][Le];let tt="";switch(Le){case"shortDate":tt=gt(ie,ue.Short);break;case"mediumDate":tt=gt(ie,ue.Medium);break;case"longDate":tt=gt(ie,ue.Long);break;case"fullDate":tt=gt(ie,ue.Full);break;case"shortTime":tt=_t(ie,ue.Short);break;case"mediumTime":tt=_t(ie,ue.Medium);break;case"longTime":tt=_t(ie,ue.Long);break;case"fullTime":tt=_t(ie,ue.Full);break;case"short":const At=yn(ie,"shortTime"),hn=yn(ie,"shortDate");tt=st(Ft(ie,ue.Short),[At,hn]);break;case"medium":const Tn=yn(ie,"mediumTime"),to=yn(ie,"mediumDate");tt=st(Ft(ie,ue.Medium),[Tn,to]);break;case"long":const Qo=yn(ie,"longTime"),go=yn(ie,"longDate");tt=st(Ft(ie,ue.Long),[Qo,go]);break;case"full":const Vo=yn(ie,"fullTime"),Io=yn(ie,"fullDate");tt=st(Ft(ie,ue.Full),[Vo,Io])}return tt&&(xe[fe][Le]=tt),tt}function st(ie,Le){return Le&&(ie=ie.replace(/\{([^}]+)}/g,function(fe,tt){return null!=Le&&tt in Le?Le[tt]:fe})),ie}function it(ie,Le,fe="-",tt,At){let hn="";(ie<0||At&&ie<=0)&&(At?ie=1-ie:(ie=-ie,hn=fe));let Tn=String(ie);for(;Tn.length0||to>-fe)&&(to+=fe),ie===De.Hours)0===to&&-12===fe&&(to=12);else if(ie===De.FractionalSeconds)return function lt(ie,Le){return it(ie,3).substring(0,Le)}(to,Le);const Qo=rn(Tn,j.MinusSign);return it(to,Le,Qo,tt,At)}}function Vt(ie,Le,fe=x.Format,tt=!1){return function(At,hn){return function jt(ie,Le,fe,tt,At,hn){switch(fe){case Ge.Months:return function Oe(ie,Le,fe){const tt=(0,t.cg1)(ie),hn=Nt([tt[t.wAp.MonthsFormat],tt[t.wAp.MonthsStandalone]],Le);return Nt(hn,fe)}(Le,At,tt)[ie.getMonth()];case Ge.Days:return function Me(ie,Le,fe){const tt=(0,t.cg1)(ie),hn=Nt([tt[t.wAp.DaysFormat],tt[t.wAp.DaysStandalone]],Le);return Nt(hn,fe)}(Le,At,tt)[ie.getDay()];case Ge.DayPeriods:const Tn=ie.getHours(),to=ie.getMinutes();if(hn){const go=function _n(ie){const Le=(0,t.cg1)(ie);return Xt(Le),(Le[t.wAp.ExtraData][2]||[]).map(tt=>"string"==typeof tt?Ye(tt):[Ye(tt[0]),Ye(tt[1])])}(Le),Vo=function On(ie,Le,fe){const tt=(0,t.cg1)(ie);Xt(tt);const hn=Nt([tt[t.wAp.ExtraData][0],tt[t.wAp.ExtraData][1]],Le)||[];return Nt(hn,fe)||[]}(Le,At,tt),Io=go.findIndex(vi=>{if(Array.isArray(vi)){const[jo,yi]=vi,Ci=Tn>=jo.hours&&to>=jo.minutes,ao=Tn0?Math.floor(At/60):Math.ceil(At/60);switch(ie){case ae.Short:return(At>=0?"+":"")+it(Tn,2,hn)+it(Math.abs(At%60),2,hn);case ae.ShortGMT:return"GMT"+(At>=0?"+":"")+it(Tn,1,hn);case ae.Long:return"GMT"+(At>=0?"+":"")+it(Tn,2,hn)+":"+it(Math.abs(At%60),2,hn);case ae.Extended:return 0===tt?"Z":(At>=0?"+":"")+it(Tn,2,hn)+":"+it(Math.abs(At%60),2,hn);default:throw new Error(`Unknown zone width "${ie}"`)}}}const K=0,w=4;function Te(ie){return sn(ie.getFullYear(),ie.getMonth(),ie.getDate()+(w-ie.getDay()))}function zt(ie,Le=!1){return function(fe,tt){let At;if(Le){const hn=new Date(fe.getFullYear(),fe.getMonth(),1).getDay()-1,Tn=fe.getDate();At=1+Math.floor((Tn+hn)/7)}else{const hn=Te(fe),Tn=function J(ie){const Le=sn(ie,K,1).getDay();return sn(ie,0,1+(Le<=w?w:w+7)-Le)}(hn.getFullYear()),to=hn.getTime()-Tn.getTime();At=1+Math.round(to/6048e5)}return it(At,ie,rn(tt,j.MinusSign))}}function nt(ie,Le=!1){return function(fe,tt){return it(Te(fe).getFullYear(),ie,rn(tt,j.MinusSign),Le)}}const qe={};function Rt(ie,Le){ie=ie.replace(/:/g,"");const fe=Date.parse("Jan 01, 1970 00:00:00 "+ie)/6e4;return isNaN(fe)?Le:fe}function ce(ie){return ie instanceof Date&&!isNaN(ie.valueOf())}const _e=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function pn(ie){const Le=parseInt(ie);if(isNaN(Le))throw new Error("Invalid integer literal when parsing "+ie);return Le}let qn=(()=>{class ie{}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275prov=t.Yz7({token:ie,factory:function(fe){let tt=null;return fe?tt=new fe:(At=t.LFG(t.soG),tt=new _o(At)),tt;var At},providedIn:"root"}),ie})();let _o=(()=>{class ie extends qn{constructor(fe){super(),this.locale=fe}getPluralCategory(fe,tt){switch(Ut(tt||this.locale)(fe)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.LFG(t.soG))},ie.\u0275prov=t.Yz7({token:ie,factory:ie.\u0275fac}),ie})();function Yo(ie,Le,fe){return(0,t.dwT)(ie,Le,fe)}function Ko(ie,Le){Le=encodeURIComponent(Le);for(const fe of ie.split(";")){const tt=fe.indexOf("="),[At,hn]=-1==tt?[fe,""]:[fe.slice(0,tt),fe.slice(tt+1)];if(At.trim()===Le)return decodeURIComponent(hn)}return null}const ui=/\s+/,mo=[];let Xn=(()=>{class ie{constructor(fe,tt,At,hn){this._iterableDiffers=fe,this._keyValueDiffers=tt,this._ngEl=At,this._renderer=hn,this.initialClasses=mo,this.stateMap=new Map}set klass(fe){this.initialClasses=null!=fe?fe.trim().split(ui):mo}set ngClass(fe){this.rawClass="string"==typeof fe?fe.trim().split(ui):fe}ngDoCheck(){for(const tt of this.initialClasses)this._updateState(tt,!0);const fe=this.rawClass;if(Array.isArray(fe)||fe instanceof Set)for(const tt of fe)this._updateState(tt,!0);else if(null!=fe)for(const tt of Object.keys(fe))this._updateState(tt,!!fe[tt]);this._applyStateDiff()}_updateState(fe,tt){const At=this.stateMap.get(fe);void 0!==At?(At.enabled!==tt&&(At.changed=!0,At.enabled=tt),At.touched=!0):this.stateMap.set(fe,{enabled:tt,changed:!0,touched:!0})}_applyStateDiff(){for(const fe of this.stateMap){const tt=fe[0],At=fe[1];At.changed?(this._toggleClass(tt,At.enabled),At.changed=!1):At.touched||(At.enabled&&this._toggleClass(tt,!1),this.stateMap.delete(tt)),At.touched=!1}}_toggleClass(fe,tt){(fe=fe.trim()).length>0&&fe.split(ui).forEach(At=>{tt?this._renderer.addClass(this._ngEl.nativeElement,At):this._renderer.removeClass(this._ngEl.nativeElement,At)})}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ie})();class wo{constructor(Le,fe,tt,At){this.$implicit=Le,this.ngForOf=fe,this.index=tt,this.count=At}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 So=(()=>{class ie{set ngForOf(fe){this._ngForOf=fe,this._ngForOfDirty=!0}set ngForTrackBy(fe){this._trackByFn=fe}get ngForTrackBy(){return this._trackByFn}constructor(fe,tt,At){this._viewContainer=fe,this._template=tt,this._differs=At,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(fe){fe&&(this._template=fe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const fe=this._ngForOf;!this._differ&&fe&&(this._differ=this._differs.find(fe).create(this.ngForTrackBy))}if(this._differ){const fe=this._differ.diff(this._ngForOf);fe&&this._applyChanges(fe)}}_applyChanges(fe){const tt=this._viewContainer;fe.forEachOperation((At,hn,Tn)=>{if(null==At.previousIndex)tt.createEmbeddedView(this._template,new wo(At.item,this._ngForOf,-1,-1),null===Tn?void 0:Tn);else if(null==Tn)tt.remove(null===hn?void 0:hn);else if(null!==hn){const to=tt.get(hn);tt.move(to,Tn),Eo(to,At)}});for(let At=0,hn=tt.length;At{Eo(tt.get(At.currentIndex),At)})}static ngTemplateContextGuard(fe,tt){return!0}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ie})();function Eo(ie,Le){ie.context.$implicit=Le.item}let Xo=(()=>{class ie{constructor(fe,tt){this._viewContainer=fe,this._context=new zi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=tt}set ngIf(fe){this._context.$implicit=this._context.ngIf=fe,this._updateView()}set ngIfThen(fe){An("ngIfThen",fe),this._thenTemplateRef=fe,this._thenViewRef=null,this._updateView()}set ngIfElse(fe){An("ngIfElse",fe),this._elseTemplateRef=fe,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(fe,tt){return!0}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.s_b),t.Y36(t.Rgc))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ie})();class zi{constructor(){this.$implicit=null,this.ngIf=null}}function An(ie,Le){if(Le&&!Le.createEmbeddedView)throw new Error(`${ie} must be a TemplateRef, but received '${(0,t.AaK)(Le)}'.`)}class bi{constructor(Le,fe){this._viewContainerRef=Le,this._templateRef=fe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Le){Le&&!this._created?this.create():!Le&&this._created&&this.destroy()}}let Si=(()=>{class ie{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(fe){this._ngSwitch=fe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(fe){this._defaultViews.push(fe)}_matchCase(fe){const tt=fe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||tt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),tt}_updateDefaultCases(fe){if(this._defaultViews.length>0&&fe!==this._defaultUsed){this._defaultUsed=fe;for(const tt of this._defaultViews)tt.enforceState(fe)}}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ie})(),tr=(()=>{class ie{constructor(fe,tt,At){this.ngSwitch=At,At._addCase(),this._view=new bi(fe,tt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Si,9))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ie})(),Gi=(()=>{class ie{constructor(fe,tt,At){At._addDefault(new bi(fe,tt))}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Si,9))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ie})(),Ei=(()=>{class ie{constructor(fe){this._localization=fe,this._caseViews={}}set ngPlural(fe){this._updateView(fe)}addCase(fe,tt){this._caseViews[fe]=tt}_updateView(fe){this._clearViews();const At=function co(ie,Le,fe,tt){let At=`=${ie}`;if(Le.indexOf(At)>-1||(At=fe.getPluralCategory(ie,tt),Le.indexOf(At)>-1))return At;if(Le.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${ie}"`)}(fe,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[At])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(fe){fe&&(this._activeView=fe,this._activeView.create())}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(qn))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),ie})(),vr=(()=>{class ie{constructor(fe,tt,At,hn){this.value=fe;const Tn=!isNaN(Number(fe));hn.addCase(Tn?`=${fe}`:fe,new bi(At,tt))}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.$8M("ngPluralCase"),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(Ei,1))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngPluralCase",""]],standalone:!0}),ie})(),Qi=(()=>{class ie{constructor(fe,tt,At){this._ngEl=fe,this._differs=tt,this._renderer=At,this._ngStyle=null,this._differ=null}set ngStyle(fe){this._ngStyle=fe,!this._differ&&fe&&(this._differ=this._differs.find(fe).create())}ngDoCheck(){if(this._differ){const fe=this._differ.diff(this._ngStyle);fe&&this._applyChanges(fe)}}_setStyle(fe,tt){const[At,hn]=fe.split("."),Tn=-1===At.indexOf("-")?void 0:t.JOm.DashCase;null!=tt?this._renderer.setStyle(this._ngEl.nativeElement,At,hn?`${tt}${hn}`:tt,Tn):this._renderer.removeStyle(this._ngEl.nativeElement,At,Tn)}_applyChanges(fe){fe.forEachRemovedItem(tt=>this._setStyle(tt.key,null)),fe.forEachAddedItem(tt=>this._setStyle(tt.key,tt.currentValue)),fe.forEachChangedItem(tt=>this._setStyle(tt.key,tt.currentValue))}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ie})(),ur=(()=>{class ie{constructor(fe){this._viewContainerRef=fe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(fe){if(fe.ngTemplateOutlet||fe.ngTemplateOutletInjector){const tt=this._viewContainerRef;if(this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:At,ngTemplateOutletContext:hn,ngTemplateOutletInjector:Tn}=this;this._viewRef=tt.createEmbeddedView(At,hn,Tn?{injector:Tn}:void 0)}else this._viewRef=null}else this._viewRef&&fe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.s_b))},ie.\u0275dir=t.lG2({type:ie,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),ie})();function lo(ie,Le){return new t.vHH(2100,!1)}class Oo{createSubscription(Le,fe){return(0,t.rg0)(()=>Le.subscribe({next:fe,error:tt=>{throw tt}}))}dispose(Le){(0,t.rg0)(()=>Le.unsubscribe())}}class Po{createSubscription(Le,fe){return Le.then(fe,tt=>{throw tt})}dispose(Le){}}const Jo=new Po,Ro=new Oo;let Wo=(()=>{class ie{constructor(fe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=fe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(fe){return this._obj?fe!==this._obj?(this._dispose(),this.transform(fe)):this._latestValue:(fe&&this._subscribe(fe),this._latestValue)}_subscribe(fe){this._obj=fe,this._strategy=this._selectStrategy(fe),this._subscription=this._strategy.createSubscription(fe,tt=>this._updateLatestValue(fe,tt))}_selectStrategy(fe){if((0,t.QGY)(fe))return Jo;if((0,t.F4k)(fe))return Ro;throw lo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(fe,tt){fe===this._obj&&(this._latestValue=tt,this._ref.markForCheck())}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.sBO,16))},ie.\u0275pipe=t.Yjl({name:"async",type:ie,pure:!1,standalone:!0}),ie})(),qo=(()=>{class ie{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw lo();return fe.toLowerCase()}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275pipe=t.Yjl({name:"lowercase",type:ie,pure:!0,standalone:!0}),ie})();const Ti=/(?:[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 ji=(()=>{class ie{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw lo();return fe.replace(Ti,tt=>tt[0].toUpperCase()+tt.slice(1).toLowerCase())}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275pipe=t.Yjl({name:"titlecase",type:ie,pure:!0,standalone:!0}),ie})(),Hi=(()=>{class ie{transform(fe){if(null==fe)return null;if("string"!=typeof fe)throw lo();return fe.toUpperCase()}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275pipe=t.Yjl({name:"uppercase",type:ie,pure:!0,standalone:!0}),ie})();const Yn=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),so=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ue=(()=>{class ie{constructor(fe,tt,At){this.locale=fe,this.defaultTimezone=tt,this.defaultOptions=At}transform(fe,tt,At,hn){if(null==fe||""===fe||fe!=fe)return null;try{return Ct(fe,tt??this.defaultOptions?.dateFormat??"mediumDate",hn||this.locale,At??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Tn){throw lo()}}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.soG,16),t.Y36(Yn,24),t.Y36(so,24))},ie.\u0275pipe=t.Yjl({name:"date",type:ie,pure:!0,standalone:!0}),ie})(),bt=(()=>{class ie{transform(fe){return JSON.stringify(fe,null,2)}}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275pipe=t.Yjl({name:"json",type:ie,pure:!1,standalone:!0}),ie})(),tn=(()=>{class ie{constructor(fe){this.differs=fe,this.keyValues=[],this.compareFn=fn}transform(fe,tt=fn){if(!fe||!(fe instanceof Map)&&"object"!=typeof fe)return null;this.differ||(this.differ=this.differs.find(fe).create());const At=this.differ.diff(fe),hn=tt!==this.compareFn;return At&&(this.keyValues=[],At.forEachItem(Tn=>{this.keyValues.push(function Bt(ie,Le){return{key:ie,value:Le}}(Tn.key,Tn.currentValue))})),(At||hn)&&(this.keyValues.sort(tt),this.compareFn=tt),this.keyValues}}return ie.\u0275fac=function(fe){return new(fe||ie)(t.Y36(t.aQg,16))},ie.\u0275pipe=t.Yjl({name:"keyvalue",type:ie,pure:!1,standalone:!0}),ie})();function fn(ie,Le){const fe=ie.key,tt=Le.key;if(fe===tt)return 0;if(void 0===fe)return 1;if(void 0===tt)return-1;if(null===fe)return 1;if(null===tt)return-1;if("string"==typeof fe&&"string"==typeof tt)return fe{class ie{constructor(fe){this._locale=fe}transform(fe,tt,At){if(!function Sn(ie){return!(null==ie||""===ie||ie!=ie)}(fe))return null;At=At||this._locale;try{return function $e(ie,Le,fe){return function ne(ie,Le,fe,tt,At,hn,Tn=!1){let to="",Qo=!1;if(isFinite(ie)){let go=function Zt(ie){let tt,At,hn,Tn,to,Le=Math.abs(ie)+"",fe=0;for((At=Le.indexOf("."))>-1&&(Le=Le.replace(".","")),(hn=Le.search(/e/i))>0?(At<0&&(At=hn),At+=+Le.slice(hn+1),Le=Le.substring(0,hn)):At<0&&(At=Le.length),hn=0;"0"===Le.charAt(hn);hn++);if(hn===(to=Le.length))tt=[0],At=1;else{for(to--;"0"===Le.charAt(to);)to--;for(At-=hn,tt=[],Tn=0;hn<=to;hn++,Tn++)tt[Tn]=Number(Le.charAt(hn))}return At>22&&(tt=tt.splice(0,21),fe=At-1,At=1),{digits:tt,exponent:fe,integerLen:At}}(ie);Tn&&(go=function on(ie){if(0===ie.digits[0])return ie;const Le=ie.digits.length-ie.integerLen;return ie.exponent?ie.exponent+=2:(0===Le?ie.digits.push(0,0):1===Le&&ie.digits.push(0),ie.integerLen+=2),ie}(go));let Vo=Le.minInt,Io=Le.minFrac,vi=Le.maxFrac;if(hn){const rr=hn.match(_e);if(null===rr)throw new Error(`${hn} is not a valid digit info`);const Nr=rr[1],Er=rr[3],sr=rr[5];null!=Nr&&(Vo=pn(Nr)),null!=Er&&(Io=pn(Er)),null!=sr?vi=pn(sr):null!=Er&&Io>vi&&(vi=Io)}!function Wn(ie,Le,fe){if(Le>fe)throw new Error(`The minimum number of digits after fraction (${Le}) is higher than the maximum (${fe}).`);let tt=ie.digits,At=tt.length-ie.integerLen;const hn=Math.min(Math.max(Le,At),fe);let Tn=hn+ie.integerLen,to=tt[Tn];if(Tn>0){tt.splice(Math.max(ie.integerLen,Tn));for(let Io=Tn;Io=5)if(Tn-1<0){for(let Io=0;Io>Tn;Io--)tt.unshift(0),ie.integerLen++;tt.unshift(1),ie.integerLen++}else tt[Tn-1]++;for(;At=go?yi.pop():Qo=!1),vi>=10?1:0},0);Vo&&(tt.unshift(Vo),ie.integerLen++)}(go,Io,vi);let jo=go.digits,yi=go.integerLen;const Ci=go.exponent;let ao=[];for(Qo=jo.every(rr=>!rr);yi0?ao=jo.splice(yi,jo.length):(ao=jo,jo=[0]);const fr=[];for(jo.length>=Le.lgSize&&fr.unshift(jo.splice(-Le.lgSize,jo.length).join(""));jo.length>Le.gSize;)fr.unshift(jo.splice(-Le.gSize,jo.length).join(""));jo.length&&fr.unshift(jo.join("")),to=fr.join(rn(fe,tt)),ao.length&&(to+=rn(fe,At)+ao.join("")),Ci&&(to+=rn(fe,j.Exponential)+"+"+Ci)}else to=rn(fe,j.Infinity);return to=ie<0&&!Qo?Le.negPre+to+Le.negSuf:Le.posPre+to+Le.posSuf,to}(ie,function Mt(ie,Le="-"){const fe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},tt=ie.split(";"),At=tt[0],hn=tt[1],Tn=-1!==At.indexOf(".")?At.split("."):[At.substring(0,At.lastIndexOf("0")+1),At.substring(At.lastIndexOf("0")+1)],to=Tn[0],Qo=Tn[1]||"";fe.posPre=to.substring(0,to.indexOf("#"));for(let Vo=0;Vo{class ie{}return ie.\u0275fac=function(fe){return new(fe||ie)},ie.\u0275mod=t.oAB({type:ie}),ie.\u0275inj=t.cJS({}),ie})();const Vn="browser",Un="server";function Co(ie){return ie===Vn}function yo(ie){return ie===Un}let Go=(()=>{class ie{}return ie.\u0275prov=(0,t.Yz7)({token:ie,providedIn:"root",factory:()=>new To((0,t.LFG)(L),window)}),ie})();class To{constructor(Le,fe){this.document=Le,this.window=fe,this.offset=()=>[0,0]}setOffset(Le){this.offset=Array.isArray(Le)?()=>Le:Le}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Le){this.supportsScrolling()&&this.window.scrollTo(Le[0],Le[1])}scrollToAnchor(Le){if(!this.supportsScrolling())return;const fe=function _i(ie,Le){const fe=ie.getElementById(Le)||ie.getElementsByName(Le)[0];if(fe)return fe;if("function"==typeof ie.createTreeWalker&&ie.body&&"function"==typeof ie.body.attachShadow){const tt=ie.createTreeWalker(ie.body,NodeFilter.SHOW_ELEMENT);let At=tt.currentNode;for(;At;){const hn=At.shadowRoot;if(hn){const Tn=hn.getElementById(Le)||hn.querySelector(`[name="${Le}"]`);if(Tn)return Tn}At=tt.nextNode()}}return null}(this.document,Le);fe&&(this.scrollToElement(fe),fe.focus())}setHistoryScrollRestoration(Le){if(this.supportScrollRestoration()){const fe=this.window.history;fe&&fe.scrollRestoration&&(fe.scrollRestoration=Le)}}scrollToElement(Le){const fe=Le.getBoundingClientRect(),tt=fe.left+this.window.pageXOffset,At=fe.top+this.window.pageYOffset,hn=this.offset();this.window.scrollTo(tt-hn[0],At-hn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Le=mi(this.window.history)||mi(Object.getPrototypeOf(this.window.history));return!(!Le||!Le.writable&&!Le.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function mi(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}class Lo{}},9862:(Ot,be,a)=>{a.d(be,{Ed:()=>mt,JF:()=>_e,PD:()=>ce,WM:()=>U,eN:()=>Tt,jN:()=>V});var t=a(5879),i=a(2096),v=a(5592),d=a(9666),s=a(6328),L=a(2181),Q=a(7398),Y=a(4716),A=a(4664),S=a(6814);class N{}class V{}class U{constructor(B){this.normalizedNames=new Map,this.lazyUpdate=null,B?"string"==typeof B?this.lazyInit=()=>{this.headers=new Map,B.split("\n").forEach(ze=>{const $e=ze.indexOf(":");if($e>0){const Mt=ze.slice(0,$e),on=Mt.toLowerCase(),Zt=ze.slice($e+1).trim();this.maybeSetNormalizedName(Mt,on),this.headers.has(on)?this.headers.get(on).push(Zt):this.headers.set(on,[Zt])}})}:typeof Headers<"u"&&B instanceof Headers?(this.headers=new Map,B.forEach((ze,$e)=>{this.setHeaderEntries($e,ze)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(B).forEach(([ze,$e])=>{this.setHeaderEntries(ze,$e)})}:this.headers=new Map}has(B){return this.init(),this.headers.has(B.toLowerCase())}get(B){this.init();const ze=this.headers.get(B.toLowerCase());return ze&&ze.length>0?ze[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(B){return this.init(),this.headers.get(B.toLowerCase())||null}append(B,ze){return this.clone({name:B,value:ze,op:"a"})}set(B,ze){return this.clone({name:B,value:ze,op:"s"})}delete(B,ze){return this.clone({name:B,value:ze,op:"d"})}maybeSetNormalizedName(B,ze){this.normalizedNames.has(ze)||this.normalizedNames.set(ze,B)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(B=>this.applyUpdate(B)),this.lazyUpdate=null))}copyFrom(B){B.init(),Array.from(B.headers.keys()).forEach(ze=>{this.headers.set(ze,B.headers.get(ze)),this.normalizedNames.set(ze,B.normalizedNames.get(ze))})}clone(B){const ze=new U;return ze.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,ze.lazyUpdate=(this.lazyUpdate||[]).concat([B]),ze}applyUpdate(B){const ze=B.name.toLowerCase();switch(B.op){case"a":case"s":let $e=B.value;if("string"==typeof $e&&($e=[$e]),0===$e.length)return;this.maybeSetNormalizedName(B.name,ze);const Mt=("a"===B.op?this.headers.get(ze):void 0)||[];Mt.push(...$e),this.headers.set(ze,Mt);break;case"d":const on=B.value;if(on){let Zt=this.headers.get(ze);if(!Zt)return;Zt=Zt.filter(Wn=>-1===on.indexOf(Wn)),0===Zt.length?(this.headers.delete(ze),this.normalizedNames.delete(ze)):this.headers.set(ze,Zt)}else this.headers.delete(ze),this.normalizedNames.delete(ze)}}setHeaderEntries(B,ze){const $e=(Array.isArray(ze)?ze:[ze]).map(on=>on.toString()),Mt=B.toLowerCase();this.headers.set(Mt,$e),this.maybeSetNormalizedName(B,Mt)}forEach(B){this.init(),Array.from(this.normalizedNames.keys()).forEach(ze=>B(this.normalizedNames.get(ze),this.headers.get(ze)))}}class e{encodeKey(B){return Ce(B)}encodeValue(B){return Ce(B)}decodeKey(B){return decodeURIComponent(B)}decodeValue(B){return decodeURIComponent(B)}}const k=/%(\d[a-f0-9])/gi,ge={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ce(ne){return encodeURIComponent(ne).replace(k,(B,ze)=>ge[ze]??B)}function Z(ne){return`${ne}`}class F{constructor(B={}){if(this.updates=null,this.cloneFrom=null,this.encoder=B.encoder||new e,B.fromString){if(B.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function I(ne,B){const ze=new Map;return ne.length>0&&ne.replace(/^\?/,"").split("&").forEach(Mt=>{const on=Mt.indexOf("="),[Zt,Wn]=-1==on?[B.decodeKey(Mt),""]:[B.decodeKey(Mt.slice(0,on)),B.decodeValue(Mt.slice(on+1))],pn=ze.get(Zt)||[];pn.push(Wn),ze.set(Zt,pn)}),ze}(B.fromString,this.encoder)}else B.fromObject?(this.map=new Map,Object.keys(B.fromObject).forEach(ze=>{const $e=B.fromObject[ze],Mt=Array.isArray($e)?$e.map(Z):[Z($e)];this.map.set(ze,Mt)})):this.map=null}has(B){return this.init(),this.map.has(B)}get(B){this.init();const ze=this.map.get(B);return ze?ze[0]:null}getAll(B){return this.init(),this.map.get(B)||null}keys(){return this.init(),Array.from(this.map.keys())}append(B,ze){return this.clone({param:B,value:ze,op:"a"})}appendAll(B){const ze=[];return Object.keys(B).forEach($e=>{const Mt=B[$e];Array.isArray(Mt)?Mt.forEach(on=>{ze.push({param:$e,value:on,op:"a"})}):ze.push({param:$e,value:Mt,op:"a"})}),this.clone(ze)}set(B,ze){return this.clone({param:B,value:ze,op:"s"})}delete(B,ze){return this.clone({param:B,value:ze,op:"d"})}toString(){return this.init(),this.keys().map(B=>{const ze=this.encoder.encodeKey(B);return this.map.get(B).map($e=>ze+"="+this.encoder.encodeValue($e)).join("&")}).filter(B=>""!==B).join("&")}clone(B){const ze=new F({encoder:this.encoder});return ze.cloneFrom=this.cloneFrom||this,ze.updates=(this.updates||[]).concat(B),ze}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(B=>this.map.set(B,this.cloneFrom.map.get(B))),this.updates.forEach(B=>{switch(B.op){case"a":case"s":const ze=("a"===B.op?this.map.get(B.param):void 0)||[];ze.push(Z(B.value)),this.map.set(B.param,ze);break;case"d":if(void 0===B.value){this.map.delete(B.param);break}{let $e=this.map.get(B.param)||[];const Mt=$e.indexOf(Z(B.value));-1!==Mt&&$e.splice(Mt,1),$e.length>0?this.map.set(B.param,$e):this.map.delete(B.param)}}}),this.cloneFrom=this.updates=null)}}class O{constructor(){this.map=new Map}set(B,ze){return this.map.set(B,ze),this}get(B){return this.map.has(B)||this.map.set(B,B.defaultValue()),this.map.get(B)}delete(B){return this.map.delete(B),this}has(B){return this.map.has(B)}keys(){return this.map.keys()}}function x(ne){return typeof ArrayBuffer<"u"&&ne instanceof ArrayBuffer}function de(ne){return typeof Blob<"u"&&ne instanceof Blob}function ue(ne){return typeof FormData<"u"&&ne instanceof FormData}class me{constructor(B,ze,$e,Mt){let on;if(this.url=ze,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=B.toUpperCase(),function P(ne){switch(ne){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Mt?(this.body=void 0!==$e?$e:null,on=Mt):on=$e,on&&(this.reportProgress=!!on.reportProgress,this.withCredentials=!!on.withCredentials,on.responseType&&(this.responseType=on.responseType),on.headers&&(this.headers=on.headers),on.context&&(this.context=on.context),on.params&&(this.params=on.params)),this.headers||(this.headers=new U),this.context||(this.context=new O),this.params){const Zt=this.params.toString();if(0===Zt.length)this.urlWithParams=ze;else{const Wn=ze.indexOf("?");this.urlWithParams=ze+(-1===Wn?"?":Wn_o.set(Yo,B.setHeaders[Yo]),pn)),B.setParams&&(qn=Object.keys(B.setParams).reduce((_o,Yo)=>_o.set(Yo,B.setParams[Yo]),qn)),new me(ze,$e,on,{params:qn,headers:pn,context:co,reportProgress:Wn,responseType:Mt,withCredentials:Zt})}}var re=(()=>((re=re||{})[re.Sent=0]="Sent",re[re.UploadProgress=1]="UploadProgress",re[re.ResponseHeader=2]="ResponseHeader",re[re.DownloadProgress=3]="DownloadProgress",re[re.Response=4]="Response",re[re.User=5]="User",re))();class he{constructor(B,ze=200,$e="OK"){this.headers=B.headers||new U,this.status=void 0!==B.status?B.status:ze,this.statusText=B.statusText||$e,this.url=B.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends he{constructor(B={}){super(B),this.type=re.ResponseHeader}clone(B={}){return new Me({headers:B.headers||this.headers,status:void 0!==B.status?B.status:this.status,statusText:B.statusText||this.statusText,url:B.url||this.url||void 0})}}class Oe extends he{constructor(B={}){super(B),this.type=re.Response,this.body=void 0!==B.body?B.body:null}clone(B={}){return new Oe({body:void 0!==B.body?B.body:this.body,headers:B.headers||this.headers,status:void 0!==B.status?B.status:this.status,statusText:B.statusText||this.statusText,url:B.url||this.url||void 0})}}class kt extends he{constructor(B){super(B,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${B.url||"(unknown url)"}`:`Http failure response for ${B.url||"(unknown url)"}: ${B.status} ${B.statusText}`,this.error=B.error||null}}function It(ne,B){return{body:B,headers:ne.headers,context:ne.context,observe:ne.observe,params:ne.params,reportProgress:ne.reportProgress,responseType:ne.responseType,withCredentials:ne.withCredentials}}let Tt=(()=>{class ne{constructor(ze){this.handler=ze}request(ze,$e,Mt={}){let on;if(ze instanceof me)on=ze;else{let pn,qn;pn=Mt.headers instanceof U?Mt.headers:new U(Mt.headers),Mt.params&&(qn=Mt.params instanceof F?Mt.params:new F({fromObject:Mt.params})),on=new me(ze,$e,void 0!==Mt.body?Mt.body:null,{headers:pn,context:Mt.context,params:qn,reportProgress:Mt.reportProgress,responseType:Mt.responseType||"json",withCredentials:Mt.withCredentials})}const Zt=(0,i.of)(on).pipe((0,s.b)(pn=>this.handler.handle(pn)));if(ze instanceof me||"events"===Mt.observe)return Zt;const Wn=Zt.pipe((0,L.h)(pn=>pn instanceof Oe));switch(Mt.observe||"body"){case"body":switch(on.responseType){case"arraybuffer":return Wn.pipe((0,Q.U)(pn=>{if(null!==pn.body&&!(pn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pn.body}));case"blob":return Wn.pipe((0,Q.U)(pn=>{if(null!==pn.body&&!(pn.body instanceof Blob))throw new Error("Response is not a Blob.");return pn.body}));case"text":return Wn.pipe((0,Q.U)(pn=>{if(null!==pn.body&&"string"!=typeof pn.body)throw new Error("Response is not a string.");return pn.body}));default:return Wn.pipe((0,Q.U)(pn=>pn.body))}case"response":return Wn;default:throw new Error(`Unreachable: unhandled observe type ${Mt.observe}}`)}}delete(ze,$e={}){return this.request("DELETE",ze,$e)}get(ze,$e={}){return this.request("GET",ze,$e)}head(ze,$e={}){return this.request("HEAD",ze,$e)}jsonp(ze,$e){return this.request("JSONP",ze,{params:(new F).append($e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ze,$e={}){return this.request("OPTIONS",ze,$e)}patch(ze,$e,Mt={}){return this.request("PATCH",ze,It(Mt,$e))}post(ze,$e,Mt={}){return this.request("POST",ze,It(Mt,$e))}put(ze,$e,Mt={}){return this.request("PUT",ze,It(Mt,$e))}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(N))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function yt(ne,B){return B(ne)}function je(ne,B){return(ze,$e)=>B.intercept(ze,{handle:Mt=>ne(Mt,$e)})}const Xt=new t.OlP(""),_n=new t.OlP(""),On=new t.OlP("");function Jt(){let ne=null;return(B,ze)=>{null===ne&&(ne=((0,t.f3M)(Xt,{optional:!0})??[]).reduceRight(je,yt));const $e=(0,t.f3M)(t.HDt),Mt=$e.add();return ne(B,ze).pipe((0,Y.x)(()=>$e.remove(Mt)))}}let He,Nt=(()=>{class ne extends N{constructor(ze,$e){super(),this.backend=ze,this.injector=$e,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(ze){if(null===this.chain){const Mt=Array.from(new Set([...this.injector.get(_n),...this.injector.get(On,[])]));this.chain=Mt.reduceRight((on,Zt)=>function Ut(ne,B,ze){return($e,Mt)=>ze.runInContext(()=>B($e,on=>ne(on,Mt)))}(on,Zt,this.injector),yt)}const $e=this.pendingTasks.add();return this.chain(ze,Mt=>this.backend.handle(Mt)).pipe((0,Y.x)(()=>this.pendingTasks.remove($e)))}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(V),t.LFG(t.lqb))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ye=0;class te{}function ae(){return"object"==typeof window?window:{}}let De=(()=>{class ne{constructor(ze,$e){this.callbackMap=ze,this.document=$e,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Ye++}handle(ze){if("JSONP"!==ze.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ze.responseType)throw new Error("JSONP requests must use Json response type.");if(ze.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new v.y($e=>{const Mt=this.nextCallback(),on=ze.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Mt}$1`),Zt=this.document.createElement("script");Zt.src=on;let Wn=null,pn=!1;this.callbackMap[Mt]=Yo=>{delete this.callbackMap[Mt],Wn=Yo,pn=!0};const qn=()=>{Zt.parentNode&&Zt.parentNode.removeChild(Zt),delete this.callbackMap[Mt]};return Zt.addEventListener("load",Yo=>{this.resolvedPromise.then(()=>{qn(),pn?($e.next(new Oe({body:Wn,status:200,statusText:"OK",url:on})),$e.complete()):$e.error(new kt({url:on,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Zt.addEventListener("error",Yo=>{qn(),$e.error(new kt({error:Yo,status:0,statusText:"JSONP Error",url:on}))}),this.document.body.appendChild(Zt),$e.next({type:re.Sent}),()=>{pn||this.removeListeners(Zt),qn()}})}removeListeners(ze){He||(He=this.document.implementation.createHTMLDocument()),He.adoptNode(ze)}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(te),t.LFG(S.K0))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function Ge(ne,B){return"JSONP"===ne.method?(0,t.f3M)(De).handle(ne):B(ne)}const sn=/^\)\]\}',?\n/;let st=(()=>{class ne{constructor(ze){this.xhrFactory=ze}handle(ze){if("JSONP"===ze.method)throw new t.vHH(-2800,!1);const $e=this.xhrFactory;return($e.\u0275loadImpl?(0,d.D)($e.\u0275loadImpl()):(0,i.of)(null)).pipe((0,A.w)(()=>new v.y(on=>{const Zt=$e.build();if(Zt.open(ze.method,ze.urlWithParams),ze.withCredentials&&(Zt.withCredentials=!0),ze.headers.forEach((mo,Xn)=>Zt.setRequestHeader(mo,Xn.join(","))),ze.headers.has("Accept")||Zt.setRequestHeader("Accept","application/json, text/plain, */*"),!ze.headers.has("Content-Type")){const mo=ze.detectContentTypeHeader();null!==mo&&Zt.setRequestHeader("Content-Type",mo)}if(ze.responseType){const mo=ze.responseType.toLowerCase();Zt.responseType="json"!==mo?mo:"text"}const Wn=ze.serializeBody();let pn=null;const qn=()=>{if(null!==pn)return pn;const mo=Zt.statusText||"OK",Xn=new U(Zt.getAllResponseHeaders()),di=function yn(ne){return"responseURL"in ne&&ne.responseURL?ne.responseURL:/^X-Request-URL:/m.test(ne.getAllResponseHeaders())?ne.getResponseHeader("X-Request-URL"):null}(Zt)||ze.url;return pn=new Me({headers:Xn,status:Zt.status,statusText:mo,url:di}),pn},co=()=>{let{headers:mo,status:Xn,statusText:di,url:pi}=qn(),wo=null;204!==Xn&&(wo=typeof Zt.response>"u"?Zt.responseText:Zt.response),0===Xn&&(Xn=wo?200:0);let So=Xn>=200&&Xn<300;if("json"===ze.responseType&&"string"==typeof wo){const Eo=wo;wo=wo.replace(sn,"");try{wo=""!==wo?JSON.parse(wo):null}catch(Pi){wo=Eo,So&&(So=!1,wo={error:Pi,text:wo})}}So?(on.next(new Oe({body:wo,headers:mo,status:Xn,statusText:di,url:pi||void 0})),on.complete()):on.error(new kt({error:wo,headers:mo,status:Xn,statusText:di,url:pi||void 0}))},_o=mo=>{const{url:Xn}=qn(),di=new kt({error:mo,status:Zt.status||0,statusText:Zt.statusText||"Unknown Error",url:Xn||void 0});on.error(di)};let Yo=!1;const Ko=mo=>{Yo||(on.next(qn()),Yo=!0);let Xn={type:re.DownloadProgress,loaded:mo.loaded};mo.lengthComputable&&(Xn.total=mo.total),"text"===ze.responseType&&Zt.responseText&&(Xn.partialText=Zt.responseText),on.next(Xn)},ui=mo=>{let Xn={type:re.UploadProgress,loaded:mo.loaded};mo.lengthComputable&&(Xn.total=mo.total),on.next(Xn)};return Zt.addEventListener("load",co),Zt.addEventListener("error",_o),Zt.addEventListener("timeout",_o),Zt.addEventListener("abort",_o),ze.reportProgress&&(Zt.addEventListener("progress",Ko),null!==Wn&&Zt.upload&&Zt.upload.addEventListener("progress",ui)),Zt.send(Wn),on.next({type:re.Sent}),()=>{Zt.removeEventListener("error",_o),Zt.removeEventListener("abort",_o),Zt.removeEventListener("load",co),Zt.removeEventListener("timeout",_o),ze.reportProgress&&(Zt.removeEventListener("progress",Ko),null!==Wn&&Zt.upload&&Zt.upload.removeEventListener("progress",ui)),Zt.readyState!==Zt.DONE&&Zt.abort()}})))}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(S.JF))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const it=new t.OlP("XSRF_ENABLED"),lt="XSRF-TOKEN",Pt=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>lt}),wt="X-XSRF-TOKEN",Vt=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>wt});class jt{}let Ke=(()=>{class ne{constructor(ze,$e,Mt){this.doc=ze,this.platform=$e,this.cookieName=Mt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ze=this.doc.cookie||"";return ze!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,S.Mx)(ze,this.cookieName),this.lastCookieString=ze),this.lastToken}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(S.K0),t.LFG(t.Lbi),t.LFG(Pt))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function K(ne,B){const ze=ne.url.toLowerCase();if(!(0,t.f3M)(it)||"GET"===ne.method||"HEAD"===ne.method||ze.startsWith("http://")||ze.startsWith("https://"))return B(ne);const $e=(0,t.f3M)(jt).getToken(),Mt=(0,t.f3M)(Vt);return null!=$e&&!ne.headers.has(Mt)&&(ne=ne.clone({headers:ne.headers.set(Mt,$e)})),B(ne)}let w=(()=>{class ne{constructor(ze){this.injector=ze}intercept(ze,$e){return this.injector.runInContext(()=>K(ze,Mt=>$e.handle(Mt)))}}return ne.\u0275fac=function(ze){return new(ze||ne)(t.LFG(t.lqb))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac}),ne})();var J=(()=>((J=J||{})[J.Interceptors=0]="Interceptors",J[J.LegacyInterceptors=1]="LegacyInterceptors",J[J.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",J[J.NoXsrfProtection=3]="NoXsrfProtection",J[J.JsonpSupport=4]="JsonpSupport",J[J.RequestsMadeViaParent=5]="RequestsMadeViaParent",J[J.Fetch=6]="Fetch",J))();function Te(ne,B){return{\u0275kind:ne,\u0275providers:B}}function zt(...ne){const B=[Tt,st,Nt,{provide:N,useExisting:Nt},{provide:V,useExisting:st},{provide:_n,useValue:K,multi:!0},{provide:it,useValue:!0},{provide:jt,useClass:Ke}];for(const ze of ne)B.push(...ze.\u0275providers);return(0,t.MR2)(B)}const qe=new t.OlP("LEGACY_INTERCEPTOR_FN");function Rt({cookieName:ne,headerName:B}){const ze=[];return void 0!==ne&&ze.push({provide:Pt,useValue:ne}),void 0!==B&&ze.push({provide:Vt,useValue:B}),Te(J.CustomXsrfConfiguration,ze)}let ce=(()=>{class ne{static disable(){return{ngModule:ne,providers:[Te(J.NoXsrfProtection,[{provide:it,useValue:!1}]).\u0275providers]}}static withOptions(ze={}){return{ngModule:ne,providers:Rt(ze).\u0275providers}}}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({providers:[w,{provide:Xt,useExisting:w,multi:!0},{provide:jt,useClass:Ke},Rt({cookieName:lt,headerName:wt}).\u0275providers,{provide:it,useValue:!0}]}),ne})(),_e=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({providers:[zt(Te(J.LegacyInterceptors,[{provide:qe,useFactory:Jt},{provide:_n,useExisting:qe,multi:!0}]))]}),ne})(),mt=(()=>{class ne{}return ne.\u0275fac=function(ze){return new(ze||ne)},ne.\u0275mod=t.oAB({type:ne}),ne.\u0275inj=t.cJS({providers:[Te(J.JsonpSupport,[De,{provide:te,useFactory:ae},{provide:_n,useValue:Ge,multi:!0}]).\u0275providers]}),ne})()},5879:(Ot,be,a)=>{a.d(be,{$8M:()=>yc,$WT:()=>Jo,$Z:()=>Sh,AFp:()=>Kt,ALo:()=>f6,AaK:()=>V,Akn:()=>Uc,AsE:()=>s0,B6R:()=>tr,BQk:()=>$4,CHM:()=>Zc,CRH:()=>I6,Ckj:()=>Ku,DdM:()=>o6,Dn7:()=>v6,DyG:()=>mu,EEQ:()=>qi,EJc:()=>x_,EiD:()=>ld,EpF:()=>Tf,F$t:()=>Df,F4k:()=>Mf,FYo:()=>rh,FiY:()=>Ba,G48:()=>K_,Gf:()=>w6,GfV:()=>sh,GkF:()=>Q2,Gpc:()=>e,Gre:()=>a3,GuJ:()=>ne,HDt:()=>tm,Hsn:()=>Of,Ikx:()=>a0,JOm:()=>Br,JVY:()=>up,JZr:()=>Z,Jf7:()=>uh,Jzz:()=>c3,KtG:()=>qs,L6k:()=>dp,LAX:()=>pp,LFG:()=>rt,LSH:()=>$s,Lbi:()=>En,Lck:()=>zv,MAs:()=>yf,MGl:()=>Y4,MMx:()=>Z3,MR2:()=>Zl,NdJ:()=>W2,O4$:()=>pt,Ojb:()=>vn,OlP:()=>ci,Oqu:()=>r0,P3R:()=>pd,PXZ:()=>H_,Q6J:()=>Y2,QGY:()=>j2,QbO:()=>nn,Qsj:()=>a4,R0b:()=>xs,RDi:()=>tc,Rgc:()=>e4,SBq:()=>vd,Sil:()=>O_,Suo:()=>P6,TTD:()=>ws,TgZ:()=>V4,Tol:()=>Uf,Udp:()=>t0,UuU:()=>nh,VKq:()=>i6,VuI:()=>T5,W1O:()=>L6,WD2:()=>Ar,WFA:()=>Z2,WLB:()=>r6,X6Q:()=>Z_,XFs:()=>ae,Xpm:()=>Si,Xq5:()=>tf,Xts:()=>Ju,Y36:()=>s1,YKP:()=>j3,YNc:()=>gf,Yjl:()=>dr,Yz7:()=>Xt,Z0I:()=>Nt,ZZ4:()=>Y0,_Bn:()=>Q3,_UZ:()=>G2,_Vd:()=>t1,_c5:()=>p5,_uU:()=>Jf,aQg:()=>U0,c2e:()=>em,cJS:()=>On,cg1:()=>l0,d8E:()=>c0,dDg:()=>k_,dqk:()=>st,dwT:()=>Tg,eBb:()=>Nd,eFA:()=>mm,eJc:()=>x0,ekj:()=>n0,eoX:()=>dm,f3M:()=>St,g9A:()=>mn,gM2:()=>_6,h0i:()=>jp,hGG:()=>h5,hYB:()=>J2,hij:()=>Q4,iGM:()=>O6,ifc:()=>Ht,ip1:()=>X6,jDz:()=>K3,kEZ:()=>s6,kL8:()=>_3,l5B:()=>a6,lG2:()=>ur,lcZ:()=>m6,lqb:()=>g,lri:()=>lm,mCW:()=>$c,n5z:()=>pu,n_E:()=>J4,oAB:()=>Ei,oJD:()=>Bd,oxw:()=>xf,pB0:()=>Ql,q3G:()=>Ui,qFp:()=>b5,qLn:()=>o1,qOj:()=>N2,qZA:()=>B4,qbA:()=>c6,qzn:()=>Hc,rWj:()=>um,rg0:()=>Sr,s9C:()=>K2,sBO:()=>J_,s_b:()=>X4,soG:()=>t2,tBr:()=>gl,tb:()=>k0,tp0:()=>Ha,uIk:()=>k2,vHH:()=>F,vpe:()=>Xl,wAp:()=>Do,xi3:()=>g6,xp6:()=>vh,ynx:()=>H4,z2F:()=>Kp,z3N:()=>zs,zSh:()=>gd,zs3:()=>rc});var t=a(8645),i=a(7394),v=a(5619),d=a(5592),s=a(3019),L=a(2096),Q=a(3020),Y=a(4664),A=a(3997);function S(n){for(let o in n)if(n[o]===S)return o;throw Error("Could not find renamed property on target object.")}function N(n,o){for(const r in o)o.hasOwnProperty(r)&&!n.hasOwnProperty(r)&&(n[r]=o[r])}function V(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(V).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const o=n.toString();if(null==o)return""+o;const r=o.indexOf("\n");return-1===r?o:o.substring(0,r)}function U(n,o){return null==n||""===n?null===o?"":o:null==o||""===o?n:n+" "+o}const M=S({__forward_ref__:S});function e(n){return n.__forward_ref__=e,n.toString=function(){return V(this())},n}function I(n){return k(n)?n():n}function k(n){return"function"==typeof n&&n.hasOwnProperty(M)&&n.__forward_ref__===e}function ge(n){return n&&!!n.\u0275providers}const Z="https://g.co/ng/security#xss";class F extends Error{constructor(o,r){super(function R(n,o){return`NG0${Math.abs(n)}${o?": "+o:""}`}(o,r)),this.code=o}}function O(n){return"string"==typeof n?n:null==n?"":String(n)}function j(n,o){throw new F(-201,!1)}function et(n,o){null==n&&function Re(n,o,r,l){throw new Error(`ASSERTION ERROR: ${n}`+(null==l?"":` [Expected=> ${r} ${l} ${o} <=Actual]`))}(o,n,null,"!=")}function Xt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function On(n){return{providers:n.providers||[],imports:n.imports||[]}}function Jt(n){return Ye(n,We)||Ye(n,xe)}function Nt(n){return null!==Jt(n)}function Ye(n,o){return n.hasOwnProperty(o)?n[o]:null}function Pe(n){return n&&(n.hasOwnProperty(Be)||n.hasOwnProperty(te))?n[Be]:null}const We=S({\u0275prov:S}),Be=S({\u0275inj:S}),xe=S({ngInjectableDef:S}),te=S({ngInjectorDef:S});var ae=(()=>((ae=ae||{})[ae.Default=0]="Default",ae[ae.Host=1]="Host",ae[ae.Self=2]="Self",ae[ae.SkipSelf=4]="SkipSelf",ae[ae.Optional=8]="Optional",ae))();let De;function Ct(n){const o=De;return De=n,o}function sn(n,o,r){const l=Jt(n);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:r&ae.Optional?null:void 0!==o?o:void j(V(n))}const st=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),wt={},Vt="__NG_DI_FLAG__",jt="ngTempTokenPath",K=/\n/gm,J="__source";let Te;function nt(n){const o=Te;return Te=n,o}function qe(n,o=ae.Default){if(void 0===Te)throw new F(-203,!1);return null===Te?sn(n,void 0,o):Te.get(n,o&ae.Optional?null:void 0,o)}function rt(n,o=ae.Default){return(function Ge(){return De}()||qe)(I(n),o)}function St(n,o=ae.Default){return rt(n,gn(o))}function gn(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Ze(n){const o=[];for(let r=0;r((at=at||{})[at.OnPush=0]="OnPush",at[at.Default=1]="Default",at))(),Ht=(()=>{return(n=Ht||(Ht={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Ht;var n})();const un={},Lt=[],dt=S({\u0275cmp:S}),ft=S({\u0275dir:S}),ne=S({\u0275pipe:S}),B=S({\u0275mod:S}),ze=S({\u0275fac:S}),$e=S({__NG_ELEMENT_ID__:S}),Mt=S({__NG_ENV_ID__:S});function on(n,o,r){let l=n.length;for(;;){const f=n.indexOf(o,r);if(-1===f)return f;if(0===f||n.charCodeAt(f-1)<=32){const _=o.length;if(f+_===l||n.charCodeAt(f+_)<=32)return f}r=f+1}}function Zt(n,o,r){let l=0;for(;lo){b=_-1;break}}}for(;__?"":f[xt+1].toLowerCase();const ln=8&l?en:null;if(ln&&-1!==on(ln,Ie,0)||2&l&&Ie!==en){if(Xn(l))return!1;b=!0}}}}else{if(!b&&!Xn(l)&&!Xn(oe))return!1;if(b&&Xn(oe))continue;b=!1,l=oe|1&l}}return Xn(l)||b}function Xn(n){return 0==(1&n)}function di(n,o,r,l){if(null===o)return-1;let f=0;if(l||!r){let _=!1;for(;f-1)for(r++;r0?'="'+$+'"':"")+"]"}else 8&l?f+="."+b:4&l&&(f+=" "+b);else""!==f&&!Xn(b)&&(o+=Xo(_,f),f=""),l=b,_=_||!Xn(l);r++}return""!==f&&(o+=Xo(_,f)),o}function Si(n){return Ae(()=>{const o=Wo(n),r={...o,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===at.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ht.Emulated,styles:n.styles||Lt,_:null,schemas:n.schemas||null,tView:null,id:""};qo(r);const l=n.dependencies;return r.directiveDefs=Ti(l,!1),r.pipeDefs=Ti(l,!0),r.id=function Hi(n){let o=0;const r=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const f of r)o=Math.imul(31,o)+f.charCodeAt(0)<<0;return o+=2147483648,"c"+o}(r),r})}function tr(n,o,r){const l=n.\u0275cmp;l.directiveDefs=Ti(o,!1),l.pipeDefs=Ti(r,!0)}function Gi(n){return lo(n)||Oo(n)}function Or(n){return null!==n}function Ei(n){return Ae(()=>({type:n.type,bootstrap:n.bootstrap||Lt,declarations:n.declarations||Lt,imports:n.imports||Lt,exports:n.exports||Lt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Qi(n,o){if(null==n)return un;const r={};for(const l in n)if(n.hasOwnProperty(l)){let f=n[l],_=f;Array.isArray(f)&&(_=f[1],f=f[0]),r[f]=l,o&&(o[f]=_)}return r}function ur(n){return Ae(()=>{const o=Wo(n);return qo(o),o})}function dr(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function lo(n){return n[dt]||null}function Oo(n){return n[ft]||null}function Po(n){return n[ne]||null}function Jo(n){const o=lo(n)||Oo(n)||Po(n);return null!==o&&o.standalone}function Ro(n,o){const r=n[B]||null;if(!r&&!0===o)throw new Error(`Type ${V(n)} does not have '\u0275mod' property.`);return r}function Wo(n){const o={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:o,inputTransforms:null,inputConfig:n.inputs||un,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||Lt,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qi(n.inputs,o),outputs:Qi(n.outputs)}}function qo(n){n.features?.forEach(o=>o(n))}function Ti(n,o){if(!n)return null;const r=o?Po:Gi;return()=>("function"==typeof n?n():n).map(l=>r(l)).filter(Or)}const ei=0,Yn=1,so=2,Ue=3,se=4,we=5,Qe=6,bt=7,Bt=8,tn=9,fn=10,qt=11,Cn=12,Nn=13,Sn=14,dn=15,xn=16,Qn=17,In=18,Vn=19,Un=20,jn=21,eo=22,Co=23,yo=24,Kn=25,Mo=1,Go=2,To=7,_i=9,Lo=11;function ii(n){return Array.isArray(n)&&"object"==typeof n[Mo]}function gi(n){return Array.isArray(n)&&!0===n[Mo]}function nr(n){return 0!=(4&n.flags)}function Ai(n){return n.componentOffset>-1}function Zi(n){return 1==(1&n.flags)}function hi(n){return!!n.template}function ke(n){return 0!=(512&n[so])}function si(n,o){return n.hasOwnProperty(ze)?n[ze]:null}let us=st.WeakRef??class Gs{constructor(o){this.ref=o}deref(){return this.ref}},Yr=0,or=null,Ur=!1;function ri(n){const o=or;return or=n,o}class pr{constructor(){this.id=Yr++,this.ref=function es(n){return new us(n)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[o,r]of this.producers){const l=r.producerNode.deref();if(null!=l&&r.atTrackingVersion===this.trackingVersion){if(l.producerPollStatus(r.seenValueVersion))return!0}else this.producers.delete(o),l?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const o=Ur;Ur=!0;try{for(const[r,l]of this.consumers){const f=l.consumerNode.deref();null!=f&&f.trackingVersion===l.atTrackingVersion?f.onConsumerDependencyMayHaveChanged():(this.consumers.delete(r),f?.producers.delete(this.id))}}finally{Ur=o}}producerAccessed(){if(Ur)throw new Error("");if(null===or)return;let o=or.producers.get(this.id);void 0===o?(o={consumerNode:or.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:or.trackingVersion},or.producers.set(this.id,o),this.consumers.set(or.id,o)):(o.seenValueVersion=this.valueVersion,o.atTrackingVersion=or.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==or?.consumerAllowSignalWrites}producerPollStatus(o){return this.valueVersion!==o||(this.onProducerUpdateValueVersion(),this.valueVersion!==o)}}let ds=null;function Sr(n){const o=ri(null);try{return n()}finally{ri(o)}}const ir=()=>{};class ts extends pr{constructor(o,r,l){super(),this.watch=o,this.schedule=r,this.dirty=!1,this.cleanupFn=ir,this.registerOnCleanup=f=>{this.cleanupFn=f},this.consumerAllowSignalWrites=l}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const o=ri(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=ir,this.watch(this.registerOnCleanup)}finally{ri(o)}}cleanup(){this.cleanupFn()}}class Ar{constructor(o,r,l){this.previousValue=o,this.currentValue=r,this.firstChange=l}isFirstChange(){return this.firstChange}}function ws(){return ns}function ns(n){return n.type.prototype.ngOnChanges&&(n.setInput=ps),js}function js(){const n=xa(this),o=n?.current;if(o){const r=n.previous;if(r===un)n.previous=o;else for(let l in o)r[l]=o[l];n.current=null,this.ngOnChanges(o)}}function ps(n,o,r,l){const f=this.declaredInputs[r],_=xa(n)||function Ws(n,o){return n[hs]=o}(n,{previous:un,current:null}),b=_.current||(_.current={}),$=_.previous,oe=$[f];b[f]=new Ar(oe&&oe.currentValue,o,$===un),n[l]=o}ws.ngInherit=!0;const hs="__ngSimpleChanges__";function xa(n){return n[hs]||null}const $i=function(n,o,r){},Ni="svg";function ai(n){for(;Array.isArray(n);)n=n[ei];return n}function ie(n,o){return ai(o[n])}function Le(n,o){return ai(o[n.index])}function tt(n,o){return n.data[o]}function At(n,o){return n[o]}function hn(n,o){const r=o[n];return ii(r)?r:r[ei]}function go(n,o){return null==o?null:n[o]}function Vo(n){n[Qn]=0}function Io(n){1024&n[so]||(n[so]|=1024,jo(n,1))}function vi(n){1024&n[so]&&(n[so]&=-1025,jo(n,-1))}function jo(n,o){let r=n[Ue];if(null===r)return;r[we]+=o;let l=r;for(r=r[Ue];null!==r&&(1===o&&1===l[we]||-1===o&&0===l[we]);)r[we]+=o,l=r,r=r[Ue]}const ao={lFrame:tu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Da(){return ao.bindingsEnabled}function Qr(){return null!==ao.skipHydrationRootTNode}function wn(){return ao.lFrame.lView}function Bo(){return ao.lFrame.tView}function Zc(n){return ao.lFrame.contextLView=n,n[Bt]}function qs(n){return ao.lFrame.contextLView=null,n}function xi(){let n=os();for(;null!==n&&64===n.type;)n=n.parent;return n}function os(){return ao.lFrame.currentTNode}function ar(n,o){const r=ao.lFrame;r.currentTNode=n,r.isParent=o}function Xs(){return ao.lFrame.isParent}function Kc(){ao.lFrame.isParent=!1}function Ji(){const n=ao.lFrame;let o=n.bindingRootIndex;return-1===o&&(o=n.bindingRootIndex=n.tView.bindingStartIndex),o}function fs(){return ao.lFrame.bindingIndex++}function Vr(n){const o=ao.lFrame,r=o.bindingIndex;return o.bindingIndex=o.bindingIndex+n,r}function Xc(n,o){const r=ao.lFrame;r.bindingIndex=r.bindingRootIndex=n,wa(o)}function wa(n){ao.lFrame.currentDirectiveIndex=n}function Pa(n){const o=ao.lFrame.currentDirectiveIndex;return-1===o?null:n[o]}function Ia(){return ao.lFrame.currentQueryIndex}function Aa(n){ao.lFrame.currentQueryIndex=n}function hc(n){const o=n[Yn];return 2===o.type?o.declTNode:1===o.type?n[Qe]:null}function Fa(n,o,r){if(r&ae.SkipSelf){let f=o,_=n;for(;!(f=f.parent,null!==f||r&ae.Host||(f=hc(_),null===f||(_=_[Sn],10&f.type))););if(null===f)return!1;o=f,n=_}const l=ao.lFrame=fc();return l.currentTNode=o,l.lView=n,!0}function tl(n){const o=fc(),r=n[Yn];ao.lFrame=o,o.currentTNode=r.firstChild,o.lView=n,o.tView=r,o.contextLView=n,o.bindingIndex=r.bindingStartIndex,o.inI18n=!1}function fc(){const n=ao.lFrame,o=null===n?null:n.child;return null===o?tu(n):o}function tu(n){const o={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:n,child:null,inI18n:!1};return null!==n&&(n.child=o),o}function nu(){const n=ao.lFrame;return ao.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ou=nu;function nl(){const n=nu();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function D(){return ao.lFrame.selectedIndex}function le(n){ao.lFrame.selectedIndex=n}function Ne(){const n=ao.lFrame;return tt(n.tView,n.selectedIndex)}function pt(){ao.lFrame.currentNamespace=Ni}let ro=!0;function Ho(){return ro}function Ii(n){ro=n}function Zr(n,o){for(let r=o.directiveStart,l=o.directiveEnd;r=l)break}else o[oe]<0&&(n[Qn]+=65536),($<_||-1==_)&&(f1(n,r,o,oe),n[Qn]=(4294901760&n[Qn])+oe+2),oe++}function h1(n,o){$i(4,n,o);const r=ri(null);try{o.call(n)}finally{ri(r),$i(5,n,o)}}function f1(n,o,r,l){const f=r[l]<0,_=r[l+1],$=n[f?-r[l]:r[l]];f?n[so]>>13>16&&(3&n[so])===o&&(n[so]+=8192,h1($,_)):h1($,_)}const Na=-1;class Is{constructor(o,r,l){this.factory=o,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=l}}function su(n){return n!==Na}function il(n){return 32767&n}function ta(n,o){let r=function g1(n){return n>>16}(n),l=o;for(;r>0;)l=l[Sn],r--;return l}let rl=!0;function sl(n){const o=rl;return rl=n,o}const v1=255,_1=5;let Sd=0;const Jr={};function al(n,o){const r=gc(n,o);if(-1!==r)return r;const l=o[Yn];l.firstCreatePass&&(n.injectorIndex=o.length,mc(l.data,n),mc(o,null),mc(l.blueprint,null));const f=na(n,o),_=n.injectorIndex;if(su(f)){const b=il(f),$=ta(f,o),oe=$[Yn].data;for(let Ie=0;Ie<8;Ie++)o[_+Ie]=$[b+Ie]|oe[b+Ie]}return o[_+8]=f,_}function mc(n,o){n.push(0,0,0,0,0,0,0,0,o)}function gc(n,o){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===o[n.injectorIndex+8]?-1:n.injectorIndex}function na(n,o){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let r=0,l=null,f=o;for(;null!==f;){if(l=fu(f),null===l)return Na;if(r++,f=f[Sn],-1!==l.injectorIndex)return l.injectorIndex|r<<16}return Na}function La(n,o,r){!function Ed(n,o,r){let l;"string"==typeof r?l=r.charCodeAt(0)||0:r.hasOwnProperty($e)&&(l=r[$e]),null==l&&(l=r[$e]=Sd++);const f=l&v1;o.data[n+(f>>_1)]|=1<=0?o&v1:du:o}(r);if("function"==typeof _){if(!Fa(o,n,l))return l&ae.Host?oa(f,0,l):au(o,r,l,f);try{const b=_(l);if(null!=b||l&ae.Optional)return b;j()}finally{ou()}}else if("number"==typeof _){let b=null,$=gc(n,o),oe=Na,Ie=l&ae.Host?o[dn][Qe]:null;for((-1===$||l&ae.SkipSelf)&&(oe=-1===$?na(n,o):o[$+8],oe!==Na&&ll(l,!1)?(b=o[Yn],$=il(oe),o=ta(oe,o)):$=-1);-1!==$;){const ot=o[Yn];if(cl(_,$,ot.data)){const xt=vc($,o,r,b,l,Ie);if(xt!==Jr)return xt}oe=o[$+8],oe!==Na&&ll(l,o[Yn].data[$+8]===Ie)&&cl(_,$,o)?(b=ot,$=il(oe),o=ta(oe,o)):$=-1}}return f}function vc(n,o,r,l,f,_){const b=o[Yn],$=b.data[n+8],ot=ka($,b,r,null==l?Ai($)&&rl:l!=b&&0!=(3&$.type),f&ae.Host&&_===$);return null!==ot?is(o,b,ot,$):Jr}function ka(n,o,r,l,f){const _=n.providerIndexes,b=o.data,$=1048575&_,oe=n.directiveStart,ot=_>>20,en=f?$+ot:n.directiveEnd;for(let ln=l?$:$+ot;ln=oe&&Dn.type===r)return ln}if(f){const ln=b[oe];if(ln&&hi(ln)&&ln.type===r)return oe}return null}function is(n,o,r,l){let f=n[r];const _=o.data;if(function ol(n){return n instanceof Is}(f)){const b=f;b.resolving&&function x(n,o){const r=o?`. Dependency path: ${o.join(" > ")} > ${n}`:"";throw new F(-200,`Circular dependency in DI detected for ${n}${r}`)}(function P(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():O(n)}(_[r]));const $=sl(b.canSeeViewProviders);b.resolving=!0;const oe=b.injectImpl?Ct(b.injectImpl):null;Fa(n,l,ae.Default);try{f=n[r]=b.factory(void 0,_,n,l),o.firstCreatePass&&r>=l.directiveStart&&function Wr(n,o,r){const{ngOnChanges:l,ngOnInit:f,ngDoCheck:_}=o.type.prototype;if(l){const b=ns(o);(r.preOrderHooks??=[]).push(n,b),(r.preOrderCheckHooks??=[]).push(n,b)}f&&(r.preOrderHooks??=[]).push(0-n,f),_&&((r.preOrderHooks??=[]).push(n,_),(r.preOrderCheckHooks??=[]).push(n,_))}(r,_[r],o)}finally{null!==oe&&Ct(oe),sl($),b.resolving=!1,ou()}}return f}function cl(n,o,r){return!!(r[o+(n>>_1)]&1<{const o=n.prototype.constructor,r=o[ze]||_c(o),l=Object.prototype;let f=Object.getPrototypeOf(n.prototype).constructor;for(;f&&f!==l;){const _=f[ze]||_c(f);if(_&&_!==r)return _;f=Object.getPrototypeOf(f)}return _=>new _})}function _c(n){return k(n)?()=>{const o=_c(I(n));return o&&o()}:si(n)}function fu(n){const o=n[Yn],r=o.type;return 2===r?o.declTNode:1===r?n[Qe]:null}function yc(n){return function y1(n,o){if("class"===o)return n.classes;if("style"===o)return n.styles;const r=n.attrs;if(r){const l=r.length;let f=0;for(;f{const l=function Cc(n){return function(...r){if(n){const l=n(...r);for(const f in l)this[f]=l[f]}}}(o);function f(..._){if(this instanceof f)return l.apply(this,_),this;const b=new f(..._);return $.annotation=b,$;function $(oe,Ie,ot){const xt=oe.hasOwnProperty(Fs)?oe[Fs]:Object.defineProperty(oe,Fs,{value:[]})[Fs];for(;xt.length<=ot;)xt.push(null);return(xt[ot]=xt[ot]||[]).push(b),oe}}return r&&(f.prototype=Object.create(r.prototype)),f.prototype.ngMetadataName=n,f.annotationCls=f,f})}const mu=Function;function aa(n,o){n.forEach(r=>Array.isArray(r)?aa(r,o):o(r))}function dl(n,o,r){o>=n.length?n.push(r):n.splice(o,0,r)}function Ra(n,o){return o>=n.length-1?n.pop():n.splice(o,1)[0]}function ca(n,o){const r=[];for(let l=0;l=0?n[1|l]=r:(l=~l,function pl(n,o,r,l){let f=n.length;if(f==o)n.push(r,l);else if(1===f)n.push(l,n[0]),n[0]=r;else{for(f--,n.push(n[f-1],n[f]);f>o;)n[f]=n[f-2],f--;n[o]=r,n[o+1]=l}}(n,l,o,r)),l}function Tc(n,o){const r=gs(n,o);if(r>=0)return n[1|r]}function gs(n,o){return function hl(n,o,r){let l=0,f=n.length>>r;for(;f!==l;){const _=l+(f-l>>1),b=n[_<o?f=_:l=_+1}return~(f<({token:n})),-1),Ba=ut(ia("Optional"),8),Ha=ut(ia("SkipSelf"),4);function Wa(n){return 128==(128&n.flags)}var Br=(()=>((Br=Br||{})[Br.Important=1]="Important",Br[Br.DashCase=2]="DashCase",Br))();const El=/^>|^->||--!>|)/,Pu="\u200b$1\u200b";const Oc=new Map;let Au=0;function _s(n){return Oc.get(n)||null}class Nu{get lView(){return _s(this.lViewId)}constructor(o,r,l){this.lViewId=o,this.nodeIndex=r,this.native=l}}function qi(n){let o=da(n);if(o){if(ii(o)){const r=o;let l,f,_;if(ys(n)){if(l=function Lu(n,o){const r=n[Yn].components;if(r)for(let l=0;l=0){const $=ai(_[b]),oe=Pc(_,b,$);Ki($,oe),o=oe;break}}}}return o||null}function Pc(n,o,r){return new Nu(n[Vn],o,r)}const Ic="__ngContext__";function Ki(n,o){ii(o)?(n[Ic]=o[Vn],function Fu(n){Oc.set(n[Vn],n)}(o)):n[Ic]=o}function da(n){const o=n[Ic];return"number"==typeof o?_s(o):o||null}function ys(n){return n&&n.constructor&&n.constructor.\u0275cmp}function B1(n,o){const r=n[Yn];for(let l=Kn;lo.replace(Dc,Pu))}(o))}function Ka(n,o,r){return n.createElement(o,r)}function Bu(n,o){const r=n[_i],l=r.indexOf(o);vi(o),r.splice(l,1)}function Nl(n,o){if(n.length<=Lo)return;const r=Lo+o,l=n[r];if(l){const f=l[xn];null!==f&&f!==n&&Bu(f,l),o>0&&(n[r-1][se]=l[se]);const _=Ra(n,Lo+o);!function Fl(n,o){ec(n,o,o[qt],2,null,null),o[ei]=null,o[Qe]=null}(l[Yn],l);const b=_[In];null!==b&&b.detachView(_[Yn]),l[Ue]=null,l[se]=null,l[so]&=-129}return l}function Hu(n,o){if(!(256&o[so])){const r=o[qt];o[Co]?.destroy(),o[yo]?.destroy(),r.destroyNode&&ec(n,o,r,3,null,null),function j1(n){let o=n[Cn];if(!o)return Ll(n[Yn],n);for(;o;){let r=null;if(ii(o))r=o[Cn];else{const l=o[Lo];l&&(r=l)}if(!r){for(;o&&!o[se]&&o!==n;)ii(o)&&Ll(o[Yn],o),o=o[Ue];null===o&&(o=n),ii(o)&&Ll(o[Yn],o),r=o&&o[se]}o=r}}(o)}}function Ll(n,o){if(!(256&o[so])){o[so]&=-129,o[so]|=256,function J1(n,o){let r;if(null!=n&&null!=(r=n.destroyHooks))for(let l=0;l=0?l[b]():l[-b].unsubscribe(),_+=2}else r[_].call(l[r[_+1]]);null!==l&&(o[bt]=null);const f=o[jn];if(null!==f){o[jn]=null;for(let _=0;_-1){const{encapsulation:_}=n.data[l.directiveStart+f];if(_===Ht.None||_===Ht.Emulated)return null}return Le(l,r)}}(n,o.parent,r)}function Cs(n,o,r,l,f){n.insertBefore(o,r,l,f)}function Rl(n,o,r){n.appendChild(o,r)}function Zn(n,o,r,l,f){null!==l?Cs(n,o,r,l,f):Rl(n,o,r)}function Bs(n,o){return n.parentNode(o)}function Yu(n,o,r){return zo(n,o,r)}let Ja,Uu,Ul,Bc,zo=function Vl(n,o,r){return 40&n.type?Le(n,r):null};function qa(n,o,r,l){const f=kl(n,l,o),_=o[qt],$=Yu(l.parent||o[Qe],l,o);if(null!=f)if(Array.isArray(r))for(let oe=0;oen,createScript:n=>n,createScriptURL:n=>n})}catch{}return Uu}()?.createHTML(n)||n}function tc(n){Ul=n}function ma(){if(void 0!==Ul)return Ul;if(typeof document<"u")return document;throw new F(210,!1)}function Gu(){if(void 0===Bc&&(Bc=null,st.trustedTypes))try{Bc=st.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Bc}function ga(n){return Gu()?.createHTML(n)||n}function Qu(n){return Gu()?.createScriptURL(n)||n}class va{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Z})`}}class _a extends va{getTypeName(){return"HTML"}}class ap extends va{getTypeName(){return"Style"}}class cp extends va{getTypeName(){return"Script"}}class Gl extends va{getTypeName(){return"URL"}}class ya extends va{getTypeName(){return"ResourceURL"}}function zs(n){return n instanceof va?n.changingThisBreaksApplicationSecurity:n}function Hc(n,o){const r=function lp(n){return n instanceof va&&n.getTypeName()||null}(n);if(null!=r&&r!==o){if("ResourceURL"===r&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${r} (see ${Z})`)}return r===o}function up(n){return new _a(n)}function dp(n){return new ap(n)}function Nd(n){return new cp(n)}function pp(n){return new Gl(n)}function Ql(n){return new ya(n)}class Xi{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const r=(new window.DOMParser).parseFromString(Rc(o),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(o):(r.removeChild(r.firstChild),r)}catch{return null}}}class nd{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const r=this.inertDocument.createElement("template");return r.innerHTML=Rc(o),r}}const od=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $c(n){return(n=String(n)).match(od)?n:"unsafe:"+n}function Ts(n){const o={};for(const r of n.split(","))o[r]=!0;return o}function Ms(...n){const o={};for(const r of n)for(const l in r)r.hasOwnProperty(l)&&(o[l]=!0);return o}const ju=Ts("area,br,col,hr,img,wbr"),jl=Ts("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),id=Ts("rp,rt"),sd=Ms(ju,Ms(jl,Ts("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ms(id,Ts("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ms(id,jl)),Wu=Ts("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zu=Ms(Wu,Ts("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ts("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),mp=Ts("script,style,template");class Rd{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let r=o.firstChild,l=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?l=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,l&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let f=this.checkClobberedElement(r,r.nextSibling);if(f){r=f;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(o){const r=o.nodeName.toLowerCase();if(!sd.hasOwnProperty(r))return this.sanitizedSomething=!0,!mp.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const l=o.attributes;for(let f=0;f"),!0}endElement(o){const r=o.nodeName.toLowerCase();sd.hasOwnProperty(r)&&!ju.hasOwnProperty(r)&&(this.buf.push(""))}chars(o){this.buf.push(Wl(o))}checkClobberedElement(o,r){if(r&&(o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${o.outerHTML}`);return r}}const Vd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cd=/([^\#-~ |!])/g;function Wl(n){return n.replace(/&/g,"&").replace(Vd,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(cd,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let bs;function ld(n,o){let r=null;try{bs=bs||function td(n){const o=new nd(n);return function Ld(){try{return!!(new window.DOMParser).parseFromString(Rc(""),"text/html")}catch{return!1}}()?new Xi(o):o}(n);let l=o?String(o):"";r=bs.getInertBodyElement(l);let f=5,_=l;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,l=_,_=r.innerHTML,r=bs.getInertBodyElement(l)}while(l!==_);return Rc((new Rd).sanitizeChildren(ud(r)||r))}finally{if(r){const l=ud(r)||r;for(;l.firstChild;)l.removeChild(l.firstChild)}}}function ud(n){return"content"in n&&function gp(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ui=(()=>((Ui=Ui||{})[Ui.NONE=0]="NONE",Ui[Ui.HTML=1]="HTML",Ui[Ui.STYLE=2]="STYLE",Ui[Ui.SCRIPT=3]="SCRIPT",Ui[Ui.URL=4]="URL",Ui[Ui.RESOURCE_URL=5]="RESOURCE_URL",Ui))();function Bd(n){const o=za();return o?ga(o.sanitize(Ui.HTML,n)||""):Hc(n,"HTML")?ga(zs(n)):ld(ma(),O(n))}function Ku(n){const o=za();return o?o.sanitize(Ui.STYLE,n)||"":Hc(n,"Style")?zs(n):O(n)}function $s(n){const o=za();return o?o.sanitize(Ui.URL,n)||"":Hc(n,"URL")?zs(n):$c(O(n))}function dd(n){const o=za();if(o)return Qu(o.sanitize(Ui.RESOURCE_URL,n)||"");if(Hc(n,"ResourceURL"))return Qu(zs(n));throw new F(904,!1)}function pd(n,o,r){return function Ca(n,o){return"src"===o&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===o&&("base"===n||"link"===n)?dd:$s}(o,r)(n)}function za(){const n=wn();return n&&n[fn].sanitizer}class ci{constructor(o,r){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Xt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ju=new ci("ENVIRONMENT_INITIALIZER"),_p=new ci("INJECTOR",-1),yp=new ci("INJECTOR_DEF_TYPES");class ti{get(o,r=wt){if(r===wt){const l=new Error(`NullInjectorError: No provider for ${V(o)}!`);throw l.name="NullInjectorError",l}return r}}function Zl(n){return{\u0275providers:n}}function Cp(...n){return{\u0275providers:Yd(0,n),\u0275fromNgModule:!0}}function Yd(n,...o){const r=[],l=new Set;let f;return aa(o,_=>{const b=_;hd(b,r,[],l)&&(f||=[],f.push(b))}),void 0!==f&&Ud(f,r),r}function Ud(n,o){for(let r=0;r{o.push(_)})}}function hd(n,o,r,l){if(!(n=I(n)))return!1;let f=null,_=Pe(n);const b=!_&&lo(n);if(_||b){if(b&&!b.standalone)return!1;f=n}else{const oe=n.ngModule;if(_=Pe(oe),!_)return!1;f=oe}const $=l.has(f);if(b){if($)return!1;if(l.add(f),b.dependencies){const oe="function"==typeof b.dependencies?b.dependencies():b.dependencies;for(const Ie of oe)hd(Ie,o,r,l)}}else{if(!_)return!1;{if(null!=_.imports&&!$){let Ie;l.add(f);try{aa(_.imports,ot=>{hd(ot,o,r,l)&&(Ie||=[],Ie.push(ot))})}finally{}void 0!==Ie&&Ud(Ie,o)}if(!$){const Ie=si(f)||(()=>new f);o.push({provide:f,useFactory:Ie,deps:Lt},{provide:yp,useValue:f,multi:!0},{provide:Ju,useValue:()=>rt(f),multi:!0})}const oe=_.providers;null==oe||$||fd(oe,ot=>{o.push(ot)})}}return f!==n&&void 0!==n.providers}function fd(n,o){for(let r of n)ge(r)&&(r=r.\u0275providers),Array.isArray(r)?fd(r,o):o(r)}const zp=S({provide:String,useValue:S});function md(n){return null!==n&&"object"==typeof n&&zp in n}function nc(n){return"function"==typeof n}const gd=new ci("Set Injector scope."),qu={},T={};let p;function h(){return void 0===p&&(p=new ti),p}class g{}class z extends g{get destroyed(){return this._destroyed}constructor(o,r,l,f){super(),this.parent=r,this.source=l,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qt(o,b=>this.processProvider(b)),this.records.set(_p,Xe(void 0,this)),f.has("environment")&&this.records.set(g,Xe(void 0,this));const _=this.records.get(gd);null!=_&&"string"==typeof _.value&&this.scopes.add(_.value),this.injectorDefTypes=new Set(this.get(yp.multi,Lt,ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of o)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(o){return this.assertNotDestroyed(),this._onDestroyHooks.push(o),()=>this.removeOnDestroy(o)}runInContext(o){this.assertNotDestroyed();const r=nt(this),l=Ct(void 0);try{return o()}finally{nt(r),Ct(l)}}get(o,r=wt,l=ae.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(Mt))return o[Mt](this);l=gn(l);const f=nt(this),_=Ct(void 0);try{if(!(l&ae.SkipSelf)){let $=this.records.get(o);if(void 0===$){const oe=function $t(n){return"function"==typeof n||"object"==typeof n&&n instanceof ci}(o)&&Jt(o);$=oe&&this.injectableDefInScope(oe)?Xe(E(o),qu):null,this.records.set(o,$)}if(null!=$)return this.hydrate(o,$)}return(l&ae.Self?h():this.parent).get(o,r=l&ae.Optional&&r===wt?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[jt]=b[jt]||[]).unshift(V(o)),f)throw b;return function _e(n,o,r,l){const f=n[jt];throw o[J]&&f.unshift(o[J]),n.message=function mt(n,o,r,l=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let f=V(o);if(Array.isArray(o))f=o.map(V).join(" -> ");else if("object"==typeof o){let _=[];for(let b in o)if(o.hasOwnProperty(b)){let $=o[b];_.push(b+":"+("string"==typeof $?JSON.stringify($):V($)))}f=`{${_.join(", ")}}`}return`${r}${l?"("+l+")":""}[${f}]: ${n.replace(K,"\n ")}`}("\n"+n.message,f,r,l),n.ngTokenPath=f,n[jt]=null,n}(b,o,"R3InjectorError",this.source)}throw b}finally{Ct(_),nt(f)}}resolveInjectorInitializers(){const o=nt(this),r=Ct(void 0);try{const l=this.get(Ju.multi,Lt,ae.Self);for(const f of l)f()}finally{nt(o),Ct(r)}}toString(){const o=[],r=this.records;for(const l of r.keys())o.push(V(l));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(o){let r=nc(o=I(o))?o:I(o&&o.provide);const l=function ve(n){return md(n)?Xe(void 0,n.useValue):Xe(Ee(n),qu)}(o);if(nc(o)||!0!==o.multi)this.records.get(r);else{let f=this.records.get(r);f||(f=Xe(void 0,qu,!0),f.factory=()=>Ze(f.multi),this.records.set(r,f)),r=o,f.multi.push(o)}this.records.set(r,l)}hydrate(o,r){return r.value===qu&&(r.value=T,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Dt(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(o){if(!o.providedIn)return!1;const r=I(o.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(o){const r=this._onDestroyHooks.indexOf(o);-1!==r&&this._onDestroyHooks.splice(r,1)}}function E(n){const o=Jt(n),r=null!==o?o.factory:si(n);if(null!==r)return r;if(n instanceof ci)throw new F(204,!1);if(n instanceof Function)return function q(n){const o=n.length;if(o>0)throw ca(o,"?"),new F(204,!1);const r=function He(n){return n&&(n[We]||n[xe])||null}(n);return null!==r?()=>r.factory(n):()=>new n}(n);throw new F(204,!1)}function Ee(n,o,r){let l;if(nc(n)){const f=I(n);return si(f)||E(f)}if(md(n))l=()=>I(n.useValue);else if(function Qd(n){return!(!n||!n.useFactory)}(n))l=()=>n.useFactory(...Ze(n.deps||[]));else if(function Gd(n){return!(!n||!n.useExisting)}(n))l=()=>rt(I(n.useExisting));else{const f=I(n&&(n.useClass||n.provide));if(!function ht(n){return!!n.deps}(n))return si(f)||E(f);l=()=>new f(...Ze(n.deps))}return l}function Xe(n,o,r=!1){return{factory:n,value:o,multi:r?[]:void 0}}function Qt(n,o){for(const r of n)Array.isArray(r)?Qt(r,o):r&&ge(r)?Qt(r.\u0275providers,o):o(r)}const Kt=new ci("AppId",{providedIn:"root",factory:()=>Wt}),Wt="ng",mn=new ci("Platform Initializer"),En=new ci("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),nn=new ci("AnimationModuleType"),vn=new ci("CSP nonce",{providedIn:"root",factory:()=>ma().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let wi=(n,o)=>null;function cr(n,o){return wi(n,o)}class nh{}class oh{}class i4{resolveComponentFactory(o){throw function o4(n){const o=Error(`No component factory found for ${V(n)}.`);return o.ngComponent=n,o}(o)}}let t1=(()=>{class n{}return n.NULL=new i4,n})();function r4(){return n1(xi(),wn())}function n1(n,o){return new vd(Le(n,o))}let vd=(()=>{class n{constructor(r){this.nativeElement=r}}return n.__NG_ELEMENT_ID__=r4,n})();function s4(n){return n instanceof vd?n.nativeElement:n}class rh{}let a4=(()=>{class n{constructor(){this.destroyNode=null}}return n.__NG_ELEMENT_ID__=()=>function c4(){const n=wn(),r=hn(xi().index,n);return(ii(r)?r:n)[qt]}(),n})(),l4=(()=>{class n{}return n.\u0275prov=Xt({token:n,providedIn:"root",factory:()=>null}),n})();class sh{constructor(o){this.full=o,this.major=o.split(".")[0],this.minor=o.split(".")[1],this.patch=o.split(".").slice(2).join(".")}}const ah=new sh("16.1.5"),Ep={};function _d(n){for(;n;){n[so]|=64;const o=pa(n);if(ke(n)&&!o)return n;n=o}return null}function xp(n){return n.ngOriginalError}class o1{constructor(){this._console=console}handleError(o){const r=this._findOriginalError(o);this._console.error("ERROR",o),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(o){let r=o&&xp(o);for(;r&&xp(r);)r=xp(r);return r||null}}const Dp=new ci("",{providedIn:"root",factory:()=>!1});function uh(n){return n.ownerDocument.defaultView}function oc(n){return n instanceof Function?n():n}class fh extends pr{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(o){this._lView=o}onConsumerDependencyMayHaveChanged(){_d(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(o,r,l){const f=ri(this);this.trackingVersion++;try{o(r,l)}finally{ri(f)}}destroy(){this.trackingVersion++}}let yd=null;function mh(){return yd??=new fh,yd}function gh(n,o){return n[o]??mh()}function wp(n,o){const r=mh();r.hasReadASignal&&(n[o]=yd,r.lView=n,yd=new fh)}const No={};function vh(n){_h(Bo(),wn(),D()+n,!1)}function _h(n,o,r,l){if(!l)if(3==(3&o[so])){const _=n.preOrderCheckHooks;null!==_&&Kr(o,_,r)}else{const _=n.preOrderHooks;null!==_&&Yi(o,_,0,r)}le(r)}function Mh(n,o=null,r=null,l){const f=bh(n,o,r,l);return f.resolveInjectorInitializers(),f}function bh(n,o=null,r=null,l,f=new Set){const _=[r||Lt,Cp(n)];return l=l||("object"==typeof n?void 0:V(n)),new z(_,o||h(),l||null,f)}let rc=(()=>{class n{static create(r,l){if(Array.isArray(r))return Mh({name:""},l,r,"");{const f=r.name??"";return Mh({name:f},r.parent,r.providers,f)}}}return n.THROW_IF_NOT_FOUND=wt,n.NULL=new ti,n.\u0275prov=Xt({token:n,providedIn:"any",factory:()=>rt(_p)}),n.__NG_ELEMENT_ID__=-1,n})();function s1(n,o=ae.Default){const r=wn();return null===r?rt(n,o):cu(xi(),r,I(n),o)}function Sh(){throw new Error("invalid")}function qd(n,o,r,l,f,_,b,$,oe,Ie,ot){const xt=o.blueprint.slice();return xt[ei]=f,xt[so]=140|l,(null!==Ie||n&&2048&n[so])&&(xt[so]|=2048),Vo(xt),xt[Ue]=xt[Sn]=n,xt[Bt]=r,xt[fn]=b||n&&n[fn],xt[qt]=$||n&&n[qt],xt[tn]=oe||n&&n[tn]||null,xt[Qe]=_,xt[Vn]=function xl(){return Au++}(),xt[eo]=ot,xt[Un]=Ie,xt[dn]=2==o.type?n[dn]:xt,xt}function a1(n,o,r,l,f){let _=n.data[o];if(null===_)_=function Pp(n,o,r,l,f){const _=os(),b=Xs(),oe=n.data[o]=function T4(n,o,r,l,f,_){let b=o?o.injectorIndex:-1,$=0;return Qr()&&($|=128),{type:r,index:l,insertBeforeIndex:null,injectorIndex:b,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:$,providerIndexes:0,value:f,attrs:_,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:o,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,b?_:_&&_.parent,r,o,l,f);return null===n.firstChild&&(n.firstChild=oe),null!==_&&(b?null==_.child&&null!==oe.parent&&(_.child=oe):null===_.next&&(_.next=oe,oe.prev=_)),oe}(n,o,r,l,f),function qc(){return ao.lFrame.inI18n}()&&(_.flags|=32);else if(64&_.type){_.type=r,_.value=l,_.attrs=f;const b=function kr(){const n=ao.lFrame,o=n.currentTNode;return n.isParent?o:o.parent}();_.injectorIndex=null===b?-1:b.injectorIndex}return ar(_,!0),_}function Ma(n,o,r,l){if(0===r)return-1;const f=o.length;for(let _=0;_Kn&&_h(n,o,Kn,!1),$i($?2:0,f),$)_.runInContext(r,l,f);else{const Ie=ri(null);try{r(l,f)}finally{ri(Ie)}}}finally{$&&null===o[Co]&&wp(o,Co),le(b),$i($?3:1,f)}}function Ip(n,o,r){if(nr(o)){const l=ri(null);try{const _=o.directiveEnd;for(let b=o.directiveStart;b<_;b++){const $=n.data[b];$.contentQueries&&$.contentQueries(1,r[b],b)}}finally{ri(l)}}}function c1(n,o,r){Da()&&(function S4(n,o,r,l){const f=r.directiveStart,_=r.directiveEnd;Ai(r)&&function w2(n,o,r){const l=Le(o,n),f=xh(r);let b=16;r.signals?b=4096:r.onPush&&(b=64);const $=Ap(n,qd(n,f,null,b,l,o,null,n[fn].rendererFactory.createRenderer(l,r),null,null,null));n[o.index]=$}(o,r,n.data[f+r.componentOffset]),n.firstCreatePass||al(r,o),Ki(l,o);const b=r.initialInputs;for(let $=f;$<_;$++){const oe=n.data[$],Ie=is(o,n,$,r);Ki(Ie,o),null!==b&&P2(0,$-f,Ie,oe,0,b),hi(oe)&&(hn(r.index,o)[Bt]=is(o,n,$,r))}}(n,o,r,Le(r,o)),64==(64&r.flags)&&E4(n,o,r))}function Xd(n,o,r=Le){const l=o.localNames;if(null!==l){let f=o.index+1;for(let _=0;_null;function Ph(n,o,r,l){for(let f in n)if(n.hasOwnProperty(f)){r=null===r?{}:r;const _=n[f];null===l?M4(r,o,f,_):l.hasOwnProperty(f)&&M4(r,o,l[f],_)}return r}function M4(n,o,r,l){n.hasOwnProperty(r)?n[r].push(o,l):n[r]=[o,l]}function Ss(n,o,r,l,f,_,b,$){const oe=Le(o,r);let ot,Ie=o.inputs;!$&&null!=Ie&&(ot=Ie[l])?(Rh(n,r,ot,l,f),Ai(o)&&function T2(n,o){const r=hn(o,n);16&r[so]||(r[so]|=64)}(r,o.index)):3&o.type&&(l=function z2(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(l),f=null!=b?b(f,o.value||"",l):f,_.setProperty(oe,l,f))}function Fh(n,o,r,l){if(Da()){const f=null===l?null:{"":-1},_=function E2(n,o){const r=n.directiveRegistry;let l=null,f=null;if(r)for(let _=0;_0;){const r=n[--o];if("number"==typeof r&&r<0)return r}return 0})(b)!=$&&b.push($),b.push(r,l,_)}}(n,o,l,Ma(n,r,f.hostVars,No),f)}function sc(n,o,r,l,f,_){const b=Le(n,o);!function Lh(n,o,r,l,f,_,b){if(null==_)n.removeAttribute(o,f,r);else{const $=null==b?O(_):b(_,l||"",f);n.setAttribute(o,f,$,r)}}(o[qt],b,_,n.value,r,l,f)}function P2(n,o,r,l,f,_){const b=_[o];if(null!==b)for(let $=0;${class n{constructor(){this.all=new Set,this.queue=new Map}create(r,l,f){const _=typeof Zone>"u"?null:Zone.current,b=new ts(r,Ie=>{this.all.has(Ie)&&this.queue.set(Ie,_)},f);let $;this.all.add(b),b.notify();const oe=()=>{b.cleanup(),$?.(),this.all.delete(b),this.queue.delete(b)};return $=l?.onDestroy(oe),{destroy:oe}}flush(){if(0!==this.queue.size)for(const[r,l]of this.queue)this.queue.delete(r),l?l.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return n.\u0275prov=Xt({token:n,providedIn:"root",factory:()=>new n}),n})();function G(n,o,r){let l=r?n.styles:null,f=r?n.classes:null,_=0;if(null!==o)for(let b=0;b0){Bi(n,1);const f=n[Yn].components;null!==f&&zr(n,f,1)}}function zr(n,o,r){for(let l=0;l-1&&(Nl(o,l),Ra(r,l))}this._attachedToViewContainer=!1}Hu(this._lView[Yn],this._lView)}onDestroy(o){!function yi(n,o){if(256==(256&n[so]))throw new F(911,!1);null===n[jn]&&(n[jn]=[]),n[jn].push(o)}(this._lView,o)}markForCheck(){_d(this._cdRefInjectingView||this._lView)}detach(){this._lView[so]&=-129}reattach(){this._lView[so]|=128}detectChanges(){Et(this._lView[Yn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Q1(n,o){ec(n,o,o[qt],2,null,null)}(this._lView[Yn],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=o}}class W0 extends Tr{constructor(o){super(o),this._view=o}detectChanges(){const o=this._view;Et(o[Yn],o,o[Bt],!1)}checkNoChanges(){}get context(){return null}}class Z0 extends t1{constructor(o){super(),this.ngModule=o}resolveComponentFactory(o){const r=lo(o);return new Hh(r,this.ngModule)}}function K0(n){const o=[];for(let r in n)n.hasOwnProperty(r)&&o.push({propName:n[r],templateName:r});return o}class Bm{constructor(o,r){this.injector=o,this.parentInjector=r}get(o,r,l){l=gn(l);const f=this.injector.get(o,Ep,l);return f!==Ep||r===Ep?f:this.parentInjector.get(o,r,l)}}class Hh extends oh{get inputs(){const o=this.componentDef,r=o.inputTransforms,l=K0(o.inputs);if(null!==r)for(const f of l)r.hasOwnProperty(f.propName)&&(f.transform=r[f.propName]);return l}get outputs(){return K0(this.componentDef.outputs)}constructor(o,r){super(),this.componentDef=o,this.ngModule=r,this.componentType=o.type,this.selector=function An(n){return n.map(zi).join(",")}(o.selectors),this.ngContentSelectors=o.ngContentSelectors?o.ngContentSelectors:[],this.isBoundToModule=!!r}create(o,r,l,f){let _=(f=f||this.ngModule)instanceof g?f:f?.injector;_&&null!==this.componentDef.getStandaloneInjector&&(_=this.componentDef.getStandaloneInjector(_)||_);const b=_?new Bm(o,_):o,$=b.get(rh,null);if(null===$)throw new F(407,!1);const ot={rendererFactory:$,sanitizer:b.get(l4,null),effectManager:b.get(c,null)},xt=$.createRenderer(null,this.componentDef),en=this.componentDef.selectors[0][0]||"div",ln=l?function y4(n,o,r,l){const _=l.get(Dp,!1)||r===Ht.ShadowDom,b=n.selectRootElement(o,_);return function C4(n){Oh(n)}(b),b}(xt,l,this.componentDef.encapsulation,b):Ka(xt,en,function Vm(n){const o=n.toLowerCase();return"svg"===o?Ni:"math"===o?"math":null}(en)),Jn=this.componentDef.signals?4608:this.componentDef.onPush?576:528,vo=Dh(0,null,null,1,0,null,null,null,null,null,null),Pn=qd(null,vo,null,Jn,null,null,ot,xt,b,null,null);let ko,oi;tl(Pn);try{const li=this.componentDef;let cs,a2=null;li.findHostDirectiveDefs?(cs=[],a2=new Map,li.findHostDirectiveDefs(li,cs,a2),cs.push(li)):cs=[li];const S5=function $m(n,o){const r=n[Yn],l=Kn;return n[l]=o,a1(r,l,2,"#host",null)}(Pn,ln),E5=function Ym(n,o,r,l,f,_,b){const $=f[Yn];!function Um(n,o,r,l){for(const f of n)o.mergedAttrs=qn(o.mergedAttrs,f.hostAttrs);null!==o.mergedAttrs&&(G(o,o.mergedAttrs,!0),null!==r&&X1(l,r,o))}(l,n,o,b);let oe=null;null!==o&&(oe=cr(o,f[tn]));const Ie=_.rendererFactory.createRenderer(o,r);let ot=16;r.signals?ot=4096:r.onPush&&(ot=64);const xt=qd(f,xh(r),null,ot,f[n.index],n,_,Ie,null,null,oe);return $.firstCreatePass&&Nh($,n,l.length-1),Ap(f,xt),f[n.index]=xt}(S5,ln,li,cs,Pn,ot,xt);oi=tt(vo,Kn),ln&&function Qm(n,o,r,l){if(l)Zt(n,r,["ng-version",ah.full]);else{const{attrs:f,classes:_}=function bi(n){const o=[],r=[];let l=1,f=2;for(;l0&&q1(n,r,_.join(" "))}}(xt,li,ln,l),void 0!==r&&function jm(n,o,r){const l=n.projection=[];for(let f=0;f=0;l--){const f=n[l];f.hostVars=o+=f.hostVars,f.hostAttrs=qn(f.hostAttrs,r=qn(r,f.hostAttrs))}}(l)}function A4(n){return n===un?{}:n===Lt?[]:n}function Km(n,o){const r=n.viewQuery;n.viewQuery=r?(l,f)=>{o(l,f),r(l,f)}:o}function Jm(n,o){const r=n.contentQueries;n.contentQueries=r?(l,f,_)=>{o(l,f,_),r(l,f,_)}:o}function qm(n,o){const r=n.hostBindings;n.hostBindings=r?(l,f)=>{o(l,f),r(l,f)}:o}function tf(n){const o=n.inputConfig,r={};for(const l in o)if(o.hasOwnProperty(l)){const f=o[l];Array.isArray(f)&&f[2]&&(r[l]=f[2])}n.inputTransforms=r}function F4(n){return!!L2(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function L2(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Jl(n,o,r){return n[o]=r}function $h(n,o){return n[o]}function as(n,o,r){return!Object.is(n[o],r)&&(n[o]=r,!0)}function ep(n,o,r,l){const f=as(n,o,r);return as(n,o+1,l)||f}function cc(n,o,r,l,f,_){const b=ep(n,o,r,l);return ep(n,o+2,f,_)||b}function k2(n,o,r,l){const f=wn();return as(f,fs(),o)&&(Bo(),sc(Ne(),f,n,o,r,l)),k2}function Lp(n,o,r,l){return as(n,fs(),r)?o+O(r)+l:No}function kp(n,o,r,l,f,_){const $=ep(n,function Rr(){return ao.lFrame.bindingIndex}(),r,f);return Vr(2),$?o+O(r)+l+O(f)+_:No}function gf(n,o,r,l,f,_,b,$){const oe=wn(),Ie=Bo(),ot=n+Kn,xt=Ie.firstCreatePass?function M8(n,o,r,l,f,_,b,$,oe){const Ie=o.consts,ot=a1(o,n,4,b||null,go(Ie,$));Fh(o,r,ot,go(Ie,oe)),Zr(o,ot);const xt=ot.tView=Dh(2,ot,l,f,_,o.directiveRegistry,o.pipeRegistry,null,o.schemas,Ie,null);return null!==o.queries&&(o.queries.template(o,ot),xt.queries=o.queries.embeddedTView(ot)),ot}(ot,Ie,oe,o,r,l,f,_,b):Ie.data[ot];ar(xt,!1);const en=vf(Ie,oe,xt,n);Ho()&&qa(Ie,oe,en,xt),Ki(en,oe),Ap(oe,oe[ot]=l1(en,oe,en,xt)),Zi(xt)&&c1(Ie,oe,xt),null!=b&&Xd(oe,xt,$)}let vf=function _f(n,o,r,l){return Ii(!0),o[qt].createComment("")};function yf(n){return At(function ea(){return ao.lFrame.contextLView}(),Kn+n)}function Y2(n,o,r){const l=wn();return as(l,fs(),o)&&Ss(Bo(),Ne(),l,n,o,l[qt],r,!1),Y2}function U2(n,o,r,l,f){const b=f?"class":"style";Rh(n,r,o.inputs[b],b,l)}function V4(n,o,r,l){const f=wn(),_=Bo(),b=Kn+n,$=f[qt],oe=_.firstCreatePass?function x8(n,o,r,l,f,_){const b=o.consts,oe=a1(o,n,2,l,go(b,f));return Fh(o,r,oe,go(b,_)),null!==oe.attrs&&G(oe,oe.attrs,!1),null!==oe.mergedAttrs&&G(oe,oe.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,oe),oe}(b,_,f,o,r,l):_.data[b],Ie=Cf(_,f,oe,$,o,n);f[b]=Ie;const ot=Zi(oe);return ar(oe,!0),X1($,Ie,oe),32!=(32&oe.flags)&&Ho()&&qa(_,f,Ie,oe),0===function Nr(){return ao.lFrame.elementDepthCount}()&&Ki(Ie,f),function Er(){ao.lFrame.elementDepthCount++}(),ot&&(c1(_,f,oe),Ip(_,oe,f)),null!==l&&Xd(f,oe),V4}function B4(){let n=xi();Xs()?Kc():(n=n.parent,ar(n,!1));const o=n;(function jr(n){return ao.skipHydrationRootTNode===n})(o)&&function Lr(){ao.skipHydrationRootTNode=null}(),function sr(){ao.lFrame.elementDepthCount--}();const r=Bo();return r.firstCreatePass&&(Zr(r,n),nr(n)&&r.queries.elementEnd(n)),null!=o.classesWithoutHost&&function Td(n){return 0!=(8&n.flags)}(o)&&U2(r,o,wn(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function ru(n){return 0!=(16&n.flags)}(o)&&U2(r,o,wn(),o.stylesWithoutHost,!1),B4}function G2(n,o,r,l){return V4(n,o,r,l),B4(),G2}let Cf=(n,o,r,l,f,_)=>(Ii(!0),Ka(l,f,function io(){return ao.lFrame.currentNamespace}()));function H4(n,o,r){const l=wn(),f=Bo(),_=n+Kn,b=f.firstCreatePass?function w8(n,o,r,l,f){const _=o.consts,b=go(_,l),$=a1(o,n,8,"ng-container",b);return null!==b&&G($,b,!0),Fh(o,r,$,go(_,f)),null!==o.queries&&o.queries.elementStart(o,$),$}(_,f,l,o,r):f.data[_];ar(b,!0);const $=zf(f,l,b,n);return l[_]=$,Ho()&&qa(f,l,$,b),Ki($,l),Zi(b)&&(c1(f,l,b),Ip(f,b,l)),null!=r&&Xd(l,b),H4}function $4(){let n=xi();const o=Bo();return Xs()?Kc():(n=n.parent,ar(n,!1)),o.firstCreatePass&&(Zr(o,n),nr(n)&&o.queries.elementEnd(n)),$4}function Q2(n,o,r){return H4(n,o,r),$4(),Q2}let zf=(n,o,r,l)=>(Ii(!0),Al(o[qt],""));function Tf(){return wn()}function j2(n){return!!n&&"function"==typeof n.then}function Mf(n){return!!n&&"function"==typeof n.subscribe}function W2(n,o,r,l){const f=wn(),_=Bo(),b=xi();return bf(_,f,f[qt],b,n,o,l),W2}function Z2(n,o){const r=xi(),l=wn(),f=Bo();return bf(f,l,u1(Pa(f.data),r,l),r,n,o),Z2}function bf(n,o,r,l,f,_,b){const $=Zi(l),Ie=n.firstCreatePass&&Fp(n),ot=o[Bt],xt=w4(o);let en=!0;if(3&l.type||b){const Bn=Le(l,o),Jn=b?b(Bn):Bn,vo=xt.length,Pn=b?oi=>b(ai(oi[l.index])):l.index;let ko=null;if(!b&&$&&(ko=function A8(n,o,r,l){const f=n.cleanup;if(null!=f)for(let _=0;_oe?$[oe]:null}"string"==typeof b&&(_+=2)}return null}(n,o,f,l.index)),null!==ko)(ko.__ngLastListenerFn__||ko).__ngNextListenerFn__=_,ko.__ngLastListenerFn__=_,en=!1;else{_=Ef(l,o,ot,_,!1);const oi=r.listen(Jn,f,_);xt.push(_,oi),Ie&&Ie.push(f,Pn,vo,vo+1)}}else _=Ef(l,o,ot,_,!1);const ln=l.outputs;let Dn;if(en&&null!==ln&&(Dn=ln[f])){const Bn=Dn.length;if(Bn)for(let Jn=0;Jn-1?hn(n.index,o):o);let oe=Sf(o,r,l,b),Ie=_.__ngNextListenerFn__;for(;Ie;)oe=Sf(o,r,Ie,b)&&oe,Ie=Ie.__ngNextListenerFn__;return f&&!1===oe&&b.preventDefault(),oe}}function xf(n=1){return function H(n){return(ao.lFrame.contextLView=function X(n,o){for(;n>0;)o=o[Sn],n--;return o}(n,ao.lFrame.contextLView))[Bt]}(n)}function F8(n,o){let r=null;const l=function wo(n){const o=n.attrs;if(null!=o){const r=o.indexOf(5);if(!(1&r))return o[r+1]}return null}(n);for(let f=0;f>17&32767}function q2(n){return 2|n}function tp(n){return(131068&n)>>2}function X2(n,o){return-131069&n|o<<2}function e0(n){return 1|n}function kf(n,o,r,l,f){const _=n[r+1],b=null===o;let $=l?Cd(_):tp(_),oe=!1;for(;0!==$&&(!1===oe||b);){const ot=n[$+1];B8(n[$],o)&&(oe=!0,n[$+1]=l?e0(ot):q2(ot)),$=l?Cd(ot):tp(ot)}oe&&(n[r+1]=l?q2(_):e0(_))}function B8(n,o){return null===n||null==o||(Array.isArray(n)?n[1]:n)===o||!(!Array.isArray(n)||"string"!=typeof o)&&gs(n,o)>=0}const Dr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rf(n){return n.substring(Dr.key,Dr.keyEnd)}function H8(n){return n.substring(Dr.value,Dr.valueEnd)}function Vf(n,o){const r=Dr.textEnd;return r===o?-1:(o=Dr.keyEnd=function U8(n,o,r){for(;o32;)o++;return o}(n,Dr.key=o,r),Up(n,o,r))}function Bf(n,o){const r=Dr.textEnd;let l=Dr.key=Up(n,o,r);return r===l?-1:(l=Dr.keyEnd=function G8(n,o,r){let l;for(;o=65&&(-33&l)<=90||l>=48&&l<=57);)o++;return o}(n,l,r),l=$f(n,l,r),l=Dr.value=Up(n,l,r),l=Dr.valueEnd=function Q8(n,o,r){let l=-1,f=-1,_=-1,b=o,$=b;for(;b32&&($=b),_=f,f=l,l=-33&oe}return $}(n,l,r),$f(n,l,r))}function Hf(n){Dr.key=0,Dr.keyEnd=0,Dr.value=0,Dr.valueEnd=0,Dr.textEnd=n.length}function Up(n,o,r){for(;o=0;r=Bf(o,r))jf(n,Rf(o),H8(o))}function Uf(n){Qc(X8,ql,n,!0)}function ql(n,o){for(let r=function $8(n){return Hf(n),Vf(n,Up(n,0,Dr.textEnd))}(o);r>=0;r=Vf(o,r))mr(n,Rf(o),!0)}function Gc(n,o,r,l){const f=wn(),_=Bo(),b=Vr(2);_.firstUpdatePass&&Qf(_,n,b,l),o!==No&&as(f,b,o)&&Wf(_,_.data[D()],f,f[qt],n,f[b+1]=function tg(n,o){return null==n||""===n||("string"==typeof o?n+=o:"object"==typeof n&&(n=V(zs(n)))),n}(o,r),l,b)}function Qc(n,o,r,l){const f=Bo(),_=Vr(2);f.firstUpdatePass&&Qf(f,null,_,l);const b=wn();if(r!==No&&as(b,_,r)){const $=f.data[D()];if(Kf($,l)&&!Gf(f,_)){let oe=l?$.classesWithoutHost:$.stylesWithoutHost;null!==oe&&(r=U(oe,r||"")),U2(f,$,b,r,l)}else!function eg(n,o,r,l,f,_,b,$){f===No&&(f=Lt);let oe=0,Ie=0,ot=0=n.expandoStartIndex}function Qf(n,o,r,l){const f=n.data;if(null===f[r+1]){const _=f[D()],b=Gf(n,r);Kf(_,l)&&null===o&&!b&&(o=!1),o=function W8(n,o,r,l){const f=Pa(n);let _=l?o.residualClasses:o.residualStyles;if(null===f)0===(l?o.classBindings:o.styleBindings)&&(r=Qh(r=o0(null,n,o,r,l),o.attrs,l),_=null);else{const b=o.directiveStylingLast;if(-1===b||n[b]!==f)if(r=o0(f,n,o,r,l),null===_){let oe=function Z8(n,o,r){const l=r?o.classBindings:o.styleBindings;if(0!==tp(l))return n[Cd(l)]}(n,o,l);void 0!==oe&&Array.isArray(oe)&&(oe=o0(null,n,o,oe[1],l),oe=Qh(oe,o.attrs,l),function K8(n,o,r,l){n[Cd(r?o.classBindings:o.styleBindings)]=l}(n,o,l,oe))}else _=function J8(n,o,r){let l;const f=o.directiveEnd;for(let _=1+o.directiveStylingLast;_0)&&(Ie=!0)):ot=r,f)if(0!==oe){const en=Cd(n[$+1]);n[l+1]=U4(en,$),0!==en&&(n[en+1]=X2(n[en+1],l)),n[$+1]=function L8(n,o){return 131071&n|o<<17}(n[$+1],l)}else n[l+1]=U4($,0),0!==$&&(n[$+1]=X2(n[$+1],l)),$=l;else n[l+1]=U4(oe,0),0===$?$=l:n[oe+1]=X2(n[oe+1],l),oe=l;Ie&&(n[l+1]=q2(n[l+1])),kf(n,ot,l,!0),kf(n,ot,l,!1),function V8(n,o,r,l,f){const _=f?n.residualClasses:n.residualStyles;null!=_&&"string"==typeof o&&gs(_,o)>=0&&(r[l+1]=e0(r[l+1]))}(o,ot,n,l,_),b=U4($,oe),_?o.classBindings=b:o.styleBindings=b}(f,_,o,r,b,l)}}function o0(n,o,r,l,f){let _=null;const b=r.directiveEnd;let $=r.directiveStylingLast;for(-1===$?$=r.directiveStart:$++;$0;){const oe=n[f],Ie=Array.isArray(oe),ot=Ie?oe[1]:oe,xt=null===ot;let en=r[f+1];en===No&&(en=xt?Lt:void 0);let ln=xt?Tc(en,l):ot===l?en:void 0;if(Ie&&!G4(ln)&&(ln=Tc(oe,l)),G4(ln)&&($=ln,b))return $;const Dn=n[f+1];f=b?Cd(Dn):tp(Dn)}if(null!==o){let oe=_?o.residualClasses:o.residualStyles;null!=oe&&($=Tc(oe,l))}return $}function G4(n){return void 0!==n}function Kf(n,o){return 0!=(n.flags&(o?8:16))}function Jf(n,o=""){const r=wn(),l=Bo(),f=n+Kn,_=l.firstCreatePass?a1(l,f,1,o,null):l.data[f],b=qf(l,r,_,o,n);r[f]=b,Ho()&&qa(l,r,b,_),ar(_,!1)}let qf=(n,o,r,l,f)=>(Ii(!0),function Fc(n,o){return n.createText(o)}(o[qt],l));function r0(n){return Q4("",n,""),r0}function Q4(n,o,r){const l=wn(),f=Lp(l,n,o,r);return f!==No&&ba(l,D(),f),Q4}function s0(n,o,r,l,f){const _=wn(),b=kp(_,n,o,r,l,f);return b!==No&&ba(_,D(),b),s0}function a3(n,o,r){Qc(mr,ql,Lp(wn(),n,o,r),!0)}function c3(n,o,r){Uc(Lp(wn(),n,o,r))}function a0(n,o,r){const l=wn();return as(l,fs(),o)&&Ss(Bo(),Ne(),l,n,o,l[qt],r,!0),a0}function c0(n,o,r){const l=wn();if(as(l,fs(),o)){const _=Bo(),b=Ne();Ss(_,b,l,n,o,u1(Pa(_.data),b,l),r,!0)}return c0}const np=void 0;var zg=["en",[["a","p"],["AM","PM"],np],[["AM","PM"],np,np],[["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"]],np,[["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"]],np,[["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}",np,"{1} 'at' {0}",np],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cg(n){const r=Math.floor(Math.abs(n)),l=n.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===l?1:5}];let Gp={};function Tg(n,o,r){"string"!=typeof o&&(r=o,o=n[Do.LocaleId]),o=o.toLowerCase().replace(/_/g,"-"),Gp[o]=n,r&&(Gp[o][Do.ExtraData]=r)}function l0(n){const o=function Mg(n){return n.toLowerCase().replace(/_/g,"-")}(n);let r=y3(o);if(r)return r;const l=o.split("-")[0];if(r=y3(l),r)return r;if("en"===l)return zg;throw new F(701,!1)}function _3(n){return l0(n)[Do.PluralCase]}function y3(n){return n in Gp||(Gp[n]=st.ng&&st.ng.common&&st.ng.common.locales&&st.ng.common.locales[n]),Gp[n]}var Do=(()=>((Do=Do||{})[Do.LocaleId=0]="LocaleId",Do[Do.DayPeriodsFormat=1]="DayPeriodsFormat",Do[Do.DayPeriodsStandalone=2]="DayPeriodsStandalone",Do[Do.DaysFormat=3]="DaysFormat",Do[Do.DaysStandalone=4]="DaysStandalone",Do[Do.MonthsFormat=5]="MonthsFormat",Do[Do.MonthsStandalone=6]="MonthsStandalone",Do[Do.Eras=7]="Eras",Do[Do.FirstDayOfWeek=8]="FirstDayOfWeek",Do[Do.WeekendRange=9]="WeekendRange",Do[Do.DateFormat=10]="DateFormat",Do[Do.TimeFormat=11]="TimeFormat",Do[Do.DateTimeFormat=12]="DateTimeFormat",Do[Do.NumberSymbols=13]="NumberSymbols",Do[Do.NumberFormats=14]="NumberFormats",Do[Do.CurrencyCode=15]="CurrencyCode",Do[Do.CurrencySymbol=16]="CurrencySymbol",Do[Do.CurrencyName=17]="CurrencyName",Do[Do.Currencies=18]="Currencies",Do[Do.Directionality=19]="Directionality",Do[Do.PluralCase=20]="PluralCase",Do[Do.ExtraData=21]="ExtraData",Do))();const Qp="en-US";let C3=Qp;function p0(n,o,r,l,f){if(n=I(n),Array.isArray(n))for(let _=0;_>20;if(nc(n)||!n.multi){const ln=new Is(oe,f,s1),Dn=f0($,o,f?ot:ot+en,xt);-1===Dn?(La(al(Ie,b),_,$),h0(_,n,o.length),o.push($),Ie.directiveStart++,Ie.directiveEnd++,f&&(Ie.providerIndexes+=1048576),r.push(ln),b.push(ln)):(r[Dn]=ln,b[Dn]=ln)}else{const ln=f0($,o,ot+en,xt),Dn=f0($,o,ot,ot+en),Jn=Dn>=0&&r[Dn];if(f&&!Jn||!f&&!(ln>=0&&r[ln])){La(al(Ie,b),_,$);const vo=function Cv(n,o,r,l,f){const _=new Is(n,r,s1);return _.multi=[],_.index=o,_.componentProviders=0,G3(_,f,l&&!r),_}(f?yv:_v,r.length,f,l,oe);!f&&Jn&&(r[Dn].providerFactory=vo),h0(_,n,o.length,0),o.push($),Ie.directiveStart++,Ie.directiveEnd++,f&&(Ie.providerIndexes+=1048576),r.push(vo),b.push(vo)}else h0(_,n,ln>-1?ln:Dn,G3(r[f?Dn:ln],oe,!f&&l));!f&&l&&Jn&&r[Dn].componentProviders++}}}function h0(n,o,r,l){const f=nc(o),_=function Tp(n){return!!n.useClass}(o);if(f||_){const oe=(_?I(o.useClass):o).prototype.ngOnDestroy;if(oe){const Ie=n.destroyHooks||(n.destroyHooks=[]);if(!f&&o.multi){const ot=Ie.indexOf(r);-1===ot?Ie.push(r,[l,oe]):Ie[ot+1].push(l,oe)}else Ie.push(r,oe)}}}function G3(n,o,r){return r&&n.componentProviders++,n.multi.push(o)-1}function f0(n,o,r,l){for(let f=r;f{r.providersResolver=(l,f)=>function vv(n,o,r){const l=Bo();if(l.firstCreatePass){const f=hi(n);p0(r,l.data,l.blueprint,f,!0),p0(o,l.data,l.blueprint,f,!1)}}(l,f?f(n):n,o)}}class jp{}class j3{}function zv(n,o){return new g0(n,o??null,[])}class g0 extends jp{constructor(o,r,l){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Z0(this);const f=Ro(o);this._bootstrapComponents=oc(f.bootstrap),this._r3Injector=bh(o,r,[{provide:jp,useValue:this},{provide:t1,useValue:this.componentFactoryResolver},...l],V(o),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(o)}get injector(){return this._r3Injector}destroy(){const o=this._r3Injector;!o.destroyed&&o.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class v0 extends j3{constructor(o){super(),this.moduleType=o}create(o){return new g0(this.moduleType,o,[])}}class W3 extends jp{constructor(o){super(),this.componentFactoryResolver=new Z0(this),this.instance=null;const r=new z([...o.providers,{provide:jp,useValue:this},{provide:t1,useValue:this.componentFactoryResolver}],o.parent||h(),o.debugName,new Set(["environment"]));this.injector=r,o.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function Z3(n,o,r=null){return new W3({providers:n,parent:o,debugName:r,runEnvironmentInitializers:!0}).injector}let Mv=(()=>{class n{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const l=Yd(0,r.type),f=l.length>0?Z3([l],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Xt({token:n,providedIn:"environment",factory:()=>new n(rt(g))}),n})();function K3(n){n.getStandaloneInjector=o=>o.get(Mv).getOrCreateStandaloneInjector(n)}function o6(n,o,r){const l=Ji()+n,f=wn();return f[l]===No?Jl(f,l,r?o.call(r):o()):$h(f,l)}function i6(n,o,r,l){return l6(wn(),Ji(),n,o,r,l)}function r6(n,o,r,l,f){return u6(wn(),Ji(),n,o,r,l,f)}function s6(n,o,r,l,f,_){return d6(wn(),Ji(),n,o,r,l,f,_)}function a6(n,o,r,l,f,_,b){return p6(wn(),Ji(),n,o,r,l,f,_,b)}function c6(n,o,r,l,f,_,b,$){const oe=Ji()+n,Ie=wn(),ot=cc(Ie,oe,r,l,f,_);return as(Ie,oe+4,b)||ot?Jl(Ie,oe+5,$?o.call($,r,l,f,_,b):o(r,l,f,_,b)):$h(Ie,oe+5)}function qh(n,o){const r=n[o];return r===No?void 0:r}function l6(n,o,r,l,f,_){const b=o+r;return as(n,b,f)?Jl(n,b+1,_?l.call(_,f):l(f)):qh(n,b+1)}function u6(n,o,r,l,f,_,b){const $=o+r;return ep(n,$,f,_)?Jl(n,$+2,b?l.call(b,f,_):l(f,_)):qh(n,$+2)}function d6(n,o,r,l,f,_,b,$){const oe=o+r;return function N4(n,o,r,l,f){const _=ep(n,o,r,l);return as(n,o+2,f)||_}(n,oe,f,_,b)?Jl(n,oe+3,$?l.call($,f,_,b):l(f,_,b)):qh(n,oe+3)}function p6(n,o,r,l,f,_,b,$,oe){const Ie=o+r;return cc(n,Ie,f,_,b,$)?Jl(n,Ie+4,oe?l.call(oe,f,_,b,$):l(f,_,b,$)):qh(n,Ie+4)}function f6(n,o){const r=Bo();let l;const f=n+Kn;r.firstCreatePass?(l=function Lv(n,o){if(o)for(let r=o.length-1;r>=0;r--){const l=o[r];if(n===l.name)return l}}(o,r.pipeRegistry),r.data[f]=l,l.onDestroy&&(r.destroyHooks??=[]).push(f,l.onDestroy)):l=r.data[f];const _=l.factory||(l.factory=si(l.type)),b=Ct(s1);try{const $=sl(!1),oe=_();return sl($),function E8(n,o,r,l){r>=n.data.length&&(n.data[r]=null,n.blueprint[r]=null),o[r]=l}(r,wn(),f,oe),oe}finally{Ct(b)}}function m6(n,o,r){const l=n+Kn,f=wn(),_=At(f,l);return Xh(f,l)?l6(f,Ji(),o,_.transform,r,_):_.transform(r)}function g6(n,o,r,l){const f=n+Kn,_=wn(),b=At(_,f);return Xh(_,f)?u6(_,Ji(),o,b.transform,r,l,b):b.transform(r,l)}function v6(n,o,r,l,f){const _=n+Kn,b=wn(),$=At(b,_);return Xh(b,_)?d6(b,Ji(),o,$.transform,r,l,f,$):$.transform(r,l,f)}function _6(n,o,r,l,f,_){const b=n+Kn,$=wn(),oe=At($,b);return Xh($,b)?p6($,Ji(),o,oe.transform,r,l,f,_,oe):oe.transform(r,l,f,_)}function Xh(n,o){return n[Yn].data[o].pure}function y0(n){return o=>{setTimeout(n,void 0,o)}}const Xl=class Rv extends t.x{constructor(o=!1){super(),this.__isAsync=o}emit(o){super.next(o)}subscribe(o,r,l){let f=o,_=r||(()=>null),b=l;if(o&&"object"==typeof o){const oe=o;f=oe.next?.bind(oe),_=oe.error?.bind(oe),b=oe.complete?.bind(oe)}this.__isAsync&&(_=y0(_),f&&(f=y0(f)),b&&(b=y0(b)));const $=super.subscribe({next:f,error:_,complete:b});return o instanceof i.w0&&o.add($),$}};function Vv(){return this._results[Symbol.iterator]()}class J4{get changes(){return this._changes||(this._changes=new Xl)}constructor(o=!1){this._emitDistinctChangesOnly=o,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=J4.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Vv)}get(o){return this._results[o]}map(o){return this._results.map(o)}filter(o){return this._results.filter(o)}find(o){return this._results.find(o)}reduce(o,r){return this._results.reduce(o,r)}forEach(o){this._results.forEach(o)}some(o){return this._results.some(o)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(o,r){const l=this;l.dirty=!1;const f=function yr(n){return n.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function S1(n,o,r){if(n.length!==o.length)return!1;for(let l=0;l{class n{}return n.__NG_ELEMENT_ID__=$v,n})();const Bv=e4,Hv=class extends Bv{constructor(o,r,l){super(),this._declarationLView=o,this._declarationTContainer=r,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,r){return this.createEmbeddedViewImpl(o,r,null)}createEmbeddedViewImpl(o,r,l){const b=this._declarationTContainer.tView,$=qd(this._declarationLView,b,o,4096&this._declarationLView[so]?4096:16,null,b.declTNode,null,null,null,r||null,l||null);$[xn]=this._declarationLView[this._declarationTContainer.index];const Ie=this._declarationLView[In];return null!==Ie&&($[In]=Ie.createEmbeddedView(b)),Bh(b,$,o),new Tr($)}};function $v(){return q4(xi(),wn())}function q4(n,o){return 4&n.type?new Hv(o,n,n1(n,o)):null}let X4=(()=>{class n{}return n.__NG_ELEMENT_ID__=Zv,n})();function Zv(){return b6(xi(),wn())}const Kv=X4,T6=class extends Kv{constructor(o,r,l){super(),this._lContainer=o,this._hostTNode=r,this._hostLView=l}get element(){return n1(this._hostTNode,this._hostLView)}get injector(){return new ms(this._hostTNode,this._hostLView)}get parentInjector(){const o=na(this._hostTNode,this._hostLView);if(su(o)){const r=ta(o,this._hostLView),l=il(o);return new ms(r[Yn].data[l+8],r)}return new ms(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const r=M6(this._lContainer);return null!==r&&r[o]||null}get length(){return this._lContainer.length-Lo}createEmbeddedView(o,r,l){let f,_;"number"==typeof l?f=l:null!=l&&(f=l.index,_=l.injector);const $=o.createEmbeddedViewImpl(r||{},_,null);return this.insertImpl($,f,false),$}createComponent(o,r,l,f,_){const b=o&&!function Ls(n){return"function"==typeof n}(o);let $;if(b)$=r;else{const Bn=r||{};$=Bn.index,l=Bn.injector,f=Bn.projectableNodes,_=Bn.environmentInjector||Bn.ngModuleRef}const oe=b?o:new Hh(lo(o)),Ie=l||this.parentInjector;if(!_&&null==oe.ngModule){const Jn=(b?Ie:this.parentInjector).get(g,null);Jn&&(_=Jn)}lo(oe.componentType??{});const ln=oe.create(Ie,f,null,_);return this.insertImpl(ln.hostView,$,false),ln}insert(o,r){return this.insertImpl(o,r,!1)}insertImpl(o,r,l){const f=o._lView,_=f[Yn];if(function Qo(n){return gi(n[Ue])}(f)){const oe=this.indexOf(o);if(-1!==oe)this.detach(oe);else{const Ie=f[Ue],ot=new T6(Ie,Ie[Qe],Ie[Ue]);ot.detach(ot.indexOf(o))}}const b=this._adjustIndex(r),$=this._lContainer;if(function W1(n,o,r,l){const f=Lo+l,_=r.length;l>0&&(r[f-1][se]=o),l<_-Lo?(o[se]=r[f],dl(r,Lo+l,o)):(r.push(o),o[se]=null),o[Ue]=r;const b=o[xn];null!==b&&r!==b&&function Z1(n,o){const r=n[_i];o[dn]!==o[Ue][Ue][dn]&&(n[Go]=!0),null===r?n[_i]=[o]:r.push(o)}(b,o);const $=o[In];null!==$&&$.insertView(n),o[so]|=128}(_,f,$,b),!l){const oe=qr(b,$),Ie=f[qt],ot=Bs(Ie,$[To]);null!==ot&&function G1(n,o,r,l,f,_){l[ei]=f,l[Qe]=o,ec(n,l,r,1,f,_)}(_,$[Qe],Ie,f,ot,oe)}return o.attachToViewContainerRef(),dl(z0($),b,o),o}move(o,r){return this.insert(o,r)}indexOf(o){const r=M6(this._lContainer);return null!==r?r.indexOf(o):-1}remove(o){const r=this._adjustIndex(o,-1),l=Nl(this._lContainer,r);l&&(Ra(z0(this._lContainer),r),Hu(l[Yn],l))}detach(o){const r=this._adjustIndex(o,-1),l=Nl(this._lContainer,r);return l&&null!=Ra(z0(this._lContainer),r)?new Tr(l):null}_adjustIndex(o,r=0){return o??this.length+r}};function M6(n){return n[8]}function z0(n){return n[8]||(n[8]=[])}function b6(n,o){let r;const l=o[n.index];return gi(l)?r=l:(r=l1(l,o,null,n),o[n.index]=r,Ap(o,r)),S6(r,o,n,l),new T6(r,n,o)}let S6=function E6(n,o,r,l){if(n[To])return;let f;f=8&r.type?ai(l):function Jv(n,o){const r=n[qt],l=r.createComment(""),f=Le(o,n);return Cs(r,Bs(r,f),l,function Lc(n,o){return n.nextSibling(o)}(r,f),!1),l}(o,r),n[To]=f};class T0{constructor(o){this.queryList=o,this.matches=null}clone(){return new T0(this.queryList)}setDirty(){this.queryList.setDirty()}}class M0{constructor(o=[]){this.queries=o}createEmbeddedView(o){const r=o.queries;if(null!==r){const l=null!==o.contentQueries?o.contentQueries[0]:r.length,f=[];for(let _=0;_0)l.push(b[$/2]);else{const Ie=_[$+1],ot=o[-oe];for(let xt=Lo;xt{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,l)=>{this.resolve=r,this.reject=l}),this.appInits=St(X6,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const _=f();if(j2(_))r.push(_);else if(Mf(_)){const b=new Promise(($,oe)=>{_.subscribe({complete:$,error:oe})});r.push(b)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{l()}).catch(f=>{this.reject(f)}),0===r.length&&l(),this.initialized=!0}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),em=(()=>{class n{log(r){console.log(r)}warn(r){console.warn(r)}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const t2=new ci("LocaleId",{providedIn:"root",factory:()=>St(t2,ae.Optional|ae.SkipSelf)||function E_(){return typeof $localize<"u"&&$localize.locale||Qp}()}),x_=new ci("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let tm=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new v.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class D_{constructor(o,r){this.ngModuleFactory=o,this.componentFactories=r}}let O_=(()=>{class n{compileModuleSync(r){return new v0(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const l=this.compileModuleSync(r),_=oc(Ro(r).declarations).reduce((b,$)=>{const oe=lo($);return oe&&b.push(new Hh(oe)),b},[]);return new D_(l,_)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function im(...n){}class xs{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xl(!1),this.onMicrotaskEmpty=new Xl(!1),this.onStable=new Xl(!1),this.onError=new Xl(!1),typeof Zone>"u")throw new F(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!l&&r,f.shouldCoalesceRunChangeDetection=l,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function I_(){const n="function"==typeof st.requestAnimationFrame;let o=st[n?"requestAnimationFrame":"setTimeout"],r=st[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&r){const l=o[Zone.__symbol__("OriginalDelegate")];l&&(o=l);const f=r[Zone.__symbol__("OriginalDelegate")];f&&(r=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function N_(n){const o=()=>{!function F_(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(st,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,F0(n),n.isCheckStableRunning=!0,A0(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),F0(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,l,f,_,b,$)=>{try{return rm(n),r.invokeTask(f,_,b,$)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===_.type||n.shouldCoalesceRunChangeDetection)&&o(),sm(n)}},onInvoke:(r,l,f,_,b,$,oe)=>{try{return rm(n),r.invoke(f,_,b,$,oe)}finally{n.shouldCoalesceRunChangeDetection&&o(),sm(n)}},onHasTask:(r,l,f,_)=>{r.hasTask(f,_),l===f&&("microTask"==_.change?(n._hasPendingMicrotasks=_.microTask,F0(n),A0(n)):"macroTask"==_.change&&(n.hasPendingMacrotasks=_.macroTask))},onHandleError:(r,l,f,_)=>(r.handleError(f,_),n.runOutsideAngular(()=>n.onError.emit(_)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xs.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(xs.isInAngularZone())throw new F(909,!1)}run(o,r,l){return this._inner.run(o,r,l)}runTask(o,r,l,f){const _=this._inner,b=_.scheduleEventTask("NgZoneEvent: "+f,o,A_,im,im);try{return _.runTask(b,r,l)}finally{_.cancelTask(b)}}runGuarded(o,r,l){return this._inner.runGuarded(o,r,l)}runOutsideAngular(o){return this._outer.run(o)}}const A_={};function A0(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function F0(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function rm(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function sm(n){n._nesting--,A0(n)}class L_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xl,this.onMicrotaskEmpty=new Xl,this.onStable=new Xl,this.onError=new Xl}run(o,r,l){return o.apply(r,l)}runGuarded(o,r,l){return o.apply(r,l)}runOutsideAngular(o){return o()}runTask(o,r,l,f){return o.apply(r,l)}}const am=new ci("",{providedIn:"root",factory:cm});function cm(){const n=St(xs);let o=!0;const r=new d.y(f=>{o=n.isStable&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks,n.runOutsideAngular(()=>{f.next(o),f.complete()})}),l=new d.y(f=>{let _;n.runOutsideAngular(()=>{_=n.onStable.subscribe(()=>{xs.assertNotInAngularZone(),queueMicrotask(()=>{!o&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks&&(o=!0,f.next(!0))})})});const b=n.onUnstable.subscribe(()=>{xs.assertInAngularZone(),o&&(o=!1,n.runOutsideAngular(()=>{f.next(!1)}))});return()=>{_.unsubscribe(),b.unsubscribe()}});return(0,s.T)(r,l.pipe((0,Q.B)()))}const lm=new ci(""),um=new ci("");let N0,k_=(()=>{class n{constructor(r,l,f){this._ngZone=r,this.registry=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,N0||(function R_(n){N0=n}(f),f.addToWindow(l)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{xs.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(r)||(clearTimeout(l.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,l,f){let _=-1;l&&l>0&&(_=setTimeout(()=>{this._callbacks=this._callbacks.filter(b=>b.timeoutId!==_),r(this._didWork,this.getPendingTasks())},l)),this._callbacks.push({doneCb:r,timeoutId:_,updateCb:f})}whenStable(r,l,f){if(f&&!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(r,l,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,l,f){return[]}}return n.\u0275fac=function(r){return new(r||n)(rt(xs),rt(dm),rt(um))},n.\u0275prov=Xt({token:n,factory:n.\u0275fac}),n})(),dm=(()=>{class n{constructor(){this._applications=new Map}registerApplication(r,l){this._applications.set(r,l)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,l=!0){return N0?.findTestabilityInTree(this,r,l)??null}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),zd=null;const pm=new ci("AllowMultipleToken"),L0=new ci("PlatformDestroyListeners"),k0=new ci("appBootstrapListener");class H_{constructor(o,r){this.name=o,this.token=r}}function mm(n,o,r=[]){const l=`Platform: ${o}`,f=new ci(l);return(_=[])=>{let b=R0();if(!b||b.injector.get(pm,!1)){const $=[...r,..._,{provide:f,useValue:!0}];n?n($):function $_(n){if(zd&&!zd.get(pm,!1))throw new F(400,!1);(function hm(){!function lc(n){ds=n}(()=>{throw new F(600,!1)})})(),zd=n;const o=n.get(vm);(function fm(n){n.get(mn,null)?.forEach(r=>r())})(n)}(function gm(n=[],o){return rc.create({name:o,providers:[{provide:gd,useValue:"platform"},{provide:L0,useValue:new Set([()=>zd=null])},...n]})}($,l))}return function U_(n){const o=R0();if(!o)throw new F(401,!1);return o}()}}function R0(){return zd?.get(vm)??null}let vm=(()=>{class n{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,l){const f=function G_(n="zone.js",o){return"noop"===n?new L_:"zone.js"===n?new xs(o):n}(l?.ngZone,function _m(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}({eventCoalescing:l?.ngZoneEventCoalescing,runCoalescing:l?.ngZoneRunCoalescing}));return f.run(()=>{const _=function Tv(n,o,r){return new g0(n,o,r)}(r.moduleType,this.injector,function Mm(n){return[{provide:xs,useFactory:n},{provide:Ju,multi:!0,useFactory:()=>{const o=St(j_,{optional:!0});return()=>o.initialize()}},{provide:Tm,useFactory:Q_},{provide:am,useFactory:cm}]}(()=>f)),b=_.injector.get(o1,null);return f.runOutsideAngular(()=>{const $=f.onError.subscribe({next:oe=>{b.handleError(oe)}});_.onDestroy(()=>{n2(this._modules,_),$.unsubscribe()})}),function ym(n,o,r){try{const l=r();return j2(l)?l.catch(f=>{throw o.runOutsideAngular(()=>n.handleError(f)),f}):l}catch(l){throw o.runOutsideAngular(()=>n.handleError(l)),l}}(b,f,()=>{const $=_.injector.get(I0);return $.runInitializers(),$.donePromise.then(()=>(function z3(n){et(n,"Expected localeId to be defined"),"string"==typeof n&&(C3=n.toLowerCase().replace(/_/g,"-"))}(_.injector.get(t2,Qp)||Qp),this._moduleDoBootstrap(_),_))})})}bootstrapModule(r,l=[]){const f=Cm({},l);return function V_(n,o,r){const l=new v0(r);return Promise.resolve(l)}(0,0,r).then(_=>this.bootstrapModuleFactory(_,f))}_moduleDoBootstrap(r){const l=r.injector.get(Kp);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(f=>l.bootstrap(f));else{if(!r.instance.ngDoBootstrap)throw new F(-403,!1);r.instance.ngDoBootstrap(l)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(l=>l.destroy()),this._destroyListeners.forEach(l=>l());const r=this._injector.get(L0,null);r&&(r.forEach(l=>l()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(r){return new(r||n)(rt(rc))},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Cm(n,o){return Array.isArray(o)?o.reduce(Cm,n):{...n,...o}}let Kp=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=St(Tm),this.zoneIsStable=St(am),this.componentTypes=[],this.components=[],this.isStable=St(tm).hasPendingTasks.pipe((0,Y.w)(r=>r?(0,L.of)(!1):this.zoneIsStable),(0,A.x)(),(0,Q.B)()),this._injector=St(g)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,l){const f=r instanceof oh;if(!this._injector.get(I0).done)throw!f&&Jo(r),new F(405,!1);let b;b=f?r:this._injector.get(t1).resolveComponentFactory(r),this.componentTypes.push(b.componentType);const $=function B_(n){return n.isBoundToModule}(b)?void 0:this._injector.get(jp),Ie=b.create(rc.NULL,[],l||b.selector,$),ot=Ie.location.nativeElement,xt=Ie.injector.get(lm,null);return xt?.registerApplication(ot),Ie.onDestroy(()=>{this.detachView(Ie.hostView),n2(this.components,Ie),xt?.unregisterApplication(ot)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const l=r;this._views.push(l),l.attachToAppRef(this)}detachView(r){const l=r;n2(this._views,l),l.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const l=this._injector.get(k0,[]);l.push(...this._bootstrapListeners),l.forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>n2(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new F(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function n2(n,o){const r=n.indexOf(o);r>-1&&n.splice(r,1)}const Tm=new ci("",{providedIn:"root",factory:()=>St(o1).handleError.bind(void 0)});function Q_(){const n=St(xs),o=St(o1);return r=>n.runOutsideAngular(()=>o.handleError(r))}let j_=(()=>{class n{constructor(){this.zone=St(xs),this.applicationRef=St(Kp)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=Xt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Z_(){return!1}function K_(){}let J_=(()=>{class n{}return n.__NG_ELEMENT_ID__=q_,n})();function q_(n){return function X_(n,o,r){if(Ai(n)&&!r){const l=hn(n.index,o);return new Tr(l,l)}return 47&n.type?new Tr(o[dn],o):null}(xi(),wn(),16==(16&n))}class xm{constructor(){}supports(o){return F4(o)}create(o){return new r5(o)}}const i5=(n,o)=>o;class r5{constructor(o){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=o||i5}forEachItem(o){let r;for(r=this._itHead;null!==r;r=r._next)o(r)}forEachOperation(o){let r=this._itHead,l=this._removalsHead,f=0,_=null;for(;r||l;){const b=!l||r&&r.currentIndex{b=this._trackByFn(f,$),null!==r&&Object.is(r.trackById,b)?(l&&(r=this._verifyReinsertion(r,$,b,f)),Object.is(r.item,$)||this._addIdentityChange(r,$)):(r=this._mismatch(r,$,b,f),l=!0),r=r._next,f++}),this.length=f;return this._truncate(r),this.collection=o,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let o;for(o=this._previousItHead=this._itHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._additionsHead;null!==o;o=o._nextAdded)o.previousIndex=o.currentIndex;for(this._additionsHead=this._additionsTail=null,o=this._movesHead;null!==o;o=o._nextMoved)o.previousIndex=o.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(o,r,l,f){let _;return null===o?_=this._itTail:(_=o._prev,this._remove(o)),null!==(o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._reinsertAfter(o,_,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(l,f))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._moveAfter(o,_,f)):o=this._addAfter(new s5(r,l),_,f),o}_verifyReinsertion(o,r,l,f){let _=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==_?o=this._reinsertAfter(_,o._prev,f):o.currentIndex!=f&&(o.currentIndex=f,this._addToMoves(o,f)),o}_truncate(o){for(;null!==o;){const r=o._next;this._addToRemovals(this._unlink(o)),o=r}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(o,r,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(o);const f=o._prevRemoved,_=o._nextRemoved;return null===f?this._removalsHead=_:f._nextRemoved=_,null===_?this._removalsTail=f:_._prevRemoved=f,this._insertAfter(o,r,l),this._addToMoves(o,l),o}_moveAfter(o,r,l){return this._unlink(o),this._insertAfter(o,r,l),this._addToMoves(o,l),o}_addAfter(o,r,l){return this._insertAfter(o,r,l),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,r,l){const f=null===r?this._itHead:r._next;return o._next=f,o._prev=r,null===f?this._itTail=o:f._prev=o,null===r?this._itHead=o:r._next=o,null===this._linkedRecords&&(this._linkedRecords=new Dm),this._linkedRecords.put(o),o.currentIndex=l,o}_remove(o){return this._addToRemovals(this._unlink(o))}_unlink(o){null!==this._linkedRecords&&this._linkedRecords.remove(o);const r=o._prev,l=o._next;return null===r?this._itHead=l:r._next=l,null===l?this._itTail=r:l._prev=r,o}_addToMoves(o,r){return o.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Dm),this._unlinkedRecords.put(o),o.currentIndex=null,o._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=o,o._prevRemoved=null):(o._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=o),o}_addIdentityChange(o,r){return o.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class s5{constructor(o,r){this.item=o,this.trackById=r,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 a5{constructor(){this._head=null,this._tail=null}add(o){null===this._head?(this._head=this._tail=o,o._nextDup=null,o._prevDup=null):(this._tail._nextDup=o,o._prevDup=this._tail,o._nextDup=null,this._tail=o)}get(o,r){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===r||r<=l.currentIndex)&&Object.is(l.trackById,o))return l;return null}remove(o){const r=o._prevDup,l=o._nextDup;return null===r?this._head=l:r._nextDup=l,null===l?this._tail=r:l._prevDup=r,null===this._head}}class Dm{constructor(){this.map=new Map}put(o){const r=o.trackById;let l=this.map.get(r);l||(l=new a5,this.map.set(r,l)),l.add(o)}get(o,r){const f=this.map.get(o);return f?f.get(o,r):null}remove(o){const r=o.trackById;return this.map.get(r).remove(o)&&this.map.delete(r),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Om(n,o,r){const l=n.previousIndex;if(null===l)return l;let f=0;return r&&l{if(r&&r.key===f)this._maybeAddToChanges(r,l),this._appendAfter=r,r=r._next;else{const _=this._getOrCreateRecordForKey(f,l);r=this._insertBeforeOrAppend(r,_)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let l=r;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(o,r){if(o){const l=o._prev;return r._next=o,r._prev=l,o._prev=r,l&&(l._next=r),o===this._mapHead&&(this._mapHead=r),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(o,r){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,r);const _=f._prev,b=f._next;return _&&(_._next=b),b&&(b._prev=_),f._next=null,f._prev=null,f}const l=new l5(o);return this._records.set(o,l),l.currentValue=r,this._addToAdditions(l),l}_reset(){if(this.isDirty){let o;for(this._previousMapHead=this._mapHead,o=this._previousMapHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._changesHead;null!==o;o=o._nextChanged)o.previousValue=o.currentValue;for(o=this._additionsHead;null!=o;o=o._nextAdded)o.previousValue=o.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(o,r){Object.is(r,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=r,this._addToChanges(o))}_addToAdditions(o){null===this._additionsHead?this._additionsHead=this._additionsTail=o:(this._additionsTail._nextAdded=o,this._additionsTail=o)}_addToChanges(o){null===this._changesHead?this._changesHead=this._changesTail=o:(this._changesTail._nextChanged=o,this._changesTail=o)}_forEach(o,r){o instanceof Map?o.forEach(r):Object.keys(o).forEach(l=>r(o[l],l))}}class l5{constructor(o){this.key=o,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 Pm(){return new Y0([new xm])}let Y0=(()=>{class n{constructor(r){this.factories=r}static create(r,l){if(null!=l){const f=l.factories.slice();r=r.concat(f)}return new n(r)}static extend(r){return{provide:n,useFactory:l=>n.create(r,l||Pm()),deps:[[n,new Ha,new Ba]]}}find(r){const l=this.factories.find(f=>f.supports(r));if(null!=l)return l;throw new F(901,!1)}}return n.\u0275prov=Xt({token:n,providedIn:"root",factory:Pm}),n})();function Im(){return new U0([new wm])}let U0=(()=>{class n{constructor(r){this.factories=r}static create(r,l){if(l){const f=l.factories.slice();r=r.concat(f)}return new n(r)}static extend(r){return{provide:n,useFactory:l=>n.create(r,l||Im()),deps:[[n,new Ha,new Ba]]}}find(r){const l=this.factories.find(f=>f.supports(r));if(l)return l;throw new F(901,!1)}}return n.\u0275prov=Xt({token:n,providedIn:"root",factory:Im}),n})();const p5=mm(null,"core",[]);let h5=(()=>{class n{constructor(r){}}return n.\u0275fac=function(r){return new(r||n)(rt(Kp))},n.\u0275mod=Ei({type:n}),n.\u0275inj=On({}),n})();function T5(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function b5(n){const o=lo(n);if(!o)return null;const r=new Hh(o);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},6223:(Ot,be,a)=>{a.d(be,{F:()=>Eo,Fj:()=>M,JJ:()=>He,JL:()=>Pe,JU:()=>Y,NI:()=>zi,Oe:()=>Rn,On:()=>lo,Q7:()=>Lo,TO:()=>gn,UX:()=>ls,Wl:()=>S,_Y:()=>Oo,a5:()=>On,cw:()=>Ze,kI:()=>Z,nJ:()=>ut,oH:()=>Ue,sg:()=>we,u:()=>Cn,u5:()=>_r,ve:()=>U});var t=a(5879),i=a(6814),v=a(9666),d=a(9315),s=a(7398);let L=(()=>{class Se{constructor(pe,ct){this._renderer=pe,this._elementRef=ct,this.onChange=zn=>{},this.onTouched=()=>{}}setProperty(pe,ct){this._renderer.setProperty(this._elementRef.nativeElement,pe,ct)}registerOnTouched(pe){this.onTouched=pe}registerOnChange(pe){this.onChange=pe}setDisabledState(pe){this.setProperty("disabled",pe)}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(t.Qsj),t.Y36(t.SBq))},Se.\u0275dir=t.lG2({type:Se}),Se})(),Q=(()=>{class Se extends L{}return Se.\u0275fac=function(){let ye;return function(ct){return(ye||(ye=t.n5z(Se)))(ct||Se)}}(),Se.\u0275dir=t.lG2({type:Se,features:[t.qOj]}),Se})();const Y=new t.OlP("NgValueAccessor"),A={provide:Y,useExisting:(0,t.Gpc)(()=>S),multi:!0};let S=(()=>{class Se extends Q{writeValue(pe){this.setProperty("checked",pe)}}return Se.\u0275fac=function(){let ye;return function(ct){return(ye||(ye=t.n5z(Se)))(ct||Se)}}(),Se.\u0275dir=t.lG2({type:Se,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(pe,ct){1&pe&&t.NdJ("change",function(Gn){return ct.onChange(Gn.target.checked)})("blur",function(){return ct.onTouched()})},features:[t._Bn([A]),t.qOj]}),Se})();const N={provide:Y,useExisting:(0,t.Gpc)(()=>M),multi:!0},U=new t.OlP("CompositionEventMode");let M=(()=>{class Se extends L{constructor(pe,ct,zn){super(pe,ct),this._compositionMode=zn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function V(){const Se=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(Se.toLowerCase())}())}writeValue(pe){this.setProperty("value",pe??"")}_handleInput(pe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(pe)}_compositionStart(){this._composing=!0}_compositionEnd(pe){this._composing=!1,this._compositionMode&&this.onChange(pe)}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(U,8))},Se.\u0275dir=t.lG2({type:Se,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(pe,ct){1&pe&&t.NdJ("input",function(Gn){return ct._handleInput(Gn.target.value)})("blur",function(){return ct.onTouched()})("compositionstart",function(){return ct._compositionStart()})("compositionend",function(Gn){return ct._compositionEnd(Gn.target.value)})},features:[t._Bn([N]),t.qOj]}),Se})();function e(Se){return null==Se||("string"==typeof Se||Array.isArray(Se))&&0===Se.length}function I(Se){return null!=Se&&"number"==typeof Se.length}const k=new t.OlP("NgValidators"),ge=new t.OlP("NgAsyncValidators"),Ce=/^(?=.{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 Z{static min(ye){return function F(Se){return ye=>{if(e(ye.value)||e(Se))return null;const pe=parseFloat(ye.value);return!isNaN(pe)&&pe{if(e(ye.value)||e(Se))return null;const pe=parseFloat(ye.value);return!isNaN(pe)&&pe>Se?{max:{max:Se,actual:ye.value}}:null}}(ye)}static required(ye){return O(ye)}static requiredTrue(ye){return function P(Se){return!0===Se.value?null:{required:!0}}(ye)}static email(ye){return function x(Se){return e(Se.value)||Ce.test(Se.value)?null:{email:!0}}(ye)}static minLength(ye){return function de(Se){return ye=>e(ye.value)||!I(ye.value)?null:ye.value.lengthI(ye.value)&&ye.value.length>Se?{maxlength:{requiredLength:Se,actualLength:ye.value.length}}:null}(ye)}static pattern(ye){return function j(Se){if(!Se)return me;let ye,pe;return"string"==typeof Se?(pe="","^"!==Se.charAt(0)&&(pe+="^"),pe+=Se,"$"!==Se.charAt(Se.length-1)&&(pe+="$"),ye=new RegExp(pe)):(pe=Se.toString(),ye=Se),ct=>{if(e(ct.value))return null;const zn=ct.value;return ye.test(zn)?null:{pattern:{requiredPattern:pe,actualValue:zn}}}}(ye)}static nullValidator(ye){return null}static compose(ye){return Tt(ye)}static composeAsync(ye){return _t(ye)}}function O(Se){return e(Se.value)?{required:!0}:null}function me(Se){return null}function re(Se){return null!=Se}function he(Se){return(0,t.QGY)(Se)?(0,v.D)(Se):Se}function Me(Se){let ye={};return Se.forEach(pe=>{ye=null!=pe?{...ye,...pe}:ye}),0===Object.keys(ye).length?null:ye}function Oe(Se,ye){return ye.map(pe=>pe(Se))}function It(Se){return Se.map(ye=>function kt(Se){return!Se.validate}(ye)?ye:pe=>ye.validate(pe))}function Tt(Se){if(!Se)return null;const ye=Se.filter(re);return 0==ye.length?null:function(pe){return Me(Oe(pe,ye))}}function gt(Se){return null!=Se?Tt(It(Se)):null}function _t(Se){if(!Se)return null;const ye=Se.filter(re);return 0==ye.length?null:function(pe){const ct=Oe(pe,ye).map(he);return(0,d.D)(ct).pipe((0,s.U)(Me))}}function Ft(Se){return null!=Se?_t(It(Se)):null}function rn(Se,ye){return null===Se?[ye]:Array.isArray(Se)?[...Se,ye]:[Se,ye]}function bn(Se){return Se._rawValidators}function et(Se){return Se._rawAsyncValidators}function Re(Se){return Se?Array.isArray(Se)?Se:[Se]:[]}function yt(Se,ye){return Array.isArray(Se)?Se.includes(ye):Se===ye}function je(Se,ye){const pe=Re(ye);return Re(Se).forEach(zn=>{yt(pe,zn)||pe.push(zn)}),pe}function Ut(Se,ye){return Re(ye).filter(pe=>!yt(Se,pe))}class Xt{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(ye){this._rawValidators=ye||[],this._composedValidatorFn=gt(this._rawValidators)}_setAsyncValidators(ye){this._rawAsyncValidators=ye||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ye){this._onDestroyCallbacks.push(ye)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ye=>ye()),this._onDestroyCallbacks=[]}reset(ye=void 0){this.control&&this.control.reset(ye)}hasError(ye,pe){return!!this.control&&this.control.hasError(ye,pe)}getError(ye,pe){return this.control?this.control.getError(ye,pe):null}}class _n extends Xt{get formDirective(){return null}get path(){return null}}class On extends Xt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jt{constructor(ye){this._cd=ye}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let He=(()=>{class Se extends Jt{constructor(pe){super(pe)}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(On,2))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(pe,ct){2&pe&&t.ekj("ng-untouched",ct.isUntouched)("ng-touched",ct.isTouched)("ng-pristine",ct.isPristine)("ng-dirty",ct.isDirty)("ng-valid",ct.isValid)("ng-invalid",ct.isInvalid)("ng-pending",ct.isPending)},features:[t.qOj]}),Se})(),Pe=(()=>{class Se extends Jt{constructor(pe){super(pe)}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(_n,10))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(pe,ct){2&pe&&t.ekj("ng-untouched",ct.isUntouched)("ng-touched",ct.isTouched)("ng-pristine",ct.isPristine)("ng-dirty",ct.isDirty)("ng-valid",ct.isValid)("ng-invalid",ct.isInvalid)("ng-pending",ct.isPending)("ng-submitted",ct.isSubmitted)},features:[t.qOj]}),Se})();const Ke="VALID",K="INVALID",w="PENDING",J="DISABLED";function Te(Se){return(rt(Se)?Se.validators:Se)||null}function nt(Se,ye){return(rt(ye)?ye.asyncValidators:Se)||null}function rt(Se){return null!=Se&&!Array.isArray(Se)&&"object"==typeof Se}function Rt(Se,ye,pe){const ct=Se.controls;if(!(ye?Object.keys(ct):ct).length)throw new t.vHH(1e3,"");if(!ct[pe])throw new t.vHH(1001,"")}function St(Se,ye,pe){Se._forEachChild((ct,zn)=>{if(void 0===pe[zn])throw new t.vHH(1002,"")})}class gn{constructor(ye,pe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ye),this._assignAsyncValidators(pe)}get validator(){return this._composedValidatorFn}set validator(ye){this._rawValidators=this._composedValidatorFn=ye}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ye){this._rawAsyncValidators=this._composedAsyncValidatorFn=ye}get parent(){return this._parent}get valid(){return this.status===Ke}get invalid(){return this.status===K}get pending(){return this.status==w}get disabled(){return this.status===J}get enabled(){return this.status!==J}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ye){this._assignValidators(ye)}setAsyncValidators(ye){this._assignAsyncValidators(ye)}addValidators(ye){this.setValidators(je(ye,this._rawValidators))}addAsyncValidators(ye){this.setAsyncValidators(je(ye,this._rawAsyncValidators))}removeValidators(ye){this.setValidators(Ut(ye,this._rawValidators))}removeAsyncValidators(ye){this.setAsyncValidators(Ut(ye,this._rawAsyncValidators))}hasValidator(ye){return yt(this._rawValidators,ye)}hasAsyncValidator(ye){return yt(this._rawAsyncValidators,ye)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ye={}){this.touched=!0,this._parent&&!ye.onlySelf&&this._parent.markAsTouched(ye)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ye=>ye.markAllAsTouched())}markAsUntouched(ye={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(pe=>{pe.markAsUntouched({onlySelf:!0})}),this._parent&&!ye.onlySelf&&this._parent._updateTouched(ye)}markAsDirty(ye={}){this.pristine=!1,this._parent&&!ye.onlySelf&&this._parent.markAsDirty(ye)}markAsPristine(ye={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(pe=>{pe.markAsPristine({onlySelf:!0})}),this._parent&&!ye.onlySelf&&this._parent._updatePristine(ye)}markAsPending(ye={}){this.status=w,!1!==ye.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ye.onlySelf&&this._parent.markAsPending(ye)}disable(ye={}){const pe=this._parentMarkedDirty(ye.onlySelf);this.status=J,this.errors=null,this._forEachChild(ct=>{ct.disable({...ye,onlySelf:!0})}),this._updateValue(),!1!==ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ye,skipPristineCheck:pe}),this._onDisabledChange.forEach(ct=>ct(!0))}enable(ye={}){const pe=this._parentMarkedDirty(ye.onlySelf);this.status=Ke,this._forEachChild(ct=>{ct.enable({...ye,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ye.emitEvent}),this._updateAncestors({...ye,skipPristineCheck:pe}),this._onDisabledChange.forEach(ct=>ct(!1))}_updateAncestors(ye){this._parent&&!ye.onlySelf&&(this._parent.updateValueAndValidity(ye),ye.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ye){this._parent=ye}getRawValue(){return this.value}updateValueAndValidity(ye={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ke||this.status===w)&&this._runAsyncValidator(ye.emitEvent)),!1!==ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ye.onlySelf&&this._parent.updateValueAndValidity(ye)}_updateTreeValidity(ye={emitEvent:!0}){this._forEachChild(pe=>pe._updateTreeValidity(ye)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ye.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?J:Ke}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ye){if(this.asyncValidator){this.status=w,this._hasOwnPendingAsyncValidator=!0;const pe=he(this.asyncValidator(this));this._asyncValidationSubscription=pe.subscribe(ct=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ct,{emitEvent:ye})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ye,pe={}){this.errors=ye,this._updateControlsErrors(!1!==pe.emitEvent)}get(ye){let pe=ye;return null==pe||(Array.isArray(pe)||(pe=pe.split(".")),0===pe.length)?null:pe.reduce((ct,zn)=>ct&&ct._find(zn),this)}getError(ye,pe){const ct=pe?this.get(pe):this;return ct&&ct.errors?ct.errors[ye]:null}hasError(ye,pe){return!!this.getError(ye,pe)}get root(){let ye=this;for(;ye._parent;)ye=ye._parent;return ye}_updateControlsErrors(ye){this.status=this._calculateStatus(),ye&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ye)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?J:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(w)?w:this._anyControlsHaveStatus(K)?K:Ke}_anyControlsHaveStatus(ye){return this._anyControls(pe=>pe.status===ye)}_anyControlsDirty(){return this._anyControls(ye=>ye.dirty)}_anyControlsTouched(){return this._anyControls(ye=>ye.touched)}_updatePristine(ye={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ye.onlySelf&&this._parent._updatePristine(ye)}_updateTouched(ye={}){this.touched=this._anyControlsTouched(),this._parent&&!ye.onlySelf&&this._parent._updateTouched(ye)}_registerOnCollectionChange(ye){this._onCollectionChange=ye}_setUpdateStrategy(ye){rt(ye)&&null!=ye.updateOn&&(this._updateOn=ye.updateOn)}_parentMarkedDirty(ye){return!ye&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ye){return null}_assignValidators(ye){this._rawValidators=Array.isArray(ye)?ye.slice():ye,this._composedValidatorFn=function zt(Se){return Array.isArray(Se)?gt(Se):Se||null}(this._rawValidators)}_assignAsyncValidators(ye){this._rawAsyncValidators=Array.isArray(ye)?ye.slice():ye,this._composedAsyncValidatorFn=function qe(Se){return Array.isArray(Se)?Ft(Se):Se||null}(this._rawAsyncValidators)}}class Ze extends gn{constructor(ye,pe,ct){super(Te(pe),nt(ct,pe)),this.controls=ye,this._initObservables(),this._setUpdateStrategy(pe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ye,pe){return this.controls[ye]?this.controls[ye]:(this.controls[ye]=pe,pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange),pe)}addControl(ye,pe,ct={}){this.registerControl(ye,pe),this.updateValueAndValidity({emitEvent:ct.emitEvent}),this._onCollectionChange()}removeControl(ye,pe={}){this.controls[ye]&&this.controls[ye]._registerOnCollectionChange(()=>{}),delete this.controls[ye],this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}setControl(ye,pe,ct={}){this.controls[ye]&&this.controls[ye]._registerOnCollectionChange(()=>{}),delete this.controls[ye],pe&&this.registerControl(ye,pe),this.updateValueAndValidity({emitEvent:ct.emitEvent}),this._onCollectionChange()}contains(ye){return this.controls.hasOwnProperty(ye)&&this.controls[ye].enabled}setValue(ye,pe={}){St(this,0,ye),Object.keys(ye).forEach(ct=>{Rt(this,!0,ct),this.controls[ct].setValue(ye[ct],{onlySelf:!0,emitEvent:pe.emitEvent})}),this.updateValueAndValidity(pe)}patchValue(ye,pe={}){null!=ye&&(Object.keys(ye).forEach(ct=>{const zn=this.controls[ct];zn&&zn.patchValue(ye[ct],{onlySelf:!0,emitEvent:pe.emitEvent})}),this.updateValueAndValidity(pe))}reset(ye={},pe={}){this._forEachChild((ct,zn)=>{ct.reset(ye[zn],{onlySelf:!0,emitEvent:pe.emitEvent})}),this._updatePristine(pe),this._updateTouched(pe),this.updateValueAndValidity(pe)}getRawValue(){return this._reduceChildren({},(ye,pe,ct)=>(ye[ct]=pe.getRawValue(),ye))}_syncPendingControls(){let ye=this._reduceChildren(!1,(pe,ct)=>!!ct._syncPendingControls()||pe);return ye&&this.updateValueAndValidity({onlySelf:!0}),ye}_forEachChild(ye){Object.keys(this.controls).forEach(pe=>{const ct=this.controls[pe];ct&&ye(ct,pe)})}_setUpControls(){this._forEachChild(ye=>{ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ye){for(const[pe,ct]of Object.entries(this.controls))if(this.contains(pe)&&ye(ct))return!0;return!1}_reduceValue(){return this._reduceChildren({},(pe,ct,zn)=>((ct.enabled||this.disabled)&&(pe[zn]=ct.value),pe))}_reduceChildren(ye,pe){let ct=ye;return this._forEachChild((zn,Gn)=>{ct=pe(ct,zn,Gn)}),ct}_allControlsDisabled(){for(const ye of Object.keys(this.controls))if(this.controls[ye].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ye){return this.controls.hasOwnProperty(ye)?this.controls[ye]:null}}const ut=Ze,Ae=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>at}),at="always";function Ht(Se,ye){return[...ye.path,Se]}function un(Se,ye,pe=at){ne(Se,ye),ye.valueAccessor.writeValue(Se.value),(Se.disabled||"always"===pe)&&ye.valueAccessor.setDisabledState?.(Se.disabled),function ze(Se,ye){ye.valueAccessor.registerOnChange(pe=>{Se._pendingValue=pe,Se._pendingChange=!0,Se._pendingDirty=!0,"change"===Se.updateOn&&Mt(Se,ye)})}(Se,ye),function on(Se,ye){const pe=(ct,zn)=>{ye.valueAccessor.writeValue(ct),zn&&ye.viewToModelUpdate(ct)};Se.registerOnChange(pe),ye._registerOnDestroy(()=>{Se._unregisterOnChange(pe)})}(Se,ye),function $e(Se,ye){ye.valueAccessor.registerOnTouched(()=>{Se._pendingTouched=!0,"blur"===Se.updateOn&&Se._pendingChange&&Mt(Se,ye),"submit"!==Se.updateOn&&Se.markAsTouched()})}(Se,ye),function ft(Se,ye){if(ye.valueAccessor.setDisabledState){const pe=ct=>{ye.valueAccessor.setDisabledState(ct)};Se.registerOnDisabledChange(pe),ye._registerOnDestroy(()=>{Se._unregisterOnDisabledChange(pe)})}}(Se,ye)}function Lt(Se,ye,pe=!0){const ct=()=>{};ye.valueAccessor&&(ye.valueAccessor.registerOnChange(ct),ye.valueAccessor.registerOnTouched(ct)),B(Se,ye),Se&&(ye._invokeOnDestroyCallbacks(),Se._registerOnCollectionChange(()=>{}))}function dt(Se,ye){Se.forEach(pe=>{pe.registerOnValidatorChange&&pe.registerOnValidatorChange(ye)})}function ne(Se,ye){const pe=bn(Se);null!==ye.validator?Se.setValidators(rn(pe,ye.validator)):"function"==typeof pe&&Se.setValidators([pe]);const ct=et(Se);null!==ye.asyncValidator?Se.setAsyncValidators(rn(ct,ye.asyncValidator)):"function"==typeof ct&&Se.setAsyncValidators([ct]);const zn=()=>Se.updateValueAndValidity();dt(ye._rawValidators,zn),dt(ye._rawAsyncValidators,zn)}function B(Se,ye){let pe=!1;if(null!==Se){if(null!==ye.validator){const zn=bn(Se);if(Array.isArray(zn)&&zn.length>0){const Gn=zn.filter(fi=>fi!==ye.validator);Gn.length!==zn.length&&(pe=!0,Se.setValidators(Gn))}}if(null!==ye.asyncValidator){const zn=et(Se);if(Array.isArray(zn)&&zn.length>0){const Gn=zn.filter(fi=>fi!==ye.asyncValidator);Gn.length!==zn.length&&(pe=!0,Se.setAsyncValidators(Gn))}}}const ct=()=>{};return dt(ye._rawValidators,ct),dt(ye._rawAsyncValidators,ct),pe}function Mt(Se,ye){Se._pendingDirty&&Se.markAsDirty(),Se.setValue(Se._pendingValue,{emitModelToViewChange:!1}),ye.viewToModelUpdate(Se._pendingValue),Se._pendingChange=!1}function Zt(Se,ye){ne(Se,ye)}function Ko(Se,ye){if(!Se.hasOwnProperty("model"))return!1;const pe=Se.model;return!!pe.isFirstChange()||!Object.is(ye,pe.currentValue)}function mo(Se,ye){Se._syncPendingControls(),ye.forEach(pe=>{const ct=pe.control;"submit"===ct.updateOn&&ct._pendingChange&&(pe.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1)})}function Xn(Se,ye){if(!ye)return null;let pe,ct,zn;return Array.isArray(ye),ye.forEach(Gn=>{Gn.constructor===M?pe=Gn:function ui(Se){return Object.getPrototypeOf(Se.constructor)===Q}(Gn)?ct=Gn:zn=Gn}),zn||ct||pe||null}const wo={provide:_n,useExisting:(0,t.Gpc)(()=>Eo)},So=(()=>Promise.resolve())();let Eo=(()=>{class Se extends _n{constructor(pe,ct,zn){super(),this.callSetDisabledState=zn,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Ze({},gt(pe),Ft(ct))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(pe){So.then(()=>{const ct=this._findContainer(pe.path);pe.control=ct.registerControl(pe.name,pe.control),un(pe.control,pe,this.callSetDisabledState),pe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(pe)})}getControl(pe){return this.form.get(pe.path)}removeControl(pe){So.then(()=>{const ct=this._findContainer(pe.path);ct&&ct.removeControl(pe.name),this._directives.delete(pe)})}addFormGroup(pe){So.then(()=>{const ct=this._findContainer(pe.path),zn=new Ze({});Zt(zn,pe),ct.registerControl(pe.name,zn),zn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(pe){So.then(()=>{const ct=this._findContainer(pe.path);ct&&ct.removeControl(pe.name)})}getFormGroup(pe){return this.form.get(pe.path)}updateModel(pe,ct){So.then(()=>{this.form.get(pe.path).setValue(ct)})}setValue(pe){this.control.setValue(pe)}onSubmit(pe){return this.submitted=!0,mo(this.form,this._directives),this.ngSubmit.emit(pe),"dialog"===pe?.target?.method}onReset(){this.resetForm()}resetForm(pe=void 0){this.form.reset(pe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(pe){return pe.pop(),pe.length?this.form.get(pe):this.form}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(k,10),t.Y36(ge,10),t.Y36(Ae,8))},Se.\u0275dir=t.lG2({type:Se,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(pe,ct){1&pe&&t.NdJ("submit",function(Gn){return ct.onSubmit(Gn)})("reset",function(){return ct.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([wo]),t.qOj]}),Se})();function Pi(Se,ye){const pe=Se.indexOf(ye);pe>-1&&Se.splice(pe,1)}function Xo(Se){return"object"==typeof Se&&null!==Se&&2===Object.keys(Se).length&&"value"in Se&&"disabled"in Se}const zi=class extends gn{constructor(ye=null,pe,ct){super(Te(pe),nt(ct,pe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ye),this._setUpdateStrategy(pe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(pe)&&(pe.nonNullable||pe.initialValueIsDefault)&&(this.defaultValue=Xo(ye)?ye.value:ye)}setValue(ye,pe={}){this.value=this._pendingValue=ye,this._onChange.length&&!1!==pe.emitModelToViewChange&&this._onChange.forEach(ct=>ct(this.value,!1!==pe.emitViewToModelChange)),this.updateValueAndValidity(pe)}patchValue(ye,pe={}){this.setValue(ye,pe)}reset(ye=this.defaultValue,pe={}){this._applyFormState(ye),this.markAsPristine(pe),this.markAsUntouched(pe),this.setValue(this.value,pe),this._pendingChange=!1}_updateValue(){}_anyControls(ye){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ye){this._onChange.push(ye)}_unregisterOnChange(ye){Pi(this._onChange,ye)}registerOnDisabledChange(ye){this._onDisabledChange.push(ye)}_unregisterOnDisabledChange(ye){Pi(this._onDisabledChange,ye)}_forEachChild(ye){}_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(ye){Xo(ye)?(this.value=this._pendingValue=ye.value,ye.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ye}},ur={provide:On,useExisting:(0,t.Gpc)(()=>lo)},dr=(()=>Promise.resolve())();let lo=(()=>{class Se extends On{constructor(pe,ct,zn,Gn,fi,si){super(),this._changeDetectorRef=fi,this.callSetDisabledState=si,this.control=new zi,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=pe,this._setValidators(ct),this._setAsyncValidators(zn),this.valueAccessor=Xn(0,Gn)}ngOnChanges(pe){if(this._checkForErrors(),!this._registered||"name"in pe){if(this._registered&&(this._checkName(),this.formDirective)){const ct=pe.name.previousValue;this.formDirective.removeControl({name:ct,path:this._getPath(ct)})}this._setUpControl()}"isDisabled"in pe&&this._updateDisabled(pe),Ko(pe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(pe){this.viewModel=pe,this.update.emit(pe)}_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(){un(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(pe){dr.then(()=>{this.control.setValue(pe,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(pe){const ct=pe.isDisabled.currentValue,zn=0!==ct&&(0,t.VuI)(ct);dr.then(()=>{zn&&!this.control.disabled?this.control.disable():!zn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(pe){return this._parent?Ht(pe,this._parent):[pe]}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(_n,9),t.Y36(k,10),t.Y36(ge,10),t.Y36(Y,10),t.Y36(t.sBO,8),t.Y36(Ae,8))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([ur]),t.qOj,t.TTD]}),Se})(),Oo=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275dir=t.lG2({type:Se,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Se})(),qo=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=t.oAB({type:Se}),Se.\u0275inj=t.cJS({}),Se})();const Yn=new t.OlP("NgModelWithFormControlWarning"),so={provide:On,useExisting:(0,t.Gpc)(()=>Ue)};let Ue=(()=>{class Se extends On{set isDisabled(pe){}constructor(pe,ct,zn,Gn,fi){super(),this._ngModelWarningConfig=Gn,this.callSetDisabledState=fi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(pe),this._setAsyncValidators(ct),this.valueAccessor=Xn(0,zn)}ngOnChanges(pe){if(this._isControlChanged(pe)){const ct=pe.form.previousValue;ct&&Lt(ct,this,!1),un(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ko(pe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Lt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(pe){this.viewModel=pe,this.update.emit(pe)}_isControlChanged(pe){return pe.hasOwnProperty("form")}}return Se._ngModelWarningSentOnce=!1,Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(k,10),t.Y36(ge,10),t.Y36(Y,10),t.Y36(Yn,8),t.Y36(Ae,8))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([so]),t.qOj,t.TTD]}),Se})();const se={provide:_n,useExisting:(0,t.Gpc)(()=>we)};let we=(()=>{class Se extends _n{constructor(pe,ct,zn){super(),this.callSetDisabledState=zn,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(pe),this._setAsyncValidators(ct)}ngOnChanges(pe){this._checkFormPresent(),pe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(B(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(pe){const ct=this.form.get(pe.path);return un(ct,pe,this.callSetDisabledState),ct.updateValueAndValidity({emitEvent:!1}),this.directives.push(pe),ct}getControl(pe){return this.form.get(pe.path)}removeControl(pe){Lt(pe.control||null,pe,!1),function di(Se,ye){const pe=Se.indexOf(ye);pe>-1&&Se.splice(pe,1)}(this.directives,pe)}addFormGroup(pe){this._setUpFormContainer(pe)}removeFormGroup(pe){this._cleanUpFormContainer(pe)}getFormGroup(pe){return this.form.get(pe.path)}addFormArray(pe){this._setUpFormContainer(pe)}removeFormArray(pe){this._cleanUpFormContainer(pe)}getFormArray(pe){return this.form.get(pe.path)}updateModel(pe,ct){this.form.get(pe.path).setValue(ct)}onSubmit(pe){return this.submitted=!0,mo(this.form,this.directives),this.ngSubmit.emit(pe),"dialog"===pe?.target?.method}onReset(){this.resetForm()}resetForm(pe=void 0){this.form.reset(pe),this.submitted=!1}_updateDomValue(){this.directives.forEach(pe=>{const ct=pe.control,zn=this.form.get(pe.path);ct!==zn&&(Lt(ct||null,pe),(Se=>Se instanceof zi)(zn)&&(un(zn,pe,this.callSetDisabledState),pe.control=zn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(pe){const ct=this.form.get(pe.path);Zt(ct,pe),ct.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(pe){if(this.form){const ct=this.form.get(pe.path);ct&&function Wn(Se,ye){return B(Se,ye)}(ct,pe)&&ct.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ne(this.form,this),this._oldForm&&B(this._oldForm,this)}_checkFormPresent(){}}return Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(k,10),t.Y36(ge,10),t.Y36(Ae,8))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","formGroup",""]],hostBindings:function(pe,ct){1&pe&&t.NdJ("submit",function(Gn){return ct.onSubmit(Gn)})("reset",function(){return ct.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([se]),t.qOj,t.TTD]}),Se})();const qt={provide:On,useExisting:(0,t.Gpc)(()=>Cn)};let Cn=(()=>{class Se extends On{set isDisabled(pe){}constructor(pe,ct,zn,Gn,fi){super(),this._ngModelWarningConfig=fi,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=pe,this._setValidators(ct),this._setAsyncValidators(zn),this.valueAccessor=Xn(0,Gn)}ngOnChanges(pe){this._added||this._setUpControl(),Ko(pe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(pe){this.viewModel=pe,this.update.emit(pe)}get path(){return Ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Se._ngModelWarningSentOnce=!1,Se.\u0275fac=function(pe){return new(pe||Se)(t.Y36(_n,13),t.Y36(k,10),t.Y36(ge,10),t.Y36(Y,10),t.Y36(Yn,8))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([qt]),t.qOj,t.TTD]}),Se})(),Fo=(()=>{class Se{constructor(){this._validator=me}ngOnChanges(pe){if(this.inputName in pe){const ct=this.normalizeInput(pe[this.inputName].currentValue);this._enabled=this.enabled(ct),this._validator=this._enabled?this.createValidator(ct):me,this._onChange&&this._onChange()}}validate(pe){return this._validator(pe)}registerOnValidatorChange(pe){this._onChange=pe}enabled(pe){return null!=pe}}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275dir=t.lG2({type:Se,features:[t.TTD]}),Se})();const _i={provide:k,useExisting:(0,t.Gpc)(()=>Lo),multi:!0};let Lo=(()=>{class Se extends Fo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=pe=>O}enabled(pe){return pe}}return Se.\u0275fac=function(){let ye;return function(ct){return(ye||(ye=t.n5z(Se)))(ct||Se)}}(),Se.\u0275dir=t.lG2({type:Se,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(pe,ct){2&pe&&t.uIk("required",ct._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([_i]),t.qOj]}),Se})(),an=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=t.oAB({type:Se}),Se.\u0275inj=t.cJS({imports:[qo]}),Se})();class Rn extends gn{constructor(ye,pe,ct){super(Te(pe),nt(ct,pe)),this.controls=ye,this._initObservables(),this._setUpdateStrategy(pe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ye){return this.controls[this._adjustIndex(ye)]}push(ye,pe={}){this.controls.push(ye),this._registerControl(ye),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}insert(ye,pe,ct={}){this.controls.splice(ye,0,pe),this._registerControl(pe),this.updateValueAndValidity({emitEvent:ct.emitEvent})}removeAt(ye,pe={}){let ct=this._adjustIndex(ye);ct<0&&(ct=0),this.controls[ct]&&this.controls[ct]._registerOnCollectionChange(()=>{}),this.controls.splice(ct,1),this.updateValueAndValidity({emitEvent:pe.emitEvent})}setControl(ye,pe,ct={}){let zn=this._adjustIndex(ye);zn<0&&(zn=0),this.controls[zn]&&this.controls[zn]._registerOnCollectionChange(()=>{}),this.controls.splice(zn,1),pe&&(this.controls.splice(zn,0,pe),this._registerControl(pe)),this.updateValueAndValidity({emitEvent:ct.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ye,pe={}){St(this,0,ye),ye.forEach((ct,zn)=>{Rt(this,!1,zn),this.at(zn).setValue(ct,{onlySelf:!0,emitEvent:pe.emitEvent})}),this.updateValueAndValidity(pe)}patchValue(ye,pe={}){null!=ye&&(ye.forEach((ct,zn)=>{this.at(zn)&&this.at(zn).patchValue(ct,{onlySelf:!0,emitEvent:pe.emitEvent})}),this.updateValueAndValidity(pe))}reset(ye=[],pe={}){this._forEachChild((ct,zn)=>{ct.reset(ye[zn],{onlySelf:!0,emitEvent:pe.emitEvent})}),this._updatePristine(pe),this._updateTouched(pe),this.updateValueAndValidity(pe)}getRawValue(){return this.controls.map(ye=>ye.getRawValue())}clear(ye={}){this.controls.length<1||(this._forEachChild(pe=>pe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ye.emitEvent}))}_adjustIndex(ye){return ye<0?ye+this.length:ye}_syncPendingControls(){let ye=this.controls.reduce((pe,ct)=>!!ct._syncPendingControls()||pe,!1);return ye&&this.updateValueAndValidity({onlySelf:!0}),ye}_forEachChild(ye){this.controls.forEach((pe,ct)=>{ye(pe,ct)})}_updateValue(){this.value=this.controls.filter(ye=>ye.enabled||this.disabled).map(ye=>ye.value)}_anyControls(ye){return this.controls.some(pe=>pe.enabled&&ye(pe))}_setUpControls(){this._forEachChild(ye=>this._registerControl(ye))}_allControlsDisabled(){for(const ye of this.controls)if(ye.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ye){ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange)}_find(ye){return this.at(ye)??null}}let _r=(()=>{class Se{static withConfig(pe){return{ngModule:Se,providers:[{provide:Ae,useValue:pe.callSetDisabledState??at}]}}}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=t.oAB({type:Se}),Se.\u0275inj=t.cJS({imports:[an]}),Se})(),ls=(()=>{class Se{static withConfig(pe){return{ngModule:Se,providers:[{provide:Yn,useValue:pe.warnOnNgModelWithFormControl??"always"},{provide:Ae,useValue:pe.callSetDisabledState??at}]}}}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=t.oAB({type:Se}),Se.\u0275inj=t.cJS({imports:[an]}),Se})()},6593:(Ot,be,a)=>{a.d(be,{Dx:()=>Be,H7:()=>K,b2:()=>Nt,h_:()=>He,q6:()=>Xt,se:()=>de});var t=a(5879),i=a(6814);class v extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class d extends v{static makeCurrent(){(0,i.HT)(new d)}onAndCancel(ut,ce,_e){return ut.addEventListener(ce,_e),()=>{ut.removeEventListener(ce,_e)}}dispatchEvent(ut,ce){ut.dispatchEvent(ce)}remove(ut){ut.parentNode&&ut.parentNode.removeChild(ut)}createElement(ut,ce){return(ce=ce||this.getDefaultDocument()).createElement(ut)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ut){return ut.nodeType===Node.ELEMENT_NODE}isShadowRoot(ut){return ut instanceof DocumentFragment}getGlobalEventTarget(ut,ce){return"window"===ce?window:"document"===ce?ut:"body"===ce?ut.body:null}getBaseHref(ut){const ce=function L(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==ce?null:function Y(Ze){Q=Q||document.createElement("a"),Q.setAttribute("href",Ze);const ut=Q.pathname;return"/"===ut.charAt(0)?ut:`/${ut}`}(ce)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(ut){return(0,i.Mx)(document.cookie,ut)}}let Q,s=null,S=(()=>{class Ze{build(){return new XMLHttpRequest}}return Ze.\u0275fac=function(ce){return new(ce||Ze)},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const N=new t.OlP("EventManagerPlugins");let V=(()=>{class Ze{constructor(ce,_e){this._zone=_e,this._eventNameToPlugin=new Map,ce.forEach(mt=>{mt.manager=this}),this._plugins=ce.slice().reverse()}addEventListener(ce,_e,mt){return this._findPluginFor(_e).addEventListener(ce,_e,mt)}getZone(){return this._zone}_findPluginFor(ce){let _e=this._eventNameToPlugin.get(ce);if(_e)return _e;if(_e=this._plugins.find(Ae=>Ae.supports(ce)),!_e)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(ce,_e),_e}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(N),t.LFG(t.R0b))},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();class U{constructor(ut){this._doc=ut}}const M="ng-app-id";let e=(()=>{class Ze{constructor(ce,_e,mt,Ae={}){this.doc=ce,this.appId=_e,this.nonce=mt,this.platformId=Ae,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,i.PM)(Ae),this.resetHostNodes()}addStyles(ce){for(const _e of ce)1===this.changeUsageCount(_e,1)&&this.onStyleAdded(_e)}removeStyles(ce){for(const _e of ce)this.changeUsageCount(_e,-1)<=0&&this.onStyleRemoved(_e)}ngOnDestroy(){const ce=this.styleNodesInDOM;ce&&(ce.forEach(_e=>_e.remove()),ce.clear());for(const _e of this.getAllStyles())this.onStyleRemoved(_e);this.resetHostNodes()}addHost(ce){this.hostNodes.add(ce);for(const _e of this.getAllStyles())this.addStyleToHost(ce,_e)}removeHost(ce){this.hostNodes.delete(ce)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ce){for(const _e of this.hostNodes)this.addStyleToHost(_e,ce)}onStyleRemoved(ce){const _e=this.styleRef;_e.get(ce)?.elements?.forEach(mt=>mt.remove()),_e.delete(ce)}collectServerRenderedStyles(){const ce=this.doc.head?.querySelectorAll(`style[${M}="${this.appId}"]`);if(ce?.length){const _e=new Map;return ce.forEach(mt=>{null!=mt.textContent&&_e.set(mt.textContent,mt)}),_e}return null}changeUsageCount(ce,_e){const mt=this.styleRef;if(mt.has(ce)){const Ae=mt.get(ce);return Ae.usage+=_e,Ae.usage}return mt.set(ce,{usage:_e,elements:[]}),_e}getStyleElement(ce,_e){const mt=this.styleNodesInDOM,Ae=mt?.get(_e);if(Ae?.parentNode===ce)return mt.delete(_e),Ae.removeAttribute(M),Ae;{const at=this.doc.createElement("style");return this.nonce&&at.setAttribute("nonce",this.nonce),at.textContent=_e,this.platformIsServer&&at.setAttribute(M,this.appId),at}}addStyleToHost(ce,_e){const mt=this.getStyleElement(ce,_e);ce.appendChild(mt);const Ae=this.styleRef,at=Ae.get(_e)?.elements;at?at.push(mt):Ae.set(_e,{elements:[mt],usage:1})}resetHostNodes(){const ce=this.hostNodes;ce.clear(),ce.add(this.doc.head)}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const I={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},k=/%COMP%/g,R=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function x(Ze,ut){return ut.map(ce=>ce.replace(k,Ze))}let de=(()=>{class Ze{constructor(ce,_e,mt,Ae,at,Ht,un,Lt=null){this.eventManager=ce,this.sharedStylesHost=_e,this.appId=mt,this.removeStylesOnCompDestroy=Ae,this.doc=at,this.platformId=Ht,this.ngZone=un,this.nonce=Lt,this.rendererByCompId=new Map,this.platformIsServer=(0,i.PM)(Ht),this.defaultRenderer=new ue(ce,at,un,this.platformIsServer)}createRenderer(ce,_e){if(!ce||!_e)return this.defaultRenderer;this.platformIsServer&&_e.encapsulation===t.ifc.ShadowDom&&(_e={..._e,encapsulation:t.ifc.Emulated});const mt=this.getOrCreateRenderer(ce,_e);return mt instanceof Oe?mt.applyToHost(ce):mt instanceof Me&&mt.applyStyles(),mt}getOrCreateRenderer(ce,_e){const mt=this.rendererByCompId;let Ae=mt.get(_e.id);if(!Ae){const at=this.doc,Ht=this.ngZone,un=this.eventManager,Lt=this.sharedStylesHost,dt=this.removeStylesOnCompDestroy,ft=this.platformIsServer;switch(_e.encapsulation){case t.ifc.Emulated:Ae=new Oe(un,Lt,_e,this.appId,dt,at,Ht,ft);break;case t.ifc.ShadowDom:return new he(un,Lt,ce,_e,at,Ht,this.nonce,ft);default:Ae=new Me(un,Lt,_e,dt,at,Ht,ft)}mt.set(_e.id,Ae)}return Ae}ngOnDestroy(){this.rendererByCompId.clear()}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(V),t.LFG(e),t.LFG(t.AFp),t.LFG(R),t.LFG(i.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();class ue{constructor(ut,ce,_e,mt){this.eventManager=ut,this.doc=ce,this.ngZone=_e,this.platformIsServer=mt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ut,ce){return ce?this.doc.createElementNS(I[ce]||ce,ut):this.doc.createElement(ut)}createComment(ut){return this.doc.createComment(ut)}createText(ut){return this.doc.createTextNode(ut)}appendChild(ut,ce){(re(ut)?ut.content:ut).appendChild(ce)}insertBefore(ut,ce,_e){ut&&(re(ut)?ut.content:ut).insertBefore(ce,_e)}removeChild(ut,ce){ut&&ut.removeChild(ce)}selectRootElement(ut,ce){let _e="string"==typeof ut?this.doc.querySelector(ut):ut;if(!_e)throw new t.vHH(-5104,!1);return ce||(_e.textContent=""),_e}parentNode(ut){return ut.parentNode}nextSibling(ut){return ut.nextSibling}setAttribute(ut,ce,_e,mt){if(mt){ce=mt+":"+ce;const Ae=I[mt];Ae?ut.setAttributeNS(Ae,ce,_e):ut.setAttribute(ce,_e)}else ut.setAttribute(ce,_e)}removeAttribute(ut,ce,_e){if(_e){const mt=I[_e];mt?ut.removeAttributeNS(mt,ce):ut.removeAttribute(`${_e}:${ce}`)}else ut.removeAttribute(ce)}addClass(ut,ce){ut.classList.add(ce)}removeClass(ut,ce){ut.classList.remove(ce)}setStyle(ut,ce,_e,mt){mt&(t.JOm.DashCase|t.JOm.Important)?ut.style.setProperty(ce,_e,mt&t.JOm.Important?"important":""):ut.style[ce]=_e}removeStyle(ut,ce,_e){_e&t.JOm.DashCase?ut.style.removeProperty(ce):ut.style[ce]=""}setProperty(ut,ce,_e){ut[ce]=_e}setValue(ut,ce){ut.nodeValue=ce}listen(ut,ce,_e){if("string"==typeof ut&&!(ut=(0,i.q)().getGlobalEventTarget(this.doc,ut)))throw new Error(`Unsupported event target ${ut} for event ${ce}`);return this.eventManager.addEventListener(ut,ce,this.decoratePreventDefault(_e))}decoratePreventDefault(ut){return ce=>{if("__ngUnwrap__"===ce)return ut;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ut(ce)):ut(ce))&&ce.preventDefault()}}}function re(Ze){return"TEMPLATE"===Ze.tagName&&void 0!==Ze.content}class he extends ue{constructor(ut,ce,_e,mt,Ae,at,Ht,un){super(ut,Ae,at,un),this.sharedStylesHost=ce,this.hostEl=_e,this.shadowRoot=_e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Lt=x(mt.id,mt.styles);for(const dt of Lt){const ft=document.createElement("style");Ht&&ft.setAttribute("nonce",Ht),ft.textContent=dt,this.shadowRoot.appendChild(ft)}}nodeOrShadowRoot(ut){return ut===this.hostEl?this.shadowRoot:ut}appendChild(ut,ce){return super.appendChild(this.nodeOrShadowRoot(ut),ce)}insertBefore(ut,ce,_e){return super.insertBefore(this.nodeOrShadowRoot(ut),ce,_e)}removeChild(ut,ce){return super.removeChild(this.nodeOrShadowRoot(ut),ce)}parentNode(ut){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ut)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Me extends ue{constructor(ut,ce,_e,mt,Ae,at,Ht,un){super(ut,Ae,at,Ht),this.sharedStylesHost=ce,this.removeStylesOnCompDestroy=mt,this.styles=un?x(un,_e.styles):_e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Oe extends Me{constructor(ut,ce,_e,mt,Ae,at,Ht,un){const Lt=mt+"-"+_e.id;super(ut,ce,_e,Ae,at,Ht,un,Lt),this.contentAttr=function O(Ze){return"_ngcontent-%COMP%".replace(k,Ze)}(Lt),this.hostAttr=function P(Ze){return"_nghost-%COMP%".replace(k,Ze)}(Lt)}applyToHost(ut){this.applyStyles(),this.setAttribute(ut,this.hostAttr,"")}createElement(ut,ce){const _e=super.createElement(ut,ce);return super.setAttribute(_e,this.contentAttr,""),_e}}let kt=(()=>{class Ze extends U{constructor(ce){super(ce)}supports(ce){return!0}addEventListener(ce,_e,mt){return ce.addEventListener(_e,mt,!1),()=>this.removeEventListener(ce,_e,mt)}removeEventListener(ce,_e,mt){return ce.removeEventListener(_e,mt)}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0))},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const It=["alt","control","meta","shift"],Tt={"\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"},gt={alt:Ze=>Ze.altKey,control:Ze=>Ze.ctrlKey,meta:Ze=>Ze.metaKey,shift:Ze=>Ze.shiftKey};let _t=(()=>{class Ze extends U{constructor(ce){super(ce)}supports(ce){return null!=Ze.parseEventName(ce)}addEventListener(ce,_e,mt){const Ae=Ze.parseEventName(_e),at=Ze.eventCallback(Ae.fullKey,mt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(ce,Ae.domEventName,at))}static parseEventName(ce){const _e=ce.toLowerCase().split("."),mt=_e.shift();if(0===_e.length||"keydown"!==mt&&"keyup"!==mt)return null;const Ae=Ze._normalizeKey(_e.pop());let at="",Ht=_e.indexOf("code");if(Ht>-1&&(_e.splice(Ht,1),at="code."),It.forEach(Lt=>{const dt=_e.indexOf(Lt);dt>-1&&(_e.splice(dt,1),at+=Lt+".")}),at+=Ae,0!=_e.length||0===Ae.length)return null;const un={};return un.domEventName=mt,un.fullKey=at,un}static matchEventFullKeyCode(ce,_e){let mt=Tt[ce.key]||ce.key,Ae="";return _e.indexOf("code.")>-1&&(mt=ce.code,Ae="code."),!(null==mt||!mt)&&(mt=mt.toLowerCase()," "===mt?mt="space":"."===mt&&(mt="dot"),It.forEach(at=>{at!==mt&&(0,gt[at])(ce)&&(Ae+=at+".")}),Ae+=mt,Ae===_e)}static eventCallback(ce,_e,mt){return Ae=>{Ze.matchEventFullKeyCode(Ae,ce)&&mt.runGuarded(()=>_e(Ae))}}static _normalizeKey(ce){return"esc"===ce?"escape":ce}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0))},Ze.\u0275prov=t.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const Xt=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:i.bD},{provide:t.g9A,useValue:function Re(){d.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function je(){return(0,t.RDi)(document),document},deps:[]}]),_n=new t.OlP(""),On=[{provide:t.rWj,useClass:class A{addToWindow(ut){t.dqk.getAngularTestability=(_e,mt=!0)=>{const Ae=ut.findTestabilityInTree(_e,mt);if(null==Ae)throw new t.vHH(5103,!1);return Ae},t.dqk.getAllAngularTestabilities=()=>ut.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>ut.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(_e=>{const mt=t.dqk.getAllAngularTestabilities();let Ae=mt.length,at=!1;const Ht=function(un){at=at||un,Ae--,0==Ae&&_e(at)};mt.forEach(un=>{un.whenStable(Ht)})})}findTestabilityInTree(ut,ce,_e){return null==ce?null:ut.getTestability(ce)??(_e?(0,i.q)().isShadowRoot(ce)?this.findTestabilityInTree(ut,ce.host,!0):this.findTestabilityInTree(ut,ce.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Jt=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function yt(){return new t.qLn},deps:[]},{provide:N,useClass:kt,multi:!0,deps:[i.K0,t.R0b,t.Lbi]},{provide:N,useClass:_t,multi:!0,deps:[i.K0]},de,e,V,{provide:t.FYo,useExisting:de},{provide:i.JF,useClass:S,deps:[]},[]];let Nt=(()=>{class Ze{constructor(ce){}static withServerTransition(ce){return{ngModule:Ze,providers:[{provide:t.AFp,useValue:ce.appId}]}}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(_n,12))},Ze.\u0275mod=t.oAB({type:Ze}),Ze.\u0275inj=t.cJS({providers:[...Jt,...On],imports:[i.ez,t.hGG]}),Ze})(),He=(()=>{class Ze{constructor(ce){this._doc=ce,this._dom=(0,i.q)()}addTag(ce,_e=!1){return ce?this._getOrCreateElement(ce,_e):null}addTags(ce,_e=!1){return ce?ce.reduce((mt,Ae)=>(Ae&&mt.push(this._getOrCreateElement(Ae,_e)),mt),[]):[]}getTag(ce){return ce&&this._doc.querySelector(`meta[${ce}]`)||null}getTags(ce){if(!ce)return[];const _e=this._doc.querySelectorAll(`meta[${ce}]`);return _e?[].slice.call(_e):[]}updateTag(ce,_e){if(!ce)return null;_e=_e||this._parseSelector(ce);const mt=this.getTag(_e);return mt?this._setMetaElementAttributes(ce,mt):this._getOrCreateElement(ce,!0)}removeTag(ce){this.removeTagElement(this.getTag(ce))}removeTagElement(ce){ce&&this._dom.remove(ce)}_getOrCreateElement(ce,_e=!1){if(!_e){const at=this._parseSelector(ce),Ht=this.getTags(at).filter(un=>this._containsAttributes(ce,un))[0];if(void 0!==Ht)return Ht}const mt=this._dom.createElement("meta");return this._setMetaElementAttributes(ce,mt),this._doc.getElementsByTagName("head")[0].appendChild(mt),mt}_setMetaElementAttributes(ce,_e){return Object.keys(ce).forEach(mt=>_e.setAttribute(this._getMetaKeyMap(mt),ce[mt])),_e}_parseSelector(ce){const _e=ce.name?"name":"property";return`${_e}="${ce[_e]}"`}_containsAttributes(ce,_e){return Object.keys(ce).every(mt=>_e.getAttribute(this._getMetaKeyMap(mt))===ce[mt])}_getMetaKeyMap(ce){return Pe[ce]||ce}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0))},Ze.\u0275prov=t.Yz7({token:Ze,factory:function(ce){let _e=null;return _e=ce?new ce:function Ye(){return new He((0,t.LFG)(i.K0))}(),_e},providedIn:"root"}),Ze})();const Pe={httpEquiv:"http-equiv"};let Be=(()=>{class Ze{constructor(ce){this._doc=ce}getTitle(){return this._doc.title}setTitle(ce){this._doc.title=ce||""}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0))},Ze.\u0275prov=t.Yz7({token:Ze,factory:function(ce){let _e=null;return _e=ce?new ce:function We(){return new Be((0,t.LFG)(i.K0))}(),_e},providedIn:"root"}),Ze})();typeof window<"u"&&window;let K=(()=>{class Ze{}return Ze.\u0275fac=function(ce){return new(ce||Ze)},Ze.\u0275prov=t.Yz7({token:Ze,factory:function(ce){let _e=null;return _e=ce?new(ce||Ze):t.LFG(J),_e},providedIn:"root"}),Ze})(),J=(()=>{class Ze extends K{constructor(ce){super(),this._doc=ce}sanitize(ce,_e){if(null==_e)return null;switch(ce){case t.q3G.NONE:return _e;case t.q3G.HTML:return(0,t.qzn)(_e,"HTML")?(0,t.z3N)(_e):(0,t.EiD)(this._doc,String(_e)).toString();case t.q3G.STYLE:return(0,t.qzn)(_e,"Style")?(0,t.z3N)(_e):_e;case t.q3G.SCRIPT:if((0,t.qzn)(_e,"Script"))return(0,t.z3N)(_e);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(_e,"URL")?(0,t.z3N)(_e):(0,t.mCW)(String(_e));case t.q3G.RESOURCE_URL:if((0,t.qzn)(_e,"ResourceURL"))return(0,t.z3N)(_e);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(ce){return(0,t.JVY)(ce)}bypassSecurityTrustStyle(ce){return(0,t.L6k)(ce)}bypassSecurityTrustScript(ce){return(0,t.eBb)(ce)}bypassSecurityTrustUrl(ce){return(0,t.LAX)(ce)}bypassSecurityTrustResourceUrl(ce){return(0,t.pB0)(ce)}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(t.LFG(i.K0))},Ze.\u0275prov=t.Yz7({token:Ze,factory:function(ce){let _e=null;return _e=ce?new ce:function w(Ze){return new J(Ze.get(i.K0))}(t.LFG(t.zs3)),_e},providedIn:"root"}),Ze})()},4190:(Ot,be,a)=>{a.d(be,{gz:()=>Hi,m2:()=>pi,eC:()=>Ft,F0:()=>Ci,rH:()=>fr,Od:()=>rr,Bz:()=>Xc,lC:()=>Bt});var t=a(5879),i=a(2664),v=a(9666),d=a(2096),s=a(5619),L=a(2572),Q=a(6973),Y=a(5211),A=a(4911),S=a(8407),N=a(8504),V=a(6232),U=a(3168),M=a(8645),e=a(6814),I=a(7398),k=a(4664),ge=a(8180),Ce=a(7921),Z=a(2181),F=a(1631),R=a(1374),O=a(6328),P=a(9397),x=a(6306),de=a(6699),ue=a(3572),j=a(9360),me=a(8251);function re(H){return H<=0?()=>V.E:(0,j.e)((X,D)=>{let le=[];X.subscribe((0,me.x)(D,Ne=>{le.push(Ne),H{for(const Ne of le)D.next(Ne);D.complete()},void 0,()=>{le=null}))})}var he=a(3026),Me=a(2737),kt=a(975),It=a(4716),Tt=a(6196),gt=a(7537),_t=a(6593);const Ft="primary",rn=Symbol("RouteTitle");class bn{constructor(X){this.params=X||{}}has(X){return Object.prototype.hasOwnProperty.call(this.params,X)}get(X){if(this.has(X)){const D=this.params[X];return Array.isArray(D)?D[0]:D}return null}getAll(X){if(this.has(X)){const D=this.params[X];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function et(H){return new bn(H)}function Re(H,X,D){const le=D.path.split("/");if(le.length>H.length||"full"===D.pathMatch&&(X.hasChildren()||le.lengthle[pt]===Ne)}return H===X}function Xt(H){return H.length>0?H[H.length-1]:null}function _n(H){return(0,i.b)(H)?H:(0,t.QGY)(H)?(0,v.D)(Promise.resolve(H)):(0,d.of)(H)}const On={exact:function He(H,X,D){if(!Ct(H.segments,X.segments)||!xe(H.segments,X.segments,D)||H.numberOfChildren!==X.numberOfChildren)return!1;for(const le in X.children)if(!H.children[le]||!He(H.children[le],X.children[le],D))return!1;return!0},subset:We},Jt={exact:function Ye(H,X){return je(H,X)},subset:function Pe(H,X){return Object.keys(X).length<=Object.keys(H).length&&Object.keys(X).every(D=>Ut(H[D],X[D]))},ignored:()=>!0};function Nt(H,X,D){return On[D.paths](H.root,X.root,D.matrixParams)&&Jt[D.queryParams](H.queryParams,X.queryParams)&&!("exact"===D.fragment&&H.fragment!==X.fragment)}function We(H,X,D){return Be(H,X,X.segments,D)}function Be(H,X,D,le){if(H.segments.length>D.length){const Ne=H.segments.slice(0,D.length);return!(!Ct(Ne,D)||X.hasChildren()||!xe(Ne,D,le))}if(H.segments.length===D.length){if(!Ct(H.segments,D)||!xe(H.segments,D,le))return!1;for(const Ne in X.children)if(!H.children[Ne]||!We(H.children[Ne],X.children[Ne],le))return!1;return!0}{const Ne=D.slice(0,H.segments.length),pt=D.slice(H.segments.length);return!!(Ct(H.segments,Ne)&&xe(H.segments,Ne,le)&&H.children[Ft])&&Be(H.children[Ft],X,pt,le)}}function xe(H,X,D){return X.every((le,Ne)=>Jt[D](H[Ne].parameters,le.parameters))}class te{constructor(X=new ae([],{}),D={},le=null){this.root=X,this.queryParams=D,this.fragment=le}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return it.serialize(this)}}class ae{constructor(X,D){this.segments=X,this.children=D,this.parent=null,Object.values(D).forEach(le=>le.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lt(this)}}class De{constructor(X,D){this.path=X,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=et(this.parameters)),this._parameterMap}toString(){return J(this)}}function Ct(H,X){return H.length===X.length&&H.every((D,le)=>D.path===X[le].path)}let yn=(()=>{class H{}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:function(){return new st},providedIn:"root"}),H})();class st{parse(X){const D=new ce(X);return new te(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(X){const D=`/${Pt(X.root,!0)}`,le=function zt(H){const X=Object.keys(H).map(D=>{const le=H[D];return Array.isArray(le)?le.map(Ne=>`${Vt(D)}=${Vt(Ne)}`).join("&"):`${Vt(D)}=${Vt(le)}`}).filter(D=>!!D);return X.length?`?${X.join("&")}`:""}(X.queryParams);return`${D}${le}${"string"==typeof X.fragment?`#${function jt(H){return encodeURI(H)}(X.fragment)}`:""}`}}const it=new st;function lt(H){return H.segments.map(X=>J(X)).join("/")}function Pt(H,X){if(!H.hasChildren())return lt(H);if(X){const D=H.children[Ft]?Pt(H.children[Ft],!1):"",le=[];return Object.entries(H.children).forEach(([Ne,pt])=>{Ne!==Ft&&le.push(`${Ne}:${Pt(pt,!1)}`)}),le.length>0?`${D}(${le.join("//")})`:D}{const D=function sn(H,X){let D=[];return Object.entries(H.children).forEach(([le,Ne])=>{le===Ft&&(D=D.concat(X(Ne,le)))}),Object.entries(H.children).forEach(([le,Ne])=>{le!==Ft&&(D=D.concat(X(Ne,le)))}),D}(H,(le,Ne)=>Ne===Ft?[Pt(H.children[Ft],!1)]:[`${Ne}:${Pt(le,!1)}`]);return 1===Object.keys(H.children).length&&null!=H.children[Ft]?`${lt(H)}/${D[0]}`:`${lt(H)}/(${D.join("//")})`}}function wt(H){return encodeURIComponent(H).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(H){return wt(H).replace(/%3B/gi,";")}function Ke(H){return wt(H).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function K(H){return decodeURIComponent(H)}function w(H){return K(H.replace(/\+/g,"%20"))}function J(H){return`${Ke(H.path)}${function Te(H){return Object.keys(H).map(X=>`;${Ke(X)}=${Ke(H[X])}`).join("")}(H.parameters)}`}const nt=/^[^\/()?;#]+/;function qe(H){const X=H.match(nt);return X?X[0]:""}const rt=/^[^\/()?;=#]+/,St=/^[^=?&#]+/,Ze=/^[^&#]+/;class ce{constructor(X){this.url=X,this.remaining=X}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const X={};if(this.consumeOptional("?"))do{this.parseQueryParam(X)}while(this.consumeOptional("&"));return X}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const X=[];for(this.peekStartsWith("(")||X.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),X.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let le={};return this.peekStartsWith("(")&&(le=this.parseParens(!1)),(X.length>0||Object.keys(D).length>0)&&(le[Ft]=new ae(X,D)),le}parseSegment(){const X=qe(this.remaining);if(""===X&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(X),new De(K(X),this.parseMatrixParams())}parseMatrixParams(){const X={};for(;this.consumeOptional(";");)this.parseParam(X);return X}parseParam(X){const D=function Rt(H){const X=H.match(rt);return X?X[0]:""}(this.remaining);if(!D)return;this.capture(D);let le="";if(this.consumeOptional("=")){const Ne=qe(this.remaining);Ne&&(le=Ne,this.capture(le))}X[K(D)]=K(le)}parseQueryParam(X){const D=function gn(H){const X=H.match(St);return X?X[0]:""}(this.remaining);if(!D)return;this.capture(D);let le="";if(this.consumeOptional("=")){const vt=function ut(H){const X=H.match(Ze);return X?X[0]:""}(this.remaining);vt&&(le=vt,this.capture(le))}const Ne=w(D),pt=w(le);if(X.hasOwnProperty(Ne)){let vt=X[Ne];Array.isArray(vt)||(vt=[vt],X[Ne]=vt),vt.push(pt)}else X[Ne]=pt}parseParens(X){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const le=qe(this.remaining),Ne=this.remaining[le.length];if("/"!==Ne&&")"!==Ne&&";"!==Ne)throw new t.vHH(4010,!1);let pt;le.indexOf(":")>-1?(pt=le.slice(0,le.indexOf(":")),this.capture(pt),this.capture(":")):X&&(pt=Ft);const vt=this.parseChildren();D[pt]=1===Object.keys(vt).length?vt[Ft]:new ae([],vt),this.consumeOptional("//")}return D}peekStartsWith(X){return this.remaining.startsWith(X)}consumeOptional(X){return!!this.peekStartsWith(X)&&(this.remaining=this.remaining.substring(X.length),!0)}capture(X){if(!this.consumeOptional(X))throw new t.vHH(4011,!1)}}function _e(H){return H.segments.length>0?new ae([],{[Ft]:H}):H}function mt(H){const X={};for(const le of Object.keys(H.children)){const pt=mt(H.children[le]);if(le===Ft&&0===pt.segments.length&&pt.hasChildren())for(const[vt,cn]of Object.entries(pt.children))X[vt]=cn;else(pt.segments.length>0||pt.hasChildren())&&(X[le]=pt)}return function Ae(H){if(1===H.numberOfChildren&&H.children[Ft]){const X=H.children[Ft];return new ae(H.segments.concat(X.segments),X.children)}return H}(new ae(H.segments,X))}function at(H){return H instanceof te}function un(H){let X;const Ne=_e(function D(pt){const vt={};for(const Fn of pt.children){const io=D(Fn);vt[Fn.outlet]=io}const cn=new ae(pt.url,vt);return pt===H&&(X=cn),cn}(H.root));return X??Ne}function Lt(H,X,D,le){let Ne=H;for(;Ne.parent;)Ne=Ne.parent;if(0===X.length)return ne(Ne,Ne,Ne,D,le);const pt=function $e(H){if("string"==typeof H[0]&&1===H.length&&"/"===H[0])return new ze(!0,0,H);let X=0,D=!1;const le=H.reduce((Ne,pt,vt)=>{if("object"==typeof pt&&null!=pt){if(pt.outlets){const cn={};return Object.entries(pt.outlets).forEach(([Fn,io])=>{cn[Fn]="string"==typeof io?io.split("/"):io}),[...Ne,{outlets:cn}]}if(pt.segmentPath)return[...Ne,pt.segmentPath]}return"string"!=typeof pt?[...Ne,pt]:0===vt?(pt.split("/").forEach((cn,Fn)=>{0==Fn&&"."===cn||(0==Fn&&""===cn?D=!0:".."===cn?X++:""!=cn&&Ne.push(cn))}),Ne):[...Ne,pt]},[]);return new ze(D,X,le)}(X);if(pt.toRoot())return ne(Ne,Ne,new ae([],{}),D,le);const vt=function on(H,X,D){if(H.isAbsolute)return new Mt(X,!0,0);if(!D)return new Mt(X,!1,NaN);if(null===D.parent)return new Mt(D,!0,0);const le=dt(H.commands[0])?0:1;return function Zt(H,X,D){let le=H,Ne=X,pt=D;for(;pt>Ne;){if(pt-=Ne,le=le.parent,!le)throw new t.vHH(4005,!1);Ne=le.segments.length}return new Mt(le,!1,Ne-pt)}(D,D.segments.length-1+le,H.numberOfDoubleDots)}(pt,Ne,H),cn=vt.processChildren?qn(vt.segmentGroup,vt.index,pt.commands):pn(vt.segmentGroup,vt.index,pt.commands);return ne(Ne,vt.segmentGroup,cn,D,le)}function dt(H){return"object"==typeof H&&null!=H&&!H.outlets&&!H.segmentPath}function ft(H){return"object"==typeof H&&null!=H&&H.outlets}function ne(H,X,D,le,Ne){let vt,pt={};le&&Object.entries(le).forEach(([Fn,io])=>{pt[Fn]=Array.isArray(io)?io.map(ro=>`${ro}`):`${io}`}),vt=H===X?D:B(H,X,D);const cn=_e(mt(vt));return new te(cn,pt,Ne)}function B(H,X,D){const le={};return Object.entries(H.children).forEach(([Ne,pt])=>{le[Ne]=pt===X?D:B(pt,X,D)}),new ae(H.segments,le)}class ze{constructor(X,D,le){if(this.isAbsolute=X,this.numberOfDoubleDots=D,this.commands=le,X&&le.length>0&&dt(le[0]))throw new t.vHH(4003,!1);const Ne=le.find(ft);if(Ne&&Ne!==Xt(le))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mt{constructor(X,D,le){this.segmentGroup=X,this.processChildren=D,this.index=le}}function pn(H,X,D){if(H||(H=new ae([],{})),0===H.segments.length&&H.hasChildren())return qn(H,X,D);const le=function co(H,X,D){let le=0,Ne=X;const pt={match:!1,pathIndex:0,commandIndex:0};for(;Ne=D.length)return pt;const vt=H.segments[Ne],cn=D[le];if(ft(cn))break;const Fn=`${cn}`,io=le0&&void 0===Fn)break;if(Fn&&io&&"object"==typeof io&&void 0===io.outlets){if(!ui(Fn,io,vt))return pt;le+=2}else{if(!ui(Fn,{},vt))return pt;le++}Ne++}return{match:!0,pathIndex:Ne,commandIndex:le}}(H,X,D),Ne=D.slice(le.commandIndex);if(le.match&&le.pathIndex{"string"==typeof vt&&(vt=[vt]),null!==vt&&(Ne[pt]=pn(H.children[pt],X,vt))}),Object.entries(H.children).forEach(([pt,vt])=>{void 0===le[pt]&&(Ne[pt]=vt)}),new ae(H.segments,Ne)}}function _o(H,X,D){const le=H.segments.slice(0,X);let Ne=0;for(;Ne{"string"==typeof le&&(le=[le]),null!==le&&(X[D]=_o(new ae([],{}),0,le))}),X}function Ko(H){const X={};return Object.entries(H).forEach(([D,le])=>X[D]=`${le}`),X}function ui(H,X,D){return H==D.path&&je(X,D.parameters)}const mo="imperative";class Xn{constructor(X,D){this.id=X,this.url=D}}class di extends Xn{constructor(X,D,le="imperative",Ne=null){super(X,D),this.type=0,this.navigationTrigger=le,this.restoredState=Ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class pi extends Xn{constructor(X,D,le){super(X,D),this.urlAfterRedirects=le,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wo extends Xn{constructor(X,D,le,Ne){super(X,D),this.reason=le,this.code=Ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class So extends Xn{constructor(X,D,le,Ne){super(X,D),this.reason=le,this.code=Ne,this.type=16}}class Eo extends Xn{constructor(X,D,le,Ne){super(X,D),this.error=le,this.target=Ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Pi extends Xn{constructor(X,D,le,Ne){super(X,D),this.urlAfterRedirects=le,this.state=Ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xo extends Xn{constructor(X,D,le,Ne){super(X,D),this.urlAfterRedirects=le,this.state=Ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zi extends Xn{constructor(X,D,le,Ne,pt){super(X,D),this.urlAfterRedirects=le,this.state=Ne,this.shouldActivate=pt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class An extends Xn{constructor(X,D,le,Ne){super(X,D),this.urlAfterRedirects=le,this.state=Ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bi extends Xn{constructor(X,D,le,Ne){super(X,D),this.urlAfterRedirects=le,this.state=Ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Si{constructor(X){this.route=X,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tr{constructor(X){this.route=X,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Gi{constructor(X){this.snapshot=X,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Or{constructor(X){this.snapshot=X,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(X){this.snapshot=X,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vr{constructor(X){this.snapshot=X,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qi{constructor(X,D,le){this.routerEvent=X,this.position=D,this.anchor=le,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class dr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new lo,this.attachRef=null}}let lo=(()=>{class H{constructor(){this.contexts=new Map}onChildOutletCreated(D,le){const Ne=this.getOrCreateContext(D);Ne.outlet=le,this.contexts.set(D,Ne)}onChildOutletDestroyed(D){const le=this.getContext(D);le&&(le.outlet=null,le.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let le=this.getContext(D);return le||(le=new dr,this.contexts.set(D,le)),le}getContext(D){return this.contexts.get(D)||null}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();class Oo{constructor(X){this._root=X}get root(){return this._root.value}parent(X){const D=this.pathFromRoot(X);return D.length>1?D[D.length-2]:null}children(X){const D=Po(X,this._root);return D?D.children.map(le=>le.value):[]}firstChild(X){const D=Po(X,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(X){const D=Jo(X,this._root);return D.length<2?[]:D[D.length-2].children.map(Ne=>Ne.value).filter(Ne=>Ne!==X)}pathFromRoot(X){return Jo(X,this._root).map(D=>D.value)}}function Po(H,X){if(H===X.value)return X;for(const D of X.children){const le=Po(H,D);if(le)return le}return null}function Jo(H,X){if(H===X.value)return[X];for(const D of X.children){const le=Jo(H,D);if(le.length)return le.unshift(X),le}return[]}class Ro{constructor(X,D){this.value=X,this.children=D}toString(){return`TreeNode(${this.value})`}}function Wo(H){const X={};return H&&H.children.forEach(D=>X[D.value.outlet]=D),X}class qo extends Oo{constructor(X,D){super(X),this.snapshot=D,se(this,X)}toString(){return this.snapshot.toString()}}function Ti(H,X){const D=function ji(H,X){const vt=new so([],{},{},"",{},Ft,X,null,{});return new Ue("",new Ro(vt,[]))}(0,X),le=new s.X([new De("",{})]),Ne=new s.X({}),pt=new s.X({}),vt=new s.X({}),cn=new s.X(""),Fn=new Hi(le,Ne,vt,cn,pt,Ft,X,D.root);return Fn.snapshot=D.root,new qo(new Ro(Fn,[]),D)}class Hi{constructor(X,D,le,Ne,pt,vt,cn,Fn){this.urlSubject=X,this.paramsSubject=D,this.queryParamsSubject=le,this.fragmentSubject=Ne,this.dataSubject=pt,this.outlet=vt,this.component=cn,this._futureSnapshot=Fn,this.title=this.dataSubject?.pipe((0,I.U)(io=>io[rn]))??(0,d.of)(void 0),this.url=X,this.params=D,this.queryParams=le,this.fragment=Ne,this.data=pt}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,I.U)(X=>et(X)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(X=>et(X)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ei(H,X="emptyOnly"){const D=H.pathFromRoot;let le=0;if("always"!==X)for(le=D.length-1;le>=1;){const Ne=D[le],pt=D[le-1];if(Ne.routeConfig&&""===Ne.routeConfig.path)le--;else{if(pt.component)break;le--}}return function Yn(H){return H.reduce((X,D)=>({params:{...X.params,...D.params},data:{...X.data,...D.data},resolve:{...D.data,...X.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(le))}class so{get title(){return this.data?.[rn]}constructor(X,D,le,Ne,pt,vt,cn,Fn,io){this.url=X,this.params=D,this.queryParams=le,this.fragment=Ne,this.data=pt,this.outlet=vt,this.component=cn,this.routeConfig=Fn,this._resolve=io}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=et(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(le=>le.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ue extends Oo{constructor(X,D){super(D),this.url=X,se(this,D)}toString(){return we(this._root)}}function se(H,X){X.value._routerState=H,X.children.forEach(D=>se(H,D))}function we(H){const X=H.children.length>0?` { ${H.children.map(we).join(", ")} } `:"";return`${H.value}${X}`}function Qe(H){if(H.snapshot){const X=H.snapshot,D=H._futureSnapshot;H.snapshot=D,je(X.queryParams,D.queryParams)||H.queryParamsSubject.next(D.queryParams),X.fragment!==D.fragment&&H.fragmentSubject.next(D.fragment),je(X.params,D.params)||H.paramsSubject.next(D.params),function yt(H,X){if(H.length!==X.length)return!1;for(let D=0;Dje(D.parameters,X[le].parameters))}(H.url,X.url);return D&&!(!H.parent!=!X.parent)&&(!H.parent||bt(H.parent,X.parent))}let Bt=(()=>{class H{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ft,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(lo),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(fn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:le,previousValue:Ne}=D.name;if(le)return;this.isTrackedInParentContexts(Ne)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ne)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,le){this.activated=D,this._activatedRoute=le,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,le){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=D;const Ne=this.location,vt=D.snapshot.component,cn=this.parentContexts.getOrCreateContext(this.name).children,Fn=new tn(D,cn,Ne.injector);this.activated=Ne.createComponent(vt,{index:Ne.length,injector:Fn,environmentInjector:le??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275dir=t.lG2({type:H,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),H})();class tn{constructor(X,D,le){this.route=X,this.childContexts=D,this.parent=le}get(X,D){return X===Hi?this.route:X===lo?this.childContexts:this.parent.get(X,D)}}const fn=new t.OlP("");let qt=(()=>{class H{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:le}=D,Ne=(0,L.a)([le.queryParams,le.params,le.data]).pipe((0,k.w)(([pt,vt,cn],Fn)=>(cn={...pt,...vt,...cn},0===Fn?(0,d.of)(cn):Promise.resolve(cn)))).subscribe(pt=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==le||null===le.component)return void this.unsubscribeFromRouteData(D);const vt=(0,t.qFp)(le.component);if(vt)for(const{templateName:cn}of vt.inputs)D.activatedComponentRef.setInput(cn,pt[cn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,Ne)}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac}),H})();function Nn(H,X,D){if(D&&H.shouldReuseRoute(X.value,D.value.snapshot)){const le=D.value;le._futureSnapshot=X.value;const Ne=function Sn(H,X,D){return X.children.map(le=>{for(const Ne of D.children)if(H.shouldReuseRoute(le.value,Ne.value.snapshot))return Nn(H,le,Ne);return Nn(H,le)})}(H,X,D);return new Ro(le,Ne)}{if(H.shouldAttach(X.value)){const pt=H.retrieve(X.value);if(null!==pt){const vt=pt.route;return vt.value._futureSnapshot=X.value,vt.children=X.children.map(cn=>Nn(H,cn)),vt}}const le=function dn(H){return new Hi(new s.X(H.url),new s.X(H.params),new s.X(H.queryParams),new s.X(H.fragment),new s.X(H.data),H.outlet,H.component,H)}(X.value),Ne=X.children.map(pt=>Nn(H,pt));return new Ro(le,Ne)}}const xn="ngNavigationCancelingError";function Qn(H,X){const{redirectTo:D,navigationBehaviorOptions:le}=at(X)?{redirectTo:X,navigationBehaviorOptions:void 0}:X,Ne=In(!1,0,X);return Ne.url=D,Ne.navigationBehaviorOptions=le,Ne}function In(H,X,D){const le=new Error("NavigationCancelingError: "+(H||""));return le[xn]=!0,le.cancellationCode=X,D&&(le.url=D),le}function Vn(H){return Un(H)&&at(H.url)}function Un(H){return H&&H[xn]}let jn=(()=>{class H{}return H.\u0275fac=function(D){return new(D||H)},H.\u0275cmp=t.Xpm({type:H,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(D,le){1&D&&t._UZ(0,"router-outlet")},dependencies:[Bt],encapsulation:2}),H})();function _i(H){const X=H.children&&H.children.map(_i),D=X?{...H,children:X}:{...H};return!D.component&&!D.loadComponent&&(X||D.loadChildren)&&D.outlet&&D.outlet!==Ft&&(D.component=jn),D}function Ao(H){return H.outlet||Ft}function Wi(H){if(!H)return null;if(H.routeConfig?._injector)return H.routeConfig._injector;for(let X=H.parent;X;X=X.parent){const D=X.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class nr{constructor(X,D,le,Ne,pt){this.routeReuseStrategy=X,this.futureState=D,this.currState=le,this.forwardEvent=Ne,this.inputBindingEnabled=pt}activate(X){const D=this.futureState._root,le=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,le,X),Qe(this.futureState.root),this.activateChildRoutes(D,le,X)}deactivateChildRoutes(X,D,le){const Ne=Wo(D);X.children.forEach(pt=>{const vt=pt.value.outlet;this.deactivateRoutes(pt,Ne[vt],le),delete Ne[vt]}),Object.values(Ne).forEach(pt=>{this.deactivateRouteAndItsChildren(pt,le)})}deactivateRoutes(X,D,le){const Ne=X.value,pt=D?D.value:null;if(Ne===pt)if(Ne.component){const vt=le.getContext(Ne.outlet);vt&&this.deactivateChildRoutes(X,D,vt.children)}else this.deactivateChildRoutes(X,D,le);else pt&&this.deactivateRouteAndItsChildren(D,le)}deactivateRouteAndItsChildren(X,D){X.value.component&&this.routeReuseStrategy.shouldDetach(X.value.snapshot)?this.detachAndStoreRouteSubtree(X,D):this.deactivateRouteAndOutlet(X,D)}detachAndStoreRouteSubtree(X,D){const le=D.getContext(X.value.outlet),Ne=le&&X.value.component?le.children:D,pt=Wo(X);for(const vt of Object.keys(pt))this.deactivateRouteAndItsChildren(pt[vt],Ne);if(le&&le.outlet){const vt=le.outlet.detach(),cn=le.children.onOutletDeactivated();this.routeReuseStrategy.store(X.value.snapshot,{componentRef:vt,route:X,contexts:cn})}}deactivateRouteAndOutlet(X,D){const le=D.getContext(X.value.outlet),Ne=le&&X.value.component?le.children:D,pt=Wo(X);for(const vt of Object.keys(pt))this.deactivateRouteAndItsChildren(pt[vt],Ne);le&&(le.outlet&&(le.outlet.deactivate(),le.children.onOutletDeactivated()),le.attachRef=null,le.route=null)}activateChildRoutes(X,D,le){const Ne=Wo(D);X.children.forEach(pt=>{this.activateRoutes(pt,Ne[pt.value.outlet],le),this.forwardEvent(new vr(pt.value.snapshot))}),X.children.length&&this.forwardEvent(new Or(X.value.snapshot))}activateRoutes(X,D,le){const Ne=X.value,pt=D?D.value:null;if(Qe(Ne),Ne===pt)if(Ne.component){const vt=le.getOrCreateContext(Ne.outlet);this.activateChildRoutes(X,D,vt.children)}else this.activateChildRoutes(X,D,le);else if(Ne.component){const vt=le.getOrCreateContext(Ne.outlet);if(this.routeReuseStrategy.shouldAttach(Ne.snapshot)){const cn=this.routeReuseStrategy.retrieve(Ne.snapshot);this.routeReuseStrategy.store(Ne.snapshot,null),vt.children.onOutletReAttached(cn.contexts),vt.attachRef=cn.componentRef,vt.route=cn.route.value,vt.outlet&&vt.outlet.attach(cn.componentRef,cn.route.value),Qe(cn.route.value),this.activateChildRoutes(X,null,vt.children)}else{const cn=Wi(Ne.snapshot);vt.attachRef=null,vt.route=Ne,vt.injector=cn,vt.outlet&&vt.outlet.activateWith(Ne,vt.injector),this.activateChildRoutes(X,null,vt.children)}}else this.activateChildRoutes(X,null,le)}}class Ai{constructor(X){this.path=X,this.route=this.path[this.path.length-1]}}class Zi{constructor(X,D){this.component=X,this.route=D}}function hi(H,X,D){const le=H._root;return W(le,X?X._root:null,D,[le.value])}function Yt(H,X){const D=Symbol(),le=X.get(H,D);return le===D?"function"!=typeof H||(0,t.Z0I)(H)?X.get(H):H:le}function W(H,X,D,le,Ne={canDeactivateChecks:[],canActivateChecks:[]}){const pt=Wo(X);return H.children.forEach(vt=>{(function Ve(H,X,D,le,Ne={canDeactivateChecks:[],canActivateChecks:[]}){const pt=H.value,vt=X?X.value:null,cn=D?D.getContext(H.value.outlet):null;if(vt&&pt.routeConfig===vt.routeConfig){const Fn=function Gt(H,X,D){if("function"==typeof D)return D(H,X);switch(D){case"pathParamsChange":return!Ct(H.url,X.url);case"pathParamsOrQueryParamsChange":return!Ct(H.url,X.url)||!je(H.queryParams,X.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bt(H,X)||!je(H.queryParams,X.queryParams);default:return!bt(H,X)}}(vt,pt,pt.routeConfig.runGuardsAndResolvers);Fn?Ne.canActivateChecks.push(new Ai(le)):(pt.data=vt.data,pt._resolvedData=vt._resolvedData),W(H,X,pt.component?cn?cn.children:null:D,le,Ne),Fn&&cn&&cn.outlet&&cn.outlet.isActivated&&Ne.canDeactivateChecks.push(new Zi(cn.outlet.component,vt))}else vt&&an(X,cn,Ne),Ne.canActivateChecks.push(new Ai(le)),W(H,null,pt.component?cn?cn.children:null:D,le,Ne)})(vt,pt[vt.value.outlet],D,le.concat([vt.value]),Ne),delete pt[vt.value.outlet]}),Object.entries(pt).forEach(([vt,cn])=>an(cn,D.getContext(vt),Ne)),Ne}function an(H,X,D){const le=Wo(H),Ne=H.value;Object.entries(le).forEach(([pt,vt])=>{an(vt,Ne.component?X?X.children.getContext(pt):null:X,D)}),D.canDeactivateChecks.push(new Zi(Ne.component&&X&&X.outlet&&X.outlet.isActivated?X.outlet.component:null,Ne))}function Rn(H){return"function"==typeof H}function ls(H){return H instanceof Q.K||"EmptyError"===H?.name}const Se=Symbol("INITIAL_VALUE");function ye(){return(0,k.w)(H=>(0,L.a)(H.map(X=>X.pipe((0,ge.q)(1),(0,Ce.O)(Se)))).pipe((0,I.U)(X=>{for(const D of X)if(!0!==D){if(D===Se)return Se;if(!1===D||D instanceof te)return D}return!0}),(0,Z.h)(X=>X!==Se),(0,ge.q)(1)))}function Us(H){return(0,S.z)((0,P.b)(X=>{if(at(X))throw Qn(0,X)}),(0,I.U)(X=>!0===X))}class us{constructor(X){this.segmentGroup=X||null}}class es{constructor(X){this.urlTree=X}}function $r(H){return(0,N._)(new us(H))}function Yr(H){return(0,N._)(new es(H))}class ri{constructor(X,D){this.urlSerializer=X,this.urlTree=D}noMatchError(X){return new t.vHH(4002,!1)}lineralizeSegments(X,D){let le=[],Ne=D.root;for(;;){if(le=le.concat(Ne.segments),0===Ne.numberOfChildren)return(0,d.of)(le);if(Ne.numberOfChildren>1||!Ne.children[Ft])return(0,N._)(new t.vHH(4e3,!1));Ne=Ne.children[Ft]}}applyRedirectCommands(X,D,le){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),X,le)}applyRedirectCreateUrlTree(X,D,le,Ne){const pt=this.createSegmentGroup(X,D.root,le,Ne);return new te(pt,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(X,D){const le={};return Object.entries(X).forEach(([Ne,pt])=>{if("string"==typeof pt&&pt.startsWith(":")){const cn=pt.substring(1);le[Ne]=D[cn]}else le[Ne]=pt}),le}createSegmentGroup(X,D,le,Ne){const pt=this.createSegments(X,D.segments,le,Ne);let vt={};return Object.entries(D.children).forEach(([cn,Fn])=>{vt[cn]=this.createSegmentGroup(X,Fn,le,Ne)}),new ae(pt,vt)}createSegments(X,D,le,Ne){return D.map(pt=>pt.path.startsWith(":")?this.findPosParam(X,pt,Ne):this.findOrReturn(pt,le))}findPosParam(X,D,le){const Ne=le[D.path.substring(1)];if(!Ne)throw new t.vHH(4001,!1);return Ne}findOrReturn(X,D){let le=0;for(const Ne of D){if(Ne.path===X.path)return D.splice(le),Ne;le++}return X}}const pr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Os(H,X,D,le,Ne){const pt=Pr(H,X,D);return pt.matched?(le=function eo(H,X){return H.providers&&!H._injector&&(H._injector=(0,t.MMx)(H.providers,X,`Route: ${H.path}`)),H._injector??X}(X,le),function Gs(H,X,D,le){const Ne=X.canMatch;if(!Ne||0===Ne.length)return(0,d.of)(!0);const pt=Ne.map(vt=>{const cn=Yt(vt,H);return _n(function Li(H){return H&&Rn(H.canMatch)}(cn)?cn.canMatch(X,D):H.runInContext(()=>cn(X,D)))});return(0,d.of)(pt).pipe(ye(),Us())}(le,X,D).pipe((0,I.U)(vt=>!0===vt?pt:{...pr}))):(0,d.of)(pt)}function Pr(H,X,D){if(""===X.path)return"full"===X.pathMatch&&(H.hasChildren()||D.length>0)?{...pr}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const Ne=(X.matcher||Re)(D,H,X);if(!Ne)return{...pr};const pt={};Object.entries(Ne.posParams??{}).forEach(([cn,Fn])=>{pt[cn]=Fn.path});const vt=Ne.consumed.length>0?{...pt,...Ne.consumed[Ne.consumed.length-1].parameters}:pt;return{matched:!0,consumedSegments:Ne.consumed,remainingSegments:D.slice(Ne.consumed.length),parameters:vt,positionalParamSegments:Ne.posParams??{}}}function Mr(H,X,D,le){return D.length>0&&function Ir(H,X,D){return D.some(le=>hr(H,X,le)&&Ao(le)!==Ft)}(H,D,le)?{segmentGroup:new ae(X,Qs(le,new ae(D,H.children))),slicedSegments:[]}:0===D.length&&function ds(H,X,D){return D.some(le=>hr(H,X,le))}(H,D,le)?{segmentGroup:new ae(H.segments,Gr(H,0,D,le,H.children)),slicedSegments:D}:{segmentGroup:new ae(H.segments,H.children),slicedSegments:D}}function Gr(H,X,D,le,Ne){const pt={};for(const vt of le)if(hr(H,D,vt)&&!Ne[Ao(vt)]){const cn=new ae([],{});pt[Ao(vt)]=cn}return{...Ne,...pt}}function Qs(H,X){const D={};D[Ft]=X;for(const le of H)if(""===le.path&&Ao(le)!==Ft){const Ne=new ae([],{});D[Ao(le)]=Ne}return D}function hr(H,X,D){return(!(H.hasChildren()||X.length>0)||"full"!==D.pathMatch)&&""===D.path}class Wc{constructor(X,D,le,Ne,pt,vt,cn){this.injector=X,this.configLoader=D,this.rootComponentType=le,this.config=Ne,this.urlTree=pt,this.paramsInheritanceStrategy=vt,this.urlSerializer=cn,this.allowRedirects=!0,this.applyRedirects=new ri(this.urlSerializer,this.urlTree)}noMatchError(X){return new t.vHH(4002,!1)}recognize(){const X=Mr(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,X,Ft).pipe((0,x.K)(D=>{if(D instanceof es)return this.allowRedirects=!1,this.urlTree=D.urlTree,this.match(D.urlTree);throw D instanceof us?this.noMatchError(D):D}),(0,I.U)(D=>{const le=new so([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ft,this.rootComponentType,null,{}),Ne=new Ro(le,D),pt=new Ue("",Ne),vt=function Ht(H,X,D=null,le=null){return Lt(un(H),X,D,le)}(le,[],this.urlTree.queryParams,this.urlTree.fragment);return vt.queryParams=this.urlTree.queryParams,pt.url=this.urlSerializer.serialize(vt),this.inheritParamsAndData(pt._root),{state:pt,tree:vt}}))}match(X){return this.processSegmentGroup(this.injector,this.config,X.root,Ft).pipe((0,x.K)(le=>{throw le instanceof us?this.noMatchError(le):le}))}inheritParamsAndData(X){const D=X.value,le=ei(D,this.paramsInheritanceStrategy);D.params=Object.freeze(le.params),D.data=Object.freeze(le.data),X.children.forEach(Ne=>this.inheritParamsAndData(Ne))}processSegmentGroup(X,D,le,Ne){return 0===le.segments.length&&le.hasChildren()?this.processChildren(X,D,le):this.processSegment(X,D,le,le.segments,Ne,!0)}processChildren(X,D,le){const Ne=[];for(const pt of Object.keys(le.children))"primary"===pt?Ne.unshift(pt):Ne.push(pt);return(0,v.D)(Ne).pipe((0,O.b)(pt=>{const vt=le.children[pt],cn=function Lo(H,X){const D=H.filter(le=>Ao(le)===X);return D.push(...H.filter(le=>Ao(le)!==X)),D}(D,pt);return this.processSegmentGroup(X,cn,vt,pt)}),(0,de.R)((pt,vt)=>(pt.push(...vt),pt)),(0,ue.d)(null),function Oe(H,X){const D=arguments.length>=2;return le=>le.pipe(H?(0,Z.h)((Ne,pt)=>H(Ne,pt,le)):Me.y,re(1),D?(0,ue.d)(X):(0,he.T)(()=>new Q.K))}(),(0,F.z)(pt=>{if(null===pt)return $r(le);const vt=ir(pt);return function uc(H){H.sort((X,D)=>X.value.outlet===Ft?-1:D.value.outlet===Ft?1:X.value.outlet.localeCompare(D.value.outlet))}(vt),(0,d.of)(vt)}))}processSegment(X,D,le,Ne,pt,vt){return(0,v.D)(D).pipe((0,O.b)(cn=>this.processSegmentAgainstRoute(cn._injector??X,D,cn,le,Ne,pt,vt).pipe((0,x.K)(Fn=>{if(Fn instanceof us)return(0,d.of)(null);throw Fn}))),(0,R.P)(cn=>!!cn),(0,x.K)(cn=>{if(ls(cn))return function br(H,X,D){return 0===X.length&&!H.children[D]}(le,Ne,pt)?(0,d.of)([]):$r(le);throw cn}))}processSegmentAgainstRoute(X,D,le,Ne,pt,vt,cn){return function lc(H,X,D,le){return!!(Ao(H)===le||le!==Ft&&hr(X,D,H))&&("**"===H.path||Pr(X,H,D).matched)}(le,Ne,pt,vt)?void 0===le.redirectTo?this.matchSegmentAgainstRoute(X,Ne,le,pt,vt,cn):cn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(X,Ne,D,le,pt,vt):$r(Ne):$r(Ne)}expandSegmentAgainstRouteUsingRedirect(X,D,le,Ne,pt,vt){return"**"===Ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(X,le,Ne,vt):this.expandRegularSegmentAgainstRouteUsingRedirect(X,D,le,Ne,pt,vt)}expandWildCardWithParamsAgainstRouteUsingRedirect(X,D,le,Ne){const pt=this.applyRedirects.applyRedirectCommands([],le.redirectTo,{});return le.redirectTo.startsWith("/")?Yr(pt):this.applyRedirects.lineralizeSegments(le,pt).pipe((0,F.z)(vt=>{const cn=new ae(vt,{});return this.processSegment(X,D,cn,vt,Ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(X,D,le,Ne,pt,vt){const{matched:cn,consumedSegments:Fn,remainingSegments:io,positionalParamSegments:ro}=Pr(D,Ne,pt);if(!cn)return $r(D);const Ho=this.applyRedirects.applyRedirectCommands(Fn,Ne.redirectTo,ro);return Ne.redirectTo.startsWith("/")?Yr(Ho):this.applyRedirects.lineralizeSegments(Ne,Ho).pipe((0,F.z)(Ii=>this.processSegment(X,le,D,Ii.concat(io),vt,!1)))}matchSegmentAgainstRoute(X,D,le,Ne,pt,vt){let cn;if("**"===le.path){const Fn=Ne.length>0?Xt(Ne).parameters:{},io=new so(Ne,Fn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ar(le),Ao(le),le.component??le._loadedComponent??null,le,ws(le));cn=(0,d.of)({snapshot:io,consumedSegments:[],remainingSegments:[]}),D.children={}}else cn=Os(D,le,Ne,X).pipe((0,I.U)(({matched:Fn,consumedSegments:io,remainingSegments:ro,parameters:Ho})=>Fn?{snapshot:new so(io,Ho,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ar(le),Ao(le),le.component??le._loadedComponent??null,le,ws(le)),consumedSegments:io,remainingSegments:ro}:null));return cn.pipe((0,k.w)(Fn=>null===Fn?$r(D):this.getChildConfig(X=le._injector??X,le,Ne).pipe((0,k.w)(({routes:io})=>{const ro=le._loadedInjector??X,{snapshot:Ho,consumedSegments:Ii,remainingSegments:Wr}=Fn,{segmentGroup:Zr,slicedSegments:Kr}=Mr(D,Ii,Wr,io);if(0===Kr.length&&Zr.hasChildren())return this.processChildren(ro,io,Zr).pipe((0,I.U)(xr=>null===xr?null:[new Ro(Ho,xr)]));if(0===io.length&&0===Kr.length)return(0,d.of)([new Ro(Ho,[])]);const Yi=Ao(le)===pt;return this.processSegment(ro,io,Zr,Kr,Yi?Ft:pt,!0).pipe((0,I.U)(xr=>[new Ro(Ho,xr)]))}))))}getChildConfig(X,D,le){return D.children?(0,d.of)({routes:D.children,injector:X}):D.loadChildren?void 0!==D._loadedRoutes?(0,d.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function Sa(H,X,D,le){const Ne=X.canLoad;if(void 0===Ne||0===Ne.length)return(0,d.of)(!0);const pt=Ne.map(vt=>{const cn=Yt(vt,H);return _n(function fo(H){return H&&Rn(H.canLoad)}(cn)?cn.canLoad(X,D):H.runInContext(()=>cn(X,D)))});return(0,d.of)(pt).pipe(ye(),Us())}(X,D,le).pipe((0,F.z)(Ne=>Ne?this.configLoader.loadChildren(X,D).pipe((0,P.b)(pt=>{D._loadedRoutes=pt.routes,D._loadedInjector=pt.injector})):function Ur(H){return(0,N._)(In(!1,3))}())):(0,d.of)({routes:[],injector:X})}}function Sr(H){const X=H.value.routeConfig;return X&&""===X.path}function ir(H){const X=[],D=new Set;for(const le of H){if(!Sr(le)){X.push(le);continue}const Ne=X.find(pt=>le.value.routeConfig===pt.value.routeConfig);void 0!==Ne?(Ne.children.push(...le.children),D.add(Ne)):X.push(le)}for(const le of D){const Ne=ir(le.children);X.push(new Ro(le.value,Ne))}return X.filter(le=>!D.has(le))}function Ar(H){return H.data||{}}function ws(H){return H.resolve||{}}function Zs(H){return"string"==typeof H.title||null===H.title}function Ks(H){return(0,k.w)(X=>{const D=H(X);return D?(0,v.D)(D).pipe((0,I.U)(()=>X)):(0,d.of)(X)})}const $i=new t.OlP("ROUTES");let Ni=(()=>{class H{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,d.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const le=_n(D.loadComponent()).pipe((0,I.U)(ai),(0,P.b)(pt=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=pt}),(0,It.x)(()=>{this.componentLoaders.delete(D)})),Ne=new U.c(le,()=>new M.x).pipe((0,Tt.x)());return this.componentLoaders.set(D,Ne),Ne}loadChildren(D,le){if(this.childrenLoaders.get(le))return this.childrenLoaders.get(le);if(le._loadedRoutes)return(0,d.of)({routes:le._loadedRoutes,injector:le._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(le);const pt=this.loadModuleFactoryOrRoutes(le.loadChildren).pipe((0,I.U)(cn=>{this.onLoadEndListener&&this.onLoadEndListener(le);let Fn,io;return Array.isArray(cn)?io=cn:(Fn=cn.create(D).injector,io=Fn.get($i,[],t.XFs.Self|t.XFs.Optional).flat()),{routes:io.map(_i),injector:Fn}}),(0,It.x)(()=>{this.childrenLoaders.delete(le)})),vt=new U.c(pt,()=>new M.x).pipe((0,Tt.x)());return this.childrenLoaders.set(le,vt),vt}loadModuleFactoryOrRoutes(D){return _n(D()).pipe((0,I.U)(ai),(0,F.z)(le=>le instanceof t.YKP||Array.isArray(le)?(0,d.of)(le):(0,v.D)(this.compiler.compileModuleAsync(le))))}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function ai(H){return function Js(H){return H&&"object"==typeof H&&"default"in H}(H)?H.default:H}let Fr=(()=>{class H{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new M.x,this.configLoader=(0,t.f3M)(Ni),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(yn),this.rootContexts=(0,t.f3M)(lo),this.inputBindingEnabled=null!==(0,t.f3M)(fn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,d.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ne=>this.events.next(new tr(Ne)),this.configLoader.onLoadStartListener=Ne=>this.events.next(new Si(Ne))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const le=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:le})}setupNavigations(D){return this.transitions=new s.X({id:0,currentUrlTree:D.currentUrlTree,currentRawUrl:D.currentUrlTree,extractedUrl:D.urlHandlingStrategy.extract(D.currentUrlTree),urlAfterRedirects:D.urlHandlingStrategy.extract(D.currentUrlTree),rawUrl:D.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mo,restoredState:null,currentSnapshot:D.routerState.snapshot,targetSnapshot:null,currentRouterState:D.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Z.h)(le=>0!==le.id),(0,I.U)(le=>({...le,extractedUrl:D.urlHandlingStrategy.extract(le.rawUrl)})),(0,k.w)(le=>{let Ne=!1,pt=!1;return(0,d.of)(le).pipe((0,P.b)(vt=>{this.currentNavigation={id:vt.id,initialUrl:vt.rawUrl,extractedUrl:vt.extractedUrl,trigger:vt.source,extras:vt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,k.w)(vt=>{const cn=D.browserUrlTree.toString(),Fn=!D.navigated||vt.extractedUrl.toString()!==cn||cn!==D.currentUrlTree.toString();if(!Fn&&"reload"!==(vt.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const ro="";return this.events.next(new So(vt.id,D.serializeUrl(le.rawUrl),ro,0)),D.rawUrlTree=vt.rawUrl,vt.resolve(null),V.E}if(D.urlHandlingStrategy.shouldProcessUrl(vt.rawUrl))return ie(vt.source)&&(D.browserUrlTree=vt.extractedUrl),(0,d.of)(vt).pipe((0,k.w)(ro=>{const Ho=this.transitions?.getValue();return this.events.next(new di(ro.id,this.urlSerializer.serialize(ro.extractedUrl),ro.source,ro.restoredState)),Ho!==this.transitions?.getValue()?V.E:Promise.resolve(ro)}),function ns(H,X,D,le,Ne,pt){return(0,F.z)(vt=>function Ea(H,X,D,le,Ne,pt,vt="emptyOnly"){return new Wc(H,X,D,le,Ne,vt,pt).recognize()}(H,X,D,le,vt.extractedUrl,Ne,pt).pipe((0,I.U)(({state:cn,tree:Fn})=>({...vt,targetSnapshot:cn,urlAfterRedirects:Fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,D.paramsInheritanceStrategy),(0,P.b)(ro=>{if(le.targetSnapshot=ro.targetSnapshot,le.urlAfterRedirects=ro.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ro.urlAfterRedirects},"eager"===D.urlUpdateStrategy){if(!ro.extras.skipLocationChange){const Ii=D.urlHandlingStrategy.merge(ro.urlAfterRedirects,ro.rawUrl);D.setBrowserUrl(Ii,ro)}D.browserUrlTree=ro.urlAfterRedirects}const Ho=new Pi(ro.id,this.urlSerializer.serialize(ro.extractedUrl),this.urlSerializer.serialize(ro.urlAfterRedirects),ro.targetSnapshot);this.events.next(Ho)}));if(Fn&&D.urlHandlingStrategy.shouldProcessUrl(D.rawUrlTree)){const{id:ro,extractedUrl:Ho,source:Ii,restoredState:Wr,extras:Zr}=vt,Kr=new di(ro,this.urlSerializer.serialize(Ho),Ii,Wr);this.events.next(Kr);const Yi=Ti(0,this.rootComponentType).snapshot;return le={...vt,targetSnapshot:Yi,urlAfterRedirects:Ho,extras:{...Zr,skipLocationChange:!1,replaceUrl:!1}},(0,d.of)(le)}{const ro="";return this.events.next(new So(vt.id,D.serializeUrl(le.extractedUrl),ro,1)),D.rawUrlTree=vt.rawUrl,vt.resolve(null),V.E}}),(0,P.b)(vt=>{const cn=new Xo(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(vt.urlAfterRedirects),vt.targetSnapshot);this.events.next(cn)}),(0,I.U)(vt=>le={...vt,guards:hi(vt.targetSnapshot,vt.currentSnapshot,this.rootContexts)}),function pe(H,X){return(0,F.z)(D=>{const{targetSnapshot:le,currentSnapshot:Ne,guards:{canActivateChecks:pt,canDeactivateChecks:vt}}=D;return 0===vt.length&&0===pt.length?(0,d.of)({...D,guardsResult:!0}):function ct(H,X,D,le){return(0,v.D)(H).pipe((0,F.z)(Ne=>function Ds(H,X,D,le,Ne){const pt=X&&X.routeConfig?X.routeConfig.canDeactivate:null;if(!pt||0===pt.length)return(0,d.of)(!0);const vt=pt.map(cn=>{const Fn=Wi(X)??Ne,io=Yt(cn,Fn);return _n(function uo(H){return H&&Rn(H.canDeactivate)}(io)?io.canDeactivate(H,X,D,le):Fn.runInContext(()=>io(H,X,D,le))).pipe((0,R.P)())});return(0,d.of)(vt).pipe(ye())}(Ne.component,Ne.route,D,X,le)),(0,R.P)(Ne=>!0!==Ne,!0))}(vt,le,Ne,H).pipe((0,F.z)(cn=>cn&&function ho(H){return"boolean"==typeof H}(cn)?function zn(H,X,D,le){return(0,v.D)(X).pipe((0,O.b)(Ne=>(0,Y.z)(function fi(H,X){return null!==H&&X&&X(new Gi(H)),(0,d.of)(!0)}(Ne.route.parent,le),function Gn(H,X){return null!==H&&X&&X(new Ei(H)),(0,d.of)(!0)}(Ne.route,le),function wr(H,X,D){const le=X[X.length-1],pt=X.slice(0,X.length-1).reverse().map(vt=>function ke(H){const X=H.routeConfig?H.routeConfig.canActivateChild:null;return X&&0!==X.length?{node:H,guards:X}:null}(vt)).filter(vt=>null!==vt).map(vt=>(0,A.P)(()=>{const cn=vt.guards.map(Fn=>{const io=Wi(vt.node)??D,ro=Yt(Fn,io);return _n(function ni(H){return H&&Rn(H.canActivateChild)}(ro)?ro.canActivateChild(le,H):io.runInContext(()=>ro(le,H))).pipe((0,R.P)())});return(0,d.of)(cn).pipe(ye())}));return(0,d.of)(pt).pipe(ye())}(H,Ne.path,D),function si(H,X,D){const le=X.routeConfig?X.routeConfig.canActivate:null;if(!le||0===le.length)return(0,d.of)(!0);const Ne=le.map(pt=>(0,A.P)(()=>{const vt=Wi(X)??D,cn=Yt(pt,vt);return _n(function Uo(H){return H&&Rn(H.canActivate)}(cn)?cn.canActivate(X,H):vt.runInContext(()=>cn(X,H))).pipe((0,R.P)())}));return(0,d.of)(Ne).pipe(ye())}(H,Ne.route,D))),(0,R.P)(Ne=>!0!==Ne,!0))}(le,pt,H,X):(0,d.of)(cn)),(0,I.U)(cn=>({...D,guardsResult:cn})))})}(this.environmentInjector,vt=>this.events.next(vt)),(0,P.b)(vt=>{if(le.guardsResult=vt.guardsResult,at(vt.guardsResult))throw Qn(0,vt.guardsResult);const cn=new zi(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(vt.urlAfterRedirects),vt.targetSnapshot,!!vt.guardsResult);this.events.next(cn)}),(0,Z.h)(vt=>!!vt.guardsResult||(D.restoreHistory(vt),this.cancelNavigationTransition(vt,"",3),!1)),Ks(vt=>{if(vt.guards.canActivateChecks.length)return(0,d.of)(vt).pipe((0,P.b)(cn=>{const Fn=new An(cn.id,this.urlSerializer.serialize(cn.extractedUrl),this.urlSerializer.serialize(cn.urlAfterRedirects),cn.targetSnapshot);this.events.next(Fn)}),(0,k.w)(cn=>{let Fn=!1;return(0,d.of)(cn).pipe(function js(H,X){return(0,F.z)(D=>{const{targetSnapshot:le,guards:{canActivateChecks:Ne}}=D;if(!Ne.length)return(0,d.of)(D);let pt=0;return(0,v.D)(Ne).pipe((0,O.b)(vt=>function ps(H,X,D,le){const Ne=H.routeConfig,pt=H._resolve;return void 0!==Ne?.title&&!Zs(Ne)&&(pt[rn]=Ne.title),function hs(H,X,D,le){const Ne=function xa(H){return[...Object.keys(H),...Object.getOwnPropertySymbols(H)]}(H);if(0===Ne.length)return(0,d.of)({});const pt={};return(0,v.D)(Ne).pipe((0,F.z)(vt=>function Ws(H,X,D,le){const Ne=Wi(X)??le,pt=Yt(H,Ne);return _n(pt.resolve?pt.resolve(X,D):Ne.runInContext(()=>pt(X,D)))}(H[vt],X,D,le).pipe((0,R.P)(),(0,P.b)(cn=>{pt[vt]=cn}))),re(1),(0,kt.h)(pt),(0,x.K)(vt=>ls(vt)?V.E:(0,N._)(vt)))}(pt,H,X,le).pipe((0,I.U)(vt=>(H._resolvedData=vt,H.data=ei(H,D).resolve,Ne&&Zs(Ne)&&(H.data[rn]=Ne.title),null)))}(vt.route,le,H,X)),(0,P.b)(()=>pt++),re(1),(0,F.z)(vt=>pt===Ne.length?(0,d.of)(D):V.E))})}(D.paramsInheritanceStrategy,this.environmentInjector),(0,P.b)({next:()=>Fn=!0,complete:()=>{Fn||(D.restoreHistory(cn),this.cancelNavigationTransition(cn,"",2))}}))}),(0,P.b)(cn=>{const Fn=new bi(cn.id,this.urlSerializer.serialize(cn.extractedUrl),this.urlSerializer.serialize(cn.urlAfterRedirects),cn.targetSnapshot);this.events.next(Fn)}))}),Ks(vt=>{const cn=Fn=>{const io=[];Fn.routeConfig?.loadComponent&&!Fn.routeConfig._loadedComponent&&io.push(this.configLoader.loadComponent(Fn.routeConfig).pipe((0,P.b)(ro=>{Fn.component=ro}),(0,I.U)(()=>{})));for(const ro of Fn.children)io.push(...cn(ro));return io};return(0,L.a)(cn(vt.targetSnapshot.root)).pipe((0,ue.d)(),(0,ge.q)(1))}),Ks(()=>this.afterPreactivation()),(0,I.U)(vt=>{const cn=function Cn(H,X,D){const le=Nn(H,X._root,D?D._root:void 0);return new qo(le,X)}(D.routeReuseStrategy,vt.targetSnapshot,vt.currentRouterState);return le={...vt,targetRouterState:cn}}),(0,P.b)(vt=>{D.currentUrlTree=vt.urlAfterRedirects,D.rawUrlTree=D.urlHandlingStrategy.merge(vt.urlAfterRedirects,vt.rawUrl),D.routerState=vt.targetRouterState,"deferred"===D.urlUpdateStrategy&&(vt.extras.skipLocationChange||D.setBrowserUrl(D.rawUrlTree,vt),D.browserUrlTree=vt.urlAfterRedirects)}),((H,X,D,le)=>(0,I.U)(Ne=>(new nr(X,Ne.targetRouterState,Ne.currentRouterState,D,le).activate(H),Ne)))(this.rootContexts,D.routeReuseStrategy,vt=>this.events.next(vt),this.inputBindingEnabled),(0,ge.q)(1),(0,P.b)({next:vt=>{Ne=!0,this.lastSuccessfulNavigation=this.currentNavigation,D.navigated=!0,this.events.next(new pi(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(D.currentUrlTree))),D.titleStrategy?.updateTitle(vt.targetRouterState.snapshot),vt.resolve(!0)},complete:()=>{Ne=!0}}),(0,It.x)(()=>{Ne||pt||this.cancelNavigationTransition(le,"",1),this.currentNavigation?.id===le.id&&(this.currentNavigation=null)}),(0,x.K)(vt=>{if(pt=!0,Un(vt)){Vn(vt)||(D.navigated=!0,D.restoreHistory(le,!0));const cn=new wo(le.id,this.urlSerializer.serialize(le.extractedUrl),vt.message,vt.cancellationCode);if(this.events.next(cn),Vn(vt)){const Fn=D.urlHandlingStrategy.merge(vt.url,D.rawUrlTree),io={skipLocationChange:le.extras.skipLocationChange,replaceUrl:"eager"===D.urlUpdateStrategy||ie(le.source)};D.scheduleNavigation(Fn,mo,null,io,{resolve:le.resolve,reject:le.reject,promise:le.promise})}else le.resolve(!1)}else{D.restoreHistory(le,!0);const cn=new Eo(le.id,this.urlSerializer.serialize(le.extractedUrl),vt,le.targetSnapshot??void 0);this.events.next(cn);try{le.resolve(D.errorHandler(vt))}catch(Fn){le.reject(Fn)}}return V.E}))}))}cancelNavigationTransition(D,le,Ne){const pt=new wo(D.id,this.urlSerializer.serialize(D.extractedUrl),le,Ne);this.events.next(pt),D.resolve(!1)}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function ie(H){return H!==mo}let Le=(()=>{class H{buildTitle(D){let le,Ne=D.root;for(;void 0!==Ne;)le=this.getResolvedTitleForRoute(Ne)??le,Ne=Ne.children.find(pt=>pt.outlet===Ft);return le}getResolvedTitleForRoute(D){return D.data[rn]}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:function(){return(0,t.f3M)(fe)},providedIn:"root"}),H})(),fe=(()=>{class H extends Le{constructor(D){super(),this.title=D}updateTitle(D){const le=this.buildTitle(D);void 0!==le&&this.title.setTitle(le)}}return H.\u0275fac=function(D){return new(D||H)(t.LFG(_t.Dx))},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),tt=(()=>{class H{}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:function(){return(0,t.f3M)(hn)},providedIn:"root"}),H})();class At{shouldDetach(X){return!1}store(X,D){}shouldAttach(X){return!1}retrieve(X){return null}shouldReuseRoute(X,D){return X.routeConfig===D.routeConfig}}let hn=(()=>{class H extends At{}return H.\u0275fac=function(){let X;return function(le){return(X||(X=t.n5z(H)))(le||H)}}(),H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const Tn=new t.OlP("",{providedIn:"root",factory:()=>({})});let to=(()=>{class H{}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:function(){return(0,t.f3M)(Qo)},providedIn:"root"}),H})(),Qo=(()=>{class H{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,le){return D}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var go=(()=>((go=go||{})[go.COMPLETE=0]="COMPLETE",go[go.FAILED=1]="FAILED",go[go.REDIRECTING=2]="REDIRECTING",go))();function Vo(H,X){H.events.pipe((0,Z.h)(D=>D instanceof pi||D instanceof wo||D instanceof Eo||D instanceof So),(0,I.U)(D=>D instanceof pi||D instanceof So?go.COMPLETE:D instanceof wo&&(0===D.code||1===D.code)?go.REDIRECTING:go.FAILED),(0,Z.h)(D=>D!==go.REDIRECTING),(0,ge.q)(1)).subscribe(()=>{X()})}function Io(H){throw H}function vi(H,X,D){return X.parse("/")}const jo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ci=(()=>{class H{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Tn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||Io,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||vi,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(to),this.routeReuseStrategy=(0,t.f3M)(tt),this.titleStrategy=(0,t.f3M)(Le),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)($i,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Fr),this.urlSerializer=(0,t.f3M)(yn),this.location=(0,t.f3M)(e.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(fn,{optional:!0}),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new te,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ti(0,null),this.navigationTransitions.setupNavigations(this).subscribe(D=>{this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId??0},D=>{this.console.warn(`Unhandled Navigation Error: ${D}`)})}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const D=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),mo,D)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(D=>{const le="popstate"===D.type?"popstate":"hashchange";"popstate"===le&&setTimeout(()=>{this.navigateToSyncWithBrowser(D.url,le,D.state)},0)}))}navigateToSyncWithBrowser(D,le,Ne){const pt={replaceUrl:!0},vt=Ne?.navigationId?Ne:null;if(Ne){const Fn={...Ne};delete Fn.navigationId,delete Fn.\u0275routerPageId,0!==Object.keys(Fn).length&&(pt.state=Fn)}const cn=this.parseUrl(D);this.scheduleNavigation(cn,le,vt,pt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(_i),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(D,le={}){const{relativeTo:Ne,queryParams:pt,fragment:vt,queryParamsHandling:cn,preserveFragment:Fn}=le,io=Fn?this.currentUrlTree.fragment:vt;let Ho,ro=null;switch(cn){case"merge":ro={...this.currentUrlTree.queryParams,...pt};break;case"preserve":ro=this.currentUrlTree.queryParams;break;default:ro=pt||null}null!==ro&&(ro=this.removeEmptyProps(ro));try{Ho=un(Ne?Ne.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),Ho=this.currentUrlTree.root}return Lt(Ho,D,ro,io??null)}navigateByUrl(D,le={skipLocationChange:!1}){const Ne=at(D)?D:this.parseUrl(D),pt=this.urlHandlingStrategy.merge(Ne,this.rawUrlTree);return this.scheduleNavigation(pt,mo,null,le)}navigate(D,le={skipLocationChange:!1}){return function ao(H){for(let X=0;X{const pt=D[Ne];return null!=pt&&(le[Ne]=pt),le},{})}scheduleNavigation(D,le,Ne,pt,vt){if(this.disposed)return Promise.resolve(!1);let cn,Fn,io;vt?(cn=vt.resolve,Fn=vt.reject,io=vt.promise):io=new Promise((Ho,Ii)=>{cn=Ho,Fn=Ii});const ro=this.pendingTasks.add();return Vo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ro))}),this.navigationTransitions.handleNavigationRequest({source:le,restoredState:Ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:pt,resolve:cn,reject:Fn,promise:io,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),io.catch(Ho=>Promise.reject(Ho))}setBrowserUrl(D,le){const Ne=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(Ne)||le.extras.replaceUrl){const vt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId)};this.location.replaceState(Ne,"",vt)}else{const pt={...le.extras.state,...this.generateNgRouterState(le.id,(this.browserPageId??0)+1)};this.location.go(Ne,"",pt)}}restoreHistory(D,le=!1){if("computed"===this.canceledNavigationResolution){const pt=this.currentPageId-(this.browserPageId??this.currentPageId);0!==pt?this.location.historyGo(pt):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===pt&&(this.resetState(D),this.browserUrlTree=D.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(le&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=D.currentRouterState,this.currentUrlTree=D.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,le){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:le}:{navigationId:D}}}return H.\u0275fac=function(D){return new(D||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),fr=(()=>{class H{constructor(D,le,Ne,pt,vt,cn){this.router=D,this.route=le,this.tabIndexAttribute=Ne,this.renderer=pt,this.el=vt,this.locationStrategy=cn,this.href=null,this.commands=null,this.onChanges=new M.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Fn=vt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Fn||"area"===Fn,this.isAnchorElement?this.subscription=D.events.subscribe(io=>{io instanceof pi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,le,Ne,pt,vt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==D||le||Ne||pt||vt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const D=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",D)}applyAttributeValue(D,le){const Ne=this.renderer,pt=this.el.nativeElement;null!==le?Ne.setAttribute(pt,D,le):Ne.removeAttribute(pt,D)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return H.\u0275fac=function(D){return new(D||H)(t.Y36(Ci),t.Y36(Hi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(e.S$))},H.\u0275dir=t.lG2({type:H,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,le){1&D&&t.NdJ("click",function(pt){return le.onClick(pt.button,pt.ctrlKey,pt.shiftKey,pt.altKey,pt.metaKey)}),2&D&&t.uIk("target",le.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]}),H})(),rr=(()=>{class H{get isActive(){return this._isActive}constructor(D,le,Ne,pt,vt){this.router=D,this.element=le,this.renderer=Ne,this.cdr=pt,this.link=vt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=D.events.subscribe(cn=>{cn instanceof pi&&this.update()})}ngAfterContentInit(){(0,d.of)(this.links.changes,(0,d.of)(null)).pipe((0,gt.J)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(le=>!!le).map(le=>le.onChanges);this.linkInputChangesSubscription=(0,v.D)(D).pipe((0,gt.J)()).subscribe(le=>{this._isActive!==this.isLinkActive(this.router)(le)&&this.update()})}set routerLinkActive(D){const le=Array.isArray(D)?D:D.split(" ");this.classes=le.filter(Ne=>!!Ne)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.classes.forEach(le=>{D?this.renderer.addClass(this.element.nativeElement,le):this.renderer.removeClass(this.element.nativeElement,le)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(D))})}isLinkActive(D){const le=function Nr(H){return!!H.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Ne=>!!Ne.urlTree&&D.isActive(Ne.urlTree,le)}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}}return H.\u0275fac=function(D){return new(D||H)(t.Y36(Ci),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(fr,8))},H.\u0275dir=t.lG2({type:H,selectors:[["","routerLinkActive",""]],contentQueries:function(D,le,Ne){if(1&D&&t.Suo(Ne,fr,5),2&D){let pt;t.iGM(pt=t.CRH())&&(le.links=pt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),H})();class Er{}let Qr=(()=>{class H{constructor(D,le,Ne,pt,vt){this.router=D,this.injector=Ne,this.preloadingStrategy=pt,this.loader=vt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Z.h)(D=>D instanceof pi),(0,O.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,le){const Ne=[];for(const pt of le){pt.providers&&!pt._injector&&(pt._injector=(0,t.MMx)(pt.providers,D,`Route: ${pt.path}`));const vt=pt._injector??D,cn=pt._loadedInjector??vt;(pt.loadChildren&&!pt._loadedRoutes&&void 0===pt.canLoad||pt.loadComponent&&!pt._loadedComponent)&&Ne.push(this.preloadConfig(vt,pt)),(pt.children||pt._loadedRoutes)&&Ne.push(this.processRoutes(cn,pt.children??pt._loadedRoutes))}return(0,v.D)(Ne).pipe((0,gt.J)())}preloadConfig(D,le){return this.preloadingStrategy.preload(le,()=>{let Ne;Ne=le.loadChildren&&void 0===le.canLoad?this.loader.loadChildren(D,le):(0,d.of)(null);const pt=Ne.pipe((0,F.z)(vt=>null===vt?(0,d.of)(void 0):(le._loadedRoutes=vt.routes,le._loadedInjector=vt.injector,this.processRoutes(vt.injector??D,vt.routes))));if(le.loadComponent&&!le._loadedComponent){const vt=this.loader.loadComponent(le);return(0,v.D)([pt,vt]).pipe((0,gt.J)())}return pt})}}return H.\u0275fac=function(D){return new(D||H)(t.LFG(Ci),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Er),t.LFG(Ni))},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const jr=new t.OlP("");let dc=(()=>{class H{constructor(D,le,Ne,pt,vt={}){this.urlSerializer=D,this.transitions=le,this.viewportScroller=Ne,this.zone=pt,this.options=vt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},vt.scrollPositionRestoration=vt.scrollPositionRestoration||"disabled",vt.anchorScrolling=vt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof di?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof pi?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof So&&0===D.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Qi&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,le){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Qi(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,le))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return H.\u0275fac=function(D){t.$Z()},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac}),H})();function Lr(H,X){return{\u0275kind:H,\u0275providers:X}}function xi(){const H=(0,t.f3M)(t.zs3);return X=>{const D=H.get(t.z2F);if(X!==D.components[0])return;const le=H.get(Ci),Ne=H.get(os);1===H.get(kr)&&le.initialNavigation(),H.get(ea,null,t.XFs.Optional)?.setUpPreloading(),H.get(jr,null,t.XFs.Optional)?.init(),le.resetRootComponentType(D.componentTypes[0]),Ne.closed||(Ne.next(),Ne.complete(),Ne.unsubscribe())}}const os=new t.OlP("",{factory:()=>new M.x}),kr=new t.OlP("",{providedIn:"root",factory:()=>1}),ea=new t.OlP("");function d1(H){return Lr(0,[{provide:ea,useExisting:Qr},{provide:Er,useExisting:H}])}const Vr=new t.OlP("ROUTER_FORROOT_GUARD"),qc=[e.Ye,{provide:yn,useClass:st},Ci,lo,{provide:Hi,useFactory:function pc(H){return H.routerState.root},deps:[Ci]},Ni,[]];function Oa(){return new t.PXZ("Router",Ci)}let Xc=(()=>{class H{constructor(D){}static forRoot(D,le){return{ngModule:H,providers:[qc,[],{provide:$i,multi:!0,useValue:D},{provide:Vr,useFactory:Ia,deps:[[Ci,new t.FiY,new t.tp0]]},{provide:Tn,useValue:le||{}},le?.useHash?{provide:e.S$,useClass:e.Do}:{provide:e.S$,useClass:e.b0},{provide:jr,useFactory:()=>{const H=(0,t.f3M)(e.EM),X=(0,t.f3M)(t.R0b),D=(0,t.f3M)(Tn),le=(0,t.f3M)(Fr),Ne=(0,t.f3M)(yn);return D.scrollOffset&&H.setOffset(D.scrollOffset),new dc(Ne,le,H,X,D)}},le?.preloadingStrategy?d1(le.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:Oa},le?.initialNavigation?Aa(le):[],le?.bindToComponentInputs?Lr(8,[qt,{provide:fn,useExisting:qt}]).\u0275providers:[],[{provide:hc,useFactory:xi},{provide:t.tb,multi:!0,useExisting:hc}]]}}static forChild(D){return{ngModule:H,providers:[{provide:$i,multi:!0,useValue:D}]}}}return H.\u0275fac=function(D){return new(D||H)(t.LFG(Vr,8))},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({}),H})();function Ia(H){return"guarded"}function Aa(H){return["disabled"===H.initialNavigation?Lr(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const X=(0,t.f3M)(Ci);return()=>{X.setUpLocationChangeListener()}}},{provide:kr,useValue:2}]).\u0275providers:[],"enabledBlocking"===H.initialNavigation?Lr(2,[{provide:kr,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:X=>{const D=X.get(e.V_,Promise.resolve());return()=>D.then(()=>new Promise(le=>{const Ne=X.get(Ci),pt=X.get(os);Vo(Ne,()=>{le(!0)}),X.get(Fr).afterPreactivation=()=>(le(!0),pt.closed?(0,d.of)(void 0):pt),Ne.initialNavigation()}))}}]).\u0275providers:[]]}const hc=new t.OlP("")},4715:(Ot,be,a)=>{a.d(be,{BOg:()=>Wn,BXH:()=>zi,Ej7:()=>Zi,FsU:()=>Op,Hkd:()=>un,LBP:()=>Sl,LJh:()=>Ps,M8e:()=>Fr,NFG:()=>Ne,OYp:()=>bi,RIp:()=>Sr,RU0:()=>br,Rfq:()=>Zt,TSL:()=>yd,U2Q:()=>ui,UKj:()=>Bt,UTl:()=>gs,UY$:()=>ad,V65:()=>_n,VWu:()=>Yr,WH2:()=>ru,XuQ:()=>ne,Z5F:()=>go,_ry:()=>Wa,bBn:()=>Mt,cN2:()=>po,d2H:()=>Ya,d_$:()=>Xd,eFY:()=>Ac,eLU:()=>Ti,gvV:()=>yl,iUK:()=>kr,np6:()=>dd,nrZ:()=>pl,rHg:()=>Ca,rMt:()=>$r,sZJ:()=>Yl,s_U:()=>r1,ssy:()=>Ni,uIz:()=>c1,ud1:()=>_e,v6v:()=>xo,vEg:()=>Os,vkb:()=>ni,w1L:()=>rd,x0x:()=>Go,yQU:()=>co});const _n={name:"bars",theme:"outline",icon:''},_e={name:"calendar",theme:"outline",icon:''},un={name:"caret-down",theme:"fill",icon:''},ne={name:"caret-down",theme:"outline",icon:''},Mt={name:"caret-up",theme:"fill",icon:''},Zt={name:"check-circle",theme:"fill",icon:''},Wn={name:"caret-up",theme:"outline",icon:''},co={name:"check-circle",theme:"outline",icon:''},ui={name:"check",theme:"outline",icon:''},zi={name:"close-circle",theme:"fill",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Ti={name:"close",theme:"outline",icon:''},Bt={name:"clock-circle",theme:"outline",icon:''},Go={name:"copy",theme:"outline",icon:''},Zi={name:"dashboard",theme:"outline",icon:''},ni={name:"delete",theme:"outline",icon:''},$r={name:"double-right",theme:"outline",icon:''},Yr={name:"double-left",theme:"outline",icon:''},Os={name:"down",theme:"outline",icon:''},br={name:"ellipsis",theme:"outline",icon:''},Sr={name:"edit",theme:"outline",icon:''},Ni={name:"exclamation-circle",theme:"outline",icon:''},Fr={name:"exclamation-circle",theme:"fill",icon:''},go={name:"eye",theme:"outline",icon:''},kr={name:"file",theme:"fill",icon:''},Ps={name:"file",theme:"outline",icon:''},Ne={name:"filter",theme:"fill",icon:''},ru={name:"form",theme:"outline",icon:''},pl={name:"info-circle",theme:"outline",icon:''},gs={name:"info-circle",theme:"fill",icon:''},yl={name:"left",theme:"outline",icon:''},Ya={name:"loading",theme:"outline",icon:''},Sl={name:"menu-fold",theme:"outline",icon:''},Wa={name:"menu-unfold",theme:"outline",icon:''},Ac={name:"paper-clip",theme:"outline",icon:''},Yl={name:"question-circle",theme:"outline",icon:''},rd={name:"rotate-right",theme:"outline",icon:''},ad={name:"rotate-left",theme:"outline",icon:''},dd={name:"right",theme:"outline",icon:''},Ca={name:"search",theme:"outline",icon:''},xo={name:"star",theme:"fill",icon:''},po={name:"swap-right",theme:"outline",icon:''},Op={name:"up",theme:"outline",icon:''},r1={name:"upload",theme:"outline",icon:''},yd={name:"vertical-align-top",theme:"outline",icon:''},c1={name:"zoom-in",theme:"outline",icon:''},Xd={name:"zoom-out",theme:"outline",icon:''}},1789:(Ot,be,a)=>{a.d(be,{B:()=>A,h:()=>Y});var S,N,t=a(655),v=(a(3555),a(1823)),d=a(1352),s=a(2794),L=a(6001),Y=function(){function U(){this.known=new(s.sy?WeakSet:Set),this.pool=new v.B(s.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return U.prototype.isKnown=function(M){return(0,d.s)(M)&&this.known.has(M)},U.prototype.pass=function(M){if((0,d.s)(M)){var e=function Q(U){return(0,d.s)(U)?(0,L.k)(U)?U.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(U)},U):U}(M);return this.passes.set(e,M),e}return M},U.prototype.admit=function(M){var e=this;if((0,d.s)(M)){var I=this.passes.get(M);if(I)return I;switch(Object.getPrototypeOf(M)){case Array.prototype:if(this.known.has(M))return M;var ge=M.map(this.admit,this);return(Ce=this.pool.lookupArray(ge)).array||(this.known.add(Ce.array=ge),__DEV__&&Object.freeze(ge)),Ce.array;case null:case Object.prototype:if(this.known.has(M))return M;var Z=Object.getPrototypeOf(M),F=[Z],R=this.sortedKeys(M);F.push(R.json);var Ce,O=F.length;if(R.sorted.forEach(function(de){F.push(e.admit(M[de]))}),!(Ce=this.pool.lookupArray(F)).object){var P=Ce.object=Object.create(Z);this.known.add(P),R.sorted.forEach(function(de,ue){P[de]=F[O+ue]}),__DEV__&&Object.freeze(P)}return Ce.object}}return M},U.prototype.sortedKeys=function(M){var e=Object.keys(M),I=this.pool.lookupArray(e);if(!I.keys){e.sort();var k=JSON.stringify(e);(I.keys=this.keysByJSON.get(k))||this.keysByJSON.set(k,I.keys={sorted:e,json:k})}return I.keys},U}(),A=Object.assign(function(U){if((0,d.s)(U)){void 0===S&&V();var M=S.admit(U),e=N.get(M);return void 0===e&&N.set(M,e=JSON.stringify(M)),e}return JSON.stringify(U)},{reset:V});function V(){S=new Y,N=new(s.mr?WeakMap:Map)}},3088:(Ot,be,a)=>{a.d(be,{QS:()=>Y,_v:()=>Q,ab:()=>v,li:()=>L});var t=a(5907),v=new(a(530).g7),d=new WeakMap;function s(S){var N=d.get(S);return N||d.set(S,N={vars:new Set,dep:(0,t.dP)()}),N}function L(S){s(S).vars.forEach(function(N){return N.forgetCache(S)})}function Q(S){s(S).vars.forEach(function(N){return N.attachCache(S)})}function Y(S){var N=new Set,V=new Set,U=function(e){if(arguments.length>0){if(S!==e){S=e,N.forEach(function(ge){s(ge).dep.dirty(U),function A(S){S.broadcastWatches&&S.broadcastWatches()}(ge)});var I=Array.from(V);V.clear(),I.forEach(function(ge){return ge(S)})}}else{var k=v.getValue();k&&(M(k),s(k).dep(U))}return S};U.onNextChange=function(e){return V.add(e),function(){V.delete(e)}};var M=U.attachCache=function(e){return N.add(e),s(e).vars.add(U),U};return U.forgetCache=function(e){return N.delete(e)},U}},8632:(Ot,be,a)=>{a.d(be,{i:()=>V});var t=a(655),i=a(3555),v=a(7619),s=a(8725);function Y(U,M){return M?M(U):v.y.of()}function A(U){return"function"==typeof U?new V(U):U}function S(U){return U.request.length<=1}var N=function(U){function M(e,I){var k=U.call(this,e)||this;return k.link=I,k}return(0,t.ZT)(M,U),M}(Error),V=function(){function U(M){M&&(this.request=M)}return U.empty=function(){return new U(function(){return v.y.of()})},U.from=function(M){return 0===M.length?U.empty():M.map(A).reduce(function(e,I){return e.concat(I)})},U.split=function(M,e,I){var k=A(e),ge=A(I||new U(Y));return S(k)&&S(ge)?new U(function(Ce){return M(Ce)?k.request(Ce)||v.y.of():ge.request(Ce)||v.y.of()}):new U(function(Ce,Z){return M(Ce)?k.request(Ce,Z)||v.y.of():ge.request(Ce,Z)||v.y.of()})},U.execute=function(M,e){return M.request(function d(U,M){var e=(0,t.pi)({},U);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(ge){e=(0,t.pi)((0,t.pi)({},e),"function"==typeof ge?ge(e):ge)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},e)}}),M}(e.context,function L(U){var M={variables:U.variables||{},extensions:U.extensions||{},operationName:U.operationName,query:U.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,s.rY)(M.query)||void 0:""),M}(function Q(U){for(var M=["query","operationName","variables","extensions","context"],e=0,I=Object.keys(U);e{a.d(be,{O:()=>i,k:()=>t});var t=Array.isArray;function i(v){return Array.isArray(v)&&v.length>0}},2794:(Ot,be,a)=>{a.d(be,{DN:()=>s,aS:()=>d,mr:()=>i,sy:()=>v});var t=a(3555),i="function"==typeof WeakMap&&"ReactNative"!==(0,t.wY)(function(){return navigator.product}),v="function"==typeof WeakSet,d="function"==typeof Symbol&&"function"==typeof Symbol.for,s=d&&Symbol.asyncIterator;(0,t.wY)(function(){return window.document.createElement}),(0,t.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},5078:(Ot,be,a)=>{a.d(be,{X:()=>i});var t=Object.prototype.toString;function i(d){return v(d)}function v(d,s){switch(t.call(d)){case"[object Array]":if((s=s||new Map).has(d))return s.get(d);var L=d.slice(0);return s.set(d,L),L.forEach(function(Y,A){L[A]=v(Y,s)}),L;case"[object Object]":if((s=s||new Map).has(d))return s.get(d);var Q=Object.create(Object.getPrototypeOf(d));return s.set(d,Q),Object.keys(d).forEach(function(Y){Q[Y]=v(d[Y],s)}),Q;default:return d}}},9990:(Ot,be,a)=>{function t(){for(var i=[],v=0;vt})},6726:(Ot,be,a)=>{a.d(be,{X:()=>i});var t=new Map;function i(v){var d=t.get(v)||1;return t.set(v,d+1),"".concat(v,":").concat(d,":").concat(Math.random().toString(36).slice(2))}},6630:(Ot,be,a)=>{a.d(be,{Ee:()=>d,bw:()=>s,w0:()=>Q});var t=a(655),i=a(1352),v=Object.prototype.hasOwnProperty;function d(){for(var Y=[],A=0;A1)for(var N=new Q,V=1;V{function t(i){return null!==i&&"object"==typeof i}a.d(be,{s:()=>t})},3555:(Ot,be,a)=>{a.d(be,{ej:()=>s,kG:()=>L,wY:()=>V});var t=a(655),i="Invariant Violation",v=Object.setPrototypeOf,d=void 0===v?function(de,ue){return de.__proto__=ue,de}:v,s=function(de){function ue(j){void 0===j&&(j=i);var me=de.call(this,"number"==typeof j?i+": "+j+" (see https://github.com/apollographql/invariant-packages)":j)||this;return me.framesToPop=1,me.name=i,d(me,ue.prototype),me}return(0,t.ZT)(ue,de),ue}(Error);function L(de,ue){if(!de)throw new s(ue)}var de,Q=["debug","log","warn","error","silent"],Y=Q.indexOf("log");function A(de){return function(){if(Q.indexOf(de)>=Y)return(console[de]||console.log).apply(console,arguments)}}function V(de){try{return de()}catch{}}(de=L||(L={})).debug=A("debug"),de.log=A("log"),de.warn=A("warn"),de.error=A("error");const U=V(function(){return globalThis})||V(function(){return window})||V(function(){return self})||V(function(){return global})||V(function(){return V.constructor("return this")()});var M="__",e=[M,M].join("DEV");const k=function I(){try{return!!__DEV__}catch{return Object.defineProperty(U,e,{value:"production"!==V(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),U[e]}}();function ge(de){try{return de()}catch{}}var Ce=ge(function(){return globalThis})||ge(function(){return window})||ge(function(){return self})||ge(function(){return global})||ge(function(){return ge.constructor("return this")()}),Z=!1;!function F(){Ce&&!ge(function(){return"production"})&&!ge(function(){return process})&&(Object.defineProperty(Ce,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Z=!0)}(),a(9456),function P(){(function R(){Z&&(delete Ce.process,Z=!1)})()}(),function x(){__DEV__?L("boolean"==typeof k,k):L("boolean"==typeof k,39)}()},2954:(Ot,be,a)=>{a.d(be,{FS:()=>Q,LZ:()=>v,mj:()=>Y});var t=a(3555),i=a(8016);function v(N,V){var U=N.directives;return!U||!U.length||function S(N){var V=[];return N&&N.length&&N.forEach(function(U){if(function A(N){var V=N.name.value;return"skip"===V||"include"===V}(U)){var M=U.arguments,e=U.name.value;__DEV__?(0,t.kG)(M&&1===M.length,"Incorrect number of arguments for the @".concat(e," directive.")):(0,t.kG)(M&&1===M.length,41);var I=M[0];__DEV__?(0,t.kG)(I.name&&"if"===I.name.value,"Invalid argument for the @".concat(e," directive.")):(0,t.kG)(I.name&&"if"===I.name.value,42);var k=I.value;__DEV__?(0,t.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),"Argument for the @".concat(e," directive must be a variable or a boolean value.")):(0,t.kG)(k&&("Variable"===k.kind||"BooleanValue"===k.kind),43),V.push({directive:U,ifArgument:I})}}),V}(U).every(function(M){var e=M.directive,I=M.ifArgument,k=!1;return"Variable"===I.value.kind?(k=V&&V[I.value.name.value],__DEV__?(0,t.kG)(void 0!==k,"Invalid variable referenced in @".concat(e.name.value," directive.")):(0,t.kG)(void 0!==k,40)):k=I.value.value,"skip"===e.name.value?!k:k})}function Q(N,V,U){var M=new Set(N),e=M.size;return(0,i.Vn)(V,{Directive:function(I){if(M.delete(I.name.value)&&(!U||!M.size))return i.$_}}),U?!M.size:M.size{a.d(be,{F:()=>d,Yk:()=>v,hi:()=>s});var t=a(655),i=a(3555);function v(L,Q){var Y=Q,A=[];return L.definitions.forEach(function(N){if("OperationDefinition"===N.kind)throw __DEV__?new i.ej("Found a ".concat(N.operation," operation").concat(N.name?" named '".concat(N.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===N.kind&&A.push(N)}),typeof Y>"u"&&(__DEV__?(0,i.kG)(1===A.length,"Found ".concat(A.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===A.length,45),Y=A[0].name.value),(0,t.pi)((0,t.pi)({},L),{definitions:(0,t.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:Y}}]}}],L.definitions,!0)})}function d(L){void 0===L&&(L=[]);var Q={};return L.forEach(function(Y){Q[Y.name.value]=Y}),Q}function s(L,Q){switch(L.kind){case"InlineFragment":return L;case"FragmentSpread":var Y=L.name.value;if("function"==typeof Q)return Q(Y);var A=Q&&Q[Y];return __DEV__?(0,i.kG)(A,"No fragment named ".concat(Y)):(0,i.kG)(A,46),A||null;default:return null}}},8725:(Ot,be,a)=>{a.d(be,{$H:()=>d,A$:()=>v,O4:()=>S,iW:()=>Q,kU:()=>L,p$:()=>A,pD:()=>Y,rY:()=>s});var t=a(3555),i=a(9173);function v(N){__DEV__?(0,t.kG)(N&&"Document"===N.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,t.kG)(N&&"Document"===N.kind,47);var V=N.definitions.filter(function(U){return"FragmentDefinition"!==U.kind}).map(function(U){if("OperationDefinition"!==U.kind)throw __DEV__?new t.ej('Schema type definitions not allowed in queries. Found: "'.concat(U.kind,'"')):new t.ej(48);return U});return __DEV__?(0,t.kG)(V.length<=1,"Ambiguous GraphQL document: contains ".concat(V.length," operations")):(0,t.kG)(V.length<=1,49),N}function d(N){return v(N),N.definitions.filter(function(V){return"OperationDefinition"===V.kind})[0]}function s(N){return N.definitions.filter(function(V){return"OperationDefinition"===V.kind&&!!V.name}).map(function(V){return V.name.value})[0]||null}function L(N){return N.definitions.filter(function(V){return"FragmentDefinition"===V.kind})}function Q(N){var V=d(N);return __DEV__?(0,t.kG)(V&&"query"===V.operation,"Must contain a query definition."):(0,t.kG)(V&&"query"===V.operation,50),V}function Y(N){__DEV__?(0,t.kG)("Document"===N.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,t.kG)("Document"===N.kind,51),__DEV__?(0,t.kG)(N.definitions.length<=1,"Fragment must have exactly one definition."):(0,t.kG)(N.definitions.length<=1,52);var V=N.definitions[0];return __DEV__?(0,t.kG)("FragmentDefinition"===V.kind,"Must be a fragment definition."):(0,t.kG)("FragmentDefinition"===V.kind,53),V}function A(N){v(N);for(var V,U=0,M=N.definitions;U{a.d(be,{Ao:()=>de,JW:()=>L,My:()=>x,NC:()=>R,PT:()=>Ce,Yk:()=>s,kQ:()=>d,qw:()=>P,u2:()=>O,vb:()=>I,vf:()=>k});var t=a(3555),i=a(1352),v=a(7095);function d(ue){return{__ref:String(ue)}}function s(ue){return!(!ue||"object"!=typeof ue||"string"!=typeof ue.__ref)}function L(ue){return(0,i.s)(ue)&&"Document"===ue.kind&&Array.isArray(ue.definitions)}function I(ue,j,me,re){if(function A(ue){return"IntValue"===ue.kind}(me)||function S(ue){return"FloatValue"===ue.kind}(me))ue[j.value]=Number(me.value);else if(function Y(ue){return"BooleanValue"===ue.kind}(me)||function Q(ue){return"StringValue"===ue.kind}(me))ue[j.value]=me.value;else if(function V(ue){return"ObjectValue"===ue.kind}(me)){var he={};me.fields.map(function(Oe){return I(he,Oe.name,Oe.value,re)}),ue[j.value]=he}else if(function N(ue){return"Variable"===ue.kind}(me))ue[j.value]=(re||{})[me.name.value];else if(function U(ue){return"ListValue"===ue.kind}(me))ue[j.value]=me.values.map(function(Oe){var kt={};return I(kt,j,Oe,re),kt[j.value]});else if(function M(ue){return"EnumValue"===ue.kind}(me))ue[j.value]=me.value;else{if(!function e(ue){return"NullValue"===ue.kind}(me))throw __DEV__?new t.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 t.ej(55);ue[j.value]=null}}function k(ue,j){var me=null;ue.directives&&(me={},ue.directives.forEach(function(he){me[he.name.value]={},he.arguments&&he.arguments.forEach(function(Me){return I(me[he.name.value],Me.name,Me.value,j)})}));var re=null;return ue.arguments&&ue.arguments.length&&(re={},ue.arguments.forEach(function(he){return I(re,he.name,he.value,j)})),Ce(ue.name.value,re,me)}var ge=["connection","include","skip","client","rest","export"],Ce=Object.assign(function(ue,j,me){if(j&&me&&me.connection&&me.connection.key){if(me.connection.filter&&me.connection.filter.length>0){var re=me.connection.filter?me.connection.filter:[];re.sort();var he={};return re.forEach(function(kt){he[kt]=j[kt]}),"".concat(me.connection.key,"(").concat(Z(he),")")}return me.connection.key}var Me=ue;if(j){var Oe=Z(j);Me+="(".concat(Oe,")")}return me&&Object.keys(me).forEach(function(kt){-1===ge.indexOf(kt)&&(me[kt]&&Object.keys(me[kt]).length?Me+="@".concat(kt,"(").concat(Z(me[kt]),")"):Me+="@".concat(kt))}),Me},{setStringify:function(ue){var j=Z;return Z=ue,j}}),Z=function(j){return JSON.stringify(j,F)};function F(ue,j){return(0,i.s)(j)&&!Array.isArray(j)&&(j=Object.keys(j).sort().reduce(function(me,re){return me[re]=j[re],me},{})),j}function R(ue,j){if(ue.arguments&&ue.arguments.length){var me={};return ue.arguments.forEach(function(re){return I(me,re.name,re.value,j)}),me}return null}function O(ue){return ue.alias?ue.alias.value:ue.name.value}function P(ue,j,me){for(var re,he=0,Me=j.selections;he{a.d(be,{Fo:()=>k,Gw:()=>e,aL:()=>O,ob:()=>P});var t=a(655),i=a(3555),v=a(5560),d=a(8016),s=a(8725),L=a(9173),Q=a(7095),Y=a(6001),A={kind:v.h.FIELD,name:{kind:v.h.NAME,value:"__typename"}};function S(x,de){return!x||x.selectionSet.selections.every(function(ue){return ue.kind===v.h.FRAGMENT_SPREAD&&S(de[ue.name.value],de)})}function N(x){return S((0,s.$H)(x)||(0,s.pD)(x),(0,Q.F)((0,s.kU)(x)))?null:x}function U(x){var de=new Map;return function(j){void 0===j&&(j=x);var me=de.get(j);return me||de.set(j,me={variables:new Set,fragmentSpreads:new Set}),me}}function M(x,de){for(var ue=U(""),j=U(""),me=function(Re){for(var yt=0,je=void 0;yt=0;--he)de.definitions[he].kind===v.h.OPERATION_DEFINITION&&++re;var Me=function V(x){var de=new Set,ue=[];return x.forEach(function(j){j.name?de.add(j.name):j.test&&ue.push(j.test)}),function(j){return de.has(j.name.value)||ue.some(function(me){return me(j)})}}(x),Oe=x.some(function(Re){return Re.remove}),kt=function(Re){return Oe&&Re&&Re.some(Me)},It=new Map,Tt=!1,gt={enter:function(Re){if(kt(Re.directives))return Tt=!0,null}},_t=(0,d.Vn)(de,{Field:gt,InlineFragment:gt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(Re,yt,je,Ut,Xt){var _n=me(Xt);_n&&_n.variables.add(Re.name.value)}},FragmentSpread:{enter:function(Re,yt,je,Ut,Xt){if(kt(Re.directives))return Tt=!0,null;var _n=me(Xt);_n&&_n.fragmentSpreads.add(Re.name.value)}},FragmentDefinition:{enter:function(Re,yt,je,Ut){It.set(JSON.stringify(Ut),Re)},leave:function(Re,yt,je,Ut){return Re===It.get(JSON.stringify(Ut))?Re:re>0&&Re.selectionSet.selections.every(function(_n){return _n.kind===v.h.FIELD&&"__typename"===_n.name.value})?(j(Re.name.value).removed=!0,Tt=!0,null):void 0}},Directive:{leave:function(Re){if(Me(Re))return Tt=!0,null}}});if(!Tt)return de;var Ft=function(Re){return Re.transitiveVars||(Re.transitiveVars=new Set(Re.variables),Re.removed||Re.fragmentSpreads.forEach(function(yt){Ft(j(yt)).transitiveVars.forEach(function(je){Re.transitiveVars.add(je)})})),Re},rn=new Set;_t.definitions.forEach(function(Re){Re.kind===v.h.OPERATION_DEFINITION?Ft(ue(Re.name&&Re.name.value)).fragmentSpreads.forEach(function(yt){rn.add(yt)}):Re.kind===v.h.FRAGMENT_DEFINITION&&0===re&&!j(Re.name.value).removed&&rn.add(Re.name.value)}),rn.forEach(function(Re){Ft(j(Re)).fragmentSpreads.forEach(function(yt){rn.add(yt)})});var et={enter:function(Re){if(function(Re){return!(rn.has(Re)&&!j(Re).removed)}(Re.name.value))return null}};return N((0,d.Vn)(_t,{FragmentSpread:et,FragmentDefinition:et,OperationDefinition:{leave:function(Re){if(Re.variableDefinitions){var yt=Ft(ue(Re.name&&Re.name.value)).transitiveVars;if(yt.size{a.d(be,{c:()=>F,t:()=>re});var t=a(8645),i=a(7394),v=a(9666),d=a(6232),s=a(5879),L=a(1631),Q=a(9773);const Y=s.GuJ,S=Symbol("__destroy"),N=Symbol("__decoratorApplied");function V(Me){return"string"==typeof Me?Symbol(`__destroy__${Me}`):S}function M(Me,Oe){Me[Oe]||(Me[Oe]=new t.x)}function e(Me,Oe){Me[Oe]&&(Me[Oe].next(),Me[Oe].complete(),Me[Oe]=null)}function I(Me){Me instanceof i.w0&&Me.unsubscribe()}function ge(Me,Oe){return function(){if(Me&&Me.call(this),e(this,V()),Oe.arrayName&&function k(Me){Array.isArray(Me)&&Me.forEach(I)}(this[Oe.arrayName]),Oe.checkProperties)for(const kt in this)Oe.blackList?.includes(kt)||I(this[kt])}}function F(Me={}){return Oe=>{!function A(Me){return!!Me[Y]}(Oe)?function Ce(Me,Oe){Me.prototype.ngOnDestroy=ge(Me.prototype.ngOnDestroy,Oe)}(Oe,Me):function Z(Me,Oe){const kt=Me.\u0275pipe;kt.onDestroy=ge(kt.onDestroy,Oe)}(Oe,Me),function U(Me){Me.prototype[N]=!0}(Oe)}}const R=7,O=Symbol("CheckerHasBeenSet");function de(Me){const Oe=s.dqk.Zone;return Oe&&"function"==typeof Oe.root?.run?Oe.root.run(Me):Me()}const j=!1;function re(Me,Oe){return kt=>{const It=V(Oe);"string"==typeof Oe?function me(Me,Oe,kt){const It=Me[Oe];if(j&&"function"!=typeof It)throw new Error(`${Me.constructor.name} is using untilDestroyed but doesn't implement ${Oe}`);M(Me,kt),Me[Oe]=function(){It.apply(this,arguments),e(this,kt),Me[Oe]=It}}(Me,Oe,It):(j&&function he(Me){const Oe=Object.getPrototypeOf(Me);if(!(N in Oe))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(Me),M(Me,It));const Tt=Me[It];return j&&function P(Me,Oe){Me[O]||function x(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(de(()=>(0,v.D)(Promise.resolve()).pipe((0,L.z)(()=>{let kt;try{kt=(0,s.EEQ)(Me)}catch{kt=null}const It=kt?.lView;if(null==It)return d.E;const Tt=It[R]||(It[R]=[]),gt=new t.x;return Tt.push(function(){de(()=>{gt.next(),gt.complete()})}),gt}),(0,L.z)(()=>Promise.resolve())).subscribe(()=>{(Oe.observed??Oe.observers.length>0)&&console.warn(function ue(Me){return`\n The ${Me.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(Me))})),Me[O]=!0)}(Me,Tt),kt.pipe((0,Q.R)(Tt))}}},8091:(Ot,be,a)=>{a.d(be,{eJ:()=>ue,fM:()=>me});var t=a(5879),i=a(2664),v=a(2572),d=a(9666),s=a(5592),L=a(7328),Q=a(8407),Y=a(7394),A=a(3997),S=a(9397),N=a(4664);let U=(()=>{class he{}return he.\u0275fac=function(Oe){return new(Oe||he)},he.\u0275prov=t.Yz7({token:he,factory:function(){return function V(he){return he instanceof t.R0b}((0,t.f3M)(t.R0b))?new e:(0,t.f3M)(M)},providedIn:"root"}),he})(),M=(()=>{class he extends U{constructor(Oe){super(),this.appRef=Oe,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}}return he.\u0275fac=function(Oe){return new(Oe||he)(t.LFG(t.z2F))},he.\u0275prov=t.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();class e extends U{schedule(){}}let I=(()=>{class he{constructor(Oe,kt){this.cdRef=Oe,this.tickScheduler=kt}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}}return he.\u0275fac=function(Oe){return new(Oe||he)(t.LFG(t.sBO),t.LFG(U))},he.\u0275prov=t.Yz7({token:he,factory:he.\u0275fac}),he})();function P(he){const Me=function ge(he){return Me=>he[Me.type]?.(Me)}(he),Oe=new L.t(1);return{nextPotentialObservable(kt){Oe.next(kt)},handlePotentialObservableChanges:()=>Oe.pipe((0,A.x)(),function x(){return(0,Q.z)((0,N.w)(he=>{const Me=function Ce(he){return(0,i.b)(he)?he:function F(he){return function R(he){return!!he&&"object"==typeof he&&!Array.isArray(he)}(he)&&Object.keys(he).length>0&&Object.values(he).every(i.b)}(he)?(0,v.a)(function O(he){return Object.keys(he).reduce((Me,Oe)=>({...Me,[Oe]:he[Oe].pipe((0,A.x)())}),{})}(he)):function Z(he){return"function"==typeof he?.then}(he)?(0,d.D)(he):new s.y(Me=>{Me.next(he)})}(he);let Oe=!0,kt=!0;return new s.y(It=>{const Tt=(0,t.rg0)(()=>Me.subscribe({next(gt){It.next({type:"next",value:gt,reset:Oe,synchronous:kt}),Oe=!1},error(gt){It.next({type:"error",error:gt,reset:Oe,synchronous:kt}),Oe=!1},complete(){It.next({type:"complete",reset:Oe,synchronous:kt}),Oe=!1}}));return Oe&&(It.next({type:"suspense",reset:Oe,synchronous:!0}),Oe=!1),kt=!1,Tt})}))}(),(0,A.x)(de),(0,S.b)(Me))}}function de(he,Me){return he.type===Me.type&&he.reset===Me.reset&&("next"===Me.type?he.value===Me.value:"error"!==Me.type||he.error===Me.error)}let ue=(()=>{class he{set ngrxLet(Oe){this.renderEventManager.nextPotentialObservable(Oe)}constructor(Oe,kt,It,Tt){this.mainTemplateRef=Oe,this.viewContainerRef=kt,this.errorHandler=It,this.renderScheduler=Tt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=P({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:gt=>{this.viewContext.$implicit=gt.value,this.viewContext.ngrxLet=gt.value,gt.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(gt.synchronous)},error:gt=>{this.viewContext.error=gt.error,gt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(gt.synchronous),this.errorHandler.handleError(gt.error)},complete:gt=>{this.viewContext.complete=!0,gt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(gt.synchronous)}}),this.subscription=new Y.w0}static ngTemplateContextGuard(Oe,kt){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(Oe){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),Oe||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}}return he.\u0275fac=function(Oe){return new(Oe||he)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(t.qLn),t.Y36(I))},he.\u0275dir=t.lG2({type:he,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:["ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t._Bn([I])]}),he})(),me=(()=>{class he{constructor(Oe){this.errorHandler=Oe,this.renderScheduler=function k(){return new I((0,t.f3M)(t.sBO),(0,t.f3M)(U))}(),this.renderEventManager=P({suspense:kt=>this.setRenderedValue(void 0,kt.synchronous),next:kt=>this.setRenderedValue(kt.value,kt.synchronous),error:kt=>{kt.reset&&this.setRenderedValue(void 0,kt.synchronous),this.errorHandler.handleError(kt.error)},complete:kt=>{kt.reset&&this.setRenderedValue(void 0,kt.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(Oe){return this.renderEventManager.nextPotentialObservable(Oe),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(Oe,kt){Oe!==this.renderedValue&&(this.renderedValue=Oe,kt||this.renderScheduler.schedule())}}return he.\u0275fac=function(Oe){return new(Oe||he)(t.Y36(t.qLn,16))},he.\u0275pipe=t.Yjl({name:"ngrxPush",type:he,pure:!1,standalone:!0}),he})()},5545:(Ot,be,a)=>{a.d(be,{JD:()=>xe,M2:()=>De,T7:()=>Be,X0:()=>jt,cw:()=>We,fS:()=>te,hv:()=>Ge,l7:()=>je,n2:()=>Ct});var t=a(5879),i=a(6223),v=a(2664),d=a(3019),s=a(2096),L=a(5592),Q=a(8645),Y=a(3997),A=a(7921),S=a(3620),N=a(2181),V=a(4664),U=a(8180),M=a(9397),e=a(7398),I=a(6814),k=a(6593);const ge=["container"];function Ce(Ke,K){}function Z(Ke,K){1&Ke&&t._UZ(0,"formly-field",1),2&Ke&&t.Q6J("field",K.$implicit)}const F=["*"],R=["fieldComponent"];function P(Ke,K,w){if(K.id)return K.id;let J=K.type;return!J&&K.template&&(J="template"),J instanceof t.DyG&&(J=J.prototype.constructor.name),[Ke,J,K.key,w].join("_")}function x(Ke){return!Me(Ke.key)&&""!==Ke.key}function de(Ke){if(!x(Ke))return[];if(Ke._keyPath?.key!==Ke.key){let K=[];if("string"==typeof Ke.key){const w=-1===Ke.key.indexOf("[")?Ke.key:Ke.key.replace(/\[(\w+)\]/g,".$1");K=-1!==w.indexOf(".")?w.split("."):[w]}else K=Array.isArray(Ke.key)?Ke.key.slice(0):[`${Ke.key}`];rn(Ke,"_keyPath",{key:Ke.key,path:K})}return Ke._keyPath.path.slice(0)}const ue=["required","pattern","minLength","maxLength","min","max"];function j(Ke,K){let w=de(Ke);if(0===w.length)return;let J=Ke;for(;J.parent;)J=J.parent,w=[...de(J),...w];if(void 0===K&&Ke.resetOnHide){const Te=w.pop();delete w.reduce((nt,qe)=>nt[qe]||{},J.model)[Te]}else!function me(Ke,K,w){for(let J=0;J{for(const J in w)Me(Ke[J])||kt(Ke[J])?Ke[J]=Ft(w[J]):Tt(Ke[J],w[J])&&he(Ke[J],w[J])}),Ke}function Me(Ke){return null==Ke}function Oe(Ke){return void 0===Ke}function kt(Ke){return""===Ke}function It(Ke){return"function"==typeof Ke}function Tt(Ke,K){return gt(Ke)&>(K)&&Object.getPrototypeOf(Ke)===Object.getPrototypeOf(K)&&!(Array.isArray(Ke)||Array.isArray(K))}function gt(Ke){return null!=Ke&&"object"==typeof Ke}function Ft(Ke){if(!gt(Ke)||(0,v.b)(Ke)||Ke instanceof t.Rgc||Ke.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Ke.constructor.name))return Ke;if(Ke instanceof Set)return new Set(Ke);if(Ke instanceof Map)return new Map(Ke);if(Ke._isAMomentObject&&It(Ke.clone))return Ke.clone();if(Ke instanceof i.TO)return null;if(Ke instanceof Date)return new Date(Ke.getTime());if(Array.isArray(Ke))return Ke.slice(0).map(J=>Ft(J));const K=Object.getPrototypeOf(Ke);let w=Object.create(K);return w=Object.setPrototypeOf(w,K),Object.keys(Ke).reduce((J,Te)=>{const zt=Object.getOwnPropertyDescriptor(Ke,Te);return zt.get?Object.defineProperty(J,Te,zt):J[Te]=Ft(Ke[Te]),J},w)}function rn(Ke,K,w){Object.defineProperty(Ke,K,{enumerable:!1,writable:!0,configurable:!0}),Ke[K]=w}function bn(Ke,K,w){let J=[];const Te=()=>{J.forEach(nt=>nt()),J=[]},zt=et(Ke,K,({firstChange:nt,currentValue:qe})=>{!nt&&w(),Te(),gt(qe)&&"Object"===qe.constructor.name&&Object.keys(qe).forEach(rt=>{J.push(bn(Ke,[...K,rt],w))})});return()=>{zt.unsubscribe(),Te()}}function et(Ke,K,w){Ke._observers||rn(Ke,"_observers",{});let J=Ke;for(let qe=0;qe=1&>(J))){const{enumerable:qe}=Object.getOwnPropertyDescriptor(J,Te)||{enumerable:!0};Object.defineProperty(J,Te,{enumerable:qe,configurable:!0,get:()=>nt.value,set:rt=>{if(rt!==nt.value){const Rt=nt.value;nt.value=rt,nt.onChange.forEach(St=>St({previousValue:Rt,currentValue:rt,firstChange:!1}))}}})}return{setValue(qe){if(qe===nt.value)return;const rt=nt.value;nt.value=qe,nt.onChange.forEach(Rt=>{Rt!==w&&Rt({previousValue:rt,currentValue:qe,firstChange:!1})})},unsubscribe(){nt.onChange=nt.onChange.filter(qe=>qe!==w),0===nt.onChange.length&&delete Ke._observers[zt]}}}function Re(Ke,K){if(K=Array.isArray(K)?K.join("."):K,Ke.fieldGroup)for(let w=0,J=Ke.fieldGroup.length;w{K instanceof t.UuU?K.injector.get(t.sBO).markForCheck():K.markForCheck()})}const je=new t.OlP("FORMLY_CONFIG");let Ut=(()=>{class Ke{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:w=>w.formControl?.invalid&&(w.formControl?.touched||w.options.parentForm?.submitted||!!w.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(w){w.types&&w.types.forEach(J=>this.setType(J)),w.validators&&w.validators.forEach(J=>this.setValidator(J)),w.wrappers&&w.wrappers.forEach(J=>this.setWrapper(J)),w.validationMessages&&w.validationMessages.forEach(J=>this.addValidatorMessage(J.name,J.message)),w.extensions&&this.setSortedExtensions(w.extensions),w.extras&&(this.extras={...this.extras,...w.extras}),w.presets&&(this.presets={...this.presets,...w.presets.reduce((J,Te)=>({...J,[Te.name]:Te.config}),{})})}setType(w){Array.isArray(w)?w.forEach(J=>this.setType(J)):(this.types[w.name]||(this.types[w.name]={name:w.name}),["component","extends","defaultOptions","wrappers"].forEach(J=>{w.hasOwnProperty(J)&&(this.types[w.name][J]=w[J])}))}getType(w,J=!1){if(w instanceof t.DyG)return{component:w,name:w.prototype.constructor.name};if(!this.types[w]){if(J)throw new Error(`[Formly Error] The type "${w}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(w),this.types[w]}getMergedField(w={}){const J=this.getType(w.type);if(!J)return;J.defaultOptions&&he(w,J.defaultOptions);const Te=J.extends&&this.getType(J.extends).defaultOptions;Te&&he(w,Te),w?.optionsTypes&&w.optionsTypes.forEach(nt=>{const qe=this.getType(nt).defaultOptions;qe&&he(w,qe)});const zt=this.resolveFieldTypeRef(w);zt?.instance?.defaultOptions&&he(w,zt.instance.defaultOptions),!w.wrappers&&J.wrappers&&(w.wrappers=[...J.wrappers])}resolveFieldTypeRef(w={}){const J=this.getType(w.type);if(!J)return null;if(!J.component||J._componentRef)return J._componentRef;const{_viewContainerRef:Te,_injector:zt}=w.options;if(!Te||!zt)return null;const nt=Te.createComponent(J.component,{injector:zt});rn(J,"_componentRef",nt);try{nt.destroy()}catch(qe){console.error(`An error occurred while destroying the Formly component type "${w.type}"`,qe)}return J._componentRef}setWrapper(w){this.wrappers[w.name]=w,w.types&&w.types.forEach(J=>{this.setTypeWrapper(J,w.name)})}getWrapper(w){if(w instanceof t.DyG)return{component:w,name:w.prototype.constructor.name};if(!this.wrappers[w])throw new Error(`[Formly Error] The wrapper "${w}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[w]}setTypeWrapper(w,J){this.types[w]||(this.types[w]={}),this.types[w].wrappers||(this.types[w].wrappers=[]),-1===this.types[w].wrappers.indexOf(J)&&this.types[w].wrappers.push(J)}setValidator(w){this.validators[w.name]=w}getValidator(w){if(!this.validators[w])throw new Error(`[Formly Error] The validator "${w}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[w]}addValidatorMessage(w,J){this.messages[w]=J}getValidatorMessage(w){return this.messages[w]}setSortedExtensions(w){w.forEach(J=>{const Te=J.priority??1;this.extensionsByPriority[Te]={...this.extensionsByPriority[Te],[J.name]:J.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((J,Te)=>J-Te).reduce((J,Te)=>({...J,...this.extensionsByPriority[Te]}),{})}mergeExtendedType(w){if(!this.types[w].extends)return;const J=this.getType(this.types[w].extends);this.types[w].component||(this.types[w].component=J.component),this.types[w].wrappers||(this.types[w].wrappers=J.wrappers)}}return Ke.\u0275fac=function(w){return new(w||Ke)},Ke.\u0275prov=t.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Xt=(()=>{class Ke{constructor(w,J,Te,zt){this.config=w,this.injector=J,this.viewContainerRef=Te,this.parentForm=zt}buildForm(w,J=[],Te,zt){this.build({fieldGroup:J,model:Te,form:w,options:zt})}build(w){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");w.parent?this._build(w):(this._setOptions(w),function O(Ke,K){const w=Ke._updateTreeValidity.bind(Ke);Ke._updateTreeValidity=()=>{},K(),Ke._updateTreeValidity=w}(w.form,()=>{this._build(w);const J=w.options;J.checkExpressions?.(w,!0),J.detectChanges?.(w)}))}_build(w){if(!w)return;const J=Object.values(this.config.extensions);J.forEach(Te=>Te.prePopulate?.(w)),J.forEach(Te=>Te.onPopulate?.(w)),w.fieldGroup?.forEach(Te=>this._build(Te)),J.forEach(Te=>Te.postPopulate?.(w))}_setOptions(w){w.form=w.form||new i.cw({}),w.model=w.model||{},w.options=w.options||{};const J=w.options;J._viewContainerRef||rn(J,"_viewContainerRef",this.viewContainerRef),J._injector||rn(J,"_injector",this.injector),J.build||(J._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(w)},J.build=(Te=w)=>(this.build(Te),Te)),!J.parentForm&&this.parentForm&&(rn(J,"parentForm",this.parentForm),et(J,["parentForm","submitted"],({firstChange:Te})=>{Te||(J.checkExpressions(w),J.detectChanges(w))}))}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.LFG(Ut),t.LFG(t.zs3),t.LFG(t.s_b,8),t.LFG(i.sg,8))},Ke.\u0275prov=t.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();function _n(Ke,K=!1){const w=Ke.formControl,J=w._fields?w._fields.indexOf(Ke):-1;-1!==J&&w._fields.splice(J,1);const Te=w.parent;if(!Te)return;const zt={emitEvent:K};if(Te instanceof i.Oe){const nt=Te.controls.findIndex(qe=>qe===w);-1!==nt&&Te.removeAt(nt,zt)}else if(Te instanceof i.cw){const nt=de(Ke),qe=nt[nt.length-1];Te.get([qe])===w&&Te.removeControl(qe,zt)}w.setParent(null)}function On(Ke){return Ke.formControl?Ke.formControl:!1===Ke.shareFormControl?null:Ke.form?.get(de(Ke))}function Jt(Ke,K,w=!1){if((K=K||Ke.formControl)._fields||rn(K,"_fields",[]),-1===K._fields.indexOf(Ke)&&K._fields.push(Ke),!Ke.formControl&&K){rn(Ke,"formControl",K),K.setValidators(null),K.setAsyncValidators(null),Ke.props.disabled=!!Ke.props.disabled;const qe=et(Ke,["props","disabled"],({firstChange:rt,currentValue:Rt})=>{rt||(Rt?Ke.formControl.disable():Ke.formControl.enable())});K instanceof i.NI&&K.registerOnDisabledChange(qe.setValue)}if(!Ke.form||!x(Ke))return;let J=Ke.form;const Te=de(Ke),zt=re(Ke);(!Me(K.value)||!Me(zt))&&K.value!==zt&&K instanceof i.NI&&K.patchValue(zt);for(let qe=0;qeYe(K))}let He=(()=>{class Ke{constructor(w){this.ref=w}ngOnChanges(){this.name=this.name||"formly-group"}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(t.Rgc))},Ke.\u0275dir=t.lG2({type:Ke,selectors:[["","formlyTemplate",""]],inputs:{name:["formlyTemplate","name"]},features:[t.TTD]}),Ke})(),Pe=(()=>{class Ke{}return Ke.\u0275fac=function(w){return new(w||Ke)},Ke.\u0275prov=t.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),We=(()=>{class Ke{constructor(w,J,Te,zt,nt){this.config=w,this.renderer=J,this._elementRef=Te,this.hostContainerRef=zt,this.form=nt,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof t.UuU?this.componentRefs[0].location:null}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(w){this.triggerHook("onChanges",w)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(w=>w.unsubscribe()),this.hooksObservers.forEach(w=>w()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(w,J,Te=[]){if(this.containerRef===w&&(this.resetRefs(this.field),this.containerRef.clear(),Te=this.field?.wrappers),Te?.length>0){const[zt,...nt]=Te,{component:qe}=this.config.getWrapper(zt),rt=w.createComponent(qe);this.attachComponentRef(rt,J),et(rt.instance,["fieldComponent"],({currentValue:Rt,previousValue:St,firstChange:gn})=>{if(Rt){if(St&&St._lContainer===Rt._lContainer)return;const Ze=St?St.detach():null;Ze&&!Ze.destroyed?Rt.insert(Ze):this.renderField(Rt,J,nt),!gn&&rt.changeDetectorRef.detectChanges()}})}else if(J?.type){const zt=this.form?.templates?.find(qe=>qe.name===J.type);let nt;if(zt)nt=w.createEmbeddedView(zt.ref,{$implicit:J});else{const{component:qe}=this.config.getType(J.type,!0);nt=w.createComponent(qe)}this.attachComponentRef(nt,J)}}triggerHook(w,J){if(("onInit"===w||"onChanges"===w&&J.field&&!J.field.firstChange)&&(this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[w]&&(!J||J.field)){const Te=this.field.hooks[w](this.field);if((0,v.b)(Te)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(w)){const zt=Te.subscribe();this.hooksObservers.push(()=>zt.unsubscribe())}}"onChanges"===w&&J.field&&(this.resetRefs(J.field.previousValue),this.render())}attachComponentRef(w,J){this.componentRefs.push(w),J._componentRefs.push(w),w instanceof t.UuU&&Object.assign(w.instance,{field:J})}render(){if(this.field){if(!this.field.options)return void(this.detectFieldBuild=!0);this.detectFieldBuild=!1,this.hostObservers.forEach(w=>w.unsubscribe()),this.hostObservers=[et(this.field,["hide"],({firstChange:w,currentValue:J})=>{const Te=this.containerRef;!1===this.config.extras.lazyRender?(w&&this.renderField(Te,this.field),(!w||w&&J)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",J?"none":"")):J?(Te.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(Te,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!w&&this.field.options.detectChanges(this.field)}),et(this.field,["className"],({firstChange:w,currentValue:J})=>{(!w||w&&J)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",J)}),...["touched","pristine","status"].map(w=>et(this.field,["formControl",w],({firstChange:J})=>!J&&yt(this.field)))]}}resetRefs(w){w&&(w._localFields?w._localFields=[]:rn(this.field,"_localFields",[]),w._componentRefs?w._componentRefs=w._componentRefs.filter(J=>-1===this.componentRefs.indexOf(J)):rn(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(w){if(this.valueChangesUnsubscribe(),!w)return()=>{};const J=[bn(w,["props"],()=>w.options.detectChanges(w))];w.options&&J.push(bn(w.options,["formState"],()=>w.options.detectChanges(w)));for(const zt of Object.keys(w._expressions||{})){const nt=et(w,["_expressions",zt],({currentValue:qe,previousValue:rt})=>{rt?.subscription&&(rt.subscription.unsubscribe(),rt.subscription=null),(0,v.b)(qe.value$)&&(qe.subscription=qe.value$.subscribe())});J.push(()=>{w._expressions[zt]?.subscription&&w._expressions[zt].subscription.unsubscribe(),nt.unsubscribe()})}for(const zt of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const nt=et(w,zt,({firstChange:qe})=>!qe&&w.options.detectChanges(w));J.push(()=>nt.unsubscribe())}if(w.formControl&&!w.fieldGroup){const zt=w.formControl;let nt=zt.valueChanges.pipe((0,Y.x)((St,gn)=>!(St!==gn||Array.isArray(St)||gt(St))));zt.value!==re(w)&&(nt=nt.pipe((0,A.O)(zt.value)));const{updateOn:qe,debounce:rt}=w.modelOptions;(!qe||"change"===qe)&&rt?.default>0&&(nt=zt.valueChanges.pipe((0,S.b)(rt.default)));const Rt=nt.subscribe(St=>{zt._fields?.length>1&&zt instanceof i.NI&&zt.patchValue(St,{emitEvent:!1,onlySelf:!0}),w.parsers?.forEach(gn=>St=gn(St)),St===w.formControl.value?(x(w)&&j(w,St),w.options.fieldChanges.next({value:St,field:w,type:"valueChanges"})):w.formControl.setValue(St)});J.push(()=>Rt.unsubscribe())}let Te=[];return et(w,["_localFields"],({currentValue:zt})=>{Te.forEach(nt=>nt()),Te=(zt||[]).map(nt=>this.fieldChanges(nt))}),()=>{J.forEach(zt=>zt()),Te.forEach(zt=>zt())}}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(Ut),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Pe,8))},Ke.\u0275cmp=t.Xpm({type:Ke,selectors:[["formly-field"]],viewQuery:function(w,J){if(1&w&&t.Gf(ge,7,t.s_b),2&w){let Te;t.iGM(Te=t.CRH())&&(J.viewContainerRef=Te.first)}},inputs:{field:"field"},features:[t.TTD],decls:2,vars:0,consts:[["container",""]],template:function(w,J){1&w&&t.YNc(0,Ce,0,0,"ng-template",null,0,t.W1O)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Ke})(),Be=(()=>{class Ke{constructor(w,J,Te,zt){this.builder=w,this.config=J,this.ngZone=Te,this.fieldTemplates=zt,this.modelChange=new t.vpe,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(w){this.field.form=w}get form(){return this.field.form}set model(w){this.config.extras.immutable&&this._modelChangeValue===w||this.setField({model:w})}get model(){return this.field.model}set fields(w){this.setField({fieldGroup:w})}get fields(){return this.field.fieldGroup}set options(w){this.setField({options:w})}get options(){return this.field.options}set templates(w){this.fieldTemplates.templates=w}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(w){w.fields&&this.form&&Ye(this.form),(w.fields||w.form||w.model&&this._modelChangeValue!==w.model.currentValue)&&(this.valueChangesUnsubscribe(),this.builder.build(this.field),this.valueChangesUnsubscribe=this.valueChanges())}ngOnDestroy(){this.valueChangesUnsubscribe()}checkExpressionChange(){this.field.options.checkExpressions?.(this.field)}valueChanges(){this.valueChangesUnsubscribe();const w=this.field.options.fieldChanges.pipe((0,N.h)(({field:J,type:Te})=>x(J)&&"valueChanges"===Te),(0,V.w)(()=>this.ngZone.onStable.asObservable().pipe((0,U.q)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=Ft(this.model))}));return()=>w.unsubscribe()}setField(w){this.config.extras.immutable?this.field={...this.field,...Ft(w)}:Object.keys(w).forEach(J=>this.field[J]=w[J])}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(Xt),t.Y36(Ut),t.Y36(t.R0b),t.Y36(Pe))},Ke.\u0275cmp=t.Xpm({type:Ke,selectors:[["formly-form"]],contentQueries:function(w,J,Te){if(1&w&&t.Suo(Te,He,4),2&w){let zt;t.iGM(zt=t.CRH())&&(J.templates=zt)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t._Bn([Xt,Pe]),t.TTD],decls:1,vars:1,consts:[[3,"field"]],template:function(w,J){1&w&&t._UZ(0,"formly-field",0),2&w&&t.Q6J("field",J.field)},dependencies:[We],encapsulation:2,changeDetection:0}),Ke})(),xe=(()=>{class Ke{constructor(w,J,Te){this.renderer=w,this.elementRef=J,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(zt,nt)=>{switch(zt){case"focus":return this.onFocus(nt);case"blur":return this.onBlur(nt);case"change":return this.onChange(nt);default:return this.props[zt](this.field,nt)}}},this.document=Te}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(w){w.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(J=>J()),this.uiEvents.events.forEach(J=>{(this.props?.[J]||-1!==["focus","blur","change"].indexOf(J))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,J,Te=>this.uiEvents.callback(J,Te)))}),this.props?.attributes&&et(this.field,["props","attributes"],({currentValue:J,previousValue:Te})=>{Te&&Object.keys(Te).forEach(zt=>this.removeAttribute(zt)),J&&Object.keys(J).forEach(zt=>{null!=J[zt]&&this.setAttribute(zt,J[zt])})}),this.detachElementRef(w.field.previousValue),this.attachElementRef(w.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=et(this.field,["focus"],({currentValue:J})=>{this.toggleFocus(J)}))),w.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const w=this.elementRef.nativeElement;this.uiAttributes=[...ue,"tabindex","placeholder","readonly","disabled","step"].filter(J=>!w.hasAttribute||!w.hasAttribute(J))}this.uiAttributes.forEach(w=>{const J=this.props[w];this.uiAttributesCache[w]!==J&&(!this.props.attributes||!this.props.attributes.hasOwnProperty(w.toLowerCase()))&&(this.uiAttributesCache[w]=J,J||0===J?this.setAttribute(w,!0===J?w:`${J}`):this.removeAttribute(w))})}ngOnDestroy(){this.uiEvents.listeners.forEach(w=>w()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(w){const J=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!J||!J.nativeElement.focus)return;const Te=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:zt})=>this.document.activeElement===zt||zt.contains(this.document.activeElement));w&&!Te?Promise.resolve().then(()=>J.nativeElement.focus()):!w&&Te&&Promise.resolve().then(()=>J.nativeElement.blur())}onFocus(w){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,w)}onBlur(w){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,w)}onHostChange(w){w instanceof Event||this.onChange(w)}onChange(w){this.props.change?.(this.field,w),this.field.formControl?.markAsDirty()}attachElementRef(w){w&&(-1===w._elementRefs?.indexOf(this.elementRef)?w._elementRefs.push(this.elementRef):rn(w,"_elementRefs",[this.elementRef]))}detachElementRef(w){const J=w?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==J&&w._elementRefs.splice(J,1)}setAttribute(w,J){this.renderer.setAttribute(this.elementRef.nativeElement,w,J)}removeAttribute(w){this.renderer.removeAttribute(this.elementRef.nativeElement,w)}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(I.K0))},Ke.\u0275dir=t.lG2({type:Ke,selectors:[["","formlyAttributes",""]],hostBindings:function(w,J){1&w&&t.NdJ("change",function(zt){return J.onHostChange(zt)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[t.TTD]}),Ke})(),te=(()=>{class Ke{constructor(){this.field={}}set controls(w){this.field._localFields=w.map(Te=>Te.control._fields||[]).flat().filter(Te=>Te.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}}return Ke.\u0275fac=function(w){return new(w||Ke)},Ke.\u0275dir=t.lG2({type:Ke,viewQuery:function(w,J){if(1&w&&t.Gf(i.a5,5),2&w){let Te;t.iGM(Te=t.CRH())&&(J.controls=Te)}},inputs:{field:"field"}}),Ke})(),ae=(()=>{class Ke extends te{}return Ke.\u0275fac=function(){let K;return function(J){return(K||(K=t.n5z(Ke)))(J||Ke)}}(),Ke.\u0275cmp=t.Xpm({type:Ke,selectors:[["formly-group"]],hostVars:2,hostBindings:function(w,J){2&w&&t.Tol(J.field.fieldGroupClassName||"")},features:[t.qOj],ngContentSelectors:F,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(w,J){1&w&&(t.F$t(),t.YNc(0,Z,1,1,"formly-field",0),t.Hsn(1)),2&w&&t.Q6J("ngForOf",J.field.fieldGroup)},dependencies:[We,I.sg],encapsulation:2,changeDetection:0}),Ke})(),De=(()=>{class Ke{constructor(w){this.config=w}ngOnChanges(){const w=ue.map(J=>`templateOptions.${J}`);this.errorMessage$=(0,d.T)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,N.h)(({field:J,type:Te,property:zt})=>J===this.field&&"expressionChanges"===Te&&(-1!==zt.indexOf("validation")||-1!==w.indexOf(zt)))):(0,s.of)(null)).pipe((0,A.O)(null),(0,V.w)(()=>(0,v.b)(this.errorMessage)?this.errorMessage:(0,s.of)(this.errorMessage)))}get errorMessage(){const w=this.field.formControl;for(const J in w.errors)if(w.errors.hasOwnProperty(J)){let Te=this.config.getValidatorMessage(J);if(gt(w.errors[J])){if(w.errors[J].errorPath)return;w.errors[J].message&&(Te=w.errors[J].message)}return this.field.validation?.messages?.[J]&&(Te=this.field.validation.messages[J]),this.field.validators?.[J]?.message&&(Te=this.field.validators[J].message),this.field.asyncValidators?.[J]?.message&&(Te=this.field.asyncValidators[J].message),"function"==typeof Te?Te(w.errors[J],this.field):Te}}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(Ut))},Ke.\u0275cmp=t.Xpm({type:Ke,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.TTD],decls:2,vars:3,template:function(w,J){1&w&&(t._uU(0),t.ALo(1,"async")),2&w&&t.Oqu(t.lcZ(1,1,J.errorMessage$))},dependencies:[I.Ov],encapsulation:2,changeDetection:0}),Ke})(),Ge=(()=>{class Ke extends te{onPopulate(w){x(w)&&Jt(w,On(w)||new i.Oe([],{updateOn:w.modelOptions.updateOn})),w.fieldGroup=w.fieldGroup||[];const J=Array.isArray(w.model)?w.model.length:0;if(w.fieldGroup.length>J)for(let Te=w.fieldGroup.length-1;Te>=J;--Te)_n(w.fieldGroup[Te],!0),w.fieldGroup.splice(Te,1);for(let Te=w.fieldGroup.length;Tezt.key=`${nt}`),_n(Te,!0),this._build(),J&&this.formControl.markAsDirty()}_build(){(this.field.formControl._fields??[this.field]).forEach(J=>this.options.build(J)),this.options.fieldChanges.next({field:this.field,value:re(this.field),type:"valueChanges"})}}return Ke.\u0275fac=function(){let K;return function(J){return(K||(K=t.n5z(Ke)))(J||Ke)}}(),Ke.\u0275dir=t.lG2({type:Ke,features:[t.qOj]}),Ke})(),Ct=(()=>{class Ke extends te{set _staticContent(w){this.fieldComponent=w}}return Ke.\u0275fac=function(){let K;return function(J){return(K||(K=t.n5z(Ke)))(J||Ke)}}(),Ke.\u0275dir=t.lG2({type:Ke,viewQuery:function(w,J){if(1&w&&(t.Gf(R,5,t.s_b),t.Gf(R,7,t.s_b)),2&w){let Te;t.iGM(Te=t.CRH())&&(J.fieldComponent=Te.first),t.iGM(Te=t.CRH())&&(J._staticContent=Te.first)}},features:[t.qOj]}),Ke})(),sn=(()=>{class Ke extends te{constructor(w){super(),this.sanitizer=w,this.innerHtml={}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.Y36(k.H7))},Ke.\u0275cmp=t.Xpm({type:Ke,selectors:[["formly-template"]],features:[t.qOj],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(w,J){1&w&&t._UZ(0,"div",0),2&w&&t.Q6J("innerHtml",J.template,t.oJD)},encapsulation:2,changeDetection:0}),Ke})();class it{onPopulate(K){if(K._expressions)return;rn(K,"_expressions",{}),et(K,["hide"],({currentValue:J,firstChange:Te})=>{rn(K,"_hide",!!J),(!Te||Te&&!0===J)&&(K.props.hidden=J,K.options._hiddenFieldsForCheck.push(K))}),K.hideExpression&&et(K,["hideExpression"],({currentValue:J})=>{K._expressions.hide=this.parseExpressions(K,"hide","boolean"==typeof J?()=>J:J)});const w=(J,Te)=>{"string"==typeof Te||It(Te)?K._expressions[J]=this.parseExpressions(K,J,Te):Te instanceof L.y&&(K._expressions[J]={value$:Te.pipe((0,M.b)(zt=>{this.evalExpr(K,J,zt),K.options.detectChanges(K)}))})};K.expressions=K.expressions||{};for(const J of Object.keys(K.expressions))et(K,["expressions",J],({currentValue:Te})=>{w(J,It(Te)?(...zt)=>Te(K,zt[3]):Te)});K.expressionProperties=K.expressionProperties||{};for(const J of Object.keys(K.expressionProperties))et(K,["expressionProperties",J],({currentValue:Te})=>w(J,Te))}postPopulate(K){if(!K.parent&&!K.options.checkExpressions){let w=!1;K.options.checkExpressions=(J,Te)=>{if(w)return;w=!0;const zt=this.checkExpressions(J,Te),nt=K.options;nt._hiddenFieldsForCheck.sort(qe=>qe.hide?-1:1).forEach(qe=>this.changeHideState(qe,qe.hide,!Te)),nt._hiddenFieldsForCheck=[],zt&&(this.checkExpressions(K),K.options&&K.options.detectChanges&&K.options.detectChanges(K)),w=!1},K.options._checkField=(J,Te)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),K.options.checkExpressions(J,Te)}}}parseExpressions(K,w,J){let Te,zt;if(K.parent&&["hide","props.disabled"].includes(w)){const nt=qe=>"hide"===w?qe.hide:qe.props.disabled;Te=()=>{let qe=K.parent;for(;qe.parent&&!nt(qe);)qe=qe.parent;return nt(qe)}}return"string"==typeof(J=J||(()=>!1))&&(J=function yn(Ke,K){try{return Function(...K,`return ${Ke};`)}catch(w){console.error(w)}}(J,["model","formState","field"])),{callback:nt=>{try{const qe=function st(Ke,K,w){return"function"==typeof Ke?Ke.apply(K,w):!!Ke}(Te?(...rt)=>Te(K)||J(...rt):J,{field:K},[K.model,K.options.formState,K,nt]);return!(!nt&&(zt===qe||gt(qe)&&!(0,v.b)(qe)&&JSON.stringify(qe)===JSON.stringify(zt))||(zt=qe,this.evalExpr(K,w,qe),0))}catch(qe){throw qe.message=`[Formly Error] [Expression "${w}"] ${qe.message}`,qe}}}}checkExpressions(K,w=!1){if(!K)return!1;let J=!1;if(K._expressions)for(const Te of Object.keys(K._expressions))K._expressions[Te].callback?.(w)&&(J=!0);return K.fieldGroup?.forEach(Te=>this.checkExpressions(Te,w)&&(J=!0)),J}changeDisabledState(K,w){K.fieldGroup&&K.fieldGroup.filter(J=>!J._expressions.hasOwnProperty("props.disabled")).forEach(J=>this.changeDisabledState(J,w)),x(K)&&K.props.disabled!==w&&(K.props.disabled=w)}changeHideState(K,w,J){if(K.fieldGroup&&K.fieldGroup.filter(Te=>!Te._expressions.hide).forEach(Te=>this.changeHideState(Te,w,J)),K.formControl&&x(K)){rn(K,"_hide",!(!w&&!K.hide));const Te=K.formControl;Te._fields?.length>1&&Nt(Te),!0!==w||Te._fields&&!Te._fields.every(zt=>!!zt._hide)?!1===w&&(K.resetOnHide&&!Oe(K.defaultValue)&&Oe(re(K))&&j(K,K.defaultValue),Jt(K,void 0,!0),K.resetOnHide&&K.fieldArray&&K.fieldGroup?.length!==K.model?.length&&K.options.build(K)):(_n(K,!0),J&&K.resetOnHide&&(j(K,void 0),K.formControl.reset({value:void 0,disabled:K.formControl.disabled}),K.options.fieldChanges.next({value:void 0,field:K,type:"valueChanges"}),K.fieldGroup&&K.formControl instanceof i.Oe&&(K.fieldGroup.length=0)))}K.options.fieldChanges&&K.options.fieldChanges.next({field:K,type:"hidden",value:w})}evalExpr(K,w,J){if(0===w.indexOf("model.")){const Te=w.replace(/^model\./,""),zt=K.fieldGroup?K:K.parent;let nt=K?.key===Te?K.formControl:K.form.get(Te);!nt&&K.get(Te)&&(nt=K.get(Te).formControl),j({key:Te,parent:zt,model:K.model},J),nt&&(!Me(nt.value)||!Me(J))&&nt.value!==J&&nt.patchValue(J)}else{try{let Te=K;const zt=this._evalExpressionPath(K,w),nt=zt.length-1;for(let qe=0;qeTe).forEach(Te=>{const zt=Te.match(/['|"](.*?)['|"]/);zt?J.push(zt[1]):J.push(...Te.split(".").filter(nt=>nt))}),K._expressions[w]&&(K._expressions[w].paths=J),J}}class lt{constructor(K){this.config=K}onPopulate(K){this.initFieldValidation(K,"validators"),this.initFieldValidation(K,"asyncValidators")}initFieldValidation(K,w){const J=[];if("validators"===w&&!(K.hasOwnProperty("fieldGroup")&&!x(K))&&J.push(this.getPredefinedFieldValidation(K)),K[w])for(const Te of Object.keys(K[w]))"validation"===Te?J.push(...K[w].validation.map(zt=>this.wrapNgValidatorFn(K,zt))):J.push(this.wrapNgValidatorFn(K,K[w][Te],Te));rn(K,"_"+w,J)}getPredefinedFieldValidation(K){let w=[];return ue.forEach(J=>et(K,["props",J],({currentValue:Te,firstChange:zt})=>{w=w.filter(nt=>nt!==J),null!=Te&&!1!==Te&&w.push(J),!zt&&K.formControl&&Nt(K.formControl)})),J=>0===w.length?null:i.kI.compose(w.map(Te=>()=>{const zt=K.props[Te];switch(Te){case"required":return i.kI.required(J);case"pattern":return i.kI.pattern(zt)(J);case"minLength":const nt=i.kI.minLength(zt)(J),qe=this.config.getValidatorMessage("minlength")||K.validation?.messages?.minlength?"minlength":"minLength";return nt?{[qe]:nt.minlength}:null;case"maxLength":const rt=i.kI.maxLength(zt)(J),Rt=this.config.getValidatorMessage("maxlength")||K.validation?.messages?.maxlength?"maxlength":"maxLength";return rt?{[Rt]:rt.maxlength}:null;case"min":return i.kI.min(zt)(J);case"max":return i.kI.max(zt)(J);default:return null}}))(J)}wrapNgValidatorFn(K,w,J){let Te;if("string"==typeof w&&(Te=Ft(this.config.getValidator(w))),"object"==typeof w&&w.name&&(Te=Ft(this.config.getValidator(w.name)),w.options&&(Te.options=w.options)),"object"==typeof w&&w.expression){const{expression:zt,...nt}=w;Te={name:J,validation:zt,options:Object.keys(nt).length>0?nt:null}}return"function"==typeof w&&(Te={name:J,validation:w}),zt=>{const nt=Te.validation(zt,K,Te.options);return function _t(Ke){return!!Ke&&"function"==typeof Ke.then}(nt)?nt.then(qe=>this.handleAsyncResult(K,J?!!qe:qe,Te)):(0,v.b)(nt)?nt.pipe((0,e.U)(qe=>this.handleAsyncResult(K,J?!!qe:qe,Te))):this.handleResult(K,J?!!nt:nt,Te)}}handleAsyncResult(K,w,J){return K.options.detectChanges(K),this.handleResult(K,w,J)}handleResult(K,w,{name:J,options:Te}){"boolean"==typeof w&&(w=w?null:{[J]:Te||!0});const zt=K.formControl;return zt?._childrenErrors?.[J]?.(),gt(w)&&Object.keys(w).forEach(nt=>{const qe=w[nt].errorPath?w[nt].errorPath:Te?.errorPath,rt=qe?K.formControl.get(qe):null;if(rt){const{errorPath:Rt,...St}=w[nt];rt.setErrors({...rt.errors||{},[nt]:St}),!zt._childrenErrors&&rn(zt,"_childrenErrors",{}),zt._childrenErrors[nt]=()=>{const{[nt]:gn,...Ze}=rt.errors||{};rt.setErrors(0===Object.keys(Ze).length?null:Ze)}}}),w}}class Pt{prePopulate(K){this.root||(this.root=K),K.parent&&Object.defineProperty(K,"form",{get:()=>K.parent.formControl,configurable:!0})}onPopulate(K){K.hasOwnProperty("fieldGroup")&&!x(K)?rn(K,"formControl",K.form):this.addFormControl(K)}postPopulate(K){if(this.root===K&&(this.root=null,this.setValidators(K)&&K.parent)){let J=K.parent;for(;J;)(x(J)||!J.parent)&&Nt(J.formControl,!0),J=J.parent}}addFormControl(K){let w=On(K);if(!K.fieldArray){if(!w){const J={updateOn:K.modelOptions.updateOn};if(K.fieldGroup)w=new i.cw({},J);else{const Te=x(K)?re(K):K.defaultValue;w=new i.NI({value:Te,disabled:!!K.props.disabled},{...J,initialValueIsDefault:!0})}}Jt(K,w)}}setValidators(K,w=!1){!1===w&&x(K)&&K.props?.disabled&&(w=!0);let J=!1;if(K.fieldGroup?.forEach(Te=>Te&&this.setValidators(Te,w)&&(J=!0)),x(K)||!K.parent||!x(K)&&!K.fieldGroup){const{formControl:Te}=K;if(Te&&(x(K)&&Te instanceof i.NI&&(w&&Te.enabled&&(Te.disable({emitEvent:!1,onlySelf:!0}),J=!0),!w&&Te.disabled&&(Te.enable({emitEvent:!1,onlySelf:!0}),J=!0)),(null===Te.validator||null===Te.asyncValidator)&&(Te.setValidators(()=>{const zt=i.kI.compose(this.mergeValidators(K,"_validators"));return zt?zt(Te):null}),Te.setAsyncValidators(()=>{const zt=i.kI.composeAsync(this.mergeValidators(K,"_asyncValidators"));return zt?zt(Te):(0,s.of)(null)}),J=!0),J)){Nt(Te,!0);let zt=Te.parent;for(let nt=1;nt1?Te._fields.filter(zt=>!zt._hide).forEach(zt=>J.push(...zt[w])):K[w]&&J.push(...K[w]),K.fieldGroup&&K.fieldGroup.filter(zt=>zt?.fieldGroup&&!x(zt)).forEach(zt=>J.push(...this.mergeValidators(zt,w))),J}}class wt{constructor(K){this.config=K,this.formId=0}prePopulate(K){const w=K.parent;this.initRootOptions(K),this.initFieldProps(K),w&&(Object.defineProperty(K,"options",{get:()=>w.options,configurable:!0}),Object.defineProperty(K,"model",{get:()=>x(K)&&K.fieldGroup?re(K):w.model,configurable:!0})),Object.defineProperty(K,"get",{value:J=>Re(K,J),configurable:!0}),this.getFieldComponentInstance(K).prePopulate?.(K)}onPopulate(K){this.initFieldOptions(K),this.getFieldComponentInstance(K).onPopulate?.(K),K.fieldGroup&&K.fieldGroup.forEach((w,J)=>{w&&(Object.defineProperty(w,"parent",{get:()=>K,configurable:!0}),Object.defineProperty(w,"index",{get:()=>J,configurable:!0})),this.formId++})}postPopulate(K){this.getFieldComponentInstance(K).postPopulate?.(K)}initFieldProps(K){K.props??(K.props=K.templateOptions),Object.defineProperty(K,"templateOptions",{get:()=>K.props,set:w=>K.props=w,configurable:!0})}initRootOptions(K){if(K.parent)return;const w=K.options;K.options.formState=K.options.formState||{},w.showError||(w.showError=this.config.extras.showError),w.fieldChanges||rn(w,"fieldChanges",new Q.x),w._hiddenFieldsForCheck||(w._hiddenFieldsForCheck=[]),w._markForCheck=J=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),w.detectChanges(J)},w.detectChanges=J=>{J._componentRefs&&(J.options.checkExpressions(J),yt(J)),J.fieldGroup?.forEach(Te=>Te&&w.detectChanges(Te))},w.resetModel=J=>{J=Ft(J??w._initialModel),K.model&&(Object.keys(K.model).forEach(Te=>delete K.model[Te]),Object.assign(K.model,J||{})),w.build(K),K.form.reset(K.model),w.parentForm&&w.parentForm.control===K.formControl&&(w.parentForm.submitted=!1)},w.updateInitialValue=J=>w._initialModel=Ft(J??K.model),K.options.updateInitialValue()}initFieldOptions(K){if(he(K,{id:P(`formly_${this.formId}`,K,K.index),hooks:{},modelOptions:{},validation:{messages:{}},props:K.type&&x(K)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==K.resetOnHide&&(K.resetOnHide=!0),"formly-template"!==K.type&&(K.template||K.expressions?.template||K.expressionProperties?.template)&&(K.type="formly-template"),!K.type&&K.fieldGroup&&(K.type="formly-group"),K.type&&this.config.getMergedField(K),x(K)&&!Oe(K.defaultValue)&&Oe(re(K))){const w=Te=>Te.hide||Te.expressions?.hide||Te.hideExpression;let J=!K.resetOnHide||!w(K);if(!w(K)&&K.resetOnHide){let Te=K.parent;for(;Te&&!w(Te);)Te=Te.parent;J=!Te||!w(Te)}J&&j(K,K.defaultValue)}K.wrappers=K.wrappers||[]}getFieldComponentInstance(K){const w=()=>{let J=this.config.resolveFieldTypeRef(K);const Te=K._componentRefs?.slice(-1)[0];return Te instanceof t.UuU&&Te?.componentType===J?.componentType&&(J=Te),J?.instance};return K._proxyInstance||rn(K,"_proxyInstance",new Proxy({},{get:(J,Te)=>w()?.[Te],set:(J,Te,zt)=>w()[Te]=zt})),K._proxyInstance}}function Vt(Ke){return{types:[{name:"formly-group",component:ae},{name:"formly-template",component:sn}],extensions:[{name:"core",extension:new wt(Ke),priority:-250},{name:"field-validation",extension:new lt(Ke),priority:-200},{name:"field-form",extension:new Pt,priority:-150},{name:"field-expression",extension:new it,priority:-100}]}}let jt=(()=>{class Ke{constructor(w,J=[]){J&&J.forEach(Te=>w.addConfig(Te))}static forRoot(w={}){return{ngModule:Ke,providers:[{provide:je,multi:!0,useFactory:Vt,deps:[Ut]},{provide:je,useValue:w,multi:!0},Ut,Xt]}}static forChild(w={}){return{ngModule:Ke,providers:[{provide:je,multi:!0,useFactory:Vt,deps:[Ut]},{provide:je,useValue:w,multi:!0},Xt]}}}return Ke.\u0275fac=function(w){return new(w||Ke)(t.LFG(Ut),t.LFG(je,8))},Ke.\u0275mod=t.oAB({type:Ke}),Ke.\u0275inj=t.cJS({imports:[[I.ez]]}),Ke})()},7248:(Ot,be,a)=>{a.d(be,{F:()=>S});var t=a(5879),i=a(6814),v=a(5545),d=a(6223),s=a(3599),L=a(95);function Q(N,V){if(1&N&&(t.ynx(0),t.TgZ(1,"nz-form-label",4),t._uU(2),t.qZA(),t.BQk()),2&N){const U=t.oxw();t.xp6(1),t.Q6J("nzRequired",U.props.required&&!0!==U.props.hideRequiredMarker)("nzFor",U.id),t.xp6(1),t.hij(" ",U.props.label," ")}}function Y(N,V){if(1&N&&t._UZ(0,"formly-validation-message",5),2&N){const U=t.oxw();t.Q6J("field",U.field)}}let A=(()=>{class N extends v.n2{get errorState(){return this.showError?"error":""}}return N.\u0275fac=function(){let V;return function(M){return(V||(V=t.n5z(N)))(M||N)}}(),N.\u0275cmp=t.Xpm({type:N,selectors:[["formly-wrapper-nz-form-field"]],features:[t.qOj],decls:7,vars:3,consts:[[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"nzRequired","nzFor"],[3,"field"]],template:function(U,M){if(1&U&&(t.TgZ(0,"nz-form-item"),t.YNc(1,Q,3,3,"ng-container",0),t.TgZ(2,"nz-form-control",1),t.GkF(3,null,2),t.YNc(5,Y,1,1,"ng-template",null,3,t.W1O),t.qZA()()),2&U){const e=t.MAs(6);t.xp6(1),t.Q6J("ngIf",M.props.label&&!0!==M.props.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",M.errorState)("nzErrorTip",e)}},dependencies:[s.Nx,s.iK,s.Fd,v.M2,L.SK,i.O5,L.t3],encapsulation:2}),N})(),S=(()=>{class N{}return N.\u0275fac=function(U){return new(U||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[[i.ez,d.UX,s.U5,v.X0.forChild({wrappers:[{name:"form-field",component:A}]})]]}),N})()},7459:(Ot,be,a)=>{a.d(be,{u:()=>It});var t=a(5879),i=a(7248),v=a(6814),d=a(5545),s=a(6223),L=a(824),Q=a(8373);function Y(Tt,gt){if(1&Tt&&t._UZ(0,"input",2),2&Tt){const _t=t.oxw();t.Q6J("formControl",_t.formControl)("type",_t.props.type||"text")("formlyAttributes",_t.field)}}function A(Tt,gt){if(1&Tt&&t._UZ(0,"nz-input-number",3),2&Tt){const _t=t.oxw();t.Q6J("formControl",_t.formControl)("formlyAttributes",_t.field)}}let S=(()=>{class Tt extends d.fS{}return Tt.\u0275fac=function(){let gt;return function(Ft){return(gt||(gt=t.n5z(Tt)))(Ft||Tt)}}(),Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["formly-field-nz-input"]],features:[t.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(_t,Ft){if(1&_t&&(t.YNc(0,Y,1,3,"input",0),t.YNc(1,A,1,2,"ng-template",null,1,t.W1O)),2&_t){const rn=t.MAs(2);t.Q6J("ngIf","number"!==Ft.props.type)("ngIfElse",rn)}},dependencies:[Q._V,v.O5,L.Zp,s.Fj,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Tt})(),N=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,L.o7,Q.Zf,i.F,d.X0.forChild({types:[{name:"input",component:S,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),Tt})(),V=(()=>{class Tt extends d.fS{}return Tt.\u0275fac=function(){let gt;return function(Ft){return(gt||(gt=t.n5z(Tt)))(Ft||Tt)}}(),Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["formly-field-nz-textarea"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(_t,Ft){1&_t&&t._UZ(0,"textarea",0),2&_t&&t.Q6J("formControl",Ft.formControl)("formlyAttributes",Ft.field)},dependencies:[L.Zp,s.Fj,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Tt})(),U=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,L.o7,i.F,d.X0.forChild({types:[{name:"textarea",component:V,wrappers:["form-field"]}]})]]}),Tt})();var M=a(5592),e=a(5619),I=a(7398),k=a(2181),ge=a(9397);let Ce=(()=>{class Tt{transform(_t,Ft){return _t instanceof M.y?this.dispose():_t=this.observableOf(_t,Ft),_t.pipe((0,I.U)(rn=>this.transformOptions(rn,Ft)))}ngOnDestroy(){this.dispose()}transformOptions(_t,Ft){const rn=this.transformSelectProps(Ft),bn=[],et={};return _t?.forEach(Re=>{const yt=this.transformOption(Re,rn);if(yt.group){const je=et[yt.label];void 0===je?et[yt.label]=bn.push(yt)-1:yt.group.forEach(Ut=>bn[je].group.push(Ut))}else bn.push(yt)}),bn}transformOption(_t,Ft){const rn=Ft.groupProp(_t);return Array.isArray(rn)?{label:Ft.labelProp(_t),group:rn.map(bn=>this.transformOption(bn,Ft))}:(_t={label:Ft.labelProp(_t),value:Ft.valueProp(_t),disabled:!!Ft.disabledProp(_t)},rn?{label:rn,group:[_t]}:_t)}transformSelectProps(_t){const Ft=_t?.props||_t?.templateOptions||{},rn=bn=>"function"==typeof bn?bn:et=>et[bn];return{groupProp:rn(Ft.groupProp||"group"),labelProp:rn(Ft.labelProp||"label"),valueProp:rn(Ft.valueProp||"value"),disabledProp:rn(Ft.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(_t,Ft){return this.dispose(),Ft&&Ft.options&&Ft.options.fieldChanges&&(this._subscription=Ft.options.fieldChanges.pipe((0,k.h)(({property:rn,type:bn,field:et})=>"expressionChanges"===bn&&(0===rn.indexOf("templateOptions.options")||0===rn.indexOf("props.options"))&&et===Ft&&Array.isArray(et.props.options)&&!!this._options),(0,ge.b)(()=>this._options.next(Ft.props.options))).subscribe()),this._options=new e.X(_t),this._options.asObservable()}}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275pipe=t.Yjl({name:"formlySelectOptions",type:Tt,pure:!0}),Tt})(),Z=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({}),Tt})();var F=a(7907);function R(Tt,gt){if(1&Tt&&(t.TgZ(0,"label",2),t._uU(1),t.qZA()),2&Tt){const _t=gt.$implicit;t.Q6J("nzValue",_t.value)("nzDisabled",_t.disabled),t.xp6(1),t.hij(" ",_t.label," ")}}let O=(()=>{class Tt extends d.fS{}return Tt.\u0275fac=function(){let gt;return function(Ft){return(gt||(gt=t.n5z(Tt)))(Ft||Tt)}}(),Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["formly-field-nz-radio"]],features:[t.qOj],decls:4,vars:7,consts:[[3,"formControl","ngModelChange"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(_t,Ft){1&_t&&(t.TgZ(0,"nz-radio-group",0),t.NdJ("ngModelChange",function(bn){return Ft.props.change&&Ft.props.change(Ft.field,bn)}),t.YNc(1,R,2,3,"label",1),t.ALo(2,"async"),t.ALo(3,"formlySelectOptions"),t.qZA()),2&_t&&(t.Q6J("formControl",Ft.formControl),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,2,t.xi3(3,4,Ft.props.options,Ft.field))))},dependencies:[F.Dg,F.Of,s.JJ,s.oH,v.sg,v.Ov,Ce],encapsulation:2,changeDetection:0}),Tt})(),P=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,F.aF,i.F,Z,d.X0.forChild({types:[{name:"radio",component:O,wrappers:["form-field"]}]})]]}),Tt})();var x=a(2612);let de=(()=>{class Tt extends d.fS{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return Tt.\u0275fac=function(){let gt;return function(Ft){return(gt||(gt=t.n5z(Tt)))(Ft||Tt)}}(),Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["formly-field-nz-checkbox"]],features:[t.qOj],decls:2,vars:4,consts:[["nz-checkbox","",3,"nzIndeterminate","formControl","formlyAttributes","ngModelChange"]],template:function(_t,Ft){1&_t&&(t.TgZ(0,"label",0),t.NdJ("ngModelChange",function(bn){return Ft.props.change&&Ft.props.change(Ft.field,bn)}),t._uU(1),t.qZA()),2&_t&&(t.Q6J("nzIndeterminate",Ft.props.indeterminate&&null==Ft.formControl.value)("formControl",Ft.formControl)("formlyAttributes",Ft.field),t.xp6(1),t.hij(" ",Ft.props.label," "))},dependencies:[x.Ie,s.JJ,s.oH,d.JD],encapsulation:2,changeDetection:0}),Tt})(),ue=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,x.Wr,i.F,d.X0.forChild({types:[{name:"checkbox",component:de,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),Tt})();var j=a(9691);function me(Tt,gt){if(1&Tt&&t._UZ(0,"nz-option",6),2&Tt){const _t=gt.$implicit;t.Q6J("nzValue",_t.value)("nzDisabled",_t.disabled)("nzLabel",_t.label)}}function re(Tt,gt){if(1&Tt&&(t.TgZ(0,"nz-option-group",4),t.YNc(1,me,1,3,"nz-option",5),t.qZA()),2&Tt){const _t=t.oxw().$implicit;t.Q6J("nzLabel",_t.label),t.xp6(1),t.Q6J("ngForOf",_t.group)}}function he(Tt,gt){if(1&Tt&&t._UZ(0,"nz-option",6),2&Tt){const _t=t.oxw().$implicit;t.Q6J("nzValue",_t.value)("nzDisabled",_t.disabled)("nzLabel",_t.label)}}function Me(Tt,gt){if(1&Tt&&(t.ynx(0),t.YNc(1,re,2,2,"nz-option-group",2),t.YNc(2,he,1,3,"nz-option",3),t.BQk()),2&Tt){const _t=gt.$implicit;t.xp6(1),t.Q6J("ngIf",_t.group),t.xp6(1),t.Q6J("ngIf",!_t.group)}}let Oe=(()=>{class Tt extends d.fS{}return Tt.\u0275fac=function(){let gt;return function(Ft){return(gt||(gt=t.n5z(Tt)))(Ft||Tt)}}(),Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["formly-field-nz-select"]],features:[t.qOj],decls:4,vars:12,consts:[[3,"nzPlaceHolder","formControl","formlyAttributes","nzMode","ngModelChange"],[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(_t,Ft){1&_t&&(t.TgZ(0,"nz-select",0),t.NdJ("ngModelChange",function(bn){return Ft.props.change&&Ft.props.change(Ft.field,bn)}),t.YNc(1,Me,3,2,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"formlySelectOptions"),t.qZA()),2&_t&&(t.ekj("ng-dirty",Ft.showError),t.Q6J("nzPlaceHolder",Ft.props.placeholder)("formControl",Ft.formControl)("formlyAttributes",Ft.field)("nzMode",Ft.props.multiple?"multiple":"default"),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,7,t.xi3(3,9,Ft.props.options,Ft.field))))},dependencies:[j.Vq,j.Yy,j.Ip,s.JJ,s.oH,d.JD,v.sg,v.O5,v.Ov,Ce],encapsulation:2,changeDetection:0}),Tt})(),kt=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[v.ez,s.UX,j.LV,i.F,Z,d.X0.forChild({types:[{name:"select",component:Oe,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),Tt})(),It=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[[i.F,N,U,P,ue,kt]]}),Tt})()},1823:(Ot,be,a)=>{a.d(be,{B:()=>s});const t=()=>Object.create(null),{forEach:i,slice:v}=Array.prototype,{hasOwnProperty:d}=Object.prototype;class s{constructor(Y=!0,A=t){this.weakness=Y,this.makeData=A}lookup(...Y){return this.lookupArray(Y)}lookupArray(Y){let A=this;return i.call(Y,S=>A=A.getChildTrie(S)),d.call(A,"data")?A.data:A.data=this.makeData(v.call(Y))}peek(...Y){return this.peekArray(Y)}peekArray(Y){let A=this;for(let S=0,N=Y.length;A&&S{a.d(be,{BV:()=>dr,zu:()=>lo,_M:()=>Jo,VG:()=>qo,mm:()=>ji,AE:()=>Ti,Ps:()=>Yn});var t=a(7691),i=a(5879),v=a(5592),d=a(1954),L=a(2631);const Y=new class Q extends L.v{}(class s extends d.o{constructor(se,we){super(se,we),this.scheduler=se,this.work=we}schedule(se,we=0){return we>0?super.schedule(se,we):(this.delay=we,this.state=se,this.scheduler.flush(this),this)}execute(se,we){return we>0||this.closed?super.execute(se,we):this._execute(se,we)}requestAsyncId(se,we,Qe=0){return null!=Qe&&Qe>0||null==Qe&&this.delay>0?super.requestAsyncId(se,we,Qe):(se.flush(this),0)}});var S=a(4850),N=a(9666),V=(()=>((V=V||{})[V.loading=1]="loading",V[V.setVariables=2]="setVariables",V[V.fetchMore=3]="fetchMore",V[V.refetch=4]="refetch",V[V.poll=6]="poll",V[V.ready=7]="ready",V[V.error=8]="error",V))();function U(Ue){return!!Ue&&Ue<7}var M=a(655),e=a(3555),I=a(8632),k=I.i.execute,Ce=a(8016),Z=a(2954),F=a(7619),R=function(Ue,se){var we;try{we=JSON.stringify(Ue)}catch(bt){var Qe=__DEV__?new e.ej("Network request failed. ".concat(se," is not serializable: ").concat(bt.message)):new e.ej(24);throw Qe.parseError=bt,Qe}return we},P=a(2794);function kt(Ue){var se={next:function(){return Ue.read()}};return P.DN&&(se[Symbol.asyncIterator]=function(){return this}),se}function It(Ue){var se=Ue;if(function x(Ue){return!!Ue.body}(Ue)&&(se=Ue.body),function ue(Ue){return!(!P.DN||!Ue[Symbol.asyncIterator])}(se))return function he(Ue){var se,we=Ue[Symbol.asyncIterator]();return(se={next:function(){return we.next()}})[Symbol.asyncIterator]=function(){return this},se}(se);if(function de(Ue){return!!Ue.getReader}(se))return kt(se.getReader());if(function j(Ue){return!!Ue.stream}(se))return kt(se.stream().getReader());if(function me(Ue){return!!Ue.arrayBuffer}(se))return function Oe(Ue){var se=!1,we={next:function(){return se?Promise.resolve({value:void 0,done:!0}):(se=!0,new Promise(function(Qe,bt){Ue.then(function(Bt){Qe({value:Bt,done:!1})}).catch(bt)}))}};return P.DN&&(we[Symbol.asyncIterator]=function(){return this}),we}(se.arrayBuffer());if(function re(Ue){return!!Ue.pipe}(se))return function Me(Ue){var se=null,we=null,Qe=!1,bt=[],Bt=[];function tn(Sn){if(!we){if(Bt.length){var dn=Bt.shift();if(Array.isArray(dn)&&dn[0])return dn[0]({value:Sn,done:!1})}bt.push(Sn)}}function fn(Sn){we=Sn,Bt.slice().forEach(function(xn){xn[1](Sn)}),!se||se()}function qt(){Qe=!0,Bt.slice().forEach(function(dn){dn[0]({value:void 0,done:!0})}),!se||se()}se=function(){se=null,Ue.removeListener("data",tn),Ue.removeListener("error",fn),Ue.removeListener("end",qt),Ue.removeListener("finish",qt),Ue.removeListener("close",qt)},Ue.on("data",tn),Ue.on("error",fn),Ue.on("end",qt),Ue.on("finish",qt),Ue.on("close",qt);var Nn={next:function(){return function Cn(){return new Promise(function(Sn,dn){return we?dn(we):bt.length?Sn({value:bt.shift(),done:!1}):Qe?Sn({value:void 0,done:!0}):void Bt.push([Sn,dn])})}()}};return P.DN&&(Nn[Symbol.asyncIterator]=function(){return this}),Nn}(se);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Tt=function(Ue,se,we){var Qe=new Error(we);throw Qe.name="ServerError",Qe.response=Ue,Qe.statusCode=Ue.status,Qe.result=se,Qe},gt=a(1352),_t=Symbol(),et=function(Ue){function se(we){var Qe=we.graphQLErrors,bt=we.protocolErrors,Bt=we.clientErrors,tn=we.networkError,fn=we.errorMessage,qt=we.extraInfo,Cn=Ue.call(this,fn)||this;return Cn.name="ApolloError",Cn.graphQLErrors=Qe||[],Cn.protocolErrors=bt||[],Cn.clientErrors=Bt||[],Cn.networkError=tn||null,Cn.message=fn||function(Ue){var se=(0,M.ev)((0,M.ev)((0,M.ev)([],Ue.graphQLErrors,!0),Ue.clientErrors,!0),Ue.protocolErrors,!0);return Ue.networkError&&se.push(Ue.networkError),se.map(function(we){return(0,gt.s)(we)&&we.message||"Error message not found."}).join("\n")}(Cn),Cn.extraInfo=qt,Cn.__proto__=se.prototype,Cn}return(0,M.ZT)(se,Ue),se}(Error),Re=a(6001),yt=a(6630);function je(Ue){return"incremental"in Ue}function _n(Ue){return(0,gt.s)(Ue)&&"payload"in Ue}function On(Ue,se){var we=Ue,Qe=new yt.w0;return je(se)&&(0,Re.O)(se.incremental)&&se.incremental.forEach(function(bt){for(var Bt=bt.data,tn=bt.path,fn=tn.length-1;fn>=0;--fn){var qt=tn[fn],Nn=isNaN(+qt)?{}:[];Nn[qt]=Bt,Bt=Nn}we=Qe.merge(we,Bt)}),we}var Jt=Object.prototype.hasOwnProperty;function Ye(Ue){var se={};return Ue.split("\n").forEach(function(we){var Qe=we.indexOf(":");if(Qe>-1){var bt=we.slice(0,Qe).trim().toLowerCase(),Bt=we.slice(Qe+1).trim();se[bt]=Bt}}),se}function He(Ue,se){Ue.status>=300&&Tt(Ue,function(){try{return JSON.parse(se)}catch{return se}}(),"Response not successful: Received status code ".concat(Ue.status));try{return JSON.parse(se)}catch(bt){var Qe=bt;throw Qe.name="ServerParseError",Qe.response=Ue,Qe.statusCode=Ue.status,Qe.bodyText=se,Qe}}function Pe(Ue,se){var we,Qe;"AbortError"!==Ue.name&&(Ue.result&&Ue.result.errors&&Ue.result.data&&(null===(we=se.next)||void 0===we||we.call(se,Ue.result)),null===(Qe=se.error)||void 0===Qe||Qe.call(se,Ue))}var te=a(86),Ct={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},sn=function(Ue,se){return se(Ue)};function wt(Ue){return new F.y(function(se){se.error(Ue)})}var Vt=a(8725),jt=(0,e.wY)(function(){return fetch}),Ke=function(Ue){void 0===Ue&&(Ue={});var se=Ue.uri,we=void 0===se?"/graphql":se,Qe=Ue.fetch,bt=Ue.print,Bt=void 0===bt?sn:bt,tn=Ue.includeExtensions,fn=Ue.preserveHeaderCase,qt=Ue.useGETForQueries,Cn=Ue.includeUnusedVariables,Nn=void 0!==Cn&&Cn,Sn=(0,M._T)(Ue,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(Ue){if(!Ue&&typeof fetch>"u")throw __DEV__?new e.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 e.ej(23)}(Qe||jt);var dn={http:{includeExtensions:tn,preserveHeaderCase:fn},options:Sn.fetchOptions,credentials:Sn.credentials,headers:Sn.headers};return new I.i(function(xn){var Qn=function(Ue,se){return Ue.getContext().uri||("function"==typeof se?se(Ue):se||"/graphql")}(xn,we),In=xn.getContext(),Vn={};if(In.clientAwareness){var Un=In.clientAwareness,jn=Un.name,eo=Un.version;jn&&(Vn["apollographql-client-name"]=jn),eo&&(Vn["apollographql-client-version"]=eo)}var To,Co=(0,M.pi)((0,M.pi)({},Vn),In.headers),Kn=function st(Ue,se){for(var we=[],Qe=2;Qe"u")return{controller:!1,signal:!1};var Ue=new AbortController;return{controller:Ue,signal:Ue.signal}}();(To=mi.controller)&&(Fo.signal=mi.signal)}var ke,ii="OperationDefinition"===(ke=(0,Vt.p$)(xn.query)).kind&&"subscription"===ke.operation,gi=(0,Z.FS)(["defer"],xn.query);if(qt&&!xn.query.definitions.some(function(ke){return"OperationDefinition"===ke.kind&&"mutation"===ke.operation})&&(Fo.method="GET"),gi||ii){Fo.headers=Fo.headers||{};var nr="multipart/mixed;";ii&&gi&&__DEV__&&e.kG.warn("Multipart-subscriptions do not support @defer"),ii?nr+="boundary=graphql;subscriptionSpec=1.0,application/json":gi&&(nr+="deferSpec=20220824,application/json"),Fo.headers.accept=nr}if("GET"===Fo.method){var Ai=function Pt(Ue,se){var we=[],Qe=function(Sn,dn){we.push("".concat(Sn,"=").concat(encodeURIComponent(dn)))};if("query"in se&&Qe("query",se.query),se.operationName&&Qe("operationName",se.operationName),se.variables){var bt=void 0;try{bt=R(se.variables,"Variables map")}catch(Sn){return{parseError:Sn}}Qe("variables",bt)}if(se.extensions){var Bt=void 0;try{Bt=R(se.extensions,"Extensions map")}catch(Sn){return{parseError:Sn}}Qe("extensions",Bt)}var tn="",fn=Ue,qt=Ue.indexOf("#");-1!==qt&&(tn=Ue.substr(qt),fn=Ue.substr(0,qt));var Cn=-1===fn.indexOf("?")?"?":"&";return{newURI:fn+Cn+we.join("&")+tn}}(Qn,Mo),Zi=Ai.newURI,hi=Ai.parseError;if(hi)return wt(hi);Qn=Zi}else try{Fo.body=R(Mo,"Payload")}catch(ke){return wt(ke)}return new F.y(function(ke){return(Qe||(0,e.wY)(function(){return fetch})||jt)(Qn,Fo).then(function(W){var Ve;xn.setContext({response:W});var Gt=null===(Ve=W.headers)||void 0===Ve?void 0:Ve.get("content-type");return null!==Gt&&/^multipart\/mixed/i.test(Gt)?function Nt(Ue,se){var we,Qe,bt,Bt,tn;return(0,M.mG)(this,void 0,void 0,function(){var fn,qt,Cn,Nn,Sn,dn,xn,Qn,In,Vn,Un,jn,eo,Co,yo,Kn,Fo,Mo,Go,To,mi,_i,Ao;return(0,M.Jh)(this,function(Lo){switch(Lo.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");fn=new TextDecoder("utf-8"),qt=null===(we=Ue.headers)||void 0===we?void 0:we.get("content-type"),Cn="boundary=",Nn=qt?.includes(Cn)?qt?.substring(qt?.indexOf(Cn)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",Sn="\r\n--".concat(Nn),dn="",xn=It(Ue),Qn=!0,Lo.label=1;case 1:return Qn?[4,xn.next()]:[3,3];case 2:for(In=Lo.sent(),Un=In.done,jn="string"==typeof(Vn=In.value)?Vn:fn.decode(Vn),eo=dn.length-Sn.length+1,Qn=!Un,Co=(dn+=jn).indexOf(Sn,eo);Co>-1;){if(yo=void 0,_i=[dn.slice(0,Co),dn.slice(Co+Sn.length)],dn=_i[1],Kn=(yo=_i[0]).indexOf("\r\n\r\n"),Fo=Ye(yo.slice(0,Kn)),(Mo=Fo["content-type"])&&-1===Mo.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Go=yo.slice(Kn))try{To=He(Ue,Go),Object.keys(To).length>1||"data"in To||"incremental"in To||"errors"in To||"payload"in To?_n(To)?(mi={},"payload"in To&&(mi=(0,M.pi)({},To.payload)),"errors"in To&&(mi=(0,M.pi)((0,M.pi)({},mi),{extensions:(0,M.pi)((0,M.pi)({},"extensions"in mi?mi.extensions:null),(Ao={},Ao[_t]=To.errors,Ao))})),null===(Qe=se.next)||void 0===Qe||Qe.call(se,mi)):null===(bt=se.next)||void 0===bt||bt.call(se,To):1===Object.keys(To).length&&"hasNext"in To&&!To.hasNext&&(null===(Bt=se.complete)||void 0===Bt||Bt.call(se))}catch(Wi){Pe(Wi,se)}Co=dn.indexOf(Sn)}return[3,1];case 3:return null===(tn=se.complete)||void 0===tn||tn.call(se),[2]}})})}(W,ke):function We(Ue,se,we){(function Be(Ue){return function(se){return se.text().then(function(we){return He(se,we)}).then(function(we){return se.status>=300&&Tt(se,we,"Response not successful: Received status code ".concat(se.status)),!Array.isArray(we)&&!Jt.call(we,"data")&&!Jt.call(we,"errors")&&Tt(se,we,"Server response was missing for query '".concat(Array.isArray(Ue)?Ue.map(function(Qe){return Qe.operationName}):Ue.operationName,"'.")),we})}})(se)(Ue).then(function(Qe){var bt,Bt;null===(bt=we.next)||void 0===bt||bt.call(we,Qe),null===(Bt=we.complete)||void 0===Bt||Bt.call(we)}).catch(function(Qe){return Pe(Qe,we)})}(W,xn,ke)}).catch(function(W){return Pe(W,ke)}),function(){To&&To.abort()}})})},K=function(Ue){function se(we){void 0===we&&(we={});var Qe=Ue.call(this,Ke(we).request)||this;return Qe.options=we,Qe}return(0,M.ZT)(se,Ue),se}(I.i),w=a(692),J=a(1789);function Te(Ue,se,we){return new F.y(function(Qe){var bt=Qe.next,Bt=Qe.error,tn=Qe.complete,fn=0,qt=!1,Cn={then:function(xn){return new Promise(function(Qn){return Qn(xn())})}};function Nn(xn,Qn){return xn?function(In){++fn;var Vn=function(){return xn(In)};Cn=Cn.then(Vn,Vn).then(function(Un){--fn,bt&&bt.call(Qe,Un),qt&&Sn.complete()},function(Un){throw--fn,Un}).catch(function(Un){Bt&&Bt.call(Qe,Un)})}:function(In){return Qn&&Qn.call(Qe,In)}}var Sn={next:Nn(se,bt),error:Nn(we,Bt),complete:function(){qt=!0,fn||tn&&tn.call(Qe)}},dn=Ue.subscribe(Sn);return function(){return dn.unsubscribe()}})}function zt(Ue){var se=nt(Ue);return(0,Re.O)(se)}function nt(Ue){var se=(0,Re.O)(Ue.errors)?Ue.errors.slice(0):[];return je(Ue)&&(0,Re.O)(Ue.incremental)&&Ue.incremental.forEach(function(we){we.errors&&se.push.apply(se,we.errors)}),se}var qe=a(6140),rt=a(9173),Rt=a(6726);function St(Ue,se,we){var Qe=[];Ue.forEach(function(bt){return bt[se]&&Qe.push(bt)}),Qe.forEach(function(bt){return bt[se](we)})}function gn(Ue){function se(we){Object.defineProperty(Ue,we,{value:F.y})}return P.aS&&Symbol.species&&se(Symbol.species),se("@@species"),Ue}function Ze(Ue){return Ue&&"function"==typeof Ue.then}var ut=function(Ue){function se(we){var Qe=Ue.call(this,function(bt){return Qe.addObserver(bt),function(){return Qe.removeObserver(bt)}})||this;return Qe.observers=new Set,Qe.promise=new Promise(function(bt,Bt){Qe.resolve=bt,Qe.reject=Bt}),Qe.handlers={next:function(bt){null!==Qe.sub&&(Qe.latest=["next",bt],Qe.notify("next",bt),St(Qe.observers,"next",bt))},error:function(bt){var Bt=Qe.sub;null!==Bt&&(Bt&&setTimeout(function(){return Bt.unsubscribe()}),Qe.sub=null,Qe.latest=["error",bt],Qe.reject(bt),Qe.notify("error",bt),St(Qe.observers,"error",bt))},complete:function(){var Bt=Qe.sub,tn=Qe.sources;if(null!==Bt){var qt=(void 0===tn?[]:tn).shift();qt?Ze(qt)?qt.then(function(Cn){return Qe.sub=Cn.subscribe(Qe.handlers)}):Qe.sub=qt.subscribe(Qe.handlers):(Bt&&setTimeout(function(){return Bt.unsubscribe()}),Qe.sub=null,Qe.latest&&"next"===Qe.latest[0]?Qe.resolve(Qe.latest[1]):Qe.resolve(),Qe.notify("complete"),St(Qe.observers,"complete"))}}},Qe.nextResultListeners=new Set,Qe.cancel=function(bt){Qe.reject(bt),Qe.sources=[],Qe.handlers.complete()},Qe.promise.catch(function(bt){}),"function"==typeof we&&(we=[new F.y(we)]),Ze(we)?we.then(function(bt){return Qe.start(bt)},Qe.handlers.error):Qe.start(we),Qe}return(0,M.ZT)(se,Ue),se.prototype.start=function(we){void 0===this.sub&&(this.sources=Array.from(we),this.handlers.complete())},se.prototype.deliverLastMessage=function(we){if(this.latest){var Qe=this.latest[0],bt=we[Qe];bt&&bt.call(we,this.latest[1]),null===this.sub&&"next"===Qe&&we.complete&&we.complete()}},se.prototype.addObserver=function(we){this.observers.has(we)||(this.deliverLastMessage(we),this.observers.add(we))},se.prototype.removeObserver=function(we){this.observers.delete(we)&&this.observers.size<1&&this.handlers.complete()},se.prototype.notify=function(we,Qe){var bt=this.nextResultListeners;bt.size&&(this.nextResultListeners=new Set,bt.forEach(function(Bt){return Bt(we,Qe)}))},se.prototype.beforeNext=function(we){var Qe=!1;this.nextResultListeners.add(function(bt,Bt){Qe||(Qe=!0,we(bt,Bt))})},se}(F.y);gn(ut);var ce=a(5078),_e=a(9990),mt=Object.assign,Ae=Object.hasOwnProperty,at=function(Ue){function se(we){var Qe=we.queryManager,bt=we.queryInfo,Bt=we.options,tn=Ue.call(this,function(Vn){try{var Un=Vn._subscription._observer;Un&&!Un.error&&(Un.error=un)}catch{}var jn=!tn.observers.size;tn.observers.add(Vn);var eo=tn.last;return eo&&eo.error?Vn.error&&Vn.error(eo.error):eo&&eo.result&&Vn.next&&Vn.next(eo.result),jn&&tn.reobserve().catch(function(){}),function(){tn.observers.delete(Vn)&&!tn.observers.size&&tn.tearDownQuery()}})||this;tn.observers=new Set,tn.subscriptions=new Set,tn.queryInfo=bt,tn.queryManager=Qe,tn.waitForOwnResult=dt(Bt.fetchPolicy),tn.isTornDown=!1;var fn=Qe.defaultOptions.watchQuery,Cn=(void 0===fn?{}:fn).fetchPolicy,Nn=void 0===Cn?"cache-first":Cn,Sn=Bt.fetchPolicy,dn=void 0===Sn?Nn:Sn,xn=Bt.initialFetchPolicy,Qn=void 0===xn?"standby"===dn?Nn:dn:xn;tn.options=(0,M.pi)((0,M.pi)({},Bt),{initialFetchPolicy:Qn,fetchPolicy:dn}),tn.queryId=bt.queryId||Qe.generateQueryId();var In=(0,Vt.$H)(tn.query);return tn.queryName=In&&In.name&&In.name.value,tn}return(0,M.ZT)(se,Ue),Object.defineProperty(se.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),se.prototype.result=function(){var we=this;return new Promise(function(Qe,bt){var Bt={next:function(fn){Qe(fn),we.observers.delete(Bt),we.observers.size||we.queryManager.removeQuery(we.queryId),setTimeout(function(){tn.unsubscribe()},0)},error:bt},tn=we.subscribe(Bt)})},se.prototype.getCurrentResult=function(we){void 0===we&&(we=!0);var Qe=this.getLastResult(!0),bt=this.queryInfo.networkStatus||Qe&&Qe.networkStatus||V.ready,Bt=(0,M.pi)((0,M.pi)({},Qe),{loading:U(bt),networkStatus:bt}),tn=this.options.fetchPolicy,fn=void 0===tn?"cache-first":tn;if(!dt(fn)&&!this.queryManager.transform(this.options.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var qt=this.queryInfo.getDiff();(qt.complete||this.options.returnPartialData)&&(Bt.data=qt.result),(0,w.D)(Bt.data,{})&&(Bt.data=void 0),qt.complete?(delete Bt.partial,qt.complete&&Bt.networkStatus===V.loading&&("cache-first"===fn||"cache-only"===fn)&&(Bt.networkStatus=V.ready,Bt.loading=!1)):Bt.partial=!0,__DEV__&&!qt.complete&&!this.options.partialRefetch&&!Bt.loading&&!Bt.data&&!Bt.error&&Lt(qt.missing)}return we&&this.updateLastResult(Bt),Bt},se.prototype.isDifferentFromLastResult=function(we,Qe){return!this.last||!(0,w.D)(this.last.result,we)||Qe&&!(0,w.D)(this.last.variables,Qe)},se.prototype.getLast=function(we,Qe){var bt=this.last;if(bt&&bt[we]&&(!Qe||(0,w.D)(bt.variables,this.variables)))return bt[we]},se.prototype.getLastResult=function(we){return this.getLast("result",we)},se.prototype.getLastError=function(we){return this.getLast("error",we)},se.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},se.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},se.prototype.refetch=function(we){var Qe,bt={pollInterval:0},Bt=this.options.fetchPolicy;if(bt.fetchPolicy="cache-and-network"===Bt?Bt:"no-cache"===Bt?"no-cache":"network-only",__DEV__&&we&&Ae.call(we,"variables")){var tn=(0,Vt.iW)(this.query),fn=tn.variableDefinitions;(!fn||!fn.some(function(qt){return"variables"===qt.variable.name.value}))&&__DEV__&&e.kG.warn("Called refetch(".concat(JSON.stringify(we),") for query ").concat((null===(Qe=tn.name)||void 0===Qe?void 0:Qe.value)||JSON.stringify(tn),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return we&&!(0,w.D)(this.options.variables,we)&&(bt.variables=this.options.variables=(0,M.pi)((0,M.pi)({},this.options.variables),we)),this.queryInfo.resetLastWrite(),this.reobserve(bt,V.refetch)},se.prototype.fetchMore=function(we){var Qe=this,bt=(0,M.pi)((0,M.pi)({},we.query?we:(0,M.pi)((0,M.pi)((0,M.pi)((0,M.pi)({},this.options),{query:this.query}),we),{variables:(0,M.pi)((0,M.pi)({},this.options.variables),we.variables)})),{fetchPolicy:"no-cache"}),Bt=this.queryManager.generateQueryId(),tn=this.queryInfo,fn=tn.networkStatus;tn.networkStatus=V.fetchMore,bt.notifyOnNetworkStatusChange&&this.observe();var qt=new Set;return this.queryManager.fetchQuery(Bt,bt,V.fetchMore).then(function(Cn){return Qe.queryManager.removeQuery(Bt),tn.networkStatus===V.fetchMore&&(tn.networkStatus=fn),Qe.queryManager.cache.batch({update:function(Nn){var Sn=we.updateQuery;Sn?Nn.updateQuery({query:Qe.query,variables:Qe.variables,returnPartialData:!0,optimistic:!1},function(dn){return Sn(dn,{fetchMoreResult:Cn.data,variables:bt.variables})}):Nn.writeQuery({query:bt.query,variables:bt.variables,data:Cn.data})},onWatchUpdated:function(Nn){qt.add(Nn.query)}}),Cn}).finally(function(){qt.has(Qe.query)||Ht(Qe)})},se.prototype.subscribeToMore=function(we){var Qe=this,bt=this.queryManager.startGraphQLSubscription({query:we.document,variables:we.variables,context:we.context}).subscribe({next:function(Bt){var tn=we.updateQuery;tn&&Qe.updateQuery(function(fn,qt){return tn(fn,{subscriptionData:Bt,variables:qt.variables})})},error:function(Bt){we.onError?we.onError(Bt):__DEV__&&e.kG.error("Unhandled GraphQL subscription error",Bt)}});return this.subscriptions.add(bt),function(){Qe.subscriptions.delete(bt)&&bt.unsubscribe()}},se.prototype.setOptions=function(we){return this.reobserve(we)},se.prototype.setVariables=function(we){return(0,w.D)(this.variables,we)?this.observers.size?this.result():Promise.resolve():(this.options.variables=we,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:we},V.setVariables):Promise.resolve())},se.prototype.updateQuery=function(we){var Qe=this.queryManager,Bt=we(Qe.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Bt&&(Qe.cache.writeQuery({query:this.options.query,data:Bt,variables:this.variables}),Qe.broadcastQueries())},se.prototype.startPolling=function(we){this.options.pollInterval=we,this.updatePolling()},se.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},se.prototype.applyNextFetchPolicy=function(we,Qe){if(Qe.nextFetchPolicy){var bt=Qe.fetchPolicy,Bt=void 0===bt?"cache-first":bt,tn=Qe.initialFetchPolicy,fn=void 0===tn?Bt:tn;"standby"===Bt||(Qe.fetchPolicy="function"==typeof Qe.nextFetchPolicy?Qe.nextFetchPolicy(Bt,{reason:we,options:Qe,observable:this,initialFetchPolicy:fn}):"variables-changed"===we?fn:Qe.nextFetchPolicy)}return Qe.fetchPolicy},se.prototype.fetch=function(we,Qe){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,we,Qe)},se.prototype.updatePolling=function(){var we=this;if(!this.queryManager.ssrMode){var bt=this.pollingInfo,Bt=this.options.pollInterval;if(!Bt)return void(bt&&(clearTimeout(bt.timeout),delete this.pollingInfo));if(!bt||bt.interval!==Bt){__DEV__?(0,e.kG)(Bt,"Attempted to start a polling query without a polling interval."):(0,e.kG)(Bt,13),(bt||(this.pollingInfo={})).interval=Bt;var fn=function(){we.pollingInfo&&(U(we.queryInfo.networkStatus)?qt():we.reobserve({fetchPolicy:"no-cache"===we.options.initialFetchPolicy?"no-cache":"network-only"},V.poll).then(qt,qt))},qt=function(){var Cn=we.pollingInfo;Cn&&(clearTimeout(Cn.timeout),Cn.timeout=setTimeout(fn,Cn.interval))};qt()}}},se.prototype.updateLastResult=function(we,Qe){return void 0===Qe&&(Qe=this.variables),this.last=(0,M.pi)((0,M.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?we:(0,ce.X)(we),variables:Qe}),(0,Re.O)(we.errors)||delete this.last.error,this.last},se.prototype.reobserveAsConcast=function(we,Qe){var bt=this;this.isTornDown=!1;var Bt=Qe===V.refetch||Qe===V.fetchMore||Qe===V.poll,tn=this.options.variables,fn=this.options.fetchPolicy,qt=(0,_e.o)(this.options,we||{}),Cn=Bt?qt:mt(this.options,qt);Bt||(this.updatePolling(),we&&we.variables&&!(0,w.D)(we.variables,tn)&&"standby"!==Cn.fetchPolicy&&Cn.fetchPolicy===fn&&(this.applyNextFetchPolicy("variables-changed",Cn),void 0===Qe&&(Qe=V.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=dt(Cn.fetchPolicy));var Nn=function(){bt.concast===xn&&(bt.waitForOwnResult=!1)},Sn=Cn.variables&&(0,M.pi)({},Cn.variables),dn=this.fetch(Cn,Qe),xn=dn.concast,In={next:function(Vn){Nn(),bt.reportResult(Vn,Sn)},error:function(Vn){Nn(),bt.reportError(Vn,Sn)}};return!Bt&&dn.fromLink&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=xn,this.observer=In),xn.addObserver(In),xn},se.prototype.reobserve=function(we,Qe){return this.reobserveAsConcast(we,Qe).promise},se.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},se.prototype.reportResult=function(we,Qe){var bt=this.getLastError();(bt||this.isDifferentFromLastResult(we,Qe))&&((bt||!we.partial||this.options.returnPartialData)&&this.updateLastResult(we,Qe),St(this.observers,"next",we))},se.prototype.reportError=function(we,Qe){var bt=(0,M.pi)((0,M.pi)({},this.getLastResult()),{error:we,errors:we.graphQLErrors,networkStatus:V.error,loading:!1});this.updateLastResult(bt,Qe),St(this.observers,"error",this.last.error=we)},se.prototype.hasObservers=function(){return this.observers.size>0},se.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(we){return we.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},se}(F.y);function Ht(Ue){var se=Ue.options,we=se.fetchPolicy,Qe=se.nextFetchPolicy;return"cache-and-network"===we||"network-only"===we?Ue.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=Qe,"function"==typeof Qe?Qe.apply(this,arguments):we}}):Ue.reobserve()}function un(Ue){__DEV__&&e.kG.error("Unhandled error",Ue.message,Ue.stack)}function Lt(Ue){__DEV__&&Ue&&__DEV__&&e.kG.debug("Missing cache result fields: ".concat(JSON.stringify(Ue)),Ue)}function dt(Ue){return"network-only"===Ue||"no-cache"===Ue||"standby"===Ue}gn(at);var ft=a(5560);function ze(Ue){return Ue.kind===ft.h.FIELD||Ue.kind===ft.h.FRAGMENT_SPREAD||Ue.kind===ft.h.INLINE_FRAGMENT}var co=a(7095),_o=a(3088),Yo=function(){function Ue(se){var we=se.cache,Qe=se.client,bt=se.resolvers,Bt=se.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=we,Qe&&(this.client=Qe),bt&&this.addResolvers(bt),Bt&&this.setFragmentMatcher(Bt)}return Ue.prototype.addResolvers=function(se){var we=this;this.resolvers=this.resolvers||{},Array.isArray(se)?se.forEach(function(Qe){we.resolvers=(0,yt.Ee)(we.resolvers,Qe)}):this.resolvers=(0,yt.Ee)(this.resolvers,se)},Ue.prototype.setResolvers=function(se){this.resolvers={},this.addResolvers(se)},Ue.prototype.getResolvers=function(){return this.resolvers||{}},Ue.prototype.runResolvers=function(se){var we=se.document,Qe=se.remoteResult,bt=se.context,Bt=se.variables,tn=se.onlyRunForcedResolvers,fn=void 0!==tn&&tn;return(0,M.mG)(this,void 0,void 0,function(){return(0,M.Jh)(this,function(qt){return we?[2,this.resolveDocument(we,Qe.data,bt,Bt,this.fragmentMatcher,fn).then(function(Cn){return(0,M.pi)((0,M.pi)({},Qe),{data:Cn.result})})]:[2,Qe]})})},Ue.prototype.setFragmentMatcher=function(se){this.fragmentMatcher=se},Ue.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},Ue.prototype.clientQuery=function(se){return(0,Z.FS)(["client"],se)&&this.resolvers?se:null},Ue.prototype.serverQuery=function(se){return(0,qe.ob)(se)},Ue.prototype.prepareContext=function(se){var we=this.cache;return(0,M.pi)((0,M.pi)({},se),{cache:we,getCacheKey:function(Qe){return we.identify(Qe)}})},Ue.prototype.addExportedVariables=function(se,we,Qe){return void 0===we&&(we={}),void 0===Qe&&(Qe={}),(0,M.mG)(this,void 0,void 0,function(){return(0,M.Jh)(this,function(bt){return se?[2,this.resolveDocument(se,this.buildRootValueFromCache(se,we)||{},this.prepareContext(Qe),we).then(function(Bt){return(0,M.pi)((0,M.pi)({},we),Bt.exportedVariables)})]:[2,(0,M.pi)({},we)]})})},Ue.prototype.shouldForceResolvers=function(se){var we=!1;return(0,Ce.Vn)(se,{Directive:{enter:function(Qe){if("client"===Qe.name.value&&Qe.arguments&&(we=Qe.arguments.some(function(bt){return"always"===bt.name.value&&"BooleanValue"===bt.value.kind&&!0===bt.value.value})))return Ce.$_}}}),we},Ue.prototype.buildRootValueFromCache=function(se,we){return this.cache.diff({query:(0,qe.aL)(se),variables:we,returnPartialData:!0,optimistic:!1}).result},Ue.prototype.resolveDocument=function(se,we,Qe,bt,Bt,tn){return void 0===Qe&&(Qe={}),void 0===bt&&(bt={}),void 0===Bt&&(Bt=function(){return!0}),void 0===tn&&(tn=!1),(0,M.mG)(this,void 0,void 0,function(){var fn,qt,Cn,Nn,Sn,dn,xn,Qn,In,Vn;return(0,M.Jh)(this,function(jn){return fn=(0,Vt.p$)(se),qt=(0,Vt.kU)(se),Cn=(0,co.F)(qt),Nn=this.collectSelectionsToResolve(fn,Cn),dn=(Sn=fn.operation)?Sn.charAt(0).toUpperCase()+Sn.slice(1):"Query",Qn=(xn=this).cache,In=xn.client,Vn={fragmentMap:Cn,context:(0,M.pi)((0,M.pi)({},Qe),{cache:Qn,client:In}),variables:bt,fragmentMatcher:Bt,defaultOperationType:dn,exportedVariables:{},selectionsToResolve:Nn,onlyRunForcedResolvers:tn},[2,this.resolveSelectionSet(fn.selectionSet,!1,we,Vn).then(function(eo){return{result:eo,exportedVariables:Vn.exportedVariables}})]})})},Ue.prototype.resolveSelectionSet=function(se,we,Qe,bt){return(0,M.mG)(this,void 0,void 0,function(){var Bt,tn,fn,qt,Nn=this;return(0,M.Jh)(this,function(Sn){return Bt=bt.fragmentMap,tn=bt.context,fn=bt.variables,qt=[Qe],[2,Promise.all(se.selections.map(function(dn){return(0,M.mG)(Nn,void 0,void 0,function(){var xn;return(0,M.Jh)(this,function(In){return(we||bt.selectionsToResolve.has(dn))&&(0,Z.LZ)(dn,fn)?(0,rt.My)(dn)?[2,this.resolveField(dn,we,Qe,bt).then(function(Vn){var Un;typeof Vn<"u"&&qt.push(((Un={})[(0,rt.u2)(dn)]=Vn,Un))})]:((0,rt.Ao)(dn)?xn=dn:(xn=Bt[dn.name.value],__DEV__?(0,e.kG)(xn,"No fragment named ".concat(dn.name.value)):(0,e.kG)(xn,11)),xn&&xn.typeCondition&&bt.fragmentMatcher(Qe,xn.typeCondition.name.value,tn)?[2,this.resolveSelectionSet(xn.selectionSet,we,Qe,bt).then(function(Vn){qt.push(Vn)})]:[2]):[2]})})})).then(function(){return(0,yt.bw)(qt)})]})})},Ue.prototype.resolveField=function(se,we,Qe,bt){return(0,M.mG)(this,void 0,void 0,function(){var Bt,tn,fn,qt,Cn,Nn,Sn,dn,xn,Qn=this;return(0,M.Jh)(this,function(In){return Qe?(Bt=bt.variables,tn=se.name.value,fn=(0,rt.u2)(se),qt=tn!==fn,Cn=Qe[fn]||Qe[tn],Nn=Promise.resolve(Cn),(!bt.onlyRunForcedResolvers||this.shouldForceResolvers(se))&&(Sn=Qe.__typename||bt.defaultOperationType,(dn=this.resolvers&&this.resolvers[Sn])&&(xn=dn[qt?tn:fn])&&(Nn=Promise.resolve(_o.ab.withValue(this.cache,xn,[Qe,(0,rt.NC)(se,Bt),bt.context,{field:se,fragmentMap:bt.fragmentMap}])))),[2,Nn.then(function(Vn){var Un,jn;if(void 0===Vn&&(Vn=Cn),se.directives&&se.directives.forEach(function(Co){"export"===Co.name.value&&Co.arguments&&Co.arguments.forEach(function(yo){"as"===yo.name.value&&"StringValue"===yo.value.kind&&(bt.exportedVariables[yo.value.value]=Vn)})}),!se.selectionSet||null==Vn)return Vn;var eo=null!==(jn=null===(Un=se.directives)||void 0===Un?void 0:Un.some(function(Co){return"client"===Co.name.value}))&&void 0!==jn&&jn;return Array.isArray(Vn)?Qn.resolveSubSelectedArray(se,we||eo,Vn,bt):se.selectionSet?Qn.resolveSelectionSet(se.selectionSet,we||eo,Vn,bt):void 0})]):[2,null]})})},Ue.prototype.resolveSubSelectedArray=function(se,we,Qe,bt){var Bt=this;return Promise.all(Qe.map(function(tn){return null===tn?null:Array.isArray(tn)?Bt.resolveSubSelectedArray(se,we,tn,bt):se.selectionSet?Bt.resolveSelectionSet(se.selectionSet,we,tn,bt):void 0}))},Ue.prototype.collectSelectionsToResolve=function(se,we){var Qe=function(tn){return!Array.isArray(tn)},bt=this.selectionsToResolveCache;return function Bt(tn){if(!bt.has(tn)){var fn=new Set;bt.set(tn,fn),(0,Ce.Vn)(tn,{Directive:function(qt,Cn,Nn,Sn,dn){"client"===qt.name.value&&dn.forEach(function(xn){Qe(xn)&&ze(xn)&&fn.add(xn)})},FragmentSpread:function(qt,Cn,Nn,Sn,dn){var xn=we[qt.name.value];__DEV__?(0,e.kG)(xn,"No fragment named ".concat(qt.name.value)):(0,e.kG)(xn,12);var Qn=Bt(xn);Qn.size>0&&(dn.forEach(function(In){Qe(In)&&ze(In)&&fn.add(In)}),fn.add(qt),Qn.forEach(function(In){fn.add(In)}))}})}return bt.get(tn)}(se)},Ue}(),Ko=new(P.mr?WeakMap:Map);function ui(Ue,se){var we=Ue[se];"function"==typeof we&&(Ue[se]=function(){return Ko.set(Ue,(Ko.get(Ue)+1)%1e15),we.apply(this,arguments)})}function mo(Ue){Ue.notifyTimeout&&(clearTimeout(Ue.notifyTimeout),Ue.notifyTimeout=void 0)}var Xn=function(){function Ue(se,we){void 0===we&&(we=se.generateQueryId()),this.queryId=we,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var Qe=this.cache=se.cache;Ko.has(Qe)||(Ko.set(Qe,0),ui(Qe,"evict"),ui(Qe,"modify"),ui(Qe,"reset"))}return Ue.prototype.init=function(se){var we=se.networkStatus||V.loading;return this.variables&&this.networkStatus!==V.loading&&!(0,w.D)(this.variables,se.variables)&&(we=V.setVariables),(0,w.D)(se.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:se.document,variables:se.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:we}),se.observableQuery&&this.setObservableQuery(se.observableQuery),se.lastRequestId&&(this.lastRequestId=se.lastRequestId),this},Ue.prototype.reset=function(){mo(this),this.dirty=!1},Ue.prototype.getDiff=function(se){void 0===se&&(se=this.variables);var we=this.getDiffOptions(se);if(this.lastDiff&&(0,w.D)(we,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=se);var Qe=this.observableQuery;if(Qe&&"no-cache"===Qe.options.fetchPolicy)return{complete:!1};var bt=this.cache.diff(we);return this.updateLastDiff(bt,we),bt},Ue.prototype.updateLastDiff=function(se,we){this.lastDiff=se?{diff:se,options:we||this.getDiffOptions()}:void 0},Ue.prototype.getDiffOptions=function(se){var we;return void 0===se&&(se=this.variables),{query:this.document,variables:se,returnPartialData:!0,optimistic:!0,canonizeResults:null===(we=this.observableQuery)||void 0===we?void 0:we.options.canonizeResults}},Ue.prototype.setDiff=function(se){var we=this,Qe=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(se),!this.dirty&&!(0,w.D)(Qe&&Qe.result,se&&se.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return we.notify()},0)))},Ue.prototype.setObservableQuery=function(se){var we=this;se!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=se,se?(se.queryInfo=this,this.listeners.add(this.oqListener=function(){we.getDiff().fromOptimisticTransaction?se.observe():Ht(se)})):delete this.oqListener)},Ue.prototype.notify=function(){var se=this;mo(this),this.shouldNotify()&&this.listeners.forEach(function(we){return we(se)}),this.dirty=!1},Ue.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(U(this.networkStatus)&&this.observableQuery){var se=this.observableQuery.options.fetchPolicy;if("cache-only"!==se&&"cache-and-network"!==se)return!1}return!0},Ue.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=Ue.prototype.cancel,this.subscriptions.forEach(function(we){return we.unsubscribe()});var se=this.observableQuery;se&&se.stopPolling()}},Ue.prototype.cancel=function(){},Ue.prototype.updateWatch=function(se){var we=this;void 0===se&&(se=this.variables);var Qe=this.observableQuery;if(!Qe||"no-cache"!==Qe.options.fetchPolicy){var bt=(0,M.pi)((0,M.pi)({},this.getDiffOptions(se)),{watcher:this,callback:function(Bt){return we.setDiff(Bt)}});(!this.lastWatch||!(0,w.D)(bt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=bt))}},Ue.prototype.resetLastWrite=function(){this.lastWrite=void 0},Ue.prototype.shouldWrite=function(se,we){var Qe=this.lastWrite;return!(Qe&&Qe.dmCount===Ko.get(this.cache)&&(0,w.D)(we,Qe.variables)&&(0,w.D)(se.data,Qe.result.data))},Ue.prototype.markResult=function(se,we,Qe,bt){var Bt=this,tn=new yt.w0,fn=(0,Re.O)(se.errors)?se.errors.slice(0):[];if(this.reset(),"incremental"in se&&(0,Re.O)(se.incremental)){var qt=On(this.getDiff().result,se);se.data=qt}else if("hasNext"in se&&se.hasNext){var Cn=this.getDiff();se.data=tn.merge(Cn.result,se.data)}this.graphQLErrors=fn,"no-cache"===Qe.fetchPolicy?this.updateLastDiff({result:se.data,complete:!0},this.getDiffOptions(Qe.variables)):0!==bt&&(di(se,Qe.errorPolicy)?this.cache.performTransaction(function(Nn){if(Bt.shouldWrite(se,Qe.variables))Nn.writeQuery({query:we,data:se.data,variables:Qe.variables,overwrite:1===bt}),Bt.lastWrite={result:se,variables:Qe.variables,dmCount:Ko.get(Bt.cache)};else if(Bt.lastDiff&&Bt.lastDiff.diff.complete)return void(se.data=Bt.lastDiff.diff.result);var Sn=Bt.getDiffOptions(Qe.variables),dn=Nn.diff(Sn);Bt.stopped||Bt.updateWatch(Qe.variables),Bt.updateLastDiff(dn,Sn),dn.complete&&(se.data=dn.result)}):this.lastWrite=void 0)},Ue.prototype.markReady=function(){return this.networkError=null,this.networkStatus=V.ready},Ue.prototype.markError=function(se){return this.networkStatus=V.error,this.lastWrite=void 0,this.reset(),se.graphQLErrors&&(this.graphQLErrors=se.graphQLErrors),se.networkError&&(this.networkError=se.networkError),se},Ue}();function di(Ue,se){void 0===se&&(se="none");var we="ignore"===se||"all"===se,Qe=!zt(Ue);return!Qe&&we&&Ue.data&&(Qe=!0),Qe}var pi=Object.prototype.hasOwnProperty,wo=function(){function Ue(se){var we=se.cache,Qe=se.link,bt=se.defaultOptions,Bt=se.queryDeduplication,tn=void 0!==Bt&&Bt,fn=se.onBroadcast,qt=se.ssrMode,Cn=void 0!==qt&&qt,Nn=se.clientAwareness,Sn=void 0===Nn?{}:Nn,dn=se.localState,xn=se.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(P.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=we,this.link=Qe,this.defaultOptions=bt||Object.create(null),this.queryDeduplication=tn,this.clientAwareness=Sn,this.localState=dn||new Yo({cache:we}),this.ssrMode=Cn,this.assumeImmutableResults=!!xn,(this.onBroadcast=fn)&&(this.mutationStore=Object.create(null))}return Ue.prototype.stop=function(){var se=this;this.queries.forEach(function(we,Qe){se.stopQueryNoBroadcast(Qe)}),this.cancelPendingFetches(__DEV__?new e.ej("QueryManager stopped while query was in flight"):new e.ej(14))},Ue.prototype.cancelPendingFetches=function(se){this.fetchCancelFns.forEach(function(we){return we(se)}),this.fetchCancelFns.clear()},Ue.prototype.mutate=function(se){var we,Qe,bt=se.mutation,Bt=se.variables,tn=se.optimisticResponse,fn=se.updateQueries,qt=se.refetchQueries,Cn=void 0===qt?[]:qt,Nn=se.awaitRefetchQueries,Sn=void 0!==Nn&&Nn,dn=se.update,xn=se.onQueryUpdated,Qn=se.fetchPolicy,In=void 0===Qn?(null===(we=this.defaultOptions.mutate)||void 0===we?void 0:we.fetchPolicy)||"network-only":Qn,Vn=se.errorPolicy,Un=void 0===Vn?(null===(Qe=this.defaultOptions.mutate)||void 0===Qe?void 0:Qe.errorPolicy)||"none":Vn,jn=se.keepRootFields,eo=se.context;return(0,M.mG)(this,void 0,void 0,function(){var Co,yo,Fo,Mo,Go;return(0,M.Jh)(this,function(To){switch(To.label){case 0:return __DEV__?(0,e.kG)(bt,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,e.kG)(bt,15),__DEV__?(0,e.kG)("network-only"===In||"no-cache"===In,"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,e.kG)("network-only"===In||"no-cache"===In,16),Co=this.generateMutationId(),yo=this.transform(bt),Fo=yo.hasClientExports,bt=this.cache.transformForLink(yo.document),Bt=this.getVariables(bt,Bt),Fo?[4,this.localState.addExportedVariables(bt,Bt,eo)]:[3,2];case 1:Bt=To.sent(),To.label=2;case 2:return Mo=this.mutationStore&&(this.mutationStore[Co]={mutation:bt,variables:Bt,loading:!0,error:null}),tn&&this.markMutationOptimistic(tn,{mutationId:Co,document:bt,variables:Bt,fetchPolicy:In,errorPolicy:Un,context:eo,updateQueries:fn,update:dn,keepRootFields:jn}),this.broadcastQueries(),Go=this,[2,new Promise(function(mi,_i){return Te(Go.getObservableFromLink(bt,(0,M.pi)((0,M.pi)({},eo),{optimisticResponse:tn}),Bt,!1),function(Ao){if(zt(Ao)&&"none"===Un)throw new et({graphQLErrors:nt(Ao)});Mo&&(Mo.loading=!1,Mo.error=null);var Lo=(0,M.pi)({},Ao);return"function"==typeof Cn&&(Cn=Cn(Lo)),"ignore"===Un&&zt(Lo)&&delete Lo.errors,Go.markMutationResult({mutationId:Co,result:Lo,document:bt,variables:Bt,fetchPolicy:In,errorPolicy:Un,context:eo,update:dn,updateQueries:fn,awaitRefetchQueries:Sn,refetchQueries:Cn,removeOptimistic:tn?Co:void 0,onQueryUpdated:xn,keepRootFields:jn})}).subscribe({next:function(Ao){Go.broadcastQueries(),(!("hasNext"in Ao)||!1===Ao.hasNext)&&mi(Ao)},error:function(Ao){Mo&&(Mo.loading=!1,Mo.error=Ao),tn&&Go.cache.removeOptimistic(Co),Go.broadcastQueries(),_i(Ao instanceof et?Ao:new et({networkError:Ao}))}})})]}})})},Ue.prototype.markMutationResult=function(se,we){var Qe=this;void 0===we&&(we=this.cache);var bt=se.result,Bt=[],tn="no-cache"===se.fetchPolicy;if(!tn&&di(bt,se.errorPolicy)){if(je(bt)||Bt.push({result:bt.data,dataId:"ROOT_MUTATION",query:se.document,variables:se.variables}),je(bt)&&(0,Re.O)(bt.incremental)){var fn=we.diff({id:"ROOT_MUTATION",query:this.transform(se.document).asQuery,variables:se.variables,optimistic:!1,returnPartialData:!0}),qt=void 0;fn.result&&(qt=On(fn.result,bt)),typeof qt<"u"&&(bt.data=qt,Bt.push({result:qt,dataId:"ROOT_MUTATION",query:se.document,variables:se.variables}))}var Cn=se.updateQueries;Cn&&this.queries.forEach(function(Sn,dn){var xn=Sn.observableQuery,Qn=xn&&xn.queryName;if(Qn&&pi.call(Cn,Qn)){var In=Cn[Qn],Vn=Qe.queries.get(dn),Un=Vn.document,jn=Vn.variables,eo=we.diff({query:Un,variables:jn,returnPartialData:!0,optimistic:!1}),Co=eo.result;if(eo.complete&&Co){var Kn=In(Co,{mutationResult:bt,queryName:Un&&(0,Vt.rY)(Un)||void 0,queryVariables:jn});Kn&&Bt.push({result:Kn,dataId:"ROOT_QUERY",query:Un,variables:jn})}}})}if(Bt.length>0||se.refetchQueries||se.update||se.onQueryUpdated||se.removeOptimistic){var Nn=[];if(this.refetchQueries({updateCache:function(Sn){tn||Bt.forEach(function(In){return Sn.write(In)});var dn=se.update,xn=!function Xt(Ue){return je(Ue)||function Ut(Ue){return"hasNext"in Ue&&"data"in Ue}(Ue)}(bt)||je(bt)&&!bt.hasNext;if(dn){if(!tn){var Qn=Sn.diff({id:"ROOT_MUTATION",query:Qe.transform(se.document).asQuery,variables:se.variables,optimistic:!1,returnPartialData:!0});Qn.complete&&("incremental"in(bt=(0,M.pi)((0,M.pi)({},bt),{data:Qn.result}))&&delete bt.incremental,"hasNext"in bt&&delete bt.hasNext)}xn&&dn(Sn,bt,{context:se.context,variables:se.variables})}!tn&&!se.keepRootFields&&xn&&Sn.modify({id:"ROOT_MUTATION",fields:function(In,Vn){return"__typename"===Vn.fieldName?In:Vn.DELETE}})},include:se.refetchQueries,optimistic:!1,removeOptimistic:se.removeOptimistic,onQueryUpdated:se.onQueryUpdated||null}).forEach(function(Sn){return Nn.push(Sn)}),se.awaitRefetchQueries||se.onQueryUpdated)return Promise.all(Nn).then(function(){return bt})}return Promise.resolve(bt)},Ue.prototype.markMutationOptimistic=function(se,we){var Qe=this,bt="function"==typeof se?se(we.variables):se;return this.cache.recordOptimisticTransaction(function(Bt){try{Qe.markMutationResult((0,M.pi)((0,M.pi)({},we),{result:{data:bt}}),Bt)}catch(tn){__DEV__&&e.kG.error(tn)}},we.mutationId)},Ue.prototype.fetchQuery=function(se,we,Qe){return this.fetchQueryObservable(se,we,Qe).promise},Ue.prototype.getQueryStore=function(){var se=Object.create(null);return this.queries.forEach(function(we,Qe){se[Qe]={variables:we.variables,networkStatus:we.networkStatus,networkError:we.networkError,graphQLErrors:we.graphQLErrors}}),se},Ue.prototype.resetErrors=function(se){var we=this.queries.get(se);we&&(we.networkError=void 0,we.graphQLErrors=[])},Ue.prototype.transform=function(se){var we=this.transformCache;if(!we.has(se)){var Qe=this.cache.transformDocument(se),bt=(0,qe.Fo)(Qe),Bt=this.localState.clientQuery(Qe),tn=bt&&this.localState.serverQuery(bt),fn={document:Qe,hasClientExports:(0,Z.mj)(Qe),hasForcedResolvers:this.localState.shouldForceResolvers(Qe),clientQuery:Bt,serverQuery:tn,defaultVars:(0,Vt.O4)((0,Vt.$H)(Qe)),asQuery:(0,M.pi)((0,M.pi)({},Qe),{definitions:Qe.definitions.map(function(Cn){return"OperationDefinition"===Cn.kind&&"query"!==Cn.operation?(0,M.pi)((0,M.pi)({},Cn),{operation:"query"}):Cn})})},qt=function(Cn){Cn&&!we.has(Cn)&&we.set(Cn,fn)};qt(se),qt(Qe),qt(Bt),qt(tn)}return we.get(se)},Ue.prototype.getVariables=function(se,we){return(0,M.pi)((0,M.pi)({},this.transform(se).defaultVars),we)},Ue.prototype.watchQuery=function(se){typeof(se=(0,M.pi)((0,M.pi)({},se),{variables:this.getVariables(se.query,se.variables)})).notifyOnNetworkStatusChange>"u"&&(se.notifyOnNetworkStatusChange=!1);var we=new Xn(this),Qe=new at({queryManager:this,queryInfo:we,options:se});return this.queries.set(Qe.queryId,we),we.init({document:Qe.query,observableQuery:Qe,variables:Qe.variables}),Qe},Ue.prototype.query=function(se,we){var Qe=this;return void 0===we&&(we=this.generateQueryId()),__DEV__?(0,e.kG)(se.query,"query option is required. You must specify your GraphQL document in the query option."):(0,e.kG)(se.query,17),__DEV__?(0,e.kG)("Document"===se.query.kind,'You must wrap the query string in a "gql" tag.'):(0,e.kG)("Document"===se.query.kind,18),__DEV__?(0,e.kG)(!se.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,e.kG)(!se.returnPartialData,19),__DEV__?(0,e.kG)(!se.pollInterval,"pollInterval option only supported on watchQuery."):(0,e.kG)(!se.pollInterval,20),this.fetchQuery(we,se).finally(function(){return Qe.stopQuery(we)})},Ue.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},Ue.prototype.generateRequestId=function(){return this.requestIdCounter++},Ue.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},Ue.prototype.stopQueryInStore=function(se){this.stopQueryInStoreNoBroadcast(se),this.broadcastQueries()},Ue.prototype.stopQueryInStoreNoBroadcast=function(se){var we=this.queries.get(se);we&&we.stop()},Ue.prototype.clearStore=function(se){return void 0===se&&(se={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new e.ej("Store reset while query was in flight (not completed in link chain)"):new e.ej(21)),this.queries.forEach(function(we){we.observableQuery?we.networkStatus=V.loading:we.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(se)},Ue.prototype.getObservableQueries=function(se){var we=this;void 0===se&&(se="active");var Qe=new Map,bt=new Map,Bt=new Set;return Array.isArray(se)&&se.forEach(function(tn){"string"==typeof tn?bt.set(tn,!1):(0,rt.JW)(tn)?bt.set(we.transform(tn).document,!1):(0,gt.s)(tn)&&tn.query&&Bt.add(tn)}),this.queries.forEach(function(tn,fn){var qt=tn.observableQuery,Cn=tn.document;if(qt){if("all"===se)return void Qe.set(fn,qt);var Nn=qt.queryName;if("standby"===qt.options.fetchPolicy||"active"===se&&!qt.hasObservers())return;("active"===se||Nn&&bt.has(Nn)||Cn&&bt.has(Cn))&&(Qe.set(fn,qt),Nn&&bt.set(Nn,!0),Cn&&bt.set(Cn,!0))}}),Bt.size&&Bt.forEach(function(tn){var fn=(0,Rt.X)("legacyOneTimeQuery"),qt=we.getQuery(fn).init({document:tn.query,variables:tn.variables}),Cn=new at({queryManager:we,queryInfo:qt,options:(0,M.pi)((0,M.pi)({},tn),{fetchPolicy:"network-only"})});(0,e.kG)(Cn.queryId===fn),qt.setObservableQuery(Cn),Qe.set(fn,Cn)}),__DEV__&&bt.size&&bt.forEach(function(tn,fn){tn||__DEV__&&e.kG.warn("Unknown query ".concat("string"==typeof fn?"named ":"").concat(JSON.stringify(fn,null,2)," requested in refetchQueries options.include array"))}),Qe},Ue.prototype.reFetchObservableQueries=function(se){var we=this;void 0===se&&(se=!1);var Qe=[];return this.getObservableQueries(se?"all":"active").forEach(function(bt,Bt){var tn=bt.options.fetchPolicy;bt.resetLastResults(),(se||"standby"!==tn&&"cache-only"!==tn)&&Qe.push(bt.refetch()),we.getQuery(Bt).setDiff(null)}),this.broadcastQueries(),Promise.all(Qe)},Ue.prototype.setObservableQuery=function(se){this.getQuery(se.queryId).setObservableQuery(se)},Ue.prototype.startGraphQLSubscription=function(se){var we=this,Qe=se.query,bt=se.fetchPolicy,Bt=se.errorPolicy,tn=se.variables,fn=se.context,qt=void 0===fn?{}:fn;Qe=this.transform(Qe).document,tn=this.getVariables(Qe,tn);var Cn=function(Sn){return we.getObservableFromLink(Qe,qt,Sn).map(function(dn){"no-cache"!==bt&&(di(dn,Bt)&&we.cache.write({query:Qe,result:dn.data,dataId:"ROOT_SUBSCRIPTION",variables:Sn}),we.broadcastQueries());var xn=zt(dn),Qn=function Ft(Ue){return!!Ue.extensions&&Array.isArray(Ue.extensions[_t])}(dn);if(xn||Qn){var In={};throw xn&&(In.graphQLErrors=dn.errors),Qn&&(In.protocolErrors=dn.extensions[_t]),new et(In)}return dn})};if(this.transform(Qe).hasClientExports){var Nn=this.localState.addExportedVariables(Qe,tn,qt).then(Cn);return new F.y(function(Sn){var dn=null;return Nn.then(function(xn){return dn=xn.subscribe(Sn)},Sn.error),function(){return dn&&dn.unsubscribe()}})}return Cn(tn)},Ue.prototype.stopQuery=function(se){this.stopQueryNoBroadcast(se),this.broadcastQueries()},Ue.prototype.stopQueryNoBroadcast=function(se){this.stopQueryInStoreNoBroadcast(se),this.removeQuery(se)},Ue.prototype.removeQuery=function(se){this.fetchCancelFns.delete(se),this.queries.has(se)&&(this.getQuery(se).stop(),this.queries.delete(se))},Ue.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(se){return se.notify()})},Ue.prototype.getLocalState=function(){return this.localState},Ue.prototype.getObservableFromLink=function(se,we,Qe,bt){var tn,Bt=this;void 0===bt&&(bt=null!==(tn=we?.queryDeduplication)&&void 0!==tn?tn:this.queryDeduplication);var fn,qt=this.transform(se).serverQuery;if(qt){var Nn=this.inFlightLinkObservables,Sn=this.link,dn={query:qt,variables:Qe,operationName:(0,Vt.rY)(qt)||void 0,context:this.prepareContext((0,M.pi)((0,M.pi)({},we),{forceFetch:!bt}))};if(we=dn.context,bt){var xn=Nn.get(qt)||new Map;Nn.set(qt,xn);var Qn=(0,J.B)(Qe);if(!(fn=xn.get(Qn))){var In=new ut([k(Sn,dn)]);xn.set(Qn,fn=In),In.beforeNext(function(){xn.delete(Qn)&&xn.size<1&&Nn.delete(qt)})}}else fn=new ut([k(Sn,dn)])}else fn=new ut([F.y.of({data:{}})]),we=this.prepareContext(we);var Vn=this.transform(se).clientQuery;return Vn&&(fn=Te(fn,function(Un){return Bt.localState.runResolvers({document:Vn,remoteResult:Un,context:we,variables:Qe})})),fn},Ue.prototype.getResultsFromLink=function(se,we,Qe){var bt=se.lastRequestId=this.generateRequestId(),Bt=this.cache.transformForLink(this.transform(se.document).document);return Te(this.getObservableFromLink(Bt,Qe.context,Qe.variables),function(tn){var fn=nt(tn),qt=fn.length>0;if(bt>=se.lastRequestId){if(qt&&"none"===Qe.errorPolicy)throw se.markError(new et({graphQLErrors:fn}));se.markResult(tn,Bt,Qe,we),se.markReady()}var Cn={data:tn.data,loading:!1,networkStatus:V.ready};return qt&&"ignore"!==Qe.errorPolicy&&(Cn.errors=fn,Cn.networkStatus=V.error),Cn},function(tn){var fn=function rn(Ue){return Ue.hasOwnProperty("graphQLErrors")}(tn)?tn:new et({networkError:tn});throw bt>=se.lastRequestId&&se.markError(fn),fn})},Ue.prototype.fetchQueryObservable=function(se,we,Qe){return this.fetchConcastWithInfo(se,we,Qe).concast},Ue.prototype.fetchConcastWithInfo=function(se,we,Qe){var bt=this;void 0===Qe&&(Qe=V.loading);var Kn,Fo,Bt=this.transform(we.query).document,tn=this.getVariables(Bt,we.variables),fn=this.getQuery(se),qt=this.defaultOptions.watchQuery,Cn=we.fetchPolicy,Sn=we.errorPolicy,xn=we.returnPartialData,In=we.notifyOnNetworkStatusChange,Un=we.context,eo=Object.assign({},we,{query:Bt,variables:tn,fetchPolicy:void 0===Cn?qt&&qt.fetchPolicy||"cache-first":Cn,errorPolicy:void 0===Sn?qt&&qt.errorPolicy||"none":Sn,returnPartialData:void 0!==xn&&xn,notifyOnNetworkStatusChange:void 0!==In&&In,context:void 0===Un?{}:Un}),Co=function(Go){eo.variables=Go;var To=bt.fetchQueryByPolicy(fn,eo,Qe);return"standby"!==eo.fetchPolicy&&To.sources.length>0&&fn.observableQuery&&fn.observableQuery.applyNextFetchPolicy("after-fetch",we),To},yo=function(){return bt.fetchCancelFns.delete(se)};if(this.fetchCancelFns.set(se,function(Go){yo(),setTimeout(function(){return Kn.cancel(Go)})}),this.transform(eo.query).hasClientExports)Kn=new ut(this.localState.addExportedVariables(eo.query,eo.variables,eo.context).then(Co).then(function(Go){return Go.sources})),Fo=!0;else{var Mo=Co(eo.variables);Fo=Mo.fromLink,Kn=new ut(Mo.sources)}return Kn.promise.then(yo,yo),{concast:Kn,fromLink:Fo}},Ue.prototype.refetchQueries=function(se){var we=this,Qe=se.updateCache,bt=se.include,Bt=se.optimistic,tn=void 0!==Bt&&Bt,fn=se.removeOptimistic,qt=void 0===fn?tn?(0,Rt.X)("refetchQueries"):void 0:fn,Cn=se.onQueryUpdated,Nn=new Map;bt&&this.getObservableQueries(bt).forEach(function(dn,xn){Nn.set(xn,{oq:dn,lastDiff:we.getQuery(xn).getDiff()})});var Sn=new Map;return Qe&&this.cache.batch({update:Qe,optimistic:tn&&qt||!1,removeOptimistic:qt,onWatchUpdated:function(dn,xn,Qn){var In=dn.watcher instanceof Xn&&dn.watcher.observableQuery;if(In){if(Cn){Nn.delete(In.queryId);var Vn=Cn(In,xn,Qn);return!0===Vn&&(Vn=In.refetch()),!1!==Vn&&Sn.set(In,Vn),Vn}null!==Cn&&Nn.set(In.queryId,{oq:In,lastDiff:Qn,diff:xn})}}}),Nn.size&&Nn.forEach(function(dn,xn){var Un,Qn=dn.oq,In=dn.lastDiff,Vn=dn.diff;if(Cn){if(!Vn){var jn=Qn.queryInfo;jn.reset(),Vn=jn.getDiff()}Un=Cn(Qn,Vn,In)}(!Cn||!0===Un)&&(Un=Qn.refetch()),!1!==Un&&Sn.set(Qn,Un),xn.indexOf("legacyOneTimeQuery")>=0&&we.stopQueryNoBroadcast(xn)}),qt&&this.cache.removeOptimistic(qt),Sn},Ue.prototype.fetchQueryByPolicy=function(se,we,Qe){var bt=this,Bt=we.query,tn=we.variables,fn=we.fetchPolicy,qt=we.refetchWritePolicy,Cn=we.errorPolicy,Nn=we.returnPartialData,Sn=we.context,dn=we.notifyOnNetworkStatusChange,xn=se.networkStatus;se.init({document:this.transform(Bt).document,variables:tn,networkStatus:Qe});var Qn=function(){return se.getDiff(tn)},In=function(Co,yo){void 0===yo&&(yo=se.networkStatus||V.loading);var Kn=Co.result;__DEV__&&!Nn&&!(0,w.D)(Kn,{})&&Lt(Co.missing);var Fo=function(Mo){return F.y.of((0,M.pi)({data:Mo,loading:U(yo),networkStatus:yo},Co.complete?null:{partial:!0}))};return Kn&&bt.transform(Bt).hasForcedResolvers?bt.localState.runResolvers({document:Bt,remoteResult:{data:Kn},context:Sn,variables:tn,onlyRunForcedResolvers:!0}).then(function(Mo){return Fo(Mo.data||void 0)}):"none"===Cn&&yo===V.refetch&&Array.isArray(Co.missing)?Fo(void 0):Fo(Kn)},Vn="no-cache"===fn?0:Qe===V.refetch&&"merge"!==qt?1:2,Un=function(){return bt.getResultsFromLink(se,Vn,{variables:tn,context:Sn,fetchPolicy:fn,errorPolicy:Cn})},jn=dn&&"number"==typeof xn&&xn!==Qe&&U(Qe);switch(fn){default:case"cache-first":return(eo=Qn()).complete?{fromLink:!1,sources:[In(eo,se.markReady())]}:Nn||jn?{fromLink:!0,sources:[In(eo),Un()]}:{fromLink:!0,sources:[Un()]};case"cache-and-network":var eo;return(eo=Qn()).complete||Nn||jn?{fromLink:!0,sources:[In(eo),Un()]}:{fromLink:!0,sources:[Un()]};case"cache-only":return{fromLink:!1,sources:[In(Qn(),se.markReady())]};case"network-only":return jn?{fromLink:!0,sources:[In(Qn()),Un()]}:{fromLink:!0,sources:[Un()]};case"no-cache":return jn?{fromLink:!0,sources:[In(se.getDiff()),Un()]}:{fromLink:!0,sources:[Un()]};case"standby":return{fromLink:!1,sources:[]}}},Ue.prototype.getQuery=function(se){return se&&!this.queries.has(se)&&this.queries.set(se,new Xn(this,se)),this.queries.get(se)},Ue.prototype.prepareContext=function(se){void 0===se&&(se={});var we=this.localState.prepareContext(se);return(0,M.pi)((0,M.pi)({},we),{clientAwareness:this.clientAwareness})},Ue}();function So(Ue,se){return(0,_e.o)(Ue,se,se.variables&&{variables:(0,M.pi)((0,M.pi)({},Ue&&Ue.variables),se.variables)})}var Eo=!1,Pi=function(){function Ue(se){var we=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var Qe=se.uri,tn=se.cache,fn=se.ssrMode,qt=void 0!==fn&&fn,Cn=se.ssrForceFetchDelay,Nn=void 0===Cn?0:Cn,Sn=se.connectToDevTools,dn=void 0===Sn?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:Sn,xn=se.queryDeduplication,Qn=void 0===xn||xn,In=se.defaultOptions,Vn=se.assumeImmutableResults,Un=void 0!==Vn&&Vn,jn=se.resolvers,eo=se.typeDefs,Co=se.fragmentMatcher,yo=se.name,Kn=se.version,Fo=se.link;if(Fo||(Fo=Qe?new K({uri:Qe,credentials:se.credentials,headers:se.headers}):I.i.empty()),!tn)throw __DEV__?new e.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 e.ej(9);if(this.link=Fo,this.cache=tn,this.disableNetworkFetches=qt||Nn>0,this.queryDeduplication=Qn,this.defaultOptions=In||Object.create(null),this.typeDefs=eo,Nn&&setTimeout(function(){return we.disableNetworkFetches=!1},Nn),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),dn&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Eo&&dn&&__DEV__&&(Eo=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var Mo=window.navigator,Go=Mo&&Mo.userAgent,To=void 0;"string"==typeof Go&&(Go.indexOf("Chrome/")>-1?To="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Go.indexOf("Firefox/")>-1&&(To="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),To&&__DEV__&&e.kG.log("Download the Apollo DevTools for a better development experience: "+To)}this.version="3.7.17",this.localState=new Yo({cache:tn,client:this,resolvers:jn,fragmentMatcher:Co}),this.queryManager=new wo({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:Qn,ssrMode:qt,clientAwareness:{name:yo,version:Kn},localState:this.localState,assumeImmutableResults:Un,onBroadcast:dn?function(){we.devToolsHookCb&&we.devToolsHookCb({action:{},state:{queries:we.queryManager.getQueryStore(),mutations:we.queryManager.mutationStore||{}},dataWithOptimisticResults:we.cache.extract(!0)})}:void 0})}return Ue.prototype.stop=function(){this.queryManager.stop()},Ue.prototype.watchQuery=function(se){return this.defaultOptions.watchQuery&&(se=So(this.defaultOptions.watchQuery,se)),this.disableNetworkFetches&&("network-only"===se.fetchPolicy||"cache-and-network"===se.fetchPolicy)&&(se=(0,M.pi)((0,M.pi)({},se),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(se)},Ue.prototype.query=function(se){return this.defaultOptions.query&&(se=So(this.defaultOptions.query,se)),__DEV__?(0,e.kG)("cache-and-network"!==se.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,e.kG)("cache-and-network"!==se.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===se.fetchPolicy&&(se=(0,M.pi)((0,M.pi)({},se),{fetchPolicy:"cache-first"})),this.queryManager.query(se)},Ue.prototype.mutate=function(se){return this.defaultOptions.mutate&&(se=So(this.defaultOptions.mutate,se)),this.queryManager.mutate(se)},Ue.prototype.subscribe=function(se){return this.queryManager.startGraphQLSubscription(se)},Ue.prototype.readQuery=function(se,we){return void 0===we&&(we=!1),this.cache.readQuery(se,we)},Ue.prototype.readFragment=function(se,we){return void 0===we&&(we=!1),this.cache.readFragment(se,we)},Ue.prototype.writeQuery=function(se){var we=this.cache.writeQuery(se);return!1!==se.broadcast&&this.queryManager.broadcastQueries(),we},Ue.prototype.writeFragment=function(se){var we=this.cache.writeFragment(se);return!1!==se.broadcast&&this.queryManager.broadcastQueries(),we},Ue.prototype.__actionHookForDevTools=function(se){this.devToolsHookCb=se},Ue.prototype.__requestRaw=function(se){return k(this.link,se)},Ue.prototype.resetStore=function(){var se=this;return Promise.resolve().then(function(){return se.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(se.resetStoreCallbacks.map(function(we){return we()}))}).then(function(){return se.reFetchObservableQueries()})},Ue.prototype.clearStore=function(){var se=this;return Promise.resolve().then(function(){return se.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(se.clearStoreCallbacks.map(function(we){return we()}))})},Ue.prototype.onResetStore=function(se){var we=this;return this.resetStoreCallbacks.push(se),function(){we.resetStoreCallbacks=we.resetStoreCallbacks.filter(function(Qe){return Qe!==se})}},Ue.prototype.onClearStore=function(se){var we=this;return this.clearStoreCallbacks.push(se),function(){we.clearStoreCallbacks=we.clearStoreCallbacks.filter(function(Qe){return Qe!==se})}},Ue.prototype.reFetchObservableQueries=function(se){return this.queryManager.reFetchObservableQueries(se)},Ue.prototype.refetchQueries=function(se){var we=this.queryManager.refetchQueries(se),Qe=[],bt=[];we.forEach(function(tn,fn){Qe.push(fn),bt.push(tn)});var Bt=Promise.all(bt);return Bt.queries=Qe,Bt.results=bt,Bt.catch(function(tn){__DEV__&&e.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(tn))}),Bt},Ue.prototype.getObservableQueries=function(se){return void 0===se&&(se="active"),this.queryManager.getObservableQueries(se)},Ue.prototype.extract=function(se){return this.cache.extract(se)},Ue.prototype.restore=function(se){return this.cache.restore(se)},Ue.prototype.addResolvers=function(se){this.localState.addResolvers(se)},Ue.prototype.setResolvers=function(se){this.localState.setResolvers(se)},Ue.prototype.getResolvers=function(){return this.localState.getResolvers()},Ue.prototype.setLocalStateFragmentMatcher=function(se){this.localState.setFragmentMatcher(se)},Ue.prototype.setLink=function(se){this.link=this.queryManager.link=se},Ue}(),Xo=a(9377),zi=a(7398),An=a(7921),bi=a(3093);function Si(Ue){return new v.y(se=>(Ue().then(we=>{se.closed||(se.next(we),se.complete())},we=>{se.closed||se.error(we)}),()=>se.unsubscribe()))}class Gi{constructor(se){(0,t.Z)(this,"zone",void 0),(0,t.Z)(this,"now",Date.now?Date.now:()=>+new Date),this.zone=se}schedule(se,we=0,Qe){return this.zone.run(()=>Y.schedule(se,we,Qe))}}function Or(Ue){return Ue[S.L]=()=>Ue,Ue}function Ei(Ue,se){return Ue.pipe((0,bi.Q)(new Gi(se)))}function vr(Ue,se,we){return Ue&&typeof Ue[se]<"u"?Ue[se]:we}class ur{constructor(se,we,Qe){(0,t.Z)(this,"obsQuery",void 0),(0,t.Z)(this,"valueChanges",void 0),(0,t.Z)(this,"queryId",void 0),this.obsQuery=se;const bt=Ei((0,N.D)(Or(this.obsQuery)),we);this.valueChanges=Qe.useInitialLoading?bt.pipe(function Qi(Ue){return function(we){return new v.y(function(bt){const Bt=Ue.getCurrentResult(),{loading:tn,errors:fn,error:qt,partial:Cn,data:Nn}=Bt,{partialRefetch:Sn,fetchPolicy:dn}=Ue.options,xn=fn||qt;return Sn&&Cn&&(!Nn||0===Object.keys(Nn).length)&&"cache-only"!==dn&&!tn&&!xn&&bt.next({...Bt,loading:!0,networkStatus:V.loading}),we.subscribe(bt)})}}(this.obsQuery)):bt,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}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(se){return this.obsQuery.refetch(se)}fetchMore(se){return this.obsQuery.fetchMore(se)}subscribeToMore(se){return this.obsQuery.subscribeToMore(se)}updateQuery(se){return this.obsQuery.updateQuery(se)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(se){return this.obsQuery.startPolling(se)}setOptions(se){return this.obsQuery.setOptions(se)}setVariables(se){return this.obsQuery.setVariables(se)}}const dr=new i.OlP("APOLLO_FLAGS"),lo=new i.OlP("APOLLO_OPTIONS"),Oo=new i.OlP("APOLLO_NAMED_OPTIONS");class Po{constructor(se,we,Qe){(0,t.Z)(this,"ngZone",void 0),(0,t.Z)(this,"flags",void 0),(0,t.Z)(this,"_client",void 0),(0,t.Z)(this,"useInitialLoading",void 0),(0,t.Z)(this,"useMutationLoading",void 0),this.ngZone=se,this.flags=we,this._client=Qe,this.useInitialLoading=vr(we,"useInitialLoading",!1),this.useMutationLoading=vr(we,"useMutationLoading",!1)}watchQuery(se){return new ur(this.ensureClient().watchQuery({...se}),this.ngZone,{useInitialLoading:this.useInitialLoading,...se})}query(se){return Si(()=>this.ensureClient().query({...se}))}mutate(se){return function tr(Ue,se){return se?Ue.pipe((0,An.O)({loading:!0}),(0,zi.U)(we=>({...we,loading:!!we.loading}))):Ue.pipe((0,zi.U)(we=>({...we,loading:!1})))}(Si(()=>this.ensureClient().mutate({...se})),se.useMutationLoading??this.useMutationLoading)}subscribe(se,we){const Qe=(0,N.D)(Or(this.ensureClient().subscribe({...se})));return we&&!0!==we.useZone?Qe:Ei(Qe,this.ngZone)}getClient(){return this.client}setClient(se){this.client=se}get client(){return this._client}set client(se){if(this._client)throw new Error("Client has been already defined");this._client=se}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let Jo=(()=>{class Ue extends Po{constructor(we,Qe,bt,Bt){if(super(we,Bt),(0,t.Z)(this,"_ngZone",void 0),(0,t.Z)(this,"map",new Map),this._ngZone=we,Qe&&this.createDefault(Qe),bt&&"object"==typeof bt)for(let tn in bt)bt.hasOwnProperty(tn)&&this.create(bt[tn],tn)}create(we,Qe){Ro(Qe)?this.createDefault(we):this.createNamed(Qe,we)}default(){return this}use(we){return Ro(we)?this.default():this.map.get(we)}createDefault(we){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Pi(we))}createNamed(we,Qe){if(this.map.has(we))throw new Error(`Client ${we} has been already created`);this.map.set(we,new Po(this._ngZone,this.flags,new Pi(Qe)))}removeClient(we){Ro(we)?this._client=void 0:this.map.delete(we)}}return(0,t.Z)(Ue,"\u0275fac",function(we){return new(we||Ue)(i.LFG(i.R0b),i.LFG(lo,8),i.LFG(Oo,8),i.LFG(dr,8))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})();function Ro(Ue){return!Ue||"default"===Ue}const Wo=[Jo];let qo=(()=>{class Ue{}return(0,t.Z)(Ue,"\u0275fac",function(we){return new(we||Ue)}),(0,t.Z)(Ue,"\u0275mod",i.oAB({type:Ue})),(0,t.Z)(Ue,"\u0275inj",i.cJS({providers:Wo})),Ue})(),Ti=(()=>{class Ue{constructor(we){(0,t.Z)(this,"apollo",void 0),(0,t.Z)(this,"document",void 0),(0,t.Z)(this,"client","default"),this.apollo=we}watch(we,Qe){return this.apollo.use(this.client).watchQuery({...Qe,variables:we,query:this.document})}fetch(we,Qe){return this.apollo.use(this.client).query({...Qe,variables:we,query:this.document})}}return(0,t.Z)(Ue,"\u0275fac",function(we){return new(we||Ue)(i.LFG(Jo))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})(),ji=(()=>{class Ue{constructor(we){(0,t.Z)(this,"apollo",void 0),(0,t.Z)(this,"document",void 0),(0,t.Z)(this,"client","default"),this.apollo=we}mutate(we,Qe){return this.apollo.use(this.client).mutate({...Qe,variables:we,mutation:this.document})}}return(0,t.Z)(Ue,"\u0275fac",function(we){return new(we||Ue)(i.LFG(Jo))}),(0,t.Z)(Ue,"\u0275prov",i.Yz7({token:Ue,factory:Ue.\u0275fac})),Ue})();const Yn=function ei(Ue,...se){return(0,Xo.Ps)(Ue,...se)}},1569:(Ot,be,a)=>{function t(i,v){if(!i)throw new Error(v)}a.d(be,{a:()=>t})},5746:(Ot,be,a)=>{a.d(be,{X:()=>v});const t=10,i=2;function v(S){return d(S,[])}function d(S,N){switch(typeof S){case"string":return JSON.stringify(S);case"function":return S.name?`[function ${S.name}]`:"[function]";case"object":return function s(S,N){if(null===S)return"null";if(N.includes(S))return"[Circular]";const V=[...N,S];if(function L(S){return"function"==typeof S.toJSON}(S)){const U=S.toJSON();if(U!==S)return"string"==typeof U?U:d(U,V)}else if(Array.isArray(S))return function Y(S,N){if(0===S.length)return"[]";if(N.length>i)return"[Array]";const V=Math.min(t,S.length),U=S.length-V,M=[];for(let e=0;e1&&M.push(`... ${U} more items`),"["+M.join(", ")+"]"}(S,V);return function Q(S,N){const V=Object.entries(S);return 0===V.length?"{}":N.length>i?"["+function A(S){const N=Object.prototype.toString.call(S).replace(/^\[object /,"").replace(/]$/,"");if("Object"===N&&"function"==typeof S.constructor){const V=S.constructor.name;if("string"==typeof V&&""!==V)return V}return N}(S)+"]":"{ "+V.map(([M,e])=>M+": "+d(e,N)).join(", ")+" }"}(S,V)}(S,N);default:return String(S)}}},2236:(Ot,be,a)=>{a.d(be,{UG:()=>s,WU:()=>i,Ye:()=>t,h8:()=>v,ku:()=>L});class t{constructor(Y,A,S){this.start=Y.start,this.end=A.end,this.startToken=Y,this.endToken=A,this.source=S}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(Y,A,S,N,V,U){this.kind=Y,this.start=A,this.end=S,this.line=N,this.column=V,this.value=U,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const v={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"]},d=new Set(Object.keys(v));function s(Q){const Y=Q?.kind;return"string"==typeof Y&&d.has(Y)}var L=(()=>((L=L||{}).QUERY="query",L.MUTATION="mutation",L.SUBSCRIPTION="subscription",L))()},7571:(Ot,be,a)=>{a.d(be,{LZ:()=>s,wv:()=>i});var t=a(7116);function i(L){var Q;let Y=Number.MAX_SAFE_INTEGER,A=null,S=-1;for(let V=0;V0===U?V:V.slice(Y)).slice(null!==(Q=A)&&void 0!==Q?Q:0,S+1)}function v(L){let Q=0;for(;Q1&&A.slice(1).every(Ce=>0===Ce.length||(0,t.FD)(Ce.charCodeAt(0))),V=Y.endsWith('\\"""'),U=L.endsWith('"')&&!V,M=L.endsWith("\\"),e=U||M,I=!(null!=Q&&Q.minimize)&&(!S||L.length>70||e||N||V);let k="";const ge=S&&(0,t.FD)(L.charCodeAt(0));return(I&&!ge||N)&&(k+="\n"),k+=Y,(I||e)&&(k+="\n"),'"""'+k+'"""'}},7116:(Ot,be,a)=>{function t(L){return 9===L||32===L}function i(L){return L>=48&&L<=57}function v(L){return L>=97&&L<=122||L>=65&&L<=90}function d(L){return v(L)||95===L}function s(L){return v(L)||i(L)||95===L}a.d(be,{FD:()=>t,HQ:()=>s,LQ:()=>d,X1:()=>i})},5560:(Ot,be,a)=>{a.d(be,{h:()=>t});var t=(()=>((t=t||{}).NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t))()},86:(Ot,be,a)=>{a.d(be,{S:()=>Q});var t=a(7571);const v=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function d(e){return s[e.charCodeAt(0)]}const s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var L=a(8016);function Q(e){return(0,L.Vn)(e,A)}const A={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>S(e.definitions,"\n\n")},OperationDefinition:{leave(e){const I=V("(",S(e.variableDefinitions,", "),")"),k=S([e.operation,S([e.name,I]),S(e.directives," ")]," ");return("query"===k?"":k+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:I,defaultValue:k,directives:ge})=>e+": "+I+V(" = ",k)+V(" ",S(ge," "))},SelectionSet:{leave:({selections:e})=>N(e)},Field:{leave({alias:e,name:I,arguments:k,directives:ge,selectionSet:Ce}){const Z=V("",e,": ")+I;let F=Z+V("(",S(k,", "),")");return F.length>80&&(F=Z+V("(\n",U(S(k,"\n")),"\n)")),S([F,S(ge," "),Ce]," ")}},Argument:{leave:({name:e,value:I})=>e+": "+I},FragmentSpread:{leave:({name:e,directives:I})=>"..."+e+V(" ",S(I," "))},InlineFragment:{leave:({typeCondition:e,directives:I,selectionSet:k})=>S(["...",V("on ",e),S(I," "),k]," ")},FragmentDefinition:{leave:({name:e,typeCondition:I,variableDefinitions:k,directives:ge,selectionSet:Ce})=>`fragment ${e}${V("(",S(k,", "),")")} on ${I} ${V("",S(ge," ")," ")}`+Ce},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:I})=>I?(0,t.LZ)(e):function i(e){return`"${e.replace(v,d)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+S(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+S(e,", ")+"}"},ObjectField:{leave:({name:e,value:I})=>e+": "+I},Directive:{leave:({name:e,arguments:I})=>"@"+e+V("(",S(I,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:I,operationTypes:k})=>V("",e,"\n")+S(["schema",S(I," "),N(k)]," ")},OperationTypeDefinition:{leave:({operation:e,type:I})=>e+": "+I},ScalarTypeDefinition:{leave:({description:e,name:I,directives:k})=>V("",e,"\n")+S(["scalar",I,S(k," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:I,interfaces:k,directives:ge,fields:Ce})=>V("",e,"\n")+S(["type",I,V("implements ",S(k," & ")),S(ge," "),N(Ce)]," ")},FieldDefinition:{leave:({description:e,name:I,arguments:k,type:ge,directives:Ce})=>V("",e,"\n")+I+(M(k)?V("(\n",U(S(k,"\n")),"\n)"):V("(",S(k,", "),")"))+": "+ge+V(" ",S(Ce," "))},InputValueDefinition:{leave:({description:e,name:I,type:k,defaultValue:ge,directives:Ce})=>V("",e,"\n")+S([I+": "+k,V("= ",ge),S(Ce," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:I,interfaces:k,directives:ge,fields:Ce})=>V("",e,"\n")+S(["interface",I,V("implements ",S(k," & ")),S(ge," "),N(Ce)]," ")},UnionTypeDefinition:{leave:({description:e,name:I,directives:k,types:ge})=>V("",e,"\n")+S(["union",I,S(k," "),V("= ",S(ge," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:I,directives:k,values:ge})=>V("",e,"\n")+S(["enum",I,S(k," "),N(ge)]," ")},EnumValueDefinition:{leave:({description:e,name:I,directives:k})=>V("",e,"\n")+S([I,S(k," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:I,directives:k,fields:ge})=>V("",e,"\n")+S(["input",I,S(k," "),N(ge)]," ")},DirectiveDefinition:{leave:({description:e,name:I,arguments:k,repeatable:ge,locations:Ce})=>V("",e,"\n")+"directive @"+I+(M(k)?V("(\n",U(S(k,"\n")),"\n)"):V("(",S(k,", "),")"))+(ge?" repeatable":"")+" on "+S(Ce," | ")},SchemaExtension:{leave:({directives:e,operationTypes:I})=>S(["extend schema",S(e," "),N(I)]," ")},ScalarTypeExtension:{leave:({name:e,directives:I})=>S(["extend scalar",e,S(I," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:I,directives:k,fields:ge})=>S(["extend type",e,V("implements ",S(I," & ")),S(k," "),N(ge)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:I,directives:k,fields:ge})=>S(["extend interface",e,V("implements ",S(I," & ")),S(k," "),N(ge)]," ")},UnionTypeExtension:{leave:({name:e,directives:I,types:k})=>S(["extend union",e,S(I," "),V("= ",S(k," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:I,values:k})=>S(["extend enum",e,S(I," "),N(k)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:I,fields:k})=>S(["extend input",e,S(I," "),N(k)]," ")}};function S(e,I=""){var k;return null!==(k=e?.filter(ge=>ge).join(I))&&void 0!==k?k:""}function N(e){return V("{\n",U(S(e,"\n")),"\n}")}function V(e,I,k=""){return null!=I&&""!==I?e+I+k:""}function U(e){return V(" ",e.replace(/\n/g,"\n "))}function M(e){var I;return null!==(I=e?.some(k=>k.includes("\n")))&&void 0!==I&&I}},9456:(Ot,be,a)=>{a.d(be,{H:()=>d,T:()=>s});var t=a(1569),i=a(5746);const v=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(Q,Y){return Q instanceof Y}:function(Q,Y){if(Q instanceof Y)return!0;if("object"==typeof Q&&null!==Q){var A;const S=Y.prototype[Symbol.toStringTag];if(S===(Symbol.toStringTag in Q?Q[Symbol.toStringTag]:null===(A=Q.constructor)||void 0===A?void 0:A.name)){const V=(0,i.X)(Q);throw new Error(`Cannot use ${S} "${V}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class d{constructor(Q,Y="GraphQL request",A={line:1,column:1}){"string"==typeof Q||(0,t.a)(!1,`Body must be a string. Received: ${(0,i.X)(Q)}.`),this.body=Q,this.name=Y,this.locationOffset=A,this.locationOffset.line>0||(0,t.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,t.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(L){return v(L,d)}},8016:(Ot,be,a)=>{a.d(be,{$_:()=>s,Vn:()=>L});var t=a(1569),i=a(5746),v=a(2236),d=a(5560);const s=Object.freeze({});function L(S,N,V=v.h8){const U=new Map;for(const ue of Object.values(d.h))U.set(ue,Y(N,ue));let M,Z,F,e=Array.isArray(S),I=[S],k=-1,ge=[],Ce=S;const R=[],O=[];do{k++;const ue=k===I.length,j=ue&&0!==ge.length;if(ue){if(Z=0===O.length?void 0:R[R.length-1],Ce=F,F=O.pop(),j)if(e){Ce=Ce.slice();let re=0;for(const[he,Me]of ge){const Oe=he-re;null===Me?(Ce.splice(Oe,1),re++):Ce[Oe]=Me}}else{Ce=Object.defineProperties({},Object.getOwnPropertyDescriptors(Ce));for(const[re,he]of ge)Ce[re]=he}k=M.index,I=M.keys,ge=M.edits,e=M.inArray,M=M.prev}else if(F){if(Z=e?k:I[k],Ce=F[Z],null==Ce)continue;R.push(Z)}let me;if(!Array.isArray(Ce)){var P,x;(0,v.UG)(Ce)||(0,t.a)(!1,`Invalid AST Node: ${(0,i.X)(Ce)}.`);const re=ue?null===(P=U.get(Ce.kind))||void 0===P?void 0:P.leave:null===(x=U.get(Ce.kind))||void 0===x?void 0:x.enter;if(me=re?.call(N,Ce,Z,F,R,O),me===s)break;if(!1===me){if(!ue){R.pop();continue}}else if(void 0!==me&&(ge.push([Z,me]),!ue)){if(!(0,v.UG)(me)){R.pop();continue}Ce=me}}var de;void 0===me&&j&&ge.push([Z,Ce]),ue?R.pop():(M={inArray:e,index:k,keys:I,edits:ge,prev:M},e=Array.isArray(Ce),I=e?Ce:null!==(de=V[Ce.kind])&&void 0!==de?de:[],k=-1,ge=[],F&&O.push(F),F=Ce)}while(void 0!==M);return 0!==ge.length?ge[ge.length-1][1]:S}function Y(S,N){const V=S[N];return"object"==typeof V?V:"function"==typeof V?{enter:V,leave:void 0}:{enter:S.enter,leave:S.leave}}},3903:(Ot,be,a)=>{a.d(be,{L:()=>re,r:()=>me});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(4194),L=a(874),Q=a(7754),Y=a(9388),A=a(6814),S=a(551),N=a(8324);function V(he,Me){1&he&&i.GkF(0)}function U(he,Me){if(1&he&&(i.ynx(0),i.YNc(1,V,1,0,"ng-container",9),i.BQk()),2&he){const Oe=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzIcon)}}function M(he,Me){if(1&he&&i._UZ(0,"span",10),2&he){const Oe=i.oxw(3);i.Q6J("nzType",Oe.nzIconType||Oe.inferredIconType)("nzTheme",Oe.iconTheme)}}function e(he,Me){if(1&he&&(i.TgZ(0,"div",6),i.YNc(1,U,2,1,"ng-container",7),i.YNc(2,M,1,2,"ng-template",null,8,i.W1O),i.qZA()),2&he){const Oe=i.MAs(3),kt=i.oxw(2);i.xp6(1),i.Q6J("ngIf",kt.nzIcon)("ngIfElse",Oe)}}function I(he,Me){if(1&he&&(i.ynx(0),i._uU(1),i.BQk()),2&he){const Oe=i.oxw(4);i.xp6(1),i.Oqu(Oe.nzMessage)}}function k(he,Me){if(1&he&&(i.TgZ(0,"span",14),i.YNc(1,I,2,1,"ng-container",9),i.qZA()),2&he){const Oe=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzMessage)}}function ge(he,Me){if(1&he&&(i.ynx(0),i._uU(1),i.BQk()),2&he){const Oe=i.oxw(4);i.xp6(1),i.Oqu(Oe.nzDescription)}}function Ce(he,Me){if(1&he&&(i.TgZ(0,"span",15),i.YNc(1,ge,2,1,"ng-container",9),i.qZA()),2&he){const Oe=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzDescription)}}function Z(he,Me){if(1&he&&(i.TgZ(0,"div",11),i.YNc(1,k,2,1,"span",12),i.YNc(2,Ce,2,1,"span",13),i.qZA()),2&he){const Oe=i.oxw(2);i.xp6(1),i.Q6J("ngIf",Oe.nzMessage),i.xp6(1),i.Q6J("ngIf",Oe.nzDescription)}}function F(he,Me){if(1&he&&(i.ynx(0),i._uU(1),i.BQk()),2&he){const Oe=i.oxw(3);i.xp6(1),i.Oqu(Oe.nzAction)}}function R(he,Me){if(1&he&&(i.TgZ(0,"div",16),i.YNc(1,F,2,1,"ng-container",9),i.qZA()),2&he){const Oe=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzAction)}}function O(he,Me){1&he&&i._UZ(0,"span",19)}function P(he,Me){if(1&he&&(i.ynx(0),i.TgZ(1,"span",20),i._uU(2),i.qZA(),i.BQk()),2&he){const Oe=i.oxw(4);i.xp6(2),i.Oqu(Oe.nzCloseText)}}function x(he,Me){if(1&he&&(i.ynx(0),i.YNc(1,P,3,1,"ng-container",9),i.BQk()),2&he){const Oe=i.oxw(3);i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzCloseText)}}function de(he,Me){if(1&he){const Oe=i.EpF();i.TgZ(0,"button",17),i.NdJ("click",function(){i.CHM(Oe);const It=i.oxw(2);return i.KtG(It.closeAlert())}),i.YNc(1,O,1,0,"ng-template",null,18,i.W1O),i.YNc(3,x,2,1,"ng-container",7),i.qZA()}if(2&he){const Oe=i.MAs(2),kt=i.oxw(2);i.xp6(3),i.Q6J("ngIf",kt.nzCloseText)("ngIfElse",Oe)}}function ue(he,Me){if(1&he){const Oe=i.EpF();i.TgZ(0,"div",1),i.NdJ("@slideAlertMotion.done",function(){i.CHM(Oe);const It=i.oxw();return i.KtG(It.onFadeAnimationDone())}),i.YNc(1,e,4,2,"div",2),i.YNc(2,Z,3,2,"div",3),i.YNc(3,R,2,1,"div",4),i.YNc(4,de,4,2,"button",5),i.qZA()}if(2&he){const Oe=i.oxw();i.ekj("ant-alert-rtl","rtl"===Oe.dir)("ant-alert-success","success"===Oe.nzType)("ant-alert-info","info"===Oe.nzType)("ant-alert-warning","warning"===Oe.nzType)("ant-alert-error","error"===Oe.nzType)("ant-alert-no-icon",!Oe.nzShowIcon)("ant-alert-banner",Oe.nzBanner)("ant-alert-closable",Oe.nzCloseable)("ant-alert-with-description",!!Oe.nzDescription),i.Q6J("@.disabled",Oe.nzNoAnimation)("@slideAlertMotion",void 0),i.xp6(1),i.Q6J("ngIf",Oe.nzShowIcon),i.xp6(1),i.Q6J("ngIf",Oe.nzMessage||Oe.nzDescription),i.xp6(1),i.Q6J("ngIf",Oe.nzAction),i.xp6(1),i.Q6J("ngIf",Oe.nzCloseable||Oe.nzCloseText)}}const j="alert";let me=(()=>{class he{constructor(Oe,kt,It){this.nzConfigService=Oe,this.cdr=kt,this.directionality=It,this._nzModuleName=j,this.nzAction=null,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.nzIcon=null,this.nzOnClose=new i.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new v.x,this.nzConfigService.getConfigChangeEventForComponent(j).pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(Oe){const{nzShowIcon:kt,nzDescription:It,nzType:Tt,nzBanner:gt}=Oe;if(kt&&(this.isShowIconSet=!0),Tt)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"}It&&(this.iconTheme=this.nzDescription?"outline":"fill"),gt&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return he.\u0275fac=function(Oe){return new(Oe||he)(i.Y36(L.jY),i.Y36(i.sBO),i.Y36(Y.Is,8))},he.\u0275cmp=i.Xpm({type:he,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation",nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[i.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"],["class","ant-alert-icon",4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["class","ant-alert-action",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],[1,"ant-alert-icon"],[4,"ngIf","ngIfElse"],["iconDefaultTemplate",""],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[1,"ant-alert-description"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(Oe,kt){1&Oe&&i.YNc(0,ue,5,24,"div",0),2&Oe&&i.Q6J("ngIf",!kt.closed)},dependencies:[A.O5,S.Ls,N.f],encapsulation:2,data:{animation:[s.Rq]},changeDetection:0}),(0,t.gn)([(0,L.oS)(),(0,Q.yF)()],he.prototype,"nzCloseable",void 0),(0,t.gn)([(0,L.oS)(),(0,Q.yF)()],he.prototype,"nzShowIcon",void 0),(0,t.gn)([(0,Q.yF)()],he.prototype,"nzBanner",void 0),(0,t.gn)([(0,Q.yF)()],he.prototype,"nzNoAnimation",void 0),he})(),re=(()=>{class he{}return he.\u0275fac=function(Oe){return new(Oe||he)},he.\u0275mod=i.oAB({type:he}),he.\u0275inj=i.cJS({imports:[Y.vT,A.ez,S.PV,N.T]}),he})()},5717:(Ot,be,a)=>{a.d(be,{ic:()=>It});var t=a(9388),i=a(9594),v=a(6814),d=a(5879),s=a(331),L=a(8324),Q=a(824),Y=a(8645),A=a(9773),S=a(9397),N=a(5177),V=a(2181),U=a(6028),M=a(8484);const he={provide:a(6223).JU,useExisting:(0,d.Gpc)(()=>Oe),multi:!0};let Oe=(()=>{class Tt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(_t,Ft,rn,bn,et,Re){this.ngZone=_t,this.elementRef=Ft,this.overlay=rn,this.viewContainerRef=bn,this.nzInputGroupWhitSuffixOrPrefixDirective=et,this.document=Re,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new Y.x,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,A.R)(this.destroy$)).subscribe(_t=>{"void"===_t.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(_t){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(_t)))}registerOnChange(_t){this.onChange=_t}registerOnTouched(_t){this.onTouched=_t}setDisabledState(_t){this.elementRef.nativeElement.disabled=_t,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(_t){const Ft=_t.keyCode,rn=Ft===U.LH||Ft===U.JH;Ft===U.hY&&_t.preventDefault(),!this.panelOpen||Ft!==U.hY&&Ft!==U.Mf?this.panelOpen&&Ft===U.K5?this.nzAutocomplete.showPanel&&(_t.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&rn&&this.nzAutocomplete.showPanel&&(_t.stopPropagation(),_t.preventDefault(),Ft===U.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(_t){const Ft=_t.target,rn=this.document;let bn=Ft.value;"number"===Ft.type&&(bn=""===bn?null:parseFloat(bn)),this.previousValue!==bn&&(this.previousValue=bn,this.onChange(bn),this.canOpen()&&rn.activeElement===_t.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,S.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,N.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(_t=>{this.setValueAndClose(_t)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,V.h)(_t=>!this.elementRef.nativeElement.contains(_t.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function Me(){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 M.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,A.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 i.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 _t=[new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(_t).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const _t=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==_t?(this.nzAutocomplete.setActiveItem(_t),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(_t){const Ft=_t.nzValue;this.setTriggerValue(_t.getLabel()),this.onChange(Ft),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(_t){const Ft=this.nzAutocomplete.getOption(_t),rn=Ft?Ft.getLabel():_t;this.elementRef.nativeElement.value=rn??"",this.nzAutocomplete.nzBackfill||(this.previousValue=rn)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const _t=this.elementRef.nativeElement;return!_t.readOnly&&!_t.disabled}}return Tt.\u0275fac=function(_t){return new(_t||Tt)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(i.aV),d.Y36(d.s_b),d.Y36(Q.ke,8),d.Y36(v.K0,8))},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(_t,Ft){1&_t&&d.NdJ("focusin",function(){return Ft.handleFocus()})("blur",function(){return Ft.handleBlur()})("input",function(bn){return Ft.handleInput(bn)})("keydown",function(bn){return Ft.handleKeydown(bn)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[d._Bn([he])]}),Tt})(),It=(()=>{class Tt{}return Tt.\u0275fac=function(_t){return new(_t||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[t.vT,v.ez,i.U8,L.T,s.g,Q.o7]}),Tt})()},6928:(Ot,be,a)=>{a.d(be,{Dz:()=>e,Rt:()=>k});var t=a(655),i=a(5879),v=a(874),d=a(7754),s=a(2831),L=a(6814),Q=a(551),Y=a(9388);const A=["textEl"];function S(ge,Ce){if(1&ge&&i._UZ(0,"span",3),2&ge){const Z=i.oxw();i.Q6J("nzType",Z.nzIcon)}}function N(ge,Ce){if(1&ge){const Z=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(R){i.CHM(Z);const O=i.oxw();return i.KtG(O.imgError(R))}),i.qZA()}if(2&ge){const Z=i.oxw();i.Q6J("src",Z.nzSrc,i.LSH),i.uIk("srcset",Z.nzSrcSet)("alt",Z.nzAlt)}}function V(ge,Ce){if(1&ge&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&ge){const Z=i.oxw();i.xp6(2),i.Oqu(Z.nzText)}}let e=(()=>{class ge{constructor(Z,F,R,O,P){this.nzConfigService=Z,this.elementRef=F,this.cdr=R,this.platform=O,this.ngZone=P,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.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(Z){this.nzError.emit(Z),Z.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 Z=this.textEl.nativeElement,F=Z.offsetWidth,R=this.el.getBoundingClientRect().width,O=2*this.nzGap{setTimeout(()=>{this.calcStringSize()})})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return ge.\u0275fac=function(Z){return new(Z||ge)(i.Y36(v.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(s.t4),i.Y36(i.R0b))},ge.\u0275cmp=i.Xpm({type:ge,selectors:[["nz-avatar"]],viewQuery:function(Z,F){if(1&Z&&i.Gf(A,5),2&Z){let R;i.iGM(R=i.CRH())&&(F.textEl=R.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(Z,F){2&Z&&(i.Udp("width",F.customSize)("height",F.customSize)("line-height",F.customSize)("font-size",F.hasIcon&&F.customSize?F.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===F.nzSize)("ant-avatar-sm","small"===F.nzSize)("ant-avatar-square","square"===F.nzShape)("ant-avatar-circle","circle"===F.nzShape)("ant-avatar-icon",F.nzIcon)("ant-avatar-image",F.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",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string"],["textEl",""]],template:function(Z,F){1&Z&&(i.YNc(0,S,1,1,"span",0),i.YNc(1,N,1,3,"img",1),i.YNc(2,V,3,1,"span",2)),2&Z&&(i.Q6J("ngIf",F.nzIcon&&F.hasIcon),i.xp6(1),i.Q6J("ngIf",F.nzSrc&&F.hasSrc),i.xp6(1),i.Q6J("ngIf",F.nzText&&F.hasText))},dependencies:[L.O5,Q.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.oS)()],ge.prototype,"nzShape",void 0),(0,t.gn)([(0,v.oS)()],ge.prototype,"nzSize",void 0),(0,t.gn)([(0,v.oS)(),(0,d.Rn)()],ge.prototype,"nzGap",void 0),ge})(),k=(()=>{class ge{}return ge.\u0275fac=function(Z){return new(Z||ge)},ge.\u0275mod=i.oAB({type:ge}),ge.\u0275inj=i.cJS({imports:[Y.vT,L.ez,Q.PV,s.ud]}),ge})()},3640:(Ot,be,a)=>{a.d(be,{F9:()=>j,mS:()=>me,x7:()=>ue});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(4194),L=a(874),Q=a(7754),Y=a(9388),A=a(331),S=a(6814),N=a(8324),V=a(7131);function U(re,he){if(1&re&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&re){const Me=he.$implicit,Oe=i.oxw(2).index,kt=i.oxw(2);i.ekj("current",Me===kt.countArray[Oe]),i.xp6(1),i.hij(" ",Me," ")}}function M(re,he){if(1&re&&(i.ynx(0),i.YNc(1,U,2,3,"p",5),i.BQk()),2&re){const Me=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",Me.countSingleArray)}}function e(re,he){if(1&re&&(i.TgZ(0,"span",3),i.YNc(1,M,2,1,"ng-container",4),i.qZA()),2&re){const Me=he.index,Oe=i.oxw(2);i.Udp("transform","translateY("+100*-Oe.countArray[Me]+"%)"),i.Q6J("nzNoAnimation",Oe.noAnimation),i.xp6(1),i.Q6J("ngIf",!Oe.nzDot&&void 0!==Oe.countArray[Me])}}function I(re,he){if(1&re&&(i.ynx(0),i.YNc(1,e,2,4,"span",2),i.BQk()),2&re){const Me=i.oxw();i.xp6(1),i.Q6J("ngForOf",Me.maxNumberArray)}}function k(re,he){if(1&re&&i._uU(0),2&re){const Me=i.oxw();i.hij("",Me.nzOverflowCount,"+")}}function ge(re,he){if(1&re&&(i.ynx(0),i._uU(1),i.BQk()),2&re){const Me=i.oxw(2);i.xp6(1),i.Oqu(Me.nzText)}}function Ce(re,he){if(1&re&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,ge,2,1,"ng-container",1),i.qZA(),i.BQk()),2&re){const Me=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",Me.nzStatus||Me.presetColor,""),i.Udp("background",!Me.presetColor&&Me.nzColor),i.Q6J("ngStyle",Me.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Me.nzText)}}function Z(re,he){if(1&re&&i._UZ(0,"nz-badge-sup",5),2&re){const Me=i.oxw(2);i.Q6J("nzOffset",Me.nzOffset)("nzSize",Me.nzSize)("nzTitle",Me.nzTitle)("nzStyle",Me.nzStyle)("nzDot",Me.nzDot)("nzOverflowCount",Me.nzOverflowCount)("disableAnimation",!!(Me.nzStandalone||Me.nzStatus||Me.nzColor||null!=Me.noAnimation&&Me.noAnimation.nzNoAnimation))("nzCount",Me.nzCount)("noAnimation",!(null==Me.noAnimation||!Me.noAnimation.nzNoAnimation))}}function F(re,he){if(1&re&&(i.ynx(0),i.YNc(1,Z,1,9,"nz-badge-sup",4),i.BQk()),2&re){const Me=i.oxw();i.xp6(1),i.Q6J("ngIf",Me.showSup)}}const R=["*"];function O(re,he){if(1&re&&(i.ynx(0),i.TgZ(1,"span",3),i._uU(2),i.qZA(),i.BQk()),2&re){const Me=i.oxw();i.xp6(2),i.Oqu(Me.nzText)}}const P=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let x=(()=>{class re{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",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(Me){const{nzOverflowCount:Oe,nzCount:kt}=Me;kt&&"number"==typeof kt.currentValue&&(this.count=Math.max(0,kt.currentValue),this.countArray=this.count.toString().split("").map(It=>+It)),Oe&&this.generateMaxNumberArray()}}return re.\u0275fac=function(Me){return new(Me||re)},re.\u0275cmp=i.Xpm({type:re,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(Me,Oe){2&Me&&(i.uIk("title",null===Oe.nzTitle?"":Oe.nzTitle||Oe.nzCount),i.d8E("@.disabled",Oe.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(Oe.nzStyle),i.Udp("right",Oe.nzOffset&&Oe.nzOffset[0]?-Oe.nzOffset[0]:null,"px")("margin-top",Oe.nzOffset&&Oe.nzOffset[1]?Oe.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!Oe.nzDot)("ant-badge-count-sm","small"===Oe.nzSize)("ant-badge-dot",Oe.nzDot)("ant-badge-multiple-words",Oe.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},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(Me,Oe){if(1&Me&&(i.YNc(0,I,2,1,"ng-container",0),i.YNc(1,k,1,1,"ng-template",null,1,i.W1O)),2&Me){const kt=i.MAs(2);i.Q6J("ngIf",Oe.count<=Oe.nzOverflowCount)("ngIfElse",kt)}},dependencies:[S.sg,S.O5,A.P],encapsulation:2,data:{animation:[s.Ev]},changeDetection:0}),re})(),ue=(()=>{class re{constructor(Me,Oe,kt,It,Tt,gt){this.nzConfigService=Me,this.renderer=Oe,this.cdr=kt,this.elementRef=It,this.directionality=Tt,this.noAnimation=gt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new v.x,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,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(Me=>{this.dir=Me,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(Me){const{nzColor:Oe,nzShowDot:kt,nzDot:It,nzCount:Tt,nzShowZero:gt}=Me;Oe&&(this.presetColor=this.nzColor&&-1!==P.indexOf(this.nzColor)?this.nzColor:null),(kt||It||Tt||gt)&&(this.showSup=this.nzShowDot&&this.nzDot||"number"==typeof this.nzCount&&this.nzCount>0||"number"==typeof this.nzCount&&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 re.\u0275fac=function(Me){return new(Me||re)(i.Y36(L.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Y.Is,8),i.Y36(A.P,9))},re.\u0275cmp=i.Xpm({type:re,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(Me,Oe){2&Me&&i.ekj("ant-badge-status",Oe.nzStatus)("ant-badge-not-a-wrapper",!!(Oe.nzStandalone||Oe.nzStatus||Oe.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",nzSize:"nzSize"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:R,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(Me,Oe){1&Me&&(i.F$t(),i.YNc(0,Ce,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,F,2,1,"ng-container",1)),2&Me&&(i.Q6J("ngIf",Oe.nzStatus||Oe.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Oe.nzCount))},dependencies:[S.O5,S.PC,N.f,x],encapsulation:2,data:{animation:[s.Ev]},changeDetection:0}),(0,t.gn)([(0,Q.yF)()],re.prototype,"nzShowZero",void 0),(0,t.gn)([(0,Q.yF)()],re.prototype,"nzShowDot",void 0),(0,t.gn)([(0,Q.yF)()],re.prototype,"nzStandalone",void 0),(0,t.gn)([(0,Q.yF)()],re.prototype,"nzDot",void 0),(0,t.gn)([(0,L.oS)()],re.prototype,"nzOverflowCount",void 0),(0,t.gn)([(0,L.oS)()],re.prototype,"nzColor",void 0),re})(),j=(()=>{class re{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(Me){const{nzColor:Oe}=Me;Oe&&(this.presetColor=this.nzColor&&-1!==P.indexOf(this.nzColor)?this.nzColor:null)}}return re.\u0275fac=function(Me){return new(Me||re)},re.\u0275cmp=i.Xpm({type:re,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:R,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(Me,Oe){1&Me&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,O,3,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&Me&&(i.xp6(1),i.Tol(Oe.presetColor&&"ant-ribbon-color-"+Oe.presetColor),i.Udp("background-color",!Oe.presetColor&&Oe.nzColor),i.ekj("ant-ribbon-placement-end","end"===Oe.nzPlacement)("ant-ribbon-placement-start","start"===Oe.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Oe.nzText),i.xp6(1),i.Udp("color",!Oe.presetColor&&Oe.nzColor))},dependencies:[N.f],encapsulation:2,changeDetection:0}),re})(),me=(()=>{class re{}return re.\u0275fac=function(Me){return new(Me||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({imports:[Y.vT,S.ez,V.Q8,N.T,A.g]}),re})()},2840:(Ot,be,a)=>{a.d(be,{fY:()=>Z,ix:()=>Ce,sL:()=>F});var t=a(655),i=a(5879),v=a(8645),d=a(2438),s=a(9773),L=a(7921),Q=a(2181),Y=a(874),A=a(7754),S=a(551),N=a(9388),V=a(6814),U=a(855),M=a(1958);const e=["nz-button",""];function I(R,O){1&R&&i._UZ(0,"span",1)}const k=["*"];let Ce=(()=>{class R{insertSpan(P,x){P.forEach(de=>{if("#text"===de.nodeName){const ue=x.createElement("span"),j=x.parentNode(de);x.insertBefore(j,ue,de),x.appendChild(ue,de)}})}assertIconOnly(P,x){const de=Array.from(P.childNodes),ue=de.filter(he=>{const Me=Array.from(he.childNodes||[]);return"SPAN"===he.nodeName&&Me.length>0&&Me.every(Oe=>"svg"===Oe.nodeName)}).length,j=de.every(he=>"#text"!==he.nodeName);de.filter(he=>{const Me=Array.from(he.childNodes||[]);return!("SPAN"===he.nodeName&&Me.length>0&&Me.every(Oe=>"svg"===Oe.nodeName))}).every(he=>"SPAN"!==he.nodeName)&&j&&ue>=1&&x.addClass(P,"ant-btn-icon-only")}constructor(P,x,de,ue,j,me){this.ngZone=P,this.elementRef=x,this.cdr=de,this.renderer=ue,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 v.x,this.loading$=new v.x,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.dir=P,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,d.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,s.R)(this.destroy$)).subscribe(P=>{(this.disabled&&"A"===P.target?.tagName||this.nzLoading)&&(P.preventDefault(),P.stopImmediatePropagation())})})}ngOnChanges(P){const{nzLoading:x}=P;x&&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,L.O)(this.nzLoading),(0,Q.h)(()=>!!this.nzIconDirectiveElement),(0,s.R)(this.destroy$)).subscribe(P=>{const x=this.nzIconDirectiveElement.nativeElement;P?this.renderer.setStyle(x,"display","none"):this.renderer.removeStyle(x,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return R.\u0275fac=function(P){return new(P||R)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.Qsj),i.Y36(Y.jY),i.Y36(N.Is,8))},R.\u0275cmp=i.Xpm({type:R,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(P,x,de){if(1&P&&i.Suo(de,S.Ls,5,i.SBq),2&P){let ue;i.iGM(ue=i.CRH())&&(x.nzIconDirectiveElement=ue.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(P,x){2&P&&(i.uIk("tabindex",x.disabled?-1:null===x.tabIndex?null:x.tabIndex)("disabled",x.disabled||null),i.ekj("ant-btn-primary","primary"===x.nzType)("ant-btn-dashed","dashed"===x.nzType)("ant-btn-link","link"===x.nzType)("ant-btn-text","text"===x.nzType)("ant-btn-circle","circle"===x.nzShape)("ant-btn-round","round"===x.nzShape)("ant-btn-lg","large"===x.nzSize)("ant-btn-sm","small"===x.nzSize)("ant-btn-dangerous",x.nzDanger)("ant-btn-loading",x.nzLoading)("ant-btn-background-ghost",x.nzGhost)("ant-btn-block",x.nzBlock)("ant-input-search-button",x.nzSearch)("ant-btn-rtl","rtl"===x.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:[i.TTD],attrs:e,ngContentSelectors:k,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(P,x){1&P&&(i.F$t(),i.YNc(0,I,1,0,"span",0),i.Hsn(1)),2&P&&i.Q6J("ngIf",x.nzLoading)},dependencies:[V.O5,S.Ls,U.w],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,A.yF)()],R.prototype,"nzBlock",void 0),(0,t.gn)([(0,A.yF)()],R.prototype,"nzGhost",void 0),(0,t.gn)([(0,A.yF)()],R.prototype,"nzSearch",void 0),(0,t.gn)([(0,A.yF)()],R.prototype,"nzLoading",void 0),(0,t.gn)([(0,A.yF)()],R.prototype,"nzDanger",void 0),(0,t.gn)([(0,A.yF)()],R.prototype,"disabled",void 0),(0,t.gn)([(0,Y.oS)()],R.prototype,"nzSize",void 0),R})(),Z=(()=>{class R{constructor(P){this.directionality=P,this.nzSize="default",this.dir="ltr",this.destroy$=new v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.dir=P})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return R.\u0275fac=function(P){return new(P||R)(i.Y36(N.Is,8))},R.\u0275cmp=i.Xpm({type:R,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(P,x){2&P&&i.ekj("ant-btn-group-lg","large"===x.nzSize)("ant-btn-group-sm","small"===x.nzSize)("ant-btn-group-rtl","rtl"===x.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:k,decls:1,vars:0,template:function(P,x){1&P&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),R})(),F=(()=>{class R{}return R.\u0275fac=function(P){return new(P||R)},R.\u0275mod=i.oAB({type:R}),R.\u0275inj=i.cJS({imports:[N.vT,V.ez,M.vG,S.PV,U.a,U.a,M.vG]}),R})()},2962:(Ot,be,a)=>{a.d(be,{_i:()=>Tt,bd:()=>Ft,l7:()=>rn,vh:()=>bn});var t=a(655),i=a(5879),v=a(7754),d=a(8645),s=a(9773),L=a(874),Q=a(9388),Y=a(6814),A=a(8324);function S(et,Re){1&et&&i.Hsn(0)}const N=["*"];function V(et,Re){1&et&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&et&&i.Q6J("ngClass",Re.$implicit)}function U(et,Re){if(1&et&&(i.TgZ(0,"div",2),i.YNc(1,V,2,1,"div",3),i.qZA()),2&et){const yt=Re.$implicit;i.xp6(1),i.Q6J("ngForOf",yt)}}function M(et,Re){if(1&et&&(i.ynx(0),i._uU(1),i.BQk()),2&et){const yt=i.oxw(3);i.xp6(1),i.Oqu(yt.nzTitle)}}function e(et,Re){if(1&et&&(i.TgZ(0,"div",11),i.YNc(1,M,2,1,"ng-container",12),i.qZA()),2&et){const yt=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzTitle)}}function I(et,Re){if(1&et&&(i.ynx(0),i._uU(1),i.BQk()),2&et){const yt=i.oxw(3);i.xp6(1),i.Oqu(yt.nzExtra)}}function k(et,Re){if(1&et&&(i.TgZ(0,"div",13),i.YNc(1,I,2,1,"ng-container",12),i.qZA()),2&et){const yt=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzExtra)}}function ge(et,Re){}function Ce(et,Re){if(1&et&&(i.ynx(0),i.YNc(1,ge,0,0,"ng-template",14),i.BQk()),2&et){const yt=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",yt.listOfNzCardTabComponent.template)}}function Z(et,Re){if(1&et&&(i.TgZ(0,"div",6)(1,"div",7),i.YNc(2,e,2,1,"div",8),i.YNc(3,k,2,1,"div",9),i.qZA(),i.YNc(4,Ce,2,1,"ng-container",10),i.qZA()),2&et){const yt=i.oxw();i.xp6(2),i.Q6J("ngIf",yt.nzTitle),i.xp6(1),i.Q6J("ngIf",yt.nzExtra),i.xp6(1),i.Q6J("ngIf",yt.listOfNzCardTabComponent)}}function F(et,Re){}function R(et,Re){if(1&et&&(i.TgZ(0,"div",15),i.YNc(1,F,0,0,"ng-template",14),i.qZA()),2&et){const yt=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",yt.nzCover)}}function O(et,Re){1&et&&(i.ynx(0),i.Hsn(1),i.BQk())}function P(et,Re){1&et&&i._UZ(0,"nz-card-loading")}function x(et,Re){}function de(et,Re){if(1&et&&(i.TgZ(0,"li")(1,"span"),i.YNc(2,x,0,0,"ng-template",14),i.qZA()()),2&et){const yt=Re.$implicit,je=i.oxw(2);i.Udp("width",100/je.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",yt)}}function ue(et,Re){if(1&et&&(i.TgZ(0,"ul",16),i.YNc(1,de,3,3,"li",17),i.qZA()),2&et){const yt=i.oxw();i.xp6(1),i.Q6J("ngForOf",yt.nzActions)}}function j(et,Re){}function me(et,Re){if(1&et&&(i.TgZ(0,"div",2),i.YNc(1,j,0,0,"ng-template",3),i.qZA()),2&et){const yt=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",yt.nzAvatar)}}function re(et,Re){if(1&et&&(i.ynx(0),i._uU(1),i.BQk()),2&et){const yt=i.oxw(3);i.xp6(1),i.Oqu(yt.nzTitle)}}function he(et,Re){if(1&et&&(i.TgZ(0,"div",7),i.YNc(1,re,2,1,"ng-container",8),i.qZA()),2&et){const yt=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzTitle)}}function Me(et,Re){if(1&et&&(i.ynx(0),i._uU(1),i.BQk()),2&et){const yt=i.oxw(3);i.xp6(1),i.Oqu(yt.nzDescription)}}function Oe(et,Re){if(1&et&&(i.TgZ(0,"div",9),i.YNc(1,Me,2,1,"ng-container",8),i.qZA()),2&et){const yt=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",yt.nzDescription)}}function kt(et,Re){if(1&et&&(i.TgZ(0,"div",4),i.YNc(1,he,2,1,"div",5),i.YNc(2,Oe,2,1,"div",6),i.qZA()),2&et){const yt=i.oxw();i.xp6(1),i.Q6J("ngIf",yt.nzTitle),i.xp6(1),i.Q6J("ngIf",yt.nzDescription)}}let It=(()=>{class et{constructor(){this.nzHoverable=!0}}return et.\u0275fac=function(yt){return new(yt||et)},et.\u0275dir=i.lG2({type:et,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(yt,je){2&yt&&i.ekj("ant-card-hoverable",je.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,t.gn)([(0,v.yF)()],et.prototype,"nzHoverable",void 0),et})(),Tt=(()=>{class et{}return et.\u0275fac=function(yt){return new(yt||et)},et.\u0275cmp=i.Xpm({type:et,selectors:[["nz-card-tab"]],viewQuery:function(yt,je){if(1&yt&&i.Gf(i.Rgc,7),2&yt){let Ut;i.iGM(Ut=i.CRH())&&(je.template=Ut.first)}},exportAs:["nzCardTab"],ngContentSelectors:N,decls:1,vars:0,template:function(yt,je){1&yt&&(i.F$t(),i.YNc(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),et})(),gt=(()=>{class et{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 et.\u0275fac=function(yt){return new(yt||et)},et.\u0275cmp=i.Xpm({type:et,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(yt,je){1&yt&&(i.TgZ(0,"div",0),i.YNc(1,U,2,1,"div",1),i.qZA()),2&yt&&(i.xp6(1),i.Q6J("ngForOf",je.listOfLoading))},dependencies:[Y.mk,Y.sg],encapsulation:2,changeDetection:0}),et})(),Ft=(()=>{class et{constructor(yt,je,Ut){this.nzConfigService=yt,this.cdr=je,this.directionality=Ut,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.x,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,s.R)(this.destroy$)).subscribe(yt=>{this.dir=yt,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return et.\u0275fac=function(yt){return new(yt||et)(i.Y36(L.jY),i.Y36(i.sBO),i.Y36(Q.Is,8))},et.\u0275cmp=i.Xpm({type:et,selectors:[["nz-card"]],contentQueries:function(yt,je,Ut){if(1&yt&&(i.Suo(Ut,Tt,5),i.Suo(Ut,It,4)),2&yt){let Xt;i.iGM(Xt=i.CRH())&&(je.listOfNzCardTabComponent=Xt.first),i.iGM(Xt=i.CRH())&&(je.listOfNzCardGridDirective=Xt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(yt,je){2&yt&&i.ekj("ant-card-loading",je.nzLoading)("ant-card-bordered",!1===je.nzBorderless&&je.nzBordered)("ant-card-hoverable",je.nzHoverable)("ant-card-small","small"===je.nzSize)("ant-card-contain-grid",je.listOfNzCardGridDirective&&je.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===je.nzType)("ant-card-contain-tabs",!!je.listOfNzCardTabComponent)("ant-card-rtl","rtl"===je.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:N,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(yt,je){if(1&yt&&(i.F$t(),i.YNc(0,Z,5,3,"div",0),i.YNc(1,R,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,O,2,0,"ng-container",3),i.YNc(4,P,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ue,2,1,"ul",5)),2&yt){const Ut=i.MAs(5);i.Q6J("ngIf",je.nzTitle||je.nzExtra||je.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",je.nzCover),i.xp6(1),i.Q6J("ngStyle",je.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!je.nzLoading)("ngIfElse",Ut),i.xp6(3),i.Q6J("ngIf",je.nzActions.length)}},dependencies:[Y.sg,Y.O5,Y.tP,Y.PC,A.f,gt],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],et.prototype,"nzBordered",void 0),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],et.prototype,"nzBorderless",void 0),(0,t.gn)([(0,v.yF)()],et.prototype,"nzLoading",void 0),(0,t.gn)([(0,L.oS)(),(0,v.yF)()],et.prototype,"nzHoverable",void 0),(0,t.gn)([(0,L.oS)()],et.prototype,"nzSize",void 0),et})(),rn=(()=>{class et{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return et.\u0275fac=function(yt){return new(yt||et)},et.\u0275cmp=i.Xpm({type:et,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(yt,je){1&yt&&(i.YNc(0,me,2,1,"div",0),i.YNc(1,kt,3,2,"div",1)),2&yt&&(i.Q6J("ngIf",je.nzAvatar),i.xp6(1),i.Q6J("ngIf",je.nzTitle||je.nzDescription))},dependencies:[Y.O5,Y.tP,A.f],encapsulation:2,changeDetection:0}),et})(),bn=(()=>{class et{}return et.\u0275fac=function(yt){return new(yt||et)},et.\u0275mod=i.oAB({type:et}),et.\u0275inj=i.cJS({imports:[Y.ez,A.T,Q.vT]}),et})()},8802:(Ot,be,a)=>{a.d(be,{D3:()=>L,y7:()=>Y});var t=a(5879),i=a(2495),v=a(5592),d=a(8645);let s=(()=>{class A{create(N){return typeof ResizeObserver>"u"?null:new ResizeObserver(N)}}return A.\u0275fac=function(N){return new(N||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),L=(()=>{class A{constructor(N){this.nzResizeObserverFactory=N,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((N,V)=>this.cleanupObserver(V))}observe(N){const V=(0,i.fI)(N);return new v.y(U=>{const e=this.observeElement(V).subscribe(U);return()=>{e.unsubscribe(),this.unobserveElement(V)}})}observeElement(N){if(this.observedElements.has(N))this.observedElements.get(N).count++;else{const V=new d.x,U=this.nzResizeObserverFactory.create(M=>V.next(M));U&&U.observe(N),this.observedElements.set(N,{observer:U,stream:V,count:1})}return this.observedElements.get(N).stream}unobserveElement(N){this.observedElements.has(N)&&(this.observedElements.get(N).count--,this.observedElements.get(N).count||this.cleanupObserver(N))}cleanupObserver(N){if(this.observedElements.has(N)){const{observer:V,stream:U}=this.observedElements.get(N);V&&V.disconnect(),U.complete(),this.observedElements.delete(N)}}}return A.\u0275fac=function(N){return new(N||A)(t.LFG(s))},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),Y=(()=>{class A{}return A.\u0275fac=function(N){return new(N||A)},A.\u0275mod=t.oAB({type:A}),A.\u0275inj=t.cJS({providers:[s]}),A})()},2612:(Ot,be,a)=>{a.d(be,{Ie:()=>k,Wr:()=>Ce,ub:()=>ge});var t=a(655),i=a(5879),v=a(6223),d=a(8645),s=a(2438),L=a(9773),Q=a(7754),Y=a(4300),A=a(9388),S=a(883),N=a(6814);const V=["*"],U=["inputElement"],M=["nz-checkbox",""];function e(Z,F){if(1&Z){const R=i.EpF();i.TgZ(0,"label",1),i.NdJ("nzCheckedChange",function(P){const de=i.CHM(R).$implicit,ue=i.oxw();return i.KtG(ue.onCheckedChange(de,P))}),i.TgZ(1,"span"),i._uU(2),i.qZA()()}if(2&Z){const R=F.$implicit,O=i.oxw();i.Q6J("nzDisabled",R.disabled||O.nzDisabled)("nzChecked",R.checked),i.xp6(2),i.Oqu(R.label)}}let I=(()=>{class Z{constructor(){this.nzOnChange=new i.vpe,this.checkboxList=[]}addCheckbox(R){this.checkboxList.push(R)}removeCheckbox(R){this.checkboxList.splice(this.checkboxList.indexOf(R),1)}onChange(){const R=this.checkboxList.filter(O=>O.nzChecked).map(O=>O.nzValue);this.nzOnChange.emit(R)}}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:V,decls:1,vars:0,template:function(R,O){1&R&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),Z})(),k=(()=>{class Z{innerCheckedChange(R){this.nzDisabled||(this.nzChecked=R,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(R){this.nzChecked=R,this.cdr.markForCheck()}registerOnChange(R){this.onChange=R}registerOnTouched(R){this.onTouched=R}setDisabledState(R){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||R,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(R,O,P,x,de,ue,j){this.ngZone=R,this.elementRef=O,this.nzCheckboxWrapperComponent=P,this.cdr=x,this.focusMonitor=de,this.directionality=ue,this.nzFormStatusService=j,this.dir="ltr",this.destroy$=new d.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new i.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(R=>{R||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,L.R)(this.destroy$)).subscribe(R=>{this.dir=R,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,s.R)(this.elementRef.nativeElement,"click").pipe((0,L.R)(this.destroy$)).subscribe(R=>{R.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,s.R)(this.inputElement.nativeElement,"click").pipe((0,L.R)(this.destroy$)).subscribe(R=>R.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 Z.\u0275fac=function(R){return new(R||Z)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(I,8),i.Y36(i.sBO),i.Y36(Y.tE),i.Y36(A.Is,8),i.Y36(S.kH,8))},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["","nz-checkbox",""]],viewQuery:function(R,O){if(1&R&&i.Gf(U,7),2&R){let P;i.iGM(P=i.CRH())&&(O.inputElement=P.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(R,O){2&R&&i.ekj("ant-checkbox-wrapper-in-form-item",!!O.nzFormStatusService)("ant-checkbox-wrapper-checked",O.nzChecked)("ant-checkbox-rtl","rtl"===O.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[i._Bn([{provide:v.JU,useExisting:(0,i.Gpc)(()=>Z),multi:!0}])],attrs:M,ngContentSelectors:V,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(R,O){1&R&&(i.F$t(),i.TgZ(0,"span",0)(1,"input",1,2),i.NdJ("ngModelChange",function(x){return O.innerCheckedChange(x)}),i.qZA(),i._UZ(3,"span",3),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&R&&(i.ekj("ant-checkbox-checked",O.nzChecked&&!O.nzIndeterminate)("ant-checkbox-disabled",O.nzDisabled)("ant-checkbox-indeterminate",O.nzIndeterminate),i.xp6(1),i.Q6J("checked",O.nzChecked)("ngModel",O.nzChecked)("disabled",O.nzDisabled),i.uIk("autofocus",O.nzAutoFocus?"autofocus":null)("id",O.nzId))},dependencies:[v.Wl,v.JJ,v.On],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,Q.yF)()],Z.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,Q.yF)()],Z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,Q.yF)()],Z.prototype,"nzIndeterminate",void 0),(0,t.gn)([(0,Q.yF)()],Z.prototype,"nzChecked",void 0),Z})(),ge=(()=>{class Z{trackByOption(R,O){return O.value}onCheckedChange(R,O){R.checked=O,this.onChange(this.options)}constructor(R,O,P,x){this.elementRef=R,this.focusMonitor=O,this.cdr=P,this.directionality=x,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new d.x,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(R=>{R||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(R=>{this.dir=R,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(R){this.options=R,this.cdr.markForCheck()}registerOnChange(R){this.onChange=R}registerOnTouched(R){this.onTouched=R}setDisabledState(R){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||R,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}}return Z.\u0275fac=function(R){return new(R||Z)(i.Y36(i.SBq),i.Y36(Y.tE),i.Y36(i.sBO),i.Y36(A.Is,8))},Z.\u0275cmp=i.Xpm({type:Z,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(R,O){2&R&&i.ekj("ant-checkbox-group-rtl","rtl"===O.dir)},inputs:{nzDisabled:"nzDisabled"},exportAs:["nzCheckboxGroup"],features:[i._Bn([{provide:v.JU,useExisting:(0,i.Gpc)(()=>Z),multi:!0}])],decls:1,vars:2,consts:[["nz-checkbox","","class","ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange",4,"ngFor","ngForOf","ngForTrackBy"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked","nzCheckedChange"]],template:function(R,O){1&R&&i.YNc(0,e,3,3,"label",0),2&R&&i.Q6J("ngForOf",O.options)("ngForTrackBy",O.trackByOption)},dependencies:[N.sg,k],encapsulation:2}),(0,t.gn)([(0,Q.yF)()],Z.prototype,"nzDisabled",void 0),Z})(),Ce=(()=>{class Z{}return Z.\u0275fac=function(R){return new(R||Z)},Z.\u0275mod=i.oAB({type:Z}),Z.\u0275inj=i.cJS({imports:[A.vT,N.ez,v.u5,Y.rt]}),Z})()},4194:(Ot,be,a)=>{a.d(be,{$C:()=>M,Ev:()=>e,J_:()=>d,MC:()=>L,Rq:()=>U,c8:()=>Q,mF:()=>V});var t=a(6825);let i=(()=>{class k{}return k.SLOW="0.3s",k.BASE="0.2s",k.FAST="0.1s",k})(),v=(()=>{class k{}return k.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",k.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",k.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",k.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",k.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",k.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",k.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",k.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",k.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",k.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",k.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",k.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",k.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",k.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",k})();const d=(0,t.X$)("collapseMotion",[(0,t.SB)("expanded",(0,t.oB)({height:"*"})),(0,t.SB)("collapsed",(0,t.oB)({height:0,overflow:"hidden"})),(0,t.SB)("hidden",(0,t.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.eR)("expanded => collapsed",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("expanded => hidden",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("collapsed => expanded",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`)),(0,t.eR)("hidden => expanded",(0,t.jt)(`150ms ${v.EASE_IN_OUT}`))]),L=((0,t.X$)("treeCollapseMotion",[(0,t.eR)("* => *",[(0,t.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.oB)({overflow:"hidden"}),(0,t.EY)(0,[(0,t.jt)(`150ms ${v.EASE_IN_OUT}`,(0,t.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.EY)(0,[(0,t.jt)(`150ms ${v.EASE_IN_OUT}`,(0,t.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.X$)("fadeMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({opacity:0}))])])),Q=(0,t.X$)("helpMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"translateY(-5px)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT}`,(0,t.oB)({opacity:1,transform:"translateY(0)"}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"translateY(0)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT}`,(0,t.oB)({opacity:0,transform:"translateY(-5px)"}))])]),S=((0,t.X$)("moveUpMotion",[(0,t.eR)("* => enter",[(0,t.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.eR)("* => leave",[(0,t.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.jt)(`${i.BASE}`,(0,t.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.X$)("notificationMotion",[(0,t.SB)("enterRight",(0,t.oB)({opacity:1,transform:"translateX(0)"})),(0,t.eR)("* => enterRight",[(0,t.oB)({opacity:0,transform:"translateX(5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterLeft",(0,t.oB)({opacity:1,transform:"translateX(0)"})),(0,t.eR)("* => enterLeft",[(0,t.oB)({opacity:0,transform:"translateX(-5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterTop",(0,t.oB)({opacity:1,transform:"translateY(0)"})),(0,t.eR)("* => enterTop",[(0,t.oB)({opacity:0,transform:"translateY(-5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("enterBottom",(0,t.oB)({opacity:1,transform:"translateY(0)"})),(0,t.eR)("* => enterBottom",[(0,t.oB)({opacity:0,transform:"translateY(5%)"}),(0,t.jt)("100ms linear")]),(0,t.SB)("leave",(0,t.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.eR)("* => leave",[(0,t.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.jt)("100ms linear")])]),`${i.BASE} ${v.EASE_OUT_QUINT}`),N=`${i.BASE} ${v.EASE_IN_QUINT}`,V=(0,t.X$)("slideMotion",[(0,t.SB)("void",(0,t.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,t.SB)("enter",(0,t.oB)({opacity:1,transform:"scaleY(1)"})),(0,t.eR)("void => *",[(0,t.jt)(S)]),(0,t.eR)("* => void",[(0,t.jt)(N)])]),U=(0,t.X$)("slideAlertMotion",[(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_OUT_CIRC}`,(0,t.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),M=(0,t.X$)("zoomBigMotion",[(0,t.eR)("void => active",[(0,t.oB)({opacity:0,transform:"scale(0.8)"}),(0,t.jt)(`${i.BASE} ${v.EASE_OUT_CIRC}`,(0,t.oB)({opacity:1,transform:"scale(1)"}))]),(0,t.eR)("active => void",[(0,t.oB)({opacity:1,transform:"scale(1)"}),(0,t.jt)(`${i.BASE} ${v.EASE_IN_OUT_CIRC}`,(0,t.oB)({opacity:0,transform:"scale(0.8)"}))])]),e=(0,t.X$)("zoomBadgeMotion",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_OUT_BACK}`,(0,t.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.eR)(":leave",[(0,t.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.jt)(`${i.SLOW} ${v.EASE_IN_BACK}`,(0,t.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]);(0,t.X$)("thumbMotion",[(0,t.SB)("from",(0,t.oB)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.SB)("to",(0,t.oB)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.eR)("from => to",(0,t.jt)(`300ms ${v.EASE_IN_OUT}`))])},3324:(Ot,be,a)=>{a.d(be,{Bh:()=>v,M8:()=>L,R_:()=>F,o2:()=>s,uf:()=>d});var t=a(4265),i=a(6379);const v=["success","processing","error","default","warning"],d=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function s(R){return-1!==d.indexOf(R)}function L(R){return-1!==v.indexOf(R)}const Q=2,Y=.16,A=.05,S=.05,N=.15,V=5,U=4,M=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function e({r:R,g:O,b:P}){const x=(0,t.py)(R,O,P);return{h:360*x.h,s:x.s,v:x.v}}function I({r:R,g:O,b:P}){return`#${(0,t.vq)(R,O,P,!1)}`}function ge(R,O,P){let x;return x=Math.round(R.h)>=60&&Math.round(R.h)<=240?P?Math.round(R.h)-Q*O:Math.round(R.h)+Q*O:P?Math.round(R.h)+Q*O:Math.round(R.h)-Q*O,x<0?x+=360:x>=360&&(x-=360),x}function Ce(R,O,P){if(0===R.h&&0===R.s)return R.s;let x;return x=P?R.s-Y*O:O===U?R.s+Y:R.s+A*O,x>1&&(x=1),P&&O===V&&x>.1&&(x=.1),x<.06&&(x=.06),Number(x.toFixed(2))}function Z(R,O,P){let x;return x=P?R.v+S*O:R.v-N*O,x>1&&(x=1),Number(x.toFixed(2))}function F(R,O={}){const P=[],x=(0,i.uA)(R);for(let de=V;de>0;de-=1){const ue=e(x),j=I((0,i.uA)({h:ge(ue,de,!0),s:Ce(ue,de,!0),v:Z(ue,de,!0)}));P.push(j)}P.push(I(x));for(let de=1;de<=U;de+=1){const ue=e(x),j=I((0,i.uA)({h:ge(ue,de),s:Ce(ue,de),v:Z(ue,de)}));P.push(j)}return"dark"===O.theme?M.map(({index:de,opacity:ue})=>I(function k(R,O,P){const x=P/100;return{r:(O.r-R.r)*x+R.r,g:(O.g-R.g)*x+R.g,b:(O.b-R.b)*x+R.b}}((0,i.uA)(O.backgroundColor||"#141414"),(0,i.uA)(P[de]),100*ue))):P}},874:(Ot,be,a)=>{a.d(be,{jY:()=>Z,oS:()=>F});var t=a(5879),i=a(8645),v=a(2181),d=a(975),s=a(4265),L=a(1309),Q=a(6379),Y=a(6337),A=function(){function R(O,P){var x;if(void 0===O&&(O=""),void 0===P&&(P={}),O instanceof R)return O;"number"==typeof O&&(O=(0,s.Yt)(O)),this.originalInput=O;var de=(0,Q.uA)(O);this.originalInput=O,this.r=de.r,this.g=de.g,this.b=de.b,this.a=de.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(x=P.format)&&void 0!==x?x:de.format,this.gradientType=P.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=de.ok}return R.prototype.isDark=function(){return this.getBrightness()<128},R.prototype.isLight=function(){return!this.isDark()},R.prototype.getBrightness=function(){var O=this.toRgb();return(299*O.r+587*O.g+114*O.b)/1e3},R.prototype.getLuminance=function(){var O=this.toRgb(),ue=O.r/255,j=O.g/255,me=O.b/255;return.2126*(ue<=.03928?ue/12.92:Math.pow((ue+.055)/1.055,2.4))+.7152*(j<=.03928?j/12.92:Math.pow((j+.055)/1.055,2.4))+.0722*(me<=.03928?me/12.92:Math.pow((me+.055)/1.055,2.4))},R.prototype.getAlpha=function(){return this.a},R.prototype.setAlpha=function(O){return this.a=(0,Y.Yq)(O),this.roundA=Math.round(100*this.a)/100,this},R.prototype.isMonochrome=function(){return 0===this.toHsl().s},R.prototype.toHsv=function(){var O=(0,s.py)(this.r,this.g,this.b);return{h:360*O.h,s:O.s,v:O.v,a:this.a}},R.prototype.toHsvString=function(){var O=(0,s.py)(this.r,this.g,this.b),P=Math.round(360*O.h),x=Math.round(100*O.s),de=Math.round(100*O.v);return 1===this.a?"hsv(".concat(P,", ").concat(x,"%, ").concat(de,"%)"):"hsva(".concat(P,", ").concat(x,"%, ").concat(de,"%, ").concat(this.roundA,")")},R.prototype.toHsl=function(){var O=(0,s.lC)(this.r,this.g,this.b);return{h:360*O.h,s:O.s,l:O.l,a:this.a}},R.prototype.toHslString=function(){var O=(0,s.lC)(this.r,this.g,this.b),P=Math.round(360*O.h),x=Math.round(100*O.s),de=Math.round(100*O.l);return 1===this.a?"hsl(".concat(P,", ").concat(x,"%, ").concat(de,"%)"):"hsla(".concat(P,", ").concat(x,"%, ").concat(de,"%, ").concat(this.roundA,")")},R.prototype.toHex=function(O){return void 0===O&&(O=!1),(0,s.vq)(this.r,this.g,this.b,O)},R.prototype.toHexString=function(O){return void 0===O&&(O=!1),"#"+this.toHex(O)},R.prototype.toHex8=function(O){return void 0===O&&(O=!1),(0,s.s)(this.r,this.g,this.b,this.a,O)},R.prototype.toHex8String=function(O){return void 0===O&&(O=!1),"#"+this.toHex8(O)},R.prototype.toHexShortString=function(O){return void 0===O&&(O=!1),1===this.a?this.toHexString(O):this.toHex8String(O)},R.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},R.prototype.toRgbString=function(){var O=Math.round(this.r),P=Math.round(this.g),x=Math.round(this.b);return 1===this.a?"rgb(".concat(O,", ").concat(P,", ").concat(x,")"):"rgba(".concat(O,", ").concat(P,", ").concat(x,", ").concat(this.roundA,")")},R.prototype.toPercentageRgb=function(){var O=function(P){return"".concat(Math.round(100*(0,Y.sh)(P,255)),"%")};return{r:O(this.r),g:O(this.g),b:O(this.b),a:this.a}},R.prototype.toPercentageRgbString=function(){var O=function(P){return Math.round(100*(0,Y.sh)(P,255))};return 1===this.a?"rgb(".concat(O(this.r),"%, ").concat(O(this.g),"%, ").concat(O(this.b),"%)"):"rgba(".concat(O(this.r),"%, ").concat(O(this.g),"%, ").concat(O(this.b),"%, ").concat(this.roundA,")")},R.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var O="#"+(0,s.vq)(this.r,this.g,this.b,!1),P=0,x=Object.entries(L.R);P=0&&(O.startsWith("hex")||"name"===O)?"name"===O&&0===this.a?this.toName():this.toRgbString():("rgb"===O&&(x=this.toRgbString()),"prgb"===O&&(x=this.toPercentageRgbString()),("hex"===O||"hex6"===O)&&(x=this.toHexString()),"hex3"===O&&(x=this.toHexString(!0)),"hex4"===O&&(x=this.toHex8String(!0)),"hex8"===O&&(x=this.toHex8String()),"name"===O&&(x=this.toName()),"hsl"===O&&(x=this.toHslString()),"hsv"===O&&(x=this.toHsvString()),x||this.toHexString())},R.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},R.prototype.clone=function(){return new R(this.toString())},R.prototype.lighten=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.l+=O/100,P.l=(0,Y.V2)(P.l),new R(P)},R.prototype.brighten=function(O){void 0===O&&(O=10);var P=this.toRgb();return P.r=Math.max(0,Math.min(255,P.r-Math.round(-O/100*255))),P.g=Math.max(0,Math.min(255,P.g-Math.round(-O/100*255))),P.b=Math.max(0,Math.min(255,P.b-Math.round(-O/100*255))),new R(P)},R.prototype.darken=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.l-=O/100,P.l=(0,Y.V2)(P.l),new R(P)},R.prototype.tint=function(O){return void 0===O&&(O=10),this.mix("white",O)},R.prototype.shade=function(O){return void 0===O&&(O=10),this.mix("black",O)},R.prototype.desaturate=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.s-=O/100,P.s=(0,Y.V2)(P.s),new R(P)},R.prototype.saturate=function(O){void 0===O&&(O=10);var P=this.toHsl();return P.s+=O/100,P.s=(0,Y.V2)(P.s),new R(P)},R.prototype.greyscale=function(){return this.desaturate(100)},R.prototype.spin=function(O){var P=this.toHsl(),x=(P.h+O)%360;return P.h=x<0?360+x:x,new R(P)},R.prototype.mix=function(O,P){void 0===P&&(P=50);var x=this.toRgb(),de=new R(O).toRgb(),ue=P/100;return new R({r:(de.r-x.r)*ue+x.r,g:(de.g-x.g)*ue+x.g,b:(de.b-x.b)*ue+x.b,a:(de.a-x.a)*ue+x.a})},R.prototype.analogous=function(O,P){void 0===O&&(O=6),void 0===P&&(P=30);var x=this.toHsl(),de=360/P,ue=[this];for(x.h=(x.h-(de*O>>1)+720)%360;--O;)x.h=(x.h+de)%360,ue.push(new R(x));return ue},R.prototype.complement=function(){var O=this.toHsl();return O.h=(O.h+180)%360,new R(O)},R.prototype.monochromatic=function(O){void 0===O&&(O=6);for(var P=this.toHsv(),x=P.h,de=P.s,ue=P.v,j=[],me=1/O;O--;)j.push(new R({h:x,s:de,v:ue})),ue=(ue+me)%1;return j},R.prototype.splitcomplement=function(){var O=this.toHsl(),P=O.h;return[this,new R({h:(P+72)%360,s:O.s,l:O.l}),new R({h:(P+216)%360,s:O.s,l:O.l})]},R.prototype.onBackground=function(O){var P=this.toRgb(),x=new R(O).toRgb(),de=P.a+x.a*(1-P.a);return new R({r:(P.r*P.a+x.r*x.a*(1-P.a))/de,g:(P.g*P.a+x.g*x.a*(1-P.a))/de,b:(P.b*P.a+x.b*x.a*(1-P.a))/de,a:de})},R.prototype.triad=function(){return this.polyad(3)},R.prototype.tetrad=function(){return this.polyad(4)},R.prototype.polyad=function(O){for(var P=this.toHsl(),x=P.h,de=[this],ue=360/O,j=1;j{let re=j.clone();return re=me?.(re)||re,re.toRgbString()},de=(j,me)=>{const re=new A(j),he=(0,N.R_)(re.toRgbString());P[`${me}-color`]=x(re),P[`${me}-color-disabled`]=he[1],P[`${me}-color-hover`]=he[4],P[`${me}-color-active`]=he[7],P[`${me}-color-outline`]=re.clone().setAlpha(.2).toRgbString(),P[`${me}-color-deprecated-bg`]=he[1],P[`${me}-color-deprecated-border`]=he[3]};if(O.primaryColor){de(O.primaryColor,"primary");const j=new A(O.primaryColor),me=(0,N.R_)(j.toRgbString());me.forEach((he,Me)=>{P[`primary-${Me+1}`]=he}),P["primary-color-deprecated-l-35"]=x(j,he=>he.lighten(35)),P["primary-color-deprecated-l-20"]=x(j,he=>he.lighten(20)),P["primary-color-deprecated-t-20"]=x(j,he=>he.tint(20)),P["primary-color-deprecated-t-50"]=x(j,he=>he.tint(50)),P["primary-color-deprecated-f-12"]=x(j,he=>he.setAlpha(.12*he.getAlpha()));const re=new A(me[0]);P["primary-color-active-deprecated-f-30"]=x(re,he=>he.setAlpha(.3*he.getAlpha())),P["primary-color-active-deprecated-d-02"]=x(re,he=>he.darken(2))}return O.successColor&&de(O.successColor,"success"),O.warningColor&&de(O.warningColor,"warning"),O.errorColor&&de(O.errorColor,"error"),O.infoColor&&de(O.infoColor,"info"),`\n :root {\n ${Object.keys(P).map(j=>`--${R}-${j}: ${P[j]};`).join("\n")}\n }\n `.trim()}(R,O);(0,U.J8)()?(0,U.hq)(P,`${e}-dynamic-theme`):(0,V.ZK)("NzConfigService: SSR do not support dynamic theme with css variables.")}const ge=function(R){return void 0!==R};let Z=(()=>{class R{constructor(P){this.configUpdated$=new i.x,this.config=P||{},this.config.theme&&k(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme)}getConfig(){return this.config}getConfigForComponent(P){return this.config[P]}getConfigChangeEventForComponent(P){return this.configUpdated$.pipe((0,v.h)(x=>x===P),(0,d.h)(void 0))}set(P,x){this.config[P]={...this.config[P],...x},"theme"===P&&this.config.theme&&k(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme),this.configUpdated$.next(P)}}return R.\u0275fac=function(P){return new(P||R)(t.LFG(M,8))},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function F(){return function(O,P,x){const de=`$$__zorroConfigDecorator__${P}`;return Object.defineProperty(O,de,{configurable:!0,writable:!0,enumerable:!1}),{get(){const ue=x?.get?x.get.bind(this)():this[de],j=(this.propertyAssignCounter?.[P]||0)>1,me=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[P];return j&&ge(ue)?ue:ge(me)?me:ue},set(ue){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[P]=(this.propertyAssignCounter[P]||0)+1,x?.set?x.set.bind(this)(ue):this[de]=ue},configurable:!0,enumerable:!0}}}},883:(Ot,be,a)=>{a.d(be,{kH:()=>Q,mJ:()=>N,w_:()=>S,yW:()=>Y});var t=a(5879),i=a(7328),v=a(5619),d=a(6814),s=a(551);function L(V,U){if(1&V&&t._UZ(0,"span",1),2&V){const M=t.oxw();t.Q6J("nzType",M.iconType)}}let Q=(()=>{class V{constructor(){this.formStatusChanges=new i.t(1)}}return V.\u0275fac=function(M){return new(M||V)},V.\u0275prov=t.Yz7({token:V,factory:V.\u0275fac}),V})(),Y=(()=>{class V{constructor(){this.noFormStatus=new v.X(!1)}}return V.\u0275fac=function(M){return new(M||V)},V.\u0275prov=t.Yz7({token:V,factory:V.\u0275fac}),V})();const A={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let S=(()=>{class V{constructor(M){this.cdr=M,this.status="",this.iconType=null}ngOnChanges(M){this.updateIcon()}updateIcon(){this.iconType=this.status?A[this.status]:null,this.cdr.markForCheck()}}return V.\u0275fac=function(M){return new(M||V)(t.Y36(t.sBO))},V.\u0275cmp=t.Xpm({type:V,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(M,e){2&M&&t.ekj("ant-form-item-feedback-icon-error","error"===e.status)("ant-form-item-feedback-icon-warning","warning"===e.status)("ant-form-item-feedback-icon-success","success"===e.status)("ant-form-item-feedback-icon-validating","validating"===e.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.TTD],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(M,e){1&M&&t.YNc(0,L,1,1,"span",0),2&M&&t.Q6J("ngIf",e.iconType)},dependencies:[d.O5,s.Ls],encapsulation:2,changeDetection:0}),V})(),N=(()=>{class V{}return V.\u0275fac=function(M){return new(M||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({imports:[d.ez,s.PV]}),V})()},7032:(Ot,be,a)=>{a.d(be,{Bq:()=>d,ZK:()=>Q});var t=a(5879);const v={},d="[NG-ZORRO]:";const Q=(...S)=>function L(S,...N){(0,t.X6Q)()&&function s(...S){const N=S.reduce((V,U)=>V+U.toString(),"");return!v[N]&&(v[N]=!0,!0)}(...N)&&S(...N)}((...N)=>console.warn(d,...N),...S)},331:(Ot,be,a)=>{a.d(be,{P:()=>Q,g:()=>Y});var t=a(6814),i=a(5879),v=a(655),d=a(2495),s=a(7754);const L="nz-animate-disabled";let Q=(()=>{class A{constructor(N,V,U){this.element=N,this.renderer=V,this.animationType=U,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const N=(0,d.fI)(this.element);N&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(N,L):this.renderer.removeClass(N,L))}}return A.\u0275fac=function(N){return new(N||A)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.QbO,8))},A.\u0275dir=i.lG2({type:A,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[i.TTD]}),(0,v.gn)([(0,s.yF)()],A.prototype,"nzNoAnimation",void 0),A})(),Y=(()=>{class A{}return A.\u0275fac=function(N){return new(N||A)},A.\u0275mod=i.oAB({type:A}),A.\u0275inj=i.cJS({imports:[t.ez]}),A})()},8324:(Ot,be,a)=>{a.d(be,{T:()=>s,f:()=>v});var t=a(6814),i=a(5879);let v=(()=>{class L{static ngTemplateContextGuard(Y,A){return!0}recreateView(){this.viewContainer.clear();const Y=this.nzStringTemplateOutlet instanceof i.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(Y?this.nzStringTemplateOutlet:this.templateRef,Y?this.nzStringTemplateOutletContext:this.context)}updateContext(){const A=this.nzStringTemplateOutlet instanceof i.Rgc?this.nzStringTemplateOutletContext:this.context,S=this.embeddedViewRef.context;if(A)for(const N of Object.keys(A))S[N]=A[N]}constructor(Y,A){this.viewContainer=Y,this.templateRef=A,this.embeddedViewRef=null,this.context=new d,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges(Y){const{nzStringTemplateOutletContext:A,nzStringTemplateOutlet:S}=Y;S&&(this.context.$implicit=S.currentValue),(()=>{let U=!1;return S&&(U=!!S.firstChange||(S.previousValue instanceof i.Rgc||S.currentValue instanceof i.Rgc)),A&&(I=>{const k=Object.keys(I.previousValue||{}),ge=Object.keys(I.currentValue||{});if(k.length===ge.length){for(const Ce of ge)if(-1===k.indexOf(Ce))return!0;return!1}return!0})(A)||U})()?this.recreateView():this.updateContext()}}return L.\u0275fac=function(Y){return new(Y||L)(i.Y36(i.s_b),i.Y36(i.Rgc))},L.\u0275dir=i.lG2({type:L,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[i.TTD]}),L})();class d{}let s=(()=>{class L{}return L.\u0275fac=function(Y){return new(Y||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[t.ez]}),L})()},5448:(Ot,be,a)=>{a.d(be,{A7:()=>S,Ek:()=>Y,d_:()=>V,e4:()=>I,fG:()=>N,hQ:()=>e,yW:()=>Q});var t=a(655),i=a(9594),v=a(5879),d=a(9773),s=a(9087),L=a(7754);const Q={top:new i.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new i.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new i.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new i.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new i.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new i.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new i.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new i.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new i.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new i.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new i.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},Y=[Q.top,Q.right,Q.bottom,Q.left],S=[new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],N=[Q.bottomLeft,new i.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function V(k){for(const ge in Q)if(k.connectionPair.originX===Q[ge].originX&&k.connectionPair.originY===Q[ge].originY&&k.connectionPair.overlayX===Q[ge].overlayX&&k.connectionPair.overlayY===Q[ge].overlayY)return ge}new i.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),new i.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),new i.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),new i.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2);let e=(()=>{class k{constructor(Ce,Z){this.cdkConnectedOverlay=Ce,this.nzDestroyService=Z,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,d.R)(this.nzDestroyService)).subscribe(F=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(F)})}updateArrowPosition(Ce){const Z=this.getOriginRect(),F=V(Ce);let R=0,O=0;"topLeft"===F||"bottomLeft"===F?R=Z.width/2-14:"topRight"===F||"bottomRight"===F?R=-(Z.width/2-14):"leftTop"===F||"rightTop"===F?O=Z.height/2-10:("leftBottom"===F||"rightBottom"===F)&&(O=-(Z.height/2-10)),(this.cdkConnectedOverlay.offsetX!==R||this.cdkConnectedOverlay.offsetY!==O)&&(this.cdkConnectedOverlay.offsetY=O,this.cdkConnectedOverlay.offsetX=R,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof i.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const Ce=this.getFlexibleConnectedPositionStrategyOrigin();if(Ce instanceof v.SBq)return Ce.nativeElement.getBoundingClientRect();if(Ce instanceof Element)return Ce.getBoundingClientRect();const Z=Ce.width||0,F=Ce.height||0;return{top:Ce.y,bottom:Ce.y+F,left:Ce.x,right:Ce.x+Z,height:F,width:Z}}}return k.\u0275fac=function(Ce){return new(Ce||k)(v.Y36(i.pI),v.Y36(s.kn))},k.\u0275dir=v.lG2({type:k,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[v._Bn([s.kn])]}),(0,t.gn)([(0,L.yF)()],k.prototype,"nzArrowPointAtCenter",void 0),k})(),I=(()=>{class k{}return k.\u0275fac=function(Ce){return new(Ce||k)},k.\u0275mod=v.oAB({type:k}),k.\u0275inj=v.cJS({}),k})()},6879:(Ot,be,a)=>{a.d(be,{e:()=>s,h:()=>d});const t=["moz","ms","webkit"];function d(L){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(L);const Q=t.filter(Y=>`${Y}CancelAnimationFrame`in window||`${Y}CancelRequestAnimationFrame`in window)[0];return Q?(window[`${Q}CancelAnimationFrame`]||window[`${Q}CancelRequestAnimationFrame`]).call(this,L):clearTimeout(L)}const s=function v(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const L=t.filter(Q=>`${Q}RequestAnimationFrame`in window)[0];return L?window[`${L}RequestAnimationFrame`]:function i(){let L=0;return function(Q){const Y=(new Date).getTime(),A=Math.max(0,16-(Y-L)),S=setTimeout(()=>{Q(Y+A)},A);return L=Y+A,S}}()}()},9087:(Ot,be,a)=>{a.d(be,{G_:()=>R,MF:()=>F,Ml:()=>Ce,WV:()=>O,kn:()=>de,ow:()=>P,r3:()=>x,rI:()=>e});var t=a(5879),i=a(8645),v=a(9028),d=a(4716),s=a(7398),L=a(2181),Q=a(9773),Y=a(7921),A=a(3997),S=a(7754),N=a(6814),V=a(6879),U=a(1088);const M=()=>{};let e=(()=>{class j{constructor(re,he){this.ngZone=re,this.rendererFactory2=he,this.resizeSource$=new i.x,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,v.e)(16),(0,d.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(re){return new(re||j)(t.LFG(t.R0b),t.LFG(t.FYo))},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),Ce=(()=>{class j{constructor(re){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=re.createRenderer(null,null)}requestDraggingSequence(re){return this.handleRegistry.size||this.registerDraggingHandler((0,S.z6)(re)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function ge(j){const me=(0,S.wv)(j);return{x:me.pageX,y:me.pageY}}(re),this.currentDraggingSequence=new i.x,this.currentDraggingSequence.pipe((0,s.U)(he=>({x:he.pageX-this.currentStartingPoint.x,y:he.pageY-this.currentStartingPoint.y})),(0,L.h)(he=>Math.abs(he.x)>this.draggingThreshold||Math.abs(he.y)>this.draggingThreshold),(0,d.x)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(re){re?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",he=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(he.touches[0]||he.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",he=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(he)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}}return j.\u0275fac=function(re){return new(re||j)(t.LFG(t.FYo))},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();function Z(j,me,re,he){const Me=re-me;let Oe=j/(he/2);return Oe<1?Me/2*Oe*Oe*Oe+me:Me/2*((Oe-=2)*Oe*Oe+2)+me}let F=(()=>{class j{constructor(re,he){this.ngZone=re,this.doc=he}setScrollTop(re,he=0){re===window?(this.doc.body.scrollTop=he,this.doc.documentElement.scrollTop=he):re.scrollTop=he}getOffset(re){const he={top:0,left:0};if(!re||!re.getClientRects().length)return he;const Me=re.getBoundingClientRect();if(Me.width||Me.height){const Oe=re.ownerDocument.documentElement;he.top=Me.top-Oe.clientTop,he.left=Me.left-Oe.clientLeft}else he.top=Me.top,he.left=Me.left;return he}getScroll(re,he=!0){if(typeof window>"u")return 0;const Me=he?"scrollTop":"scrollLeft";let Oe=0;return this.isWindow(re)?Oe=re[he?"pageYOffset":"pageXOffset"]:re instanceof Document?Oe=re.documentElement[Me]:re&&(Oe=re[Me]),re&&!this.isWindow(re)&&"number"!=typeof Oe&&(Oe=(re.ownerDocument||re).documentElement[Me]),Oe}isWindow(re){return null!=re&&re===re.window}scrollTo(re,he=0,Me={}){const Oe=re||window,kt=this.getScroll(Oe),It=Date.now(),{easing:Tt,callback:gt,duration:_t=450}=Me,Ft=()=>{const bn=Date.now()-It,et=(Tt||Z)(bn>_t?_t:bn,kt,he,_t);this.isWindow(Oe)?Oe.scrollTo(window.pageXOffset,et):Oe instanceof HTMLDocument||"HTMLDocument"===Oe.constructor.name?Oe.documentElement.scrollTop=et:Oe.scrollTop=et,bn<_t?(0,V.e)(Ft):"function"==typeof gt&&this.ngZone.run(gt)};this.ngZone.runOutsideAngular(()=>(0,V.e)(Ft))}}return j.\u0275fac=function(re){return new(re||j)(t.LFG(t.R0b),t.LFG(N.K0))},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();var R=(()=>((R=R||{}).xxl="xxl",R.xl="xl",R.lg="lg",R.md="md",R.sm="sm",R.xs="xs",R))();const O={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},P={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 x=(()=>{class j{constructor(re,he){this.resizeService=re,this.mediaMatcher=he,this.destroy$=new i.x,this.resizeService.subscribe().pipe((0,Q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(re,he){if(he){const Me=()=>this.matchMedia(re,!0);return this.resizeService.subscribe().pipe((0,s.U)(Me),(0,Y.O)(Me()),(0,A.x)((Oe,kt)=>Oe[0]===kt[0]),(0,s.U)(Oe=>Oe[1]))}{const Me=()=>this.matchMedia(re);return this.resizeService.subscribe().pipe((0,s.U)(Me),(0,Y.O)(Me()),(0,A.x)())}}matchMedia(re,he){let Me=R.md;const Oe={};return Object.keys(re).map(kt=>{const It=kt,Tt=this.mediaMatcher.matchMedia(O[It]).matches;Oe[kt]=Tt,Tt&&(Me=It)}),he?[Me,Oe]:Me}}return j.\u0275fac=function(re){return new(re||j)(t.LFG(e),t.LFG(U.vx))},j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),de=(()=>{class j extends i.x{ngOnDestroy(){this.next(),this.complete()}}return j.\u0275fac=function(){let me;return function(he){return(me||(me=t.n5z(j)))(he||j)}}(),j.\u0275prov=t.Yz7({token:j,factory:j.\u0275fac}),j})()},855:(Ot,be,a)=>{a.d(be,{a:()=>d,w:()=>v});var t=a(2831),i=a(5879);let v=(()=>{class s{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(Q,Y){this.elementRef=Q,this.renderer=Y,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return s.\u0275fac=function(Q){return new(Q||s)(i.Y36(i.SBq),i.Y36(i.Qsj))},s.\u0275dir=i.lG2({type:s,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:[i.TTD]}),s})(),d=(()=>{class s{}return s.\u0275fac=function(Q){return new(Q||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[t.ud]}),s})()},7754:(Ot,be,a)=>{a.d(be,{D8:()=>Ge,DX:()=>N,GL:()=>Xt,GM:()=>_n,He:()=>k,J8:()=>st,L8:()=>xe,Ly:()=>je,Rn:()=>O,Sm:()=>Ft,WX:()=>ge,YM:()=>_t,Zu:()=>w,cO:()=>A,hq:()=>K,kK:()=>V,lN:()=>yn,ov:()=>sn,pW:()=>x,qR:()=>me,sw:()=>I,tI:()=>Oe,ui:()=>gt,wU:()=>U,wv:()=>ue,yF:()=>F,z6:()=>de});var t=a(2495),i=a(7032),v=a(8645),d=a(2664),s=a(9666),L=a(2096),Q=a(8180);function A(J,Te){if(!J||!Te||J.length!==Te.length)return!1;const zt=J.length;for(let nt=0;nt"u"||null===J}function U(J,Te){if(J===Te)return!0;if("object"!=typeof J||!J||"object"!=typeof Te||!Te)return!1;const zt=Object.keys(J),nt=Object.keys(Te);if(zt.length!==nt.length)return!1;const qe=Object.prototype.hasOwnProperty.bind(Te);for(let rt=0;rtk(Te,J))}function x(J){if(!J.getClientRects().length)return{top:0,left:0};const Te=J.getBoundingClientRect(),zt=J.ownerDocument.defaultView;return{top:Te.top+zt.pageYOffset,left:Te.left+zt.pageXOffset}}function de(J){return J.type.startsWith("touch")}function ue(J){return de(J)?J.touches[0]||J.changedTouches[0]:J}function me(J,Te="@"){if("string"!=typeof J)return[];const zt=function j(J){const Te=Array.isArray(J)?J:[J];let zt=Te.join("").replace(/(\$|\^)/g,"\\$1");return Te.length>1&&(zt=`[${zt}]`),new RegExp(`(\\s|^)(${zt})[^\\s]*`,"g")}(Te),nt=J.match(zt);return null!==nt?nt.map(qe=>qe.trim()):[]}function Oe(J){return!!J&&"function"==typeof J.then&&"function"==typeof J.catch}function gt(J){return"number"==typeof J&&isFinite(J)}function _t(J,Te){return Math.round(J*Math.pow(10,Te))/Math.pow(10,Te)}function Ft(J,Te=0){return J.reduce((zt,nt)=>zt+nt,Te)}const bn=["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"],et=typeof window<"u",Re=et&&null!=window.mozInnerScreenX,yt=J=>parseInt(J,10);function je(J,Te,zt){if(!et)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const nt=zt&&zt.debug||!1;if(nt){const ut=document.querySelector("#input-textarea-caret-position-mirror-div");ut&&ut.parentNode.removeChild(ut)}const qe=document.createElement("div");qe.id="input-textarea-caret-position-mirror-div",document.body.appendChild(qe);const rt=qe.style,Rt=window.getComputedStyle?window.getComputedStyle(J):J.currentStyle,St="INPUT"===J.nodeName;rt.whiteSpace="pre-wrap",St||(rt.wordWrap="break-word"),rt.position="absolute",nt||(rt.visibility="hidden"),bn.forEach(ut=>{St&&"lineHeight"===ut?rt.lineHeight=Rt.height:rt[ut]=Rt[ut]}),Re?J.scrollHeight>yt(Rt.height)&&(rt.overflowY="scroll"):rt.overflow="hidden",qe.textContent=J.value.substring(0,Te),St&&(qe.textContent=qe.textContent.replace(/\s/g,"\xa0"));const gn=document.createElement("span");gn.textContent=J.value.substring(Te)||".",qe.appendChild(gn);const Ze={top:gn.offsetTop+yt(Rt.borderTopWidth),left:gn.offsetLeft+yt(Rt.borderLeftWidth),height:yt(Rt.lineHeight)};return nt?(gn.style.backgroundColor="#eee",function Ut(J,Te){const zt=getComputedStyle(J).getPropertyValue("font-size"),nt=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(nt),nt.id="DEBUG",nt.style.position="absolute",nt.style.backgroundColor="red",nt.style.height=zt,nt.style.width="1px",nt.style.top=`${J.getBoundingClientRect().top-J.scrollTop+window.pageYOffset+Te.top}px`,nt.style.left=`${J.getBoundingClientRect().left-J.scrollLeft+window.pageXOffset+Te.left}px`}(J,Ze)):document.body.removeChild(qe),Ze}function Xt(J){if(typeof window<"u"&&window.document&&window.document.documentElement){const Te=Array.isArray(J)?J:[J],{documentElement:zt}=window.document;return Te.some(nt=>nt in zt.style)}return!1}function _n(J){return J?Object.keys(J).map(Te=>{const zt=J[Te];return`${Te}:${"string"==typeof zt?zt:`${zt}px`}`}).join(";"):""}const On=1,Jt=3,Nt=8;let Ye;const He={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function Pe(J){if(!J)return 0;const Te=J.match(/^\d*(\.\d*)?/);return Te?Number(Te[0]):0}function xe(J,Te,zt,nt,qe,rt=""){Ye||(Ye=document.createElement("div"),Ye.setAttribute("aria-hidden","true"),document.body.appendChild(Ye));const Rt=window.getComputedStyle(J),St=function We(J){return Array.prototype.slice.apply(J).map(zt=>`${zt}: ${J.getPropertyValue(zt)};`).join("")}(Rt),gn=Pe(Rt.lineHeight),Ze=Math.round(gn*(Te+1)+Pe(Rt.paddingTop)+Pe(Rt.paddingBottom));Ye.setAttribute("style",St),Ye.style.position="fixed",Ye.style.left="0",Ye.style.height="auto",Ye.style.minHeight="auto",Ye.style.maxHeight="auto",Ye.style.top="-999999px",Ye.style.zIndex="-1000",Ye.style.textOverflow="clip",Ye.style.whiteSpace="normal",Ye.style.webkitLineClamp="none";const ut=function Be(J){const Te=[];return J.forEach(zt=>{const nt=Te[Te.length-1];nt&&zt.nodeType===Jt&&nt.nodeType===Jt?nt.data+=zt.data:Te.push(zt)}),Te}(zt),ce=document.createElement("div"),_e=document.createElement("span"),mt=document.createTextNode(rt),Ae=document.createElement("span");function at(){return Ye.offsetHeight{_e.appendChild(Mt)}),_e.appendChild(mt),nt.forEach(Mt=>{Ae.appendChild(Mt.cloneNode(!0))}),ce.appendChild(_e),ce.appendChild(Ae),Ye.appendChild(ce),at()){const Mt=Ye.innerHTML;return Ye.removeChild(ce),{contentNodes:zt,text:Mt,ellipsis:!1}}const Ht=Array.prototype.slice.apply(Ye.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:Mt})=>Mt!==Nt),un=Array.prototype.slice.apply(Ye.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Ye.removeChild(ce),Ye.innerHTML="";const Lt=document.createElement("span");Ye.appendChild(Lt);const dt=document.createTextNode(qe+rt);function ne(Mt,on,Zt=0,Wn=on.length,pn=0){const qn=Math.floor((Zt+Wn)/2);if(Mt.textContent=on.slice(0,qn),Zt>=Wn-1)for(let co=Wn;co>=Zt;co-=1){const _o=on.slice(0,co);if(Mt.textContent=_o,at()||!_o)return co===on.length?{finished:!1,node:document.createTextNode(on)}:{finished:!0,node:document.createTextNode(_o)}}return at()?ne(Mt,on,qn,Wn,qn):ne(Mt,on,Zt,qn,pn)}function B(Mt,on){const Zt=Mt.nodeType;if(Zt===On)return at()?{finished:!1,node:ut[on]}:(Lt.removeChild(Mt),{finished:!0,node:null});if(Zt===Jt){const Wn=Mt.textContent||"",pn=document.createTextNode(Wn);return function ft(Mt){Lt.insertBefore(Mt,dt)}(pn),ne(pn,Wn)}return{finished:!1,node:null}}Lt.appendChild(dt),un.forEach(Mt=>{Ye.appendChild(Mt)});const ze=[];Ht.some((Mt,on)=>{const{finished:Zt,node:Wn}=B(Mt,on);return Wn&&ze.push(Wn),Zt});const $e={contentNodes:ze,text:Ye.innerHTML,ellipsis:!0};for(;Ye.firstChild;)Ye.removeChild(Ye.firstChild);return $e}let te,ae;const De={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Ge(J="vertical",Te="ant"){if(typeof document>"u"||typeof window>"u")return 0;const zt="vertical"===J;if(zt&&te)return te;if(!zt&&ae)return ae;const nt=document.createElement("div");Object.keys(De).forEach(rt=>{nt.style[rt]=De[rt]}),nt.className=`${Te}-hide-scrollbar scroll-div-append-to-body`,zt?nt.style.overflowY="scroll":nt.style.overflowX="scroll",document.body.appendChild(nt);let qe=0;return zt?(qe=nt.offsetWidth-nt.clientWidth,te=qe):(qe=nt.offsetHeight-nt.clientHeight,ae=qe),document.body.removeChild(nt),qe}function sn(){const J=new v.x;return Promise.resolve().then(()=>J.next()),J.pipe((0,Q.q)(1))}function yn(J){return(0,d.b)(J)?J:Oe(J)?(0,s.D)(Promise.resolve(J)):(0,L.of)(J)}function st(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const it="rc-util-key";function lt({mark:J}={}){return J?J.startsWith("data-")?J:`data-${J}`:it}function Pt(J){return J.attachTo?J.attachTo:document.querySelector("head")||document.body}function wt(J,Te={}){if(!st())return null;const zt=document.createElement("style");Te.csp?.nonce&&(zt.nonce=Te.csp?.nonce),zt.innerHTML=J;const nt=Pt(Te),{firstChild:qe}=nt;return Te.prepend&&nt.prepend?nt.prepend(zt):Te.prepend&&qe?nt.insertBefore(zt,qe):nt.appendChild(zt),zt}const Vt=new Map;function K(J,Te,zt={}){const nt=Pt(zt);if(!Vt.has(nt)){const Rt=wt("",zt),{parentNode:St}=Rt;Vt.set(nt,St),St.removeChild(Rt)}const qe=function jt(J,Te={}){const zt=Pt(Te);return Array.from(Vt.get(zt)?.children||[]).find(nt=>"STYLE"===nt.tagName&&nt.getAttribute(lt(Te))===J)}(Te,zt);if(qe)return zt.csp?.nonce&&qe.nonce!==zt.csp?.nonce&&(qe.nonce=zt.csp?.nonce),qe.innerHTML!==J&&(qe.innerHTML=J),qe;const rt=wt(J,zt);return rt?.setAttribute(lt(zt),Te),rt}function w(J,Te,zt){return{[`${J}-status-success`]:"success"===Te,[`${J}-status-warning`]:"warning"===Te,[`${J}-status-error`]:"error"===Te,[`${J}-status-validating`]:"validating"===Te,[`${J}-has-feedback`]:zt}}},1958:(Ot,be,a)=>{a.d(be,{dQ:()=>Q,vG:()=>Y});var t=a(2831),i=a(5879);class v{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(S,N,V,U){this.triggerElement=S,this.ngZone=N,this.insertExtraNode=V,this.platformId=U,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=M=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===M.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}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,N=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 N=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(N&&N[1]&&N[2]&&N[3]&&N[1]===N[2]&&N[2]===N[3])}getWaveColor(S){const N=getComputedStyle(S);return N.getPropertyValue("border-top-color")||N.getPropertyValue("border-color")||N.getPropertyValue("background-color")}runTimeoutOutsideZone(S,N){this.ngZone.runOutsideAngular(()=>setTimeout(S,N))}}const d={disabled:!1},s=new i.OlP("nz-wave-global-options",{providedIn:"root",factory:function L(){return d}});let Q=(()=>{class A{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(N,V,U,M,e){this.ngZone=N,this.elementRef=V,this.config=U,this.animationType=M,this.platformId=e,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let N=!1;return this.config&&"boolean"==typeof this.config.disabled&&(N=this.config.disabled),"NoopAnimations"===this.animationType&&(N=!0),N}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new v(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 A.\u0275fac=function(N){return new(N||A)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(s,8),i.Y36(i.QbO,8),i.Y36(i.Lbi))},A.\u0275dir=i.lG2({type:A,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),A})(),Y=(()=>{class A{}return A.\u0275fac=function(N){return new(N||A)},A.\u0275mod=i.oAB({type:A}),A.\u0275inj=i.cJS({imports:[t.ud]}),A})()},8125:(Ot,be,a)=>{a.d(be,{R7:()=>Jt,q6:()=>Nt,uj:()=>Xt});var t=a(9388),i=a(2831),v=a(6814),d=a(5879),s=a(8324),L=a(655),Q=a(8645),Y=a(3019),A=a(7754),S=a(9773),N=a(7921),V=a(4664),U=a(9028),M=a(9397),e=a(874),I=a(7032),k=a(9087);function ge(Ye,He){1&Ye&&d.Hsn(0)}const Ce=["*"];function Z(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw(3);d.xp6(1),d.Oqu(Pe.nzTitle)}}function F(Ye,He){if(1&Ye&&(d.TgZ(0,"div",6),d.YNc(1,Z,2,1,"ng-container",7),d.qZA()),2&Ye){const Pe=d.oxw(2);d.xp6(1),d.Q6J("nzStringTemplateOutlet",Pe.nzTitle)}}function R(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw(3);d.xp6(1),d.Oqu(Pe.nzExtra)}}function O(Ye,He){if(1&Ye&&(d.TgZ(0,"div",8),d.YNc(1,R,2,1,"ng-container",7),d.qZA()),2&Ye){const Pe=d.oxw(2);d.xp6(1),d.Q6J("nzStringTemplateOutlet",Pe.nzExtra)}}function P(Ye,He){if(1&Ye&&(d.TgZ(0,"div",3),d.YNc(1,F,2,1,"div",4),d.YNc(2,O,2,1,"div",5),d.qZA()),2&Ye){const Pe=d.oxw();d.xp6(1),d.Q6J("ngIf",Pe.nzTitle),d.xp6(1),d.Q6J("ngIf",Pe.nzExtra)}}function x(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw(2).$implicit;d.xp6(1),d.hij(" ",Pe.title," ")}}function de(Ye,He){}function ue(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",14),d.YNc(4,x,2,1,"ng-container",7),d.qZA(),d.TgZ(5,"span",15),d.YNc(6,de,0,0,"ng-template",16),d.qZA()()(),d.BQk()),2&Ye){const Pe=d.oxw().$implicit,We=d.oxw(3);d.xp6(1),d.Q6J("colSpan",Pe.span),d.xp6(2),d.ekj("ant-descriptions-item-no-colon",!We.nzColon),d.xp6(1),d.Q6J("nzStringTemplateOutlet",Pe.title),d.xp6(2),d.Q6J("ngTemplateOutlet",Pe.content)}}function j(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw(2).$implicit;d.xp6(1),d.hij(" ",Pe.title," ")}}function me(Ye,He){}function re(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",14),d.YNc(2,j,2,1,"ng-container",7),d.qZA(),d.TgZ(3,"td",17),d.YNc(4,me,0,0,"ng-template",16),d.qZA(),d.BQk()),2&Ye){const Pe=d.oxw().$implicit;d.xp6(2),d.Q6J("nzStringTemplateOutlet",Pe.title),d.xp6(1),d.Q6J("colSpan",2*Pe.span-1),d.xp6(1),d.Q6J("ngTemplateOutlet",Pe.content)}}function he(Ye,He){if(1&Ye&&(d.ynx(0),d.YNc(1,ue,7,5,"ng-container",2),d.YNc(2,re,5,3,"ng-container",2),d.BQk()),2&Ye){const Pe=d.oxw(3);d.xp6(1),d.Q6J("ngIf",!Pe.nzBordered),d.xp6(1),d.Q6J("ngIf",Pe.nzBordered)}}function Me(Ye,He){if(1&Ye&&(d.TgZ(0,"tr",10),d.YNc(1,he,3,2,"ng-container",11),d.qZA()),2&Ye){const Pe=He.$implicit;d.xp6(1),d.Q6J("ngForOf",Pe)}}function Oe(Ye,He){if(1&Ye&&(d.ynx(0),d.YNc(1,Me,2,1,"tr",9),d.BQk()),2&Ye){const Pe=d.oxw();d.xp6(1),d.Q6J("ngForOf",Pe.itemMatrix)}}function kt(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw().$implicit;d.xp6(1),d.hij(" ",Pe.title," ")}}function It(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",14),d.YNc(4,kt,2,1,"ng-container",7),d.qZA()()(),d.BQk()),2&Ye){const Pe=He.$implicit,We=d.oxw(4);d.xp6(1),d.Q6J("colSpan",Pe.span),d.xp6(2),d.ekj("ant-descriptions-item-no-colon",!We.nzColon),d.xp6(1),d.Q6J("nzStringTemplateOutlet",Pe.title)}}function Tt(Ye,He){}function gt(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",12)(2,"div",13)(3,"span",15),d.YNc(4,Tt,0,0,"ng-template",16),d.qZA()()(),d.BQk()),2&Ye){const Pe=He.$implicit;d.xp6(1),d.Q6J("colSpan",Pe.span),d.xp6(3),d.Q6J("ngTemplateOutlet",Pe.content)}}function _t(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"tr",10),d.YNc(2,It,5,4,"ng-container",11),d.qZA(),d.TgZ(3,"tr",10),d.YNc(4,gt,5,2,"ng-container",11),d.qZA(),d.BQk()),2&Ye){const Pe=He.$implicit;d.xp6(2),d.Q6J("ngForOf",Pe),d.xp6(2),d.Q6J("ngForOf",Pe)}}function Ft(Ye,He){if(1&Ye&&(d.ynx(0),d.YNc(1,_t,5,2,"ng-container",11),d.BQk()),2&Ye){const Pe=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",Pe.itemMatrix)}}function rn(Ye,He){if(1&Ye&&(d.ynx(0),d._uU(1),d.BQk()),2&Ye){const Pe=d.oxw().$implicit;d.xp6(1),d.hij(" ",Pe.title," ")}}function bn(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",18),d.YNc(2,rn,2,1,"ng-container",7),d.qZA(),d.BQk()),2&Ye){const Pe=He.$implicit;d.xp6(1),d.Q6J("colSpan",Pe.span),d.xp6(1),d.Q6J("nzStringTemplateOutlet",Pe.title)}}function et(Ye,He){}function Re(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"td",17),d.YNc(2,et,0,0,"ng-template",16),d.qZA(),d.BQk()),2&Ye){const Pe=He.$implicit;d.xp6(1),d.Q6J("colSpan",Pe.span),d.xp6(1),d.Q6J("ngTemplateOutlet",Pe.content)}}function yt(Ye,He){if(1&Ye&&(d.ynx(0),d.TgZ(1,"tr",10),d.YNc(2,bn,3,2,"ng-container",11),d.qZA(),d.TgZ(3,"tr",10),d.YNc(4,Re,3,2,"ng-container",11),d.qZA(),d.BQk()),2&Ye){const Pe=He.$implicit;d.xp6(2),d.Q6J("ngForOf",Pe),d.xp6(2),d.Q6J("ngForOf",Pe)}}function je(Ye,He){if(1&Ye&&(d.ynx(0),d.YNc(1,yt,5,2,"ng-container",11),d.BQk()),2&Ye){const Pe=d.oxw(2);d.xp6(1),d.Q6J("ngForOf",Pe.itemMatrix)}}function Ut(Ye,He){if(1&Ye&&(d.ynx(0),d.YNc(1,Ft,2,1,"ng-container",2),d.YNc(2,je,2,1,"ng-container",2),d.BQk()),2&Ye){const Pe=d.oxw();d.xp6(1),d.Q6J("ngIf",!Pe.nzBordered),d.xp6(1),d.Q6J("ngIf",Pe.nzBordered)}}let Xt=(()=>{class Ye{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new Q.x}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return Ye.\u0275fac=function(Pe){return new(Pe||Ye)},Ye.\u0275cmp=d.Xpm({type:Ye,selectors:[["nz-descriptions-item"]],viewQuery:function(Pe,We){if(1&Pe&&d.Gf(d.Rgc,7),2&Pe){let Be;d.iGM(Be=d.CRH())&&(We.content=Be.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[d.TTD],ngContentSelectors:Ce,decls:1,vars:0,template:function(Pe,We){1&Pe&&(d.F$t(),d.YNc(0,ge,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,L.gn)([(0,A.Rn)()],Ye.prototype,"nzSpan",void 0),Ye})();const On={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Jt=(()=>{class Ye{constructor(Pe,We,Be,xe){this.nzConfigService=Pe,this.cdr=We,this.breakpointService=Be,this.directionality=xe,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=On,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=k.G_.md,this.destroy$=new Q.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,S.R)(this.destroy$)).subscribe(Pe=>{this.dir=Pe})}ngOnChanges(Pe){Pe.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const Pe=this.items.changes.pipe((0,N.O)(this.items),(0,S.R)(this.destroy$));(0,Y.T)(Pe,Pe.pipe((0,V.w)(()=>(0,Y.T)(...this.items.map(We=>We.inputChange$)).pipe((0,U.e)(16)))),this.breakpointService.subscribe(k.WV).pipe((0,M.b)(We=>this.breakpoint=We))).pipe((0,S.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let Pe=[],We=0;const Be=this.realColumn=this.getColumn(),xe=this.items.toArray(),te=xe.length,ae=[],De=()=>{ae.push(Pe),Pe=[],We=0};for(let Ge=0;Ge=Be?(We>Be&&(0,I.ZK)(`"nzColumn" is ${Be} but we have row length ${We}`),Pe.push({title:sn,content:yn,span:Be-(We-st)}),De()):Ge===te-1?(Pe.push({title:sn,content:yn,span:Be-(We-st)}),De()):Pe.push({title:sn,content:yn,span:st})}this.itemMatrix=ae}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return Ye.\u0275fac=function(Pe){return new(Pe||Ye)(d.Y36(e.jY),d.Y36(d.sBO),d.Y36(k.r3),d.Y36(t.Is,8))},Ye.\u0275cmp=d.Xpm({type:Ye,selectors:[["nz-descriptions"]],contentQueries:function(Pe,We,Be){if(1&Pe&&d.Suo(Be,Xt,4),2&Pe){let xe;d.iGM(xe=d.CRH())&&(We.items=xe)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(Pe,We){2&Pe&&d.ekj("ant-descriptions-bordered",We.nzBordered)("ant-descriptions-middle","middle"===We.nzSize)("ant-descriptions-small","small"===We.nzSize)("ant-descriptions-rtl","rtl"===We.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[d.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(Pe,We){1&Pe&&(d.YNc(0,P,3,2,"div",0),d.TgZ(1,"div",1)(2,"table")(3,"tbody"),d.YNc(4,Oe,2,1,"ng-container",2),d.YNc(5,Ut,3,2,"ng-container",2),d.qZA()()()),2&Pe&&(d.Q6J("ngIf",We.nzTitle||We.nzExtra),d.xp6(4),d.Q6J("ngIf","horizontal"===We.nzLayout),d.xp6(1),d.Q6J("ngIf","vertical"===We.nzLayout))},dependencies:[v.sg,v.O5,v.tP,s.f],encapsulation:2,changeDetection:0}),(0,L.gn)([(0,A.yF)(),(0,e.oS)()],Ye.prototype,"nzBordered",void 0),(0,L.gn)([(0,e.oS)()],Ye.prototype,"nzColumn",void 0),(0,L.gn)([(0,e.oS)()],Ye.prototype,"nzSize",void 0),(0,L.gn)([(0,e.oS)(),(0,A.yF)()],Ye.prototype,"nzColon",void 0),Ye})(),Nt=(()=>{class Ye{}return Ye.\u0275fac=function(Pe){return new(Pe||Ye)},Ye.\u0275mod=d.oAB({type:Ye}),Ye.\u0275inj=d.cJS({imports:[t.vT,v.ez,s.T,i.ud]}),Ye})()},6987:(Ot,be,a)=>{a.d(be,{S:()=>S,g:()=>A});var t=a(655),i=a(5879),v=a(7754),d=a(6814),s=a(8324),L=a(9388);function Q(N,V){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const U=i.oxw(2);i.xp6(1),i.Oqu(U.nzText)}}function Y(N,V){if(1&N&&(i.TgZ(0,"span",1),i.YNc(1,Q,2,1,"ng-container",2),i.qZA()),2&N){const U=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",U.nzText)}}let A=(()=>{class N{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return N.\u0275fac=function(U){return new(U||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(U,M){2&U&&i.ekj("ant-divider-horizontal","horizontal"===M.nzType)("ant-divider-vertical","vertical"===M.nzType)("ant-divider-with-text",M.nzText)("ant-divider-plain",M.nzPlain)("ant-divider-with-text-left",M.nzText&&"left"===M.nzOrientation)("ant-divider-with-text-right",M.nzText&&"right"===M.nzOrientation)("ant-divider-with-text-center",M.nzText&&"center"===M.nzOrientation)("ant-divider-dashed",M.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(U,M){1&U&&i.YNc(0,Y,2,1,"span",0),2&U&&i.Q6J("ngIf",M.nzText)},dependencies:[d.O5,s.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.yF)()],N.prototype,"nzDashed",void 0),(0,t.gn)([(0,v.yF)()],N.prototype,"nzPlain",void 0),N})(),S=(()=>{class N{}return N.\u0275fac=function(U){return new(U||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[L.vT,d.ez,s.T]}),N})()},2787:(Ot,be,a)=>{a.d(be,{RR:()=>Ft,b1:()=>rn,cm:()=>It,wA:()=>_t});var t=a(655),i=a(6028),v=a(8484),d=a(5879),s=a(8645),L=a(5619),Q=a(3019),Y=a(2438),A=a(6232),S=a(2572),N=a(975),V=a(7398),U=a(4664),M=a(2181),e=a(9028),I=a(3997),k=a(9773),ge=a(874),Ce=a(5448),Z=a(7754),F=a(9594),R=a(2831),O=a(9388),P=a(6814),x=a(2840),de=a(331),ue=a(8324),j=a(551),me=a(3460),re=a(4194);function he(Re,yt){if(1&Re){const je=d.EpF();d.TgZ(0,"div",0),d.NdJ("@slideMotion.done",function(Xt){d.CHM(je);const _n=d.oxw();return d.KtG(_n.onAnimationEvent(Xt))})("mouseenter",function(){d.CHM(je);const Xt=d.oxw();return d.KtG(Xt.setMouseState(!0))})("mouseleave",function(){d.CHM(je);const Xt=d.oxw();return d.KtG(Xt.setMouseState(!1))}),d.Hsn(1),d.qZA()}if(2&Re){const je=d.oxw();d.ekj("ant-dropdown-rtl","rtl"===je.dir),d.Q6J("ngClass",je.nzOverlayClassName)("ngStyle",je.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==je.noAnimation||!je.noAnimation.nzNoAnimation))("nzNoAnimation",null==je.noAnimation?null:je.noAnimation.nzNoAnimation)}}const Me=["*"],kt=[Ce.yW.bottomLeft,Ce.yW.bottomRight,Ce.yW.topRight,Ce.yW.topLeft];let It=(()=>{class Re{setDropdownMenuValue(je,Ut){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(je,Ut)}constructor(je,Ut,Xt,_n,On,Jt){this.nzConfigService=je,this.elementRef=Ut,this.overlay=Xt,this.renderer=_n,this.viewContainerRef=On,this.platform=Jt,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new s.x,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new L.X(!1),this.nzTrigger$=new L.X("hover"),this.overlayClose$=new s.x,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}ngAfterViewInit(){if(this.nzDropdownMenu){const je=this.elementRef.nativeElement,Ut=(0,Q.T)((0,Y.R)(je,"mouseenter").pipe((0,N.h)(!0)),(0,Y.R)(je,"mouseleave").pipe((0,N.h)(!1))),_n=(0,Q.T)(this.nzDropdownMenu.mouseState$,Ut),On=(0,Y.R)(je,"click").pipe((0,V.U)(()=>!this.nzVisible)),Jt=this.nzTrigger$.pipe((0,U.w)(Pe=>"hover"===Pe?_n:"click"===Pe?On:A.E)),Nt=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,M.h)(()=>this.nzClickHide),(0,N.h)(!1)),Ye=(0,Q.T)(Jt,Nt,this.overlayClose$).pipe((0,M.h)(()=>!this.nzDisabled)),He=(0,Q.T)(this.inputVisible$,Ye);(0,S.a)([He,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,V.U)(([Pe,We])=>Pe||We),(0,e.e)(150),(0,I.x)(),(0,M.h)(()=>this.platform.isBrowser),(0,k.R)(this.destroy$)).subscribe(Pe=>{const Be=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:je).getBoundingClientRect().width;this.nzVisible!==Pe&&this.nzVisibleChange.emit(Pe),this.nzVisible=Pe,Pe?(this.overlayRef?this.overlayRef.getConfig().minWidth=Be:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:Be,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,Q.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,M.h)(xe=>!this.elementRef.nativeElement.contains(xe.target))),this.overlayRef.keydownEvents().pipe((0,M.h)(xe=>xe.keyCode===i.hY&&!(0,i.Vb)(xe)))).pipe((0,k.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([Ce.yW[this.nzPlacement],...kt]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new v.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,k.R)(this.destroy$)).subscribe(Pe=>{"void"===Pe.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(je){const{nzVisible:Ut,nzDisabled:Xt,nzOverlayClassName:_n,nzOverlayStyle:On,nzTrigger:Jt}=je;if(Jt&&this.nzTrigger$.next(this.nzTrigger),Ut&&this.inputVisible$.next(this.nzVisible),Xt){const Nt=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Nt,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Nt,"disabled")}_n&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),On&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return Re.\u0275fac=function(je){return new(je||Re)(d.Y36(ge.jY),d.Y36(d.SBq),d.Y36(F.aV),d.Y36(d.Qsj),d.Y36(d.s_b),d.Y36(R.t4))},Re.\u0275dir=d.lG2({type:Re,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,t.gn)([(0,ge.oS)(),(0,Z.yF)()],Re.prototype,"nzBackdrop",void 0),(0,t.gn)([(0,Z.yF)()],Re.prototype,"nzClickHide",void 0),(0,t.gn)([(0,Z.yF)()],Re.prototype,"nzDisabled",void 0),(0,t.gn)([(0,Z.yF)()],Re.prototype,"nzVisible",void 0),Re})(),Tt=(()=>{class Re{}return Re.\u0275fac=function(je){return new(je||Re)},Re.\u0275mod=d.oAB({type:Re}),Re.\u0275inj=d.cJS({}),Re})(),_t=(()=>{class Re{constructor(je,Ut,Xt){this.renderer=je,this.nzButtonGroupComponent=Ut,this.elementRef=Xt}ngAfterViewInit(){const je=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&je&&this.renderer.addClass(je,"ant-dropdown-button")}}return Re.\u0275fac=function(je){return new(je||Re)(d.Y36(d.Qsj),d.Y36(x.fY,9),d.Y36(d.SBq))},Re.\u0275dir=d.lG2({type:Re,selectors:[["","nz-button","","nz-dropdown",""]]}),Re})(),Ft=(()=>{class Re{onAnimationEvent(je){this.animationStateChange$.emit(je)}setMouseState(je){this.mouseState$.next(je)}setValue(je,Ut){this[je]=Ut,this.cdr.markForCheck()}constructor(je,Ut,Xt,_n,On,Jt,Nt){this.cdr=je,this.elementRef=Ut,this.renderer=Xt,this.viewContainerRef=_n,this.nzMenuService=On,this.directionality=Jt,this.noAnimation=Nt,this.mouseState$=new L.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 s.x}ngOnInit(){this.directionality.change?.pipe((0,k.R)(this.destroy$)).subscribe(je=>{this.dir=je,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 Re.\u0275fac=function(je){return new(je||Re)(d.Y36(d.sBO),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.s_b),d.Y36(me.hl),d.Y36(O.Is,8),d.Y36(de.P,9))},Re.\u0275cmp=d.Xpm({type:Re,selectors:[["nz-dropdown-menu"]],viewQuery:function(je,Ut){if(1&je&&d.Gf(d.Rgc,7),2&je){let Xt;d.iGM(Xt=d.CRH())&&(Ut.templateRef=Xt.first)}},exportAs:["nzDropdownMenu"],features:[d._Bn([me.hl,{provide:me.Cc,useValue:!0}])],ngContentSelectors:Me,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(je,Ut){1&je&&(d.F$t(),d.YNc(0,he,2,7,"ng-template"))},dependencies:[P.mk,P.PC,de.P],encapsulation:2,data:{animation:[re.mF]},changeDetection:0}),Re})(),rn=(()=>{class Re{}return Re.\u0275fac=function(je){return new(je||Re)},Re.\u0275mod=d.oAB({type:Re}),Re.\u0275inj=d.cJS({imports:[O.vT,P.ez,F.U8,x.sL,me.ip,j.PV,de.g,R.ud,Ce.e4,Tt,ue.T,me.ip]}),Re})();new F.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new F.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new F.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new F.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},804:(Ot,be,a)=>{a.d(be,{Xo:()=>kt,gB:()=>Oe,p9:()=>he});var t=a(8484),i=a(5879),v=a(8645),d=a(9773),s=a(7921),L=a(874),Q=a(6814),Y=a(1752),A=a(8324),S=a(9388);function N(It,Tt){if(1&It&&(i.ynx(0),i._UZ(1,"img",5),i.BQk()),2&It){const gt=i.oxw(2);i.xp6(1),i.Q6J("src",gt.nzNotFoundImage,i.LSH)("alt",gt.isContentString?gt.nzNotFoundContent:"empty")}}function V(It,Tt){if(1&It&&(i.ynx(0),i.YNc(1,N,2,2,"ng-container",4),i.BQk()),2&It){const gt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",gt.nzNotFoundImage)}}function U(It,Tt){1&It&&i._UZ(0,"nz-empty-default")}function M(It,Tt){1&It&&i._UZ(0,"nz-empty-simple")}function e(It,Tt){if(1&It&&(i.ynx(0),i._uU(1),i.BQk()),2&It){const gt=i.oxw(2);i.xp6(1),i.hij(" ",gt.isContentString?gt.nzNotFoundContent:gt.locale.description," ")}}function I(It,Tt){if(1&It&&(i.TgZ(0,"p",6),i.YNc(1,e,2,1,"ng-container",4),i.qZA()),2&It){const gt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",gt.nzNotFoundContent)}}function k(It,Tt){if(1&It&&(i.ynx(0),i._uU(1),i.BQk()),2&It){const gt=i.oxw(2);i.xp6(1),i.hij(" ",gt.nzNotFoundFooter," ")}}function ge(It,Tt){if(1&It&&(i.TgZ(0,"div",7),i.YNc(1,k,2,1,"ng-container",4),i.qZA()),2&It){const gt=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",gt.nzNotFoundFooter)}}function Ce(It,Tt){1&It&&i._UZ(0,"nz-empty",6),2&It&&i.Q6J("nzNotFoundImage","simple")}function Z(It,Tt){1&It&&i._UZ(0,"nz-empty",7),2&It&&i.Q6J("nzNotFoundImage","simple")}function F(It,Tt){1&It&&i._UZ(0,"nz-empty")}function R(It,Tt){if(1&It&&(i.ynx(0,2),i.YNc(1,Ce,1,1,"nz-empty",3),i.YNc(2,Z,1,1,"nz-empty",4),i.YNc(3,F,1,0,"nz-empty",5),i.BQk()),2&It){const gt=i.oxw();i.Q6J("ngSwitch",gt.size),i.xp6(1),i.Q6J("ngSwitchCase","normal"),i.xp6(1),i.Q6J("ngSwitchCase","small")}}function O(It,Tt){}function P(It,Tt){if(1&It&&i.YNc(0,O,0,0,"ng-template",8),2&It){const gt=i.oxw(2);i.Q6J("cdkPortalOutlet",gt.contentPortal)}}function x(It,Tt){if(1&It&&(i.ynx(0),i._uU(1),i.BQk()),2&It){const gt=i.oxw(2);i.xp6(1),i.hij(" ",gt.content," ")}}function de(It,Tt){if(1&It&&(i.ynx(0),i.YNc(1,P,1,1,null,1),i.YNc(2,x,2,1,"ng-container",1),i.BQk()),2&It){const gt=i.oxw();i.xp6(1),i.Q6J("ngIf","string"!==gt.contentType),i.xp6(1),i.Q6J("ngIf","string"===gt.contentType)}}const ue=new i.OlP("nz-empty-component-name");let j=(()=>{class It{}return It.\u0275fac=function(gt){return new(gt||It)},It.\u0275cmp=i.Xpm({type:It,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(gt,_t){1>&&(i.O4$(),i.TgZ(0,"svg",0)(1,"g",1)(2,"g",2),i._UZ(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),i.qZA(),i._UZ(8,"path",8),i.TgZ(9,"g",9),i._UZ(10,"ellipse",10)(11,"path",11),i.qZA()()())},encapsulation:2,changeDetection:0}),It})(),me=(()=>{class It{}return It.\u0275fac=function(gt){return new(gt||It)},It.\u0275cmp=i.Xpm({type:It,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(gt,_t){1>&&(i.O4$(),i.TgZ(0,"svg",0)(1,"g",1),i._UZ(2,"ellipse",2),i.TgZ(3,"g",3),i._UZ(4,"path",4)(5,"path",5),i.qZA()()())},encapsulation:2,changeDetection:0}),It})();const re=["default","simple"];let he=(()=>{class It{constructor(gt,_t){this.i18n=gt,this.cdr=_t,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new v.x}ngOnChanges(gt){const{nzNotFoundContent:_t,nzNotFoundImage:Ft}=gt;if(_t&&(this.isContentString="string"==typeof _t.currentValue),Ft){const rn=Ft.currentValue||"default";this.isImageBuildIn=re.findIndex(bn=>bn===rn)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return It.\u0275fac=function(gt){return new(gt||It)(i.Y36(Y.wi),i.Y36(i.sBO))},It.\u0275cmp=i.Xpm({type:It,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[i.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(gt,_t){1>&&(i.TgZ(0,"div",0),i.YNc(1,V,2,1,"ng-container",1),i.YNc(2,U,1,0,"nz-empty-default",1),i.YNc(3,M,1,0,"nz-empty-simple",1),i.qZA(),i.YNc(4,I,2,1,"p",2),i.YNc(5,ge,2,1,"div",3)),2>&&(i.xp6(1),i.Q6J("ngIf",!_t.isImageBuildIn),i.xp6(1),i.Q6J("ngIf",_t.isImageBuildIn&&"simple"!==_t.nzNotFoundImage),i.xp6(1),i.Q6J("ngIf",_t.isImageBuildIn&&"simple"===_t.nzNotFoundImage),i.xp6(1),i.Q6J("ngIf",null!==_t.nzNotFoundContent),i.xp6(1),i.Q6J("ngIf",_t.nzNotFoundFooter))},dependencies:[Q.O5,A.f,j,me],encapsulation:2,changeDetection:0}),It})(),Oe=(()=>{class It{constructor(gt,_t,Ft,rn){this.configService=gt,this.viewContainerRef=_t,this.cdr=Ft,this.injector=rn,this.contentType="string",this.size="",this.destroy$=new v.x}ngOnChanges(gt){gt.nzComponentName&&(this.size=function Me(It){switch(It){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(gt.nzComponentName.currentValue)),gt.specificContent&&!gt.specificContent.isFirstChange()&&(this.content=gt.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const gt=this.content;if("string"==typeof gt)this.contentType="string";else if(gt instanceof i.Rgc){const _t={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.UE(gt,this.viewContainerRef,_t)}else if(gt instanceof i.DyG){const _t=i.zs3.create({parent:this.injector,providers:[{provide:ue,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.C5(gt,this.viewContainerRef,_t)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,s.O)(!0),(0,d.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return It.\u0275fac=function(gt){return new(gt||It)(i.Y36(L.jY),i.Y36(i.s_b),i.Y36(i.sBO),i.Y36(i.zs3))},It.\u0275cmp=i.Xpm({type:It,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[i.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(gt,_t){1>&&(i.YNc(0,R,4,3,"ng-container",0),i.YNc(1,de,3,2,"ng-container",1)),2>&&(i.Q6J("ngIf",!_t.content&&null!==_t.specificContent),i.xp6(1),i.Q6J("ngIf",_t.content))},dependencies:[Q.O5,Q.RF,Q.n9,Q.ED,t.Pl,he],encapsulation:2,changeDetection:0}),It})(),kt=(()=>{class It{}return It.\u0275fac=function(gt){return new(gt||It)},It.\u0275mod=i.oAB({type:It}),It.\u0275inj=i.cJS({imports:[S.vT,Q.ez,t.eL,A.T,Y.YI]}),It})()},3599:(Ot,be,a)=>{a.d(be,{Fd:()=>gt,Lr:()=>Tt,Nx:()=>Oe,U5:()=>et,iK:()=>Ft});var t=a(9388),i=a(1088),v=a(2831),d=a(6814),s=a(5879),L=a(8324),Q=a(95),Y=a(551),A=a(6109),S=a(6223),N=a(8645),V=a(7394),U=a(2181),M=a(7398),e=a(9773),I=a(7921),k=a(9397),ge=a(4194),Ce=a(883),Z=a(7754),F=a(1752),R=a(655),O=a(874);const P=["*"];function x(Re,yt){if(1&Re&&(s.ynx(0),s._uU(1),s.BQk()),2&Re){const je=s.oxw(2);s.xp6(1),s.Oqu(je.innerTip)}}const de=function(Re){return[Re]},ue=function(Re){return{$implicit:Re}};function j(Re,yt){if(1&Re&&(s.TgZ(0,"div",4)(1,"div",5),s.YNc(2,x,2,1,"ng-container",6),s.qZA()()),2&Re){const je=s.oxw();s.Q6J("@helpMotion",void 0),s.xp6(1),s.Q6J("ngClass",s.VKq(4,de,"ant-form-item-explain-"+je.status)),s.xp6(1),s.Q6J("nzStringTemplateOutlet",je.innerTip)("nzStringTemplateOutletContext",s.VKq(6,ue,je.validateControl))}}function me(Re,yt){if(1&Re&&(s.ynx(0),s._uU(1),s.BQk()),2&Re){const je=s.oxw(2);s.xp6(1),s.Oqu(je.nzExtra)}}function re(Re,yt){if(1&Re&&(s.TgZ(0,"div",7),s.YNc(1,me,2,1,"ng-container",8),s.qZA()),2&Re){const je=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",je.nzExtra)}}function he(Re,yt){if(1&Re&&(s.ynx(0),s._UZ(1,"span",3),s.BQk()),2&Re){const je=yt.$implicit,Ut=s.oxw(2);s.xp6(1),s.Q6J("nzType",je)("nzTheme",Ut.tooltipIcon.theme)}}function Me(Re,yt){if(1&Re&&(s.TgZ(0,"span",1),s.YNc(1,he,2,2,"ng-container",2),s.qZA()),2&Re){const je=s.oxw();s.Q6J("nzTooltipTitle",je.nzTooltipTitle),s.xp6(1),s.Q6J("nzStringTemplateOutlet",je.tooltipIcon.type)}}let Oe=(()=>{class Re{setWithHelpViaTips(je){this.withHelpClass=je,this.cdr.markForCheck()}setStatus(je){this.status=je,this.cdr.markForCheck()}setHasFeedback(je){this.hasFeedback=je,this.cdr.markForCheck()}constructor(je){this.cdr=je,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new N.x}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Re.\u0275fac=function(je){return new(je||Re)(s.Y36(s.sBO))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(je,Ut){2&je&&s.ekj("ant-form-item-has-success","success"===Ut.status)("ant-form-item-has-warning","warning"===Ut.status)("ant-form-item-has-error","error"===Ut.status)("ant-form-item-is-validating","validating"===Ut.status)("ant-form-item-has-feedback",Ut.hasFeedback&&Ut.status)("ant-form-item-with-help",Ut.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:P,decls:1,vars:0,template:function(je,Ut){1&je&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Re})();const It={type:"question-circle",theme:"outline"};let Tt=(()=>{class Re{getInputObservable(je){return this.inputChanges$.pipe((0,U.h)(Ut=>je in Ut),(0,M.U)(Ut=>Ut[je]))}constructor(je,Ut){this.nzConfigService=je,this.directionality=Ut,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=It,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new N.x,this.inputChanges$=new N.x,this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.R)(this.destroy$)).subscribe(Xt=>{this.dir=Xt})}ngOnChanges(je){this.inputChanges$.next(je)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}}return Re.\u0275fac=function(je){return new(je||Re)(s.Y36(O.jY),s.Y36(t.Is,8))},Re.\u0275dir=s.lG2({type:Re,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(je,Ut){2&je&&s.ekj("ant-form-horizontal","horizontal"===Ut.nzLayout)("ant-form-vertical","vertical"===Ut.nzLayout)("ant-form-inline","inline"===Ut.nzLayout)("ant-form-rtl","rtl"===Ut.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzForm"],features:[s.TTD]}),(0,R.gn)([(0,O.oS)(),(0,Z.yF)()],Re.prototype,"nzNoColon",void 0),(0,R.gn)([(0,O.oS)()],Re.prototype,"nzAutoTips",void 0),(0,R.gn)([(0,Z.yF)()],Re.prototype,"nzDisableAutoTips",void 0),(0,R.gn)([(0,O.oS)()],Re.prototype,"nzTooltipIcon",void 0),(0,R.gn)([(0,O.oS)(),(0,Z.yF)()],Re.prototype,"nzLabelWrap",void 0),Re})(),gt=(()=>{class Re{get disableAutoTips(){return"default"!==this.nzDisableAutoTips?(0,Z.sw)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(je){this._hasFeedback=(0,Z.sw)(je),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(je){je instanceof S.TO||je instanceof S.On?(this.validateControl=je,this.validateString=null,this.watchControl()):je instanceof S.u?(this.validateControl=je.control,this.validateString=null,this.watchControl()):(this.validateString=je,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,I.O)(null),(0,e.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(je){let Ut;return Ut="warning"===je||this.validateControlStatus("INVALID","warning")?"warning":"error"===je||this.validateControlStatus("INVALID")?"error":"validating"===je||"pending"===je||this.validateControlStatus("PENDING")?"validating":"success"===je||this.validateControlStatus("VALID")?"success":"",Ut}validateControlStatus(je,Ut){if(this.validateControl){const{dirty:Xt,touched:_n,status:On}=this.validateControl;return(!!Xt||!!_n)&&(Ut?this.validateControl.hasError(Ut):On===je)}return!1}getInnerTip(je){switch(je){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(){if(this.validateControl){const je=this.validateControl.errors||{};let Ut="";for(const Xt in je)if(je.hasOwnProperty(Xt)&&(Ut=je[Xt]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[Xt]??this.nzAutoTips.default?.[Xt]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[Xt]??this.nzFormDirective?.nzAutoTips.default?.[Xt]),Ut)break;this.autoErrorTip=Ut}}subscribeAutoTips(je){je?.pipe((0,e.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(je,Ut,Xt,_n,On){this.nzFormItemComponent=je,this.cdr=Ut,this.nzFormDirective=_n,this.nzFormStatusService=On,this._hasFeedback=!1,this.validateChanges=V.w0.EMPTY,this.validateString=null,this.destroyed$=new N.x,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",this.subscribeAutoTips(Xt.localeChange.pipe((0,k.b)(Jt=>this.localeId=Jt.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,U.h)(()=>"default"===this.nzDisableAutoTips)))}ngOnChanges(je){const{nzDisableAutoTips:Ut,nzAutoTips:Xt,nzSuccessTip:_n,nzWarningTip:On,nzErrorTip:Jt,nzValidatingTip:Nt}=je;Ut||Xt?(this.updateAutoErrorTip(),this.setStatus()):(_n||On||Jt||Nt)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof S.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return Re.\u0275fac=function(je){return new(je||Re)(s.Y36(Oe,9),s.Y36(s.sBO),s.Y36(F.wi),s.Y36(Tt,8),s.Y36(Ce.kH))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["nz-form-control"]],contentQueries:function(je,Ut,Xt){if(1&je&&s.Suo(Xt,S.a5,5),2&je){let _n;s.iGM(_n=s.CRH())&&(Ut.defaultValidateControl=_n.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[s._Bn([Ce.kH]),s.TTD],ngContentSelectors:P,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],[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(je,Ut){1&je&&(s.F$t(),s.TgZ(0,"div",0)(1,"div",1),s.Hsn(2),s.qZA()(),s.YNc(3,j,3,8,"div",2),s.YNc(4,re,2,1,"div",3)),2&je&&(s.xp6(3),s.Q6J("ngIf",Ut.innerTip),s.xp6(1),s.Q6J("ngIf",Ut.nzExtra))},dependencies:[d.mk,d.O5,L.f],encapsulation:2,data:{animation:[ge.c8]},changeDetection:0}),Re})();function _t(Re){return{...It,..."string"==typeof Re?{type:Re}:Re}}let Ft=(()=>{class Re{set nzNoColon(je){this.noColon=(0,Z.sw)(je)}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(je){this._tooltipIcon=_t(je)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:_t(this.nzFormDirective?.nzTooltipIcon||It)}set nzLabelAlign(je){this.labelAlign=je}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(je){this.labelWrap=(0,Z.sw)(je)}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(je,Ut){this.cdr=je,this.nzFormDirective=Ut,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new N.x,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,U.h)(()=>"default"===this.noColon),(0,e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,U.h)(()=>"default"===this._tooltipIcon),(0,e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,U.h)(()=>"default"===this.labelAlign),(0,e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,U.h)(()=>"default"===this.labelWrap),(0,e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return Re.\u0275fac=function(je){return new(je||Re)(s.Y36(s.sBO),s.Y36(Tt,12))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(je,Ut){2&je&&s.ekj("ant-form-item-label-left","left"===Ut.nzLabelAlign)("ant-form-item-label-wrap",Ut.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:"nzLabelWrap"},exportAs:["nzFormLabel"],ngContentSelectors:P,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(je,Ut){1&je&&(s.F$t(),s.TgZ(0,"label"),s.Hsn(1),s.YNc(2,Me,2,2,"span",0),s.qZA()),2&je&&(s.ekj("ant-form-item-no-colon",Ut.nzNoColon)("ant-form-item-required",Ut.nzRequired),s.uIk("for",Ut.nzFor),s.xp6(2),s.Q6J("ngIf",Ut.nzTooltipTitle))},dependencies:[d.O5,Y.Ls,A.SY,L.f],encapsulation:2,changeDetection:0}),(0,R.gn)([(0,Z.yF)()],Re.prototype,"nzRequired",void 0),Re})(),et=(()=>{class Re{}return Re.\u0275fac=function(je){return new(je||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({imports:[t.vT,d.ez,Q.Jb,Y.PV,A.cg,i.xu,v.ud,L.T,Q.Jb]}),Re})()},95:(Ot,be,a)=>{a.d(be,{Jb:()=>U,SK:()=>N,t3:()=>V});var t=a(5879),i=a(7328),v=a(8645),d=a(9773),s=a(9087),L=a(1088),Q=a(2831),Y=a(9388),A=a(7754),S=a(6814);let N=(()=>{class M{getGutter(){const I=[null,null],k=this.nzGutter||0;return(Array.isArray(k)?k:[k,null]).forEach((Ce,Z)=>{"object"==typeof Ce&&null!==Ce?(I[Z]=null,Object.keys(s.WV).map(F=>{const R=F;this.mediaMatcher.matchMedia(s.WV[R]).matches&&Ce[R]&&(I[Z]=Ce[R])})):I[Z]=Number(Ce)||null}),I}setGutterStyle(){const[I,k]=this.getGutter();this.actualGutter$.next([I,k]);const ge=(Ce,Z)=>{null!==Z&&this.renderer.setStyle(this.elementRef.nativeElement,Ce,`-${Z/2}px`)};ge("margin-left",I),ge("margin-right",I),ge("margin-top",k),ge("margin-bottom",k)}constructor(I,k,ge,Ce,Z,F,R){this.elementRef=I,this.renderer=k,this.mediaMatcher=ge,this.ngZone=Ce,this.platform=Z,this.breakpointService=F,this.directionality=R,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new i.t(1),this.dir="ltr",this.destroy$=new v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(I=>{this.dir=I}),this.setGutterStyle()}ngOnChanges(I){I.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(s.WV).pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return M.\u0275fac=function(I){return new(I||M)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(L.vx),t.Y36(t.R0b),t.Y36(Q.t4),t.Y36(s.r3),t.Y36(Y.Is,8))},M.\u0275dir=t.lG2({type:M,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(I,k){2&I&&t.ekj("ant-row-top","top"===k.nzAlign)("ant-row-middle","middle"===k.nzAlign)("ant-row-bottom","bottom"===k.nzAlign)("ant-row-start","start"===k.nzJustify)("ant-row-end","end"===k.nzJustify)("ant-row-center","center"===k.nzJustify)("ant-row-space-around","space-around"===k.nzJustify)("ant-row-space-between","space-between"===k.nzJustify)("ant-row-space-evenly","space-evenly"===k.nzJustify)("ant-row-rtl","rtl"===k.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[t.TTD]}),M})(),V=(()=>{class M{setHostClassMap(){const I={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,A.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,A.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,A.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,A.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,A.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const k in this.classMap)this.classMap.hasOwnProperty(k)&&this.renderer.removeClass(this.elementRef.nativeElement,k);this.classMap={...I};for(const k in this.classMap)this.classMap.hasOwnProperty(k)&&this.classMap[k]&&this.renderer.addClass(this.elementRef.nativeElement,k)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(I){return"number"==typeof I?`${I} ${I} auto`:"string"==typeof I&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(I)?`0 0 ${I}`:I}generateClass(){const k={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(ge=>{const Ce=ge.replace("nz","").toLowerCase();if((0,A.DX)(this[ge]))if("number"==typeof this[ge]||"string"==typeof this[ge])k[`ant-col-${Ce}-${this[ge]}`]=!0;else{const Z=this[ge];["span","pull","push","offset","order"].forEach(R=>{k[`ant-col-${Ce}${"span"===R?"-":`-${R}-`}${Z[R]}`]=Z&&(0,A.DX)(Z[R])})}}),k}constructor(I,k,ge,Ce){this.elementRef=I,this.nzRowDirective=k,this.renderer=ge,this.directionality=Ce,this.classMap={},this.destroy$=new v.x,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}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(I=>{this.dir=I,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(I){this.setHostClassMap();const{nzFlex:k}=I;k&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,d.R)(this.destroy$)).subscribe(([I,k])=>{const ge=(Ce,Z)=>{null!==Z&&this.renderer.setStyle(this.elementRef.nativeElement,Ce,Z/2+"px")};ge("padding-left",I),ge("padding-right",I),ge("padding-top",k),ge("padding-bottom",k)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return M.\u0275fac=function(I){return new(I||M)(t.Y36(t.SBq),t.Y36(N,9),t.Y36(t.Qsj),t.Y36(Y.Is,8))},M.\u0275dir=t.lG2({type:M,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(I,k){2&I&&t.Udp("flex",k.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:[t.TTD]}),M})(),U=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[Y.vT,S.ez,L.xu,Q.ud]}),M})()},1752:(Ot,be,a)=>{a.d(be,{YI:()=>S,iF:()=>d,u7:()=>L,wi:()=>Y});var t=a(5879),i=a(5619),v=a(7032),d={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"},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 to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",selectNone:"Clear all data"},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"},Image:{preview:"Preview"},CronExpression:{cronError:"Invalid cron expression",second:"second",minute:"minute",hour:"hour",day:"day",month:"month",week:"week",secondError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-59Allowable range

",minuteError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-59Allowable range

",hourError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

0-23Allowable range

",dayError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

1-31Allowable range

",monthError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

1-12Allowable range

",weekError:"

*Any value

,Separator between multiple values

-Connector for interval values

/Equally distributed

? Not specify

0-7Allowable range (0 represents Sunday, 1-7 are Monday to Sunday)

"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},s={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",page_size:"\u9875\u7801"},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",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7b5b\u9009\u9879\u4e2d\u641c\u7d22",selectNone:"\u6e05\u7a7a\u6240\u6709"},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"},Image:{preview:"\u9884\u89c8"},CronExpression:{cronError:"cron \u8868\u8fbe\u5f0f\u4e0d\u5408\u6cd5",second:"\u79d2",minute:"\u5206\u949f",hour:"\u5c0f\u65f6",day:"\u65e5",month:"\u6708",week:"\u5468",secondError:"

*\u4efb\u610f\u503c

,\u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

-\u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/\u5e73\u5747\u5206\u914d

0-59\u5141\u8bb8\u8303\u56f4

",minuteError:"

*\u4efb\u610f\u503c

,\u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

-\u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/\u5e73\u5747\u5206\u914d

0-59\u5141\u8bb8\u8303\u56f4

",hourError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

0-23 \u5141\u8bb8\u8303\u56f4

",dayError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

1-31 \u5141\u8bb8\u8303\u56f4

",monthError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

1-12 \u5141\u8bb8\u8303\u56f4

",weekError:"

* \u4efb\u610f\u503c

, \u591a\u4e2a\u503c\u4e4b\u95f4\u7684\u5206\u9694\u7b26

- \u533a\u95f4\u503c\u7684\u8fde\u63a5\u7b26

/ \u5e73\u5747\u5206\u914d

? \u4e0d\u6307\u5b9a

0-7 \u5141\u8bb8\u8303\u56f4\uff080\u4ee3\u8868\u5468\u65e5\uff0c1-7\u4f9d\u6b21\u4e3a\u5468\u4e00\u5230\u5468\u65e5\uff09

"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0"}};const L=new t.OlP("nz-i18n"),Q=new t.OlP("nz-date-locale");let Y=(()=>{class Rt{get localeChange(){return this._change.asObservable()}constructor(gn,Ze){this._change=new i.X(this._locale),this.setLocale(gn||s),this.setDateLocale(Ze||null)}translate(gn,Ze){let ut=this._getObjectPath(this._locale,gn);return"string"==typeof ut?(Ze&&Object.keys(Ze).forEach(ce=>ut=ut.replace(new RegExp(`%${ce}%`,"g"),Ze[ce])),ut):gn}setLocale(gn){this._locale&&this._locale.locale===gn.locale||(this._locale=gn,this._change.next(gn))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(gn){this.dateLocale=gn}getDateLocale(){return this.dateLocale}getLocaleData(gn,Ze){const ut=gn?this._getObjectPath(this._locale,gn):this._locale;return!ut&&!Ze&&(0,v.ZK)(`Missing translations for "${gn}" 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`),ut||Ze||this._getObjectPath(d,gn)||{}}_getObjectPath(gn,Ze){let ut=gn;const ce=Ze.split("."),_e=ce.length;let mt=0;for(;ut&&mt<_e;)ut=ut[ce[mt++]];return mt===_e?ut:null}}return Rt.\u0275fac=function(gn){return new(gn||Rt)(t.LFG(L,8),t.LFG(Q,8))},Rt.\u0275prov=t.Yz7({token:Rt,factory:Rt.\u0275fac,providedIn:"root"}),Rt})(),S=(()=>{class Rt{}return Rt.\u0275fac=function(gn){return new(gn||Rt)},Rt.\u0275mod=t.oAB({type:Rt}),Rt.\u0275inj=t.cJS({}),Rt})();new t.OlP("date-config")},551:(Ot,be,a)=>{a.d(be,{Ls:()=>Ht,PV:()=>un,H5:()=>mt});var t=a(2831),i=a(5879),v=a(655),d=a(8645),s=a(9666),L=a(9773),Q=a(4265),Y=a(6379),A=2,S=.16,N=.05,V=.05,U=.15,M=5,e=4,I=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function k(Lt){var B=(0,Q.py)(Lt.r,Lt.g,Lt.b);return{h:360*B.h,s:B.s,v:B.v}}function ge(Lt){return"#".concat((0,Q.vq)(Lt.r,Lt.g,Lt.b,!1))}function Z(Lt,dt,ft){var ne;return(ne=Math.round(Lt.h)>=60&&Math.round(Lt.h)<=240?ft?Math.round(Lt.h)-A*dt:Math.round(Lt.h)+A*dt:ft?Math.round(Lt.h)+A*dt:Math.round(Lt.h)-A*dt)<0?ne+=360:ne>=360&&(ne-=360),ne}function F(Lt,dt,ft){return 0===Lt.h&&0===Lt.s?Lt.s:((ne=ft?Lt.s-S*dt:dt===e?Lt.s+S:Lt.s+N*dt)>1&&(ne=1),ft&&dt===M&&ne>.1&&(ne=.1),ne<.06&&(ne=.06),Number(ne.toFixed(2)));var ne}function R(Lt,dt,ft){var ne;return(ne=ft?Lt.v+V*dt:Lt.v-U*dt)>1&&(ne=1),Number(ne.toFixed(2))}function O(Lt){for(var dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft=[],ne=(0,Y.uA)(Lt),B=M;B>0;B-=1){var ze=k(ne),$e=ge((0,Y.uA)({h:Z(ze,B,!0),s:F(ze,B,!0),v:R(ze,B,!0)}));ft.push($e)}ft.push(ge(ne));for(var Mt=1;Mt<=e;Mt+=1){var on=k(ne),Zt=ge((0,Y.uA)({h:Z(on,Mt),s:F(on,Mt),v:R(on,Mt)}));ft.push(Zt)}return"dark"===dt.theme?I.map(function(Wn){var pn=Wn.index,qn=Wn.opacity,co=ge(function Ce(Lt,dt,ft){var ne=ft/100;return{r:(dt.r-Lt.r)*ne+Lt.r,g:(dt.g-Lt.g)*ne+Lt.g,b:(dt.b-Lt.b)*ne+Lt.b}}((0,Y.uA)(dt.backgroundColor||"#141414"),(0,Y.uA)(ft[pn]),100*qn));return co}):ft}var P={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x={},de={};Object.keys(P).forEach(function(Lt){x[Lt]=O(P[Lt]),x[Lt].primary=x[Lt][5],de[Lt]=O(P[Lt],{theme:"dark",backgroundColor:"#141414"}),de[Lt].primary=de[Lt][5]});var bn=a(6814),et=a(9862),Re=a(2096),yt=a(5592),je=a(7398),Ut=a(9397),Xt=a(4716),_n=a(6306),On=a(3020),Jt=a(2181),Nt=a(8180),Ye=a(6593);const He="[@ant-design/icons-angular]:";function We(Lt){(0,i.X6Q)()&&console.warn(`${He} ${Lt}.`)}function Be(Lt){return O(Lt)[0]}function xe(Lt,dt){switch(dt){case"fill":return`${Lt}-fill`;case"outline":return`${Lt}-o`;case"twotone":return`${Lt}-twotone`;case void 0:return Lt;default:throw new Error(`${He}Theme "${dt}" is not a recognized theme!`)}}function Ge(Lt){return"object"==typeof Lt&&"string"==typeof Lt.name&&("string"==typeof Lt.theme||void 0===Lt.theme)&&"string"==typeof Lt.icon}function st(Lt){const dt=Lt.split(":");switch(dt.length){case 1:return[Lt,""];case 2:return[dt[1],dt[0]];default:throw new Error(`${He}The icon type ${Lt} is not valid!`)}}function Pt(Lt){return new Error(`${He}the icon ${Lt} does not exist or is not registered.`)}function jt(){return new Error(`${He} tag not found.`)}const w=new i.OlP("ant_icons");let J=(()=>{class Lt{set twoToneColor({primaryColor:ft,secondaryColor:ne}){this._twoToneColorPalette.primaryColor=ft,this._twoToneColorPalette.secondaryColor=ne||Be(ft)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(ft,ne,B,ze,$e){this._rendererFactory=ft,this._handler=ne,this._document=B,this.sanitizer=ze,this._antIcons=$e,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 d.x,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new et.eN(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?We("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=ft=>{this._jsonpIconLoad$.next(ft)})}changeAssetsSource(ft){this._assetsUrlRoot=ft.endsWith("/")?ft:ft+"/"}addIcon(...ft){ft.forEach(ne=>{this._svgDefinitions.set(xe(ne.name,ne.theme),ne)})}addIconLiteral(ft,ne){const[B,ze]=st(ft);if(!ze)throw function lt(){return new Error(`${He}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:ft,icon:ne})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(ft,ne){const B=Ge(ft)?ft:this._svgDefinitions.get(ft)||null;if(!B&&this._disableDynamicLoading)throw Pt(ft);return(B?(0,Re.of)(B):this._loadIconDynamically(ft)).pipe((0,je.U)($e=>{if(!$e)throw Pt(ft);return this._loadSVGFromCacheOrCreateNew($e,ne)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(ft){if(!this._http&&!this._enableJsonpLoading)return(0,Re.of)(function wt(){return function Pe(Lt){console.error(`${He} ${Lt}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let ne=this._inProgressFetches.get(ft);if(!ne){const[B,ze]=st(ft),$e=ze?{name:ft,icon:""}:function Ct(Lt){const dt=Lt.split("-"),ft=function ae(Lt){return"o"===Lt?"outline":Lt}(dt.splice(dt.length-1,1)[0]);return{name:dt.join("-"),theme:ft,icon:""}}(B),on=(ze?`${this._assetsUrlRoot}assets/${ze}/${B}`:`${this._assetsUrlRoot}assets/${$e.theme}/${$e.name}`)+(this._enableJsonpLoading?".js":".svg"),Zt=this.sanitizer.sanitize(i.q3G.URL,on);if(!Zt)throw function Vt(Lt){return new Error(`${He}The url "${Lt}" is unsafe.`)}(on);ne=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp($e,Zt):this._http.get(Zt,{responseType:"text"}).pipe((0,je.U)(pn=>({...$e,icon:pn})))).pipe((0,Ut.b)(pn=>this.addIcon(pn)),(0,Xt.x)(()=>this._inProgressFetches.delete(ft)),(0,_n.K)(()=>(0,Re.of)(null)),(0,On.B)()),this._inProgressFetches.set(ft,ne)}return ne}_loadIconDynamicallyWithJsonp(ft,ne){return new yt.y(B=>{const ze=this._document.createElement("script"),$e=setTimeout(()=>{Mt(),B.error(function Ke(){return new Error(`${He}Importing timeout error.`)}())},6e3);function Mt(){ze.parentNode.removeChild(ze),clearTimeout($e)}ze.src=ne,this._document.body.appendChild(ze),this._jsonpIconLoad$.pipe((0,Jt.h)(on=>on.name===ft.name&&on.theme===ft.theme),(0,Nt.q)(1)).subscribe(on=>{B.next(on),Mt()})})}_loadSVGFromCacheOrCreateNew(ft,ne){let B;const ze=ne||this._twoToneColorPalette.primaryColor,$e=Be(ze)||this._twoToneColorPalette.secondaryColor,Mt="twotone"===ft.theme?function te(Lt,dt,ft,ne){return`${xe(Lt,dt)}-${ft}-${ne}`}(ft.name,ft.theme,ze,$e):void 0===ft.theme?ft.name:xe(ft.name,ft.theme),on=this._svgRenderedDefinitions.get(Mt);return on?B=on.icon:(B=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function it(Lt){return""!==st(Lt)[1]}(ft.name)?ft.icon:function yn(Lt){return Lt.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(ft.icon)),"twotone"===ft.theme,ze,$e)),this._svgRenderedDefinitions.set(Mt,{...ft,icon:B})),function sn(Lt){return Lt.cloneNode(!0)}(B)}_createSVGElementFromString(ft){const ne=this._document.createElement("div");ne.innerHTML=ft;const B=ne.querySelector("svg");if(!B)throw jt;return B}_setSVGAttribute(ft){return this._renderer.setAttribute(ft,"width","1em"),this._renderer.setAttribute(ft,"height","1em"),ft}_colorizeSVGIcon(ft,ne,B,ze){if(ne){const $e=ft.childNodes,Mt=$e.length;for(let on=0;on{class Lt{constructor(ft,ne,B){this._iconService=ft,this._elementRef=ne,this._renderer=B}ngOnChanges(ft){(ft.type||ft.theme||ft.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(ft=>{if(!this.type)return this._clearSVGElement(),void ft(null);const ne=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(B=>{const ze=this._getSelfRenderMeta();!function Te(Lt,dt){return Lt.type===dt.type&&Lt.theme===dt.theme&&Lt.twoToneColor===dt.twoToneColor}(ne,ze)?ft(null):(this._setSVGElement(B),ft(B))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(ft,ne){if(Ge(ft))return ft;{const[B,ze]=st(ft);return ze?ft:function De(Lt){return Lt.endsWith("-fill")||Lt.endsWith("-o")||Lt.endsWith("-twotone")}(B)?(ne&&We(`'type' ${B} already gets a theme inside so 'theme' ${ne} would be ignored`),B):xe(B,ne||this._iconService.defaultTheme)}}_setSVGElement(ft){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,ft)}_clearSVGElement(){const ft=this._elementRef.nativeElement,ne=ft.childNodes;for(let ze=ne.length-1;ze>=0;ze--){const $e=ne[ze];"svg"===$e.tagName?.toLowerCase()&&this._renderer.removeChild(ft,$e)}}}return Lt.\u0275fac=function(ft){return new(ft||Lt)(i.Y36(J),i.Y36(i.SBq),i.Y36(i.Qsj))},Lt.\u0275dir=i.lG2({type:Lt,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[i.TTD]}),Lt})();var rt=a(7032),Rt=a(7754),St=a(4715),gn=a(874);const Ze=[St.V65,St.ud1,St.bBn,St.BOg,St.Hkd,St.XuQ,St.Rfq,St.yQU,St.U2Q,St.UKj,St.OYp,St.BXH,St.eLU,St.x0x,St.vkb,St.VWu,St.rMt,St.vEg,St.RIp,St.RU0,St.M8e,St.ssy,St.Z5F,St.iUK,St.LJh,St.NFG,St.UTl,St.nrZ,St.gvV,St.d2H,St.eFY,St.sZJ,St.np6,St.w1L,St.UY$,St.v6v,St.rHg,St.v6v,St.s_U,St.TSL,St.FsU,St.cN2,St.uIz,St.d_$],ut=new i.OlP("nz_icons"),_e=(new i.OlP("nz_icon_default_twotone_color"),"#1890ff");let mt=(()=>{class Lt extends J{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(ft){ft.getAttribute("viewBox")||this._renderer.setAttribute(ft,"viewBox","0 0 1024 1024"),(!ft.getAttribute("width")||!ft.getAttribute("height"))&&(this._renderer.setAttribute(ft,"width","1em"),this._renderer.setAttribute(ft,"height","1em")),ft.getAttribute("fill")||this._renderer.setAttribute(ft,"fill","currentColor")}fetchFromIconfont(ft){const{scriptUrl:ne}=ft;if(this._document&&!this.iconfontCache.has(ne)){const B=this._renderer.createElement("script");this._renderer.setAttribute(B,"src",ne),this._renderer.setAttribute(B,"data-namespace",ne.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,B),this.iconfontCache.add(ne)}}createIconfontIcon(ft){return this._createSVGElementFromString(``)}constructor(ft,ne,B,ze,$e,Mt,on){super(ft,$e,Mt,ne,[...Ze,...on||[]]),this.nzConfigService=B,this.platform=ze,this.configUpdated$=new d.x,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.configDefaultTwotoneColor(),this.configDefaultTheme()}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const ft=this.getConfig();this.defaultTheme=ft.nzTheme||"outline"}configDefaultTwotoneColor(){const ne=this.getConfig().nzTwotoneColor||_e;let B=_e;ne&&(ne.startsWith("#")?B=ne:(0,rt.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:B}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return Lt.\u0275fac=function(ft){return new(ft||Lt)(i.LFG(i.FYo),i.LFG(Ye.H7),i.LFG(gn.jY),i.LFG(t.t4),i.LFG(et.jN,8),i.LFG(bn.K0,8),i.LFG(ut,8))},Lt.\u0275prov=i.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Ae=new i.OlP("nz_icons_patch");let at=(()=>{class Lt{constructor(ft,ne){this.extraIcons=ft,this.rootIconService=ne,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(ft=>this.rootIconService.addIcon(ft)),this.patched=!0)}}return Lt.\u0275fac=function(ft){return new(ft||Lt)(i.LFG(Ae,2),i.LFG(mt))},Lt.\u0275prov=i.Yz7({token:Lt,factory:Lt.\u0275fac}),Lt})(),Ht=(()=>{class Lt extends zt{set nzSpin(ft){this.spin=ft}set nzType(ft){this.type=ft}set nzTheme(ft){this.theme=ft}set nzTwotoneColor(ft){this.twoToneColor=ft}set nzIconfont(ft){this.iconfont=ft}constructor(ft,ne,B,ze,$e,Mt){super(ze,B,$e),this.ngZone=ft,this.changeDetectorRef=ne,this.iconService=ze,this.renderer=$e,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new d.x,Mt&&Mt.doPatch(),this.el=B.nativeElement}ngOnChanges(ft){const{nzType:ne,nzTwotoneColor:B,nzSpin:ze,nzTheme:$e,nzRotate:Mt}=ft;ne||B||ze||$e?this.changeIcon2():Mt?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 ft=this.el.children;let ne=ft.length;if(!this.type&&ft.length)for(;ne--;){const B=ft[ne];"svg"===B.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(B)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,s.D)(this._changeIcon()).pipe((0,L.R)(this.destroy$)).subscribe({next:ft=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),ft&&(this.setSVGData(ft),this.handleSpin(ft),this.handleRotate(ft))})},error:rt.ZK})})}handleSpin(ft){this.spin||"loading"===this.type?this.renderer.addClass(ft,"anticon-spin"):this.renderer.removeClass(ft,"anticon-spin")}handleRotate(ft){this.nzRotate?this.renderer.setAttribute(ft,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(ft,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(ft){this.renderer.setAttribute(ft,"data-icon",this.type),this.renderer.setAttribute(ft,"aria-hidden","true")}}return Lt.\u0275fac=function(ft){return new(ft||Lt)(i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(mt),i.Y36(i.Qsj),i.Y36(at,8))},Lt.\u0275dir=i.lG2({type:Lt,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(ft,ne){2&ft&&i.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[i.qOj,i.TTD]}),(0,v.gn)([(0,Rt.yF)()],Lt.prototype,"nzSpin",null),Lt})(),un=(()=>{class Lt{static forRoot(ft){return{ngModule:Lt,providers:[{provide:ut,useValue:ft}]}}static forChild(ft){return{ngModule:Lt,providers:[at,{provide:Ae,useValue:ft}]}}}return Lt.\u0275fac=function(ft){return new(ft||Lt)},Lt.\u0275mod=i.oAB({type:Lt}),Lt.\u0275inj=i.cJS({imports:[t.ud]}),Lt})()},8373:(Ot,be,a)=>{a.d(be,{Rb:()=>On,Zf:()=>Jt,_V:()=>Ut});var t=a(655),i=a(6028),v=a(5879),d=a(6223),s=a(8645),L=a(2438),Q=a(3019),Y=a(3997),A=a(9773),S=a(7921),N=a(4664),V=a(1631),U=a(7398),M=a(9087),e=a(7754),I=a(4300),k=a(9388),ge=a(883),Ce=a(6814),Z=a(551),F=a(8324);const R=["upHandler"],O=["downHandler"],P=["inputElement"];function x(Nt,Ye){if(1&Nt&&v._UZ(0,"nz-form-item-feedback-icon",11),2&Nt){const He=v.oxw();v.Q6J("status",He.status)}}const de=["nz-input-number-group-slot",""];function ue(Nt,Ye){if(1&Nt&&v._UZ(0,"span",2),2&Nt){const He=v.oxw();v.Q6J("nzType",He.icon)}}function j(Nt,Ye){if(1&Nt&&(v.ynx(0),v._uU(1),v.BQk()),2&Nt){const He=v.oxw();v.xp6(1),v.Oqu(He.template)}}const me=["*"];function re(Nt,Ye){if(1&Nt&&v._UZ(0,"div",7),2&Nt){const He=v.oxw(2);v.Q6J("icon",He.nzAddOnBeforeIcon)("template",He.nzAddOnBefore)}}function he(Nt,Ye){}function Me(Nt,Ye){if(1&Nt&&(v.TgZ(0,"div",8),v.YNc(1,he,0,0,"ng-template",9),v.qZA()),2&Nt){const He=v.oxw(2),Pe=v.MAs(4);v.ekj("ant-input-number-affix-wrapper-disabled",He.disabled)("ant-input-number-affix-wrapper-sm",He.isSmall)("ant-input-number-affix-wrapper-lg",He.isLarge)("ant-input-number-affix-wrapper-focused",He.focused),v.Q6J("ngClass",He.affixInGroupStatusCls),v.xp6(1),v.Q6J("ngTemplateOutlet",Pe)}}function Oe(Nt,Ye){if(1&Nt&&v._UZ(0,"span",7),2&Nt){const He=v.oxw(2);v.Q6J("icon",He.nzAddOnAfterIcon)("template",He.nzAddOnAfter)}}function kt(Nt,Ye){if(1&Nt&&(v.TgZ(0,"span",4),v.YNc(1,re,1,2,"div",5),v.YNc(2,Me,2,10,"div",6),v.YNc(3,Oe,1,2,"span",5),v.qZA()),2&Nt){const He=v.oxw(),Pe=v.MAs(6);v.xp6(1),v.Q6J("ngIf",He.nzAddOnBefore||He.nzAddOnBeforeIcon),v.xp6(1),v.Q6J("ngIf",He.isAffix||He.hasFeedback)("ngIfElse",Pe),v.xp6(1),v.Q6J("ngIf",He.nzAddOnAfter||He.nzAddOnAfterIcon)}}function It(Nt,Ye){}function Tt(Nt,Ye){if(1&Nt&&v.YNc(0,It,0,0,"ng-template",9),2&Nt){v.oxw(2);const He=v.MAs(4);v.Q6J("ngTemplateOutlet",He)}}function gt(Nt,Ye){if(1&Nt&&v.YNc(0,Tt,1,1,"ng-template",10),2&Nt){const He=v.oxw(),Pe=v.MAs(6);v.Q6J("ngIf",He.isAffix)("ngIfElse",Pe)}}function _t(Nt,Ye){if(1&Nt&&v._UZ(0,"span",13),2&Nt){const He=v.oxw(2);v.Q6J("icon",He.nzPrefixIcon)("template",He.nzPrefix)}}function Ft(Nt,Ye){}function rn(Nt,Ye){if(1&Nt&&v._UZ(0,"nz-form-item-feedback-icon",16),2&Nt){const He=v.oxw(3);v.Q6J("status",He.status)}}function bn(Nt,Ye){if(1&Nt&&(v.TgZ(0,"span",14),v.YNc(1,rn,1,1,"nz-form-item-feedback-icon",15),v.qZA()),2&Nt){const He=v.oxw(2);v.Q6J("icon",He.nzSuffixIcon)("template",He.nzSuffix),v.xp6(1),v.Q6J("ngIf",He.isFeedback)}}function et(Nt,Ye){if(1&Nt&&(v.YNc(0,_t,1,2,"span",11),v.YNc(1,Ft,0,0,"ng-template",9),v.YNc(2,bn,2,3,"span",12)),2&Nt){const He=v.oxw(),Pe=v.MAs(6);v.Q6J("ngIf",He.nzPrefix||He.nzPrefixIcon),v.xp6(1),v.Q6J("ngTemplateOutlet",Pe),v.xp6(1),v.Q6J("ngIf",He.nzSuffix||He.nzSuffixIcon||He.isFeedback)}}function Re(Nt,Ye){if(1&Nt&&v._UZ(0,"nz-form-item-feedback-icon",16),2&Nt){const He=v.oxw(3);v.Q6J("status",He.status)}}function yt(Nt,Ye){if(1&Nt&&(v.TgZ(0,"span",18),v.YNc(1,Re,1,1,"nz-form-item-feedback-icon",15),v.qZA()),2&Nt){const He=v.oxw(2);v.xp6(1),v.Q6J("ngIf",He.isFeedback)}}function je(Nt,Ye){if(1&Nt&&(v.Hsn(0),v.YNc(1,yt,2,1,"span",17)),2&Nt){const He=v.oxw();v.xp6(1),v.Q6J("ngIf",!He.isAddOn&&!He.isAffix&&He.isFeedback)}}let Ut=(()=>{class Nt{onModelChange(He){this.parsedValue=this.nzParser(He),this.inputElement.nativeElement.value=`${this.parsedValue}`;const Pe=this.getCurrentValidValue(this.parsedValue);this.setValue(Pe)}getCurrentValidValue(He){let Pe=He;return Pe=""===Pe?"":this.isNotCompleteNumber(Pe)?this.value:`${this.getValidValue(Pe)}`,this.toNumber(Pe)}isNotCompleteNumber(He){return isNaN(He)||""===He||null===He||!(!He||He.toString().indexOf(".")!==He.toString().length-1)}getValidValue(He){let Pe=parseFloat(He);return isNaN(Pe)?He:(Pethis.nzMax&&(Pe=this.nzMax),Pe)}toNumber(He){if(this.isNotCompleteNumber(He))return He;const Pe=String(He);if(Pe.indexOf(".")>=0&&(0,e.DX)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(He,this.nzPrecision);if("cut"===this.nzPrecisionMode){const We=Pe.split(".");return We[1]=We[1].slice(0,this.nzPrecision),Number(We.join("."))}return Number(Number(He).toFixed(this.nzPrecision))}return Number(He)}getRatio(He){let Pe=1;return He.metaKey||He.ctrlKey?Pe=.1:He.shiftKey&&(Pe=10),Pe}down(He,Pe){this.isFocused||this.focus(),this.step("down",He,Pe)}up(He,Pe){this.isFocused||this.focus(),this.step("up",He,Pe)}getPrecision(He){const Pe=He.toString();if(Pe.indexOf("e-")>=0)return parseInt(Pe.slice(Pe.indexOf("e-")+2),10);let We=0;return Pe.indexOf(".")>=0&&(We=Pe.length-Pe.indexOf(".")-1),We}getMaxPrecision(He,Pe){if((0,e.DX)(this.nzPrecision))return this.nzPrecision;const We=this.getPrecision(Pe),Be=this.getPrecision(this.nzStep),xe=this.getPrecision(He);return He?Math.max(xe,We+Be):We+Be}getPrecisionFactor(He,Pe){const We=this.getMaxPrecision(He,Pe);return Math.pow(10,We)}upStep(He,Pe){const We=this.getPrecisionFactor(He,Pe),Be=Math.abs(this.getMaxPrecision(He,Pe));let xe;return xe="number"==typeof He?((We*He+We*this.nzStep*Pe)/We).toFixed(Be):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(xe)}downStep(He,Pe){const We=this.getPrecisionFactor(He,Pe),Be=Math.abs(this.getMaxPrecision(He,Pe));let xe;return xe="number"==typeof He?((We*He-We*this.nzStep*Pe)/We).toFixed(Be):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(xe)}step(He,Pe,We=1){if(this.stop(),Pe.preventDefault(),this.nzDisabled)return;const Be=this.getCurrentValidValue(this.parsedValue)||0;let xe=0;"up"===He?xe=this.upStep(Be,We):"down"===He&&(xe=this.downStep(Be,We));const te=xe>this.nzMax||xethis.nzMax?xe=this.nzMax:xe{this[He](Pe,We)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(He){if(`${this.value}`!=`${He}`&&this.onChange(He),this.value=He,this.parsedValue=He,this.disabledUp=this.disabledDown=!1,He||0===He){const Pe=Number(He);Pe>=this.nzMax&&(this.disabledUp=!0),Pe<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(He){const Pe=(0,e.DX)(this.nzFormatter(He))?this.nzFormatter(He):"";this.displayValue=Pe,this.inputElement.nativeElement.value=`${Pe}`}writeValue(He){this.value=He,this.setValue(He),this.updateDisplayValue(He),this.cdr.markForCheck()}registerOnChange(He){this.onChange=He}registerOnTouched(He){this.onTouched=He}setDisabledState(He){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||He,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(He,Pe,We,Be,xe,te,ae,De,Ge){this.ngZone=He,this.elementRef=Pe,this.cdr=We,this.focusMonitor=Be,this.renderer=xe,this.directionality=te,this.destroy$=ae,this.nzFormStatusService=De,this.nzFormNoStatusService=Ge,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new s.x,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.status="",this.statusCls={},this.hasFeedback=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new v.vpe,this.nzFocus=new v.vpe,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=Ct=>Ct.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStatus="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzReadOnly=!1,this.nzAutoFocus=!1,this.nzBorderless=!1,this.nzFormatter=Ct=>Ct}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Y.x)((He,Pe)=>He.status===Pe.status&&He.hasFeedback===Pe.hasFeedback),(0,A.R)(this.destroy$)).subscribe(({status:He,hasFeedback:Pe})=>{this.setStatusStyles(He,Pe)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(He=>{He?(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,A.R)(this.destroy$)).subscribe(He=>{this.dir=He}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,L.R)(this.inputElement.nativeElement,"keyup").pipe((0,A.R)(this.destroy$)).subscribe(()=>this.stop()),(0,L.R)(this.inputElement.nativeElement,"keydown").pipe((0,A.R)(this.destroy$)).subscribe(He=>{const{keyCode:Pe}=He;Pe!==i.LH&&Pe!==i.JH&&Pe!==i.K5||this.ngZone.run(()=>{if(Pe===i.LH){const We=this.getRatio(He);this.up(He,We),this.stop()}else if(Pe===i.JH){const We=this.getRatio(He);this.down(He,We),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(He){const{nzStatus:Pe,nzDisabled:We}=He;if(He.nzFormatter&&!He.nzFormatter.isFirstChange()){const Be=this.getCurrentValidValue(this.parsedValue);this.setValue(Be),this.updateDisplayValue(Be)}We&&this.disabled$.next(this.nzDisabled),Pe&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,Q.T)((0,L.R)(this.upHandler.nativeElement,"mouseup"),(0,L.R)(this.upHandler.nativeElement,"mouseleave"),(0,L.R)(this.downHandler.nativeElement,"mouseup"),(0,L.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,A.R)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(He,Pe){this.status=He,this.hasFeedback=Pe,this.cdr.markForCheck(),this.statusCls=(0,e.Zu)(this.prefixCls,He,Pe),Object.keys(this.statusCls).forEach(We=>{this.statusCls[We]?this.renderer.addClass(this.elementRef.nativeElement,We):this.renderer.removeClass(this.elementRef.nativeElement,We)})}}return Nt.\u0275fac=function(He){return new(He||Nt)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(I.tE),v.Y36(v.Qsj),v.Y36(k.Is,8),v.Y36(M.kn),v.Y36(ge.kH,8),v.Y36(ge.yW,8))},Nt.\u0275cmp=v.Xpm({type:Nt,selectors:[["nz-input-number"]],viewQuery:function(He,Pe){if(1&He&&(v.Gf(R,7),v.Gf(O,7),v.Gf(P,7)),2&He){let We;v.iGM(We=v.CRH())&&(Pe.upHandler=We.first),v.iGM(We=v.CRH())&&(Pe.downHandler=We.first),v.iGM(We=v.CRH())&&(Pe.inputElement=We.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(He,Pe){2&He&&v.ekj("ant-input-number-in-form-item",!!Pe.nzFormStatusService)("ant-input-number-focused",Pe.isFocused)("ant-input-number-lg","large"===Pe.nzSize)("ant-input-number-sm","small"===Pe.nzSize)("ant-input-number-disabled",Pe.nzDisabled)("ant-input-number-readonly",Pe.nzReadOnly)("ant-input-number-rtl","rtl"===Pe.dir)("ant-input-number-borderless",Pe.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzReadOnly:"nzReadOnly",nzAutoFocus:"nzAutoFocus",nzBorderless:"nzBorderless",nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[v._Bn([{provide:d.JU,useExisting:(0,v.Gpc)(()=>Nt),multi:!0},M.kn]),v.TTD],decls:11,vars:15,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["upHandler",""],["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"],["downHandler",""],["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","readOnly","ngModel","ngModelChange"],["inputElement",""],["class","ant-input-number-suffix",3,"status",4,"ngIf"],[1,"ant-input-number-suffix",3,"status"]],template:function(He,Pe){1&He&&(v.TgZ(0,"div",0)(1,"span",1,2),v.NdJ("mousedown",function(Be){return Pe.up(Be)}),v._UZ(3,"span",3),v.qZA(),v.TgZ(4,"span",4,5),v.NdJ("mousedown",function(Be){return Pe.down(Be)}),v._UZ(6,"span",6),v.qZA()(),v.TgZ(7,"div",7)(8,"input",8,9),v.NdJ("ngModelChange",function(Be){return Pe.onModelChange(Be)}),v.qZA()(),v.YNc(10,x,1,1,"nz-form-item-feedback-icon",10)),2&He&&(v.xp6(1),v.ekj("ant-input-number-handler-up-disabled",Pe.disabledUp),v.xp6(3),v.ekj("ant-input-number-handler-down-disabled",Pe.disabledDown),v.xp6(4),v.Q6J("disabled",Pe.nzDisabled)("placeholder",Pe.nzPlaceHolder)("readOnly",Pe.nzReadOnly)("ngModel",Pe.displayValue),v.uIk("id",Pe.nzId)("autofocus",Pe.nzAutoFocus?"autofocus":null)("min",Pe.nzMin)("max",Pe.nzMax)("step",Pe.nzStep)("inputmode",Pe.nzInputMode),v.xp6(2),v.Q6J("ngIf",Pe.hasFeedback&&!!Pe.status&&!Pe.nzFormNoStatusService))},dependencies:[Ce.O5,d.Fj,d.JJ,d.On,Z.Ls,ge.w_],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,e.yF)()],Nt.prototype,"nzDisabled",void 0),(0,t.gn)([(0,e.yF)()],Nt.prototype,"nzReadOnly",void 0),(0,t.gn)([(0,e.yF)()],Nt.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,e.yF)()],Nt.prototype,"nzBorderless",void 0),Nt})(),Xt=(()=>{class Nt{constructor(){this.icon=null,this.type=null,this.template=null}}return Nt.\u0275fac=function(He){return new(He||Nt)},Nt.\u0275cmp=v.Xpm({type:Nt,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(He,Pe){2&He&&v.ekj("ant-input-number-group-addon","addon"===Pe.type)("ant-input-number-prefix","prefix"===Pe.type)("ant-input-number-suffix","suffix"===Pe.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:de,ngContentSelectors:me,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(He,Pe){1&He&&(v.F$t(),v.YNc(0,ue,1,1,"span",0),v.YNc(1,j,2,1,"ng-container",1),v.Hsn(2)),2&He&&(v.Q6J("ngIf",Pe.icon),v.xp6(1),v.Q6J("nzStringTemplateOutlet",Pe.template))},dependencies:[Ce.O5,F.f,Z.Ls],encapsulation:2,changeDetection:0}),Nt})(),On=(()=>{class Nt{constructor(He,Pe,We,Be,xe,te,ae){this.focusMonitor=He,this.elementRef=Pe,this.renderer=We,this.cdr=Be,this.directionality=xe,this.nzFormStatusService=te,this.nzFormNoStatusService=ae,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new s.x}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(He=>He.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Y.x)((He,Pe)=>He.status===Pe.status&&He.hasFeedback===Pe.hasFeedback),(0,A.R)(this.destroy$)).subscribe(({status:He,hasFeedback:Pe})=>{this.setStatusStyles(He,Pe)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,A.R)(this.destroy$)).subscribe(He=>{this.focused=!!He,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,A.R)(this.destroy$)).subscribe(He=>{this.dir=He})}ngAfterContentInit(){this.updateChildrenInputSize();const He=this.listOfNzInputNumberComponent.changes.pipe((0,S.O)(this.listOfNzInputNumberComponent));He.pipe((0,N.w)(Pe=>(0,Q.T)(He,...Pe.map(We=>We.disabled$))),(0,V.z)(()=>He),(0,U.U)(Pe=>Pe.some(We=>We.nzDisabled)),(0,A.R)(this.destroy$)).subscribe(Pe=>{this.disabled=Pe,this.cdr.markForCheck()})}ngOnChanges(He){const{nzSize:Pe,nzSuffix:We,nzPrefix:Be,nzPrefixIcon:xe,nzSuffixIcon:te,nzAddOnAfter:ae,nzAddOnBefore:De,nzAddOnAfterIcon:Ge,nzAddOnBeforeIcon:Ct,nzStatus:sn}=He;Pe&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(We||Be||xe||te)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(ae||De||Ge||Ct)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),sn&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(He,Pe){this.status=He,this.hasFeedback=Pe,this.isFeedback=!!He&&Pe,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&Pe,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,e.Zu)(`${this.prefixCls}-affix-wrapper`,He,Pe):{},this.cdr.markForCheck(),this.affixStatusCls=(0,e.Zu)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":He,!this.isAddOn&&Pe),this.groupStatusCls=(0,e.Zu)(`${this.prefixCls}-group-wrapper`,this.isAddOn?He:"",!!this.isAddOn&&Pe);const Be={...this.affixStatusCls,...this.groupStatusCls};Object.keys(Be).forEach(xe=>{Be[xe]?this.renderer.addClass(this.elementRef.nativeElement,xe):this.renderer.removeClass(this.elementRef.nativeElement,xe)})}}return Nt.\u0275fac=function(He){return new(He||Nt)(v.Y36(I.tE),v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(v.sBO),v.Y36(k.Is,8),v.Y36(ge.kH,8),v.Y36(ge.yW,8))},Nt.\u0275cmp=v.Xpm({type:Nt,selectors:[["nz-input-number-group"]],contentQueries:function(He,Pe,We){if(1&He&&v.Suo(We,Ut,5),2&He){let Be;v.iGM(Be=v.CRH())&&(Pe.listOfNzInputNumberComponent=Be)}},hostVars:24,hostBindings:function(He,Pe){2&He&&v.ekj("ant-input-number-group",Pe.nzCompact)("ant-input-number-group-compact",Pe.nzCompact)("ant-input-number-group-wrapper",Pe.isAddOn)("ant-input-number-group-wrapper-rtl",Pe.isAddOn&&"rtl"===Pe.dir)("ant-input-number-group-wrapper-lg",Pe.isAddOn&&Pe.isLarge)("ant-input-number-group-wrapper-sm",Pe.isAddOn&&Pe.isSmall)("ant-input-number-affix-wrapper",!Pe.isAddOn&&Pe.isAffix)("ant-input-number-affix-wrapper-rtl",!Pe.isAddOn&&"rtl"===Pe.dir)("ant-input-number-affix-wrapper-focused",!Pe.isAddOn&&Pe.isAffix&&Pe.focused)("ant-input-number-affix-wrapper-disabled",!Pe.isAddOn&&Pe.isAffix&&Pe.disabled)("ant-input-number-affix-wrapper-lg",!Pe.isAddOn&&Pe.isAffix&&Pe.isLarge)("ant-input-number-affix-wrapper-sm",!Pe.isAddOn&&Pe.isAffix&&Pe.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:"nzCompact"},exportAs:["nzInputNumberGroup"],features:[v._Bn([ge.yW]),v.TTD],ngContentSelectors:me,decls:7,vars:2,consts:[["class","ant-input-number-wrapper ant-input-number-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-number-affix-wrapper",3,"ant-input-number-affix-wrapper-disabled","ant-input-number-affix-wrapper-sm","ant-input-number-affix-wrapper-lg","ant-input-number-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-number-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-number-group-slot","","type","suffix",4,"ngIf"],["nz-input-number-group-slot","","type","suffix"]],template:function(He,Pe){if(1&He&&(v.F$t(),v.YNc(0,kt,4,4,"span",0),v.YNc(1,gt,1,2,"ng-template",null,1,v.W1O),v.YNc(3,et,3,3,"ng-template",null,2,v.W1O),v.YNc(5,je,2,1,"ng-template",null,3,v.W1O)),2&He){const We=v.MAs(2);v.Q6J("ngIf",Pe.isAddOn)("ngIfElse",We)}},dependencies:[Ce.mk,Ce.O5,Ce.tP,ge.w_,Xt],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,e.yF)()],Nt.prototype,"nzCompact",void 0),Nt})(),Jt=(()=>{class Nt{}return Nt.\u0275fac=function(He){return new(He||Nt)},Nt.\u0275mod=v.oAB({type:Nt}),Nt.\u0275inj=v.cJS({imports:[k.vT,Ce.ez,d.u5,F.T,Z.PV,ge.mJ]}),Nt})()},824:(Ot,be,a)=>{a.d(be,{Zp:()=>Re,gB:()=>Ut,ke:()=>je,o7:()=>On,rh:()=>Xt});var t=a(655),i=a(5879),v=a(8645),d=a(3019),s=a(3997),L=a(9773),Q=a(2181),Y=a(7921),A=a(4664),S=a(1631),N=a(7398),V=a(883),U=a(7754),M=a(6223),e=a(9388),I=a(4300),k=a(6814),ge=a(551),Ce=a(8324),Z=a(2831),F=a(9087);const R=["nz-input-group-slot",""];function O(Jt,Nt){if(1&Jt&&i._UZ(0,"span",2),2&Jt){const Ye=i.oxw();i.Q6J("nzType",Ye.icon)}}function P(Jt,Nt){if(1&Jt&&(i.ynx(0),i._uU(1),i.BQk()),2&Jt){const Ye=i.oxw();i.xp6(1),i.Oqu(Ye.template)}}const x=["*"];function de(Jt,Nt){if(1&Jt&&i._UZ(0,"span",7),2&Jt){const Ye=i.oxw(2);i.Q6J("icon",Ye.nzAddOnBeforeIcon)("template",Ye.nzAddOnBefore)}}function ue(Jt,Nt){}function j(Jt,Nt){if(1&Jt&&(i.TgZ(0,"span",8),i.YNc(1,ue,0,0,"ng-template",9),i.qZA()),2&Jt){const Ye=i.oxw(2),He=i.MAs(4);i.ekj("ant-input-affix-wrapper-disabled",Ye.disabled)("ant-input-affix-wrapper-sm",Ye.isSmall)("ant-input-affix-wrapper-lg",Ye.isLarge)("ant-input-affix-wrapper-focused",Ye.focused),i.Q6J("ngClass",Ye.affixInGroupStatusCls),i.xp6(1),i.Q6J("ngTemplateOutlet",He)}}function me(Jt,Nt){if(1&Jt&&i._UZ(0,"span",7),2&Jt){const Ye=i.oxw(2);i.Q6J("icon",Ye.nzAddOnAfterIcon)("template",Ye.nzAddOnAfter)}}function re(Jt,Nt){if(1&Jt&&(i.TgZ(0,"span",4),i.YNc(1,de,1,2,"span",5),i.YNc(2,j,2,10,"span",6),i.YNc(3,me,1,2,"span",5),i.qZA()),2&Jt){const Ye=i.oxw(),He=i.MAs(6);i.xp6(1),i.Q6J("ngIf",Ye.nzAddOnBefore||Ye.nzAddOnBeforeIcon),i.xp6(1),i.Q6J("ngIf",Ye.isAffix||Ye.hasFeedback)("ngIfElse",He),i.xp6(1),i.Q6J("ngIf",Ye.nzAddOnAfter||Ye.nzAddOnAfterIcon)}}function he(Jt,Nt){}function Me(Jt,Nt){if(1&Jt&&i.YNc(0,he,0,0,"ng-template",9),2&Jt){i.oxw(2);const Ye=i.MAs(4);i.Q6J("ngTemplateOutlet",Ye)}}function Oe(Jt,Nt){if(1&Jt&&i.YNc(0,Me,1,1,"ng-template",10),2&Jt){const Ye=i.oxw(),He=i.MAs(6);i.Q6J("ngIf",Ye.isAffix)("ngIfElse",He)}}function kt(Jt,Nt){if(1&Jt&&i._UZ(0,"span",13),2&Jt){const Ye=i.oxw(2);i.Q6J("icon",Ye.nzPrefixIcon)("template",Ye.nzPrefix)}}function It(Jt,Nt){}function Tt(Jt,Nt){if(1&Jt&&i._UZ(0,"nz-form-item-feedback-icon",16),2&Jt){const Ye=i.oxw(3);i.Q6J("status",Ye.status)}}function gt(Jt,Nt){if(1&Jt&&(i.TgZ(0,"span",14),i.YNc(1,Tt,1,1,"nz-form-item-feedback-icon",15),i.qZA()),2&Jt){const Ye=i.oxw(2);i.Q6J("icon",Ye.nzSuffixIcon)("template",Ye.nzSuffix),i.xp6(1),i.Q6J("ngIf",Ye.isFeedback)}}function _t(Jt,Nt){if(1&Jt&&(i.YNc(0,kt,1,2,"span",11),i.YNc(1,It,0,0,"ng-template",9),i.YNc(2,gt,2,3,"span",12)),2&Jt){const Ye=i.oxw(),He=i.MAs(6);i.Q6J("ngIf",Ye.nzPrefix||Ye.nzPrefixIcon),i.xp6(1),i.Q6J("ngTemplateOutlet",He),i.xp6(1),i.Q6J("ngIf",Ye.nzSuffix||Ye.nzSuffixIcon||Ye.isFeedback)}}function Ft(Jt,Nt){if(1&Jt&&(i.TgZ(0,"span",18),i._UZ(1,"nz-form-item-feedback-icon",16),i.qZA()),2&Jt){const Ye=i.oxw(2);i.xp6(1),i.Q6J("status",Ye.status)}}function rn(Jt,Nt){if(1&Jt&&(i.Hsn(0),i.YNc(1,Ft,2,1,"span",17)),2&Jt){const Ye=i.oxw();i.xp6(1),i.Q6J("ngIf",!Ye.isAddOn&&!Ye.isAffix&&Ye.isFeedback)}}let Re=(()=>{class Jt{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ye){this._disabled=null!=Ye&&"false"!=`${Ye}`}constructor(Ye,He,Pe,We,Be,xe,te){this.ngControl=Ye,this.renderer=He,this.elementRef=Pe,this.hostView=We,this.directionality=Be,this.nzFormStatusService=xe,this.nzFormNoStatusService=te,this.nzBorderless=!1,this.nzSize="default",this.nzStatus="",this._disabled=!1,this.disabled$=new v.x,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new v.x}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,s.x)((Ye,He)=>Ye.status===He.status&&Ye.hasFeedback===He.hasFeedback),(0,L.R)(this.destroy$)).subscribe(({status:Ye,hasFeedback:He})=>{this.setStatusStyles(Ye,He)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,Q.h)(()=>null!==this.ngControl.disabled),(0,L.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(Ye=>{this.dir=Ye})}ngOnChanges(Ye){const{disabled:He,nzStatus:Pe}=Ye;He&&this.disabled$.next(this.disabled),Pe&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ye,He){this.status=Ye,this.hasFeedback=He,this.renderFeedbackIcon(),this.statusCls=(0,U.Zu)(this.prefixCls,Ye,He),Object.keys(this.statusCls).forEach(Pe=>{this.statusCls[Pe]?this.renderer.addClass(this.elementRef.nativeElement,Pe):this.renderer.removeClass(this.elementRef.nativeElement,Pe)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(V.w_),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)(i.Y36(M.a5,10),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(e.Is,8),i.Y36(V.kH,8),i.Y36(V.yW,8))},Jt.\u0275dir=i.lG2({type:Jt,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:11,hostBindings:function(Ye,He){2&Ye&&(i.uIk("disabled",He.disabled||null),i.ekj("ant-input-disabled",He.disabled)("ant-input-borderless",He.nzBorderless)("ant-input-lg","large"===He.nzSize)("ant-input-sm","small"===He.nzSize)("ant-input-rtl","rtl"===He.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",nzStatus:"nzStatus",disabled:"disabled"},exportAs:["nzInput"],features:[i.TTD]}),(0,t.gn)([(0,U.yF)()],Jt.prototype,"nzBorderless",void 0),Jt})(),yt=(()=>{class Jt{constructor(){this.icon=null,this.type=null,this.template=null}}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)},Jt.\u0275cmp=i.Xpm({type:Jt,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(Ye,He){2&Ye&&i.ekj("ant-input-group-addon","addon"===He.type)("ant-input-prefix","prefix"===He.type)("ant-input-suffix","suffix"===He.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:R,ngContentSelectors:x,decls:3,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(Ye,He){1&Ye&&(i.F$t(),i.YNc(0,O,1,1,"span",0),i.YNc(1,P,2,1,"ng-container",1),i.Hsn(2)),2&Ye&&(i.Q6J("ngIf",He.icon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",He.template))},dependencies:[k.O5,ge.Ls,Ce.f],encapsulation:2,changeDetection:0}),Jt})(),je=(()=>{class Jt{constructor(Ye){this.elementRef=Ye}}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)(i.Y36(i.SBq))},Jt.\u0275dir=i.lG2({type:Jt,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),Jt})(),Ut=(()=>{class Jt{constructor(Ye,He,Pe,We,Be,xe,te){this.focusMonitor=Ye,this.elementRef=He,this.renderer=Pe,this.cdr=We,this.directionality=Be,this.nzFormStatusService=xe,this.nzFormNoStatusService=te,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new v.x}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Ye=>Ye.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,s.x)((Ye,He)=>Ye.status===He.status&&Ye.hasFeedback===He.hasFeedback),(0,L.R)(this.destroy$)).subscribe(({status:Ye,hasFeedback:He})=>{this.setStatusStyles(Ye,He)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,L.R)(this.destroy$)).subscribe(Ye=>{this.focused=!!Ye,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,L.R)(this.destroy$)).subscribe(Ye=>{this.dir=Ye})}ngAfterContentInit(){this.updateChildrenInputSize();const Ye=this.listOfNzInputDirective.changes.pipe((0,Y.O)(this.listOfNzInputDirective));Ye.pipe((0,A.w)(He=>(0,d.T)(Ye,...He.map(Pe=>Pe.disabled$))),(0,S.z)(()=>Ye),(0,N.U)(He=>He.some(Pe=>Pe.disabled)),(0,L.R)(this.destroy$)).subscribe(He=>{this.disabled=He,this.cdr.markForCheck()})}ngOnChanges(Ye){const{nzSize:He,nzSuffix:Pe,nzPrefix:We,nzPrefixIcon:Be,nzSuffixIcon:xe,nzAddOnAfter:te,nzAddOnBefore:ae,nzAddOnAfterIcon:De,nzAddOnBeforeIcon:Ge,nzStatus:Ct}=Ye;He&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(Pe||We||Be||xe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(te||ae||De||Ge)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Ct&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ye,He){this.status=Ye,this.hasFeedback=He,this.isFeedback=!!Ye&&He,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&He,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,U.Zu)(`${this.prefixCls}-affix-wrapper`,Ye,He):{},this.cdr.markForCheck(),this.affixStatusCls=(0,U.Zu)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Ye,!this.isAddOn&&He),this.groupStatusCls=(0,U.Zu)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Ye:"",!!this.isAddOn&&He);const We={...this.affixStatusCls,...this.groupStatusCls};Object.keys(We).forEach(Be=>{We[Be]?this.renderer.addClass(this.elementRef.nativeElement,Be):this.renderer.removeClass(this.elementRef.nativeElement,Be)})}}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)(i.Y36(I.tE),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(e.Is,8),i.Y36(V.kH,8),i.Y36(V.yW,8))},Jt.\u0275cmp=i.Xpm({type:Jt,selectors:[["nz-input-group"]],contentQueries:function(Ye,He,Pe){if(1&Ye&&i.Suo(Pe,Re,4),2&Ye){let We;i.iGM(We=i.CRH())&&(He.listOfNzInputDirective=We)}},hostVars:40,hostBindings:function(Ye,He){2&Ye&&i.ekj("ant-input-group-compact",He.nzCompact)("ant-input-search-enter-button",He.nzSearch)("ant-input-search",He.nzSearch)("ant-input-search-rtl","rtl"===He.dir)("ant-input-search-sm",He.nzSearch&&He.isSmall)("ant-input-search-large",He.nzSearch&&He.isLarge)("ant-input-group-wrapper",He.isAddOn)("ant-input-group-wrapper-rtl","rtl"===He.dir)("ant-input-group-wrapper-lg",He.isAddOn&&He.isLarge)("ant-input-group-wrapper-sm",He.isAddOn&&He.isSmall)("ant-input-affix-wrapper",He.isAffix&&!He.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===He.dir)("ant-input-affix-wrapper-focused",He.isAffix&&He.focused)("ant-input-affix-wrapper-disabled",He.isAffix&&He.disabled)("ant-input-affix-wrapper-lg",He.isAffix&&!He.isAddOn&&He.isLarge)("ant-input-affix-wrapper-sm",He.isAffix&&!He.isAddOn&&He.isSmall)("ant-input-group",!He.isAffix&&!He.isAddOn)("ant-input-group-rtl","rtl"===He.dir)("ant-input-group-lg",!He.isAffix&&!He.isAddOn&&He.isLarge)("ant-input-group-sm",!He.isAffix&&!He.isAddOn&&He.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[i._Bn([V.yW]),i.TTD],ngContentSelectors:x,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-disabled","ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg","ant-input-affix-wrapper-focused","ngClass",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper",3,"ngClass"],[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"],[3,"status",4,"ngIf"],[3,"status"],["nz-input-group-slot","","type","suffix",4,"ngIf"],["nz-input-group-slot","","type","suffix"]],template:function(Ye,He){if(1&Ye&&(i.F$t(),i.YNc(0,re,4,4,"span",0),i.YNc(1,Oe,1,2,"ng-template",null,1,i.W1O),i.YNc(3,_t,3,3,"ng-template",null,2,i.W1O),i.YNc(5,rn,2,1,"ng-template",null,3,i.W1O)),2&Ye){const Pe=i.MAs(2);i.Q6J("ngIf",He.isAddOn)("ngIfElse",Pe)}},dependencies:[k.mk,k.O5,k.tP,V.w_,yt],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,U.yF)()],Jt.prototype,"nzSearch",void 0),(0,t.gn)([(0,U.yF)()],Jt.prototype,"nzCompact",void 0),Jt})(),Xt=(()=>{class Jt{set nzAutosize(Ye){var Pe;"string"==typeof Ye||!0===Ye?this.autosize=!0:"string"!=typeof(Pe=Ye)&&"boolean"!=typeof Pe&&(Pe.maxRows||Pe.minRows)&&(this.autosize=!0,this.minRows=Ye.minRows,this.maxRows=Ye.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Ye=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const He=this.el,Pe=He.value;if(!Ye&&this.minRows===this.previousMinRows&&Pe===this.previousValue)return;const We=He.placeholder;He.classList.add("nz-textarea-autosize-measuring"),He.placeholder="";let Be=Math.round((He.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&Be>this.maxHeight&&(Be=this.maxHeight),null!==this.minHeight&&BerequestAnimationFrame(()=>{const{selectionStart:xe,selectionEnd:te}=He;!this.destroy$.isStopped&&document.activeElement===He&&He.setSelectionRange(xe,te)})),this.previousValue=Pe,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Ye=this.el.cloneNode(!1);Ye.rows=1,Ye.style.position="absolute",Ye.style.visibility="hidden",Ye.style.border="none",Ye.style.padding="0",Ye.style.height="",Ye.style.minHeight="",Ye.style.maxHeight="",Ye.style.overflow="hidden",this.el.parentNode.appendChild(Ye),this.cachedLineHeight=Ye.clientHeight-this.inputGap,this.el.parentNode.removeChild(Ye),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Ye=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Ye&&(this.el.style.minHeight=`${Ye}px`),Ye}setMaxHeight(){const Ye=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Ye&&(this.el.style.maxHeight=`${Ye}px`),Ye}noopInputHandler(){}constructor(Ye,He,Pe,We){this.elementRef=Ye,this.ngZone=He,this.platform=Pe,this.resizeService=We,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new v.x,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,L.R)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Z.t4),i.Y36(F.rI))},Jt.\u0275dir=i.lG2({type:Jt,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(Ye,He){1&Ye&&i.NdJ("input",function(){return He.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"]}),Jt})(),On=(()=>{class Jt{}return Jt.\u0275fac=function(Ye){return new(Ye||Jt)},Jt.\u0275mod=i.oAB({type:Jt}),Jt.\u0275inj=i.cJS({imports:[e.vT,k.ez,ge.PV,Z.ud,Ce.T,V.mJ]}),Jt})()},6976:(Ot,be,a)=>{a.d(be,{n_:()=>Lt,I2:()=>_e,t4:()=>mt,KC:()=>ut,nk:()=>ce,AA:()=>dt,yw:()=>Ze,yi:()=>gn,Pb:()=>Rt,IO:()=>rt,Ph:()=>ne});var t=a(5879),i=a(6814),v=a(6928),d=a(8324),s=a(655),L=a(7754),Q=a(8645),Y=a(4911),A=a(2096),S=a(3019),N=a(5592),V=a(5619),U=a(8180),M=a(7398),e=a(4829),I=a(9360),k=a(8251);function ge(B,ze){return ze?$e=>$e.pipe(ge((Mt,on)=>(0,e.Xf)(B(Mt,on)).pipe((0,M.U)((Zt,Wn)=>ze(Mt,Zt,on,Wn))))):(0,I.e)(($e,Mt)=>{let on=0,Zt=null,Wn=!1;$e.subscribe((0,k.x)(Mt,pn=>{Zt||(Zt=(0,k.x)(Mt,void 0,()=>{Zt=null,Wn&&Mt.complete()}),(0,e.Xf)(B(pn,on++)).subscribe(Zt))},()=>{Wn=!0,!Zt&&Mt.complete()}))})}var Ce=a(7921),Z=a(9773),F=a(9087),R=a(804),O=a(9388),P=a(2669),x=a(95);const de=["*"];function ue(B,ze){if(1&B&&t._UZ(0,"nz-avatar",3),2&B){const $e=t.oxw();t.Q6J("nzSrc",$e.nzSrc)}}function j(B,ze){1&B&&t.Hsn(0,0,["*ngIf","!nzSrc"])}function me(B,ze){if(1&B&&t._UZ(0,"nz-list-item-meta-avatar",3),2&B){const $e=t.oxw();t.Q6J("nzSrc",$e.avatarStr)}}function re(B,ze){if(1&B&&(t.TgZ(0,"nz-list-item-meta-avatar"),t.GkF(1,4),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",$e.avatarTpl)}}function he(B,ze){if(1&B&&(t.ynx(0),t._uU(1),t.BQk()),2&B){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzTitle)}}function Me(B,ze){if(1&B&&(t.TgZ(0,"nz-list-item-meta-title"),t.YNc(1,he,2,1,"ng-container",6),t.qZA()),2&B){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzTitle)}}function Oe(B,ze){if(1&B&&(t.ynx(0),t._uU(1),t.BQk()),2&B){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzDescription)}}function kt(B,ze){if(1&B&&(t.TgZ(0,"nz-list-item-meta-description"),t.YNc(1,Oe,2,1,"ng-container",6),t.qZA()),2&B){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzDescription)}}function It(B,ze){if(1&B&&(t.TgZ(0,"div",5),t.YNc(1,Me,2,1,"nz-list-item-meta-title",1),t.YNc(2,kt,2,1,"nz-list-item-meta-description",1),t.Hsn(3,1),t.Hsn(4,2),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("ngIf",$e.nzTitle&&!$e.titleComponent),t.xp6(1),t.Q6J("ngIf",$e.nzDescription&&!$e.descriptionComponent)}}const Tt=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],gt=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function _t(B,ze){1&B&&t.Hsn(0)}const Ft=["nz-list-item-actions",""];function rn(B,ze){}function bn(B,ze){1&B&&t._UZ(0,"em",3)}function et(B,ze){if(1&B&&(t.TgZ(0,"li"),t.YNc(1,rn,0,0,"ng-template",1),t.YNc(2,bn,1,0,"em",2),t.qZA()),2&B){const $e=ze.$implicit,Mt=ze.last;t.xp6(1),t.Q6J("ngTemplateOutlet",$e),t.xp6(1),t.Q6J("ngIf",!Mt)}}function Re(B,ze){}const yt=function(B,ze){return{$implicit:B,index:ze}};function je(B,ze){if(1&B&&(t.ynx(0),t.YNc(1,Re,0,0,"ng-template",9),t.BQk()),2&B){const $e=ze.$implicit,Mt=ze.index,on=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",on.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,yt,$e,Mt))}}function Ut(B,ze){if(1&B&&(t.TgZ(0,"div",7),t.YNc(1,je,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("ngForOf",$e.nzDataSource)}}function Xt(B,ze){if(1&B&&(t.ynx(0),t._uU(1),t.BQk()),2&B){const $e=t.oxw(2);t.xp6(1),t.Oqu($e.nzHeader)}}function _n(B,ze){if(1&B&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Xt,2,1,"ng-container",10),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzHeader)}}function On(B,ze){1&B&&t._UZ(0,"div"),2&B&&t.Udp("min-height",53,"px")}function Jt(B,ze){}function Nt(B,ze){if(1&B&&(t.TgZ(0,"div",13),t.YNc(1,Jt,0,0,"ng-template",9),t.qZA()),2&B){const $e=ze.$implicit,Mt=ze.index,on=t.oxw(2);t.Q6J("nzSpan",on.nzGrid.span||null)("nzXs",on.nzGrid.xs||null)("nzSm",on.nzGrid.sm||null)("nzMd",on.nzGrid.md||null)("nzLg",on.nzGrid.lg||null)("nzXl",on.nzGrid.xl||null)("nzXXl",on.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",on.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,yt,$e,Mt))}}function Ye(B,ze){if(1&B&&(t.TgZ(0,"div",11),t.YNc(1,Nt,2,12,"div",12),t.qZA()),2&B){const $e=t.oxw();t.Q6J("nzGutter",$e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",$e.nzDataSource)}}function He(B,ze){if(1&B&&t._UZ(0,"nz-list-empty",14),2&B){const $e=t.oxw();t.Q6J("nzNoResult",$e.nzNoResult)}}function Pe(B,ze){if(1&B&&(t.ynx(0),t._uU(1),t.BQk()),2&B){const $e=t.oxw(2);t.xp6(1),t.Oqu($e.nzFooter)}}function We(B,ze){if(1&B&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Pe,2,1,"ng-container",10),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzFooter)}}function Be(B,ze){}function xe(B,ze){}function te(B,ze){if(1&B&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,xe,0,0,"ng-template",6),t.qZA()),2&B){const $e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzPagination)}}const ae=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],De=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Ge(B,ze){if(1&B&&t._UZ(0,"ul",6),2&B){const $e=t.oxw(2);t.Q6J("nzActions",$e.nzActions)}}function Ct(B,ze){if(1&B&&(t.YNc(0,Ge,1,1,"ul",5),t.Hsn(1)),2&B){const $e=t.oxw();t.Q6J("ngIf",$e.nzActions&&$e.nzActions.length>0)}}function sn(B,ze){if(1&B&&(t.ynx(0),t._uU(1),t.BQk()),2&B){const $e=t.oxw(3);t.xp6(1),t.Oqu($e.nzContent)}}function yn(B,ze){if(1&B&&(t.ynx(0),t.YNc(1,sn,2,1,"ng-container",8),t.BQk()),2&B){const $e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",$e.nzContent)}}function st(B,ze){if(1&B&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,yn,2,1,"ng-container",7)),2&B){const $e=t.oxw();t.xp6(2),t.Q6J("ngIf",$e.nzContent)}}function it(B,ze){1&B&&t.Hsn(0,3)}function lt(B,ze){}function Pt(B,ze){}function wt(B,ze){}function Vt(B,ze){}function jt(B,ze){if(1&B&&(t.YNc(0,lt,0,0,"ng-template",9),t.YNc(1,Pt,0,0,"ng-template",9),t.YNc(2,wt,0,0,"ng-template",9),t.YNc(3,Vt,0,0,"ng-template",9)),2&B){const $e=t.oxw(),Mt=t.MAs(3),on=t.MAs(5),Zt=t.MAs(1);t.Q6J("ngTemplateOutlet",Mt),t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",on),t.xp6(1),t.Q6J("ngTemplateOutlet",Zt)}}function Ke(B,ze){}function K(B,ze){}function w(B,ze){}function J(B,ze){if(1&B&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,w,0,0,"ng-template",9),t.qZA()),2&B){const $e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",$e.nzExtra)}}function Te(B,ze){}function zt(B,ze){if(1&B&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,Ke,0,0,"ng-template",9),t.YNc(3,K,0,0,"ng-template",9),t.qZA(),t.YNc(4,J,2,1,"nz-list-item-extra",7),t.YNc(5,Te,0,0,"ng-template",9),t.BQk()),2&B){const $e=t.oxw(),Mt=t.MAs(3),on=t.MAs(1),Zt=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",Mt),t.xp6(1),t.Q6J("ngTemplateOutlet",on),t.xp6(1),t.Q6J("ngIf",$e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",Zt)}}const nt=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],qe=["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 rt=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:de,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function($e,Mt){1&$e&&(t.F$t(),t.TgZ(0,"h4",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),B})(),Rt=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:de,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function($e,Mt){1&$e&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),B})(),St=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:de,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function($e,Mt){1&$e&&(t.F$t(),t.TgZ(0,"div",0),t.YNc(1,ue,1,1,"nz-avatar",1),t.YNc(2,j,1,0,"ng-content",2),t.qZA()),2&$e&&(t.xp6(1),t.Q6J("ngIf",Mt.nzSrc),t.xp6(1),t.Q6J("ngIf",!Mt.nzSrc))},dependencies:[i.O5,v.Dz],encapsulation:2,changeDetection:0}),B})(),gn=(()=>{class B{set nzAvatar($e){$e instanceof t.Rgc?(this.avatarStr="",this.avatarTpl=$e):this.avatarStr=$e}constructor($e){this.elementRef=$e,this.avatarStr=""}}return B.\u0275fac=function($e){return new($e||B)(t.Y36(t.SBq))},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function($e,Mt,on){if(1&$e&&(t.Suo(on,Rt,5),t.Suo(on,rt,5)),2&$e){let Zt;t.iGM(Zt=t.CRH())&&(Mt.descriptionComponent=Zt.first),t.iGM(Zt=t.CRH())&&(Mt.titleComponent=Zt.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:gt,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($e,Mt){1&$e&&(t.F$t(Tt),t.YNc(0,me,1,1,"nz-list-item-meta-avatar",0),t.YNc(1,re,2,1,"nz-list-item-meta-avatar",1),t.Hsn(2),t.YNc(3,It,5,2,"div",2)),2&$e&&(t.Q6J("ngIf",Mt.avatarStr),t.xp6(1),t.Q6J("ngIf",Mt.avatarTpl),t.xp6(2),t.Q6J("ngIf",Mt.nzTitle||Mt.nzDescription||Mt.descriptionComponent||Mt.titleComponent))},dependencies:[i.O5,i.tP,d.f,rt,Rt,St],encapsulation:2,changeDetection:0}),B})(),Ze=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:de,decls:1,vars:0,template:function($e,Mt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),B})(),ut=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item-action"]],viewQuery:function($e,Mt){if(1&$e&&t.Gf(t.Rgc,5),2&$e){let on;t.iGM(on=t.CRH())&&(Mt.templateRef=on.first)}},exportAs:["nzListItemAction"],ngContentSelectors:de,decls:1,vars:0,template:function($e,Mt){1&$e&&(t.F$t(),t.YNc(0,_t,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),B})(),ce=(()=>{class B{constructor($e,Mt,on){this.ngZone=$e,this.nzActions=[],this.actions=[],this.inputActionChanges$=new Q.x,this.contentChildrenChanges$=(0,Y.P)(()=>this.nzListItemActions?(0,A.of)(null):this.ngZone.onStable.pipe((0,U.q)(1),this.enterZone(),ge(()=>this.nzListItemActions.changes.pipe((0,Ce.O)(this.nzListItemActions))))),(0,S.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,Z.R)(on)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(Zt=>Zt.templateRef),Mt.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}enterZone(){return $e=>new N.y(Mt=>$e.subscribe({next:on=>this.ngZone.run(()=>Mt.next(on))}))}}return B.\u0275fac=function($e){return new($e||B)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(F.kn))},B.\u0275cmp=t.Xpm({type:B,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function($e,Mt,on){if(1&$e&&t.Suo(on,ut,4),2&$e){let Zt;t.iGM(Zt=t.CRH())&&(Mt.nzListItemActions=Zt)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t._Bn([F.kn]),t.TTD],attrs:Ft,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($e,Mt){1&$e&&t.YNc(0,et,3,2,"li",0),2&$e&&t.Q6J("ngForOf",Mt.actions)},dependencies:[i.sg,i.O5,i.tP],encapsulation:2,changeDetection:0}),B})(),_e=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,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($e,Mt){1&$e&&t._UZ(0,"nz-embed-empty",0),2&$e&&t.Q6J("nzComponentName","list")("specificContent",Mt.nzNoResult)},dependencies:[R.gB],encapsulation:2,changeDetection:0}),B})(),mt=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:de,decls:1,vars:0,template:function($e,Mt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),B})(),Ae=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:de,decls:1,vars:0,template:function($e,Mt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),B})(),at=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:de,decls:1,vars:0,template:function($e,Mt){1&$e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),B})(),Ht=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275dir=t.lG2({type:B,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),B})(),Lt=(()=>{class B{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor($e){this.directionality=$e,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 V.X(this.nzItemLayout),this.destroy$=new Q.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,Z.R)(this.destroy$)).subscribe($e=>{this.dir=$e})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges($e){$e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return B.\u0275fac=function($e){return new($e||B)(t.Y36(O.Is,8))},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function($e,Mt,on){if(1&$e&&(t.Suo(on,Ae,5),t.Suo(on,at,5),t.Suo(on,Ht,5)),2&$e){let Zt;t.iGM(Zt=t.CRH())&&(Mt.nzListFooterComponent=Zt.first),t.iGM(Zt=t.CRH())&&(Mt.nzListPaginationComponent=Zt.first),t.iGM(Zt=t.CRH())&&(Mt.nzListLoadMoreDirective=Zt.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function($e,Mt){2&$e&&t.ekj("ant-list-rtl","rtl"===Mt.dir)("ant-list-vertical","vertical"===Mt.nzItemLayout)("ant-list-lg","large"===Mt.nzSize)("ant-list-sm","small"===Mt.nzSize)("ant-list-split",Mt.nzSplit)("ant-list-bordered",Mt.nzBordered)("ant-list-loading",Mt.nzLoading)("ant-list-something-after-last-item",Mt.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:[t.TTD],ngContentSelectors:De,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($e,Mt){if(1&$e&&(t.F$t(ae),t.YNc(0,Ut,3,1,"ng-template",null,0,t.W1O),t.YNc(2,_n,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,On,1,2,"div",3),t.YNc(7,Ye,2,2,"div",4),t.YNc(8,He,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,We,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Be,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,te,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&$e){const on=t.MAs(1);t.xp6(2),t.Q6J("ngIf",Mt.nzHeader),t.xp6(2),t.Q6J("nzSpinning",Mt.nzLoading),t.xp6(2),t.Q6J("ngIf",Mt.nzLoading&&Mt.nzDataSource&&0===Mt.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",Mt.nzGrid&&Mt.nzDataSource)("ngIfElse",on),t.xp6(1),t.Q6J("ngIf",!Mt.nzLoading&&Mt.nzDataSource&&0===Mt.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",Mt.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",Mt.nzLoadMore),t.xp6(2),t.Q6J("ngIf",Mt.nzPagination)}},dependencies:[i.sg,i.O5,i.tP,P.W,x.t3,x.SK,d.f,mt,Ae,at,_e],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,L.yF)()],B.prototype,"nzBordered",void 0),(0,s.gn)([(0,L.yF)()],B.prototype,"nzLoading",void 0),(0,s.gn)([(0,L.yF)()],B.prototype,"nzSplit",void 0),B})(),dt=(()=>{class B{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor($e,Mt){this.parentComp=$e,this.cdr=Mt,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe($e=>{this.itemLayout=$e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return B.\u0275fac=function($e){return new($e||B)(t.Y36(Lt),t.Y36(t.sBO))},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function($e,Mt,on){if(1&$e&&t.Suo(on,Ze,5),2&$e){let Zt;t.iGM(Zt=t.CRH())&&(Mt.listItemExtraDirective=Zt.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function($e,Mt){2&$e&&t.ekj("ant-list-item-no-flex",Mt.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:qe,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($e,Mt){if(1&$e&&(t.F$t(nt),t.YNc(0,Ct,2,1,"ng-template",null,0,t.W1O),t.YNc(2,st,3,1,"ng-template",null,1,t.W1O),t.YNc(4,it,1,0,"ng-template",null,2,t.W1O),t.YNc(6,jt,4,4,"ng-template",null,3,t.W1O),t.YNc(8,zt,6,4,"ng-container",4)),2&$e){const on=t.MAs(7);t.xp6(8),t.Q6J("ngIf",Mt.isVerticalAndExtra)("ngIfElse",on)}},dependencies:[i.O5,i.tP,d.f,ce,Ze],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,L.yF)()],B.prototype,"nzNoFlex",void 0),B})(),ne=(()=>{class B{}return B.\u0275fac=function($e){return new($e||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({imports:[O.vT,i.ez,P.j,x.Jb,v.Rt,d.T,R.Xo]}),B})()},3460:(Ot,be,a)=>{a.d(be,{Cc:()=>He,YV:()=>wt,hl:()=>We,ip:()=>Vt,r9:()=>xe,uA:()=>Pt,wO:()=>it});var t=a(655),i=a(5879),v=a(8645),d=a(5619),s=a(3019),L=a(2572),Q=a(7398),Y=a(1631),A=a(2181),S=a(975),N=a(9028),V=a(3997),U=a(9773),M=a(7921),e=a(4664),I=a(7754),k=a(4190),ge=a(9388),Ce=a(9594),Z=a(5448),F=a(2831),R=a(331),O=a(6814),P=a(551),x=a(8324),de=a(4194);const ue=["nz-submenu-title",""];function j(jt,Ke){if(1&jt&&i._UZ(0,"span",4),2&jt){const K=i.oxw();i.Q6J("nzType",K.nzIcon)}}function me(jt,Ke){if(1&jt&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&jt){const K=i.oxw();i.xp6(2),i.Oqu(K.nzTitle)}}function re(jt,Ke){1&jt&&i._UZ(0,"span",8)}function he(jt,Ke){1&jt&&i._UZ(0,"span",9)}function Me(jt,Ke){if(1&jt&&(i.TgZ(0,"span",5),i.YNc(1,re,1,0,"span",6),i.YNc(2,he,1,0,"span",7),i.qZA()),2&jt){const K=i.oxw();i.Q6J("ngSwitch",K.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function Oe(jt,Ke){1&jt&&i._UZ(0,"span",10)}const kt=["*"],It=["nz-submenu-inline-child",""];function Tt(jt,Ke){}const gt=["nz-submenu-none-inline-child",""];function _t(jt,Ke){}const Ft=["nz-submenu",""];function rn(jt,Ke){1&jt&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function bn(jt,Ke){if(1&jt&&i._UZ(0,"div",6),2&jt){const K=i.oxw(),w=i.MAs(7);i.Q6J("mode",K.mode)("nzOpen",K.nzOpen)("@.disabled",!(null==K.noAnimation||!K.noAnimation.nzNoAnimation))("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)("menuClass",K.nzMenuClassName)("templateOutlet",w)}}function et(jt,Ke){if(1&jt){const K=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(J){i.CHM(K);const Te=i.oxw(2);return i.KtG(Te.setMouseEnterState(J))}),i.qZA()}if(2&jt){const K=i.oxw(2),w=i.MAs(7);i.Q6J("theme",K.theme)("mode",K.mode)("nzOpen",K.nzOpen)("position",K.position)("nzDisabled",K.nzDisabled)("isMenuInsideDropDown",K.isMenuInsideDropDown)("templateOutlet",w)("menuClass",K.nzMenuClassName)("@.disabled",!(null==K.noAnimation||!K.noAnimation.nzNoAnimation))("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)}}function Re(jt,Ke){if(1&jt){const K=i.EpF();i.YNc(0,et,1,10,"ng-template",7),i.NdJ("positionChange",function(J){i.CHM(K);const Te=i.oxw();return i.KtG(Te.onPositionChange(J))})}if(2&jt){const K=i.oxw(),w=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",K.overlayPositions)("cdkConnectedOverlayOrigin",w)("cdkConnectedOverlayWidth",K.triggerWidth)("cdkConnectedOverlayOpen",K.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function yt(jt,Ke){1&jt&&i.Hsn(0,1)}const je=[[["","title",""]],"*"],Ut=["[title]","*"],Xt=["titleElement"],_n=["nz-menu-group",""];function On(jt,Ke){if(1&jt&&(i.ynx(0),i._uU(1),i.BQk()),2&jt){const K=i.oxw();i.xp6(1),i.Oqu(K.nzTitle)}}function Jt(jt,Ke){1&jt&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const Nt=["*",[["","title",""]]],Ye=["*","[title]"],He=new i.OlP("NzIsInDropDownMenuToken"),Pe=new i.OlP("NzMenuServiceLocalToken");let We=(()=>{class jt{constructor(){this.descendantMenuItemClick$=new v.x,this.childMenuItemClick$=new v.x,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(K){this.descendantMenuItemClick$.next(K)}onChildMenuItemClick(K){this.childMenuItemClick$.next(K)}setMode(K){this.mode$.next(K)}setTheme(K){this.theme$.next(K)}setInlineIndent(K){this.inlineIndent$.next(K)}}return jt.\u0275fac=function(K){return new(K||jt)},jt.\u0275prov=i.Yz7({token:jt,factory:jt.\u0275fac}),jt})(),Be=(()=>{class jt{onChildMenuItemClick(K){this.childMenuItemClick$.next(K)}setOpenStateWithoutDebounce(K){this.isCurrentSubMenuOpen$.next(K)}setMouseEnterTitleOrOverlayState(K){this.isMouseEnterTitleOrOverlay$.next(K)}constructor(K,w,J){this.nzHostSubmenuService=K,this.nzMenuService=w,this.isMenuInsideDropDown=J,this.mode$=this.nzMenuService.mode$.pipe((0,Q.U)(qe=>"inline"===qe?"inline":"vertical"===qe||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new d.X(!1),this.isChildSubMenuOpen$=new d.X(!1),this.isMouseEnterTitleOrOverlay$=new v.x,this.childMenuItemClick$=new v.x,this.destroy$=new v.x,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const Te=this.childMenuItemClick$.pipe((0,Y.z)(()=>this.mode$),(0,A.h)(qe=>"inline"!==qe||this.isMenuInsideDropDown),(0,S.h)(!1)),zt=(0,s.T)(this.isMouseEnterTitleOrOverlay$,Te);(0,L.a)([this.isChildSubMenuOpen$,zt]).pipe((0,Q.U)(([qe,rt])=>qe||rt),(0,N.e)(150),(0,V.x)(),(0,U.R)(this.destroy$)).pipe((0,V.x)()).subscribe(qe=>{this.setOpenStateWithoutDebounce(qe),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(qe):this.nzMenuService.isChildSubMenuOpen$.next(qe)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return jt.\u0275fac=function(K){return new(K||jt)(i.LFG(jt,12),i.LFG(We),i.LFG(He))},jt.\u0275prov=i.Yz7({token:jt,factory:jt.\u0275fac}),jt})(),xe=(()=>{class jt{clickMenuItem(K){this.nzDisabled?(K.preventDefault(),K.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(K){this.nzSelected=K,this.selected$.next(K)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const K=this.hasActiveLinks();this.nzSelected!==K&&(this.nzSelected=K,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const K=this.isLinkActive(this.router);return this.routerLink&&K(this.routerLink)||this.listOfRouterLink.some(K)}isLinkActive(K){return w=>K.isActive(w.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(K,w,J,Te,zt,nt,qe){this.nzMenuService=K,this.cdr=w,this.nzSubmenuService=J,this.isMenuInsideDropDown=Te,this.directionality=zt,this.routerLink=nt,this.router=qe,this.destroy$=new v.x,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new v.x,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,qe&&this.router.events.pipe((0,U.R)(this.destroy$),(0,A.h)(rt=>rt instanceof k.m2)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,L.a)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,w])=>{this.inlinePaddingLeft="inline"===K?this.level*w:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,U.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(K){K.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(We),i.Y36(i.sBO),i.Y36(Be,8),i.Y36(He),i.Y36(ge.Is,8),i.Y36(k.rH,8),i.Y36(k.F0,8))},jt.\u0275dir=i.lG2({type:jt,selectors:[["","nz-menu-item",""]],contentQueries:function(K,w,J){if(1&K&&i.Suo(J,k.rH,5),2&K){let Te;i.iGM(Te=i.CRH())&&(w.listOfRouterLink=Te)}},hostVars:20,hostBindings:function(K,w){1&K&&i.NdJ("click",function(Te){return w.clickMenuItem(Te)}),2&K&&(i.Udp("padding-left","rtl"===w.dir?null:w.nzPaddingLeft||w.inlinePaddingLeft,"px")("padding-right","rtl"===w.dir?w.nzPaddingLeft||w.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",w.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",w.isMenuInsideDropDown&&w.nzSelected)("ant-dropdown-menu-item-danger",w.isMenuInsideDropDown&&w.nzDanger)("ant-dropdown-menu-item-disabled",w.isMenuInsideDropDown&&w.nzDisabled)("ant-menu-item",!w.isMenuInsideDropDown)("ant-menu-item-selected",!w.isMenuInsideDropDown&&w.nzSelected)("ant-menu-item-danger",!w.isMenuInsideDropDown&&w.nzDanger)("ant-menu-item-disabled",!w.isMenuInsideDropDown&&w.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzDisabled",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzSelected",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzDanger",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzMatchRouterExact",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzMatchRouter",void 0),jt})(),te=(()=>{class jt{constructor(K,w){this.cdr=K,this.directionality=w,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 v.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(K){this.nzDisabled||this.subMenuMouseState.next(K)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(i.sBO),i.Y36(ge.Is,8))},jt.\u0275cmp=i.Xpm({type:jt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(K,w){1&K&&i.NdJ("click",function(){return w.clickTitle()})("mouseenter",function(){return w.setMouseState(!0)})("mouseleave",function(){return w.setMouseState(!1)}),2&K&&(i.Udp("padding-left","rtl"===w.dir?null:w.paddingLeft,"px")("padding-right","rtl"===w.dir?w.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",w.isMenuInsideDropDown)("ant-menu-submenu-title",!w.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ue,ngContentSelectors:kt,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(K,w){if(1&K&&(i.F$t(),i.YNc(0,j,1,1,"span",0),i.YNc(1,me,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,Me,3,2,"span",2),i.YNc(4,Oe,1,0,"ng-template",null,3,i.W1O)),2&K){const J=i.MAs(5);i.Q6J("ngIf",w.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",w.nzTitle),i.xp6(2),i.Q6J("ngIf",w.isMenuInsideDropDown)("ngIfElse",J)}},dependencies:[O.O5,O.RF,O.n9,O.ED,P.Ls,x.f],encapsulation:2,changeDetection:0}),jt})(),ae=(()=>{class jt{constructor(K,w,J){this.elementRef=K,this.renderer=w,this.directionality=J,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new v.x}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngOnChanges(K){const{mode:w,nzOpen:J,menuClass:Te}=K;(w||J)&&this.calcMotionState(),Te&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(zt=>!!zt).forEach(zt=>{this.renderer.removeClass(this.elementRef.nativeElement,zt)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(zt=>!!zt).forEach(zt=>{this.renderer.addClass(this.elementRef.nativeElement,zt)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(ge.Is,8))},jt.\u0275cmp=i.Xpm({type:jt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(K,w){2&K&&(i.d8E("@collapseMotion",w.expandState),i.ekj("ant-menu-rtl","rtl"===w.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:It,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(K,w){1&K&&i.YNc(0,Tt,0,0,"ng-template",0),2&K&&i.Q6J("ngTemplateOutlet",w.templateOutlet)},dependencies:[O.tP],encapsulation:2,data:{animation:[de.J_]},changeDetection:0}),jt})(),De=(()=>{class jt{constructor(K){this.directionality=K,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 v.x}setMouseState(K){this.nzDisabled||this.subMenuMouseState.next(K)}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(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K})}ngOnChanges(K){const{mode:w,nzOpen:J}=K;(w||J)&&this.calcMotionState()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(ge.Is,8))},jt.\u0275cmp=i.Xpm({type:jt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(K,w){1&K&&i.NdJ("mouseenter",function(){return w.setMouseState(!0)})("mouseleave",function(){return w.setMouseState(!1)}),2&K&&(i.d8E("@slideMotion",w.expandState)("@zoomBigMotion",w.expandState),i.ekj("ant-menu-light","light"===w.theme)("ant-menu-dark","dark"===w.theme)("ant-menu-submenu-placement-bottom","horizontal"===w.mode)("ant-menu-submenu-placement-right","vertical"===w.mode&&"right"===w.position)("ant-menu-submenu-placement-left","vertical"===w.mode&&"left"===w.position)("ant-menu-submenu-rtl","rtl"===w.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:gt,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(K,w){1&K&&(i.TgZ(0,"div",0),i.YNc(1,_t,0,0,"ng-template",1),i.qZA()),2&K&&(i.ekj("ant-dropdown-menu",w.isMenuInsideDropDown)("ant-menu",!w.isMenuInsideDropDown)("ant-dropdown-menu-vertical",w.isMenuInsideDropDown)("ant-menu-vertical",!w.isMenuInsideDropDown)("ant-dropdown-menu-sub",w.isMenuInsideDropDown)("ant-menu-sub",!w.isMenuInsideDropDown)("ant-menu-rtl","rtl"===w.dir),i.Q6J("ngClass",w.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",w.templateOutlet))},dependencies:[O.mk,O.tP],encapsulation:2,data:{animation:[de.$C,de.mF]},changeDetection:0}),jt})();const Ge=[Z.yW.rightTop,Z.yW.right,Z.yW.rightBottom,Z.yW.leftTop,Z.yW.left,Z.yW.leftBottom],Ct=[Z.yW.bottomLeft,Z.yW.bottomRight,Z.yW.topRight,Z.yW.topLeft];let sn=(()=>{class jt{setOpenStateWithoutDebounce(K){this.nzSubmenuService.setOpenStateWithoutDebounce(K)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(K){this.isActive=K,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(K)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(K){const w=(0,Z.d_)(K);"rightTop"===w||"rightBottom"===w||"right"===w?this.position="right":("leftTop"===w||"leftBottom"===w||"left"===w)&&(this.position="left")}constructor(K,w,J,Te,zt,nt,qe){this.nzMenuService=K,this.cdr=w,this.nzSubmenuService=J,this.platform=Te,this.isMenuInsideDropDown=zt,this.directionality=nt,this.noAnimation=qe,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new v.x,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=Ge,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.theme=K,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.mode=K,"horizontal"===K?this.overlayPositions=[Z.yW[this.nzPlacement],...Ct]:"vertical"===K&&(this.overlayPositions=Ge),this.cdr.markForCheck()}),(0,L.a)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,w])=>{this.inlinePaddingLeft="inline"===K?this.level*w:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.isActive=K,K!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=K,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const K=this.listOfNzMenuItemDirective,w=K.changes,J=(0,s.T)(w,...K.map(Te=>Te.selected$));w.pipe((0,M.O)(K),(0,e.w)(()=>J),(0,M.O)(!0),(0,Q.U)(()=>K.some(Te=>Te.nzSelected)),(0,U.R)(this.destroy$)).subscribe(Te=>{this.isSelected=Te,this.cdr.markForCheck()})}ngOnChanges(K){const{nzOpen:w}=K;w&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(We),i.Y36(i.sBO),i.Y36(Be),i.Y36(F.t4),i.Y36(He),i.Y36(ge.Is,8),i.Y36(R.P,9))},jt.\u0275cmp=i.Xpm({type:jt,selectors:[["","nz-submenu",""]],contentQueries:function(K,w,J){if(1&K&&(i.Suo(J,jt,5),i.Suo(J,xe,5)),2&K){let Te;i.iGM(Te=i.CRH())&&(w.listOfNzSubMenuComponent=Te),i.iGM(Te=i.CRH())&&(w.listOfNzMenuItemDirective=Te)}},viewQuery:function(K,w){if(1&K&&i.Gf(Ce.xu,7,i.SBq),2&K){let J;i.iGM(J=i.CRH())&&(w.cdkOverlayOrigin=J.first)}},hostVars:34,hostBindings:function(K,w){2&K&&i.ekj("ant-dropdown-menu-submenu",w.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",w.isMenuInsideDropDown&&w.nzDisabled)("ant-dropdown-menu-submenu-open",w.isMenuInsideDropDown&&w.nzOpen)("ant-dropdown-menu-submenu-selected",w.isMenuInsideDropDown&&w.isSelected)("ant-dropdown-menu-submenu-vertical",w.isMenuInsideDropDown&&"vertical"===w.mode)("ant-dropdown-menu-submenu-horizontal",w.isMenuInsideDropDown&&"horizontal"===w.mode)("ant-dropdown-menu-submenu-inline",w.isMenuInsideDropDown&&"inline"===w.mode)("ant-dropdown-menu-submenu-active",w.isMenuInsideDropDown&&w.isActive)("ant-menu-submenu",!w.isMenuInsideDropDown)("ant-menu-submenu-disabled",!w.isMenuInsideDropDown&&w.nzDisabled)("ant-menu-submenu-open",!w.isMenuInsideDropDown&&w.nzOpen)("ant-menu-submenu-selected",!w.isMenuInsideDropDown&&w.isSelected)("ant-menu-submenu-vertical",!w.isMenuInsideDropDown&&"vertical"===w.mode)("ant-menu-submenu-horizontal",!w.isMenuInsideDropDown&&"horizontal"===w.mode)("ant-menu-submenu-inline",!w.isMenuInsideDropDown&&"inline"===w.mode)("ant-menu-submenu-active",!w.isMenuInsideDropDown&&w.isActive)("ant-menu-submenu-rtl","rtl"===w.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled",nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Be]),i.TTD],attrs:Ft,ngContentSelectors:Ut,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(K,w){if(1&K&&(i.F$t(je),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(Te){return w.setMouseEnterState(Te)})("toggleSubMenu",function(){return w.toggleSubMenu()}),i.YNc(2,rn,1,0,"ng-content",2),i.qZA(),i.YNc(3,bn,1,6,"div",3),i.YNc(4,Re,1,5,"ng-template",null,4,i.W1O),i.YNc(6,yt,1,0,"ng-template",null,5,i.W1O)),2&K){const J=i.MAs(5);i.Q6J("nzIcon",w.nzIcon)("nzTitle",w.nzTitle)("mode",w.mode)("nzDisabled",w.nzDisabled)("isMenuInsideDropDown",w.isMenuInsideDropDown)("paddingLeft",w.nzPaddingLeft||w.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!w.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===w.mode)("ngIfElse",J)}},dependencies:[O.O5,Ce.pI,Ce.xu,R.P,te,ae,De],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzOpen",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzDisabled",void 0),jt})();function yn(jt,Ke){return jt||Ke}function st(jt){return jt||!1}let it=(()=>{class jt{setInlineCollapsed(K){this.nzInlineCollapsed=K,this.inlineCollapsed$.next(K)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(K=>K.nzOpen),this.listOfNzSubMenuComponent.forEach(K=>K.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(K=>K.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(K,w,J,Te){this.nzMenuService=K,this.isMenuInsideDropDown=w,this.cdr=J,this.directionality=Te,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 v.x,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,L.a)([this.inlineCollapsed$,this.mode$]).pipe((0,U.R)(this.destroy$)).subscribe(([K,w])=>{this.actualMode=K?"vertical":w,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.nzClick.emit(K),this.nzSelectable&&!K.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(w=>w.setSelectedState(w===K))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,U.R)(this.destroy$)).subscribe(K=>{this.dir=K,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,U.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(K){const{nzInlineCollapsed:w,nzInlineIndent:J,nzTheme:Te,nzMode:zt}=K;w&&this.inlineCollapsed$.next(this.nzInlineCollapsed),J&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),Te&&this.nzMenuService.setTheme(this.nzTheme),zt&&(this.mode$.next(this.nzMode),!K.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(nt=>nt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(We),i.Y36(He),i.Y36(i.sBO),i.Y36(ge.Is,8))},jt.\u0275dir=i.lG2({type:jt,selectors:[["","nz-menu",""]],contentQueries:function(K,w,J){if(1&K&&(i.Suo(J,xe,5),i.Suo(J,sn,5)),2&K){let Te;i.iGM(Te=i.CRH())&&(w.listOfNzMenuItemDirective=Te),i.iGM(Te=i.CRH())&&(w.listOfNzSubMenuComponent=Te)}},hostVars:34,hostBindings:function(K,w){2&K&&i.ekj("ant-dropdown-menu",w.isMenuInsideDropDown)("ant-dropdown-menu-root",w.isMenuInsideDropDown)("ant-dropdown-menu-light",w.isMenuInsideDropDown&&"light"===w.nzTheme)("ant-dropdown-menu-dark",w.isMenuInsideDropDown&&"dark"===w.nzTheme)("ant-dropdown-menu-vertical",w.isMenuInsideDropDown&&"vertical"===w.actualMode)("ant-dropdown-menu-horizontal",w.isMenuInsideDropDown&&"horizontal"===w.actualMode)("ant-dropdown-menu-inline",w.isMenuInsideDropDown&&"inline"===w.actualMode)("ant-dropdown-menu-inline-collapsed",w.isMenuInsideDropDown&&w.nzInlineCollapsed)("ant-menu",!w.isMenuInsideDropDown)("ant-menu-root",!w.isMenuInsideDropDown)("ant-menu-light",!w.isMenuInsideDropDown&&"light"===w.nzTheme)("ant-menu-dark",!w.isMenuInsideDropDown&&"dark"===w.nzTheme)("ant-menu-vertical",!w.isMenuInsideDropDown&&"vertical"===w.actualMode)("ant-menu-horizontal",!w.isMenuInsideDropDown&&"horizontal"===w.actualMode)("ant-menu-inline",!w.isMenuInsideDropDown&&"inline"===w.actualMode)("ant-menu-inline-collapsed",!w.isMenuInsideDropDown&&w.nzInlineCollapsed)("ant-menu-rtl","rtl"===w.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:Pe,useClass:We},{provide:We,useFactory:yn,deps:[[new i.tp0,new i.FiY,We],Pe]},{provide:He,useFactory:st,deps:[[new i.tp0,new i.FiY,He]]}]),i.TTD]}),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzInlineCollapsed",void 0),(0,t.gn)([(0,I.yF)()],jt.prototype,"nzSelectable",void 0),jt})();function lt(jt){return jt||!1}let Pt=(()=>{class jt{constructor(K,w,J){this.elementRef=K,this.renderer=w,this.isMenuInsideDropDown=J,this.renderer.addClass(K.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const K=this.titleElement.nativeElement.nextElementSibling;K&&this.renderer.addClass(K,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(He))},jt.\u0275cmp=i.Xpm({type:jt,selectors:[["","nz-menu-group",""]],viewQuery:function(K,w){if(1&K&&i.Gf(Xt,5),2&K){let J;i.iGM(J=i.CRH())&&(w.titleElement=J.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:He,useFactory:lt,deps:[[new i.tp0,new i.FiY,He]]}])],attrs:_n,ngContentSelectors:Ye,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(K,w){1&K&&(i.F$t(Nt),i.TgZ(0,"div",null,0),i.YNc(2,On,2,1,"ng-container",1),i.YNc(3,Jt,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&K&&(i.ekj("ant-menu-item-group-title",!w.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",w.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",w.nzTitle),i.xp6(1),i.Q6J("ngIf",!w.nzTitle))},dependencies:[O.O5,x.f],encapsulation:2,changeDetection:0}),jt})(),wt=(()=>{class jt{constructor(K){this.elementRef=K}}return jt.\u0275fac=function(K){return new(K||jt)(i.Y36(i.SBq))},jt.\u0275dir=i.lG2({type:jt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"]}),jt})(),Vt=(()=>{class jt{}return jt.\u0275fac=function(K){return new(K||jt)},jt.\u0275mod=i.oAB({type:jt}),jt.\u0275inj=i.cJS({imports:[ge.vT,O.ez,F.ud,Ce.U8,P.PV,R.g,x.T]}),jt})()},67:(Ot,be,a)=>{function t(Ze,ut,ce,_e,mt,Ae,at){try{var Ht=Ze[Ae](at),un=Ht.value}catch(Lt){return void ce(Lt)}Ht.done?ut(un):Promise.resolve(un).then(_e,mt)}a.d(be,{du:()=>Rt,Hf:()=>nt,Qp:()=>St,Sf:()=>zt});var v=a(9594),d=a(8484),s=a(5879),L=a(8645),Q=a(2438),Y=a(4911),A=a(9773),S=a(2181),N=a(8180),V=a(7921),U=a(7032),M=a(7754),e=a(6814),I=a(6825),k=a(6879),ge=a(4300),Ce=a(874),Z=a(1752),F=a(8324),R=a(2840),O=a(855),P=a(1958),x=a(551),de=a(6192),ue=a(6028),j=a(9388),me=a(655),re=a(331);const he=["nz-modal-close",""];function Me(Ze,ut){if(1&Ze&&(s.ynx(0),s._UZ(1,"span",2),s.BQk()),2&Ze){const ce=ut.$implicit;s.xp6(1),s.Q6J("nzType",ce)}}const Oe=["modalElement"];function kt(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onCloseClick())}),s.qZA()}}function It(Ze,ut){if(1&Ze&&(s.ynx(0),s._UZ(1,"span",17),s.BQk()),2&Ze){const ce=s.oxw();s.xp6(1),s.Q6J("innerHTML",ce.config.nzTitle,s.oJD)}}function Tt(Ze,ut){}function gt(Ze,ut){if(1&Ze&&s._UZ(0,"div",17),2&Ze){const ce=s.oxw();s.Q6J("innerHTML",ce.config.nzContent,s.oJD)}}function _t(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",18),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onCancel())}),s._uU(1),s.qZA()}if(2&Ze){const ce=s.oxw();s.Q6J("nzLoading",!!ce.config.nzCancelLoading)("disabled",ce.config.nzCancelDisabled),s.uIk("cdkFocusInitial","cancel"===ce.config.nzAutofocus||null),s.xp6(1),s.hij(" ",ce.config.nzCancelText||ce.locale.cancelText," ")}}function Ft(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",19),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onOk())}),s._uU(1),s.qZA()}if(2&Ze){const ce=s.oxw();s.Q6J("nzType",ce.config.nzOkType)("nzLoading",!!ce.config.nzOkLoading)("disabled",ce.config.nzOkDisabled)("nzDanger",ce.config.nzOkDanger),s.uIk("cdkFocusInitial","ok"===ce.config.nzAutofocus||null),s.xp6(1),s.hij(" ",ce.config.nzOkText||ce.locale.okText," ")}}const rn=["nz-modal-footer",""];function bn(Ze,ut){if(1&Ze&&s._UZ(0,"div",5),2&Ze){const ce=s.oxw(3);s.Q6J("innerHTML",ce.config.nzFooter,s.oJD)}}function et(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){const Ae=s.CHM(ce).$implicit,at=s.oxw(4);return s.KtG(at.onButtonClick(Ae))}),s._uU(1),s.qZA()}if(2&Ze){const ce=ut.$implicit,_e=s.oxw(4);s.Q6J("hidden",!_e.getButtonCallableProp(ce,"show"))("nzLoading",_e.getButtonCallableProp(ce,"loading"))("disabled",_e.getButtonCallableProp(ce,"disabled"))("nzType",ce.type)("nzDanger",ce.danger)("nzShape",ce.shape)("nzSize",ce.size)("nzGhost",ce.ghost),s.xp6(1),s.hij(" ",ce.label," ")}}function Re(Ze,ut){if(1&Ze&&(s.ynx(0),s.YNc(1,et,2,9,"button",6),s.BQk()),2&Ze){const ce=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",ce.buttons)}}function yt(Ze,ut){if(1&Ze&&(s.ynx(0),s.YNc(1,bn,1,1,"div",3),s.YNc(2,Re,2,1,"ng-container",4),s.BQk()),2&Ze){const ce=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!ce.buttonsFooter),s.xp6(1),s.Q6J("ngIf",ce.buttonsFooter)}}const je=function(Ze,ut){return{$implicit:Ze,modalRef:ut}};function Ut(Ze,ut){if(1&Ze&&(s.ynx(0),s.YNc(1,yt,3,2,"ng-container",2),s.BQk()),2&Ze){const ce=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",ce.config.nzFooter)("nzStringTemplateOutletContext",s.WLB(2,je,ce.config.nzData,ce.modalRef))}}function Xt(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw(2);return s.KtG(mt.onCancel())}),s._uU(1),s.qZA()}if(2&Ze){const ce=s.oxw(2);s.Q6J("nzLoading",!!ce.config.nzCancelLoading)("disabled",ce.config.nzCancelDisabled),s.uIk("cdkFocusInitial","cancel"===ce.config.nzAutofocus||null),s.xp6(1),s.hij(" ",ce.config.nzCancelText||ce.locale.cancelText," ")}}function _n(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw(2);return s.KtG(mt.onOk())}),s._uU(1),s.qZA()}if(2&Ze){const ce=s.oxw(2);s.Q6J("nzType",ce.config.nzOkType)("nzDanger",ce.config.nzOkDanger)("nzLoading",!!ce.config.nzOkLoading)("disabled",ce.config.nzOkDisabled),s.uIk("cdkFocusInitial","ok"===ce.config.nzAutofocus||null),s.xp6(1),s.hij(" ",ce.config.nzOkText||ce.locale.okText," ")}}function On(Ze,ut){if(1&Ze&&(s.YNc(0,Xt,2,4,"button",8),s.YNc(1,_n,2,6,"button",9)),2&Ze){const ce=s.oxw();s.Q6J("ngIf",null!==ce.config.nzCancelText),s.xp6(1),s.Q6J("ngIf",null!==ce.config.nzOkText)}}const Jt=["nz-modal-title",""];function Nt(Ze,ut){if(1&Ze&&(s.ynx(0),s._UZ(1,"div",2),s.BQk()),2&Ze){const ce=s.oxw();s.xp6(1),s.Q6J("innerHTML",ce.config.nzTitle,s.oJD)}}function Ye(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onCloseClick())}),s.qZA()}}function He(Ze,ut){1&Ze&&s._UZ(0,"div",10)}function Pe(Ze,ut){}function We(Ze,ut){if(1&Ze&&s._UZ(0,"div",11),2&Ze){const ce=s.oxw();s.Q6J("innerHTML",ce.config.nzContent,s.oJD)}}function Be(Ze,ut){if(1&Ze){const ce=s.EpF();s.TgZ(0,"div",12),s.NdJ("cancelTriggered",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onCloseClick())})("okTriggered",function(){s.CHM(ce);const mt=s.oxw();return s.KtG(mt.onOkClick())}),s.qZA()}if(2&Ze){const ce=s.oxw();s.Q6J("modalRef",ce.modalRef)}}const xe=()=>{};class te{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=xe,this.nzOnOk=xe,this.nzIconType="question-circle"}}const Ge="ant-modal-mask",Ct="modal",sn=new s.OlP("NZ_MODAL_DATA"),yn={modalContainer:(0,I.X$)("modalContainer",[(0,I.SB)("void, exit",(0,I.oB)({})),(0,I.SB)("enter",(0,I.oB)({})),(0,I.eR)("* => enter",(0,I.jt)(".24s",(0,I.oB)({}))),(0,I.eR)("* => void, * => exit",(0,I.jt)(".2s",(0,I.oB)({})))])};function it(Ze,ut,ce){return typeof Ze>"u"?typeof ut>"u"?ce:ut:Ze}function lt(Ze){const{nzCentered:ut,nzMask:ce,nzMaskClosable:_e,nzClosable:mt,nzOkLoading:Ae,nzOkDisabled:at,nzCancelDisabled:Ht,nzCancelLoading:un,nzKeyboard:Lt,nzNoAnimation:dt,nzContent:ft,nzFooter:ne,nzZIndex:B,nzWidth:ze,nzWrapClassName:$e,nzClassName:Mt,nzStyle:on,nzTitle:Zt,nzCloseIcon:Wn,nzMaskStyle:pn,nzBodyStyle:qn,nzOkText:co,nzCancelText:_o,nzOkType:Yo,nzOkDanger:Ko,nzIconType:ui,nzModalType:mo,nzOnOk:Xn,nzOnCancel:di,nzAfterOpen:pi,nzAfterClose:wo,nzCloseOnNavigation:So,nzAutofocus:Eo}=Ze;return{nzCentered:ut,nzMask:ce,nzMaskClosable:_e,nzClosable:mt,nzOkLoading:Ae,nzOkDisabled:at,nzCancelDisabled:Ht,nzCancelLoading:un,nzKeyboard:Lt,nzNoAnimation:dt,nzContent:ft,nzFooter:ne,nzZIndex:B,nzWidth:ze,nzWrapClassName:$e,nzClassName:Mt,nzStyle:on,nzTitle:Zt,nzCloseIcon:Wn,nzMaskStyle:pn,nzBodyStyle:qn,nzOkText:co,nzCancelText:_o,nzOkType:Yo,nzOkDanger:Ko,nzIconType:ui,nzModalType:mo,nzOnOk:Xn,nzOnCancel:di,nzAfterOpen:pi,nzAfterClose:wo,nzCloseOnNavigation:So,nzAutofocus:Eo}}function Pt(){throw Error("Attempting to attach modal content after content is already attached")}let wt=(()=>{class Ze extends d.en{get showMask(){const ce=this.nzConfigService.getConfigForComponent(Ct)||{};return!!it(this.config.nzMask,ce.nzMask,!0)}get maskClosable(){const ce=this.nzConfigService.getConfigForComponent(Ct)||{};return!!it(this.config.nzMaskClosable,ce.nzMaskClosable,!0)}constructor(ce,_e,mt,Ae,at,Ht,un,Lt,dt,ft){super(),this.ngZone=ce,this.host=_e,this.focusTrapFactory=mt,this.cdr=Ae,this.render=at,this.overlayRef=Ht,this.nzConfigService=un,this.config=Lt,this.animationType=ft,this.animationStateChanged=new s.vpe,this.containerClick=new s.vpe,this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new L.x,this.document=dt,this.dir=Ht.getDirection(),this.isStringContent="string"==typeof Lt.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Ct).pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(ce){ce.target===ce.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(ce){return this.portalOutlet.hasAttached()&&Pt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(ce)}attachTemplatePortal(ce){return this.portalOutlet.hasAttached()&&Pt(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(ce)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const ce=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const _e=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),mt=(0,M.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(ce,"transform-origin",`${mt.left+_e.width/2-ce.offsetLeft}px ${mt.top+_e.height/2-ce.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(()=>(0,k.e)(()=>this.host.nativeElement.focus())))}trapFocus(){const ce=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const _e=this.document.activeElement;_e!==ce&&!ce.contains(_e)&&ce.focus()}}restoreFocus(){const ce=this.elementFocusedBeforeModalWasOpened;if(ce&&"function"==typeof ce.focus){const _e=this.document.activeElement,mt=this.host.nativeElement;(!_e||_e===this.document.body||_e===mt||mt.contains(_e))&&ce.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const ce=this.modalElementRef.nativeElement,_e=this.overlayRef.backdropElement;ce.classList.add("ant-zoom-enter"),ce.classList.add("ant-zoom-enter-active"),_e&&(_e.classList.add("ant-fade-enter"),_e.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const ce=this.modalElementRef.nativeElement;ce.classList.add("ant-zoom-leave"),ce.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(ce=!1){const _e=this.overlayRef.backdropElement;if(_e){if(this.animationDisabled()||ce)return void _e.classList.remove(Ge);_e.classList.add("ant-fade-leave"),_e.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const ce=this.overlayRef.backdropElement,_e=this.modalElementRef.nativeElement;ce&&(ce.classList.remove("ant-fade-enter"),ce.classList.remove("ant-fade-enter-active")),_e.classList.remove("ant-zoom-enter"),_e.classList.remove("ant-zoom-enter-active"),_e.classList.remove("ant-zoom-leave"),_e.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const ce=this.overlayRef.backdropElement;ce&&(0,M.DX)(this.config.nzZIndex)&&this.render.setStyle(ce,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const ce=this.overlayRef.backdropElement;if(ce&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(mt=>{this.render.removeStyle(ce,mt)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const _e={...this.config.nzMaskStyle};Object.keys(_e).forEach(mt=>{this.render.setStyle(ce,mt,_e[mt])}),this.oldMaskStyle=_e}}updateMaskClassname(){const ce=this.overlayRef.backdropElement;ce&&(this.showMask?ce.classList.add(Ge):ce.classList.remove(Ge))}onAnimationDone(ce){"enter"===ce.toState?this.trapFocus():"exit"===ce.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(ce)}onAnimationStart(ce){"enter"===ce.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===ce.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(ce)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(ce){this.ngZone.runOutsideAngular(()=>{(0,Q.R)(this.host.nativeElement,"mouseup").pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,Q.R)(ce.nativeElement,"mousedown").pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return Ze.\u0275fac=function(ce){s.$Z()},Ze.\u0275dir=s.lG2({type:Ze,features:[s.qOj]}),Ze})(),Vt=(()=>{class Ze{constructor(ce){this.config=ce}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(te))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:he,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ce,_e){1&ce&&(s.TgZ(0,"span",0),s.YNc(1,Me,2,1,"ng-container",1),s.qZA()),2&ce&&(s.xp6(1),s.Q6J("nzStringTemplateOutlet",_e.config.nzCloseIcon))},dependencies:[F.f,O.w,x.Ls],encapsulation:2,changeDetection:0}),Ze})(),jt=(()=>{class Ze extends wt{constructor(ce,_e,mt,Ae,at,Ht,un,Lt,dt,ft,ne){super(ce,mt,Ae,at,Ht,un,Lt,dt,ft,ne),this.i18n=_e,this.config=dt,this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.i18n.localeChange.pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(s.R0b),s.Y36(Z.wi),s.Y36(s.SBq),s.Y36(ge.qV),s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(v.Iu),s.Y36(Ce.jY),s.Y36(te),s.Y36(e.K0,8),s.Y36(s.QbO,8))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ce,_e){if(1&ce&&(s.Gf(d.Pl,7),s.Gf(Oe,7)),2&ce){let mt;s.iGM(mt=s.CRH())&&(_e.portalOutlet=mt.first),s.iGM(mt=s.CRH())&&(_e.modalElementRef=mt.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ce,_e){1&ce&&(s.WFA("@modalContainer.start",function(Ae){return _e.onAnimationStart(Ae)})("@modalContainer.done",function(Ae){return _e.onAnimationDone(Ae)}),s.NdJ("click",function(Ae){return _e.onContainerClick(Ae)})),2&ce&&(s.d8E("@.disabled",_e.config.nzNoAnimation)("@modalContainer",_e.state),s.Tol(_e.config.nzWrapClassName?"ant-modal-wrap "+_e.config.nzWrapClassName:"ant-modal-wrap"),s.Udp("z-index",_e.config.nzZIndex),s.ekj("ant-modal-wrap-rtl","rtl"===_e.dir)("ant-modal-centered",_e.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[s.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(ce,_e){1&ce&&(s.TgZ(0,"div",0,1),s.ALo(2,"nzToCssUnit"),s.TgZ(3,"div",2),s.YNc(4,kt,1,0,"button",3),s.TgZ(5,"div",4)(6,"div",5)(7,"div",6),s._UZ(8,"span",7),s.TgZ(9,"span",8),s.YNc(10,It,2,1,"ng-container",9),s.qZA(),s.TgZ(11,"div",10),s.YNc(12,Tt,0,0,"ng-template",11),s.YNc(13,gt,1,1,"div",12),s.qZA()(),s.TgZ(14,"div",13),s.YNc(15,_t,2,4,"button",14),s.YNc(16,Ft,2,6,"button",15),s.qZA()()()()()),2&ce&&(s.Udp("width",s.lcZ(2,11,null==_e.config?null:_e.config.nzWidth)),s.Q6J("ngClass",_e.config.nzClassName)("ngStyle",_e.config.nzStyle),s.xp6(4),s.Q6J("ngIf",_e.config.nzClosable),s.xp6(1),s.Q6J("ngStyle",_e.config.nzBodyStyle),s.xp6(3),s.Q6J("nzType",_e.config.nzIconType),s.xp6(2),s.Q6J("nzStringTemplateOutlet",_e.config.nzTitle),s.xp6(3),s.Q6J("ngIf",_e.isStringContent),s.xp6(2),s.Q6J("ngIf",null!==_e.config.nzCancelText),s.xp6(1),s.Q6J("ngIf",null!==_e.config.nzOkText))},dependencies:[e.mk,e.O5,e.PC,F.f,d.Pl,R.ix,O.w,P.dQ,x.Ls,Vt,de.ku],encapsulation:2,data:{animation:[yn.modalContainer]}}),Ze})(),Ke=(()=>{class Ze{constructor(ce,_e){this.i18n=ce,this.config=_e,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new s.vpe,this.okTriggered=new s.vpe,this.destroy$=new L.x,Array.isArray(_e.nzFooter)&&(this.buttonsFooter=!0,this.buttons=_e.nzFooter.map(K)),this.i18n.localeChange.pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(ce,_e){const mt=ce[_e],Ae=this.modalRef.getContentComponent();return"function"==typeof mt?mt.apply(ce,Ae&&[Ae]):mt}onButtonClick(ce){if(!this.getButtonCallableProp(ce,"loading")){const mt=this.getButtonCallableProp(ce,"onClick");ce.autoLoading&&(0,M.tI)(mt)&&(ce.loading=!0,mt.then(()=>ce.loading=!1).catch(Ae=>{throw ce.loading=!1,Ae}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(Z.wi),s.Y36(te))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:rn,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(ce,_e){if(1&ce&&(s.YNc(0,Ut,2,5,"ng-container",0),s.YNc(1,On,2,2,"ng-template",null,1,s.W1O)),2&ce){const mt=s.MAs(2);s.Q6J("ngIf",_e.config.nzFooter)("ngIfElse",mt)}},dependencies:[e.sg,e.O5,F.f,R.ix,O.w,P.dQ],encapsulation:2}),Ze})();function K(Ze){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...Ze}}let w=(()=>{class Ze{constructor(ce){this.config=ce}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(te))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:Jt,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ce,_e){1&ce&&(s.TgZ(0,"div",0),s.YNc(1,Nt,2,1,"ng-container",1),s.qZA()),2&ce&&(s.xp6(1),s.Q6J("nzStringTemplateOutlet",_e.config.nzTitle))},dependencies:[F.f],encapsulation:2,changeDetection:0}),Ze})(),J=(()=>{class Ze extends wt{constructor(ce,_e,mt,Ae,at,Ht,un,Lt,dt,ft){super(ce,_e,mt,Ae,at,Ht,un,Lt,dt,ft),this.config=Lt}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(ge.qV),s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(v.Iu),s.Y36(Ce.jY),s.Y36(te),s.Y36(e.K0,8),s.Y36(s.QbO,8))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["nz-modal-container"]],viewQuery:function(ce,_e){if(1&ce&&(s.Gf(d.Pl,7),s.Gf(Oe,7)),2&ce){let mt;s.iGM(mt=s.CRH())&&(_e.portalOutlet=mt.first),s.iGM(mt=s.CRH())&&(_e.modalElementRef=mt.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ce,_e){1&ce&&(s.WFA("@modalContainer.start",function(Ae){return _e.onAnimationStart(Ae)})("@modalContainer.done",function(Ae){return _e.onAnimationDone(Ae)}),s.NdJ("click",function(Ae){return _e.onContainerClick(Ae)})),2&ce&&(s.d8E("@.disabled",_e.config.nzNoAnimation)("@modalContainer",_e.state),s.Tol(_e.config.nzWrapClassName?"ant-modal-wrap "+_e.config.nzWrapClassName:"ant-modal-wrap"),s.Udp("z-index",_e.config.nzZIndex),s.ekj("ant-modal-wrap-rtl","rtl"===_e.dir)("ant-modal-centered",_e.config.nzCentered))},exportAs:["nzModalContainer"],features:[s.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(ce,_e){1&ce&&(s.TgZ(0,"div",0,1),s.ALo(2,"nzToCssUnit"),s.TgZ(3,"div",2),s.YNc(4,Ye,1,0,"button",3),s.YNc(5,He,1,0,"div",4),s.TgZ(6,"div",5),s.YNc(7,Pe,0,0,"ng-template",6),s.YNc(8,We,1,1,"div",7),s.qZA(),s.YNc(9,Be,1,1,"div",8),s.qZA()()),2&ce&&(s.Udp("width",s.lcZ(2,9,null==_e.config?null:_e.config.nzWidth)),s.Q6J("ngClass",_e.config.nzClassName)("ngStyle",_e.config.nzStyle),s.xp6(4),s.Q6J("ngIf",_e.config.nzClosable),s.xp6(1),s.Q6J("ngIf",_e.config.nzTitle),s.xp6(1),s.Q6J("ngStyle",_e.config.nzBodyStyle),s.xp6(2),s.Q6J("ngIf",_e.isStringContent),s.xp6(1),s.Q6J("ngIf",null!==_e.config.nzFooter))},dependencies:[e.mk,e.O5,e.PC,d.Pl,Vt,Ke,w,de.ku],encapsulation:2,data:{animation:[yn.modalContainer]}}),Ze})();class Te{constructor(ut,ce,_e){this.overlayRef=ut,this.config=ce,this.containerInstance=_e,this.componentInstance=null,this.state=0,this.afterClose=new L.x,this.afterOpen=new L.x,this.destroy$=new L.x,_e.animationStateChanged.pipe((0,S.h)(mt=>"done"===mt.phaseName&&"enter"===mt.toState),(0,N.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),ce.nzAfterOpen instanceof s.vpe&&ce.nzAfterOpen.emit()}),_e.animationStateChanged.pipe((0,S.h)(mt=>"done"===mt.phaseName&&"exit"===mt.toState),(0,N.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),_e.containerClick.pipe((0,N.q)(1),(0,A.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),ut.keydownEvents().pipe((0,S.h)(mt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&mt.keyCode===ue.hY&&!(0,ue.Vb)(mt))).subscribe(mt=>{mt.preventDefault(),this.trigger("cancel")}),_e.cancelTriggered.pipe((0,A.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),_e.okTriggered.pipe((0,A.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),ut.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),ce.nzAfterClose instanceof s.vpe&&ce.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(ut){this.close(ut)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(ut){0===this.state&&(this.result=ut,this.containerInstance.animationStateChanged.pipe((0,S.h)(ce=>"start"===ce.phaseName),(0,N.q)(1)).subscribe(ce=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},ce.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(ut){Object.assign(this.config,ut),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(ut){var ce=this;return function i(Ze){return function(){var ut=this,ce=arguments;return new Promise(function(_e,mt){var Ae=Ze.apply(ut,ce);function at(un){t(Ae,_e,mt,at,Ht,"next",un)}function Ht(un){t(Ae,_e,mt,at,Ht,"throw",un)}at(void 0)})}}(function*(){if(1===ce.state)return;const _e={ok:ce.config.nzOnOk,cancel:ce.config.nzOnCancel}[ut],mt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[ut];if(!ce.config[mt])if(_e instanceof s.vpe)_e.emit(ce.getContentComponent());else if("function"==typeof _e){const at=_e(ce.getContentComponent());if((0,M.tI)(at)){ce.config[mt]=!0;let Ht=!1;try{Ht=yield at}finally{ce.config[mt]=!1,ce.closeWhitResult(Ht)}}else ce.closeWhitResult(at)}})()}closeWhitResult(ut){!1!==ut&&this.close(ut)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let zt=(()=>{class Ze{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const ce=this.parentModal;return ce?ce._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(ce,_e,mt,Ae,at){this.overlay=ce,this.injector=_e,this.nzConfigService=mt,this.parentModal=Ae,this.directionality=at,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new L.x,this.afterAllClose=(0,Y.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,V.O)(void 0)))}create(ce){return this.open(ce.nzContent,ce)}closeAll(){this.closeModals(this.openModals)}confirm(ce={},_e="confirm"){return"nzFooter"in ce&&(0,U.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in ce||(ce.nzWidth=416),"nzMaskClosable"in ce||(ce.nzMaskClosable=!1),ce.nzModalType="confirm",ce.nzClassName=`ant-modal-confirm ant-modal-confirm-${_e} ${ce.nzClassName||""}`,this.create(ce)}info(ce={}){return this.confirmFactory(ce,"info")}success(ce={}){return this.confirmFactory(ce,"success")}error(ce={}){return this.confirmFactory(ce,"error")}warning(ce={}){return this.confirmFactory(ce,"warning")}open(ce,_e){const mt=function st(Ze,ut){return{...ut,...Ze}}(_e||{},new te),Ae=this.createOverlay(mt),at=this.attachModalContainer(Ae,mt),Ht=this.attachModalContent(ce,at,Ae,mt);return at.modalRef=Ht,this.openModals.push(Ht),Ht.afterClose.subscribe(()=>this.removeOpenModal(Ht)),Ht}removeOpenModal(ce){const _e=this.openModals.indexOf(ce);_e>-1&&(this.openModals.splice(_e,1),this.openModals.length||this._afterAllClosed.next())}closeModals(ce){let _e=ce.length;for(;_e--;)ce[_e].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(ce){const _e=this.nzConfigService.getConfigForComponent(Ct)||{},mt=new v.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:it(ce.nzCloseOnNavigation,_e.nzCloseOnNavigation,!0),direction:it(ce.nzDirection,_e.nzDirection,this.directionality.value)});return it(ce.nzMask,_e.nzMask,!0)&&(mt.backdropClass=Ge),this.overlay.create(mt)}attachModalContainer(ce,_e){const Ae=s.zs3.create({parent:_e&&_e.nzViewContainerRef&&_e.nzViewContainerRef.injector||this.injector,providers:[{provide:v.Iu,useValue:ce},{provide:te,useValue:_e}]}),Ht=new d.C5("confirm"===_e.nzModalType?jt:J,_e.nzViewContainerRef,Ae);return ce.attach(Ht).instance}attachModalContent(ce,_e,mt,Ae){const at=new Te(mt,Ae,_e);if(ce instanceof s.Rgc)_e.attachTemplatePortal(new d.UE(ce,null,{$implicit:Ae.nzData,modalRef:at}));else if((0,M.DX)(ce)&&"string"!=typeof ce){const Ht=this.createInjector(at,Ae),un=_e.attachComponentPortal(new d.C5(ce,Ae.nzViewContainerRef,Ht));at.componentInstance=un.instance}else _e.attachStringContent();return at}createInjector(ce,_e){return s.zs3.create({parent:_e&&_e.nzViewContainerRef&&_e.nzViewContainerRef.injector||this.injector,providers:[{provide:Te,useValue:ce},{provide:sn,useValue:_e.nzData}]})}confirmFactory(ce={},_e){return"nzIconType"in ce||(ce.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[_e]),"nzCancelText"in ce||(ce.nzCancelText=null),this.confirm(ce,_e)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.LFG(v.aV),s.LFG(s.zs3),s.LFG(Ce.jY),s.LFG(Ze,12),s.LFG(j.Is,8))},Ze.\u0275prov=s.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),nt=(()=>{class Ze{constructor(ce){this.templateRef=ce}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(s.Rgc))},Ze.\u0275dir=s.lG2({type:Ze,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),Ze})(),qe=(()=>{class Ze{constructor(ce,_e){this.nzModalRef=ce,this.templateRef=_e,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(Te,8),s.Y36(s.Rgc))},Ze.\u0275dir=s.lG2({type:Ze,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),Ze})(),rt=(()=>{class Ze{constructor(ce,_e){this.nzModalRef=ce,this.templateRef=_e,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(Te,8),s.Y36(s.Rgc))},Ze.\u0275dir=s.lG2({type:Ze,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),Ze})(),Rt=(()=>{class Ze{set modalTitle(ce){ce&&this.setTitleWithTemplate(ce)}set modalFooter(ce){ce&&this.setFooterWithTemplate(ce)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(ce,_e,mt){this.cdr=ce,this.modal=_e,this.viewContainerRef=mt,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 s.vpe,this.nzOnCancel=new s.vpe,this.nzAfterOpen=new s.vpe,this.nzAfterClose=new s.vpe,this.nzVisibleChange=new s.vpe,this.modalRef=null,this.destroy$=new L.x}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const ce=this.getConfig();this.modalRef=this.modal.create(ce),this.modalRef.afterClose.asObservable().pipe((0,A.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(ce){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(ce),this.modalRef=null)}destroy(ce){this.close(ce)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(ce){this.nzTitle=ce,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(ce){this.nzFooter=ce,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const ce=lt(this);return ce.nzViewContainerRef=this.viewContainerRef,ce.nzContent=this.nzContent||this.contentFromContentChild,ce}ngOnChanges(ce){const{nzVisible:_e,...mt}=ce;Object.keys(mt).length&&this.modalRef&&this.modalRef.updateConfig(lt(this)),_e&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return Ze.\u0275fac=function(ce){return new(ce||Ze)(s.Y36(s.sBO),s.Y36(zt),s.Y36(s.s_b))},Ze.\u0275cmp=s.Xpm({type:Ze,selectors:[["nz-modal"]],contentQueries:function(ce,_e,mt){if(1&ce&&(s.Suo(mt,rt,7,s.Rgc),s.Suo(mt,nt,7,s.Rgc),s.Suo(mt,qe,7,s.Rgc)),2&ce){let Ae;s.iGM(Ae=s.CRH())&&(_e.modalTitle=Ae.first),s.iGM(Ae=s.CRH())&&(_e.contentFromContentChild=Ae.first),s.iGM(Ae=s.CRH())&&(_e.modalFooter=Ae.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",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:[s.TTD],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,changeDetection:0}),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzMask",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzMaskClosable",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzCloseOnNavigation",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzVisible",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzClosable",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzOkLoading",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzOkDisabled",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzCancelDisabled",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzCancelLoading",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzKeyboard",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzNoAnimation",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzCentered",void 0),(0,me.gn)([(0,M.yF)()],Ze.prototype,"nzOkDanger",void 0),Ze})(),St=(()=>{class Ze{}return Ze.\u0275fac=function(ce){return new(ce||Ze)},Ze.\u0275mod=s.oAB({type:Ze}),Ze.\u0275inj=s.cJS({providers:[zt],imports:[e.ez,j.vT,v.U8,F.T,d.eL,Z.YI,R.sL,x.PV,de.YS,re.g,de.YS]}),Ze})()},6192:(Ot,be,a)=>{a.d(be,{Pr:()=>S,YS:()=>U,ku:()=>Q});var t=a(6814),i=a(5879),v=a(7754),d=a(6593);class L{transform(e,I=0,k="B",ge){if(!((0,v.ui)(e)&&(0,v.ui)(I)&&I%1==0&&I>=0))return e;let Ce=e,Z=k;for(;"B"!==Z;)Ce*=1024,Z=L.formats[Z].prev;if(ge){const R=(0,v.YM)(L.calculateResult(L.formats[ge],Ce),I);return L.formatResult(R,ge)}for(const F in L.formats)if(L.formats.hasOwnProperty(F)){const R=L.formats[F];if(Ce{class M{transform(I,k="px"){let R="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(O=>O===k)&&(R=k),"number"==typeof I?`${I}${R}`:`${I}`}}return M.\u0275fac=function(I){return new(I||M)},M.\u0275pipe=i.Yjl({name:"nzToCssUnit",type:M,pure:!0}),M})(),S=(()=>{class M{constructor(I){this.sanitizer=I}transform(I,k="html"){switch(k){case"html":return this.sanitizer.bypassSecurityTrustHtml(I);case"style":return this.sanitizer.bypassSecurityTrustStyle(I);case"url":return this.sanitizer.bypassSecurityTrustUrl(I);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(I);default:throw new Error("Invalid safe type specified")}}}return M.\u0275fac=function(I){return new(I||M)(i.Y36(d.H7,16))},M.\u0275pipe=i.Yjl({name:"nzSanitizer",type:M,pure:!0}),M})(),U=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=i.oAB({type:M}),M.\u0275inj=i.cJS({imports:[t.ez]}),M})()},7417:(Ot,be,a)=>{a.d(be,{$6:()=>Z,lU:()=>ge});var t=a(655),i=a(5879),v=a(4194),d=a(874),s=a(7754),L=a(6109),Q=a(331),Y=a(9388),A=a(6814),S=a(9594),N=a(8324),V=a(5448);function U(F,R){if(1&F&&(i.ynx(0),i._uU(1),i.BQk()),2&F){const O=i.oxw(3);i.xp6(1),i.Oqu(O.nzTitle)}}function M(F,R){if(1&F&&(i.TgZ(0,"div",10),i.YNc(1,U,2,1,"ng-container",9),i.qZA()),2&F){const O=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",O.nzTitle)}}function e(F,R){if(1&F&&(i.ynx(0),i._uU(1),i.BQk()),2&F){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzContent)}}function I(F,R){if(1&F&&(i.TgZ(0,"div",2)(1,"div",3)(2,"div",4),i._UZ(3,"span",5),i.qZA(),i.TgZ(4,"div",6)(5,"div"),i.YNc(6,M,2,1,"div",7),i.TgZ(7,"div",8),i.YNc(8,e,2,1,"ng-container",9),i.qZA()()()()()),2&F){const O=i.oxw();i.ekj("ant-popover-rtl","rtl"===O.dir),i.Q6J("ngClass",O._classMap)("ngStyle",O.nzOverlayStyle)("@.disabled",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))("nzNoAnimation",null==O.noAnimation?null:O.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.xp6(6),i.Q6J("ngIf",O.nzTitle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzContent)}}let ge=(()=>{class F extends L.Mg{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(O,P,x,de,ue,j){super(O,P,x,de,ue,j),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new i.vpe,this.componentRef=this.hostView.createComponent(Ce)}}return F.\u0275fac=function(O){return new(O||F)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(Q.P,9),i.Y36(d.jY))},F.\u0275dir=i.lG2({type:F,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(O,P){2&O&&i.ekj("ant-popover-open",P.visible)},inputs:{arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],features:[i.qOj]}),(0,t.gn)([(0,s.yF)()],F.prototype,"arrowPointAtCenter",void 0),(0,t.gn)([(0,d.oS)()],F.prototype,"nzPopoverBackdrop",void 0),F})(),Ce=(()=>{class F extends L.XK{constructor(O,P,x){super(O,P,x),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,L.pu)(this.nzTitle)&&(0,L.pu)(this.nzContent)}}return F.\u0275fac=function(O){return new(O||F)(i.Y36(i.sBO),i.Y36(Y.Is,8),i.Y36(Q.P,9))},F.\u0275cmp=i.Xpm({type:F,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[i.qOj],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(O,P){1&O&&(i.YNc(0,I,9,9,"ng-template",0,1,i.W1O),i.NdJ("overlayOutsideClick",function(de){return P.onClickOutside(de)})("detach",function(){return P.hide()})("positionChange",function(de){return P.onPositionChange(de)})),2&O&&i.Q6J("cdkConnectedOverlayHasBackdrop",P.hasBackdrop)("cdkConnectedOverlayOrigin",P.origin)("cdkConnectedOverlayPositions",P._positions)("cdkConnectedOverlayOpen",P._visible)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",P.nzArrowPointAtCenter)},dependencies:[A.mk,A.O5,A.PC,S.pI,N.f,V.hQ,Q.P],encapsulation:2,data:{animation:[v.$C]},changeDetection:0}),F})(),Z=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=i.oAB({type:F}),F.\u0275inj=i.cJS({imports:[Y.vT,A.ez,S.U8,N.T,V.e4,Q.g,L.cg]}),F})()},7907:(Ot,be,a)=>{a.d(be,{Bq:()=>I,Dg:()=>ge,Of:()=>Ce,aF:()=>Z});var t=a(5879),i=a(655),v=a(6223),d=a(7328),s=a(8645),L=a(2438),Q=a(9773),Y=a(7754),A=a(9388),S=a(4300),N=a(883),V=a(6814);const U=["*"],M=["inputElement"],e=["nz-radio",""];let I=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275dir=t.lG2({type:F,selectors:[["","nz-radio-button",""]]}),F})(),k=(()=>{class F{constructor(){this.selected$=new d.t(1),this.touched$=new s.x,this.disabled$=new d.t(1),this.name$=new d.t(1)}touch(){this.touched$.next()}select(O){this.selected$.next(O)}setDisabled(O){this.disabled$.next(O)}setName(O){this.name$.next(O)}}return F.\u0275fac=function(O){return new(O||F)},F.\u0275prov=t.Yz7({token:F,factory:F.\u0275fac}),F})(),ge=(()=>{class F{constructor(O,P,x){this.cdr=O,this.nzRadioService=P,this.directionality=x,this.value=null,this.destroy$=new s.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{this.value!==O&&(this.value=O,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,Q.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{this.dir=O,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(O){const{nzDisabled:P,nzName:x}=O;P&&this.nzRadioService.setDisabled(this.nzDisabled),x&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(O){this.value=O,this.nzRadioService.select(O),this.cdr.markForCheck()}registerOnChange(O){this.onChange=O}registerOnTouched(O){this.onTouched=O}setDisabledState(O){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}}return F.\u0275fac=function(O){return new(O||F)(t.Y36(t.sBO),t.Y36(k),t.Y36(A.Is,8))},F.\u0275cmp=t.Xpm({type:F,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(O,P){2&O&&t.ekj("ant-radio-group-large","large"===P.nzSize)("ant-radio-group-small","small"===P.nzSize)("ant-radio-group-solid","solid"===P.nzButtonStyle)("ant-radio-group-rtl","rtl"===P.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[t._Bn([k,{provide:v.JU,useExisting:(0,t.Gpc)(()=>F),multi:!0}]),t.TTD],ngContentSelectors:U,decls:1,vars:0,template:function(O,P){1&O&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,Y.yF)()],F.prototype,"nzDisabled",void 0),F})(),Ce=(()=>{class F{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(O,P,x,de,ue,j,me,re){this.ngZone=O,this.elementRef=P,this.cdr=x,this.focusMonitor=de,this.directionality=ue,this.nzRadioService=j,this.nzRadioButtonDirective=me,this.nzFormStatusService=re,this.isNgModel=!1,this.destroy$=new s.x,this.isNzDisableFirstChange=!0,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"}setDisabledState(O){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(O){this.isChecked=O,this.cdr.markForCheck()}registerOnChange(O){this.isNgModel=!0,this.onChange=O}registerOnTouched(O){this.onTouched=O}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{this.name=O,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||O,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{const P=this.isChecked;this.isChecked=this.nzValue===O,this.isNgModel&&P!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Q.R)(this.destroy$)).subscribe(O=>{O||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,Q.R)(this.destroy$)).subscribe(O=>{this.dir=O,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,L.R)(this.elementRef.nativeElement,"click").pipe((0,Q.R)(this.destroy$)).subscribe(O=>{O.stopPropagation(),O.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return F.\u0275fac=function(O){return new(O||F)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(S.tE),t.Y36(A.Is,8),t.Y36(k,8),t.Y36(I,8),t.Y36(N.kH,8))},F.\u0275cmp=t.Xpm({type:F,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(O,P){if(1&O&&t.Gf(M,7),2&O){let x;t.iGM(x=t.CRH())&&(P.inputElement=x.first)}},hostVars:18,hostBindings:function(O,P){2&O&&t.ekj("ant-radio-wrapper-in-form-item",!!P.nzFormStatusService)("ant-radio-wrapper",!P.isRadioButton)("ant-radio-button-wrapper",P.isRadioButton)("ant-radio-wrapper-checked",P.isChecked&&!P.isRadioButton)("ant-radio-button-wrapper-checked",P.isChecked&&P.isRadioButton)("ant-radio-wrapper-disabled",P.nzDisabled&&!P.isRadioButton)("ant-radio-button-wrapper-disabled",P.nzDisabled&&P.isRadioButton)("ant-radio-wrapper-rtl",!P.isRadioButton&&"rtl"===P.dir)("ant-radio-button-wrapper-rtl",P.isRadioButton&&"rtl"===P.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[t._Bn([{provide:v.JU,useExisting:(0,t.Gpc)(()=>F),multi:!0}])],attrs:e,ngContentSelectors:U,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(O,P){1&O&&(t.F$t(),t.TgZ(0,"span"),t._UZ(1,"input",0,1)(3,"span"),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&O&&(t.ekj("ant-radio",!P.isRadioButton)("ant-radio-checked",P.isChecked&&!P.isRadioButton)("ant-radio-disabled",P.nzDisabled&&!P.isRadioButton)("ant-radio-button",P.isRadioButton)("ant-radio-button-checked",P.isChecked&&P.isRadioButton)("ant-radio-button-disabled",P.nzDisabled&&P.isRadioButton),t.xp6(1),t.ekj("ant-radio-input",!P.isRadioButton)("ant-radio-button-input",P.isRadioButton),t.Q6J("disabled",P.nzDisabled)("checked",P.isChecked),t.uIk("autofocus",P.nzAutoFocus?"autofocus":null)("name",P.name),t.xp6(2),t.ekj("ant-radio-inner",!P.isRadioButton)("ant-radio-button-inner",P.isRadioButton))},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,Y.yF)()],F.prototype,"nzDisabled",void 0),(0,i.gn)([(0,Y.yF)()],F.prototype,"nzAutoFocus",void 0),F})(),Z=(()=>{class F{}return F.\u0275fac=function(O){return new(O||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[A.vT,V.ez,v.u5]}),F})()},9691:(Ot,be,a)=>{a.d(be,{Ip:()=>gn,LV:()=>Lt,Vq:()=>un,Yy:()=>qe});var t=a(5879),i=a(8645),v=a(2438),d=a(5619),s=a(2096),L=a(2572),Q=a(3019),Y=a(532),A=a(6814),S=a(804),N=a(9773),V=a(7921),U=a(3997),M=a(2460),e=a(7398),I=a(4664),k=a(9087),ge=a(551),Ce=a(855),Z=a(8324),F=a(655),R=a(7754),O=a(6028),P=a(9594),x=a(6223),de=a(4194),ue=a(874),j=a(5448),me=a(6879),re=a(4300),he=a(331),Me=a(2831),Oe=a(9388),kt=a(883),It=a(1752);const Tt=["*"];function gt(dt,ft){}function _t(dt,ft){if(1&dt&&t.YNc(0,gt,0,0,"ng-template",4),2&dt){const ne=t.oxw();t.Q6J("ngTemplateOutlet",ne.template)}}function Ft(dt,ft){if(1&dt&&t._uU(0),2&dt){const ne=t.oxw();t.Oqu(ne.label)}}function rn(dt,ft){1&dt&&t._UZ(0,"span",7)}function bn(dt,ft){if(1&dt&&(t.TgZ(0,"div",5),t.YNc(1,rn,1,0,"span",6),t.qZA()),2&dt){const ne=t.oxw();t.xp6(1),t.Q6J("ngIf",!ne.icon)("ngIfElse",ne.icon)}}function et(dt,ft){if(1&dt&&(t.ynx(0),t._uU(1),t.BQk()),2&dt){const ne=t.oxw();t.xp6(1),t.Oqu(ne.nzLabel)}}function Re(dt,ft){if(1&dt&&(t.TgZ(0,"div",4),t._UZ(1,"nz-embed-empty",5),t.qZA()),2&dt){const ne=t.oxw();t.xp6(1),t.Q6J("specificContent",ne.notFoundContent)}}function yt(dt,ft){if(1&dt&&t._UZ(0,"nz-option-item-group",9),2&dt){const ne=t.oxw().$implicit;t.Q6J("nzLabel",ne.groupLabel)}}function je(dt,ft){if(1&dt){const ne=t.EpF();t.TgZ(0,"nz-option-item",10),t.NdJ("itemHover",function(ze){t.CHM(ne);const $e=t.oxw(2);return t.KtG($e.onItemHover(ze))})("itemClick",function(ze){t.CHM(ne);const $e=t.oxw(2);return t.KtG($e.onItemClick(ze))}),t.qZA()}if(2&dt){const ne=t.oxw().$implicit,B=t.oxw();t.Q6J("icon",B.menuItemSelectedIcon)("customContent",ne.nzCustomContent)("template",ne.template)("grouped",!!ne.groupLabel)("disabled",ne.nzDisabled)("showState","tags"===B.mode||"multiple"===B.mode)("label",ne.nzLabel)("compareWith",B.compareWith)("activatedValue",B.activatedValue)("listOfSelectedValue",B.listOfSelectedValue)("value",ne.nzValue)}}function Ut(dt,ft){1&dt&&(t.ynx(0,6),t.YNc(1,yt,1,1,"nz-option-item-group",7),t.YNc(2,je,1,11,"nz-option-item",8),t.BQk()),2&dt&&(t.Q6J("ngSwitch",ft.$implicit.type),t.xp6(1),t.Q6J("ngSwitchCase","group"),t.xp6(1),t.Q6J("ngSwitchCase","item"))}function Xt(dt,ft){}function _n(dt,ft){1&dt&&t.Hsn(0)}const On=["inputElement"],Jt=["mirrorElement"];function Nt(dt,ft){1&dt&&t._UZ(0,"span",3,4)}function Ye(dt,ft){if(1&dt&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&dt){const ne=t.oxw(2);t.xp6(1),t.Oqu(ne.label)}}function He(dt,ft){if(1&dt&&t._uU(0),2&dt){const ne=t.oxw(2);t.Oqu(ne.label)}}function Pe(dt,ft){if(1&dt&&(t.ynx(0),t.YNc(1,Ye,2,1,"div",2),t.YNc(2,He,1,1,"ng-template",null,3,t.W1O),t.BQk()),2&dt){const ne=t.MAs(3),B=t.oxw();t.xp6(1),t.Q6J("ngIf",B.deletable)("ngIfElse",ne)}}function We(dt,ft){1&dt&&t._UZ(0,"span",7)}function Be(dt,ft){if(1&dt){const ne=t.EpF();t.TgZ(0,"span",5),t.NdJ("click",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.onDelete(ze))}),t.YNc(1,We,1,0,"span",6),t.qZA()}if(2&dt){const ne=t.oxw();t.xp6(1),t.Q6J("ngIf",!ne.removeIcon)("ngIfElse",ne.removeIcon)}}const xe=function(dt){return{$implicit:dt}};function te(dt,ft){if(1&dt&&(t.ynx(0),t._uU(1),t.BQk()),2&dt){const ne=t.oxw();t.xp6(1),t.hij(" ",ne.placeholder," ")}}function ae(dt,ft){if(1&dt&&t._UZ(0,"nz-select-item",6),2&dt){const ne=t.oxw(2);t.Q6J("deletable",!1)("disabled",!1)("removeIcon",ne.removeIcon)("label",ne.listOfTopItem[0].nzLabel)("contentTemplateOutlet",ne.customTemplate)("contentTemplateOutletContext",ne.listOfTopItem[0])}}function De(dt,ft){if(1&dt){const ne=t.EpF();t.ynx(0),t.TgZ(1,"nz-select-search",4),t.NdJ("isComposingChange",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.isComposingChange(ze))})("valueChange",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.onInputValueChange(ze))}),t.qZA(),t.YNc(2,ae,1,6,"nz-select-item",5),t.BQk()}if(2&dt){const ne=t.oxw();t.xp6(1),t.Q6J("nzId",ne.nzId)("disabled",ne.disabled)("value",ne.inputValue)("showInput",ne.showSearch)("mirrorSync",!1)("autofocus",ne.autofocus)("focusTrigger",ne.open),t.xp6(1),t.Q6J("ngIf",ne.isShowSingleLabel)}}function Ge(dt,ft){if(1&dt){const ne=t.EpF();t.TgZ(0,"nz-select-item",9),t.NdJ("delete",function(){const $e=t.CHM(ne).$implicit,Mt=t.oxw(2);return t.KtG(Mt.onDeleteItem($e.contentTemplateOutletContext))}),t.qZA()}if(2&dt){const ne=ft.$implicit,B=t.oxw(2);t.Q6J("removeIcon",B.removeIcon)("label",ne.nzLabel)("disabled",ne.nzDisabled||B.disabled)("contentTemplateOutlet",ne.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",ne.contentTemplateOutletContext)}}function Ct(dt,ft){if(1&dt){const ne=t.EpF();t.ynx(0),t.YNc(1,Ge,1,6,"nz-select-item",7),t.TgZ(2,"nz-select-search",8),t.NdJ("isComposingChange",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.isComposingChange(ze))})("valueChange",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.onInputValueChange(ze))}),t.qZA(),t.BQk()}if(2&dt){const ne=t.oxw();t.xp6(1),t.Q6J("ngForOf",ne.listOfSlicedItem)("ngForTrackBy",ne.trackValue),t.xp6(1),t.Q6J("nzId",ne.nzId)("disabled",ne.disabled)("value",ne.inputValue)("autofocus",ne.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",ne.open)}}function sn(dt,ft){if(1&dt&&t._UZ(0,"nz-select-placeholder",10),2&dt){const ne=t.oxw();t.Q6J("placeholder",ne.placeHolder)}}function yn(dt,ft){1&dt&&t._UZ(0,"span",1)}function st(dt,ft){1&dt&&t._UZ(0,"span",3)}function it(dt,ft){1&dt&&t._UZ(0,"span",8)}function lt(dt,ft){1&dt&&t._UZ(0,"span",9)}function Pt(dt,ft){if(1&dt&&(t.ynx(0),t.YNc(1,it,1,0,"span",6),t.YNc(2,lt,1,0,"span",7),t.BQk()),2&dt){const ne=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!ne.search),t.xp6(1),t.Q6J("ngIf",ne.search)}}function wt(dt,ft){if(1&dt&&t._UZ(0,"span",11),2&dt){const ne=t.oxw().$implicit;t.Q6J("nzType",ne)}}function Vt(dt,ft){if(1&dt&&(t.ynx(0),t.YNc(1,wt,1,1,"span",10),t.BQk()),2&dt){const ne=ft.$implicit;t.xp6(1),t.Q6J("ngIf",ne)}}function jt(dt,ft){if(1&dt&&t.YNc(0,Vt,2,1,"ng-container",2),2&dt){const ne=t.oxw(2);t.Q6J("nzStringTemplateOutlet",ne.suffixIcon)}}function Ke(dt,ft){if(1&dt&&(t.YNc(0,Pt,3,2,"ng-container",4),t.YNc(1,jt,1,1,"ng-template",null,5,t.W1O)),2&dt){const ne=t.MAs(2),B=t.oxw();t.Q6J("ngIf",B.showArrow&&!B.suffixIcon)("ngIfElse",ne)}}function K(dt,ft){if(1&dt&&(t.ynx(0),t._uU(1),t.BQk()),2&dt){const ne=t.oxw();t.xp6(1),t.Oqu(ne.feedbackIcon)}}function w(dt,ft){if(1&dt&&t._UZ(0,"nz-form-item-feedback-icon",8),2&dt){const ne=t.oxw(3);t.Q6J("status",ne.status)}}function J(dt,ft){if(1&dt&&t.YNc(0,w,1,1,"nz-form-item-feedback-icon",7),2&dt){const ne=t.oxw(2);t.Q6J("ngIf",ne.hasFeedback&&!!ne.status)}}function Te(dt,ft){if(1&dt&&(t.TgZ(0,"nz-select-arrow",5),t.YNc(1,J,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&dt){const ne=t.MAs(2),B=t.oxw();t.Q6J("showArrow",B.nzShowArrow)("loading",B.nzLoading)("search",B.nzOpen&&B.nzShowSearch)("suffixIcon",B.nzSuffixIcon)("feedbackIcon",ne)}}function zt(dt,ft){if(1&dt){const ne=t.EpF();t.TgZ(0,"nz-select-clear",9),t.NdJ("clear",function(){t.CHM(ne);const ze=t.oxw();return t.KtG(ze.onClearSelection())}),t.qZA()}if(2&dt){const ne=t.oxw();t.Q6J("clearIcon",ne.nzClearIcon)}}function nt(dt,ft){if(1&dt){const ne=t.EpF();t.TgZ(0,"nz-option-container",10),t.NdJ("keydown",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.onKeyDown(ze))})("itemClick",function(ze){t.CHM(ne);const $e=t.oxw();return t.KtG($e.onItemClick(ze))})("scrollToBottom",function(){t.CHM(ne);const ze=t.oxw();return t.KtG(ze.nzScrollToBottom.emit())}),t.qZA()}if(2&dt){const ne=t.oxw();t.ekj("ant-select-dropdown-placement-bottomLeft","bottomLeft"===ne.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===ne.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===ne.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===ne.dropDownPosition),t.Q6J("ngStyle",ne.nzDropdownStyle)("itemSize",ne.nzOptionHeightPx)("maxItemLength",ne.nzOptionOverflowSize)("matchWidth",ne.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==ne.noAnimation||!ne.noAnimation.nzNoAnimation))("nzNoAnimation",null==ne.noAnimation?null:ne.noAnimation.nzNoAnimation)("listOfContainerItem",ne.listOfContainerItem)("menuItemSelectedIcon",ne.nzMenuItemSelectedIcon)("notFoundContent",ne.nzNotFoundContent)("activatedValue",ne.activatedValue)("listOfSelectedValue",ne.listOfValue)("dropdownRender",ne.nzDropdownRender)("compareWith",ne.compareWith)("mode",ne.nzMode)}}let qe=(()=>{class dt{constructor(){this.nzLabel=null,this.changes=new i.x}ngOnChanges(){this.changes.next()}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[t.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(ne,B){1&ne&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),dt})(),rt=(()=>{class dt{constructor(ne,B,ze){this.elementRef=ne,this.ngZone=B,this.destroy$=ze,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 t.vpe,this.itemHover=new t.vpe}ngOnChanges(ne){const{value:B,activatedValue:ze,listOfSelectedValue:$e}=ne;(B||$e)&&(this.selected=this.listOfSelectedValue.some(Mt=>this.compareWith(Mt,this.value))),(B||ze)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,v.R)(this.elementRef.nativeElement,"click").pipe((0,N.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,v.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,N.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}}return dt.\u0275fac=function(ne){return new(ne||dt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(k.kn))},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(ne,B){2&ne&&(t.uIk("title",B.label),t.ekj("ant-select-item-option-grouped",B.grouped)("ant-select-item-option-selected",B.selected&&!B.disabled)("ant-select-item-option-disabled",B.disabled)("ant-select-item-option-active",B.activated&&!B.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:[t._Bn([k.kn]),t.TTD],decls:5,vars:3,consts:[[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["noCustomContent",""],["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(ne,B){if(1&ne&&(t.TgZ(0,"div",0),t.YNc(1,_t,1,1,"ng-template",1),t.YNc(2,Ft,1,1,"ng-template",null,2,t.W1O),t.qZA(),t.YNc(4,bn,2,2,"div",3)),2&ne){const ze=t.MAs(3);t.xp6(1),t.Q6J("ngIf",B.customContent)("ngIfElse",ze),t.xp6(3),t.Q6J("ngIf",B.showState&&B.selected)}},dependencies:[A.O5,A.tP,ge.Ls,Ce.w],encapsulation:2,changeDetection:0}),dt})(),Rt=(()=>{class dt{constructor(){this.nzLabel=null}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,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(ne,B){1&ne&&t.YNc(0,et,2,1,"ng-container",0),2&ne&&t.Q6J("nzStringTemplateOutlet",B.nzLabel)},dependencies:[Z.f],encapsulation:2,changeDetection:0}),dt})(),St=(()=>{class dt{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 t.vpe,this.scrollToBottom=new t.vpe,this.scrolledIndex=0}onItemClick(ne){this.itemClick.emit(ne)}onItemHover(ne){this.activatedValue=ne}trackValue(ne,B){return B.key}onScrolledIndexChange(ne){this.scrolledIndex=ne,ne===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const ne=this.listOfContainerItem.findIndex(B=>this.compareWith(B.key,this.activatedValue));(ne=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(ne||0)}ngOnChanges(ne){const{listOfContainerItem:B,activatedValue:ze}=ne;(B||ze)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-option-container"]],viewQuery:function(ne,B){if(1&ne&&t.Gf(Y.N7,7),2&ne){let ze;t.iGM(ze=t.CRH())&&(B.cdkVirtualScrollViewport=ze.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:[t.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(ne,B){1&ne&&(t.TgZ(0,"div"),t.YNc(1,Re,2,1,"div",0),t.TgZ(2,"cdk-virtual-scroll-viewport",1),t.NdJ("scrolledIndexChange",function($e){return B.onScrolledIndexChange($e)}),t.YNc(3,Ut,3,3,"ng-template",2),t.qZA(),t.YNc(4,Xt,0,0,"ng-template",3),t.qZA()),2&ne&&(t.xp6(1),t.Q6J("ngIf",0===B.listOfContainerItem.length),t.xp6(1),t.Udp("height",B.listOfContainerItem.length*B.itemSize,"px")("max-height",B.itemSize*B.maxItemLength,"px"),t.ekj("full-width",!B.matchWidth),t.Q6J("itemSize",B.itemSize)("maxBufferPx",B.itemSize*B.maxItemLength)("minBufferPx",B.itemSize*B.maxItemLength),t.xp6(1),t.Q6J("cdkVirtualForOf",B.listOfContainerItem)("cdkVirtualForTrackBy",B.trackValue)("cdkVirtualForTemplateCacheSize",0),t.xp6(1),t.Q6J("ngTemplateOutlet",B.dropdownRender))},dependencies:[A.O5,A.tP,A.RF,A.n9,Y.xd,Y.x0,Y.N7,S.gB,rt,Rt],encapsulation:2,changeDetection:0}),dt})(),gn=(()=>{class dt{constructor(ne,B){this.nzOptionGroupComponent=ne,this.destroy$=B,this.changes=new i.x,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,V.O)(!0),(0,N.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return dt.\u0275fac=function(ne){return new(ne||dt)(t.Y36(qe,8),t.Y36(k.kn))},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-option"]],viewQuery:function(ne,B){if(1&ne&&t.Gf(t.Rgc,7),2&ne){let ze;t.iGM(ze=t.CRH())&&(B.template=ze.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[t._Bn([k.kn]),t.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(ne,B){1&ne&&(t.F$t(),t.YNc(0,_n,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzDisabled",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzHide",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzCustomContent",void 0),dt})(),Ze=(()=>{class dt{setCompositionState(ne){this.isComposingChange.next(ne)}onValueChange(ne){this.value=ne,this.valueChange.next(ne),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const ne=this.mirrorElement.nativeElement,B=this.elementRef.nativeElement,ze=this.inputElement.nativeElement;this.renderer.removeStyle(B,"width"),this.renderer.setProperty(ne,"textContent",`${ze.value}\xa0`),this.renderer.setStyle(B,"width",`${ne.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ne,B,ze){this.elementRef=ne,this.renderer=B,this.focusMonitor=ze,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.vpe,this.isComposingChange=new t.vpe}ngOnChanges(ne){const B=this.inputElement.nativeElement,{focusTrigger:ze,showInput:$e}=ne;$e&&(this.showInput?this.renderer.removeAttribute(B,"readonly"):this.renderer.setAttribute(B,"readonly","readonly")),ze&&!0===ze.currentValue&&!1===ze.previousValue&&B.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return dt.\u0275fac=function(ne){return new(ne||dt)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(re.tE))},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-search"]],viewQuery:function(ne,B){if(1&ne&&(t.Gf(On,7),t.Gf(Jt,5)),2&ne){let ze;t.iGM(ze=t.CRH())&&(B.inputElement=ze.first),t.iGM(ze=t.CRH())&&(B.mirrorElement=ze.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:[t._Bn([{provide:x.ve,useValue:!1}]),t.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(ne,B){1&ne&&(t.TgZ(0,"input",0,1),t.NdJ("ngModelChange",function($e){return B.onValueChange($e)})("compositionstart",function(){return B.setCompositionState(!0)})("compositionend",function(){return B.setCompositionState(!1)}),t.qZA(),t.YNc(2,Nt,2,0,"span",2)),2&ne&&(t.Udp("opacity",B.showInput?null:0),t.Q6J("ngModel",B.value)("disabled",B.disabled),t.uIk("id",B.nzId)("autofocus",B.autofocus?"autofocus":null),t.xp6(2),t.Q6J("ngIf",B.mirrorSync))},dependencies:[A.O5,x.Fj,x.JJ,x.On],encapsulation:2,changeDetection:0}),dt})(),ut=(()=>{class dt{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.vpe}onDelete(ne){ne.preventDefault(),ne.stopPropagation(),this.disabled||this.delete.next(ne)}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(ne,B){2&ne&&(t.uIk("title",B.label),t.ekj("ant-select-selection-item-disabled",B.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(ne,B){1&ne&&(t.YNc(0,Pe,4,2,"ng-container",0),t.YNc(1,Be,2,2,"span",1)),2&ne&&(t.Q6J("nzStringTemplateOutlet",B.contentTemplateOutlet)("nzStringTemplateOutletContext",t.VKq(3,xe,B.contentTemplateOutletContext)),t.xp6(1),t.Q6J("ngIf",B.deletable&&!B.disabled))},dependencies:[A.O5,ge.Ls,Z.f,Ce.w],encapsulation:2,changeDetection:0}),dt})(),ce=(()=>{class dt{constructor(){this.placeholder=null}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(ne,B){1&ne&&t.YNc(0,te,2,1,"ng-container",0),2&ne&&t.Q6J("nzStringTemplateOutlet",B.placeholder)},dependencies:[Z.f],encapsulation:2,changeDetection:0}),dt})(),_e=(()=>{class dt{updateTemplateVariable(){const ne=0===this.listOfTopItem.length;this.isShowPlaceholder=ne&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!ne&&!this.isComposing&&!this.inputValue}isComposingChange(ne){this.isComposing=ne,this.updateTemplateVariable()}onInputValueChange(ne){ne!==this.inputValue&&(this.inputValue=ne,this.updateTemplateVariable(),this.inputValueChange.emit(ne),this.tokenSeparate(ne,this.tokenSeparators))}tokenSeparate(ne,B){if(ne&&ne.length&&B.length&&"default"!==this.mode&&((Mt,on)=>{for(let Zt=0;Zt0)return!0;return!1})(ne,B)){const Mt=((Mt,on)=>{const Zt=new RegExp(`[${on.join()}]`),Wn=Mt.split(Zt).filter(pn=>pn);return[...new Set(Wn)]})(ne,B);this.tokenize.next(Mt)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(ne,B){return B.nzValue}onDeleteItem(ne){!this.disabled&&!ne.nzDisabled&&this.deleteItem.next(ne)}constructor(ne,B,ze){this.elementRef=ne,this.ngZone=B,this.noAnimation=ze,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 t.vpe,this.inputValueChange=new t.vpe,this.deleteItem=new t.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new i.x}ngOnChanges(ne){const{listOfTopItem:B,maxTagCount:ze,customTemplate:$e,maxTagPlaceholder:Mt}=ne;if(B&&this.updateTemplateVariable(),B||ze||$e||Mt){const on=this.listOfTopItem.slice(0,this.maxTagCount).map(Zt=>({nzLabel:Zt.nzLabel,nzValue:Zt.nzValue,nzDisabled:Zt.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:Zt}));if(this.listOfTopItem.length>this.maxTagCount){const Zt=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Wn=this.listOfTopItem.map(qn=>qn.nzValue),pn={nzLabel:Zt,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Wn.slice(this.maxTagCount)};on.push(pn)}this.listOfSlicedItem=on}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,v.R)(this.elementRef.nativeElement,"click").pipe((0,N.R)(this.destroy$)).subscribe(ne=>{ne.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,v.R)(this.elementRef.nativeElement,"keydown").pipe((0,N.R)(this.destroy$)).subscribe(ne=>{ne.target instanceof HTMLInputElement&&ne.keyCode===O.ZH&&"default"!==this.mode&&!ne.target.value&&this.listOfTopItem.length>0&&(ne.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}}return dt.\u0275fac=function(ne){return new(ne||dt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(he.P,9))},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-top-control"]],viewQuery:function(ne,B){if(1&ne&&t.Gf(Ze,5),2&ne){let ze;t.iGM(ze=t.CRH())&&(B.nzSelectSearchComponent=ze.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:[t.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(ne,B){1&ne&&(t.ynx(0,0),t.YNc(1,De,3,8,"ng-container",1),t.YNc(2,Ct,3,9,"ng-container",2),t.BQk(),t.YNc(3,sn,1,1,"nz-select-placeholder",3)),2&ne&&(t.Q6J("ngSwitch",B.mode),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(2),t.Q6J("ngIf",B.isShowPlaceholder))},dependencies:[A.sg,A.O5,A.RF,A.n9,A.ED,Ce.w,Ze,ut,ce],encapsulation:2,changeDetection:0}),dt})(),mt=(()=>{class dt{constructor(){this.clearIcon=null,this.clear=new t.vpe}onClick(ne){ne.preventDefault(),ne.stopPropagation(),this.clear.emit(ne)}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(ne,B){1&ne&&t.NdJ("click",function($e){return B.onClick($e)})},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(ne,B){1&ne&&t.YNc(0,yn,1,0,"span",0),2&ne&&t.Q6J("ngIf",!B.clearIcon)("ngIfElse",B.clearIcon)},dependencies:[A.O5,ge.Ls,Ce.w],encapsulation:2,changeDetection:0}),dt})(),Ae=(()=>{class dt{constructor(){this.loading=!1,this.search=!1,this.showArrow=!1,this.suffixIcon=null,this.feedbackIcon=null}}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(ne,B){2&ne&&t.ekj("ant-select-arrow-loading",B.loading)},inputs:{loading:"loading",search:"search",showArrow:"showArrow",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon"},decls:4,vars:3,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],[4,"nzStringTemplateOutlet"],["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"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(ne,B){if(1&ne&&(t.YNc(0,st,1,0,"span",0),t.YNc(1,Ke,3,2,"ng-template",null,1,t.W1O),t.YNc(3,K,2,1,"ng-container",2)),2&ne){const ze=t.MAs(2);t.Q6J("ngIf",B.loading)("ngIfElse",ze),t.xp6(3),t.Q6J("nzStringTemplateOutlet",B.feedbackIcon)}},dependencies:[A.O5,ge.Ls,Z.f,Ce.w],encapsulation:2,changeDetection:0}),dt})();const at=(dt,ft)=>!(!ft||!ft.nzLabel)&&ft.nzLabel.toString().toLowerCase().indexOf(dt.toLowerCase())>-1;let un=(()=>{class dt{set nzShowArrow(ne){this._nzShowArrow=ne}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(ne){return{nzValue:ne,nzLabel:ne,type:"item"}}onItemClick(ne){if(this.activatedValue=ne,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],ne))&&this.updateListOfValue([ne]),this.setOpenState(!1);else{const B=this.listOfValue.findIndex(ze=>this.compareWith(ze,ne));if(-1!==B){const ze=this.listOfValue.filter(($e,Mt)=>Mt!==B);this.updateListOfValue(ze)}else if(this.listOfValue.length!this.compareWith(ze,ne.nzValue));this.updateListOfValue(B),this.clearInput()}updateListOfContainerItem(){let ne=this.listOfTagAndTemplateItem.filter($e=>!$e.nzHide).filter($e=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,$e));if("tags"===this.nzMode&&this.searchValue){const $e=this.listOfTagAndTemplateItem.find(Mt=>Mt.nzLabel===this.searchValue);if($e)this.activatedValue=$e.nzValue;else{const Mt=this.generateTagItem(this.searchValue);ne=[Mt,...ne],this.activatedValue=Mt.nzValue}}const B=ne.find($e=>$e.nzLabel===this.searchValue)||ne.find($e=>this.compareWith($e.nzValue,this.activatedValue))||ne.find($e=>this.compareWith($e.nzValue,this.listOfValue[0]))||ne[0];this.activatedValue=B&&B.nzValue||null;let ze=[];this.isReactiveDriven?ze=[...new Set(this.nzOptions.filter($e=>$e.groupLabel).map($e=>$e.groupLabel))]:this.listOfNzOptionGroupComponent&&(ze=this.listOfNzOptionGroupComponent.map($e=>$e.nzLabel)),ze.forEach($e=>{const Mt=ne.findIndex(on=>$e===on.groupLabel);Mt>-1&&ne.splice(Mt,0,{groupLabel:$e,type:"group",key:$e})}),this.listOfContainerItem=[...ne],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(ne){const ze=(($e,Mt)=>"default"===this.nzMode?$e.length>0?$e[0]:null:$e)(ne);this.value!==ze&&(this.listOfValue=ne,this.listOfValue$.next(ne),this.value=ze,this.onChange(this.value))}onTokenSeparate(ne){const B=this.listOfTagAndTemplateItem.filter(ze=>-1!==ne.findIndex($e=>$e===ze.nzLabel)).map(ze=>ze.nzValue).filter(ze=>-1===this.listOfValue.findIndex($e=>this.compareWith($e,ze)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...B]);else if("tags"===this.nzMode){const ze=ne.filter($e=>-1===this.listOfTagAndTemplateItem.findIndex(Mt=>Mt.nzLabel===$e));this.updateListOfValue([...this.listOfValue,...B,...ze])}this.clearInput()}onKeyDown(ne){if(this.nzDisabled)return;const B=this.listOfContainerItem.filter($e=>"item"===$e.type).filter($e=>!$e.nzDisabled),ze=B.findIndex($e=>this.compareWith($e.nzValue,this.activatedValue));switch(ne.keyCode){case O.LH:ne.preventDefault(),this.nzOpen&&B.length>0&&(this.activatedValue=B[ze>0?ze-1:B.length-1].nzValue);break;case O.JH:ne.preventDefault(),this.nzOpen&&B.length>0?this.activatedValue=B[ze{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,ne!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,me.e)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(ne,B,ze,$e,Mt,on,Zt,Wn,pn,qn,co,_o){this.ngZone=ne,this.destroy$=B,this.nzConfigService=ze,this.cdr=$e,this.host=Mt,this.renderer=on,this.platform=Zt,this.focusMonitor=Wn,this.directionality=pn,this.noAnimation=qn,this.nzFormStatusService=co,this.nzFormNoStatusService=_o,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=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=at,this.compareWith=(Yo,Ko)=>Yo===Ko,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.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.vpe,this.nzScrollToBottom=new t.vpe,this.nzOpenChange=new t.vpe,this.nzBlur=new t.vpe,this.nzFocus=new t.vpe,this.listOfValue$=new d.X([]),this.listOfTemplateItem$=new d.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(ne){if(this.value!==ne){this.value=ne;const ze=(($e,Mt)=>null==$e?[]:"default"===this.nzMode?[$e]:$e)(ne);this.listOfValue=ze,this.listOfValue$.next(ze),this.cdr.markForCheck()}}registerOnChange(ne){this.onChange=ne}registerOnTouched(ne){this.onTouched=ne}setDisabledState(ne){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ne,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(ne){const{nzOpen:B,nzDisabled:ze,nzOptions:$e,nzStatus:Mt,nzPlacement:on}=ne;if(B&&this.onOpenChange(),ze&&this.nzDisabled&&this.setOpenState(!1),$e){this.isReactiveDriven=!0;const Wn=(this.nzOptions||[]).map(pn=>({template:pn.label instanceof t.Rgc?pn.label:null,nzLabel:"string"==typeof pn.label||"number"==typeof pn.label?pn.label:null,nzValue:pn.value,nzDisabled:pn.disabled||!1,nzHide:pn.hide||!1,nzCustomContent:pn.label instanceof t.Rgc,groupLabel:pn.groupLabel||null,type:"item",key:pn.value}));this.listOfTemplateItem$.next(Wn)}if(Mt&&this.setStatusStyles(this.nzStatus,this.hasFeedback),on){const{currentValue:Zt}=on;this.dropDownPosition=Zt;const Wn=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=Zt&&Wn.includes(Zt)?[j.yW[Zt]]:Wn.map(pn=>j.yW[pn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,U.x)((ne,B)=>ne.status===B.status&&ne.hasFeedback===B.hasFeedback),(0,M.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,s.of)(!1)),(0,e.U)(([{status:ne,hasFeedback:B},ze])=>({status:ze?"":ne,hasFeedback:B})),(0,N.R)(this.destroy$)).subscribe(({status:ne,hasFeedback:B})=>{this.setStatusStyles(ne,B)}),this.focusMonitor.monitor(this.host,!0).pipe((0,N.R)(this.destroy$)).subscribe(ne=>{ne?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,L.a)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,N.R)(this.destroy$)).subscribe(([ne,B])=>{const ze=ne.filter(()=>"tags"===this.nzMode).filter($e=>-1===B.findIndex(Mt=>this.compareWith(Mt.nzValue,$e))).map($e=>this.listOfTopItem.find(Mt=>this.compareWith(Mt.nzValue,$e))||this.generateTagItem($e));this.listOfTagAndTemplateItem=[...B,...ze],this.listOfTopItem=this.listOfValue.map($e=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(Mt=>this.compareWith($e,Mt.nzValue))).filter($e=>!!$e),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,N.R)(this.destroy$)).subscribe(ne=>{this.dir=ne,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,N.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,v.R)(this.host.nativeElement,"click").pipe((0,N.R)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,N.R)(this.destroy$)).subscribe(ne=>{ne.keyCode===O.hY&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,Q.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,V.O)(!0),(0,I.w)(()=>(0,Q.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(ne=>ne.changes),...this.listOfNzOptionGroupComponent.map(ne=>ne.changes)).pipe((0,V.O)(!0))),(0,N.R)(this.destroy$)).subscribe(()=>{const ne=this.listOfNzOptionComponent.toArray().map(B=>{const{template:ze,nzLabel:$e,nzValue:Mt,nzDisabled:on,nzHide:Zt,nzCustomContent:Wn,groupLabel:pn}=B;return{template:ze,nzLabel:$e,nzValue:Mt,nzDisabled:on,nzHide:Zt,nzCustomContent:Wn,groupLabel:pn,type:"item",key:Mt}});this.listOfTemplateItem$.next(ne),this.cdr.markForCheck()})}ngOnDestroy(){(0,me.h)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(ne,B){this.status=ne,this.hasFeedback=B,this.cdr.markForCheck(),this.statusCls=(0,R.Zu)(this.prefixCls,ne,B),Object.keys(this.statusCls).forEach(ze=>{this.statusCls[ze]?this.renderer.addClass(this.host.nativeElement,ze):this.renderer.removeClass(this.host.nativeElement,ze)})}}return dt.\u0275fac=function(ne){return new(ne||dt)(t.Y36(t.R0b),t.Y36(k.kn),t.Y36(ue.jY),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Me.t4),t.Y36(re.tE),t.Y36(Oe.Is,8),t.Y36(he.P,9),t.Y36(kt.kH,8),t.Y36(kt.yW,8))},dt.\u0275cmp=t.Xpm({type:dt,selectors:[["nz-select"]],contentQueries:function(ne,B,ze){if(1&ne&&(t.Suo(ze,gn,5),t.Suo(ze,qe,5)),2&ne){let $e;t.iGM($e=t.CRH())&&(B.listOfNzOptionComponent=$e),t.iGM($e=t.CRH())&&(B.listOfNzOptionGroupComponent=$e)}},viewQuery:function(ne,B){if(1&ne&&(t.Gf(P.xu,7,t.SBq),t.Gf(P.pI,7),t.Gf(_e,7),t.Gf(qe,7,t.SBq),t.Gf(_e,7,t.SBq)),2&ne){let ze;t.iGM(ze=t.CRH())&&(B.originElement=ze.first),t.iGM(ze=t.CRH())&&(B.cdkConnectedOverlay=ze.first),t.iGM(ze=t.CRH())&&(B.nzSelectTopControlComponent=ze.first),t.iGM(ze=t.CRH())&&(B.nzOptionGroupComponentElement=ze.first),t.iGM(ze=t.CRH())&&(B.nzSelectTopControlComponentElement=ze.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(ne,B){2&ne&&t.ekj("ant-select-in-form-item",!!B.nzFormStatusService)("ant-select-lg","large"===B.nzSize)("ant-select-sm","small"===B.nzSize)("ant-select-show-arrow",B.nzShowArrow)("ant-select-disabled",B.nzDisabled)("ant-select-show-search",(B.nzShowSearch||"default"!==B.nzMode)&&!B.nzDisabled)("ant-select-allow-clear",B.nzAllowClear)("ant-select-borderless",B.nzBorderless)("ant-select-open",B.nzOpen)("ant-select-focused",B.nzOpen||B.focused)("ant-select-single","default"===B.nzMode)("ant-select-multiple","default"!==B.nzMode)("ant-select-rtl","rtl"===B.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",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",nzSelectOnTab:"nzSelectOnTab",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[t._Bn([k.kn,{provide:x.JU,useExisting:(0,t.Gpc)(()=>dt),multi:!0}]),t.TTD],decls:5,vars:25,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick","detach","positionChange"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon"],["feedbackIconTpl",""],[3,"status",4,"ngIf"],[3,"status"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(ne,B){if(1&ne&&(t.TgZ(0,"nz-select-top-control",0,1),t.NdJ("inputValueChange",function($e){return B.onInputValueChange($e)})("tokenize",function($e){return B.onTokenSeparate($e)})("deleteItem",function($e){return B.onItemDelete($e)})("keydown",function($e){return B.onKeyDown($e)}),t.qZA(),t.YNc(2,Te,3,5,"nz-select-arrow",2),t.YNc(3,zt,1,1,"nz-select-clear",3),t.YNc(4,nt,1,23,"ng-template",4),t.NdJ("overlayOutsideClick",function($e){return B.onClickOutside($e)})("detach",function(){return B.setOpenState(!1)})("positionChange",function($e){return B.onPositionChange($e)})),2&ne){const ze=t.MAs(1);t.Q6J("nzId",B.nzId)("open",B.nzOpen)("disabled",B.nzDisabled)("mode",B.nzMode)("@.disabled",!(null==B.noAnimation||!B.noAnimation.nzNoAnimation))("nzNoAnimation",null==B.noAnimation?null:B.noAnimation.nzNoAnimation)("maxTagPlaceholder",B.nzMaxTagPlaceholder)("removeIcon",B.nzRemoveIcon)("placeHolder",B.nzPlaceHolder)("maxTagCount",B.nzMaxTagCount)("customTemplate",B.nzCustomTemplate)("tokenSeparators",B.nzTokenSeparators)("showSearch",B.nzShowSearch)("autofocus",B.nzAutoFocus)("listOfTopItem",B.listOfTopItem),t.xp6(2),t.Q6J("ngIf",B.nzShowArrow||B.hasFeedback&&!!B.status),t.xp6(1),t.Q6J("ngIf",B.nzAllowClear&&!B.nzDisabled&&B.listOfValue.length),t.xp6(1),t.Q6J("cdkConnectedOverlayHasBackdrop",B.nzBackdrop)("cdkConnectedOverlayMinWidth",B.nzDropdownMatchSelectWidth?null:B.triggerWidth)("cdkConnectedOverlayWidth",B.nzDropdownMatchSelectWidth?B.triggerWidth:null)("cdkConnectedOverlayOrigin",ze)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",B.nzDropdownClassName)("cdkConnectedOverlayOpen",B.nzOpen)("cdkConnectedOverlayPositions",B.positions)}},dependencies:[A.O5,A.PC,P.pI,P.xu,j.hQ,he.P,Ce.w,kt.w_,St,_e,mt,Ae],encapsulation:2,data:{animation:[de.mF]},changeDetection:0}),(0,F.gn)([(0,ue.oS)()],dt.prototype,"nzSuffixIcon",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzAllowClear",void 0),(0,F.gn)([(0,ue.oS)(),(0,R.yF)()],dt.prototype,"nzBorderless",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzShowSearch",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzLoading",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzAutoFocus",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzAutoClearSearchValue",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzServerSearch",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzDisabled",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzOpen",void 0),(0,F.gn)([(0,R.yF)()],dt.prototype,"nzSelectOnTab",void 0),(0,F.gn)([(0,ue.oS)(),(0,R.yF)()],dt.prototype,"nzBackdrop",void 0),dt})(),Lt=(()=>{class dt{}return dt.\u0275fac=function(ne){return new(ne||dt)},dt.\u0275mod=t.oAB({type:dt}),dt.\u0275inj=t.cJS({imports:[Oe.vT,A.ez,It.YI,x.u5,Me.ud,P.U8,ge.PV,Z.T,S.Xo,j.e4,he.g,Ce.a,kt.mJ,Y.Cl,re.rt]}),dt})()},2574:(Ot,be,a)=>{a.d(be,{$1:()=>M,NU:()=>k,zf:()=>ge});var t=a(9388),i=a(6814),v=a(5879),d=a(655),s=a(8645),L=a(9773),Q=a(874),Y=a(7754);function A(Ce,Z){}const S=function(Ce){return{$implicit:Ce}};function N(Ce,Z){if(1&Ce&&(v.TgZ(0,"span",4),v.YNc(1,A,0,0,"ng-template",5),v.qZA()),2&Ce){const F=v.oxw(),R=F.last,O=F.index,P=v.oxw();v.Udp("margin-bottom","vertical"===P.nzDirection?R?null:P.spaceSize:null,"px")("margin-right","horizontal"===P.nzDirection?R?null:P.spaceSize:null,"px"),v.xp6(1),v.Q6J("ngTemplateOutlet",P.nzSplit)("ngTemplateOutletContext",v.VKq(6,S,O))}}function V(Ce,Z){if(1&Ce&&(v.TgZ(0,"div",1),v.GkF(1,2),v.qZA(),v.YNc(2,N,2,8,"span",3)),2&Ce){const F=Z.$implicit,R=Z.last,O=v.oxw();v.Udp("margin-bottom","vertical"===O.nzDirection?R?null:O.spaceSize:null,"px")("margin-right","horizontal"===O.nzDirection?R?null:O.spaceSize:null,"px"),v.xp6(1),v.Q6J("ngTemplateOutlet",F),v.xp6(1),v.Q6J("ngIf",O.nzSplit&&!R)}}const U=["*"];let M=(()=>{class Ce{constructor(){}}return Ce.\u0275fac=function(F){return new(F||Ce)},Ce.\u0275dir=v.lG2({type:Ce,selectors:[["","nzSpaceItem",""]]}),Ce})();const I={small:8,middle:16,large:24};let k=(()=>{class Ce{constructor(F,R){this.nzConfigService=F,this.cdr=R,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=I.small,this.destroy$=new s.x}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?I[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(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,L.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return Ce.\u0275fac=function(F){return new(F||Ce)(v.Y36(Q.jY),v.Y36(v.sBO))},Ce.\u0275cmp=v.Xpm({type:Ce,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(F,R,O){if(1&F&&v.Suo(O,M,4,v.Rgc),2&F){let P;v.iGM(P=v.CRH())&&(R.items=P)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(F,R){2&F&&(v.Udp("flex-wrap",R.nzWrap?"wrap":null),v.ekj("ant-space-horizontal","horizontal"===R.nzDirection)("ant-space-vertical","vertical"===R.nzDirection)("ant-space-align-start","start"===R.mergedAlign)("ant-space-align-end","end"===R.mergedAlign)("ant-space-align-center","center"===R.mergedAlign)("ant-space-align-baseline","baseline"===R.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[v.TTD],ngContentSelectors:U,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(F,R){1&F&&(v.F$t(),v.Hsn(0),v.YNc(1,V,3,6,"ng-template",0)),2&F&&(v.xp6(1),v.Q6J("ngForOf",R.items))},dependencies:[i.sg,i.O5,i.tP],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,Y.yF)()],Ce.prototype,"nzWrap",void 0),(0,d.gn)([(0,Q.oS)()],Ce.prototype,"nzSize",void 0),Ce})(),ge=(()=>{class Ce{}return Ce.\u0275fac=function(F){return new(F||Ce)},Ce.\u0275mod=v.oAB({type:Ce}),Ce.\u0275inj=v.cJS({imports:[t.vT,i.ez]}),Ce})()},2669:(Ot,be,a)=>{a.d(be,{W:()=>j,j:()=>me});var t=a(655),i=a(5879),v=a(8645),d=a(5619),s=a(7328),L=a(4825),Q=a(7921),Y=a(3997),A=a(4664),S=a(9360),N=a(2420),V=a(8251),U=a(4829),e=a(9773),I=a(874),k=a(7754),ge=a(9388),Ce=a(6814),Z=a(7131);function F(re,he){1&re&&(i.TgZ(0,"span",3),i._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),i.qZA())}function R(re,he){}function O(re,he){if(1&re&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&re){const Me=i.oxw(2);i.xp6(1),i.Oqu(Me.nzTip)}}function P(re,he){if(1&re&&(i.TgZ(0,"div")(1,"div",5),i.YNc(2,R,0,0,"ng-template",6),i.YNc(3,O,2,1,"div",7),i.qZA()()),2&re){const Me=i.oxw(),Oe=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===Me.dir)("ant-spin-spinning",Me.isLoading)("ant-spin-lg","large"===Me.nzSize)("ant-spin-sm","small"===Me.nzSize)("ant-spin-show-text",Me.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",Me.nzIndicator||Oe),i.xp6(1),i.Q6J("ngIf",Me.nzTip)}}function x(re,he){if(1&re&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&re){const Me=i.oxw();i.ekj("ant-spin-blur",Me.isLoading)}}const de=["*"];let j=(()=>{class re{constructor(Me,Oe,kt){this.nzConfigService=Me,this.cdr=Oe,this.directionality=kt,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new v.x,this.spinning$=new d.X(this.nzSpinning),this.delay$=new s.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,Q.O)(this.nzDelay),(0,Y.x)(),(0,A.w)(Oe=>0===Oe?this.spinning$:this.spinning$.pipe(function M(re){return(0,S.e)((he,Me)=>{let Oe=!1,kt=null,It=null;const Tt=()=>{if(It?.unsubscribe(),It=null,Oe){Oe=!1;const gt=kt;kt=null,Me.next(gt)}};he.subscribe((0,V.x)(Me,gt=>{It?.unsubscribe(),Oe=!0,kt=gt,It=(0,V.x)(Me,Tt,N.Z),(0,U.Xf)(re(gt)).subscribe(It)},()=>{Tt(),Me.complete()},void 0,()=>{kt=It=null}))})}(kt=>(0,L.H)(kt?Oe:0)))),(0,e.R)(this.destroy$)).subscribe(Oe=>{this.isLoading=Oe,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,e.R)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Me){const{nzSpinning:Oe,nzDelay:kt}=Me;Oe&&this.spinning$.next(this.nzSpinning),kt&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return re.\u0275fac=function(Me){return new(Me||re)(i.Y36(I.jY),i.Y36(i.sBO),i.Y36(ge.Is,8))},re.\u0275cmp=i.Xpm({type:re,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(Me,Oe){2&Me&&i.ekj("ant-spin-nested-loading",!Oe.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:de,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(Me,Oe){1&Me&&(i.F$t(),i.YNc(0,F,5,0,"ng-template",null,0,i.W1O),i.YNc(2,P,4,12,"div",1),i.YNc(3,x,2,2,"div",2)),2&Me&&(i.xp6(2),i.Q6J("ngIf",Oe.isLoading),i.xp6(1),i.Q6J("ngIf",!Oe.nzSimple))},dependencies:[Ce.O5,Ce.tP],encapsulation:2}),(0,t.gn)([(0,I.oS)()],re.prototype,"nzIndicator",void 0),(0,t.gn)([(0,k.Rn)()],re.prototype,"nzDelay",void 0),(0,t.gn)([(0,k.yF)()],re.prototype,"nzSimple",void 0),(0,t.gn)([(0,k.yF)()],re.prototype,"nzSpinning",void 0),re})(),me=(()=>{class re{}return re.\u0275fac=function(Me){return new(Me||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({imports:[ge.vT,Ce.ez,Z.Q8]}),re})()},3740:(Ot,be,a)=>{a.d(be,{UX:()=>yo,qn:()=>dn,Ql:()=>tn,Uo:()=>Qn,N8:()=>gi,HQ:()=>hi,zu:()=>Lo,p0:()=>_i,h7:()=>Un,qD:()=>jn,_C:()=>eo,g6:()=>Co,Om:()=>Ai,$Z:()=>nr});var t=a(9388),i=a(2831),v=a(532),d=a(6814),s=a(5879),L=a(6223),Q=a(2840),Y=a(8802),A=a(2612),S=a(8324),N=a(2787),V=a(804),U=a(1752),M=a(551),e=a(3460),I=a(655),k=a(8645),ge=a(7328),Ce=a(9773),Z=a(874),F=a(9087),R=a(7754),O=a(9691);const P=["nz-pagination-item",""];function x(ke,Yt){if(1&ke&&(s.TgZ(0,"a"),s._uU(1),s.qZA()),2&ke){const W=s.oxw().page;s.xp6(1),s.Oqu(W)}}function de(ke,Yt){1&ke&&s._UZ(0,"span",9)}function ue(ke,Yt){1&ke&&s._UZ(0,"span",10)}function j(ke,Yt){if(1&ke&&(s.TgZ(0,"button",6),s.ynx(1,2),s.YNc(2,de,1,0,"span",7),s.YNc(3,ue,1,0,"span",8),s.BQk(),s.qZA()),2&ke){const W=s.oxw(2);s.Q6J("disabled",W.disabled),s.xp6(1),s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function me(ke,Yt){1&ke&&s._UZ(0,"span",10)}function re(ke,Yt){1&ke&&s._UZ(0,"span",9)}function he(ke,Yt){if(1&ke&&(s.TgZ(0,"button",6),s.ynx(1,2),s.YNc(2,me,1,0,"span",11),s.YNc(3,re,1,0,"span",12),s.BQk(),s.qZA()),2&ke){const W=s.oxw(2);s.Q6J("disabled",W.disabled),s.xp6(1),s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Me(ke,Yt){1&ke&&s._UZ(0,"span",20)}function Oe(ke,Yt){1&ke&&s._UZ(0,"span",21)}function kt(ke,Yt){if(1&ke&&(s.ynx(0,2),s.YNc(1,Me,1,0,"span",18),s.YNc(2,Oe,1,0,"span",19),s.BQk()),2&ke){const W=s.oxw(4);s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function It(ke,Yt){1&ke&&s._UZ(0,"span",21)}function Tt(ke,Yt){1&ke&&s._UZ(0,"span",20)}function gt(ke,Yt){if(1&ke&&(s.ynx(0,2),s.YNc(1,It,1,0,"span",22),s.YNc(2,Tt,1,0,"span",23),s.BQk()),2&ke){const W=s.oxw(4);s.Q6J("ngSwitch",W.direction),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function _t(ke,Yt){if(1&ke&&(s.TgZ(0,"div",15),s.ynx(1,2),s.YNc(2,kt,3,2,"ng-container",16),s.YNc(3,gt,3,2,"ng-container",16),s.BQk(),s.TgZ(4,"span",17),s._uU(5,"\u2022\u2022\u2022"),s.qZA()()),2&ke){const W=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngSwitch",W),s.xp6(1),s.Q6J("ngSwitchCase","prev_5"),s.xp6(1),s.Q6J("ngSwitchCase","next_5")}}function Ft(ke,Yt){if(1&ke&&(s.ynx(0),s.TgZ(1,"a",13),s.YNc(2,_t,6,3,"div",14),s.qZA(),s.BQk()),2&ke){const W=s.oxw().$implicit;s.xp6(1),s.Q6J("ngSwitch",W)}}function rn(ke,Yt){1&ke&&(s.ynx(0,2),s.YNc(1,x,2,1,"a",3),s.YNc(2,j,4,3,"button",4),s.YNc(3,he,4,3,"button",4),s.YNc(4,Ft,3,1,"ng-container",5),s.BQk()),2&ke&&(s.Q6J("ngSwitch",Yt.$implicit),s.xp6(1),s.Q6J("ngSwitchCase","page"),s.xp6(1),s.Q6J("ngSwitchCase","prev"),s.xp6(1),s.Q6J("ngSwitchCase","next"))}function bn(ke,Yt){}const et=function(ke,Yt){return{$implicit:ke,page:Yt}},Re=["containerTemplate"];function yt(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"ul")(1,"li",1),s.NdJ("click",function(){s.CHM(W);const Gt=s.oxw();return s.KtG(Gt.prePage())}),s.qZA(),s.TgZ(2,"li",2)(3,"input",3),s.NdJ("keydown.enter",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.jumpToPageViaInput(Gt))}),s.qZA(),s.TgZ(4,"span",4),s._uU(5,"/"),s.qZA(),s._uU(6),s.qZA(),s.TgZ(7,"li",5),s.NdJ("click",function(){s.CHM(W);const Gt=s.oxw();return s.KtG(Gt.nextPage())}),s.qZA()()}if(2&ke){const W=s.oxw();s.xp6(1),s.Q6J("disabled",W.isFirstIndex)("direction",W.dir)("itemRender",W.itemRender),s.uIk("title",W.locale.prev_page),s.xp6(1),s.uIk("title",W.pageIndex+"/"+W.lastIndex),s.xp6(1),s.Q6J("disabled",W.disabled)("value",W.pageIndex),s.xp6(3),s.hij(" ",W.lastIndex," "),s.xp6(1),s.Q6J("disabled",W.isLastIndex)("direction",W.dir)("itemRender",W.itemRender),s.uIk("title",null==W.locale?null:W.locale.next_page)}}const je=["nz-pagination-options",""];function Ut(ke,Yt){if(1&ke&&s._UZ(0,"nz-option",4),2&ke){const W=Yt.$implicit;s.Q6J("nzLabel",W.label)("nzValue",W.value)}}function Xt(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"nz-select",2),s.NdJ("ngModelChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onPageSizeChange(Gt))}),s.YNc(1,Ut,1,2,"nz-option",3),s.qZA()}if(2&ke){const W=s.oxw();s.Q6J("nzDisabled",W.disabled)("nzSize",W.nzSize)("ngModel",W.pageSize),s.xp6(1),s.Q6J("ngForOf",W.listOfPageSizeOption)("ngForTrackBy",W.trackByOption)}}function _n(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"div",5),s._uU(1),s.TgZ(2,"input",6),s.NdJ("keydown.enter",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.jumpToPageViaInput(Gt))}),s.qZA(),s._uU(3),s.qZA()}if(2&ke){const W=s.oxw();s.xp6(1),s.hij(" ",W.locale.jump_to," "),s.xp6(1),s.Q6J("disabled",W.disabled),s.xp6(1),s.hij(" ",W.locale.page," ")}}function On(ke,Yt){}const Jt=function(ke,Yt){return{$implicit:ke,range:Yt}};function Nt(ke,Yt){if(1&ke&&(s.TgZ(0,"li",4),s.YNc(1,On,0,0,"ng-template",5),s.qZA()),2&ke){const W=s.oxw(2);s.xp6(1),s.Q6J("ngTemplateOutlet",W.showTotal)("ngTemplateOutletContext",s.WLB(2,Jt,W.total,W.ranges))}}function Ye(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"li",6),s.NdJ("gotoIndex",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.jumpPage(Gt))})("diffIndex",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.jumpDiff(Gt))}),s.qZA()}if(2&ke){const W=Yt.$implicit,Ve=s.oxw(2);s.Q6J("locale",Ve.locale)("type",W.type)("index",W.index)("disabled",!!W.disabled)("itemRender",Ve.itemRender)("active",Ve.pageIndex===W.index)("direction",Ve.dir)}}function He(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"li",7),s.NdJ("pageIndexChange",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.onPageIndexChange(Gt))})("pageSizeChange",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.onPageSizeChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw(2);s.Q6J("total",W.total)("locale",W.locale)("disabled",W.disabled)("nzSize",W.nzSize)("showSizeChanger",W.showSizeChanger)("showQuickJumper",W.showQuickJumper)("pageIndex",W.pageIndex)("pageSize",W.pageSize)("pageSizeOptions",W.pageSizeOptions)}}function Pe(ke,Yt){if(1&ke&&(s.TgZ(0,"ul"),s.YNc(1,Nt,2,5,"li",1),s.YNc(2,Ye,1,7,"li",2),s.YNc(3,He,1,9,"li",3),s.qZA()),2&ke){const W=s.oxw();s.xp6(1),s.Q6J("ngIf",W.showTotal),s.xp6(1),s.Q6J("ngForOf",W.listOfPageItem)("ngForTrackBy",W.trackByPageItem),s.xp6(1),s.Q6J("ngIf",W.showQuickJumper||W.showSizeChanger)}}function We(ke,Yt){}function Be(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,We,0,0,"ng-template",6),s.BQk()),2&ke){s.oxw(2);const W=s.MAs(2);s.xp6(1),s.Q6J("ngTemplateOutlet",W.template)}}function xe(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,Be,2,1,"ng-container",5),s.BQk()),2&ke){const W=s.oxw(),Ve=s.MAs(4);s.xp6(1),s.Q6J("ngIf",W.nzSimple)("ngIfElse",Ve.template)}}let te=(()=>{class ke{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new s.vpe,this.gotoIndex=new s.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(W){const{locale:Ve,index:Gt,type:an}=W;(Ve||Gt||an)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(W,Ve){1&W&&s.NdJ("click",function(){return Ve.clickItem()}),2&W&&(s.uIk("title",Ve.title),s.ekj("ant-pagination-prev","prev"===Ve.type)("ant-pagination-next","next"===Ve.type)("ant-pagination-item","page"===Ve.type)("ant-pagination-jump-prev","prev_5"===Ve.type)("ant-pagination-jump-prev-custom-icon","prev_5"===Ve.type)("ant-pagination-jump-next","next_5"===Ve.type)("ant-pagination-jump-next-custom-icon","next_5"===Ve.type)("ant-pagination-disabled",Ve.disabled)("ant-pagination-item-active",Ve.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[s.TTD],attrs:P,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(W,Ve){if(1&W&&(s.YNc(0,rn,5,4,"ng-template",null,0,s.W1O),s.YNc(2,bn,0,0,"ng-template",1)),2&W){const Gt=s.MAs(1);s.xp6(2),s.Q6J("ngTemplateOutlet",Ve.itemRender||Gt)("ngTemplateOutletContext",s.WLB(2,et,Ve.type,Ve.index))}},dependencies:[d.tP,d.RF,d.n9,d.ED,M.Ls],encapsulation:2,changeDetection:0}),ke})(),ae=(()=>{class ke{constructor(W,Ve,Gt,an){this.cdr=W,this.renderer=Ve,this.elementRef=Gt,this.directionality=an,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new s.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new k.x,Ve.removeChild(Ve.parentNode(Gt.nativeElement),Gt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(W){const Ve=W.target,Gt=(0,R.He)(Ve.value,this.pageIndex);this.onPageIndexChange(Gt),Ve.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(W){this.pageIndexChange.next(W)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(W){const{pageIndex:Ve,total:Gt,pageSize:an}=W;(Ve||Gt||an)&&this.updateBindingValue()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.sBO),s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(t.Is,8))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-pagination-simple"]],viewQuery:function(W,Ve){if(1&W&&s.Gf(Re,7),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.template=Gt.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[s.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(W,Ve){1&W&&s.YNc(0,yt,8,12,"ng-template",null,0,s.W1O)},dependencies:[te],encapsulation:2,changeDetection:0}),ke})(),De=(()=>{class ke{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new s.vpe,this.pageSizeChange=new s.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(W){this.pageSize!==W&&this.pageSizeChange.next(W)}jumpToPageViaInput(W){const Ve=W.target,Gt=Math.floor((0,R.He)(Ve.value,this.pageIndex));this.pageIndexChange.next(Gt),Ve.value=""}trackByOption(W,Ve){return Ve.value}ngOnChanges(W){const{pageSize:Ve,pageSizeOptions:Gt,locale:an}=W;(Ve||Gt||an)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(Rn=>({value:Rn,label:`${Rn} ${this.locale.items_per_page}`})))}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[s.TTD],attrs:je,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(W,Ve){1&W&&(s.YNc(0,Xt,2,5,"nz-select",0),s.YNc(1,_n,4,3,"div",1)),2&W&&(s.Q6J("ngIf",Ve.showSizeChanger),s.xp6(1),s.Q6J("ngIf",Ve.showQuickJumper))},dependencies:[d.sg,d.O5,L.JJ,L.On,O.Ip,O.Vq],encapsulation:2,changeDetection:0}),ke})(),Ge=(()=>{class ke{constructor(W,Ve,Gt,an){this.cdr=W,this.renderer=Ve,this.elementRef=Gt,this.directionality=an,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new s.vpe,this.pageSizeChange=new s.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new k.x,Ve.removeChild(Ve.parentNode(Gt.nativeElement),Gt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(W){this.onPageIndexChange(W)}jumpDiff(W){this.jumpPage(this.pageIndex+W)}trackByPageItem(W,Ve){return`${Ve.type}-${Ve.index}`}onPageIndexChange(W){this.pageIndexChange.next(W)}onPageSizeChange(W){this.pageSizeChange.next(W)}getLastIndex(W,Ve){return Math.ceil(W/Ve)}buildIndexes(){const W=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,W)}getListOfPageItem(W,Ve){const an=(Rn,ho)=>{const fo=[];for(let Uo=Rn;Uo<=ho;Uo++)fo.push({index:Uo,type:"page"});return fo};return Rn=Ve<=9?an(1,Ve):((ho,fo)=>{let Uo=[];const ni={type:"prev_5"},uo={type:"next_5"},Li=an(1,1),Fi=an(Ve,Ve);return Uo=ho<5?[...an(2,4===ho?6:5),uo]:ho{class ke{validatePageIndex(W,Ve){return W>Ve?Ve:W<1?1:W}onPageIndexChange(W){const Ve=this.getLastIndex(this.nzTotal,this.nzPageSize),Gt=this.validatePageIndex(W,Ve);Gt!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=Gt,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(W){this.nzPageSize=W,this.nzPageSizeChange.emit(W);const Ve=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>Ve&&this.onPageIndexChange(Ve)}onTotalChange(W){const Ve=this.getLastIndex(W,this.nzPageSize);this.nzPageIndex>Ve&&Promise.resolve().then(()=>{this.onPageIndexChange(Ve),this.cdr.markForCheck()})}getLastIndex(W,Ve){return Math.ceil(W/Ve)}constructor(W,Ve,Gt,an,Rn){this.i18n=W,this.cdr=Ve,this.breakpointService=Gt,this.nzConfigService=an,this.directionality=Rn,this._nzModuleName="pagination",this.nzPageSizeChange=new s.vpe,this.nzPageIndexChange=new s.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new k.x,this.total$=new ge.t(1)}ngOnInit(){this.i18n.localeChange.pipe((0,Ce.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.onTotalChange(W)}),this.breakpointService.subscribe(F.WV).pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.nzResponsive&&(this.size=W===F.G_.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.dir=W,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(W){const{nzHideOnSinglePage:Ve,nzTotal:Gt,nzPageSize:an,nzSize:Rn}=W;Gt&&this.total$.next(this.nzTotal),(Ve||Gt||an)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),Rn&&(this.size=Rn.currentValue)}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(U.wi),s.Y36(s.sBO),s.Y36(F.r3),s.Y36(Z.jY),s.Y36(t.Is,8))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(W,Ve){2&W&&s.ekj("ant-pagination-simple",Ve.nzSimple)("ant-pagination-disabled",Ve.nzDisabled)("mini",!Ve.nzSimple&&"small"===Ve.size)("ant-pagination-rtl","rtl"===Ve.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[s.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(W,Ve){1&W&&(s.YNc(0,xe,2,2,"ng-container",0),s.TgZ(1,"nz-pagination-simple",1,2),s.NdJ("pageIndexChange",function(an){return Ve.onPageIndexChange(an)}),s.qZA(),s.TgZ(3,"nz-pagination-default",3,4),s.NdJ("pageIndexChange",function(an){return Ve.onPageIndexChange(an)})("pageSizeChange",function(an){return Ve.onPageSizeChange(an)}),s.qZA()),2&W&&(s.Q6J("ngIf",Ve.showPagination),s.xp6(1),s.Q6J("disabled",Ve.nzDisabled)("itemRender",Ve.nzItemRender)("locale",Ve.locale)("pageSize",Ve.nzPageSize)("total",Ve.nzTotal)("pageIndex",Ve.nzPageIndex),s.xp6(2),s.Q6J("nzSize",Ve.size)("itemRender",Ve.nzItemRender)("showTotal",Ve.nzShowTotal)("disabled",Ve.nzDisabled)("locale",Ve.locale)("showSizeChanger",Ve.nzShowSizeChanger)("showQuickJumper",Ve.nzShowQuickJumper)("total",Ve.nzTotal)("pageIndex",Ve.nzPageIndex)("pageSize",Ve.nzPageSize)("pageSizeOptions",Ve.nzPageSizeOptions))},dependencies:[d.O5,d.tP,ae,Ge],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,Z.oS)()],ke.prototype,"nzSize",void 0),(0,I.gn)([(0,Z.oS)()],ke.prototype,"nzPageSizeOptions",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzShowSizeChanger",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzShowQuickJumper",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzSimple",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzDisabled",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzResponsive",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzHideOnSinglePage",void 0),(0,I.gn)([(0,R.Rn)()],ke.prototype,"nzTotal",void 0),(0,I.gn)([(0,R.Rn)()],ke.prototype,"nzPageIndex",void 0),(0,I.gn)([(0,R.Rn)()],ke.prototype,"nzPageSize",void 0),ke})(),yn=(()=>{class ke{}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275mod=s.oAB({type:ke}),ke.\u0275inj=s.cJS({imports:[t.vT,d.ez,L.u5,O.LV,U.YI,M.PV]}),ke})();var st=a(7907),it=a(2669),lt=a(2438),Pt=a(5619),wt=a(2572),Vt=a(3019),jt=a(6232),Ke=a(2096),K=a(7398),w=a(3997),J=a(3620),Te=a(836),zt=a(2181),nt=a(4664),qe=a(7921),rt=a(5177),Rt=a(1631),St=a(855),gn=a(1958);const Ze=["*"];function ut(ke,Yt){}function ce(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"label",15),s.NdJ("ngModelChange",function(){s.CHM(W);const Gt=s.oxw().$implicit,an=s.oxw(2);return s.KtG(an.check(Gt))}),s.qZA()}if(2&ke){const W=s.oxw().$implicit;s.Q6J("ngModel",W.checked)}}function _e(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"label",16),s.NdJ("ngModelChange",function(){s.CHM(W);const Gt=s.oxw().$implicit,an=s.oxw(2);return s.KtG(an.check(Gt))}),s.qZA()}if(2&ke){const W=s.oxw().$implicit;s.Q6J("ngModel",W.checked)}}function mt(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"li",12),s.NdJ("click",function(){const an=s.CHM(W).$implicit,Rn=s.oxw(2);return s.KtG(Rn.check(an))}),s.YNc(1,ce,1,1,"label",13),s.YNc(2,_e,1,1,"label",14),s.TgZ(3,"span"),s._uU(4),s.qZA()()}if(2&ke){const W=Yt.$implicit,Ve=s.oxw(2);s.Q6J("nzSelected",W.checked),s.xp6(1),s.Q6J("ngIf",!Ve.filterMultiple),s.xp6(1),s.Q6J("ngIf",Ve.filterMultiple),s.xp6(2),s.Oqu(W.text)}}function Ae(ke,Yt){if(1&ke){const W=s.EpF();s.ynx(0),s.TgZ(1,"nz-filter-trigger",3),s.NdJ("nzVisibleChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onVisibleChange(Gt))}),s._UZ(2,"span",4),s.qZA(),s.TgZ(3,"nz-dropdown-menu",null,5)(5,"div",6)(6,"ul",7),s.YNc(7,mt,5,4,"li",8),s.qZA(),s.TgZ(8,"div",9)(9,"button",10),s.NdJ("click",function(){s.CHM(W);const Gt=s.oxw();return s.KtG(Gt.reset())}),s._uU(10),s.qZA(),s.TgZ(11,"button",11),s.NdJ("click",function(){s.CHM(W);const Gt=s.oxw();return s.KtG(Gt.confirm())}),s._uU(12),s.qZA()()()(),s.BQk()}if(2&ke){const W=s.MAs(4),Ve=s.oxw();s.xp6(1),s.Q6J("nzVisible",Ve.isVisible)("nzActive",Ve.isChecked)("nzDropdownMenu",W),s.xp6(6),s.Q6J("ngForOf",Ve.listOfParsedFilter)("ngForTrackBy",Ve.trackByValue),s.xp6(2),s.Q6J("disabled",!Ve.isChecked),s.xp6(1),s.hij(" ",Ve.locale.filterReset," "),s.xp6(2),s.Oqu(Ve.locale.filterConfirm)}}function at(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"label",2),s.NdJ("ngModelChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onCheckedChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw();s.ekj("ant-table-selection-select-all-custom",W.showRowSelection),s.Q6J("ngModel",W.checked)("nzDisabled",W.disabled)("nzIndeterminate",W.indeterminate)}}function Ht(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"li",9),s.NdJ("click",function(){const an=s.CHM(W).$implicit;return s.KtG(an.onSelect())}),s._uU(1),s.qZA()}if(2&ke){const W=Yt.$implicit;s.xp6(1),s.hij(" ",W.text," ")}}function un(ke,Yt){if(1&ke&&(s.TgZ(0,"div",3)(1,"span",4),s._UZ(2,"span",5),s.qZA(),s.TgZ(3,"nz-dropdown-menu",null,6)(5,"ul",7),s.YNc(6,Ht,2,1,"li",8),s.qZA()()()),2&ke){const W=s.MAs(4),Ve=s.oxw();s.xp6(1),s.Q6J("nzDropdownMenu",W),s.xp6(5),s.Q6J("ngForOf",Ve.listOfSelections)}}function Lt(ke,Yt){}function dt(ke,Yt){if(1&ke&&s._UZ(0,"span",6),2&ke){const W=s.oxw();s.ekj("active","ascend"===W.sortOrder)}}function ft(ke,Yt){if(1&ke&&s._UZ(0,"span",7),2&ke){const W=s.oxw();s.ekj("active","descend"===W.sortOrder)}}const ne=["nzChecked",""];function B(ke,Yt){if(1&ke){const W=s.EpF();s.ynx(0),s._UZ(1,"nz-row-indent",2),s.TgZ(2,"button",3),s.NdJ("expandChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onExpandChange(Gt))}),s.qZA(),s.BQk()}if(2&ke){const W=s.oxw();s.xp6(1),s.Q6J("indentSize",W.nzIndentSize),s.xp6(1),s.Q6J("expand",W.nzExpand)("spaceMode",!W.nzShowExpand)}}function ze(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"label",4),s.NdJ("ngModelChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onCheckedChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw();s.Q6J("nzDisabled",W.nzDisabled)("ngModel",W.nzChecked)("nzIndeterminate",W.nzIndeterminate)}}const $e=["nzColumnKey",""];function Mt(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"nz-table-filter",5),s.NdJ("filterChange",function(Gt){s.CHM(W);const an=s.oxw();return s.KtG(an.onFilterValueChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw(),Ve=s.MAs(2),Gt=s.MAs(4);s.Q6J("contentTemplate",Ve)("extraTemplate",Gt)("customFilter",W.nzCustomFilter)("filterMultiple",W.nzFilterMultiple)("listOfFilter",W.nzFilters)}}function on(ke,Yt){}function Zt(ke,Yt){if(1&ke&&s.YNc(0,on,0,0,"ng-template",6),2&ke){const W=s.oxw(),Ve=s.MAs(6),Gt=s.MAs(8);s.Q6J("ngTemplateOutlet",W.nzShowSort?Ve:Gt)}}function Wn(ke,Yt){1&ke&&(s.Hsn(0),s.Hsn(1,1))}function pn(ke,Yt){if(1&ke&&s._UZ(0,"nz-table-sorters",7),2&ke){const W=s.oxw(),Ve=s.MAs(8);s.Q6J("sortOrder",W.sortOrder)("sortDirections",W.sortDirections)("contentTemplate",Ve)}}function qn(ke,Yt){1&ke&&s.Hsn(0,2)}const co=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],_o=["[nz-th-extra]","nz-filter-trigger","*"],Yo=["nzSelections",""],Ko=["nz-table-content",""];function ui(ke,Yt){if(1&ke&&s._UZ(0,"col"),2&ke){const W=Yt.$implicit;s.Udp("width",W)("min-width",W)}}function mo(ke,Yt){}function Xn(ke,Yt){if(1&ke&&(s.TgZ(0,"thead",3),s.YNc(1,mo,0,0,"ng-template",2),s.qZA()),2&ke){const W=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",W.theadTemplate)}}function di(ke,Yt){}const pi=["tdElement"],wo=["nz-table-fixed-row",""];function So(ke,Yt){}function Eo(ke,Yt){if(1&ke&&(s.TgZ(0,"div",4),s.ALo(1,"async"),s.YNc(2,So,0,0,"ng-template",5),s.qZA()),2&ke){const W=s.oxw(),Ve=s.MAs(5);s.Udp("width",s.lcZ(1,3,W.hostWidth$),"px"),s.xp6(2),s.Q6J("ngTemplateOutlet",Ve)}}function Pi(ke,Yt){1&ke&&s.Hsn(0)}const Xo=["nz-table-measure-row",""];function zi(ke,Yt){1&ke&&s._UZ(0,"td",1,2)}function An(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"tr",3),s.NdJ("listOfAutoWidth",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.onListOfAutoWidthChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw().ngIf;s.Q6J("listOfMeasureColumn",W)}}function bi(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,An,1,1,"tr",2),s.BQk()),2&ke){const W=Yt.ngIf,Ve=s.oxw();s.xp6(1),s.Q6J("ngIf",Ve.isInsideTable&&W.length)}}function Si(ke,Yt){if(1&ke&&(s.TgZ(0,"tr",4),s._UZ(1,"nz-embed-empty",5),s.ALo(2,"async"),s.qZA()),2&ke){const W=s.oxw();s.xp6(1),s.Q6J("specificContent",s.lcZ(2,1,W.noResult$))}}const tr=["tableHeaderElement"],Gi=["tableBodyElement"];function Or(ke,Yt){if(1&ke&&(s.TgZ(0,"div",7,8),s._UZ(2,"table",9),s.qZA()),2&ke){const W=s.oxw(2);s.Q6J("ngStyle",W.bodyStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("contentTemplate",W.contentTemplate)}}function Ei(ke,Yt){}const vr=function(ke,Yt){return{$implicit:ke,index:Yt}};function Qi(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,Ei,0,0,"ng-template",13),s.BQk()),2&ke){const W=Yt.$implicit,Ve=Yt.index,Gt=s.oxw(3);s.xp6(1),s.Q6J("ngTemplateOutlet",Gt.virtualTemplate)("ngTemplateOutletContext",s.WLB(2,vr,W,Ve))}}function ur(ke,Yt){if(1&ke&&(s.TgZ(0,"cdk-virtual-scroll-viewport",10,8)(2,"table",11)(3,"tbody"),s.YNc(4,Qi,2,5,"ng-container",12),s.qZA()()()),2&ke){const W=s.oxw(2);s.Udp("height",W.data.length?W.scrollY:W.noDateVirtualHeight),s.Q6J("itemSize",W.virtualItemSize)("maxBufferPx",W.virtualMaxBufferPx)("minBufferPx",W.virtualMinBufferPx),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth),s.xp6(2),s.Q6J("cdkVirtualForOf",W.data)("cdkVirtualForTrackBy",W.virtualForTrackBy)}}function dr(ke,Yt){if(1&ke&&(s.ynx(0),s.TgZ(1,"div",2,3),s._UZ(3,"table",4),s.qZA(),s.YNc(4,Or,3,4,"div",5),s.YNc(5,ur,5,9,"cdk-virtual-scroll-viewport",6),s.BQk()),2&ke){const W=s.oxw();s.xp6(1),s.Q6J("ngStyle",W.headerStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("theadTemplate",W.theadTemplate),s.xp6(1),s.Q6J("ngIf",!W.virtualTemplate),s.xp6(1),s.Q6J("ngIf",W.virtualTemplate)}}function lo(ke,Yt){if(1&ke&&(s.TgZ(0,"div",14,8),s._UZ(2,"table",15),s.qZA()),2&ke){const W=s.oxw();s.Q6J("ngStyle",W.bodyStyleMap),s.xp6(2),s.Q6J("scrollX",W.scrollX)("listOfColWidth",W.listOfColWidth)("theadTemplate",W.theadTemplate)("contentTemplate",W.contentTemplate)}}function Oo(ke,Yt){if(1&ke&&(s.ynx(0),s._uU(1),s.BQk()),2&ke){const W=s.oxw();s.xp6(1),s.Oqu(W.title)}}function Po(ke,Yt){if(1&ke&&(s.ynx(0),s._uU(1),s.BQk()),2&ke){const W=s.oxw();s.xp6(1),s.Oqu(W.footer)}}function Jo(ke,Yt){}function Ro(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,Jo,0,0,"ng-template",10),s.BQk()),2&ke){s.oxw();const W=s.MAs(11);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}function Wo(ke,Yt){if(1&ke&&s._UZ(0,"nz-table-title-footer",11),2&ke){const W=s.oxw();s.Q6J("title",W.nzTitle)}}function qo(ke,Yt){if(1&ke&&s._UZ(0,"nz-table-inner-scroll",12),2&ke){const W=s.oxw(),Ve=s.MAs(13),Gt=s.MAs(3);s.Q6J("data",W.data)("scrollX",W.scrollX)("scrollY",W.scrollY)("contentTemplate",Ve)("listOfColWidth",W.listOfAutoColWidth)("theadTemplate",W.theadTemplate)("verticalScrollBarWidth",W.verticalScrollBarWidth)("virtualTemplate",W.nzVirtualScrollDirective?W.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",W.nzVirtualItemSize)("virtualMaxBufferPx",W.nzVirtualMaxBufferPx)("virtualMinBufferPx",W.nzVirtualMinBufferPx)("tableMainElement",Gt)("virtualForTrackBy",W.nzVirtualForTrackBy)}}function Ti(ke,Yt){if(1&ke&&s._UZ(0,"nz-table-inner-default",13),2&ke){const W=s.oxw(),Ve=s.MAs(13);s.Q6J("tableLayout",W.nzTableLayout)("listOfColWidth",W.listOfManualColWidth)("theadTemplate",W.theadTemplate)("contentTemplate",Ve)}}function ji(ke,Yt){if(1&ke&&s._UZ(0,"nz-table-title-footer",14),2&ke){const W=s.oxw();s.Q6J("footer",W.nzFooter)}}function Hi(ke,Yt){}function ei(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,Hi,0,0,"ng-template",10),s.BQk()),2&ke){s.oxw();const W=s.MAs(11);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}function Yn(ke,Yt){if(1&ke){const W=s.EpF();s.TgZ(0,"nz-pagination",16),s.NdJ("nzPageSizeChange",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.onPageSizeChange(Gt))})("nzPageIndexChange",function(Gt){s.CHM(W);const an=s.oxw(2);return s.KtG(an.onPageIndexChange(Gt))}),s.qZA()}if(2&ke){const W=s.oxw(2);s.Q6J("hidden",!W.showPagination)("nzShowSizeChanger",W.nzShowSizeChanger)("nzPageSizeOptions",W.nzPageSizeOptions)("nzItemRender",W.nzItemRender)("nzShowQuickJumper",W.nzShowQuickJumper)("nzHideOnSinglePage",W.nzHideOnSinglePage)("nzShowTotal",W.nzShowTotal)("nzSize","small"===W.nzPaginationType?"small":"default"===W.nzSize?"default":"small")("nzPageSize",W.nzPageSize)("nzTotal",W.nzTotal)("nzSimple",W.nzSimple)("nzPageIndex",W.nzPageIndex)}}function so(ke,Yt){if(1&ke&&s.YNc(0,Yn,1,12,"nz-pagination",15),2&ke){const W=s.oxw();s.Q6J("ngIf",W.nzShowPagination&&W.data.length)}}function Ue(ke,Yt){1&ke&&s.Hsn(0)}const se=["contentTemplate"];function we(ke,Yt){1&ke&&s.Hsn(0)}function Qe(ke,Yt){}function bt(ke,Yt){if(1&ke&&(s.ynx(0),s.YNc(1,Qe,0,0,"ng-template",2),s.BQk()),2&ke){s.oxw();const W=s.MAs(1);s.xp6(1),s.Q6J("ngTemplateOutlet",W)}}let tn=(()=>{class ke{onVisibleChange(W){this.nzVisible=W,this.nzVisibleChange.next(W)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(W,Ve,Gt,an){this.nzConfigService=W,this.ngZone=Ve,this.cdr=Gt,this.destroy$=an,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new s.vpe}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,lt.R)(this.nzDropdown.nativeElement,"click").pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{W.stopPropagation()})})}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(Z.jY),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(F.kn))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-filter-trigger"]],viewQuery:function(W,Ve){if(1&W&&s.Gf(N.cm,7,s.SBq),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.nzDropdown=Gt.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[s._Bn([F.kn])],ngContentSelectors:Ze,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(W,Ve){1&W&&(s.F$t(),s.TgZ(0,"span",0),s.NdJ("nzVisibleChange",function(an){return Ve.onVisibleChange(an)}),s.Hsn(1),s.qZA()),2&W&&(s.ekj("active",Ve.nzActive)("ant-table-filter-open",Ve.nzVisible),s.Q6J("nzBackdrop",Ve.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",Ve.nzDropdownMenu)("nzVisible",Ve.nzVisible))},dependencies:[N.cm],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzBackdrop",void 0),ke})(),fn=(()=>{class ke{trackByValue(W,Ve){return Ve.value}check(W){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(Ve=>Ve===W?{...Ve,checked:!W.checked}:Ve),W.checked=!W.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(Ve=>({...Ve,checked:Ve===W})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(W){this.isVisible=W,W?this.listOfChecked=this.listOfParsedFilter.filter(Ve=>Ve.checked).map(Ve=>Ve.value):this.emitFilterData()}emitFilterData(){const W=this.listOfParsedFilter.filter(Ve=>Ve.checked).map(Ve=>Ve.value);(0,R.cO)(this.listOfChecked,W)||this.filterChange.emit(this.filterMultiple?W:W.length>0?W[0]:null)}parseListOfFilter(W,Ve){return W.map(Gt=>({text:Gt.text,value:Gt.value,checked:!Ve&&!!Gt.byDefault}))}getCheckedStatus(W){return W.some(Ve=>Ve.checked)}constructor(W,Ve){this.cdr=W,this.i18n=Ve,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new s.vpe,this.destroy$=new k.x,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,Ce.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(W){const{listOfFilter:Ve}=W;Ve&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.sBO),s.Y36(U.wi))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[s.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(W,Ve){1&W&&(s.TgZ(0,"span",0),s.YNc(1,ut,0,0,"ng-template",1),s.qZA(),s.YNc(2,Ae,13,8,"ng-container",2)),2&W&&(s.xp6(1),s.Q6J("ngTemplateOutlet",Ve.contentTemplate),s.xp6(1),s.Q6J("ngIf",!Ve.customFilter)("ngIfElse",Ve.extraTemplate))},dependencies:[e.wO,e.r9,L.JJ,L.On,st.Of,A.Ie,N.RR,Q.ix,St.w,gn.dQ,d.sg,d.O5,d.tP,M.Ls,tn],encapsulation:2,changeDetection:0}),ke})(),qt=(()=>{class ke{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new s.vpe}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275dir=s.lG2({type:ke,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(W,Ve){1&W&&s.NdJ("click",function(){return Ve.onHostClick()}),2&W&&(s.Ikx("type","button"),s.ekj("ant-table-row-expand-icon-expanded",!Ve.spaceMode&&!0===Ve.expand)("ant-table-row-expand-icon-collapsed",!Ve.spaceMode&&!1===Ve.expand)("ant-table-row-expand-icon-spaced",Ve.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}}),ke})(),Cn=(()=>{class ke{constructor(){this.indentSize=0}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275dir=s.lG2({type:ke,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(W,Ve){2&W&&s.Udp("padding-left",Ve.indentSize,"px")},inputs:{indentSize:"indentSize"}}),ke})(),Nn=(()=>{class ke{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new s.vpe}onCheckedChange(W){this.checked=W,this.checkedChange.emit(W)}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate","ngModelChange",4,"ngIf"],["class","ant-table-selection-extra",4,"ngIf"],["nz-checkbox","",3,"ngModel","nzDisabled","nzIndeterminate","ngModelChange"],[1,"ant-table-selection-extra"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["selectionMenu","nzDropdownMenu"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click"]],template:function(W,Ve){1&W&&(s.YNc(0,at,1,5,"label",0),s.YNc(1,un,7,2,"div",1)),2&W&&(s.Q6J("ngIf",Ve.showCheckbox),s.xp6(1),s.Q6J("ngIf",Ve.showRowSelection))},dependencies:[e.wO,e.r9,L.JJ,L.On,A.Ie,N.cm,N.RR,St.w,d.sg,d.O5,M.Ls],encapsulation:2,changeDetection:0}),ke})(),Sn=(()=>{class ke{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(W){const{sortDirections:Ve}=W;Ve&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[s.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(W,Ve){1&W&&(s.TgZ(0,"span",0),s.YNc(1,Lt,0,0,"ng-template",1),s.qZA(),s.TgZ(2,"span",2)(3,"span",3),s.YNc(4,dt,1,2,"span",4),s.YNc(5,ft,1,2,"span",5),s.qZA()()),2&W&&(s.xp6(1),s.Q6J("ngTemplateOutlet",Ve.contentTemplate),s.xp6(1),s.ekj("ant-table-column-sorter-full",Ve.isDown&&Ve.isUp),s.xp6(2),s.Q6J("ngIf",Ve.isUp),s.xp6(1),s.Q6J("ngIf",Ve.isDown))},dependencies:[St.w,d.O5,d.tP,M.Ls],encapsulation:2,changeDetection:0}),ke})(),dn=(()=>{class ke{setAutoLeftWidth(W){this.renderer.setStyle(this.elementRef.nativeElement,"left",W)}setAutoRightWidth(W){this.renderer.setStyle(this.elementRef.nativeElement,"right",W)}setIsFirstRight(W){this.setFixClass(W,"ant-table-cell-fix-right-first")}setIsLastLeft(W){this.setFixClass(W,"ant-table-cell-fix-left-last")}setFixClass(W,Ve){this.renderer.removeClass(this.elementRef.nativeElement,Ve),W&&this.renderer.addClass(this.elementRef.nativeElement,Ve)}constructor(W,Ve){this.renderer=W,this.elementRef=Ve,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new k.x,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const W=Ve=>"string"==typeof Ve&&""!==Ve?Ve:null;this.setAutoLeftWidth(W(this.nzLeft)),this.setAutoRightWidth(W(this.nzRight)),this.changes$.next()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.Qsj),s.Y36(s.SBq))},ke.\u0275dir=s.lG2({type:ke,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(W,Ve){2&W&&(s.Udp("position",Ve.isFixed?"sticky":null),s.ekj("ant-table-cell-fix-right",Ve.isFixedRight)("ant-table-cell-fix-left",Ve.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[s.TTD]}),ke})(),xn=(()=>{class ke{setTheadTemplate(W){this.theadTemplate$.next(W)}setHasFixLeft(W){this.hasFixLeft$.next(W)}setHasFixRight(W){this.hasFixRight$.next(W)}setTableWidthConfig(W){this.tableWidthConfigPx$.next(W)}setListOfTh(W){let Ve=0;W.forEach(an=>{Ve+=an.colspan&&+an.colspan||an.colSpan&&+an.colSpan||1});const Gt=W.map(an=>an.nzWidth);this.columnCount$.next(Ve),this.listOfThWidthConfigPx$.next(Gt)}setListOfMeasureColumn(W){const Ve=[];W.forEach(Gt=>{const an=Gt.colspan&&+Gt.colspan||Gt.colSpan&&+Gt.colSpan||1;for(let Rn=0;Rn`${Ve}px`))}setShowEmpty(W){this.showEmpty$.next(W)}setNoResult(W){this.noResult$.next(W)}setScroll(W,Ve){const Gt=!(!W&&!Ve);Gt||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(Gt)}constructor(){this.theadTemplate$=new ge.t(1),this.hasFixLeft$=new ge.t(1),this.hasFixRight$=new ge.t(1),this.hostWidth$=new ge.t(1),this.columnCount$=new ge.t(1),this.showEmpty$=new ge.t(1),this.noResult$=new ge.t(1),this.listOfThWidthConfigPx$=new Pt.X([]),this.tableWidthConfigPx$=new Pt.X([]),this.manualWidthConfigPx$=(0,wt.a)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,K.U)(([W,Ve])=>W.length?W:Ve)),this.listOfAutoWidthPx$=new ge.t(1),this.listOfListOfThWidthPx$=(0,Vt.T)(this.manualWidthConfigPx$,(0,wt.a)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,K.U)(([W,Ve])=>W.length===Ve.length?W.map((Gt,an)=>"0px"===Gt?Ve[an]||null:Ve[an]||Gt):Ve))),this.listOfMeasureColumn$=new ge.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,K.U)(W=>W.map(Ve=>parseInt(Ve,10)))),this.enableAutoMeasure$=new ge.t(1)}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Qn=(()=>{class ke{constructor(W){this.isInsideTable=!1,this.isInsideTable=!!W}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(xn,8))},ke.\u0275dir=s.lG2({type:ke,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-cell",Ve.isInsideTable)}}),ke})(),In=(()=>{class ke{updatePageSize(W){this.pageSize$.next(W)}updateFrontPagination(W){this.frontPagination$.next(W)}updatePageIndex(W){this.pageIndex$.next(W)}updateListOfData(W){this.listOfData$.next(W)}updateListOfCustomColumn(W){this.listOfCustomColumn$.next(W)}constructor(){this.destroy$=new k.x,this.pageIndex$=new Pt.X(1),this.frontPagination$=new Pt.X(!0),this.pageSize$=new Pt.X(10),this.listOfData$=new Pt.X([]),this.listOfCustomColumn$=new Pt.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,w.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,w.x)()),this.listOfCalcOperator$=new Pt.X([]),this.queryParams$=(0,wt.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,J.b)(0),(0,Te.T)(1),(0,K.U)(([W,Ve,Gt])=>({pageIndex:W,pageSize:Ve,sort:Gt.filter(an=>an.sortFn).map(an=>({key:an.key,value:an.sortOrder})),filter:Gt.filter(an=>an.filterFn).map(an=>({key:an.key,value:an.filterValue}))}))),this.listOfDataAfterCalc$=(0,wt.a)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,K.U)(([W,Ve])=>{let Gt=[...W];const an=Ve.filter(ho=>{const{filterValue:fo,filterFn:Uo}=ho;return!(null==fo||Array.isArray(fo)&&0===fo.length)&&"function"==typeof Uo});for(const ho of an){const{filterFn:fo,filterValue:Uo}=ho;Gt=Gt.filter(ni=>fo(Uo,ni))}const Rn=Ve.filter(ho=>null!==ho.sortOrder&&"function"==typeof ho.sortFn).sort((ho,fo)=>+fo.sortPriority-+ho.sortPriority);return Ve.length&&Gt.sort((ho,fo)=>{for(const Uo of Rn){const{sortFn:ni,sortOrder:uo}=Uo;if(ni&&uo){const Li=ni(ho,fo,uo);if(0!==Li)return"ascend"===uo?Li:-Li}}return 0}),Gt})),this.listOfFrontEndCurrentPageData$=(0,wt.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,Ce.R)(this.destroy$),(0,zt.h)(W=>{const[Ve,Gt,an]=W;return Ve<=(Math.ceil(an.length/Gt)||1)}),(0,K.U)(([W,Ve,Gt])=>Gt.slice((W-1)*Ve,W*Ve))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,nt.w)(W=>W?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,nt.w)(W=>W?this.listOfDataAfterCalc$:this.listOfData$),(0,K.U)(W=>W.length),(0,w.x)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275prov=s.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Un=(()=>{class ke{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzCheckedChange=new s.vpe,this.nzExpandChange=new s.vpe,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(W){this.nzChecked=W,this.nzCheckedChange.emit(W)}onExpandChange(W){this.nzExpand=W,this.nzExpandChange.emit(W)}ngOnChanges(W){const Ve=fo=>fo&&fo.firstChange&&void 0!==fo.currentValue,{nzExpand:Gt,nzChecked:an,nzShowExpand:Rn,nzShowCheckbox:ho}=W;Rn&&(this.isNzShowExpandChanged=!0),ho&&(this.isNzShowCheckboxChanged=!0),Ve(Gt)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),Ve(an)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-cell-with-append",Ve.nzShowExpand||Ve.nzIndentSize>0)("ant-table-selection-column",Ve.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzIndentSize:"nzIndentSize",nzShowExpand:"nzShowExpand",nzShowCheckbox:"nzShowCheckbox",nzExpand:"nzExpand"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[s.TTD],attrs:ne,ngContentSelectors:Ze,decls:3,vars:2,consts:[[4,"ngIf"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange",4,"ngIf"],[3,"indentSize"],["nz-row-expand-button","",3,"expand","spaceMode","expandChange"],["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate","ngModelChange"]],template:function(W,Ve){1&W&&(s.F$t(),s.YNc(0,B,3,3,"ng-container",0),s.YNc(1,ze,1,3,"label",1),s.Hsn(2)),2&W&&(s.Q6J("ngIf",Ve.nzShowExpand||Ve.nzIndentSize>0),s.xp6(1),s.Q6J("ngIf",Ve.nzShowCheckbox))},dependencies:[L.JJ,L.On,A.Ie,d.O5,Cn,qt],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowExpand",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowCheckbox",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzExpand",void 0),ke})(),jn=(()=>{class ke{getNextSortDirection(W,Ve){const Gt=W.indexOf(Ve);return Gt===W.length-1?W[0]:W[Gt+1]}setSortOrder(W){this.sortOrderChange$.next(W)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(W){this.nzFilterChange.emit(W),this.nzFilterValue=W,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(W,Ve,Gt,an){this.host=W,this.cdr=Ve,this.ngZone=Gt,this.destroy$=an,this.manualClickOrder$=new k.x,this.calcOperatorChange$=new k.x,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new k.x,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new s.vpe,this.nzSortOrderChange=new s.vpe,this.nzFilterChange=new s.vpe}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,lt.R)(this.host.nativeElement,"click").pipe((0,zt.h)(()=>this.nzShowSort),(0,Ce.R)(this.destroy$)).subscribe(()=>{const W=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(W),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.sortOrder!==W&&(this.sortOrder=W,this.nzSortOrderChange.emit(W)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(W){const{nzSortDirections:Ve,nzFilters:Gt,nzSortOrder:an,nzSortFn:Rn,nzFilterFn:ho,nzSortPriority:fo,nzFilterMultiple:Uo,nzShowSort:ni,nzShowFilter:uo}=W;Ve&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),an&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),ni&&(this.isNzShowSortChanged=!0),uo&&(this.isNzShowFilterChanged=!0);const Li=Fi=>Fi&&Fi.firstChange&&void 0!==Fi.currentValue;if((Li(an)||Li(Rn))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),Li(Gt)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(Gt||Uo)&&this.nzShowFilter){const Fi=this.nzFilters.filter(_r=>_r.byDefault).map(_r=>_r.value);this.nzFilterValue=this.nzFilterMultiple?Fi:Fi[0]||null}(Rn||ho||fo||Gt)&&this.updateCalcOperator()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(F.kn))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-column-has-sorters",Ve.nzShowSort)("ant-table-column-sort","descend"===Ve.sortOrder||"ascend"===Ve.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[s._Bn([F.kn]),s.TTD],attrs:$e,ngContentSelectors:_o,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(W,Ve){if(1&W&&(s.F$t(co),s.YNc(0,Mt,1,5,"nz-table-filter",0),s.YNc(1,Zt,1,1,"ng-template",null,1,s.W1O),s.YNc(3,Wn,2,0,"ng-template",null,2,s.W1O),s.YNc(5,pn,1,3,"ng-template",null,3,s.W1O),s.YNc(7,qn,1,0,"ng-template",null,4,s.W1O)),2&W){const Gt=s.MAs(2);s.Q6J("ngIf",Ve.nzShowFilter||Ve.nzCustomFilter)("ngIfElse",Gt)}},dependencies:[d.O5,d.tP,Sn,fn],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowSort",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowFilter",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzCustomFilter",void 0),ke})(),eo=(()=>{class ke{constructor(W,Ve){this.renderer=W,this.elementRef=Ve,this.changes$=new k.x,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(W){const{nzWidth:Ve,colspan:Gt,rowspan:an,colSpan:Rn,rowSpan:ho}=W;if(Gt||Rn){const fo=this.colspan||this.colSpan;(0,R.kK)(fo)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${fo}`)}if(an||ho){const fo=this.rowspan||this.rowSpan;(0,R.kK)(fo)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${fo}`)}(Ve||Gt)&&this.changes$.next()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.Qsj),s.Y36(s.SBq))},ke.\u0275dir=s.lG2({type:ke,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[s.TTD]}),ke})(),Co=(()=>{class ke{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new s.vpe,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(W){this.nzChecked=W,this.nzCheckedChange.emit(W)}ngOnChanges(W){const Ve=fo=>fo&&fo.firstChange&&void 0!==fo.currentValue,{nzChecked:Gt,nzSelections:an,nzShowExpand:Rn,nzShowCheckbox:ho}=W;Rn&&(this.isNzShowExpandChanged=!0),ho&&(this.isNzShowCheckboxChanged=!0),Ve(an)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),Ve(Gt)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzShowCheckbox:"nzShowCheckbox",nzShowRowSelection:"nzShowRowSelection"},outputs:{nzCheckedChange:"nzCheckedChange"},features:[s.TTD],attrs:Yo,ngContentSelectors:Ze,decls:2,vars:6,consts:[[3,"checked","disabled","indeterminate","listOfSelections","showCheckbox","showRowSelection","checkedChange"]],template:function(W,Ve){1&W&&(s.F$t(),s.TgZ(0,"nz-table-selection",0),s.NdJ("checkedChange",function(an){return Ve.onCheckedChange(an)}),s.qZA(),s.Hsn(1)),2&W&&s.Q6J("checked",Ve.nzChecked)("disabled",Ve.nzDisabled)("indeterminate",Ve.nzIndeterminate)("listOfSelections",Ve.nzSelections)("showCheckbox",Ve.nzShowCheckbox)("showRowSelection",Ve.nzShowRowSelection)},dependencies:[Nn],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowCheckbox",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowRowSelection",void 0),ke})(),yo=(()=>{class ke{constructor(){this.nzAlign=null}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275dir=s.lG2({type:ke,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(W,Ve){2&W&&s.Udp("text-align",Ve.nzAlign)},inputs:{nzAlign:"nzAlign"}}),ke})(),Mo=(()=>{class ke{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(W,Ve){2&W&&(s.Udp("table-layout",Ve.tableLayout)("width",Ve.scrollX)("min-width",Ve.scrollX?"100%":null),s.ekj("ant-table-fixed",Ve.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Ko,ngContentSelectors:Ze,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(W,Ve){1&W&&(s.F$t(),s.YNc(0,ui,1,4,"col",0),s.YNc(1,Xn,2,1,"thead",1),s.YNc(2,di,0,0,"ng-template",2),s.Hsn(3)),2&W&&(s.Q6J("ngForOf",Ve.listOfColWidth),s.xp6(1),s.Q6J("ngIf",Ve.theadTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",Ve.contentTemplate))},dependencies:[d.sg,d.O5,d.tP],encapsulation:2,changeDetection:0}),ke})(),Go=(()=>{class ke{constructor(W,Ve){this.nzTableStyleService=W,this.renderer=Ve,this.hostWidth$=new Pt.X(null),this.enableAutoMeasure$=new Pt.X(!1),this.destroy$=new k.x}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:W,hostWidth$:Ve}=this.nzTableStyleService;W.pipe((0,Ce.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),Ve.pipe((0,Ce.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,Ce.R)(this.destroy$)).subscribe(W=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${W}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(xn),s.Y36(s.Qsj))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(W,Ve){if(1&W&&s.Gf(pi,7),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.tdElement=Gt.first)}},attrs:wo,ngContentSelectors:Ze,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(W,Ve){if(1&W&&(s.F$t(),s.TgZ(0,"td",0,1),s.YNc(2,Eo,3,5,"div",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,Pi,1,0,"ng-template",null,3,s.W1O)),2&W){const Gt=s.MAs(5);s.xp6(2),s.Q6J("ngIf",s.lcZ(3,2,Ve.enableAutoMeasure$))("ngIfElse",Gt)}},dependencies:[d.O5,d.tP,d.Ov],encapsulation:2,changeDetection:0}),ke})(),To=(()=>{class ke{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(W,Ve){1&W&&(s.TgZ(0,"div",0),s._UZ(1,"table",1),s.qZA()),2&W&&(s.xp6(1),s.Q6J("contentTemplate",Ve.contentTemplate)("tableLayout",Ve.tableLayout)("listOfColWidth",Ve.listOfColWidth)("theadTemplate",Ve.theadTemplate))},dependencies:[Mo],encapsulation:2,changeDetection:0}),ke})(),mi=(()=>{class ke{constructor(W,Ve){this.nzResizeObserver=W,this.ngZone=Ve,this.listOfMeasureColumn=[],this.listOfAutoWidth=new s.vpe,this.destroy$=new k.x}trackByFunc(W,Ve){return Ve}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,qe.O)(this.listOfTdElement)).pipe((0,nt.w)(W=>(0,wt.a)(W.toArray().map(Ve=>this.nzResizeObserver.observe(Ve).pipe((0,K.U)(([Gt])=>{const{width:an}=Gt.target.getBoundingClientRect();return Math.floor(an)}))))),(0,J.b)(16),(0,Ce.R)(this.destroy$)).subscribe(W=>{this.ngZone instanceof s.R0b&&s.R0b.isInAngularZone()?this.listOfAutoWidth.next(W):this.ngZone.run(()=>this.listOfAutoWidth.next(W))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(Y.D3),s.Y36(s.R0b))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(W,Ve){if(1&W&&s.Gf(pi,5),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.listOfTdElement=Gt)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Xo,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(W,Ve){1&W&&s.YNc(0,zi,2,0,"td",0),2&W&&s.Q6J("ngForOf",Ve.listOfMeasureColumn)("ngForTrackBy",Ve.trackByFunc)},dependencies:[d.sg],encapsulation:2,changeDetection:0}),ke})(),_i=(()=>{class ke{constructor(W){if(this.nzTableStyleService=W,this.isInsideTable=!1,this.showEmpty$=new Pt.X(!1),this.noResult$=new Pt.X(void 0),this.listOfMeasureColumn$=new Pt.X([]),this.destroy$=new k.x,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:Ve,noResult$:Gt,listOfMeasureColumn$:an}=this.nzTableStyleService;Gt.pipe((0,Ce.R)(this.destroy$)).subscribe(this.noResult$),an.pipe((0,Ce.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),Ve.pipe((0,Ce.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(W){this.nzTableStyleService.setListOfAutoWidth(W)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(xn,8))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["tbody"]],hostVars:2,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-tbody",Ve.isInsideTable)},ngContentSelectors:Ze,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(W,Ve){1&W&&(s.F$t(),s.YNc(0,bi,2,1,"ng-container",0),s.ALo(1,"async"),s.Hsn(2),s.YNc(3,Si,3,3,"tr",1),s.ALo(4,"async")),2&W&&(s.Q6J("ngIf",s.lcZ(1,2,Ve.listOfMeasureColumn$)),s.xp6(3),s.Q6J("ngIf",s.lcZ(4,4,Ve.showEmpty$)))},dependencies:[d.O5,V.gB,mi,Go,d.Ov],encapsulation:2,changeDetection:0}),ke})(),Ao=(()=>{class ke{setScrollPositionClassName(W=!1){const{scrollWidth:Ve,scrollLeft:Gt,clientWidth:an}=this.tableBodyElement.nativeElement,Rn="ant-table-ping-left",ho="ant-table-ping-right";Ve===an&&0!==Ve||W?(this.renderer.removeClass(this.tableMainElement,Rn),this.renderer.removeClass(this.tableMainElement,ho)):0===Gt?(this.renderer.removeClass(this.tableMainElement,Rn),this.renderer.addClass(this.tableMainElement,ho)):Ve===Gt+an?(this.renderer.removeClass(this.tableMainElement,ho),this.renderer.addClass(this.tableMainElement,Rn)):(this.renderer.addClass(this.tableMainElement,Rn),this.renderer.addClass(this.tableMainElement,ho))}constructor(W,Ve,Gt,an){this.renderer=W,this.ngZone=Ve,this.platform=Gt,this.resizeService=an,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=Rn=>Rn,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new k.x,this.scroll$=new k.x,this.destroy$=new k.x}ngOnChanges(W){const{scrollX:Ve,scrollY:Gt,data:an}=W;(Ve||Gt)&&(this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&0!==this.verticalScrollBarWidth?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())),an&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const W=this.scroll$.pipe((0,qe.O)(null),(0,rt.g)(0),(0,nt.w)(()=>(0,lt.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,qe.O)(!0))),(0,Ce.R)(this.destroy$)),Ve=this.resizeService.subscribe().pipe((0,Ce.R)(this.destroy$)),Gt=this.data$.pipe((0,Ce.R)(this.destroy$));(0,Vt.T)(W,Ve,Gt,this.scroll$).pipe((0,qe.O)(!0),(0,rt.g)(0),(0,Ce.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),W.pipe((0,zt.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.Qsj),s.Y36(s.R0b),s.Y36(i.t4),s.Y36(F.rI))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-inner-scroll"]],viewQuery:function(W,Ve){if(1&W&&(s.Gf(tr,5,s.SBq),s.Gf(Gi,5,s.SBq),s.Gf(v.N7,5,v.N7)),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.tableHeaderElement=Gt.first),s.iGM(Gt=s.CRH())&&(Ve.tableBodyElement=Gt.first),s.iGM(Gt=s.CRH())&&(Ve.cdkVirtualScrollViewport=Gt.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[s.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(W,Ve){1&W&&(s.YNc(0,dr,6,6,"ng-container",0),s.YNc(1,lo,3,5,"div",1)),2&W&&(s.Q6J("ngIf",Ve.scrollY),s.xp6(1),s.Q6J("ngIf",!Ve.scrollY))},dependencies:[d.O5,d.tP,d.PC,v.xd,v.x0,v.N7,_i,Mo],encapsulation:2,changeDetection:0}),ke})(),Lo=(()=>{class ke{constructor(W){this.templateRef=W}static ngTemplateContextGuard(W,Ve){return!0}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.Rgc))},ke.\u0275dir=s.lG2({type:ke,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),ke})(),Wi=(()=>{class ke{constructor(){this.title=null,this.footer=null}}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-title",null!==Ve.title)("ant-table-footer",null!==Ve.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(W,Ve){1&W&&(s.YNc(0,Oo,2,1,"ng-container",0),s.YNc(1,Po,2,1,"ng-container",0)),2&W&&(s.Q6J("nzStringTemplateOutlet",Ve.title),s.xp6(1),s.Q6J("nzStringTemplateOutlet",Ve.footer))},dependencies:[S.f],encapsulation:2,changeDetection:0}),ke})(),gi=(()=>{class ke{onPageSizeChange(W){this.nzTableDataService.updatePageSize(W)}onPageIndexChange(W){this.nzTableDataService.updatePageIndex(W)}constructor(W,Ve,Gt,an,Rn,ho,fo){this.elementRef=W,this.nzResizeObserver=Ve,this.nzConfigService=Gt,this.cdr=an,this.nzTableStyleService=Rn,this.nzTableDataService=ho,this.directionality=fo,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Uo=>Uo,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzCustomColumn=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new s.vpe,this.nzPageIndexChange=new s.vpe,this.nzQueryParams=new s.vpe,this.nzCurrentPageDataChange=new s.vpe,this.nzCustomColumnChange=new s.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new k.x,this.templateMode$=new Pt.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,Ce.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:W,pageSizeDistinct$:Ve,listOfCurrentPageData$:Gt,total$:an,queryParams$:Rn,listOfCustomColumn$:ho}=this.nzTableDataService,{theadTemplate$:fo,hasFixLeft$:Uo,hasFixRight$:ni}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.dir=uo,this.cdr.detectChanges()}),Rn.pipe((0,Ce.R)(this.destroy$)).subscribe(this.nzQueryParams),W.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{uo!==this.nzPageIndex&&(this.nzPageIndex=uo,this.nzPageIndexChange.next(uo))}),Ve.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{uo!==this.nzPageSize&&(this.nzPageSize=uo,this.nzPageSizeChange.next(uo))}),an.pipe((0,Ce.R)(this.destroy$),(0,zt.h)(()=>this.nzFrontPagination)).subscribe(uo=>{uo!==this.nzTotal&&(this.nzTotal=uo,this.cdr.markForCheck())}),Gt.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.data=uo,this.nzCurrentPageDataChange.next(uo),this.cdr.markForCheck()}),ho.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.nzCustomColumn=uo,this.nzCustomColumnChange.next(uo),this.cdr.markForCheck()}),fo.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.theadTemplate=uo,this.cdr.markForCheck()}),Uo.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.hasFixLeft=uo,this.cdr.markForCheck()}),ni.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.hasFixRight=uo,this.cdr.markForCheck()}),(0,wt.a)([an,this.templateMode$]).pipe((0,K.U)(([uo,Li])=>0===uo&&!Li),(0,Ce.R)(this.destroy$)).subscribe(uo=>{this.nzTableStyleService.setShowEmpty(uo)}),this.verticalScrollBarWidth=(0,R.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.listOfAutoColWidth=uo,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,Ce.R)(this.destroy$)).subscribe(uo=>{this.listOfManualColWidth=uo,this.cdr.markForCheck()})}ngOnChanges(W){const{nzScroll:Ve,nzPageIndex:Gt,nzPageSize:an,nzFrontPagination:Rn,nzData:ho,nzCustomColumn:fo,nzWidthConfig:Uo,nzNoResult:ni,nzTemplateMode:uo}=W;Gt&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),an&&this.nzTableDataService.updatePageSize(this.nzPageSize),ho&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),fo&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Rn&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),Ve&&this.setScrollOnChanges(),Uo&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),uo&&this.templateMode$.next(this.nzTemplateMode),ni&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,K.U)(([W])=>{const{width:Ve}=W.target.getBoundingClientRect();return Math.floor(Ve-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,Ce.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.SBq),s.Y36(Y.D3),s.Y36(Z.jY),s.Y36(s.sBO),s.Y36(xn),s.Y36(In),s.Y36(t.Is,8))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["nz-table"]],contentQueries:function(W,Ve,Gt){if(1&W&&s.Suo(Gt,Lo,5),2&W){let an;s.iGM(an=s.CRH())&&(Ve.nzVirtualScrollDirective=an.first)}},viewQuery:function(W,Ve){if(1&W&&s.Gf(Ao,5),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.nzTableInnerScrollComponent=Gt.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-wrapper-rtl","rtl"===Ve.dir)("ant-table-custom-column",Ve.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[s._Bn([xn,In]),s.TTD],ngContentSelectors:Ze,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(W,Ve){if(1&W&&(s.F$t(),s.TgZ(0,"nz-spin",0),s.YNc(1,Ro,2,1,"ng-container",1),s.TgZ(2,"div",2,3),s.YNc(4,Wo,1,1,"nz-table-title-footer",4),s.YNc(5,qo,1,13,"nz-table-inner-scroll",5),s.YNc(6,Ti,1,4,"ng-template",null,6,s.W1O),s.YNc(8,ji,1,1,"nz-table-title-footer",7),s.qZA(),s.YNc(9,ei,2,1,"ng-container",1),s.qZA(),s.YNc(10,so,1,1,"ng-template",null,8,s.W1O),s.YNc(12,Ue,1,0,"ng-template",null,9,s.W1O)),2&W){const Gt=s.MAs(7);s.Q6J("nzDelay",Ve.nzLoadingDelay)("nzSpinning",Ve.nzLoading)("nzIndicator",Ve.nzLoadingIndicator),s.xp6(1),s.Q6J("ngIf","both"===Ve.nzPaginationPosition||"top"===Ve.nzPaginationPosition),s.xp6(1),s.ekj("ant-table-rtl","rtl"===Ve.dir)("ant-table-fixed-header",Ve.nzData.length&&Ve.scrollY)("ant-table-fixed-column",Ve.scrollX)("ant-table-has-fix-left",Ve.hasFixLeft)("ant-table-has-fix-right",Ve.hasFixRight)("ant-table-bordered",Ve.nzBordered)("nz-table-out-bordered",Ve.nzOuterBordered&&!Ve.nzBordered)("ant-table-middle","middle"===Ve.nzSize)("ant-table-small","small"===Ve.nzSize),s.xp6(2),s.Q6J("ngIf",Ve.nzTitle),s.xp6(1),s.Q6J("ngIf",Ve.scrollY||Ve.scrollX)("ngIfElse",Gt),s.xp6(3),s.Q6J("ngIf",Ve.nzFooter),s.xp6(1),s.Q6J("ngIf","both"===Ve.nzPaginationPosition||"bottom"===Ve.nzPaginationPosition)}},dependencies:[d.O5,d.tP,sn,it.W,Wi,To,Ao],encapsulation:2,changeDetection:0}),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzFrontPagination",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzTemplateMode",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzShowPagination",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzLoading",void 0),(0,I.gn)([(0,R.yF)()],ke.prototype,"nzOuterBordered",void 0),(0,I.gn)([(0,Z.oS)()],ke.prototype,"nzLoadingIndicator",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzBordered",void 0),(0,I.gn)([(0,Z.oS)()],ke.prototype,"nzSize",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzShowSizeChanger",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzHideOnSinglePage",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzShowQuickJumper",void 0),(0,I.gn)([(0,Z.oS)(),(0,R.yF)()],ke.prototype,"nzSimple",void 0),ke})(),nr=(()=>{class ke{constructor(W){this.nzTableStyleService=W,this.destroy$=new k.x,this.listOfFixedColumns$=new ge.t(1),this.listOfColumns$=new ge.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,nt.w)(Ve=>(0,Vt.T)(this.listOfFixedColumns$,...Ve.map(Gt=>Gt.changes$)).pipe((0,Rt.z)(()=>this.listOfFixedColumns$))),(0,Ce.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,K.U)(Ve=>Ve.filter(Gt=>!1!==Gt.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,K.U)(Ve=>Ve.filter(Gt=>!1!==Gt.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,nt.w)(Ve=>(0,Vt.T)(this.listOfColumns$,...Ve.map(Gt=>Gt.changes$)).pipe((0,Rt.z)(()=>this.listOfColumns$))),(0,Ce.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!W}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,qe.O)(this.listOfCellFixedDirective),(0,Ce.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,qe.O)(this.listOfNzThDirective),(0,Ce.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(W=>{W.forEach(Ve=>Ve.setIsLastLeft(Ve===W[W.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(W=>{W.forEach(Ve=>Ve.setIsFirstRight(Ve===W[0]))}),(0,wt.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,Ce.R)(this.destroy$)).subscribe(([W,Ve])=>{Ve.forEach((Gt,an)=>{if(Gt.isAutoLeft){const ho=Ve.slice(0,an).reduce((Uo,ni)=>Uo+(ni.colspan||ni.colSpan||1),0),fo=W.slice(0,ho).reduce((Uo,ni)=>Uo+ni,0);Gt.setAutoLeftWidth(`${fo}px`)}})}),(0,wt.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,Ce.R)(this.destroy$)).subscribe(([W,Ve])=>{Ve.forEach((Gt,an)=>{const Rn=Ve[Ve.length-an-1];if(Rn.isAutoRight){const fo=Ve.slice(Ve.length-an,Ve.length).reduce((ni,uo)=>ni+(uo.colspan||uo.colSpan||1),0),Uo=W.slice(W.length-fo,W.length).reduce((ni,uo)=>ni+uo,0);Rn.setAutoRightWidth(`${Uo}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(xn,8))},ke.\u0275dir=s.lG2({type:ke,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(W,Ve,Gt){if(1&W&&(s.Suo(Gt,eo,4),s.Suo(Gt,dn,4)),2&W){let an;s.iGM(an=s.CRH())&&(Ve.listOfNzThDirective=an),s.iGM(an=s.CRH())&&(Ve.listOfCellFixedDirective=an)}},hostVars:2,hostBindings:function(W,Ve){2&W&&s.ekj("ant-table-row",Ve.isInsideTable)}}),ke})(),Ai=(()=>{class ke{constructor(W,Ve,Gt,an){this.elementRef=W,this.renderer=Ve,this.nzTableStyleService=Gt,this.nzTableDataService=an,this.destroy$=new k.x,this.isInsideTable=!1,this.nzSortOrderChange=new s.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const W=this.listOfNzTrDirective.changes.pipe((0,qe.O)(this.listOfNzTrDirective),(0,K.U)(Rn=>Rn&&Rn.first)),Ve=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfColumnsChanges$:jt.E),(0,Ce.R)(this.destroy$));Ve.subscribe(Rn=>this.nzTableStyleService.setListOfTh(Rn)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,nt.w)(Rn=>Rn?Ve:(0,Ke.of)([]))).pipe((0,Ce.R)(this.destroy$)).subscribe(Rn=>this.nzTableStyleService.setListOfMeasureColumn(Rn));const Gt=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfFixedLeftColumnChanges$:jt.E),(0,Ce.R)(this.destroy$)),an=W.pipe((0,nt.w)(Rn=>Rn?Rn.listOfFixedRightColumnChanges$:jt.E),(0,Ce.R)(this.destroy$));Gt.subscribe(Rn=>{this.nzTableStyleService.setHasFixLeft(0!==Rn.length)}),an.subscribe(Rn=>{this.nzTableStyleService.setHasFixRight(0!==Rn.length)})}if(this.nzTableDataService){const W=this.listOfNzThAddOnComponent.changes.pipe((0,qe.O)(this.listOfNzThAddOnComponent));W.pipe((0,nt.w)(()=>(0,Vt.T)(...this.listOfNzThAddOnComponent.map(an=>an.manualClickOrder$))),(0,Ce.R)(this.destroy$)).subscribe(an=>{this.nzSortOrderChange.emit({key:an.nzColumnKey,value:an.sortOrder}),an.nzSortFn&&!1===an.nzSortPriority&&this.listOfNzThAddOnComponent.filter(ho=>ho!==an).forEach(ho=>ho.clearSortOrder())}),W.pipe((0,nt.w)(an=>(0,Vt.T)(W,...an.map(Rn=>Rn.calcOperatorChange$)).pipe((0,Rt.z)(()=>W))),(0,K.U)(an=>an.filter(Rn=>!!Rn.nzSortFn||!!Rn.nzFilterFn).map(Rn=>{const{nzSortFn:ho,sortOrder:fo,nzFilterFn:Uo,nzFilterValue:ni,nzSortPriority:uo,nzColumnKey:Li}=Rn;return{key:Li,sortFn:ho,sortPriority:uo,sortOrder:fo,filterFn:Uo,filterValue:ni}})),(0,rt.g)(0),(0,Ce.R)(this.destroy$)).subscribe(an=>{this.nzTableDataService.listOfCalcOperator$.next(an)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ke.\u0275fac=function(W){return new(W||ke)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(xn,8),s.Y36(In,8))},ke.\u0275cmp=s.Xpm({type:ke,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(W,Ve,Gt){if(1&W&&(s.Suo(Gt,nr,5),s.Suo(Gt,jn,5)),2&W){let an;s.iGM(an=s.CRH())&&(Ve.listOfNzTrDirective=an),s.iGM(an=s.CRH())&&(Ve.listOfNzThAddOnComponent=an)}},viewQuery:function(W,Ve){if(1&W&&s.Gf(se,7),2&W){let Gt;s.iGM(Gt=s.CRH())&&(Ve.templateRef=Gt.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Ze,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(W,Ve){1&W&&(s.F$t(),s.YNc(0,we,1,0,"ng-template",null,0,s.W1O),s.YNc(2,bt,2,1,"ng-container",1)),2&W&&(s.xp6(2),s.Q6J("ngIf",!Ve.isInsideTable))},dependencies:[d.O5,d.tP],encapsulation:2,changeDetection:0}),ke})(),hi=(()=>{class ke{}return ke.\u0275fac=function(W){return new(W||ke)},ke.\u0275mod=s.oAB({type:ke}),ke.\u0275inj=s.cJS({imports:[t.vT,e.ip,L.u5,S.T,st.aF,A.Wr,N.b1,Q.sL,d.ez,i.ud,yn,Y.y7,it.j,U.YI,M.PV,V.Xo,v.Cl]}),ke})()},9382:(Ot,be,a)=>{a.d(be,{Ao:()=>zt,Fx:()=>Te,we:()=>ce,xH:()=>Ze,xw:()=>rt});var t=a(5879),i=a(551),v=a(8324),d=a(6879),s=a(4300),L=a(2495),Q=a(6028),Y=a(2438),A=a(7394),S=a(927),N=a(6410),V=a(8645),U=a(2096),M=a(3019),e=a(9773),I=a(9028),k=a(7921),ge=a(1374),Ce=a(2181),Z=a(5177),F=a(6814),R=a(3460),O=a(2787),P=a(532),x=a(8802),de=a(9388),ue=a(655),j=a(7754),me=a(4190),re=a(7131),he=a(2831),Me=a(874),Oe=a(7032);function kt(_e,mt){if(1&_e&&(t.ynx(0),t._UZ(1,"span",1),t.BQk()),2&_e){const Ae=mt.$implicit;t.xp6(1),t.Q6J("nzType",Ae)}}function It(_e,mt){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const Ae=t.oxw().$implicit;t.xp6(1),t.hij(" ",Ae.tab.label," ")}}const Tt=function(){return{visible:!1}};function gt(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"li",8),t.NdJ("click",function(){const un=t.CHM(Ae).$implicit,Lt=t.oxw(2);return t.KtG(Lt.onSelect(un))})("contextmenu",function(Ht){const Lt=t.CHM(Ae).$implicit,dt=t.oxw(2);return t.KtG(dt.onContextmenu(Lt,Ht))}),t.YNc(1,It,2,1,"ng-container",9),t.qZA()}if(2&_e){const Ae=mt.$implicit;t.ekj("ant-tabs-dropdown-menu-item-disabled",Ae.disabled),t.Q6J("nzSelected",Ae.active)("nzDisabled",Ae.disabled),t.xp6(1),t.Q6J("nzStringTemplateOutlet",Ae.tab.label)("nzStringTemplateOutletContext",t.DdM(6,Tt))}}function _t(_e,mt){if(1&_e&&(t.TgZ(0,"ul",6),t.YNc(1,gt,2,7,"li",7),t.qZA()),2&_e){const Ae=t.oxw();t.xp6(1),t.Q6J("ngForOf",Ae.items)}}function Ft(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(Ae);const Ht=t.oxw();return t.KtG(Ht.addClicked.emit())}),t.qZA()}if(2&_e){const Ae=t.oxw();t.Q6J("addIcon",Ae.addIcon)}}const rn=function(){return{minWidth:"46px"}},bn=["navWarp"],et=["navList"];function Re(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(Ae);const Ht=t.oxw();return t.KtG(Ht.addClicked.emit())}),t.qZA()}if(2&_e){const Ae=t.oxw();t.Q6J("addIcon",Ae.addIcon)}}function yt(_e,mt){}function je(_e,mt){if(1&_e&&(t.TgZ(0,"div",9),t.YNc(1,yt,0,0,"ng-template",10),t.qZA()),2&_e){const Ae=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",Ae.extraTemplate)}}const Ut=["*"],Xt=["nz-tab-body",""];function _n(_e,mt){}function On(_e,mt){if(1&_e&&(t.ynx(0),t.YNc(1,_n,0,0,"ng-template",1),t.BQk()),2&_e){const Ae=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",Ae.content)}}function Jt(_e,mt){if(1&_e&&(t.ynx(0),t._UZ(1,"span",1),t.BQk()),2&_e){const Ae=mt.$implicit;t.xp6(1),t.Q6J("nzType",Ae)}}const Nt=["contentTemplate"];function Ye(_e,mt){1&_e&&t.Hsn(0)}function He(_e,mt){1&_e&&t.Hsn(0,1)}const Pe=[[["","nz-tab-link",""]],"*"],We=["[nz-tab-link]","*"];function Be(_e,mt){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const Ae=t.oxw().$implicit;t.xp6(1),t.Oqu(Ae.label)}}function xe(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(Ht){t.CHM(Ae);const un=t.oxw().index,Lt=t.oxw(2);return t.KtG(Lt.onClose(un,Ht))}),t.qZA()}if(2&_e){const Ae=t.oxw().$implicit;t.Q6J("closeIcon",Ae.nzCloseIcon)}}const te=function(){return{visible:!0}};function ae(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(Ht){const un=t.CHM(Ae),Lt=un.$implicit,dt=un.index,ft=t.oxw(2);return t.KtG(ft.clickNavItem(Lt,dt,Ht))})("contextmenu",function(Ht){const Lt=t.CHM(Ae).$implicit,dt=t.oxw(2);return t.KtG(dt.contextmenuNavItem(Lt,Ht))}),t.TgZ(1,"div",7),t.YNc(2,Be,2,1,"ng-container",8),t.YNc(3,xe,1,1,"button",9),t.qZA()()}if(2&_e){const Ae=mt.$implicit,at=mt.index,Ht=t.oxw(2);t.Udp("margin-right","horizontal"===Ht.position?Ht.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Ht.position?Ht.nzTabBarGutter:null,"px"),t.ekj("ant-tabs-tab-active",Ht.nzSelectedIndex===at)("ant-tabs-tab-disabled",Ae.nzDisabled),t.xp6(1),t.Q6J("disabled",Ae.nzDisabled)("tab",Ae)("active",Ht.nzSelectedIndex===at),t.uIk("tabIndex",Ht.getTabIndex(Ae,at))("aria-disabled",Ae.nzDisabled)("aria-selected",Ht.nzSelectedIndex===at&&!Ht.nzHideAll)("aria-controls",Ht.getTabContentId(at)),t.xp6(1),t.Q6J("nzStringTemplateOutlet",Ae.label)("nzStringTemplateOutletContext",t.DdM(18,te)),t.xp6(1),t.Q6J("ngIf",Ae.nzClosable&&Ht.closable&&!Ae.nzDisabled)}}function De(_e,mt){if(1&_e){const Ae=t.EpF();t.TgZ(0,"nz-tabs-nav",4),t.NdJ("tabScroll",function(Ht){t.CHM(Ae);const un=t.oxw();return t.KtG(un.nzTabListScroll.emit(Ht))})("selectFocusedIndex",function(Ht){t.CHM(Ae);const un=t.oxw();return t.KtG(un.setSelectedIndex(Ht))})("addClicked",function(){t.CHM(Ae);const Ht=t.oxw();return t.KtG(Ht.onAdd())}),t.YNc(1,ae,4,19,"div",5),t.qZA()}if(2&_e){const Ae=t.oxw();t.Q6J("ngStyle",Ae.nzTabBarStyle)("selectedIndex",Ae.nzSelectedIndex||0)("inkBarAnimated",Ae.inkBarAnimated)("addable",Ae.addable)("addIcon",Ae.nzAddIcon)("hideBar",Ae.nzHideAll)("position",Ae.position)("extraTemplate",Ae.nzTabBarExtraContent),t.xp6(1),t.Q6J("ngForOf",Ae.tabs)}}function Ge(_e,mt){if(1&_e&&t._UZ(0,"div",11),2&_e){const Ae=mt.$implicit,at=mt.index,Ht=t.oxw();t.Q6J("active",Ht.nzSelectedIndex===at&&!Ht.nzHideAll)("content",Ae.content)("forceRender",Ae.nzForceRender)("tabPaneAnimated",Ht.tabPaneAnimated)}}let Ct=(()=>{class _e{constructor(Ae){this.elementRef=Ae,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.SBq))},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Ae,at){1&Ae&&t.YNc(0,kt,2,1,"ng-container",0),2&Ae&&t.Q6J("nzStringTemplateOutlet",at.addIcon)},dependencies:[i.Ls,v.f],encapsulation:2}),_e})(),sn=(()=>{class _e{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Ae,at,Ht){this.elementRef=Ae,this.ngZone=at,this.animationMode=Ht,this.position="horizontal",this.animated=!0}alignToElement(Ae){this.ngZone.runOutsideAngular(()=>{(0,d.e)(()=>this.setStyles(Ae))})}setStyles(Ae){const at=this.elementRef.nativeElement;"horizontal"===this.position?(at.style.top="",at.style.height="",at.style.left=this.getLeftPosition(Ae),at.style.width=this.getElementWidth(Ae)):(at.style.left="",at.style.width="",at.style.top=this.getTopPosition(Ae),at.style.height=this.getElementHeight(Ae))}getLeftPosition(Ae){return Ae?`${Ae.offsetLeft||0}px`:"0"}getElementWidth(Ae){return Ae?`${Ae.offsetWidth||0}px`:"0"}getTopPosition(Ae){return Ae?`${Ae.offsetTop||0}px`:"0"}getElementHeight(Ae){return Ae?`${Ae.offsetHeight||0}px`:"0"}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8))},_e.\u0275dir=t.lG2({type:_e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(Ae,at){2&Ae&&t.ekj("ant-tabs-ink-bar-animated",at._animated)},inputs:{position:"position",animated:"animated"}}),_e})(),yn=(()=>{class _e{constructor(Ae){this.elementRef=Ae,this.disabled=!1,this.active=!1,this.el=Ae.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.SBq))},_e.\u0275dir=t.lG2({type:_e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",tab:"tab",active:"active"}}),_e})(),st=(()=>{class _e{constructor(Ae,at){this.cdr=Ae,this.elementRef=at,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.vpe,this.selected=new t.vpe,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Ae){Ae.disabled||(Ae.tab.nzClick.emit(),this.selected.emit(Ae))}onContextmenu(Ae,at){Ae.disabled||Ae.tab.nzContextmenu.emit(at)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Ae){Ae||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.sBO),t.Y36(t.SBq))},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(Ae,at){2&Ae&&t.ekj("ant-tabs-nav-operations-hidden",0===at.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(Ae,at){if(1&Ae&&(t.TgZ(0,"button",0,1),t.NdJ("nzVisibleChange",function(un){return at.menuVisChange(un)})("mouseenter",function(){return at.showItems()}),t._UZ(2,"span",2),t.qZA(),t.TgZ(3,"nz-dropdown-menu",null,3),t.YNc(5,_t,2,1,"ul",4),t.qZA(),t.YNc(6,Ft,1,1,"button",5)),2&Ae){const Ht=t.MAs(4);t.Q6J("nzDropdownMenu",Ht)("nzOverlayStyle",t.DdM(5,rn))("nzMatchWidthElement",null),t.xp6(5),t.Q6J("ngIf",at.menuOpened),t.xp6(1),t.Q6J("ngIf",at.addable)}},dependencies:[F.sg,F.O5,i.Ls,v.f,R.wO,R.r9,O.cm,O.RR,Ct],encapsulation:2,changeDetection:0}),_e})();const wt=.995**20;let Vt=(()=>{class _e{constructor(Ae,at){this.ngZone=Ae,this.elementRef=at,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.vpe,this.tabScroll=new t.vpe,this.onTouchEnd=Ht=>{if(!this.touchPosition)return;const un=this.lastOffset,Lt=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,un){const dt=un.x/Lt,ft=un.y/Lt,ne=Math.abs(dt),B=Math.abs(ft);if(Math.max(ne,B)<.1)return;let ze=dt,$e=ft;this.motion=window.setInterval(()=>{Math.abs(ze)<.01&&Math.abs($e)<.01?window.clearInterval(this.motion):(ze*=wt,$e*=wt,this.onOffset(20*ze,20*$e,Ht))},20)}},this.onTouchMove=Ht=>{if(!this.touchPosition)return;Ht.preventDefault();const{screenX:un,screenY:Lt}=Ht.touches[0],dt=un-this.touchPosition.x,ft=Lt-this.touchPosition.y;this.onOffset(dt,ft,Ht);const ne=Date.now();this.lastTimeDiff=ne-this.lastTimestamp,this.lastTimestamp=ne,this.lastOffset={x:dt,y:ft},this.touchPosition={x:un,y:Lt}},this.onTouchStart=Ht=>{const{screenX:un,screenY:Lt}=Ht.touches[0];this.touchPosition={x:un,y:Lt},window.clearInterval(this.motion)},this.onWheel=Ht=>{const{deltaX:un,deltaY:Lt}=Ht;let dt;const ft=Math.abs(un),ne=Math.abs(Lt);ft===ne?dt="x"===this.lastWheelDirection?un:Lt:ft>ne?(dt=un,this.lastWheelDirection="x"):(dt=Lt,this.lastWheelDirection="y");const B=Date.now(),ze=Math.abs(dt);(B-this.lastWheelTimestamp>100||ze-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-dt,-dt,Ht),(Ht.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=B,this.lastMixedWheel=ze}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Ae=this.elementRef.nativeElement,at=(0,Y.R)(Ae,"wheel"),Ht=(0,Y.R)(Ae,"touchstart"),un=(0,Y.R)(Ae,"touchmove"),Lt=(0,Y.R)(Ae,"touchend"),dt=new A.w0;return dt.add(this.subscribeWrap("wheel",at,this.onWheel)),dt.add(this.subscribeWrap("touchstart",Ht,this.onTouchStart)),dt.add(this.subscribeWrap("touchmove",un,this.onTouchMove)),dt.add(this.subscribeWrap("touchend",Lt,this.onTouchEnd)),()=>{dt.unsubscribe()}})}subscribeWrap(Ae,at,Ht){return at.subscribe(un=>{this.tabScroll.emit({type:Ae,event:un}),un.defaultPrevented||Ht(un)})}onOffset(Ae,at,Ht){this.ngZone.run(()=>{this.offsetChange.emit({x:Ae,y:at,event:Ht})})}ngOnDestroy(){this.unsubscribe()}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.R0b),t.Y36(t.SBq))},_e.\u0275dir=t.lG2({type:_e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),_e})();const jt=typeof requestAnimationFrame<"u"?S.Z:N.E;let K=(()=>{class _e{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ae){const at=(0,L.su)(Ae);this._selectedIndex!==at&&(this._selectedIndex=Ae,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Ae))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Ae){!this.isValidIndex(Ae)||this.focusIndex===Ae||!this.keyManager||this.keyManager.setActiveItem(Ae)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Ae,at,Ht,un,Lt){this.cdr=Ae,this.ngZone=at,this.viewportRuler=Ht,this.nzResizeObserver=un,this.dir=Lt,this.indexFocused=new t.vpe,this.selectFocusedIndex=new t.vpe,this.addClicked=new t.vpe,this.tabScroll=new t.vpe,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new V.x,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}ngAfterViewInit(){const Ae=this.dir?this.dir.change.asObservable():(0,U.of)(null),at=this.viewportRuler.change(150),Ht=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new s.Em(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,d.e)(Ht),(0,M.T)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,e.R)(this.destroy$),(0,I.e)(16,jt)).subscribe(()=>{Ht()}),(0,M.T)(Ae,at,this.items.changes).pipe((0,e.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Ht),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,e.R)(this.destroy$)).subscribe(un=>{this.indexFocused.emit(un),this.setTabFocus(un),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(Ae){const at=this.items.toArray().findIndex(Ht=>Ht===Ae);-1!==at&&(this.keyManager.updateActiveItem(at),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Ae)))}onOffsetChange(Ae){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId&&(this.transformX>=0&&Ae.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Ae.x<0))return;Ae.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Ae.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId&&(this.transformY>=0&&Ae.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Ae.y<0))return;Ae.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Ae.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Ae){const at=this.navWarpRef.nativeElement.contains(Ae.target);if(!(0,Q.Vb)(Ae)&&at)switch(Ae.keyCode){case Q.oh:case Q.LH:case Q.SV:case Q.JH:this.lockAnimation(),this.keyManager.onKeydown(Ae);break;case Q.K5:case Q.L_:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Ae)}}isValidIndex(Ae){if(!this.items)return!0;const at=this.items?this.items.toArray()[Ae]:null;return!!at&&!at.disabled}scrollToTab(Ae){if(!this.items.find(Ht=>Ht===Ae))return;const at=this.items.toArray();if("horizontal"===this.position){let Ht=this.transformX;if("rtl"===this.getLayoutDirection()){const un=at[0].left+at[0].width-Ae.left-Ae.width;unthis.transformX+this.wrapperWidth&&(Ht=un+Ae.width-this.wrapperWidth)}else Ae.left<-this.transformX?Ht=-Ae.left:Ae.left+Ae.width>-this.transformX+this.wrapperWidth&&(Ht=-(Ae.left+Ae.width-this.wrapperWidth));this.transformX=Ht,this.transformY=0,this.setTransform(Ht,0)}else{let Ht=this.transformY;Ae.top<-this.transformY?Ht=-Ae.top:Ae.top+Ae.height>-this.transformY+this.wrapperHeight&&(Ht=-(Ae.top+Ae.height-this.wrapperHeight)),this.transformY=Ht,this.transformX=0,this.setTransform(0,Ht)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},150)})}setTransform(Ae,at){this.navListRef.nativeElement.style.transform=`translate(${Ae}px, ${at}px)`}clampTransformX(Ae){const at=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(at,Ae),0):Math.min(Math.max(at,Ae),0)}clampTransformY(Ae){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Ae),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const Ae=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,at=Ae?Ae.elementRef.nativeElement:null;at&&this.inkBar.alignToElement(at.parentElement)}setPingStatus(){const Ae={top:!1,right:!1,bottom:!1,left:!1},at=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Ae.right=this.transformX>0,Ae.left=this.transformX+this.wrapperWidth{const un=`ant-tabs-nav-wrap-ping-${Ht}`;Ae[Ht]?at.classList.add(un):at.classList.remove(un)})}setVisibleRange(){let Ae,at,Ht,un,Lt,dt;const ft=this.items.toArray(),ne={width:0,height:0,left:0,top:0,right:0},B=pn=>{let qn;return qn="right"===at?ft[0].left+ft[0].width-ft[pn].left-ft[pn].width:(ft[pn]||ne)[at],qn};"horizontal"===this.position?(Ae="width",un=this.wrapperWidth,Lt=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),dt=this.addButtonWidth,Ht=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(at="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthun&&(ze=un-dt),!ft.length)return this.hiddenItems=[],void this.cdr.markForCheck();const $e=ft.length;let Mt=$e;for(let pn=0;pn<$e;pn+=1)if(B(pn)+(ft[pn]||ne)[Ae]>Ht+ze){Mt=pn-1;break}let on=0;for(let pn=$e-1;pn>=0;pn-=1)if(B(pn){class _e{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return _e.\u0275fac=function(Ae){return new(Ae||_e)},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(Ae,at){2&Ae&&(t.uIk("tabindex",at.active?0:-1)("aria-hidden",!at.active),t.Udp("visibility",at.tabPaneAnimated?at.active?null:"hidden":null)("height",at.tabPaneAnimated?at.active?null:0:null)("overflow-y",at.tabPaneAnimated?at.active?null:"none":null)("display",at.tabPaneAnimated||at.active?null:"none"),t.ekj("ant-tabs-tabpane-active",at.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:Xt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(Ae,at){1&Ae&&t.YNc(0,On,2,1,"ng-container",0),2&Ae&&t.Q6J("ngIf",at.active||at.forceRender)},dependencies:[F.O5,F.tP],encapsulation:2,changeDetection:0}),_e})(),J=(()=>{class _e{constructor(){this.closeIcon="close"}}return _e.\u0275fac=function(Ae){return new(Ae||_e)},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Ae,at){1&Ae&&t.YNc(0,Jt,2,1,"ng-container",0),2&Ae&&t.Q6J("nzStringTemplateOutlet",at.closeIcon)},dependencies:[i.Ls,v.f],encapsulation:2}),_e})(),Te=(()=>{class _e{constructor(Ae){this.templateRef=Ae}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.Rgc,1))},_e.\u0275dir=t.lG2({type:_e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),_e})(),zt=(()=>{class _e{constructor(Ae,at){this.elementRef=Ae,this.routerLink=at}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(t.SBq),t.Y36(me.rH,10))},_e.\u0275dir=t.lG2({type:_e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),_e})(),nt=(()=>{class _e{}return _e.\u0275fac=function(Ae){return new(Ae||_e)},_e.\u0275dir=t.lG2({type:_e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),_e})();const qe=new t.OlP("NZ_TAB_SET");let rt=(()=>{class _e{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Ae){this.closestTabSet=Ae,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.vpe,this.nzDeselect=new t.vpe,this.nzClick=new t.vpe,this.nzContextmenu=new t.vpe,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new V.x}ngOnChanges(Ae){const{nzTitle:at,nzDisabled:Ht,nzForceRender:un}=Ae;(at||Ht||un)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(qe))},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["nz-tab"]],contentQueries:function(Ae,at,Ht){if(1&Ae&&(t.Suo(Ht,Te,5),t.Suo(Ht,nt,5,t.Rgc),t.Suo(Ht,zt,5)),2&Ae){let un;t.iGM(un=t.CRH())&&(at.nzTabLinkTemplateDirective=un.first),t.iGM(un=t.CRH())&&(at.template=un.first),t.iGM(un=t.CRH())&&(at.linkDirective=un.first)}},viewQuery:function(Ae,at){if(1&Ae&&t.Gf(Nt,7),2&Ae){let Ht;t.iGM(Ht=t.CRH())&&(at.contentTemplate=Ht.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[t.TTD],ngContentSelectors:We,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(Ae,at){1&Ae&&(t.F$t(Pe),t.YNc(0,Ye,1,0,"ng-template",null,0,t.W1O),t.YNc(2,He,1,0,"ng-template",null,1,t.W1O))},encapsulation:2,changeDetection:0}),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzClosable",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzDisabled",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzForceRender",void 0),_e})();class Rt{}let gn=0,Ze=(()=>{class _e{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Ae){this.indexToSelect=(0,L.su)(Ae,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}constructor(Ae,at,Ht,un,Lt){this.nzConfigService=Ae,this.ngZone=at,this.cdr=Ht,this.directionality=un,this.router=Lt,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.vpe(!0),this.nzSelectedIndexChange=new t.vpe,this.nzTabListScroll=new t.vpe,this.nzClose=new t.vpe,this.nzAdd=new t.vpe,this.allTabs=new t.n_E,this.tabs=new t.n_E,this.dir="ltr",this.destroy$=new V.x,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=A.w0.EMPTY,this.tabsSubscription=A.w0.EMPTY,this.canDeactivateSubscription=A.w0.EMPTY,this.tabSetId=gn++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.R)(this.destroy$)).subscribe(Ae=>{this.dir=Ae,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const at=this.tabs.toArray();for(let Ht=0;Ht{this.tabs.forEach((Ht,un)=>Ht.isActive=un===Ae),at||this.nzSelectedIndexChange.emit(Ae)})}this.tabs.forEach((at,Ht)=>{at.position=Ht-Ae,null!=this.selectedIndex&&0===at.position&&!at.origin&&(at.origin=Ae-this.selectedIndex)}),this.selectedIndex!==Ae&&(this.selectedIndex=Ae,this.cdr.markForCheck())}onClose(Ae,at){at.preventDefault(),at.stopPropagation(),this.nzClose.emit({index:Ae})}onAdd(){this.nzAdd.emit()}clampTabIndex(Ae){return Math.min(this.tabs.length-1,Math.max(Ae||0,0))}createChangeEvent(Ae){const at=new Rt;return at.index=Ae,this.tabs&&this.tabs.length&&(at.tab=this.tabs.toArray()[Ae],this.tabs.forEach((Ht,un)=>{un!==Ae&&Ht.nzDeselect.emit()}),at.tab.nzSelect.emit()),at}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,M.T)(...this.tabs.map(Ae=>Ae.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,k.O)(this.allTabs)).subscribe(Ae=>{this.tabs.reset(Ae.filter(at=>at.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Ae,at){return"function"==typeof this.nzCanDeactivate?(0,j.lN)(this.nzCanDeactivate(Ae,at)).pipe((0,ge.P)(),(0,e.R)(this.destroy$)):(0,U.of)(!0)}clickNavItem(Ae,at,Ht){Ae.nzDisabled||(Ae.nzClick.emit(),this.isRouterLinkClickEvent(at,Ht)||this.setSelectedIndex(at))}isRouterLinkClickEvent(Ae,at){const Ht=at.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Ae]?.linkDirective?.elementRef.nativeElement.contains(Ht)}contextmenuNavItem(Ae,at){Ae.nzDisabled||Ae.nzContextmenu.emit(at)}setSelectedIndex(Ae){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Ae).subscribe(at=>{at&&(this.nzSelectedIndex=Ae,this.tabNavBarRef.focusIndex=Ae,this.cdr.markForCheck())})}getTabIndex(Ae,at){return Ae.nzDisabled?null:this.selectedIndex===at?0:-1}getTabContentId(Ae){return`nz-tabs-${this.tabSetId}-tab-${Ae}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${Oe.Bq} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,e.R)(this.destroy$),(0,Ce.h)(Ae=>Ae instanceof me.m2),(0,k.O)(!0),(0,Z.g)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Ae=this.findShouldActiveTabIndex();Ae!==this.selectedIndex&&this.setSelectedIndex(Ae),this.nzHideAll=-1===Ae}}findShouldActiveTabIndex(){const Ae=this.tabs.toArray(),at=this.isLinkActive(this.router);return Ae.findIndex(Ht=>{const un=Ht.linkDirective;return!!un&&at(un.routerLink)})}isLinkActive(Ae){return at=>!!at&&Ae.isActive(at.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?`${this.getTabContentMarginValue()}%`:""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?`${this.getTabContentMarginValue()}%`:""}}return _e.\u0275fac=function(Ae){return new(Ae||_e)(t.Y36(Me.jY),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(de.Is,8),t.Y36(me.F0,8))},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["nz-tabset"]],contentQueries:function(Ae,at,Ht){if(1&Ae&&t.Suo(Ht,rt,5),2&Ae){let un;t.iGM(un=t.CRH())&&(at.allTabs=un)}},viewQuery:function(Ae,at){if(1&Ae&&t.Gf(K,5),2&Ae){let Ht;t.iGM(Ht=t.CRH())&&(at.tabNavBarRef=Ht.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(Ae,at){2&Ae&&t.ekj("ant-tabs-card","card"===at.nzType||"editable-card"===at.nzType)("ant-tabs-editable","editable-card"===at.nzType)("ant-tabs-editable-card","editable-card"===at.nzType)("ant-tabs-centered",at.nzCentered)("ant-tabs-rtl","rtl"===at.dir)("ant-tabs-top","top"===at.nzTabPosition)("ant-tabs-bottom","bottom"===at.nzTabPosition)("ant-tabs-left","left"===at.nzTabPosition)("ant-tabs-right","right"===at.nzTabPosition)("ant-tabs-default","default"===at.nzSize)("ant-tabs-small","small"===at.nzSize)("ant-tabs-large","large"===at.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[t._Bn([{provide:qe,useExisting:_e}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(Ae,at){1&Ae&&(t.YNc(0,De,2,9,"nz-tabs-nav",0),t.TgZ(1,"div",1)(2,"div",2),t.YNc(3,Ge,1,4,"div",3),t.qZA()()),2&Ae&&(t.Q6J("ngIf",at.tabs.length||at.addable),t.xp6(2),t.Udp("margin-left",at.getTabContentMarginLeft())("margin-right",at.getTabContentMarginRight()),t.ekj("ant-tabs-content-top","top"===at.nzTabPosition)("ant-tabs-content-bottom","bottom"===at.nzTabPosition)("ant-tabs-content-left","left"===at.nzTabPosition)("ant-tabs-content-right","right"===at.nzTabPosition)("ant-tabs-content-animated",at.tabPaneAnimated),t.xp6(1),t.Q6J("ngForOf",at.tabs))},dependencies:[F.sg,F.O5,F.PC,v.f,s.kH,K,yn,J,w],encapsulation:2}),(0,ue.gn)([(0,Me.oS)()],_e.prototype,"nzType",void 0),(0,ue.gn)([(0,Me.oS)()],_e.prototype,"nzSize",void 0),(0,ue.gn)([(0,Me.oS)()],_e.prototype,"nzAnimated",void 0),(0,ue.gn)([(0,Me.oS)()],_e.prototype,"nzTabBarGutter",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzHideAdd",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzCentered",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzHideAll",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzLinkRouter",void 0),(0,ue.gn)([(0,j.yF)()],_e.prototype,"nzLinkExact",void 0),_e})(),ce=(()=>{class _e{}return _e.\u0275fac=function(Ae){return new(Ae||_e)},_e.\u0275mod=t.oAB({type:_e}),_e.\u0275inj=t.cJS({imports:[de.vT,F.ez,re.Q8,i.PV,v.T,he.ud,s.rt,P.ZD,O.b1]}),_e})()},5695:(Ot,be,a)=>{a.d(be,{X:()=>M,j:()=>U});var t=a(655),i=a(5879),v=a(8645),d=a(9773),s=a(3324),L=a(7754),Q=a(9388),Y=a(6814),A=a(551),S=a(6223);function N(e,I){if(1&e){const k=i.EpF();i.TgZ(0,"span",1),i.NdJ("click",function(Ce){i.CHM(k);const Z=i.oxw();return i.KtG(Z.closeTag(Ce))}),i.qZA()}}const V=["*"];let U=(()=>{class e{constructor(k,ge,Ce,Z){this.cdr=k,this.renderer=ge,this.elementRef=Ce,this.directionality=Z,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new i.vpe,this.nzCheckedChange=new i.vpe,this.dir="ltr",this.destroy$=new v.x}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(k){this.nzOnClose.emit(k),k.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const k=this.elementRef.nativeElement,ge=new RegExp(`(ant-tag-(?:${[...s.uf,...s.Bh].join("|")}))`,"g"),Ce=k.classList.toString(),Z=[];let F=ge.exec(Ce);for(;null!==F;)Z.push(F[1]),F=ge.exec(Ce);k.classList.remove(...Z)}setPresetColor(){const k=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,s.o2)(this.nzColor)||(0,s.M8)(this.nzColor)),this.isPresetColor&&k.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(k=>{this.dir=k,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(k){const{nzColor:ge}=k;ge&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(k){return new(k||e)(i.Y36(i.sBO),i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Q.Is,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(k,ge){1&k&&i.NdJ("click",function(){return ge.updateCheckedStatus()}),2&k&&(i.Udp("background-color",ge.isPresetColor?"":ge.nzColor),i.ekj("ant-tag-has-color",ge.nzColor&&!ge.isPresetColor)("ant-tag-checkable","checkable"===ge.nzMode)("ant-tag-checkable-checked",ge.nzChecked)("ant-tag-rtl","rtl"===ge.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[i.TTD],ngContentSelectors:V,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(k,ge){1&k&&(i.F$t(),i.Hsn(0),i.YNc(1,N,1,0,"span",0)),2&k&&(i.xp6(1),i.Q6J("ngIf","closeable"===ge.nzMode))},dependencies:[Y.O5,A.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,L.yF)()],e.prototype,"nzChecked",void 0),e})(),M=(()=>{class e{}return e.\u0275fac=function(k){return new(k||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[Q.vT,Y.ez,S.u5,A.PV]}),e})()},6109:(Ot,be,a)=>{a.d(be,{Mg:()=>R,SY:()=>x,XK:()=>de,cg:()=>ue,pu:()=>P});var t=a(655),i=a(5879),v=a(4194),d=a(3324),s=a(7754),L=a(8645),Q=a(6410),Y=a(3997),A=a(9773),S=a(2181),N=a(5177),V=a(5448),U=a(331),M=a(874),e=a(9388),I=a(6814),k=a(9594),ge=a(8324);const Ce=["overlay"];function Z(j,me){if(1&j&&(i.ynx(0),i._uU(1),i.BQk()),2&j){const re=i.oxw(2);i.xp6(1),i.Oqu(re.nzTitle)}}function F(j,me){if(1&j&&(i.TgZ(0,"div",2)(1,"div",3)(2,"div",4),i._UZ(3,"span",5),i.qZA(),i.TgZ(4,"div",6),i.YNc(5,Z,2,1,"ng-container",7),i.qZA()()()),2&j){const re=i.oxw();i.ekj("ant-tooltip-rtl","rtl"===re.dir),i.Q6J("ngClass",re._classMap)("ngStyle",re.nzOverlayStyle)("@.disabled",!(null==re.noAnimation||!re.noAnimation.nzNoAnimation))("nzNoAnimation",null==re.noAnimation?null:re.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),i.xp6(3),i.Q6J("ngStyle",re._contentStyleMap),i.xp6(1),i.Q6J("ngStyle",re._contentStyleMap),i.xp6(1),i.Q6J("nzStringTemplateOutlet",re.nzTitle)("nzStringTemplateOutletContext",re.nzTitleContext)}}let R=(()=>{class j{get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){const re=this.placement;return Array.isArray(re)&&re.length>0?re:"string"==typeof re&&re?[re]:["top"]}get _visible(){return(typeof this.visible<"u"?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]}}constructor(re,he,Me,Oe,kt,It){this.elementRef=re,this.hostView=he,this.resolver=Me,this.renderer=Oe,this.noAnimation=kt,this.nzConfigService=It,this.visibleChange=new i.vpe,this.internalVisible=!1,this.destroy$=new L.x,this.triggerDisposables=[]}ngOnChanges(re){const{trigger:he}=re;he&&!he.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(re)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){this.component?.show()}hide(){this.component?.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const re=this.componentRef;this.component=re.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),re.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const he=this.component.nzVisibleChange.pipe((0,Y.x)());he.pipe((0,A.R)(this.destroy$)).subscribe(Me=>{this.internalVisible=Me,this.visibleChange.emit(Me)}),he.pipe((0,S.h)(Me=>Me),(0,N.g)(0,Q.E),(0,S.h)(()=>!!this.component?.overlay?.overlayRef),(0,A.R)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const re=this.elementRef.nativeElement,he=this.trigger;if(this.removeTriggerListeners(),"hover"===he){let Me;this.triggerDisposables.push(this.renderer.listen(re,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(re,"mouseleave",()=>{this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),this.component?.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"===he?(this.triggerDisposables.push(this.renderer.listen(re,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(re,"focusout",()=>this.hide()))):"click"===he&&this.triggerDisposables.push(this.renderer.listen(re,"click",Me=>{Me.preventDefault(),this.show()}))}updatePropertiesByChanges(re){this.updatePropertiesByKeys(Object.keys(re))}updatePropertiesByKeys(re){const he={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()};(re||Object.keys(he).filter(Me=>!Me.startsWith("directive"))).forEach(Me=>{if(he[Me]){const[Oe,kt]=he[Me];this.updateComponentValue(Oe,kt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(re,he){typeof he<"u"&&(this.component[re]=he)}delayEnterLeave(re,he,Me=-1){this.delayTimer?this.clearTogglingTimer():Me>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,he?this.show():this.hide()},1e3*Me):he&&re?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(re=>re()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return j.\u0275fac=function(re){return new(re||j)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(U.P),i.Y36(M.jY))},j.\u0275dir=i.lG2({type:j,features:[i.TTD]}),j})(),O=(()=>{class j{set nzVisible(re){const he=(0,s.sw)(re);this._visible!==he&&(this._visible=he,this.nzVisibleChange.next(he))}get nzVisible(){return this._visible}set nzTrigger(re){this._trigger=re}get nzTrigger(){return this._trigger}set nzPlacement(re){const he=re.map(Me=>V.yW[Me]);this._positions=[...he,...V.Ek]}constructor(re,he,Me){this.cdr=re,this.directionality=he,this.noAnimation=Me,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new L.x,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...V.Ek],this.destroy$=new L.x}ngOnInit(){this.directionality.change?.pipe((0,A.R)(this.destroy$)).subscribe(re=>{this.dir=re,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(re){this.preferredPlacement=(0,V.d_)(re),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(re){this.origin=re,this.cdr.markForCheck()}onClickOutside(re){!this.origin.nativeElement.contains(re.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return j.\u0275fac=function(re){return new(re||j)(i.Y36(i.sBO),i.Y36(e.Is,8),i.Y36(U.P))},j.\u0275dir=i.lG2({type:j,viewQuery:function(re,he){if(1&re&&i.Gf(Ce,5),2&re){let Me;i.iGM(Me=i.CRH())&&(he.overlay=Me.first)}}}),j})();function P(j){return!(j instanceof i.Rgc||""!==j&&(0,s.DX)(j))}let x=(()=>{class j extends R{constructor(re,he,Me,Oe,kt){super(re,he,Me,Oe,kt),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new i.vpe,this.componentRef=this.hostView.createComponent(de)}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]}}}return j.\u0275fac=function(re){return new(re||j)(i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(i._Vd),i.Y36(i.Qsj),i.Y36(U.P,9))},j.\u0275dir=i.lG2({type:j,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(re,he){2&re&&i.ekj("ant-tooltip-open",he.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:[i.qOj]}),(0,t.gn)([(0,s.yF)()],j.prototype,"arrowPointAtCenter",void 0),j})(),de=(()=>{class j extends O{constructor(re,he,Me){super(re,he,Me),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return P(this.nzTitle)}updateStyles(){const re=this.nzColor&&(0,d.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:re},this._contentStyleMap={backgroundColor:this.nzColor&&!re?this.nzColor:null}}}return j.\u0275fac=function(re){return new(re||j)(i.Y36(i.sBO),i.Y36(e.Is,8),i.Y36(U.P,9))},j.\u0275cmp=i.Xpm({type:j,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[i.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(re,he){1&re&&(i.YNc(0,F,6,11,"ng-template",0,1,i.W1O),i.NdJ("overlayOutsideClick",function(Oe){return he.onClickOutside(Oe)})("detach",function(){return he.hide()})("positionChange",function(Oe){return he.onPositionChange(Oe)})),2&re&&i.Q6J("cdkConnectedOverlayOrigin",he.origin)("cdkConnectedOverlayOpen",he._visible)("cdkConnectedOverlayPositions",he._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",he.nzArrowPointAtCenter)},dependencies:[I.mk,I.PC,k.pI,ge.f,V.hQ,U.P],encapsulation:2,data:{animation:[v.$C]},changeDetection:0}),j})(),ue=(()=>{class j{}return j.\u0275fac=function(re){return new(re||j)},j.\u0275mod=i.oAB({type:j}),j.\u0275inj=i.cJS({imports:[e.vT,I.ez,k.U8,ge.T,V.e4,U.g]}),j})()},2392:(Ot,be,a)=>{a.d(be,{ZU:()=>Be,ZJ:()=>xe});var t=a(9388),i=a(342),v=a(2831),d=a(6814),s=a(5879),L=a(8324);let Q=(()=>{class te{}return te.\u0275fac=function(De){return new(De||te)},te.\u0275dir=s.lG2({type:te,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(De,Ge){2&De&&s.Udp("border","0")("background","transparent")("padding","0")("line-height","inherit")}}),te})(),Y=(()=>{class te{}return te.\u0275fac=function(De){return new(De||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({imports:[d.ez]}),te})();var A=a(1752),S=a(551),N=a(824),V=a(6109),U=a(8645),M=a(5619),e=a(5592),I=a(2438),k=a(6232),ge=a(9666),Ce=a(7394),Z=a(9773),F=a(4664),R=a(8180),O=a(2460),P=a(6028),x=a(9087),de=a(655),ue=a(874),j=a(6879),me=a(7754);function re(te,ae){if(1&te&&(s.ynx(0),s._UZ(1,"span",2),s.BQk()),2&te){const De=ae.$implicit;s.xp6(1),s.Q6J("nzType",De)}}const he=["textarea"];function Me(te,ae){if(1&te){const De=s.EpF();s.TgZ(0,"textarea",2,3),s.NdJ("blur",function(){s.CHM(De);const Ct=s.oxw();return s.KtG(Ct.confirm())}),s.qZA(),s.TgZ(2,"button",4),s.NdJ("click",function(){s.CHM(De);const Ct=s.oxw();return s.KtG(Ct.confirm())}),s._UZ(3,"span",5),s.qZA()}}function Oe(te,ae){if(1&te&&(s.ynx(0),s._UZ(1,"span",8),s.BQk()),2&te){const De=ae.$implicit;s.xp6(1),s.Q6J("nzType",De)}}function kt(te,ae){if(1&te){const De=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){s.CHM(De);const Ct=s.oxw();return s.KtG(Ct.onClick())}),s.YNc(1,Oe,2,1,"ng-container",7),s.qZA()}if(2&te){const De=s.oxw();s.Q6J("nzTooltipTitle",null===De.tooltip?null:De.tooltip||(null==De.locale?null:De.locale.edit)),s.xp6(1),s.Q6J("nzStringTemplateOutlet",De.icon)}}const It=["ellipsisContainer"],Tt=["expandable"],gt=["contentTemplate"];function _t(te,ae){1&te&&s.Hsn(0,0,["*ngIf","!content"])}function Ft(te,ae){if(1&te&&(s.YNc(0,_t,1,0,"ng-content",1),s._uU(1)),2&te){const De=ae.content;s.Q6J("ngIf",!De),s.xp6(1),s.hij(" ",De," ")}}function rn(te,ae){}function bn(te,ae){if(1&te&&(s.ynx(0),s._uU(1),s.BQk()),2&te){const De=s.oxw(3);s.xp6(1),s.Oqu(De.nzSuffix)}}const et=function(te){return{content:te}};function Re(te,ae){if(1&te&&(s.ynx(0),s.YNc(1,rn,0,0,"ng-template",6),s.YNc(2,bn,2,1,"ng-container",1),s.BQk()),2&te){const De=s.oxw(2),Ge=s.MAs(1);s.xp6(1),s.Q6J("ngTemplateOutlet",Ge)("ngTemplateOutletContext",s.VKq(3,et,De.nzContent)),s.xp6(1),s.Q6J("ngIf",De.nzSuffix)}}function yt(te,ae){if(1&te&&(s.ynx(0),s._uU(1),s.BQk()),2&te){const De=s.oxw(3);s.xp6(1),s.Oqu(De.ellipsisStr)}}function je(te,ae){if(1&te&&(s.ynx(0),s._uU(1),s.BQk()),2&te){const De=s.oxw(3);s.xp6(1),s.Oqu(De.nzSuffix)}}function Ut(te,ae){if(1&te){const De=s.EpF();s.TgZ(0,"a",9,10),s.NdJ("click",function(){s.CHM(De);const Ct=s.oxw(3);return s.KtG(Ct.onExpand())}),s._uU(2),s.qZA()}if(2&te){const De=s.oxw(3);s.xp6(2),s.hij(" ",null==De.locale?null:De.locale.expand," ")}}function Xt(te,ae){if(1&te&&(s._UZ(0,"span",null,7),s.YNc(2,yt,2,1,"ng-container",1),s.YNc(3,je,2,1,"ng-container",1),s.YNc(4,Ut,3,1,"a",8)),2&te){const De=s.oxw(2);s.xp6(2),s.Q6J("ngIf",De.isEllipsis),s.xp6(1),s.Q6J("ngIf",De.nzSuffix),s.xp6(1),s.Q6J("ngIf",De.nzExpandable&&De.isEllipsis)}}function _n(te,ae){if(1&te&&(s.ynx(0),s.YNc(1,Re,3,5,"ng-container",4),s.YNc(2,Xt,5,3,"ng-template",null,5,s.W1O),s.BQk()),2&te){const De=s.MAs(3),Ge=s.oxw();s.xp6(1),s.Q6J("ngIf",Ge.expanded||!Ge.hasOperationsWithEllipsis&&1===Ge.nzEllipsisRows&&!Ge.hasEllipsisObservers||Ge.canCssEllipsis||Ge.nzSuffix&&Ge.expanded)("ngIfElse",De)}}function On(te,ae){if(1&te){const De=s.EpF();s.TgZ(0,"nz-text-edit",11),s.NdJ("endEditing",function(Ct){s.CHM(De);const sn=s.oxw();return s.KtG(sn.onEndEditing(Ct))})("startEditing",function(){s.CHM(De);const Ct=s.oxw();return s.KtG(Ct.onStartEditing())}),s.qZA()}if(2&te){const De=s.oxw();s.Q6J("text",De.nzContent)("icon",De.nzEditIcon)("tooltip",De.nzEditTooltip)}}function Jt(te,ae){if(1&te){const De=s.EpF();s.TgZ(0,"nz-text-copy",12),s.NdJ("textCopy",function(Ct){s.CHM(De);const sn=s.oxw();return s.KtG(sn.onTextCopy(Ct))}),s.qZA()}if(2&te){const De=s.oxw();s.Q6J("text",De.copyText)("tooltips",De.nzCopyTooltips)("icons",De.nzCopyIcons)}}const Nt=["*"];let Ye=(()=>{class te{constructor(De,Ge,Ct,sn){this.host=De,this.cdr=Ge,this.clipboard=Ct,this.i18n=sn,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 U.x,this.icons=["copy","check"],this.textCopy=new s.vpe}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(De){const{tooltips:Ge,icons:Ct}=De;Ge&&this.updateTooltips(),Ct&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(!0),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const De=this.text;this.textCopy.emit(De),this.clipboard.copy(De),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[De,Ge]=this.tooltips;this.copyTooltip=De||this.locale?.copy,this.copedTooltip=Ge||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[De,Ge]=this.icons;this.copyIcon=De,this.copedIcon=Ge,this.cdr.markForCheck()}}return te.\u0275fac=function(De){return new(De||te)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(i.TU),s.Y36(A.wi))},te.\u0275cmp=s.Xpm({type:te,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[s.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(De,Ge){1&De&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return Ge.onClick()}),s.YNc(1,re,2,1,"ng-container",1),s.qZA()),2&De&&(s.ekj("ant-typography-copy-success",Ge.copied),s.Q6J("nzTooltipTitle",Ge.copied?Ge.copedTooltip:Ge.copyTooltip),s.xp6(1),s.Q6J("nzStringTemplateOutlet",Ge.copied?Ge.copedIcon:Ge.copyIcon))},dependencies:[S.Ls,V.SY,Q,L.f],encapsulation:2,changeDetection:0}),te})(),He=(()=>{class te{set textarea(De){this.textarea$.next(De)}constructor(De,Ge,Ct,sn,yn){this.ngZone=De,this.host=Ge,this.cdr=Ct,this.i18n=sn,this.destroy$=yn,this.editing=!1,this.icon="edit",this.startEditing=new s.vpe,this.endEditing=new s.vpe(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new M.X(null)}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,F.w)(De=>De?new e.y(Ge=>this.ngZone.runOutsideAngular(()=>(0,I.R)(De.nativeElement,"keydown").subscribe(Ge))):k.E),(0,Z.R)(this.destroy$)).subscribe(De=>{De.keyCode!==P.hY&&De.keyCode!==P.K5||this.ngZone.run(()=>{De.keyCode===P.hY?this.onCancel():this.onEnter(De),this.cdr.markForCheck()})}),this.textarea$.pipe((0,F.w)(De=>De?new e.y(Ge=>this.ngZone.runOutsideAngular(()=>(0,I.R)(De.nativeElement,"input").subscribe(Ge))):k.E),(0,Z.R)(this.destroy$)).subscribe(De=>{this.currentText=De.target.value})}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)}onEnter(De){De.stopPropagation(),De.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const De=this.ngZone.isStable?(0,ge.D)(Promise.resolve()):this.ngZone.onStable.pipe((0,R.q)(1));this.ngZone.runOutsideAngular(()=>{De.pipe((0,O.M)(this.textarea$),(0,Z.R)(this.destroy$)).subscribe(([,Ge])=>{Ge&&(Ge.nativeElement.focus(),Ge.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck())})})}}return te.\u0275fac=function(De){return new(De||te)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(A.wi),s.Y36(x.kn))},te.\u0275cmp=s.Xpm({type:te,selectors:[["nz-text-edit"]],viewQuery:function(De,Ge){if(1&De&&(s.Gf(he,5),s.Gf(N.rh,5)),2&De){let Ct;s.iGM(Ct=s.CRH())&&(Ge.textarea=Ct.first),s.iGM(Ct=s.CRH())&&(Ge.autosizeDirective=Ct.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],features:[s._Bn([x.kn])],decls:3,vars:2,consts:[[3,"ngIf","ngIfElse"],["notEditing",""],["nz-input","","nzAutosize","",3,"blur"],["textarea",""],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle","click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(De,Ge){if(1&De&&(s.YNc(0,Me,4,0,"ng-template",0),s.YNc(1,kt,2,2,"ng-template",null,1,s.W1O)),2&De){const Ct=s.MAs(2);s.Q6J("ngIf",Ge.editing)("ngIfElse",Ct)}},dependencies:[d.O5,S.Ls,V.SY,N.Zp,N.rh,Q,L.f],encapsulation:2,changeDetection:0}),te})(),Be=(()=>{class te{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}constructor(De,Ge,Ct,sn,yn,st,it,lt,Pt,wt){this.nzConfigService=De,this.host=Ge,this.cdr=Ct,this.viewContainerRef=sn,this.renderer=yn,this.platform=st,this.i18n=it,this.resizeService=Pt,this.directionality=wt,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 s.vpe,this.nzCopy=new s.vpe,this.nzExpandChange=new s.vpe,this.nzOnEllipsis=new s.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 U.x,this.windowResizeSubscription=Ce.w0.EMPTY,this.document=lt}onTextCopy(De){this.nzCopy.emit(De)}onStartEditing(){this.editing=!0}onEndEditing(De){this.editing=!1,this.nzContentChange.emit(De),this.nzContent===De&&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,me.GL)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,j.h)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,j.e)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const De=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return De.detectChanges(),{viewRef:De,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(De))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:De,removeView:Ge}=this.getOriginContentViewRef(),Ct=[this.textCopyRef,this.textEditRef].filter(Pt=>Pt&&Pt.nativeElement).map(Pt=>Pt.nativeElement),sn=this.getExpandableBtnElement();sn&&Ct.push(sn);const{contentNodes:yn,text:st,ellipsis:it}=(0,me.L8)(this.host.nativeElement,this.nzEllipsisRows,De.rootNodes,Ct,this.ellipsisStr,this.nzSuffix);Ge(),this.ellipsisText=st,it!==this.isEllipsis&&(this.isEllipsis=it,this.nzOnEllipsis.emit(it));const lt=this.ellipsisContainer.nativeElement;for(;lt.firstChild;)this.renderer.removeChild(lt,lt.firstChild);yn.forEach(Pt=>{this.renderer.appendChild(lt,Pt.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const De=this.locale?this.locale.expand:"",Ge=this.expandableBtnElementCache;if(!Ge||Ge.innerText===De){const Ct=this.document.createElement("a");Ct.className="ant-typography-expand",Ct.innerText=De,this.expandableBtnElementCache=Ct}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,Z.R)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,Z.R)(this.destroy$)).subscribe(De=>{this.dir=De,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(De){const{nzCopyable:Ge,nzEditable:Ct,nzExpandable:sn,nzEllipsis:yn,nzContent:st,nzEllipsisRows:it,nzSuffix:lt}=De;(Ge||Ct||sn||yn||st||it||lt)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}}return te.\u0275fac=function(De){return new(De||te)(s.Y36(ue.jY),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.s_b),s.Y36(s.Qsj),s.Y36(v.t4),s.Y36(A.wi),s.Y36(d.K0),s.Y36(x.rI),s.Y36(t.Is,8))},te.\u0275cmp=s.Xpm({type:te,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(De,Ge){if(1&De&&(s.Gf(He,5),s.Gf(Ye,5),s.Gf(It,5),s.Gf(Tt,5),s.Gf(gt,5)),2&De){let Ct;s.iGM(Ct=s.CRH())&&(Ge.textEditRef=Ct.first),s.iGM(Ct=s.CRH())&&(Ge.textCopyRef=Ct.first),s.iGM(Ct=s.CRH())&&(Ge.ellipsisContainer=Ct.first),s.iGM(Ct=s.CRH())&&(Ge.expandableBtn=Ct.first),s.iGM(Ct=s.CRH())&&(Ge.contentTemplate=Ct.first)}},hostVars:26,hostBindings:function(De,Ge){2&De&&(s.Udp("-webkit-line-clamp",Ge.canCssEllipsis&&Ge.nzEllipsisRows>1?Ge.nzEllipsisRows:null),s.ekj("ant-typography",!Ge.editing)("ant-typography-rtl","rtl"===Ge.dir)("ant-typography-edit-content",Ge.editing)("ant-typography-secondary","secondary"===Ge.nzType)("ant-typography-warning","warning"===Ge.nzType)("ant-typography-danger","danger"===Ge.nzType)("ant-typography-success","success"===Ge.nzType)("ant-typography-disabled",Ge.nzDisabled)("ant-typography-ellipsis",Ge.nzEllipsis&&!Ge.expanded)("ant-typography-single-line",Ge.nzEllipsis&&1===Ge.nzEllipsisRows)("ant-typography-ellipsis-single-line",Ge.canCssEllipsis&&1===Ge.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Ge.canCssEllipsis&&Ge.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:[s.TTD],ngContentSelectors:Nt,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(De,Ge){1&De&&(s.F$t(),s.YNc(0,Ft,2,2,"ng-template",null,0,s.W1O),s.YNc(2,_n,4,2,"ng-container",1),s.YNc(3,On,1,3,"nz-text-edit",2),s.YNc(4,Jt,1,3,"nz-text-copy",3)),2&De&&(s.xp6(2),s.Q6J("ngIf",!Ge.editing),s.xp6(1),s.Q6J("ngIf",Ge.nzEditable),s.xp6(1),s.Q6J("ngIf",Ge.nzCopyable&&!Ge.editing))},dependencies:[d.O5,d.tP,Ye,He],encapsulation:2,changeDetection:0}),(0,de.gn)([(0,me.yF)()],te.prototype,"nzCopyable",void 0),(0,de.gn)([(0,me.yF)()],te.prototype,"nzEditable",void 0),(0,de.gn)([(0,me.yF)()],te.prototype,"nzDisabled",void 0),(0,de.gn)([(0,me.yF)()],te.prototype,"nzExpandable",void 0),(0,de.gn)([(0,me.yF)()],te.prototype,"nzEllipsis",void 0),(0,de.gn)([(0,ue.oS)()],te.prototype,"nzCopyTooltips",void 0),(0,de.gn)([(0,ue.oS)()],te.prototype,"nzCopyIcons",void 0),(0,de.gn)([(0,ue.oS)()],te.prototype,"nzEditTooltip",void 0),(0,de.gn)([(0,ue.oS)()],te.prototype,"nzEditIcon",void 0),(0,de.gn)([(0,ue.oS)(),(0,me.Rn)()],te.prototype,"nzEllipsisRows",void 0),te})(),xe=(()=>{class te{}return te.\u0275fac=function(De){return new(De||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({imports:[t.vT,d.ez,S.PV,V.cg,N.o7,A.YI,Y,i.Iq,L.T,v.ud]}),te})()},459:(Ot,be,a)=>{a.d(be,{N:()=>v});var t=a(5879),i=a(6814);let v=(()=>{class d{constructor(L,Q){this.document=L,this.platformId=Q,this.documentIsAccessible=(0,i.NF)(this.platformId)}static getCookieRegExp(L){const Q=L.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+Q+"|;\\s*"+Q+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(L){try{return decodeURIComponent(L)}catch{return L}}check(L){return!!this.documentIsAccessible&&(L=encodeURIComponent(L),d.getCookieRegExp(L).test(this.document.cookie))}get(L){if(this.documentIsAccessible&&this.check(L)){L=encodeURIComponent(L);const Y=d.getCookieRegExp(L).exec(this.document.cookie);return Y[1]?d.safeDecodeURIComponent(Y[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const L={},Q=this.document;return Q.cookie&&""!==Q.cookie&&Q.cookie.split(";").forEach(Y=>{const[A,S]=Y.split("=");L[d.safeDecodeURIComponent(A.replace(/^ /,""))]=d.safeDecodeURIComponent(S)}),L}set(L,Q,Y,A,S,N,V){if(!this.documentIsAccessible)return;if("number"==typeof Y||Y instanceof Date||A||S||N||V)return void this.set(L,Q,{expires:Y,path:A,domain:S,secure:N,sameSite:V||"Lax"});let U=encodeURIComponent(L)+"="+encodeURIComponent(Q)+";";const M=Y||{};M.expires&&(U+="number"==typeof M.expires?"expires="+new Date((new Date).getTime()+1e3*M.expires*60*60*24).toUTCString()+";":"expires="+M.expires.toUTCString()+";"),M.path&&(U+="path="+M.path+";"),M.domain&&(U+="domain="+M.domain+";"),!1===M.secure&&"None"===M.sameSite&&(M.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${L} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),M.secure&&(U+="secure;"),M.sameSite||(M.sameSite="Lax"),U+="sameSite="+M.sameSite+";",this.document.cookie=U}delete(L,Q,Y,A,S="Lax"){this.documentIsAccessible&&this.set(L,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:Q,domain:Y,secure:A,sameSite:S})}deleteAll(L,Q,Y,A="Lax"){if(!this.documentIsAccessible)return;const S=this.getAll();for(const N in S)S.hasOwnProperty(N)&&this.delete(N,L,Q,Y,A)}}return d.\u0275fac=function(L){return new(L||d)(t.LFG(i.K0),t.LFG(t.Lbi))},d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},279:(Ot,be,a)=>{a.d(be,{Y:()=>A,s:()=>S});var t=a(5879),i=a(6814);function v(N,V){1&N&&t._UZ(0,"div",9)}function d(N,V){if(1&N&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&N){const U=t.oxw().$implicit;t.xp6(1),t.Oqu(U.description)}}function s(N,V){if(1&N&&(t.TgZ(0,"section",11),t._UZ(1,"ngx-json-viewer",12),t.qZA()),2&N){const U=t.oxw().$implicit,M=t.oxw();t.xp6(1),t.Q6J("json",U.value)("expanded",M.expanded)("depth",M.depth)("_currentDepth",M._currentDepth+1)}}const L=function(N){return["segment",N]},Q=function(N,V){return{"segment-main":!0,expandable:N,expanded:V}};function Y(N,V){if(1&N){const U=t.EpF();t.TgZ(0,"section",2)(1,"section",3),t.NdJ("click",function(){const I=t.CHM(U).$implicit,k=t.oxw();return t.KtG(k.toggle(I))}),t.YNc(2,v,1,0,"div",4),t.TgZ(3,"span",5),t._uU(4),t.qZA(),t.TgZ(5,"span",6),t._uU(6,": "),t.qZA(),t.YNc(7,d,2,1,"span",7),t.qZA(),t.YNc(8,s,2,4,"section",8),t.qZA()}if(2&N){const U=V.$implicit,M=t.oxw();t.Q6J("ngClass",t.VKq(6,L,"segment-type-"+U.type)),t.xp6(1),t.Q6J("ngClass",t.WLB(8,Q,M.isExpandable(U),U.expanded)),t.xp6(1),t.Q6J("ngIf",M.isExpandable(U)),t.xp6(2),t.Oqu(U.key),t.xp6(3),t.Q6J("ngIf",!U.expanded||!M.isExpandable(U)),t.xp6(1),t.Q6J("ngIf",U.expanded&&M.isExpandable(U))}}let A=(()=>{class N{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(U=>{this.segments.push(this.parseKeyValue(U,this.json[U]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(U){return"object"===U.type||"array"===U.type}toggle(U){this.isExpandable(U)&&(U.expanded=!U.expanded)}parseKeyValue(U,M){const e={key:U,value:M,type:void 0,description:""+M,expanded:this.isExpanded()};switch(typeof e.value){case"number":e.type="number";break;case"boolean":e.type="boolean";break;case"function":e.type="function";break;case"string":e.type="string",e.description='"'+e.value+'"';break;case"undefined":e.type="undefined",e.description="undefined";break;case"object":null===e.value?(e.type="null",e.description="null"):Array.isArray(e.value)?(e.type="array",e.description="Array["+e.value.length+"] "+JSON.stringify(e.value)):e.value instanceof Date?e.type="date":(e.type="object",e.description="Object "+JSON.stringify(e.value))}return e}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(U){const M=new WeakMap;return function e(I,k){let ge,Ce;return"object"!=typeof I||null===I||I instanceof Boolean||I instanceof Date||I instanceof Number||I instanceof RegExp||I instanceof String?I:(ge=M.get(I),void 0!==ge?{$ref:ge}:(M.set(I,k),Array.isArray(I)?(Ce=[],I.forEach(function(Z,F){Ce[F]=e(Z,k+"["+F+"]")})):(Ce={},Object.keys(I).forEach(function(Z){Ce[Z]=e(I[Z],k+"["+JSON.stringify(Z)+"]")})),Ce))}(U,"$")}}return N.\u0275fac=function(U){return new(U||N)},N.\u0275cmp=t.Xpm({type:N,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(U,M){1&U&&(t.TgZ(0,"section",0),t.YNc(1,Y,9,11,"section",1),t.qZA()),2&U&&(t.xp6(1),t.Q6J("ngForOf",M.segments))},dependencies:[i.mk,i.sg,i.O5,N],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),N})(),S=(()=>{class N{}return N.\u0275fac=function(U){return new(U||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[i.ez]}),N})()},7619:(Ot,be,a)=>{function v(x,de){(null==de||de>x.length)&&(de=x.length);for(var ue=0,j=new Array(de);ueP});var L=function(){return"function"==typeof Symbol},Q=function(x){return L()&&!!Symbol[x]},Y=function(x){return Q(x)?Symbol[x]:"@@"+x};L()&&!Q("observable")&&(Symbol.observable=Symbol("observable"));var A=Y("iterator"),S=Y("observable"),N=Y("species");function V(x,de){var ue=x[de];if(null!=ue){if("function"!=typeof ue)throw new TypeError(ue+" is not a function");return ue}}function U(x){var de=x.constructor;return void 0!==de&&null===(de=de[N])&&(de=void 0),void 0!==de?de:P}function e(x){e.log?e.log(x):setTimeout(function(){throw x})}function I(x){Promise.resolve().then(function(){try{x()}catch(de){e(de)}})}function k(x){var de=x._cleanup;if(void 0!==de&&(x._cleanup=void 0,de))try{if("function"==typeof de)de();else{var ue=V(de,"unsubscribe");ue&&ue.call(de)}}catch(j){e(j)}}function ge(x){x._observer=void 0,x._queue=void 0,x._state="closed"}function Z(x,de,ue){x._state="running";var j=x._observer;try{var me=V(j,de);switch(de){case"next":me&&me.call(j,ue);break;case"error":if(ge(x),!me)throw ue;me.call(j,ue);break;case"complete":ge(x),me&&me.call(j)}}catch(re){e(re)}"closed"===x._state?k(x):"running"===x._state&&(x._state="ready")}function F(x,de,ue){if("closed"!==x._state){if("buffering"===x._state)return void x._queue.push({type:de,value:ue});if("ready"!==x._state)return x._state="buffering",x._queue=[{type:de,value:ue}],void I(function(){return function Ce(x){var de=x._queue;if(de){x._queue=void 0,x._state="ready";for(var ue=0;ue1,Me=!1,kt=arguments[1];return new re(function(It){return me.subscribe({next:function(Tt){var gt=!Me;if(Me=!0,!gt||he)try{kt=j(kt,Tt)}catch(_t){return It.error(_t)}else kt=Tt},error:function(Tt){It.error(Tt)},complete:function(){if(!Me&&!he)return It.error(new TypeError("Cannot reduce an empty sequence"));It.next(kt),It.complete()}})})},de.concat=function(){for(var j=this,me=arguments.length,re=new Array(me),he=0;he=0&&Me.splice(gt,1),kt()}});Me.push(Tt)},error:function(It){he.error(It)},complete:function(){kt()}});function kt(){Oe.closed&&0===Me.length&&he.complete()}return function(){Me.forEach(function(It){return It.unsubscribe()}),Oe.unsubscribe()}})},de[S]=function(){return this},x.from=function(j){var me="function"==typeof this?this:x;if(null==j)throw new TypeError(j+" is not an object");var re=V(j,S);if(re){var he=re.call(j);if(Object(he)!==he)throw new TypeError(he+" is not an object");return function M(x){return x instanceof P}(he)&&he.constructor===me?he:new me(function(Me){return he.subscribe(Me)})}if(Q("iterator")&&(re=V(j,A)))return new me(function(Me){I(function(){if(!Me.closed){for(var kt,Oe=function t(x,de){var ue=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(ue)return(ue=ue.call(x)).next.bind(ue);if(Array.isArray(x)||(ue=function i(x,de){if(x){if("string"==typeof x)return v(x,de);var ue=Object.prototype.toString.call(x).slice(8,-1);if("Object"===ue&&x.constructor&&(ue=x.constructor.name),"Map"===ue||"Set"===ue)return Array.from(x);if("Arguments"===ue||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return v(x,de)}}(x))||de&&x&&"number"==typeof x.length){ue&&(x=ue);var j=0;return function(){return j>=x.length?{done:!0}:{done:!1,value:x[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.")}(re.call(j));!(kt=Oe()).done;)if(Me.next(kt.value),Me.closed)return;Me.complete()}})});if(Array.isArray(j))return new me(function(Me){I(function(){if(!Me.closed){for(var Oe=0;Oe{Ot(Ot.s=7568)}]); \ No newline at end of file diff --git a/server/public/runtime.291f13291020cb9c.js b/server/public/runtime.291f13291020cb9c.js new file mode 100644 index 000000000..28bd2192a --- /dev/null +++ b/server/public/runtime.291f13291020cb9c.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var f=m[e]={exports:{}};return v[e](f,f.exports,a),f.exports}a.m=v,e=[],a.O=(t,f,c,b)=>{if(!f){var r=1/0;for(d=0;d=b)&&Object.keys(a.O).every(p=>a.O[p](f[n]))?f.splice(n--,1):(u=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[f,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 f in t)a.o(t,f)&&!a.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:t[f]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,f)=>(a.f[f](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{10:"74ea0282fa13baf4",647:"7f16f6662f063a50",726:"5d77cc63e9369f9f",1084:"cc7a2dfff7332e28",1107:"c2541409069114d5",1150:"59b98cfb7b44bc05",1364:"12bb9c99f867a6aa",1467:"840f50aff4944668",1703:"e5bad141d90c6890",1863:"dae13edfdb0a5b40",2212:"7c5b25057022690e",2287:"7fb3e7687c663878",2602:"ceaf75728c9e80c5",2807:"8bae9d22291f7358",2818:"0ccc21c376328600",2907:"802f04b81997e7c6",3180:"99319959b80b12cb",3290:"f73c6cfa287fc8be",3385:"5c8b6d5ba6a7c6a3",3407:"dfec5aefd7ffe3e4",3517:"971ef8b7911b86b7",3575:"92e853b16ef2b3b4",3577:"8c97d3d55e87f3db",3759:"e977f0b5b5f0bcb3",3806:"1ac5dbcc871c240d",4084:"2ab1cbc2a7466079",4280:"8b435a0224d36f67",4294:"43ee4cc97fc893b4",4449:"29bd210305459ea1",4840:"43d3fde96538cc89",4872:"416d5a7a4a85e28a",5130:"98854a4b09762254",5167:"2ea8b0e45cd0c87e",5302:"d41f13d042296c34",5358:"970c0a5a4c46ecf3",5369:"40cf8db2bfaaa8a2",5412:"4f725f9a9c41d318",5484:"f4cba8ea2f9acc36",5556:"8f7ee9603f203a9d",5584:"53c696b917778710",5604:"b4a39a9ecac0878b",5683:"9a0c40ea40edb32d",5802:"cf03cc24c77b8c17",5978:"d006a4e4d655c3e0",6735:"e326392aa1b68077",6917:"9b8c9eea097740fd",7283:"c53c0ad82e9d0906",7394:"8c8058cf5ab2b026",7625:"00be2758225dac9e",7856:"d432057b5c01b314",8026:"bdbf2592fa09c3bc",8421:"efbeebeb217b3565",8479:"f4087bbc1be9f88a",8592:"b1810530dc588372",8723:"08c3d4e2c0590744",8894:"88971826d90f8e5c",9641:"3f08c704039dfe2d",9803:"86a8ca138fe4b46c",9939:"761484c53b695820",9949:"0431d4cc1891ed4c"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(f,c,b,d)=>{if(e[f])e[f].push(c);else{var r,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[f];if(delete e[f],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=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:t=>t},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={3666:0};a.f.j=(c,b)=>{var d=a.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(3666!=c){var r=new Promise((i,l)=>d=e[c]=[i,l]);b.push(d[2]=r);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){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,d[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,b)=>{var n,o,[d,r,u]=b,i=0;if(d.some(s=>0!==e[s])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(u)var l=u(a)}for(c&&c(b);i{"use strict";var e,v={},m={};function a(e){var f=m[e];if(void 0!==f)return f.exports;var r=m[e]={exports:{}};return v[e](r,r.exports,a),r.exports}a.m=v,e=[],a.O=(f,r,c,b)=>{if(!r){var t=1/0;for(d=0;d=b)&&Object.keys(a.O).every(p=>a.O[p](r[n]))?r.splice(n--,1):(u=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[r,c,b]},a.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return a.d(f,{a:f}),f},a.d=(e,f)=>{for(var r in f)a.o(f,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:f[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((f,r)=>(a.f[r](e,f),f),[])),a.u=e=>(8592===e?"common":e)+"."+{10:"a57878568e1af68b",1084:"cc7a2dfff7332e28",1107:"97fd15b551cd9b9a",1150:"94bdcdeedd2f7339",1364:"12bb9c99f867a6aa",1586:"3a8b6b5a72b41803",1703:"744a45c22e9827f5",1754:"906379ee1f4de488",1914:"81eee4a5b946f717",2212:"7c5b25057022690e",2299:"0988428913d7a6f6",2602:"ceaf75728c9e80c5",2907:"99547d3b28cc5ead",2927:"d14b37b1ff075dce",3180:"eebfe5e56e4343d4",3241:"60d0afddee3f5546",3266:"321649ce55603d0f",3290:"f73c6cfa287fc8be",3385:"7da54368d3f3368e",3407:"dfec5aefd7ffe3e4",3505:"84bd5eb1b163b35e",3517:"e0f070fb12de8314",3577:"8c97d3d55e87f3db",3759:"3d400adf74aefef4",4294:"43ee4cc97fc893b4",4449:"385cbcaaa3a2a9b7",4503:"6cd57c57ee30cc72",4872:"4170af96d9e3e4f3",5167:"760347aee0b68735",5358:"970c0a5a4c46ecf3",5369:"bd7c3140e8b78e84",5484:"68dcf87aec9743df",5556:"32ab0c9a7d8a680a",5584:"bac3e266d54d4ffc",5604:"b4a39a9ecac0878b",5683:"9a0c40ea40edb32d",5756:"74732a34d6188e8e",5802:"ededce0cdae9ebce",5978:"9b7310e248ee76a4",5990:"b2b8123b2d6c43ee",6068:"41e3b7fa5712dfb0",6607:"5f344ae9afd6de9b",6735:"e326392aa1b68077",7121:"d3d18ef19e6c1c66",7129:"d41870c75dd1c100",7167:"780adef43a0123e1",7394:"8c8058cf5ab2b026",7774:"b67b0f2d9dc8c74b",7856:"7f558841cb7ecd2a",7889:"6dbd80c7a67e3bae",7903:"9b751d4f9560fc8e",8026:"60cd0a5edfa5f87e",8245:"2f882b4f5fd8d87b",8421:"efbeebeb217b3565",8479:"bc64bfa439005be1",8592:"a735324db7b1af7f",8961:"b80760a24bcab348",9641:"4603bfbeb3e08f99",9803:"cc8d47b9b43faece",9939:"11664881162fd2af"}[e]+".js",a.miniCssF=e=>{},a.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="main:";a.l=(r,c,b,d)=>{if(e[r])e[r].push(c);else{var t,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{t.onerror=t.onload=null,clearTimeout(s);var _=e[r];if(delete e[r],t.parentNode&&t.parentNode.removeChild(t),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={3666:0};a.f.j=(c,b)=>{var d=a.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(3666!=c){var t=new Promise((i,l)=>d=e[c]=[i,l]);b.push(d[2]=t);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){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,d[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var f=(c,b)=>{var n,o,[d,t,u]=b,i=0;if(d.some(s=>0!==e[s])){for(n in t)a.o(t,n)&&(a.m[n]=t[n]);if(u)var l=u(a)}for(c&&c(b);i